Open In App

Iperf Command to Test Speed, Performance and Bandwidth of Network in Linux

Last Updated : 10 Jul, 2020
Like Article

There is a great degree of flex in how the packets are delivered and overall bit rate and packet payload size can be controlled. iperf is a tool that is used to perform network performance measurement and tuning. iperf is an open-source software which is written in C language. Jperf is a GUI version for doing the same job. The core concept work behind Jperf is the iPerf.

How Does iperf Works?

It works either in server or client mode. Normally the client will send the data and the server will receive it. So we have client and server, and iPerf is going to find out the Bandwidth, performance, and speed of the network between both. It generates a packet that can be either TCP or UDP and send those packets to the server and calculate the timing of sending from client-side, timing when the packet reaches to server-side, size of the packet, etc. and on the behalf of that data, iPerf calculates the Speed, Performance, and Bandwidth of Network.

How to install iperf?

For RedHat based Linux

yum install iperf

For Other Linux based Operating Systems, download the tool from and execute the following command.

tar -xvf iperf-2.0.5.tar.gz
cd iperf-2.0.5
make install

How to run iPerf?

As iperf works with both client and server, we must start a server before starting the client. Just run the below command on the server machine and it will initiate the server.

iperf -s

Here, -s signifies the server mode.

Initiate the client by using the following command.

iperf -c -u 100


  • c signifies the client mode.
  • signifies the IP address of the server to which client is to be connected.
  • u signifies generating the UDP packets.
  • 100 signifies the length of UDP data payload.

iperf tool

After the successful execution of the command, it prints the bandwidth and other network-related details.

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads