Iperf and Jperf Memo
Last Update:2018-07-17
Source: Internet
Author: User
Iperf
Home Page: http://sourceforge.net/projects/iperf/
refer Rul: http://blog.csdn.net/evenness/article/details/7371845 http://wenku.baidu.com/view/45c8342f915f804d2b16c117.html
Compile and install: 1. Download source from home Page http://downloads.sourceforge.net/project/iperf/iperf-2.0.5.tar.gz 2../configure; make; Make install
What It can do?
Test tcp:bandwidth Test Udp:bandwidth, delay, datagram loss.
TCP Sample: Server: # iperf-s 127.0.0.1 iperf:ignoring extra argument-127.0.0.1----------------------------------------------- -------------Server listening on TCP port 5001 TCP window size:85.3 KByte (default)------------------------------------ ------------------------ ... Client:
# iperf-c 127.0.0.1-i 1------------------------------------------------------------Client connecting to 127.0.0.1, TC P Port 5001 TCP window size: 169 KByte (default)------------------------------------------------------------[& nbsp 3] Local 127.0.0.1 port 35503 connected with 127.0.0.1 Port 5001 [ID] interval Transf er bandwidth [ 3] 0.0-1.0 sec 1.07 gbytes 9.22 Gbits/sec [ 3] 1.0-2.0 sec 1.07 gbytes 9.20 gbits/sec [ 3] 2.0-3.0 sec 1.22 gbytes 10.5 Gbits/sec [ 3] 3.0-4.0 sec 1.17 gbytes 10.0 gbits/sec [ 3] 4.0-5.0 sec 1.19 GBytes 10.2 gbits/sec [ 3] 5.0-6.0 sec 1.02 gbytes 8.76 gbits/sec [ 3] 6.0-7.0 sec 1 gbytes 9.30 gbits/sec [ 3] 7.0-8.0 sec 1.13 gbytes 9.70 gbits/sec [ 3] 8.0- 9.0 sec 1.24 GB10.7 gbits/sec [ 3] 9.0-10.0 sec 1.03 gbytes 8.87 gbits/sec [ 3] 0.0-10.0 s ytes ec 11.2 gbytes 9.65 gbits/sec
UDP Sample: Server: # iperf-s 127.0.0.1-u iperf:ignoring extra argument-127.0.0.1---------------------------------------------- --------------Server listening on UDP port 5001 receiving 1470 byte datagrams UDP buffer size:224 KByte (default)----- -------------------------------------------------------
Client: # iperf-c 127.0.0.1-i 1-u
------------------------------------------------------------
Client connecting to 127.0.0.1, UDP Port 5001
Sending 1470 byte datagrams
UDP buffer size:224 KByte (default)
------------------------------------------------------------
[3] Local 127.0.0.1 port 54740 connected with 127.0.0.1 Port 5001
[ID] Interval Transfer Bandwidth
[3] 0.0-1.0 sec 129 Kbytes 1.06 mbits/sec
[3] 1.0-2.0 sec 128 Kbytes 1.05 mbits/sec
[3] 2.0-3.0 sec 128 Kbytes 1.05 mbits/sec
[3] 3.0-4.0 sec 128 Kbytes 1.05 mbits/sec
[3] 4.0-5.0 sec 128 Kbytes 1.05 mbits/sec
[3] 5.0-6.0 sec 128 Kbytes 1.05 mbits/sec
[3] 6.0-7.0 sec 129 Kbytes 1.06 mbits/sec
[3] 7.0-8.0 sec 128 Kbytes 1.05 mbits/sec
[3] 8.0-9.0 sec 128 Kbytes 1.05 mbits/sec
[3] 9.0-10.0 sec 128 Kbytes 1.05 mbits/sec
[3] 0.0-10.0 sec 1.25 MBytes 1.05 mbits/sec
[3] Sent 893 datagrams
[3] Server:
[3] 0.0-10.0 sec 1.25 MBytes 1.05 mbits/sec 0.686 Ms 0/893 (0%)
Jperf:
Home Page: http://www.techrepublic.com/blog/linux-and-open-source/iperf-a-simple-but-powerful-tool-for-troubleshooting-networks/
What ' s Jperf? A tool writen by Java, Which call Iperf and drawn to the results into graphics.
Sample: Run Iperf server on VM, and run Iperf the client on the local pc:on VM: [Root@matt iperf-2.0.5]# iperf-s-u-------------------- ----------------------------------------Server listening on UDP port 5001 receiving 1470 byte datagrams UDP buffer size: 224 KByte (default)------------------------------------------------------------
On the local PC:
Iperf-c 10.100.18.49-u-P 1-i 1-p 5001-c-F m-b 1000.0m-t 30-t 1
------------------------------------------------------------
Client connecting to 10.100.18.49, UDP Port 5001
Sending 1470 byte datagrams
UDP buffer size:0.22 MByte (default)
------------------------------------------------------------
[3] Local 10.0.2.15 port 51616 connected with 10.100.18.49 Port 5001
[ID] Interval Transfer Bandwidth
[3] 0.0-1.0 sec 20.0 MBytes 20.0 mbytes/sec
[3] 1.0-2.0 sec 13.1 MBytes 13.1 mbytes/sec
[3] 2.0-3.0 sec 13.9 MBytes 13.9 mbytes/sec
[3] 3.0-4.0 sec 12.6 MBytes 12.6 mbytes/sec
[3] 4.0-5.0 sec 14.0 MBytes 14.0 mbytes/sec
[3] 5.0-6.0 sec 10.3 MBytes 10.3 mbytes/sec
[3] 6.0-7.0 sec 11.8 MBytes 11.8 mbytes/sec
[3] 7.0-8.0 sec 11.3 MBytes 11.3 mbytes/sec
[3] 8.0-9.0 sec 14.1 MBytes 14.1 mbytes/sec
[3] 9.0-10.0 sec 9.31 MBytes 9.31 mbytes/sec
[3] 10.0-11.0 sec 10.5 MBytes 10.5 mbytes/sec
[3] 11.0-12.0 sec 10.7 MBytes 10.7 mbytes/sec
[3] 12.0-13.0 sec 13.0 MBytes 13.0 mbytes/sec
[3] 13.0-14.0 sec 10.3 MBytes 10.3 mbytes/sec
[3] 14.0-15.0 sec 9.73 MBytes 9.73 mbytes/sec
[3] 15.0-16.0 sec 10.5 MBytes 10.5 mbytes/sec
[3] 16.0-17.0 sec 12.1 MBytes 12.1 mbytes/sec
[3] 17.0-18.0 sec 9.35 MBytes 9.35 mbytes/sec
[3] 18.0-19.0 sec 10.6 MBytes 10.6 mbytes/sec
[3] 19.0-20.0 sec 10.1 MBytes 10.1 mbytes/sec
[3] 20.0-21.0 sec 9.54 MBytes 9.54 mbytes/sec
[3] 21.0-22.0 sec 9.33 MBytes 9.33 mbytes/sec
[3] 22.0-23.0 sec 9.53 MBytes 9.53 mbytes/sec
[3] 23.0-24.0 sec 10.6 MBytes 10.6 mbytes/sec
[3] 24.0-25.0 sec 11.0 MBytes 11.0 mbytes/sec
[3] 25.0-26.0 sec 12.1 MBytes 12.1 mbytes/sec
[3] 26.0-27.0 sec 9.55 MBytes 9.55 mbytes/sec
[3] 27.0-28.0 sec 9.93 MBytes 9.93 mbytes/sec
[3] 28.0-29.0 sec 13.1 MBytes 13.1 mbytes/sec
[3] 29.0-30.0 sec 12.6 MBytes 12.6 mbytes/sec
[3] 0.0-30.0 sec 345 MBytes 11.5 mbytes/sec
[3] Sent 245749 datagrams
[3] Warning:did not receive ack of the last datagram after tries.
Done.