IPerf
Jihongchang(讨论 | 贡献)2023年2月12日 (日) 18:09的版本
介绍
通过模拟出一个 server 和 一个 client 测试、统计数据传输速度
安装
pi@raspberrypi:~ $ sudo apt-get install iperf3
使用
作为 server 运行
pi@raspberrypi:~ $ iperf3 -s
作为 client 运行
连接目标 IP 地址(-c 后面的)的 iperf server 进行测速
pi@raspberrypi:~ $ iperf3 -c 127.0.0.1
Connecting to host 127.0.0.1, port 5201
[ 5] local 127.0.0.1 port 44550 connected to 127.0.0.1 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 705 MBytes 5.91 Gbits/sec 0 1.06 MBytes
[ 5] 1.00-2.00 sec 712 MBytes 5.97 Gbits/sec 0 1.06 MBytes
[ 5] 2.00-3.00 sec 710 MBytes 5.96 Gbits/sec 0 1.06 MBytes
[ 5] 3.00-4.00 sec 711 MBytes 5.97 Gbits/sec 0 1.06 MBytes
[ 5] 4.00-5.00 sec 712 MBytes 5.97 Gbits/sec 0 1.06 MBytes
[ 5] 5.00-6.00 sec 706 MBytes 5.92 Gbits/sec 0 1.06 MBytes
[ 5] 6.00-7.00 sec 712 MBytes 5.98 Gbits/sec 0 1.06 MBytes
[ 5] 7.00-8.00 sec 711 MBytes 5.97 Gbits/sec 0 1.06 MBytes
[ 5] 8.00-9.00 sec 710 MBytes 5.95 Gbits/sec 0 1.06 MBytes
[ 5] 9.00-10.00 sec 704 MBytes 5.91 Gbits/sec 0 1.06 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 6.93 GBytes 5.95 Gbits/sec 0 sender
[ 5] 0.00-10.03 sec 6.92 GBytes 5.93 Gbits/sec receiver