root@wl ~/src # wget http://downloads.sourceforge.net/project/iperf/iperf-2.0.5.tar.gz root@wl ~/src # tar xvfz iperf-2.0.5.tar.gz root@wl ~/src # cd iperf-2.0.5 root@wl ~/src/iperf-2.0.5 # vi ./Makefile.in 1) AM_CXXFLAGS = -lrt AM_FLAGS = -lrt root@wl ~/src/iperf-2.0.5 # vi ./src/Makefile.in 1) AM_CXXFLAGS = -lrt AM_FLAGS = -lrt root@wl ~/src/iperf-2.0.5 # vi ./compat/Makefile.in 1) AM_CXXFLAGS = -lrt AM_FLAGS = -lrt root@wl ~/src/iperf-2.0.5 # ./configure root@wl ~/src/iperf-2.0.5 # make root@wl ~/src/iperf-2.0.5 # make install1) Makefile.in 에서, AM_CXXFLAGS 와 AM_FLAGS 의 -Wall 을 -lrt 로 변경한다. Solaris 에서는 nanosleep() 이 rt 라이브러리에 있다. -Wall 은 GCC용 옵션이기 때문에 CC에서 컴파일시 삭제해야 한다.
iperf -s [-u] [-i n] [-p 포트번호] [-w n[KM]] [-D]
iperf -c 서버IP [-u] [-i] [-p 포트번호] [-w n[KM]] [-b n[KM]] [-t n] [-n n[KM]]
-u UDP를 사용. -b 옵션을 반드시 사용해야 한다. -i 출력 간격(초). -p 바인드할 포트 번호. 기본값은 [-p 5001]서버/클라이언트 옵션
-D 데몬으로 실행. -d 양방향 테스트 -b 대역폭. 기본값은 [-b 1M] -n 보낼 전송 회수. -t 대신 사용 -t 보낼 시간(초). 기본값은 [-t 10] -w 윈도 크기(버퍼크기).자세한 사항은 [iperf -h] 나 iperf(1)을 참조하자.
windy@wl2 ~ $ iperf -s ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 48.0 KByte (default) ------------------------------------------------------------ [ 4] local x.x.x.x port 5001 connected with x.x.x.x port 33019 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.0 sec 60.9 MBytes 50.9 Mbits/sec Ctrl+C클라이언트
windy@wl ~ $ iperf -c wl2 ------------------------------------------------------------ Client connecting to wl2, TCP port 5001 TCP window size: 48.0 KByte (default) ------------------------------------------------------------ [ 3] local x.x.x.x port 33019 connected with x.x.x.x port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 60.9 MBytes 50.9 Mbits/sec
windy@wl2 ~ $ iperf -s -u ------------------------------------------------------------ Server listening on UDP port 5001 Receiving 1470 byte datagrams UDP buffer size: 56.0 KByte (default) ------------------------------------------------------------ [ 3] local x.x.x.x port 5001 connected with x.x.x.x port 2055 [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams [ 3] 0.0-10.0 sec 11.9 MBytes 10.0 Mbits/sec 0.264 ms 0/ 8505 (0%) Ctrl+C클라이언트
windy@wl ~ $ iperf -c wl2 -u -b 10M ------------------------------------------------------------ Client connecting to wl2, UDP port 5001 Sending 1470 byte datagrams UDP buffer size: 8.00 KByte (default) ------------------------------------------------------------ [1912] local x.x.x.x port 2055 connected with x.x.x.x port 5001 [ ID] Interval Transfer Bandwidth [1912] 0.0-10.0 sec 11.9 MBytes 9.99 Mbits/sec [1912] Server Report: [1912] 0.0-10.0 sec 11.9 MBytes 10.0 Mbits/sec 0.263 ms 0/ 8505 (0%) [1912] Sent 8505 datagramsIPerf 를 UDP 로 실행시키면, Jitter 와 Datagram Loss 를 측정한다. 이를 통해 회선 품질을 알 수 있다.
|
|
Copyright © 2004-2012 Jo HoSeok. All rights reserved. |