IPerf

来自姬鸿昌的知识库
Jihongchang讨论 | 贡献2022年8月12日 (五) 22:06的版本 (建立内容为“=== 安装 === <syntaxhighlight lang="shell-session"> pi@raspberrypi:~ $ sudo apt-get install iperf3 </syntaxhighlight> === 使用 === ==== 作为 server 运…”的新页面)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

安装

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