

Iftop uses the pcap library to capture the packets moving in and out of the network adapter, and then sums up the size and count to find the total bandwidth under use.Īlthough iftop reports the bandwidth used by individual connections, it cannot report the process name/id involved in the particular socket connection.

Iftop measures the data flowing through individual socket connections, and it works in a manner that is different from Nload. CentOS users need to get nload from Epel repositories. Installing Nload – Fedora and Ubuntu have got it in the default repos. Bandwidth per socket connection - iftop, iptraf, tcptrack, pktstat, netwatch, trafshow Overall bandwidth (batch style output) - vnstat, ifstat, dstat, collectlģ. Overall bandwidth - nload, bmon, slurm, bwm-ng, cbm, speedometer, netloadĢ. Here is a list of the commands, sorted by their features. Some of the tools like nload read the “/proc/net/dev” file to get traffic stats, whereas some tools use the pcap library to capture all packets and then calculate the total size to estimate the traffic load. The tools have different mechanisms of generating the traffic report. This makes it easy to detect a process that is overusing network bandwidth. Some of the commands, show the bandwidth used by individual processes. Incoming and outgoing traffic is shown separately. These tools monitor the traffic flowing through network interfaces and measure the speed at which data is currently being transferred. This post mentions some linux command line tools that can be used to monitor the network usage.
