iperf and jperf Memo

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, TCP port 5001
TCP window size:  169 KByte (default)
------------------------------------------------------------
[  3] local 127.0.0.1 port 35503 connected with 127.0.0.1 port 5001
[ ID] Interval       Transfer     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.08 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 GBytes  10.7 Gbits/sec
[  3]  9.0-10.0 sec  1.03 GBytes  8.87 Gbits/sec
[  3]  0.0-10.0 sec  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 Report:
[  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 the results into graphics.



Sample:
Run iperf server on VM, and run iperf client on 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 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 last datagram after 10 tries.
Done.

你可能感兴趣的:(NetWork,performance,iperf,jperf)