Iperf Command to Test Speed, Performance and Bandwidth of Network in Linux
Last Updated :
10 Jul, 2020
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
iperf.fr/iperf-download.php and execute the following command.
tar -xvf iperf-2.0.5.tar.gz
cd iperf-2.0.5
./configure
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 192.165.2.137 -u 100
Here,
- c signifies the client mode.
- 192.165.2.137 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.

After the successful execution of the command, it prints the bandwidth and other network-related details.
Similar Reads
How to Audit Network Performance, Security, and Troubleshooting in Linux Network security auditing is the process of assessing a network's health by analyzing and studying the flow of data through the network. Network auditing is one of the critical steps to detect potential security threats and errors within the network. Security audits are either performed manually or
6 min read
Deprecated Linux Networking Commands and Their Replacements Here, we'll discuss some of the networking commands that were deprecated in Linux. This doesn't mean the command no longer works, but you can't install it by default nor reach it from the main networking menu. Instead, it has been supplanted by newer commands that do the same thing. Remember, though
4 min read
Command-Line Tools and Utilities For Network Management in Linux If you are thinking of becoming a system administrator, or you are already a system admin, then this article is for you.As a system admin, your daily routine will include configuring, maintaining, troubleshooting, monitoring, securing networks, and managing servers within data centers. Network confi
8 min read
How use Nmon and "Java Nmon Analyzer" for Monitor Linux Performance Nmon or Nigelâs Performance Monitor is a tool that is used for the purpose of monitoring resources on Linux, x86_64, Mainframe, etc. With the help of Nmon, you can monitor CPUs, disks, memory, and a couple of other things. There are two modes of Nmon: Online mode: This is used for the purpose of rea
3 min read
Network configuration and troubleshooting commands in Linux Computers are often connected to each other on a network. They send requests to each other in the form of packets that travel from the host to the destination. Linux provides various commands from network configuration and troubleshooting. Network Configuration and Troubleshooting Commands in Linux
5 min read