Windows版iperf3下载地址

Linux可以使用aptdnf等管理软件直接安装iperf3

apt install iperf3
dnf install iperf3
pacman -S iperf3

安装好之后,服务端使用iperf3 -s开启进程。

D:\apps\iperf3.18_64>iperf3.exe -s
-----------------------------------------------------------
Server listening on 5201 (test #1)
-----------------------------------------------------------
Accepted connection from 192.168.88.243, port 42194
[  5] local 192.168.88.246 port 5201 connected to 192.168.88.243 port 42204
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.01   sec  10.5 MBytes  86.9 Mbits/sec
[  5]   1.01-2.01   sec  10.5 MBytes  88.5 Mbits/sec
[  5]   2.01-3.01   sec  10.5 MBytes  88.4 Mbits/sec
[  5]   3.01-4.01   sec  10.5 MBytes  87.7 Mbits/sec
[  5]   4.01-5.02   sec  10.6 MBytes  88.7 Mbits/sec
[  5]   5.02-6.01   sec  10.4 MBytes  87.9 Mbits/sec
[  5]   6.01-7.01   sec  10.6 MBytes  88.6 Mbits/sec
[  5]   7.01-8.00   sec  10.4 MBytes  87.9 Mbits/sec
[  5]   8.00-9.01   sec  10.6 MBytes  88.1 Mbits/sec
[  5]   9.01-10.00  sec  10.5 MBytes  89.1 Mbits/sec
[  5]  10.00-10.11  sec  1.12 MBytes  91.0 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.11  sec   106 MBytes  88.2 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201 (test #2)
-----------------------------------------------------------

客户端使用iperf3 -c serverip来连接服务端开始测试

bbq@raspi1b:~ $ iperf3 -c 192.168.88.246
Connecting to host 192.168.88.246, port 5201
[  5] local 192.168.88.243 port 42204 connected to 192.168.88.246 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.07   sec  11.2 MBytes  88.3 Mbits/sec    0    257 KBytes
[  5]   1.07-2.02   sec  10.0 MBytes  88.4 Mbits/sec    0    257 KBytes
[  5]   2.02-3.09   sec  11.2 MBytes  88.3 Mbits/sec    0    257 KBytes
[  5]   3.09-4.04   sec  10.0 MBytes  87.7 Mbits/sec    0    257 KBytes
[  5]   4.04-5.11   sec  11.2 MBytes  88.5 Mbits/sec    0    257 KBytes
[  5]   5.11-6.06   sec  10.0 MBytes  88.3 Mbits/sec    0    257 KBytes
[  5]   6.06-7.01   sec  10.0 MBytes  88.7 Mbits/sec    0    257 KBytes
[  5]   7.01-8.08   sec  11.2 MBytes  87.7 Mbits/sec    0    257 KBytes
[  5]   8.08-9.03   sec  10.0 MBytes  88.3 Mbits/sec    0    257 KBytes
[  5]   9.03-10.10  sec  11.2 MBytes  88.5 Mbits/sec    0    257 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.10  sec   106 MBytes  88.3 Mbits/sec    0             sender
[  5]   0.00-10.11  sec   106 MBytes  88.2 Mbits/sec                  receiver

iperf Done.
bbq@raspi1b:~ $

以上是在windows和树莓派1b之间进行测试的一次实例。