重庆的电信线路,测试到 US BWG 一个主机(线路是:CN2 GIA-E ),不知道是不是网络的原因,UDP 报文发包测试始终没有速度。
这个主机需要做一些物联网 udp 测试。百思不得其解。
测试步骤:
位于重庆的 IPERF-CLIENT,第一次测试 UDP 报文
iperf3 -c IPERF-SERVER -p 12345 -b 10M -u
Connecting to host IPERF-SERVER, port 12345
[ 4] local 10.125.30.250 port 50136 connected to IPERF-SERVER port 12345
[ ID] Interval Transfer Bandwidth Total Datagrams
[ 4] 0.00-1.01 sec 1.10 MBytes 9.18 Mbits/sec 141
[ 4] 1.01-2.01 sec 1.20 MBytes 10.0 Mbits/sec 153
[ 4] 2.01-3.01 sec 1.19 MBytes 9.95 Mbits/sec 152
[ 4] 3.01-4.00 sec 1.19 MBytes 10.0 Mbits/sec 152
[ 4] 4.00-5.01 sec 1.19 MBytes 9.85 Mbits/sec 152
[ 4] 5.01-6.01 sec 1.21 MBytes 10.2 Mbits/sec 155
[ 4] 6.01-7.01 sec 1.19 MBytes 9.93 Mbits/sec 152
[ 4] 7.01-8.01 sec 1.20 MBytes 10.1 Mbits/sec 153
[ 4] 8.01-9.00 sec 1.18 MBytes 9.95 Mbits/sec 151
[ 4] 9.00-10.00 sec 1.20 MBytes 10.0 Mbits/sec 153
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 4] 0.00-10.00 sec 11.8 MBytes 9.92 Mbits/sec 0.000 ms 0/0 (0%)
[ 4] Sent 0 datagrams
iperf Done.
US 服务器端输出:
[ 5] local IPERF-SERVER port 12345 connected to IPERF-CLIENT port 50136
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 5] 0.00-1.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 1.00-2.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 2.00-3.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 3.00-4.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 4.00-5.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 5.00-6.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 6.00-7.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 7.00-8.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 8.00-9.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 9.00-10.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 10.00-10.21 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 5] 0.00-10.21 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
重庆这边换 TCP 报文:
iperf3 -c IPERF-SERVER -p 12345 -b 10M
Connecting to host IPERF-SERVER, port 12345
[ 4] local IPERF-CLIENT port 13889 connected to IPERF-SERVER port 12345
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.01 sec 1.38 MBytes 11.4 Mbits/sec
[ 4] 1.01-2.01 sec 1.25 MBytes 10.5 Mbits/sec
[ 4] 2.01-3.00 sec 1.38 MBytes 11.6 Mbits/sec
[ 4] 3.00-4.01 sec 1.25 MBytes 10.4 Mbits/sec
[ 4] 4.01-5.01 sec 1.25 MBytes 10.5 Mbits/sec
[ 4] 5.01-6.01 sec 1.50 MBytes 12.6 Mbits/sec
[ 4] 6.01-7.01 sec 1.38 MBytes 11.6 Mbits/sec
[ 4] 7.01-8.01 sec 1.25 MBytes 10.5 Mbits/sec
[ 4] 8.01-9.00 sec 1.25 MBytes 10.5 Mbits/sec
[ 4] 9.00-10.00 sec 1.50 MBytes 12.6 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-10.00 sec 13.4 MBytes 11.2 Mbits/sec sender
[ 4] 0.00-10.00 sec 13.3 MBytes 11.2 Mbits/sec receiver
iperf Done.
US 服务器端输出:
Accepted connection from IPERF-CLIENT, port 13885
[ 5] local IPERF-SERVER port 12345 connected to IPERF-CLIENT port 13889
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 194 KBytes 1.59 Mbits/sec
[ 5] 1.00-2.00 sec 2.02 MBytes 16.9 Mbits/sec
[ 5] 2.00-3.00 sec 1.54 MBytes 12.9 Mbits/sec
[ 5] 3.00-4.00 sec 1.25 MBytes 10.5 Mbits/sec
[ 5] 4.00-5.00 sec 1.25 MBytes 10.5 Mbits/sec
[ 5] 5.00-6.00 sec 1.50 MBytes 12.6 Mbits/sec
[ 5] 6.00-7.00 sec 1.25 MBytes 10.5 Mbits/sec
[ 5] 7.00-8.00 sec 1.38 MBytes 11.5 Mbits/sec
[ 5] 8.00-9.00 sec 1.25 MBytes 10.5 Mbits/sec
[ 5] 9.00-10.00 sec 1.41 MBytes 11.8 Mbits/sec
[ 5] 10.00-10.18 sec 291 KBytes 13.6 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-10.18 sec 0.00 Bytes 0.00 bits/sec sender
[ 5] 0.00-10.18 sec 13.3 MBytes 11.0 Mbits/sec receiver
这个主机需要做一些物联网 udp 测试。百思不得其解。
测试步骤:
位于重庆的 IPERF-CLIENT,第一次测试 UDP 报文
iperf3 -c IPERF-SERVER -p 12345 -b 10M -u
Connecting to host IPERF-SERVER, port 12345
[ 4] local 10.125.30.250 port 50136 connected to IPERF-SERVER port 12345
[ ID] Interval Transfer Bandwidth Total Datagrams
[ 4] 0.00-1.01 sec 1.10 MBytes 9.18 Mbits/sec 141
[ 4] 1.01-2.01 sec 1.20 MBytes 10.0 Mbits/sec 153
[ 4] 2.01-3.01 sec 1.19 MBytes 9.95 Mbits/sec 152
[ 4] 3.01-4.00 sec 1.19 MBytes 10.0 Mbits/sec 152
[ 4] 4.00-5.01 sec 1.19 MBytes 9.85 Mbits/sec 152
[ 4] 5.01-6.01 sec 1.21 MBytes 10.2 Mbits/sec 155
[ 4] 6.01-7.01 sec 1.19 MBytes 9.93 Mbits/sec 152
[ 4] 7.01-8.01 sec 1.20 MBytes 10.1 Mbits/sec 153
[ 4] 8.01-9.00 sec 1.18 MBytes 9.95 Mbits/sec 151
[ 4] 9.00-10.00 sec 1.20 MBytes 10.0 Mbits/sec 153
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 4] 0.00-10.00 sec 11.8 MBytes 9.92 Mbits/sec 0.000 ms 0/0 (0%)
[ 4] Sent 0 datagrams
iperf Done.
US 服务器端输出:
[ 5] local IPERF-SERVER port 12345 connected to IPERF-CLIENT port 50136
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 5] 0.00-1.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 1.00-2.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 2.00-3.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 3.00-4.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 4.00-5.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 5.00-6.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 6.00-7.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 7.00-8.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 8.00-9.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 9.00-10.00 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
[ 5] 10.00-10.21 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 5] 0.00-10.21 sec 0.00 Bytes 0.00 bits/sec 0.000 ms 0/0 (0%)
重庆这边换 TCP 报文:
iperf3 -c IPERF-SERVER -p 12345 -b 10M
Connecting to host IPERF-SERVER, port 12345
[ 4] local IPERF-CLIENT port 13889 connected to IPERF-SERVER port 12345
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.01 sec 1.38 MBytes 11.4 Mbits/sec
[ 4] 1.01-2.01 sec 1.25 MBytes 10.5 Mbits/sec
[ 4] 2.01-3.00 sec 1.38 MBytes 11.6 Mbits/sec
[ 4] 3.00-4.01 sec 1.25 MBytes 10.4 Mbits/sec
[ 4] 4.01-5.01 sec 1.25 MBytes 10.5 Mbits/sec
[ 4] 5.01-6.01 sec 1.50 MBytes 12.6 Mbits/sec
[ 4] 6.01-7.01 sec 1.38 MBytes 11.6 Mbits/sec
[ 4] 7.01-8.01 sec 1.25 MBytes 10.5 Mbits/sec
[ 4] 8.01-9.00 sec 1.25 MBytes 10.5 Mbits/sec
[ 4] 9.00-10.00 sec 1.50 MBytes 12.6 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-10.00 sec 13.4 MBytes 11.2 Mbits/sec sender
[ 4] 0.00-10.00 sec 13.3 MBytes 11.2 Mbits/sec receiver
iperf Done.
US 服务器端输出:
Accepted connection from IPERF-CLIENT, port 13885
[ 5] local IPERF-SERVER port 12345 connected to IPERF-CLIENT port 13889
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 194 KBytes 1.59 Mbits/sec
[ 5] 1.00-2.00 sec 2.02 MBytes 16.9 Mbits/sec
[ 5] 2.00-3.00 sec 1.54 MBytes 12.9 Mbits/sec
[ 5] 3.00-4.00 sec 1.25 MBytes 10.5 Mbits/sec
[ 5] 4.00-5.00 sec 1.25 MBytes 10.5 Mbits/sec
[ 5] 5.00-6.00 sec 1.50 MBytes 12.6 Mbits/sec
[ 5] 6.00-7.00 sec 1.25 MBytes 10.5 Mbits/sec
[ 5] 7.00-8.00 sec 1.38 MBytes 11.5 Mbits/sec
[ 5] 8.00-9.00 sec 1.25 MBytes 10.5 Mbits/sec
[ 5] 9.00-10.00 sec 1.41 MBytes 11.8 Mbits/sec
[ 5] 10.00-10.18 sec 291 KBytes 13.6 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-10.18 sec 0.00 Bytes 0.00 bits/sec sender
[ 5] 0.00-10.18 sec 13.3 MBytes 11.0 Mbits/sec receiver