Bandwidth Monitoring Tools

Bandwidth Monitoring Tools

I did a lot of research about bandwidth monitoring tools recently.

Yesterday, I wrote about ibmonitor and bandwidthd in Bandwidth Monitoring blog. Today I just would like to share another great bandwidth monitoring tools.

Note: The installation guide below running either with RHEL3/4 and FC4.

A. tcptrack is a sniffer which displays information about TCP connections it sees on a network interface. It passively watches for connections on the network interface, keeps track of their state and displays a list of connections in a manner similar to the unix ‘top’ command. It displays source and destination addresses and ports, connection state, idle time, and bandwidth usage.


[root@planetmy download]#wget
http://www.rhythm.cx/~steve/devel/tcptrack/release/1.1.5/source/tcptrack-1.1.5.tar.gz
[root@planetmy download]#tar xvfz tcptrack-1.1.5.tar.gz
[root@planetmy download]#cd tcptrack-1.1.5
[root@planetmy tcptrack-1.1.5]#./configure
[root@planetmy tcptrack-1.1.5]#make
[root@planetmy tcptrack-1.1.5]#make install
#(I skip this step)
[root@planetmy tcptrack-1.1.5]#cd src

[root@planetmy tcptrack-1.1.5]#./tcptrack -i eth0
[root@planetmy tcptrack-1.1.5]#./tcptrack -i eth0 port 443
[root@planetmy tcptrack-1.1.5]#
./tcptrack -i eth0 src 10.10.10.1
[root@planetmy tcptrack-1.1.5]#
./tcptrack -i eth0 dst 10.10.10.1

Result:

B. pktstat display a real-time list of active connections seen on a network interface, and how much bandwidth is being used by what. Partially decodes HTTP and FTP protocols to show what filename is being transferred. X11 application names are also shown. Entries hang around on the screen for a few seconds so you can see what just happened. Also accepts filter expressions á la tcpdump.


[root@planetmy download]#wget
http://www.adaptive-enterprises.com.au/~d/software/pktstat/pktstat-1.8.1.tar.gz
[root@planetmy download]#tar xvfz pktstat-1.8.1.tar.gz
[root@planetmy download]#cd pktstat-1.8.1
[root@planetmy pktstat-1.8.1]#./configure
[root@planetmy pktstat-1.8.1]#make
[root@planetmy pktstat-1.8.1]#make install
#(I skip this step)

[root@planetmy pktstat-1.8.1]#./pktstat
[root@planetmy pktstat-1.8.1]#./pktstat -i eth0
[root@planetmy pktstat-1.8.1]#./pktstat --help

Result:

C. bwm-ng – Bandwidth Monitor NG is a small and simple console-based live bandwidth monitor for Linux, BSD, Solaris, Mac OS X and others.


[root@planetmy download]#wget
http://www.gropp.org/bwm-ng/bwm-ng-0.5.tar.gz
[root@planetmy download]#tar xvfz bwm-ng-0.5.tar.gz
[root@planetmy download]#cd bwm-ng-0.5
[root@planetmy bwm-ng-0.5]#./configure
[root@planetmy bwm-ng-0.5]#make
[root@planetmy bwm-ng-0.5]#make install
#(I skip this step)

[root@planetmy bwm-ng-0.5]#cd src
[root@planetmy bwm-ng-0.5]#./bwm-ng -a
[root@planetmy bwm-ng-0.5]#./bwm-ng --help

D. iftop display bandwidth usage on an interface. iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts.


[root@planetmy download]#wget
http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
[root@planetmy download]#tar xvfz iftop-0.17.tar.gz
[root@planetmy download]#cd iftop-0.17
[root@planetmy iftop-0.17]#./configure
[root@planetmy iftop-0.17]#make
[root@planetmy iftop-0.17]#make install
#(I skip this step)

[root@planetmy iftop-0.17]#./iftop -B -P -i eth0
[root@planetmy iftop-0.17]#./iftop --help

E. Speedmeter monitor network traffic or speed/progress of a file transfer.


Download and install Urwid (recommended)
[root@planetmy download]#wget
http://excess.org/urwid/urwid-0.9.5.tar.gz
[root@planetmy download]#tar xvfz urwid-0.9.5.tar.gz
[root@planetmy download]#cd urwid-0.9.5
[root@planetmy urwid-0.9.5]#python setup.py install

[root@planetmy download]#wget
http://excess.org/speedometer/speedometer.py
[root@planetmy download]#
cp speedometer.py /usr/local/bin/speedometer
[root@planetmy download]#cd /usr/local/bin
[root@planetmy bin]#chown root: speedometer
[root@planetmy bin]#chmod 755 speedometer

[root@planetmy download]#cd /usr/local/bin
[root@planetmy bin]#./speedometer.py -rx eth0 -tx eth0
[root@planetmy bin]#./speedometer.py --help

F. CBM the color bandwidth meter. CBM is a small program to display the traffic currently flowing through your network devices.


you may require xmlto for cbm to work
[root@planetmy download]#wget
http://cyberelk.net/tim/data/xmlto/stable/xmlto-0.0.18.tar.bz2
[root@planetmy download]#tar xvfj xmlto-0.0.18.tar.bz2
[root@planetmy download]#cd xmlto-0.0.18
[root@planetmy xmlto-0.0.18]#./configure
[root@planetmy xmlto-0.0.18]#make
[root@planetmy xmlto-0.0.18]#make install

[root@planetmy download]#wget
http://www.isotton.com/utils/cbm/download/cbm-0.1.tar.gz
[root@planetmy download]#tar xvfz cbm-0.1.tar.gz
[root@planetmy download]#cd cbm-0.1
[root@planetmy cbm-0.1]#./configure
[root@planetmy cbm-0.1]#make
[root@planetmy cbm-0.1]#make install

[root@planetmy cbm-0.1]#/usr/local/bin/cbm

Enjoy and hope this is useful!

This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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