Iperf is a tool for testing network quality, such as bandwidth, throughput and so on.
The installation on ubuntu is easy, using the command : apt-get install iperf.
On linux ,we can also install jperf , a graphic interface for iperf, Just download the package from website, and perform " ./jperf.sh" , without other installaton steps.
With jperf, iperf is easy to use, so I don't intend to write turial for jperf.
On android perform, we can donwload iperf.apk and install it, But we has to use the command pattern. Here are some basic use tutorial.
(1) By default, the Iperf client connects to the Iperf server on the TCP port 5001 and the bandwidth displayed by Iperf is the bandwidth from the client to the server.
If you want to use UDP tests, use the -u argument.
The -d and -r Iperf client arguments measure the bi-directional bandwidths.
client side:
# iperf –c serverIP
server side:
#iperf –s
(2) Data formatting: (-f argument)
The -f argument can display the results in the desired format: bits(b), bytes(B), kilobits(k), kilobytes(K), megabits(m), megabytes(M), gigabits(g) or gigabytes(G).
Generally the bandwidth measures are displayed in bits (or Kilobits, etc ...) and an amount of data is displayed in bytes (or Kilobytes, etc ...).
client side : # iperf –c serverIP –f b
server side: #iperf –s
(3) Bi-directional bandwidth measurement: (-r argument)
The Iperf server connects back to the client allowing the bi-directional bandwidth measurement. By default, only the bandwidth from the client to the server is measured.
If you want to measure the bi-directional bandwidth simultaneously, use the -d keyword. (See next test.)
client side : # iperf –c serverIP –r
server side: #iperf –s
(4) UDP tests: (-u), bandwidth settings (-b)
client side : # iperf –c serverIP –u –b 10m
server side: #iperf –s –u –i 1
Reference:
http://openmaniak.com/iperf.php