Iperf návod

Iperf homepage:  http://dast.nlanr.net/Projects/Iperf/

Jak zjistim zda bezi program:

$ ps -Af | grep iperf

iperf 5441 1 0 09:39:11 ? 0:00 iperf -s -D
iperf 5444 1 0 09:39:22 ? 0:00 iperf -s -u –D

vyznačené řádky je to co nas zajíma, proces 5441 je TCP a proces 5444 je UDP

Spusteni jako demona:

$ iperf -s -D >> iperftcp.log

$ iperf -s -u -D >> iperfudp.log

Vypsani logu:

$ cat iperftcp.log

$ cat iperfudp.log

Když se chcete podívat co se zapisuje do logu v průběhu měření:

$ tail -f  iperftcp.log

$ tail -f   iperfudp.log

Ukazky logu iperf.log

Client connecting to 80.188.39.118, TCP port 5001
TCP window size: 48.0 KByte (default)
------------------------------------------------------------
[  0]  0.0- 0.0 sec  0.00 Bytes    0.00 bits/sec
[  0]  0.0- 0.5 sec  72.0 KBytes  1.30 Mbits/sec
[  0]  0.0- 2.1 sec  96.0 KBytes   366 Kbits/sec
[  0]  0.0-12.7 sec  2.42 MBytes  1.60 Mbits/sec
[  0]  0.0-12.9 sec  2.42 MBytes  1.58 Mbits/sec
[  0]  0.0-12.7 sec  2.38 MBytes  1.58 Mbits/sec
[  0]  0.0-12.6 sec  2.41 MBytes  1.60 Mbits/sec
[  0]  0.0-10.2 sec   296 KBytes   237 Kbits/sec
[  0]  0.0-12.7 sec  2.41 MBytes  1.60 Mbits/sec

 Jak testovat na strane klienta:

iperf -c x.x.x.x 

– pripoji se na server a za 10 sec otestuje rychlost

iperf -b 5M -c x.x.x.x 

– pripoji se na server a za 10 sec otestuje rychlost zda dosahne 5MB


My status

Want this badge?