Bandwith Monitoring Tools

por | 5 diciembre, 2008

I did a lot of research about [tag]bandwidth[/tag] [tag]monitoring[/tag] [tag]tools[/tag] 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 [tag]TCP[/tag] 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 [tag]ports[/tag], [tag]connection[/tag] state, idle time, and bandwidth usage.

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

[[email protected] tcptrack-1.1.5]#./tcptrack -i eth0
[[email protected] tcptrack-1.1.5]#./tcptrack -i eth0 port 443
[[email protected] tcptrack-1.1.5]#
./tcptrack -i eth0 src 10.10.10.1
[roo[email protected] tcptrack-1.1.5]#
./tcptrack -i eth0 dst 10.10.10.1

Result:
tcptrack

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.

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

[[email protected] pktstat-1.8.1]#./pktstat
[[email protected] pktstat-1.8.1]#./pktstat -i eth0
[[email protected] pktstat-1.8.1]#./pktstat --help

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.
[[email protected] download]#wget
http://www.gropp.org/bwm-ng/bwm-ng-0.5.tar.gz
[[email protected] download]#tar xvfz bwm-ng-0.5.tar.gz
[[email protected] download]#cd bwm-ng-0.5
[[email protected] bwm-ng-0.5]#./configure
[[email protected] bwm-ng-0.5]#make
[[email protected] bwm-ng-0.5]#make install
#(I skip this step)

[[email protected] bwm-ng-0.5]#cd src
[[email protected] bwm-ng-0.5]#./bwm-ng -a
[[email protected] 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.
[[email protected] download]#wget
http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
[[email protected] download]#tar xvfz iftop-0.17.tar.gz
[[email protected] download]#cd iftop-0.17
[[email protected] iftop-0.17]#./configure
[[email protected] iftop-0.17]#make
[[email protected] iftop-0.17]#make install
#(I skip this step)

[[email protected] iftop-0.17]#./iftop -B -P -i eth0
[[email protected] iftop-0.17]#./iftop --help

iftop

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

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

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

[[email protected] download]#cd /usr/local/bin
[[email protected] bin]#./speedometer.py -rx eth0 -tx eth0
[[email protected] bin]#./speedometer.py --help

Speedmeter

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
[[email protected] download]#wget
http://cyberelk.net/tim/data/xmlto/stable/xmlto-0.0.18.tar.bz2
[[email protected] download]#tar xvfj xmlto-0.0.18.tar.bz2
[[email protected] download]#cd xmlto-0.0.18
[[email protected] xmlto-0.0.18]#./configure
[[email protected] xmlto-0.0.18]#make
[[email protected] xmlto-0.0.18]#make install

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

[[email protected] cbm-0.1]#/usr/local/bin/cbm