Hi all,
I have an unexpected result testing a very simple scenario with ns-3-dev.
I've setup 2 wireless nodes, one AP and one STA, with QoSSupported so it is 802.11e. .
I've put an UDPServer on the AP and a UDPClient on the STA.
Server starts at time 0 and ends at simulationTime +1 , client starts at time 1 and ends at simulationTime+1.
There is a FlowMonitor in order to capture the flow stats.
First case is the following.
The udp flow is defined as follows :
- MaxPackets : 10
- Interval : 2.5ms
- PacketSize: 972 byte
The simulationTime is 10s.
Output:
Tx Bytes : 10000
Rx Bytes : 9000
Througput : 0.00686646 Mbps
Mean delay: 0.00175804 ms
Mean Jitter: 0.000813754 ms
Lost packets: 0
In the pcap file there are 9 packet sent from the STA and 9 packet received from the AP. But Flow Monitor shows 0 Lost Packets.
If I change simulationTime to 20s.
Output:
Tx Bytes : 10000
Rx Bytes : 9000
Througput : 0.00343323 Mbps
Mean delay: 0.00175804 ms
Mean Jitter: 0.000813754 ms
Lost packets: 1
The flowMonitor detects the lost packet, but the pcap still shows 9 packets sent and 9 packets received.
Second case is using the same MaxPackets , PayloadSize and changing Interval from 2.5 ms to 3 ms.
Output:
Tx Bytes : 10000
Rx Bytes : 10000
Througput : 0.0038147 Mbps
Mean delay: 0.00134004 ms
Mean Jitter: 0.00081267 ms
Lost packets: 0
The question is :
Why i am experiencing packet loss with Inter packet time less than 3ms ? Also, the weird thing is that packets are not even showing up in the pcap file. I thought it was some queueing problem due to the small Inter packet time, but even setting MaxPackets to 10000 I receive 9999 packets with interval of 2.5ms and 10000 with interval of 3ms.
It can be some limitation due to NS-3 but I couldn't find the answer anywhere.