Iperf is an easy-to-use free command line tool that allows you to measure your network bandwidth by generating artificial traffic. Such a tool can be useful if you want to test whether the network speed is fast enough for a certain application or not. You can also use it to troubleshoot network related problems.

Latest posts by Michael Pietroforte (see all)

Iperf is quite a sophisticated tool with many options. Some of them are for network professionals who want to fine tune network devices. However, if you just want to measure the network bandwidth, you don't have to be a network expert to use Iperf.

First, you have to run Iperf on your server in server mode:

iperf -s

Iperf will respond like this:

------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------

Then you launch Iperf on your client:

iperf -c 10.0.0.5 -t 30

My test server had the IP address 10.0.0.5. You could also use the server name. The t option is for configuring the time interval that Iperf will probe the network performance between client and server. In this example I had to wait for 30 seconds until Iperf measured the network speed. Take note that during this time Iperf will send large amounts of data thru your network. So it is not a good idea to use this tool if your system or network is already quite busy. This was the output of Iperf in my example:

------------------------------------------------------------
Client connecting to 10.0.0.5, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[1912] local 10.0.0.211 port 1793 connected with 10.0.0.5 port 5001
[ ID] Interval Transfer Bandwidth
[1912] 0.0-30.0 sec 680 MBytes 190 Mbits/sec

In 30 seconds, 680 MB were transferred which corresponds to a network speed of 190 Mbits/sec. If you ever wondered how fast a virtual network under VMware Workstation is, then you know now. Both, my client and my server were virtual machines. Of course, I just measured the CPU power of my host system.

Subscribe to 4sysops newsletter!

Iperf is certainly a nice tool. It has many options allowing you to hunt down all kinds of network-related performance problems. However, I usually prefer tools with a graphical user interface, especially if I use them only once in a while. After not working with the tool for some time, I forgot its parameters and so I have to start reviewing its documentation again. If you know a free GUI tool with similar capabilities like Iperf, please let me know.

4 Comments
  1. Steve 16 years ago

    Hi , Saw your comment about a free GUI tool with similar capabilities like Iperf.

    Check out this Link : http://dast.nlanr.net/Projects/Jperf/

    U have a reat site, well done 🙂 & thx

  2. Steve, thanks a lot for the link. This is what I have been looking for. I wonder why didn’t find it earlier.

  3. abc 15 years ago

    jperf is GUI for Iperf

  4. niranchana 15 years ago

    we have tried it for first time with the wifi access point in our campus. we have got the results. but now we are not getting it. we are getting a message that connection is refused. does that mean they have blocked the port for security reasons? if so what is the port no?

Leave a reply

Your email address will not be published. Required fields are marked *

*

© 4sysops 2006 - 2023

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account