Skip to content

Instantly share code, notes, and snippets.

@Manouchehri
Created August 1, 2015 23:20
Show Gist options
  • Save Manouchehri/63f45764b3863deeca00 to your computer and use it in GitHub Desktop.
Save Manouchehri/63f45764b3863deeca00 to your computer and use it in GitHub Desktop.
A quick example showing how OpenVPN's compression can skew the results of a benchmark.
~ > iperf -u -c 10.8.0.14 -t600 -b 31M
------------------------------------------------------------
Client connecting to 10.8.0.14, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 3] local 10.8.0.6 port 59585 connected with 10.8.0.14 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-600.0 sec 2.17 GBytes 31.0 Mbits/sec
[ 3] Sent 1583073 datagrams
[ 3] Server Report:
[ 3] 0.0-600.1 sec 2.06 GBytes 29.5 Mbits/sec 0.468 ms 75984/1583072 (4.8%)
[ 3] 0.0-600.1 sec 2458 datagrams received out-of-order
~ > iperf -u -c 10.8.0.14 -t60 -b 31M -F Downloads/Win10_English_x64.iso
------------------------------------------------------------
Client connecting to 10.8.0.14, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 4] local 10.8.0.6 port 60853 connected with 10.8.0.14 port 5001
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-60.0 sec 222 MBytes 31.0 Mbits/sec
[ 4] Sent 158296 datagrams
[ 4] Server Report:
[ 4] 0.0-60.6 sec 12.7 MBytes 1.76 Mbits/sec 3.059 ms 149240/158295 (94%)
[ 4] 0.0-60.6 sec 334 datagrams received out-of-order
~ > iperf -u -c 10.8.0.14 -t60 -b 2M -F Downloads/Win10_English_x64.iso
------------------------------------------------------------
Client connecting to 10.8.0.14, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 4] local 10.8.0.6 port 60177 connected with 10.8.0.14 port 5001
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-60.0 sec 14.3 MBytes 2.00 Mbits/sec
[ 4] Sent 10206 datagrams
[ 4] Server Report:
[ 4] 0.0-59.9 sec 14.3 MBytes 2.00 Mbits/sec 4.874 ms 11/10206 (0.11%)
[ 4] 0.0-59.9 sec 266 datagrams received out-of-order
~ > iperf -u -c 10.8.0.14 -t60 -b 2.1M -F Downloads/Win10_English_x64.iso
------------------------------------------------------------
Client connecting to 10.8.0.14, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 4] local 10.8.0.6 port 33390 connected with 10.8.0.14 port 5001
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-60.0 sec 15.0 MBytes 2.10 Mbits/sec
[ 4] Sent 10716 datagrams
[ 4] Server Report:
[ 4] 0.0-59.9 sec 15.0 MBytes 2.09 Mbits/sec 3.899 ms 51/10716 (0.48%)
[ 4] 0.0-59.9 sec 404 datagrams received out-of-order
~ > iperf -u -c 10.8.0.14 -t60 -b 4M -F Downloads/Win10_English_x64.iso
------------------------------------------------------------
Client connecting to 10.8.0.14, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 4] local 10.8.0.6 port 42592 connected with 10.8.0.14 port 5001
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-60.0 sec 28.6 MBytes 4.00 Mbits/sec
[ 4] Sent 20410 datagrams
[ 4] Server Report:
[ 4] 0.0-60.4 sec 23.2 MBytes 3.23 Mbits/sec 2.989 ms 3841/20410 (19%)
[ 4] 0.0-60.4 sec 905 datagrams received out-of-order
~ > iperf -u -c 10.8.0.14 -t60 -b 3.5M -F Downloads/Win10_English_x64.iso
------------------------------------------------------------
Client connecting to 10.8.0.14, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 4] local 10.8.0.6 port 48437 connected with 10.8.0.14 port 5001
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-60.0 sec 25.0 MBytes 3.50 Mbits/sec
[ 4] Sent 17859 datagrams
[ 4] Server Report:
[ 4] 0.0-60.0 sec 25.0 MBytes 3.50 Mbits/sec 3.058 ms 14/17857 (0.078%)
[ 4] 0.0-60.0 sec 545 datagrams received out-of-order
~ > iperf -u -c 10.8.0.14 -t60 -b 3.75M -F Downloads/Win10_English_x64.iso
------------------------------------------------------------
Client connecting to 10.8.0.14, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 4] local 10.8.0.6 port 52464 connected with 10.8.0.14 port 5001
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-60.0 sec 26.8 MBytes 3.75 Mbits/sec
[ 4] Sent 19134 datagrams
[ 4] Server Report:
[ 4] 0.0-60.4 sec 24.8 MBytes 3.45 Mbits/sec 2.914 ms 1441/19133 (7.5%)
[ 4] 0.0-60.4 sec 685 datagrams received out-of-order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment