我在 Windows 和 Linux 機器上運行 iperf 來檢查頻寬速度。
Windows 頻寬速度,我明確設定為 10Mbps/Full,Linux 的頻寬速度為 100Mbps/Full。
以下是我得到的奇怪輸出:客戶端(Linux Box):
iperf -c 192.168.1.72 -r
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
Client connecting to 192.168.1.72, TCP port 5001
TCP window size: 16.0 KByte (default)
[ 5] local 192.168.1.70 port 52358 connected with 192.168.1.72 port 5001
[ ID] Interval Transfer Bandwidth
[ 5] 0.0-10.2 sec 11.6 MBytes **9.60 Mbits/sec**
[ 4] local 192.168.1.70 port 5001 connected with 192.168.1.72 port 1334
[ 4] 0.0-10.1 sec 11.2 MBytes **9.34 Mbits/sec**
在伺服器端(Windows Box):
iperf.exe -s
Server listening on TCP port 5001
TCP window size: 64.0 KByte (default)
[ 4] local 192.168.1.72 port 5001 connected to 192.168.1.70 port 52358
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.4 sec 11.6 MBytes **9.40 Mbits/sec**
Client connecting to 192.168.1.70 port 5001
TCP window size: 64.0 KByte (default)
[ 4] local 192.168.1.72 port 1334 connected with 192.168.1.70 port 5001
Waiting for server threads to complete. Interrupt again to force quit.
[ 4] 0.0-10.1 sec 11.2 MBytes **9.35 Mbits/sec**
我不明白輸出之間的區別
答案1
答案2
我相信您得到的是 Mbits 輸出,而不是您期望的 Mbytes 輸出。您可以使用--format
或-f
開關來變更輸出格式。
使用這些客戶端命令:
對於千位元組:
iperf -f K -c 192.168.1.72 -r
對於兆位元組:
iperf -f M -c 192.168.1.72 -r
欲了解更多信息man iperf