802.11ax downlink ofdma multinode system-凯发k8网页登录
this example shows how to simulate a wlan multinode downlink (dl) orthogonal frequency-division multiple access (ofdma) network consisting of an ieee® 802.11ax™ [] access point (ap) and four stations (stas), by using wlan toolbox™ and the communications toolbox™ wireless network simulation library.
using this example, you can:
simulate dl ofdma communication from the ap to stas.
visualize the time spent by each node in idle, contention, transmission, and reception state.
capture the application layer (app), medium access control layer (mac) and physical layer (phy) statistics for each node.
the simulation results show performance metrics such as throughput, packet latency, and packet loss captured at each node.
additionally, you can further explore the example by performing these tasks.
ofdm and ofdma
the ieee 802.11ax standard introduces significant enhancements over the existing 802.11ac standard []. one of the key improvements is ofdma, which is an extension of ofdm digital modulation technology into a multiuser (mu) environment. the fundamental objective of ofdma is to efficiently use the available frequency space. ofdma partitions the channel bandwidth into multiple mutually exclusive sub-bands, called resource units (rus). by partitioning the channel bandwidth, multiple users can access the channel simultaneously. as a result, 802.11ax supports concurrent transmissions of packets to multiple users.
for example, a conventional 20 mhz channel can be partitioned into a maximum of nine subchannels. an 802.11ax ap can simultaneously transmit packets to nine 802.11ax stas by using ofdma. the simultaneous transmission of frames reduces excessive contention overhead at the mac layer and minimizes the phy layer preamble overhead. in ofdma, the ap controls the allocation of rus.
the 802.11ax standard specifies two types of ofdma:
dl ofdma - the ap transmits packets to multiple stas simultaneously using a different ru for each sta.
uplink (ul) ofdma - multiple stas transmit packets to an ap simultaneously, with each sta using a different ru.
in this figure, the 802.11n/ac/ax ap transmits dl frames to four ofdm stas independently over time. the ap uses the entire channel bandwidth to communicate with a single ofdm sta. similarly, an ofdm sta uses the entire channel bandwidth to communicate with an 802.11n/ac/ax ap in an ul ofdm transmission.
this figure shows an ofdma transmission. the 802.11ax ap partitions the channel bandwidth into rus for four ofdma stas on a continuous basis for simultaneous dl transmissions.
system-level simulation scenario
the example creates, configures, and simulates this 802.11ax system-level scenario, consisting of one ap and four associated stas.
in the preceding figure:
ap transmits dl data to all the stas simultaneously.
stas respond with a ul acknowledgment frame upon receiving the dl data frames from the ap.
check for support package installation
check if the communications toolbox™ wireless network simulation library support package is installed. if the support package is not installed, matlab® returns an error with a link to download and install the support package.
wirelessnetworksupportpackagecheck
configure simulation parameters
set the seed for the random number generator to 1
. the seed value controls the pattern of random number generation. the random number generated by the seed value impacts several processes within the simulation, including backoff counter selection at the mac layer and predicting packet reception success at the physical layer. to improve the accuracy of your simulation results after running the simulation, you can change the seed value, run the simulation again, and average the results over multiple simulations.
rng(1,"combrecursive")
specify the simulation time in seconds. to visualize a live state transition plot for all of the nodes, set the showlivestatetransitionplot
variable to true
.
simulationtime = 0.1; showlivestatetransitionplot = true;
this example uses abstracted mac and phy at each wlan node because ofdma is only supported for abstracted mac and phy. for more information about abstracted mac and phy, see the example.
phyabstractionmethod = "tgax-evaluation-methodology";
configure wlan scenario
initialize the wireless network simulator by using the object.
networksimulator = wirelessnetworksimulator.init;
nodes
specify the number of nodes in the network. the example scenario consists of one ap and four associated stas.
numnodes = 5; numstas = numnodes-1;
specify the positions of the ap and sta nodes. the apposition
and stapositions
vectors specify the -, -, and - cartesian coordinates of the ap and stas, respectively. units are in meters.
apposition = [0 0 0]; stapositions = [((30/numstas).*(1:numstas))' ((30/numstas).*(numstas:-1:1))' zeros(numstas,1)];
to model the scenario, create an ap and four stas using and objects. the wlandeviceconfig
object enables you to specify the configuration parameters for the ap and stas. create two wlan device configuration objects, one for the ap and the other for the stas. you can use the same device configuration object to configure all the stas. to configure an ap and a sta, set the mode
property of the wlandeviceconfig
object to "ap" and "sta" respectively. configure the transmissionformat
, mcs
, disablerts
, mpduaggregationlimit
, transmitpower
properties of ap device configuration object. note that ap and sta device configuration objects must have the same value of mpduaggregationlimit
.
the example simulates these dl ofdma frame exchange sequences.
enable dl mu frames followed by mu block ack request (bar) trigger frame to simultaneously solicit ul acknowledgment frames from multiple scheduled stas.
optionally enables mu request to send request to send (rts)/clear to send (cts) exchanges by specifying the
disablerts
property of thewlandeviceconfig
object tofalse
.
this example uses the round-robin scheduling strategy to select stas for each transmission. the assignment of rus is fixed for a given number of users and bandwidth.
accesspointcfg = wlandeviceconfig(mode="ap",transmissionformat="he-mu-ofdma", ... % ap device configuration mcs=8,disablerts=true, ... mpduaggregationlimit=5, ... transmitpower=20); stationcfg = wlandeviceconfig(mode="sta",mpduaggregationlimit=5); % stas device configuration
to create one ap and four sta nodes from the specified configuration, use the wlannode
objects. specify the node names, node positions, and device configuration objects. you can use the wlannode
object to create multiple nodes at a time by providing multiple node positions. specify the phy abstraction method used by the ap and stas. configure the macframeabstraction
property to indicate that the mac frames are abstracted by the nodes.
accesspoint = wlannode(name="ap", ... position=apposition, ... deviceconfig=accesspointcfg,... phyabstractionmethod=phyabstractionmethod, ... macframeabstraction=true); stations = wlannode(name="sta" (1:numstas), ... position=stapositions, ... deviceconfig=stationcfg, ... phyabstractionmethod=phyabstractionmethod, ... macframeabstraction=true);
create a wlan network consisting of an ap and four stas.
nodes = [accesspoint stations];
to ensure all the nodes are configured properly, use the helper function.
hcheckwlannodesconfiguration(nodes)
association
associate all the stas to the ap by using the object function of the wlannode
object.
associatestations(accesspoint,stations);
application traffic
create objects to generate an on-off application traffic pattern. configure the on-off application traffic by specifying the application data rate and packet size. the number of objects created is equal to the number of ap-sta pairs that have downlink traffic exchange in the example. add application traffic from the ap node to the corresponding sta node by using the object function and specifying the associated sta as the destination.
% create four networktrafficonoff objects, one for each ap-sta pair in the scenario for staid=1:numnodes-1 trafficsource(staid) = networktrafficonoff(datarate=100000,packetsize=100); %#okaddtrafficsource(accesspoint,trafficsource(staid),destinationnode=stations(staid),accesscategory=0); end
wireless channel
to model a random tgax fading channel between each node, this example uses helper function. when you model a fading channel, the probability of packet transmission success depends on these factors.
quality of the channel between an ap and sta for the selected ru
modulation and coding scheme (mcs)
in this example, the ru allocation does not consider the quality of the channel between the ap and each sta. therefore, if the channel quality between an ap and a sta is poor and the selected mcs is high, packet loss is likely to occur.
add the channel model to the wireless network simulator by using the object function of the wirelessnetworksimulator
object.
channel = hslstgaxmultifrequencysystemchannel(nodes); addchannelmodel(networksimulator,channel.channelfcn)
simulation
add your nodes to the wireless network simulator.
addnodes(networksimulator,nodes)
to view the state transition and performance metrics plots, create a helper object. the simulation shows the plots for all the nodes configured in the simulation. to visualize the state transitions and performance metrics of specific nodes, specify the corresponding node objects as the second argument to the helper object.
viewerobj = hsimulationplotviewer(showlivestatetransitionplot,nodes);
run the network simulation for the specified simulation time. the runtime visualization shows the time spent by the ap and the sta in idle, contention, transmission, and reception state.
run(networksimulator,simulationtime);
results
retrieve the app, mac, and phy statistics at each node by using the object function of the wlannode
object.
stats = statistics(nodes);
plot the performance of each node by using the object function of the hsimulationplotviewer
object. you can visualize these simulation plots.
throughput (in mbps) at each transmitter (ap).
packet loss ratio (ratio of unsuccessful data transmissions to the total data transmissions) at each transmitter (ap and sta).
average packet latency incurred at each receiver (stas). the average packet latency shows the average latency that each sta incurs to receive the downlink traffic from the ap.
plotnetworkstats(viewerobj,simulationtime)
further exploration
throughput comparison of ofdm and ofdma
generate throughput results of these ofdm and ofdma transmission scenarios by using the helper function.
an ap serving a maximum of 140 stas with ofdm configuration.
an ap serving a maximum of 140 stas in an ofdma configuration.
plot the throughput results as a function of the number of dl stas for ofdm and ofdma configurations. by default, the hcompareofdmvsofdmathroughputs
helper function plots the static throughput values of ofdm and ofdma transmissions. to reproduce the results, set the plotstaticthroughputvalues
flag to false
.
plotstaticthroughputvalues = true;
hcompareofdmvsofdmathroughputs(plotstaticthroughputvalues);
the preceding plot shows the throughput comparison of ofdm and ofdma. because of the simultaneous transmissions to multiple users, the throughput obtained by using ofdma transmission is greater than the throughput obtained by using ofdm transmission. increasing the number of dl stas has minimal impact on the ofdm throughput.
faster execution using parallel simulation runs
if you want to run multiple simulations, you can speed up the simulations by enabling parallel computing using the loop. the parfor loop is an alternative to the loop. the parfor loop enables you to execute multiple simulation runs in parallel, thereby reducing the total execution time. to use parfor, you need to install the parallel computing toolbox™. for more information about running multiple simulations by using parfor loop, see helper function.
appendix
the example uses these helpers:
— check if the node parameters are configured correctly
— return a system channel object and set the path loss model
— return a channel object for abstracted phy layer
— return a channel object for full phy layer
— return the base channel object
— plot the state transition and performance metrics figures
— retrieve throughput results for ofdm and ofdma transmission scenarios
references
1. institute of electrical and electronics engineers (ieee). ieee standard for information technology--telecommunications and information exchange between systems local and metropolitan area networks--specific requirements part 11: wireless lan medium access control (mac) and physical layer (phy) specifications amendment 1: enhancements for high-efficiency wlan. ieee 802.11ax-2021. ieee, may 19, 2021. .
2. institute of electrical and electronics engineers (ieee). ieee standard for information technology--telecommunications and information exchange between systems local and metropolitan area networks--specific requirements part 11: wireless lan medium access control (mac) and physical layer (phy) specifications. ieee 802.11-2020. ieee, february 26, 2021. .
see also
functions
objects
- | | |