1.简述
Iperf 是一个 TCP/IP 和 UDP/IP 的性能测量工具,通过调谐各种参数可以测试TCP的最大带宽,并报告带宽、延迟,最大段和最大传输单元大小等统计信息。Iperf可以运行于Linux/BSD、Unix及Windows等操作系统。
2.使用
window:
iperf3.exe -s
客户端:
iperf3 -c 192.168.208.200 -t 60 -P 6
iperf3 -c 192.168.208.200 -t 60 -P 6 -w 8K
3.原理分析
客户端与服务器互换,抓包,两者差异241M ===》908M。
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.208.200, port 22238
[ 5] local 192.168.208.209 port 5201 connected to 192.168.208.200 port 22239
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 106 MBytes 892 Mbits/sec
[ 5] 1.00-2.00 sec 105 MBytes 880 Mbits/sec
[ 5] 2.00-3.00 sec 114 MBytes 954 Mbits/sec
[ 5] 3.00-4.00 sec 114 MBytes 956 Mbits/sec
[ 5] 4.00-5.00 sec 106 MBytes 895 Mbits/sec
[ 5] 5.00-6.00 sec 113 MBytes 950 Mbits/sec
[ 5] 6.00-7.00 sec 105 MBytes 882 Mbits/sec
[ 5] 7.00-8.00 sec 98.1 MBytes 822 Mbits/sec
[ 5] 8.00-9.00 sec 111 MBytes 930 Mbits/sec
[ 5] 9.00-10.00 sec 109 MBytes 918 Mbits/sec
[ 5] 10.00-10.04 sec 3.93 MBytes 958 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-10.04 sec 0.00 Bytes 0.00 bits/sec sender
[ 5] 0.00-10.04 sec 1.06 GBytes 908 Mbits/sec receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
4.socket流程为什么达不到iperf测速性能
加入讨论
|