Linux tools/Iperf

Iperf 실행하기

쭈꾸댕이 2008. 12. 9. 15:30

[ 실행 ]

서버 : # iperf -s -u -D   -> 데몬 모드로 실행

클라이언트 : # iperf -c server_host[IP] -u -b 전송할용량(ex. 100m) -n 전송소요시간(ex.100m-100분)

 

 


[1] 서버실행

[root@test bin]# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------

 

 


[2] 클라이언트 측


(1) 10초간(디폴트)의 성능측정
C:\Documents and Settings\celltwo>iperf -c 192.169.10.100
------------------------------------------------------------
Client connecting to 192.169.10.100, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[1912] local 192.169.10.100 port 3495 connected with 192.169.10.100 port 5001
[ ID] Interval       Transfer     Bandwidth
[1912]  0.0-10.0 sec  98.8 MBytes  82.8 Mbits/sec

C:\Documents and Settings\celltwo>

 

(2) window size 변경
C:\Documents and Settings\celltwo>iperf -w 100k -c 192.169.10.100
------------------------------------------------------------
Client connecting to 192.169.10.100, TCP port 5001
TCP window size:  100 KByte
------------------------------------------------------------
[1912] local 192.169.10.100 port 3525 connected with 192.169.10.100 port 5001
[ ID] Interval       Transfer     Bandwidth
[1912]  0.0-10.0 sec   111 MBytes  93.2 Mbits/sec

C:\Documents and Settings\celltwo>

 


(3) 시간을 100초로 지정
C:\Documents and Settings\celltwo>iperf -t 100 -c 192.169.10.100
------------------------------------------------------------
Client connecting to 192.169.10.100, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[1912] local 192.169.10.100 port 3552 connected with 192.169.10.100 port 5001
[ ID] Interval       Transfer     Bandwidth
[1912]  0.0-100.0 sec   928 MBytes  77.8 Mbits/sec

C:\Documents and Settings\celltwo>


(4)1초 간격으로 결과 측정
C:\Documents and Settings\celltwo>iperf -c 192.169.10.100 -i 1
------------------------------------------------------------
Client connecting to 192.169.10.100, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[1912] local 192.169.10.100 port 3643 connected with 192.169.10.100 port 5001
[ ID] Interval       Transfer     Bandwidth
[1912]  0.0- 1.0 sec  10.1 MBytes  85.0 Mbits/sec
[1912]  1.0- 2.0 sec  10.3 MBytes  86.2 Mbits/sec
[1912]  2.0- 3.0 sec  10.3 MBytes  86.4 Mbits/sec
[1912]  3.0- 4.0 sec  10.2 MBytes  85.3 Mbits/sec
[1912]  4.0- 5.0 sec  10.1 MBytes  84.9 Mbits/sec
[1912]  5.0- 6.0 sec  10.2 MBytes  85.3 Mbits/sec
[1912]  6.0- 7.0 sec  10.2 MBytes  85.9 Mbits/sec
[1912]  7.0- 8.0 sec  10.2 MBytes  85.9 Mbits/sec
[1912]  8.0- 9.0 sec  9.55 MBytes  80.2 Mbits/sec
[1912]  9.0-10.0 sec  9.84 MBytes  82.6 Mbits/sec
[1912]  0.0-10.0 sec   101 MBytes  84.6 Mbits/sec

C:\Documents and Settings\celltwo>