Testing through localhost:
My desktop machine:
dylan@rezk ~ $ iperf3 -c localhost -t 10
Connecting to host localhost, port 5201
[ 5] local 127.0.0.1 port 35494 connected to 127.0.0.1 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 10.9 GBytes 93.3 Gbits/sec 0 1.31 MBytes
[ 5] 1.00-2.00 sec 10.9 GBytes 93.7 Gbits/sec 0 1.94 MBytes
[ 5] 2.00-3.00 sec 10.9 GBytes 93.9 Gbits/sec 0 2.81 MBytes
[ 5] 3.00-4.00 sec 10.6 GBytes 91.3 Gbits/sec 0 3.43 MBytes
[ 5] 4.00-5.00 sec 10.3 GBytes 88.3 Gbits/sec 0 5.62 MBytes
[ 5] 5.00-6.00 sec 9.99 GBytes 85.8 Gbits/sec 2 6.49 MBytes
[ 5] 6.00-7.00 sec 10.1 GBytes 87.1 Gbits/sec 20 6.74 MBytes
[ 5] 7.00-8.00 sec 10.8 GBytes 93.2 Gbits/sec 34 6.87 MBytes
[ 5] 8.00-9.00 sec 10.2 GBytes 87.8 Gbits/sec 4 6.99 MBytes
[ 5] 9.00-10.00 sec 8.04 GBytes 69.1 Gbits/sec 4 6.99 MBytes
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 103 GBytes 88.3 Gbits/sec 64 sender
[ 5] 0.00-10.00 sec 2.00 GBytes 1.72 Gbits/sec receiver
iperf Done.
dylan@rezk ~ $ iperf3 -c localhost -t 10 -R
Connecting to host localhost, port 5201
Reverse mode, remote host localhost is sending
[ 5] local 127.0.0.1 port 40274 connected to 127.0.0.1 port 5201
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 5.96 GBytes 51.2 Gbits/sec
[ 5] 1.00-2.00 sec 6.87 GBytes 59.1 Gbits/sec
[ 5] 2.00-3.00 sec 6.85 GBytes 58.9 Gbits/sec
[ 5] 3.00-4.00 sec 5.60 GBytes 48.1 Gbits/sec
[ 5] 4.00-5.00 sec 6.52 GBytes 56.0 Gbits/sec
[ 5] 5.00-6.00 sec 4.49 GBytes 38.6 Gbits/sec
[ 5] 6.00-7.00 sec 8.40 GBytes 72.2 Gbits/sec
[ 5] 7.00-8.00 sec 7.93 GBytes 68.1 Gbits/sec
[ 5] 8.00-9.00 sec 8.66 GBytes 74.4 Gbits/sec
[ 5] 9.00-10.00 sec 9.10 GBytes 78.1 Gbits/sec
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 2.00 GBytes 1.72 Gbits/sec 18 sender
[ 5] 0.00-10.00 sec 70.4 GBytes 60.5 Gbits/sec receiver
iperf Done.
dylan@rezk ~ $
The 5A:
root@DietPi:~# iperf3 -c localhost -t 10
Connecting to host localhost, port 5201
[ 5] local ::1 port 49832 connected to ::1 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 2.94 GBytes 25.3 Gbits/sec 0 1.50 MBytes
[ 5] 1.00-2.00 sec 3.88 GBytes 33.3 Gbits/sec 0 1.50 MBytes
[ 5] 2.00-3.00 sec 3.89 GBytes 33.4 Gbits/sec 0 1.50 MBytes
[ 5] 3.00-4.00 sec 3.88 GBytes 33.3 Gbits/sec 0 1.50 MBytes
[ 5] 4.00-5.00 sec 3.84 GBytes 33.0 Gbits/sec 0 1.50 MBytes
[ 5] 5.00-6.00 sec 4.00 GBytes 34.4 Gbits/sec 0 1.50 MBytes
[ 5] 6.00-7.00 sec 3.84 GBytes 33.0 Gbits/sec 0 1.50 MBytes
[ 5] 7.00-8.00 sec 4.77 GBytes 40.9 Gbits/sec 0 1.50 MBytes
[ 5] 8.00-9.00 sec 4.99 GBytes 42.9 Gbits/sec 0 1.50 MBytes
[ 5] 9.00-10.00 sec 4.99 GBytes 42.8 Gbits/sec 0 1.50 MBytes
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 41.0 GBytes 35.2 Gbits/sec 0 sender
[ 5] 0.00-10.00 sec 41.0 GBytes 35.2 Gbits/sec receiver
iperf Done.
root@DietPi:~# iperf3 -c localhost -t 10 -R
Connecting to host localhost, port 5201
Reverse mode, remote host localhost is sending
[ 5] local ::1 port 55230 connected to ::1 port 5201
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 4.29 GBytes 36.9 Gbits/sec
[ 5] 1.00-2.00 sec 5.14 GBytes 44.2 Gbits/sec
[ 5] 2.00-3.00 sec 5.13 GBytes 44.1 Gbits/sec
[ 5] 3.00-4.00 sec 5.14 GBytes 44.1 Gbits/sec
[ 5] 4.00-5.00 sec 5.14 GBytes 44.1 Gbits/sec
[ 5] 5.00-6.00 sec 5.13 GBytes 44.0 Gbits/sec
[ 5] 6.00-7.00 sec 5.13 GBytes 44.1 Gbits/sec
[ 5] 7.00-8.00 sec 5.13 GBytes 44.1 Gbits/sec
[ 5] 8.00-9.00 sec 5.12 GBytes 44.0 Gbits/sec
[ 5] 9.00-10.00 sec 5.13 GBytes 44.1 Gbits/sec
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 50.5 GBytes 43.4 Gbits/sec 0 sender
[ 5] 0.00-10.00 sec 50.5 GBytes 43.4 Gbits/sec receiver
iperf Done.
root@DietPi:~#
It’s strange how reversing the direction changes the speed, even on localhost.