I transfer data between two Ubuntu Servers (12.04) via iperf on 1Gb LAN.
iperf -s <-> iperf -c <addr> -n2G
TCP speed = 925 Mbits/sec
iperf -su <-> iperf -uc<addr> -b1G -n2G
UDP speed = 810 Mbits/sec
Jitter = 0.016 ms
Lost = 0 .. 0.01%
I expected that UDP is much faster than TCP. Could anyone please explain why does UDP slower than TCP on Ubuntu Server?
iperf
- in which case, its the perfect test. Your testing should reflect the real world load - otherwise the results can be somewhat meaningless. – Ben Lessani - Sonassi Sep 27 '12 at 0:08iperf
tests continuously, then your methodology is fine. If your future plans is to run OpenVPN over UDP - then your testing methodology is useless. All you're getting at the moment is a throughput figure foriperf
- but that is not the same as what your actual application throughput may be. – Ben Lessani - Sonassi Sep 27 '12 at 10:38