iperf3 限制带宽失败

iperf3 限制带宽失败

我想使用 iperf3 测试路由器的一些 QoS 设置。因此我想模拟一个持久但低带宽的连接。*

我尝试了以下操作:

$ iperf3 -c MYSERVER -b 100K
Connecting to host MYSERVER, port 5201
[  4] local 192.168.1.45 port 39042 connected to MYSERVER port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  16.0 KBytes   131 Kbits/sec    0   18.7 KBytes
[  4]   1.00-2.00   sec  37.4 KBytes   306 Kbits/sec    0   30.7 KBytes
[  4]   2.00-3.00   sec  0.00 Bytes  0.00 bits/sec    0   30.7 KBytes
[  4]   3.00-4.00   sec  0.00 Bytes  0.00 bits/sec    0   30.7 KBytes
[  4]   4.00-5.00   sec  64.1 KBytes   525 Kbits/sec    0   33.4 KBytes
[  4]   5.00-6.00   sec  0.00 Bytes  0.00 bits/sec    0   33.4 KBytes
[  4]   6.00-7.00   sec  0.00 Bytes  0.00 bits/sec    0   33.4 KBytes
[  4]   7.00-8.00   sec  0.00 Bytes  0.00 bits/sec    0   33.4 KBytes
[  4]   8.00-9.00   sec  0.00 Bytes  0.00 bits/sec    0   33.4 KBytes
[  4]   9.00-10.00  sec  74.8 KBytes   613 Kbits/sec    0   33.4 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   192 KBytes   158 Kbits/sec    0             sender
[  4]   0.00-10.00  sec   176 KBytes   144 Kbits/sec                  receiver

因此,带宽限制在某种程度上不适用。

如果我尝试 localhost 情况会变得更糟

$ iperf3 -c localhost -b 100K
Connecting to host localhost, port 5201
[  4] local 127.0.0.1 port 52222 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   128 KBytes  1.05 Mbits/sec    0    639 KBytes
[  4]   1.00-2.00   sec  0.00 Bytes  0.00 bits/sec    0    639 KBytes
[  4]   2.00-3.00   sec  0.00 Bytes  0.00 bits/sec    0    639 KBytes
[  4]   3.00-4.00   sec  0.00 Bytes  0.00 bits/sec    0    639 KBytes
[  4]   4.00-5.00   sec  0.00 Bytes  0.00 bits/sec    0    639 KBytes
[  4]   5.00-6.00   sec  0.00 Bytes  0.00 bits/sec    0    639 KBytes
[  4]   6.00-7.00   sec  0.00 Bytes  0.00 bits/sec    0    639 KBytes
[  4]   7.00-8.00   sec  0.00 Bytes  0.00 bits/sec    0    639 KBytes
[  4]   8.00-9.00   sec  0.00 Bytes  0.00 bits/sec    0    639 KBytes
[  4]   9.00-10.00  sec  0.00 Bytes  0.00 bits/sec    0    639 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   128 KBytes   105 Kbits/sec    0             sender
[  4]   0.00-10.00  sec   128 KBytes   105 Kbits/sec                  receiver

iperf Done.

有人知道我做错了什么吗?

我尝试了 iperf3 版本 3.0.7 和 3.0.12

*最后,我想确保某些低带宽连接比网络中的任何其他连接更受青睐。

相关内容