3

I am trying to calculate ethernet throughput using python (by creating UDP socket). I got throughput in 10-15 MBps range. When I cross verified using iperf, iperf is showing throughput as 35 MBps. what logic does iperf use to calculate throughput?
does it use UDP or TCP protocol?

Mayank
  • 39
  • 5

1 Answers1

1

For iperf2 and UDP (-u) the value is the number of packets * udp payload / time. If -i is used then interval reports will report per that. A final report gives the -t value. For TCP, it's the bytes read / time.

Bob