iperf 給出錯誤的輸出

iperf 給出錯誤的輸出

我在 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

您混淆了 NIC 傳輸速度(100M 與 10M)和吞吐量iperf措施吞吐量

我假設您的網路設定如下:

Windows---------[Ethernet Switch]-----------Linux
       10M/full                    100M/full

你的伺服器端還是客戶端是100M端都沒關係。 TCP 吞吐量受到以下因素的限制最低路徑中的頻寬,這表示在此拓撲中不能超過 10Mbps。

如果你想要更多吞吐量,確保windows連結在100M。

答案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

相關內容