How to use iperf utility to measure the bandwidth between servers ?

In this article I am going to show how to run the iperf tool to check the Bandwidth of network.

Step 1 : I installed the iperf utility on my RHEL machine. I issued below command to check the network bandwidth between NFS client (Linux65-2) and NFS server (

[root@Linux65-2 iperf-2.0.5]# iperf -c -f m -t 20
connect failed: Connection refused

In above command : -f is the format which here is megabytes.

-t is the time in seconds to transmit for.

It was giving me the error. I google about it and found that I need to install it on server as well.

Step 2 : I installed the utility on NFS server(Linux65-1 as well. On server I issued it in server mode using below command.

[root@Linux65-1 iperf-2.0.5]# iperf -s
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
[  4] local port 5001 connected with port 35411
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-20.0 sec  11.3 GBytes  4.85 Gbits/sec

Step 3 : Simultaneously on client end I issued the command mentioned in step 1.

[root@Linux65-2 iperf-2.0.5]# iperf -c -f m -t 20
Client connecting to, TCP port 5001
TCP window size: 0.02 MByte (default)
[  3] local port 35411 connected with port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-20.0 sec  11564 MBytes  4850 Mbits/sec

I can see that I am getting the Bandwidth of 4.85 Gbits/sec between my NFS client and server.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s