Find Network bandwidth in Linux

16 Jul

There are lot of tools available to calculate the bandwidth of the neetwork.



f you want to monitor network throughput on the command line interface, use nload application. It is a console application which monitors network traffic and bandwidth usage in real time. It visualizes the in and outgoing traffic using two graphs and provides additional info like total amount of transferred data and min/max network usage.

Install nload on a CentOS/RHEL/Red Hat/Fedora Linux

First, turn on EPEL repo on a CentOS or RHEL based system. Type the following yum command to install nload:
# yum install nload

Install nload on a Debian or Ubuntu Linux

Type the following apt-get command:
$ sudo apt-get install nload



iptraf – Interactive Colorful IP LAN Monitor


iptraf { [ -f ] [ -q ] [ { -i iface | -g | -d iface | -s iface | -z
iface | -l iface } [ -t timeout ] [ -B [ -L logfile ] ] ] | [ -h ] }


iptraf is an ncurses-based IP LAN monitor that generates various net-
work statistics including TCP info, UDP counts, ICMP and OSPF informa-
tion, Ethernet load info, node stats, IP checksum errors, and others.

If the command is issued without any command-line options, the program
comes up in interactive mode, with the various facilities accessed
through the main menu.


Iperf is a tool to measure the bandwidth and the quality of a network link. Jperf can be associated with Iperf to provide a graphical frontend written in Java.

The network link is delimited by two hosts running Iperf.

The quality of a link can be tested as follows:
– Latency (response time or RTT): can be measured with the Ping command.
– Jitter (latency variation): can be measured with an Iperf UDP test.
– Datagram loss: can be measured with an Iperf UDP test.

The bandwidth is measured through TCP tests.

To be clear, the difference between TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) is that TCP use processes to check that the packets are correctly sent to the receiver whereas with UDP the packets are sent without any checks but with the advantage of being quicker than TCP.
Iperf uses the different capacities of TCP and UDP to provide statistics about network links.

Another way

Without any tools still you can measure it by using “dd” command

dd if=/dev/zero bs=1k count=1 | ssh test@test ‘cat > /dev/null’ 

1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 2.5e-05 seconds, 41 MB/s




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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: