Hi everyone,
I have to measure throughput and latency in my system (I use FlowMonitor to calculate the measures).
I use OnOffApplication to send packets from a node to another, OffTime and OnTime are both equal to 30 seconds. The equation I use for throughput is: throughput = ((rxBytes * 8.0)/(timeLastRxPacket - timeFirstRxPackets))/1024 (to have kbps). Since the application sends packets for 30 seconds, then it stops for 30 seconds, and then it sends again packets for other 30 seconds, the measure timeLastRxPackets - timeFirstRxPackets includes also the 30 seconds the application doesn't send packets. Is it correct the measure? Or should I discard those 30 seconds?
The equation for latency I use is: latency = (delaySum / rxPackets)*1000 (to have ms). Can someone confirm this equation?
Thanks a lot in advance