Iperf test TCP bandwidth

Source: Internet
Author: User
# iperf -c 2xx.1xx.1xx.1xx -p 5555  -B 172.16.28.173 -i 1 -t 10------------------------------------------------------------Client connecting to 2xx.1xx.1xx.1xx, TCP port 5555Binding to local address 172.16.28.173TCP window size: 16.0 KByte (default)------------------------------------------------------------[  3] local 172.16.28.173 port 5555 connected with 211.160.178.10 port 5555[ ID] Interval       Transfer     Bandwidth[  3]  0.0- 1.0 sec  0.00 Bytes  0.00 bits/sec[  3]  1.0- 2.0 sec  0.00 Bytes  0.00 bits/sec[  3]  2.0- 3.0 sec  0.00 Bytes  0.00 bits/sec[  3]  3.0- 4.0 sec   128 KBytes  1.05 Mbits/sec[  3]  4.0- 5.0 sec  0.00 Bytes  0.00 bits/sec[  3]  5.0- 6.0 sec  0.00 Bytes  0.00 bits/sec[  3]  6.0- 7.0 sec  0.00 Bytes  0.00 bits/sec[  3]  7.0- 8.0 sec   128 KBytes  1.05 Mbits/sec[  3]  8.0- 9.0 sec  0.00 Bytes  0.00 bits/sec[  3]  9.0-10.0 sec  0.00 Bytes  0.00 bits/sec[  3]  0.0-10.9 sec   384 KBytes   289 Kbits/sec# iperf -c 211.160.178.10 -p 5555  -B 101.82.96.114  -i 1 -t 10------------------------------------------------------------Client connecting to 2xx.1xx.1xx.1xx, TCP port 5555Binding to local address 101.82.96.114TCP window size: 16.0 KByte (default)------------------------------------------------------------[  3] local 101.82.96.114 port 5555 connected with 211.160.178.10 port 5555[ ID] Interval       Transfer     Bandwidth[  3]  0.0- 1.0 sec  0.00 Bytes  0.00 bits/sec[  3]  1.0- 2.0 sec  0.00 Bytes  0.00 bits/sec[  3]  2.0- 3.0 sec  0.00 Bytes  0.00 bits/sec[  3]  3.0- 4.0 sec  0.00 Bytes  0.00 bits/sec[  3]  4.0- 5.0 sec  0.00 Bytes  0.00 bits/sec[  3]  5.0- 6.0 sec  0.00 Bytes  0.00 bits/sec[  3]  6.0- 7.0 sec   128 KBytes  1.05 Mbits/sec[  3]  7.0- 8.0 sec  0.00 Bytes  0.00 bits/sec[  3]  8.0- 9.0 sec  0.00 Bytes  0.00 bits/sec[  3]  9.0-10.0 sec   128 KBytes  1.05 Mbits/sec[  3] 10.0-11.0 sec  0.00 Bytes  0.00 bits/sec[  3] 11.0-12.0 sec  0.00 Bytes  0.00 bits/sec[  3] 12.0-13.0 sec  0.00 Bytes  0.00 bits/sec[  3] 13.0-14.0 sec  0.00 Bytes  0.00 bits/sec[  3]  0.0-14.1 sec   384 KBytes   223 Kbits/sec

C:\Users\Administrator>D:\cifs\tools\iperf-2.0.5-cygwin\iperf.exe -s -p 5555------------------------------------------------------------Server listening on TCP port 5555TCP window size: 64.0 KByte (default)------------------------------------------------------------[  4] local 10.12.23.47 port 5555 connected with 101.82.96.114 port 5555[ ID] Interval       Transfer     Bandwidth[  4]  0.0-10.2 sec   384 KBytes   307 Kbits/sec[  4] local 10.12.23.47 port 5555 connected with 101.82.96.114 port 5555[  4]  0.0-32.2 sec   384 KBytes  97.6 Kbits/sec[  4] local 10.12.23.47 port 5555 connected with 119.6.254.189 port 12895[  4]  0.0-14.6 sec   384 KBytes   215 Kbits/sec[  4] local 10.12.23.47 port 5555 connected with 119.6.254.189 port 27603[  4]  0.0-10.9 sec   384 KBytes   288 Kbits/sec[  4] local 10.12.23.47 port 5555 connected with 101.82.96.114 port 5555[  4]  0.0-14.4 sec   384 KBytes   218 Kbits/sec

Do not set the-B bandwidth parameter. Otherwise, the UDP mode will be mistaken.

When the-B parameter is specified, the tcp client will also try to bind the local Nic IP address with the-p Parameter port (originally this port number, in client mode, the port of the iperf server is specified and reused ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.