Tcp 从iperf2输出中提取上载和下载带宽
我使用iperf2。iperf2已在STM32板上设置为服务器模式。客户端模式在Windows PC上使用。 我想接收上传和下载条件下的传输带宽统计数据Tcp 从iperf2输出中提取上载和下载带宽,tcp,stm32,ethernet,bandwidth,iperf,Tcp,Stm32,Ethernet,Bandwidth,Iperf,我使用iperf2。iperf2已在STM32板上设置为服务器模式。客户端模式在Windows PC上使用。 我想接收上传和下载条件下的传输带宽统计数据 iperf -c 192.168.21.25 -d -t 5 -f m: [220] local 192.168.21.1 port 60602 connected with 192.168.21.25 port 5001 [252] local 192.168.21.1 port 5001 connected with 192.168.2
iperf -c 192.168.21.25 -d -t 5 -f m:
[220] local 192.168.21.1 port 60602 connected with 192.168.21.25 port 5001
[252] local 192.168.21.1 port 5001 connected with 192.168.21.25 port 49155
[ ID] Interval Transfer Bandwidth
[252] 0.0- 5.0 sec 48.5 MBytes 81.3 Mbits/sec
[220] 0.0- 5.0 sec 23.1 MBytes 38.7 Mbits/sec
=========
iperf -c 192.168.21.25 -r -t 5 -f m
[216] local 192.168.21.1 port 60531 connected with 192.168.21.25 port 5001
[ ID] Interval Transfer Bandwidth
[216] 0.0- 5.0 sec 33.9 MBytes 56.8 Mbits/sec
[212] local 192.168.21.1 port 5001 connected with 192.168.21.25 port 49154
[212] 0.0- 5.0 sec 54.9 MBytes 92.1 Mbits/sec
在这些响应中检测上载和下载带宽的规则是什么?[]本地端口提供客户端端口,而与的连接提供服务器端口
因此,在示例1中,[220]
是从客户端到服务器的流量,[252]是从服务器到客户端的流量