Packet delivery ratio with Flow Monitor

46 views
Skip to first unread message

John Scott

unread,
Jul 11, 2017, 3:01:56 PM7/11/17
to ns-3-users
Hi,

I am simulating a MANET scenario with OLSR routing protocol and TCP. In this scenario, one Sink node sends traffic to two Sources; thus, 4 flows in the FlowMonitor (TCP flows and Acks). I configured the BulkSendApplication attributes to send MaxBytes=5120000 Bytes (5 MB) in packets of SendSize=1024 Bytes; i.e., I want the application to send 5000 packets of 1 KB each.

In my FlowMonitor results, the number of rxBytes is in the order of 5,3 MB (which I understand that it includes retransmissions and packet headers) but the number of txPackets is only 3600 (as opposed to 5000 that I initially desired). This gives a packet size of roughly 1500 bytes.

Using the FlowMonitor, can I guarantee that the 5 MB of data was transferred successfully or I should do this analysis using tshark?


Here are the results:
<Flow flowId="1" timeFirstTxPacket="+30000000000.0ns" timeFirstRxPacket="+30013153807.0ns" timeLastTxPacket="+168777745217.0ns" timeLastRxPacket="+168778946675.0ns" delaySum="+470337398680.0ns" jitterSum="+53078301133.0ns" lastDelay="+1201458.0ns" txBytes="5434180" rxBytes="5314568" txPackets="3599" rxPackets="3517" lostPackets="82" timesForwarded="10878">

<Flow flowId="2" timeFirstTxPacket="+30000000000.0ns" timeFirstRxPacket="+31013114678.0ns" timeLastTxPacket="+73514019791.0ns" timeLastRxPacket="+73514800817.0ns" delaySum="+1311254974810.0ns" jitterSum="+50292782476.0ns" lastDelay="+781026.0ns" txBytes="5538396" rxBytes="5385684" txPackets="3666" rxPackets="3565" lostPackets="101" timesForwarded="7633">

<Flow flowId="3" timeFirstTxPacket="+30013153807.0ns" timeFirstRxPacket="+39184347705.0ns" timeLastTxPacket="+168771751572.0ns" timeLastRxPacket="+168777745217.0ns" delaySum="+113629562928.0ns" jitterSum="+24187856603.0ns" lastDelay="+5993645.0ns" txBytes="94392" rxBytes="92200" txPackets="1815" rxPackets="1773" lostPackets="42" timesForwarded="5475">

<Flow flowId="4" timeFirstTxPacket="+31013114678.0ns" timeFirstRxPacket="+31023188050.0ns" timeLastTxPacket="+73512216239.0ns" timeLastRxPacket="+73514019791.0ns" delaySum="+409874767916.0ns" jitterSum="+21023298256.0ns" lastDelay="+1803552.0ns" txBytes="95164" rxBytes="94176" txPackets="1830" rxPackets="1811" lostPackets="19" timesForwarded="3622">

Thank you


Reply all
Reply to author
Forward
0 new messages