To install iperf in Ubuntu, it's a simple apt-get away:
$ sudo apt-get install iperfTo run the test, you'll need 2 machines. One to act as the server and the other as the client. Start by starting the server:
$ iperf -sIf there are no errors, we can then start the test by executing iperf in the client machine:
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
$ iperf -c server -t 10The argument -t 10 states that we want the test to run for only 10 seconds.
------------------------------------------------------------
Client connecting to server, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.0.100 port 40913 connected with 192.168.0.101 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 164 MBytes 138 Mbits/sec
There are other options which you can play with like:
-d ==> Do a bidirectional test simultaneously
-u ==> use UDP rather than TCP
View the list of options by executing:
$ iperf --helpThere's also a GUI wrapper written in Java for iperf available at http://code.google.com/p/xjperf/. It offers a nice GUI which allows you to choose different options to run iperf with and also displays output from iperf in a nice graph:
No comments:
Post a Comment