High packet latency in WLAN system level simulation example
이전 댓글 표시
Hi,
I am new to wi-fi protocol and simulations. I have started working with the basic WLAN system level simulation example of MATLAB - Link
The latency in this example even after commenting out the wireless channel fading part and changing the "MACFrameAbstraction" to "false" and "PHYAbstractionMethod" to "none" comes out above or near to 0.2 sec for both the AP and STA.
How can I model the system for ideal scenerio and reduce this latency values?
Thanks,
Garvit
답변 (1개)
Pruthvi Charka
2024년 5월 22일
편집: Pruthvi Charka
2024년 6월 10일
0 개 추천
Hi,
I understand that you are trying to reduce the latency values.
The example you have pointed out calculates the latency observed at the receiver node's application.
You can try any combination of the following suggestions to reduce the latency values.
Queueing delay reduction:
- This is the amount of time spent by the packet in the queue (of the MAC layer) waiting for its turn for transmission.
- To reduce this delay, application traffic rate should be as low as possible so that the packets do not get accumulated waiting for other packets to be sent out. See this example to know how to add custom application traffic with configurable data traffic rate. Simulate an 802.11ax Network with Uplink and Downlink Application Traffic
Channel Contention reduction:
- This is the amount of time spent by the MAC layer contending for the medium before it can start the transmission on the wireless channel
- Contention time can be reduced by lower number of transmitters and lower contention parameters. You can try setting either only downlink or only uplink traffic and using low values for CWMin, CWMax, and AIFS values. See wlanDeviceConfig for contention parameters configuration. See Simulate an 802.11ax Network with Uplink and Downlink Application Traffic example for setting unidirectional traffic.
Packet Transmission Time reduction:
- This is the time taken for the packet to be transmitted from the transmitter to the receiver (Note that propagation delay over the air is not modeled in the example).
- Packet transmission time can be reduced by using higher PHY data rates. Higher PHY data rates can be acheived by setting high values for any of MCS, ChannelBandwidth, NumTransmitAntennas, and NumSpaceTimeStreams. See wlanDeviceConfig for these configuration parameters.
- Note that at higher PHY data rates, distance between nodes may need to be reduced due to lowered range of transmission.
Hope this helps!
댓글 수: 4
Garvit
2024년 5월 27일
Garvit
2024년 6월 3일
Pruthvi Charka
2024년 6월 10일
Hi,
I see that the link in my previous answer wasn't working. I have edited my previous message and corrected the links. You should be able to access those links now.
I see that you modified the code to use networkTrafficOnOff for UL and DL directions. As I said in my previous answer, application traffic rate should be as low as possible.
- Note that the DataRate argument of networkTrafficOnOff object is in units of Kbps. So the value you've set 800000 is in Kbps and represents 800Mbps which is quite high.
- Try setting the DataRate value to just 8000 (which means 8000 Kbps). You should be able to see a drop in the latency provided that this is the only change made in the example.
PHY data rate is the transmission capacity of the PHY for a particular configuration. IEEE® 802.11™ standard defines the PHY data rates for different PHY types. To achieve higher PHY transmission capacity, you have to set high values for any of MCS, ChannelBandwidth, NumTransmitAntennas, and NumSpaceTimeStreams. You can find information for these configuration parameters in wlanDeviceConfig.
Hope this helps!
Garvit
2024년 6월 21일
카테고리
도움말 센터 및 File Exchange에서 System-Level Simulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!