我正在尝试通过 iperf 测试 UDP 多播吞吐量,但似乎从我的开发机器发送的速度不超过 10Mbit/s:
C:\> iperf -c 224.0.166.111 -u -T 1 -t 100 -i 1 -b 1000000000
------------------------------------------------------------
Client connecting to 224.0.166.111, UDP port 5001
Sending 1470 byte datagrams
Setting multicast TTL to 1
UDP buffer size: 8.00 KByte (default)
------------------------------------------------------------
[156] local 192.168.1.99 port 49693 connected with 224.0.166.111 port 5001
[ ID] Interval Transfer Bandwidth
[156] 0.0- 1.0 sec 1.22 MBytes 10.2 Mbits/sec
[156] 1.0- 2.0 sec 1.14 MBytes 9.57 Mbits/sec
[156] 2.0- 3.0 sec 1.14 MBytes 9.55 Mbits/sec
[156] 3.0- 4.0 sec 1.14 MBytes 9.56 Mbits/sec
[156] 4.0- 5.0 sec 1.14 MBytes 9.56 Mbits/sec
[156] 5.0- 6.0 sec 1.15 MBytes 9.62 Mbits/sec
[156] 6.0- 7.0 sec 1.14 MBytes 9.53 Mbits/sec
当我在另一台服务器上运行它时,我得到了~80Mbit/s,这要好得多,但仍然没有达到我应该得到的 1Gbps 限制?
C:\> iperf -c 224.0.166.111 -u -T 1 -t 100 -i 1 -b 1000000000
------------------------------------------------------------
Client connecting to 224.0.166.111, UDP port 5001
Sending 1470 byte datagrams
Setting multicast TTL to 1
UDP buffer size: 8.00 KByte (default)
------------------------------------------------------------
[180] local 10.0.101.102 port 51559 connected with 224.0.166.111 port 5001
[ ID] Interval Transfer Bandwidth
[180] 0.0- 1.0 sec 8.60 MBytes 72.1 Mbits/sec
[180] 1.0- 2.0 sec 8.73 MBytes 73.2 Mbits/sec
[180] 2.0- 3.0 sec 8.76 MBytes 73.5 Mbits/sec
[180] 3.0- 4.0 sec 9.58 MBytes 80.3 Mbits/sec
[180] 4.0- 5.0 sec 9.95 MBytes 83.4 Mbits/sec
[180] 5.0- 6.0 sec 10.5 MBytes 87.9 Mbits/sec
[180] 6.0- 7.0 sec 10.9 MBytes 91.1 Mbits/sec
[180] 7.0- 8.0 sec 11.2 MBytes 94.0 Mbits/sec
谁知道为什么这没有达到接近链路极限(1Gbps)?
谢谢,
汤姆
答案1
检查您的交换机(您的网卡应该已经支持它)是否意外未设置为 auto-mdix,或者是否有固定值并且不匹配。这可能会导致您描述的问题,我曾在我们自己的网络中看到过完全相同的行为,并且不匹配。有时 auto-mdix 可能不起作用,您还应该尝试手动在两侧将其设置为相同的值。