main content

802.11 mac and application throughput measurement -凯发k8网页登录

this example shows how to measure the mac and application layer throughput in a multi-node 802.11a/n/ac/ax network using simevents®, stateflow®, and wlan toolbox™. the system-level model presented in this example includes functionalities such as configuring the priority of the traffic at the application layer, capability to generate and decode waveforms of non-ht, ht-mf, vht, he-su and he-ext-su formats, mpdu aggregation and enabling block acknowledgment of mpdus. the application layer throughput calculated using this model is validated against published calibration results from the tgax task group [ 4 ] for box 3 scenarios (tests 1a, 1b, and 2a) specified in tgax evaluation methodology [ 3 ]. the obtained application layer throughput is within the range of minimum and maximum throughput specified in published calibration results [ 4 ].

throughput in 802.11 networks

the ieee® 802.11™ working group is continually adding features to 802.11 specification [ 1 ] to improve the throughput and reliability in wlan networks. throughput is the amount of data transmitted over a period of time. medium access control (mac) layer throughput refers to the amount of data successfully transmitted by the mac layer over a period of time. mac protocol data unit (mpdu) is the unit of transmission at mac layer. in 802.11n, mpdu aggregation was introduced to increase the throughput. when mpdu aggregation is supported, mac layer aggregates multiple mpdus into an aggregated mpdu (a-mpdu) for transmission. this reduces the overhead of channel contention for transmitting multiple frames, resulting in enhanced throughput. in 802.11ac [ 1 ] and 802.11ax [ 2 ], the maximum limits for an a-mpdu length were increased resulting in even better throughput in wlan networks.

model 802.11 network

this example models a wlan network with five nodes as shown in this figure. these nodes implement carrier-sense multiple access with collision avoidance (csma/ca) with physical carrier sense and virtual carrier sense. the physical carrier sensing uses the clear channel assessment (cca) mechanism to determine whether the medium is busy before transmitting. whereas, the virtual carrier sensing uses the rts/cts handshake to prevent the hidden node problem.

the model in the example displays various statistics such as the number of transmitted, received, and dropped packets at phy and mac layers. moreover, the runtime figures that help in analyzing/estimating the node-level and network-level performance are also displayed in this model. this model is validated against the published calibration results from the tgax task group [ 4 ] for box 3 scenarios (tests 1a, 1b, and 2a) specified in tgax evaluation methodology [ 3 ].

wlan network

components of a wlan node

the components of a wlan node are shown in this figure. the information is retrieved by pressing the arrow button for each node in the above figure.

application, edca mac, phy, and channel block capabilities

application:

the application layer has the capability to generate data with different priority levels as shown in this figure. these priority levels are configured using access category property in the mask parameters of the application traffic generator block inside a wlan node. you can also configure the packet size, inter-packet interval, and destination node for the application layer.

edca mac:

the edca mac block used in this example has the following capabilities:

  • generate and decode mac frames of high efficiency single user (he-su), high efficiency extended range single user (he-ext-su), very high throughput (vht), high throughput mixed format (ht-mf) and non-ht formats. these formats are configured using the phy tx format property in the mask parameters of the mac edca block inside a wlan node as shown in this figure.

  • aggregate mpdus to form an a-mpdu. this can be configured by setting phy tx format to one of ht-mf, vht, he-su, or he-ext-su. in case of ht-mf, mpdu aggregation property must also be enabled for a-mpdu generation.

  • acknowledge multiple mpdus in an a-mpdu with a single block acknowledgment (ba) frame. mac assumes a pre-configured ba session between the transmitter and the receiver of an a-mpdu.

  • enable/disable acknowledgments. this can be configured using the ack policy property.

  • maintain separate retry limits for shorter frames (less than rts threshold) and longer frames (greater than or equal to rts threshold). these limits can be configured using the max short retries and max long retries properties.

  • transmit multiple streams of data using the multiple-input multiple-output (mimo) capability. you can configure this capability using the number of transmit chains property. this property is applicable only when the value of phy tx format property is set to vht, he-su, or he-ext-su. the mimo capability can also be used for ht format through the mcs property. the range of values [0, 7], [8, 15], [16, 23], and [24, 31] correspond to one, two, three, and four streams of data respectively.

  • adapt the data rate according to the channel conditions through the rate adaptation algorithm property. this is applicable only when the value of phy tx format property is set to non-ht. you can choose between auto rate fallback (arf) and minstrel algorithms. to maintain a constant data rate throughout the simulation, fixed-rate option is available.

phy:

the phy transmitter and phy receiver blocks have the capability to generate and decode waveforms of non-ht, ht-mf, vht, he-su and he-ext-su formats. you can configure the transmit gain and transmit power using the tx gain and tx power properties in the mask parameters of the phy transmitter block inside a wlan node.

similarly, you can configure the receive gain and receive noise figure using the rx gain and rx noise figure properties in the mask parameters of the phy receiver block inside a wlan node.

channel:

channel impairments determined by free-space path-loss model and rayleigh multipath fading are added to the transmitted phy waveform. you can choose to enable or disable these impairment models. in addition to the impairment models, the signal reception range can also be limited by an optional range propagation loss model. to model any of these losses, the channel model must contain both the sender and receiver positions along with the transmitted signal strength. the channel is modeled inside each receiving node, before passing the waveform to the phy receiver block.

throughput measurement

throughput varies for different configuration parameters pertaining to the application, mac & phy layers. any change in the configuration may either increase or decrease the throughput. you can vary the combination of these parameters to measure and analyze the throughput.

  • mcs: phy data rate

  • phy tx format: phy transmission format

  • packet size: application packet size

  • max a-mpdu subframes: maximum number of subframes in an a-mpdu

  • max tx queue size: mac transmission queue size

along with above parameters, you can also vary the node positions, tx & rx gains, channel loss, number of nodes in the network, mac contention parameters, number of transmit chains and rate adaptation algorithms to analyze mac throughput. this example demonstrates the measurement and analysis of the mac throughput by varying packet size in the application traffic generator block.

application packet size

throughput is directly proportional to the application packet size. smaller packet size results in greater number of packets to be transmitted. at the mac layer, there is an overhead of contention time for each transmitted packet. this is because the mac layer makes sure that the channel is idle for a specific amount of time (refer section 10.3.2.3 of [ 1 ]) before transmitting any packet. therefore, as the packet size decreases, the contention overhead increases resulting in lower throughput.

model configuration

you can configure the application packet size using these steps:

  1. open model wlanmacthroughputmeasurementmodel.slx

  2. to go inside a node subsystem, click on the downward arrow at the bottom left of the node

  3. to open mask parameters of the application, double click on application traffic generator

  4. to enable application, set app state to 'on'

  5. configure the value of packet size

run the simulation and observe the throughput. the tgax calibration results for test-1a in [ 4 ] are shown below:

the above plot compares the calibration results for wlan toolbox against the published results of other companies listed in [ 4 ]. the blue colored curve represents the results of wlan toolbox, while the grey colored curves represent the results of other companies.

simulation results

the simulation of the model generates:

  1. a run-time visualization showing the time spent on channel contention, transmission, and reception for each node

  2. an optional run-time visualization (during the simulation) showing the number of frames queued in mac transmission queues for a selected node.

  3. a bar graph showing metrics for each node such as number of transmitted, received, and dropped packets at phy and mac layers

  4. a mat file statistics.mat with detailed statistics obtained at each layer for each node

this figure shows mac state transitions with respect to simulation time.

you can also observe the live state of the mac layer transmission buffers using the 'observe mac queue lengths' button in the above visualization.

this figure shows the network statistics at the end of simulation.

validating application layer throughput with tgax calibration results

the tgax task group [ 4 ] published application throughput results for different scenarios. you can observe the layer 3 (above mac layer) throughput of each node in the network in 'throughput' column in 'statisticstable' stored in 'statistics.mat'. the tgax calibration scenarios for mac simulator published results of application throughput for a user datagram protocol (udp) with logical link control (llc) layers overhead.

to calculate application throughput from simulation results use the code below:

% load statistics.mat (output of the simulation) file
simulationresults = load('statistics', 'statisticstable');
% statistics
stats = simulationresults.statisticstable;
% successfully transmitted mac layer bytes in the network
totalmactxbytes = sum(stats.mactxbytes);
% udp & llc overheads (bytes)
udpoverhead = 36;
llcoverhead = 8;
% udp & llc overhead (bytes) in the network
udpandllcoverhead = sum(stats.mactxsuccess)*(udpoverhead   llcoverhead);
% successfully transmitted application bytes
totalapptxbytes = totalmactxbytes - udpandllcoverhead;
% time at which last transmission is completed in the network (microseconds)
simulationtime = max(stats.macrecentframestatustimestamp);
% application throughput (mbps)
applicationthroughput = (totalapptxbytes*8)/simulationtime;
disp(['application throughput = ' num2str(applicationthroughput) ' mbps']);
application throughput = 4.7276 mbps

the application throughput for different tgax calibration scenarios is plotted against different mac service data unit (msdu) sizes for a simulation time of 30 seconds as shown below:

further exploration

configuration options

you can change these configuration parameters to further explore this example:

  • application layer: access category and packet interval

  • mac layer: rts threshold, tx queue size, data rate, short retry limit, long retry limit, transmitting frame format, mpdu aggregation, ack policy, number of transmit chains and the rate adaptation algorithms

  • phy: phy tx gain, phy rx gain, and rx noise figure

  • channel modeling: rayleigh fading, free space pathloss, range propagation loss and packet receive range

  • node positions using node position allocator

  • the state of each node can be visualized during the run-time through the configuration available in the visualizer block

  • by default, the phy transmitter and the receiver blocks run in the interpreted execution mode. for longer simulation time, configure all the blocks to code generation mode for better performance.

related examples

refer these examples for further exploration:

  • to model a multi-node ieee 802.11ax network with abstracted phy using simevents, refer example.

  • to get started on modeling a multi-node ieee 802.11 network using matlab, refer

  • to model a multi-node ieee 802.11ax residential scenario using matlab, refer

this example enables you to create and configure a multi-node 802.11 network using a simulink model for analyzing the mac and application layer throughput. in this model, the mac throughput obtained through the simulation results is used to calculate the application layer throughput. this model is validated using the box 3 scenarios (tests 1a, 1b, and 2a) specified in tgax evaluation methodology [ 3 ] to confirm that it complies with the ieee 802.11 [ 1 ]. this example concludes that the calculated application layer throughput is within the range of minimum and maximum throughput specified in published calibration results [ 4 ].

appendix

the helper functions and objects used in this example are:

  1. : create an enumeration for phy frame formats.

  2. : return mac address of a node.

  3. : plot mac queue lengths in the simulation.

  4. : plot mac state transitions with respect to simulation times.

  5. : create an enumeration for simulation statistics.

  6. : update statistics of the simulation.

  7. : generate an a-mpdu, by creating and appending the mpdus containing the msdus in the msdulist.

  8. : return subframes information of an a-mpdu.

  9. : model phy operations related to packet reception.

  10. : model phy operations related to packet transmission.

  11. : apply rayleigh fading effect on the waveform.

  12. : decode he-sig-b user field.

  13. : decode he-sig-b common field.

  14. : merge 20mhz he-sig-b subchannels.

  15. : add multiuser psdu padding.

  16. : create a wlan mac queue management object.

  17. : create a round-robin scheduler object.

  18. : return number of subframes to be aggregated.

  19. : interprets the bits in vht-sig-a field

  20. : create an auto rate fallback (arf) algorithm object.

  21. : create a minstrel algorithm object.

references

  1. ieee std 802.11™-2020. 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.

  2. ieee std 802.11ax™-2021. 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.

  3. ieee 802.11-14/0571r12. "11ax evaluation methodology." ieee p802.11p: wireless lans.

  4. baron, stephane., nezou, patrice., guignard, romain., and viger, pascal. "mac calibration results." presentation at the ieee p802.11 - task group ax, september 2015.

related topics

    网站地图