Bandwidth Monitoring Tools
Posted by Planet Malaysia on August 9, 2006
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!
Possibly Related Posts:
- lppasswd: Unable to open passwd file: Permission denied
- Missing /var/log/lastlog
- Telnet service_limit error
- How To Capture PUTTY Session Log
- How to Add Date And Time To Your Bash History on SuSE Linux
Comments
30 Responses to “Bandwidth Monitoring Tools”
Leave a Reply
[...] Bandwidth Monitoring Tools (tags: monitoring network networking tools sysadmin tcp snmp) [...]
Why’d you skip ntop!!?
you forgot about MRTG, it can even make graphs and show usage of individual PC’s
it does require SNMP though
Yes, it is useful info, and congrats on making the Digg Homepage
Nice piece of information. I usually use iftop and iptraf to monitor my network. Furthermore, there is also some other very powerful tools, such as nmap and fping available in linux.
Very recommended to try them out.
You missed Firewall Analyzer, Netflow Analyzer….kewl tools for b/w & traffic analysis
here is the most monitoring system details
http://wiki.debian.org/Network_Monitoring
Is there any tool that measure the bandwidth usage by IP? I want to identify which host are letting my network slow on some times.
For Windows users PRTG Traffic Grapher (is probably the best alternative to MRTG on Linux. It also has a packet sniffer built in so it can track bandwidth usage by IP.
There are graphics explaining the technical differences between SNMP Monitoring (which MRTG does), Packet Sniffing and NetFlow Monitoring (offered by Cisco routers)
see:
http://www.paessler.com/prtg/infographic/
Another useful realtime util is iptraf. It can be used in conjunction with rddtool as well. http://freshmeat.net/projects/iptraf/
Does anyone know of a linux network monitoring tool like iftop which also shows which process/application is sending the traffic?
TCPView in Windows is a good example of a program that does this.
You missed cacti also…
http://www.cacti.net
see the jnettop .
Cacti is the best. I also like vnstat a lot, check it out!
[...] My blog article about Bandwidth Monitoring have link to digg for the last 2 days. It have more than 1100 digg and used to display on digg main page. [...]
This is number 1 for me. It does everything including looking behind passwords and sniff and monitor and test speed and warn and …simply everything. I don’t know if you new about it, but now you do
http://www.pmasoft.net/englisch/onlineeye_prof.htm
[...] Planet Malaysia Blog » Blog Archive » Bandwidth Monitoring Tools 5 useful linux bandwidth monitoring tools (tags: bandwidth _post weblog tools sysadmin network performance monitoring management howto linux) [...]
Thanks for visited my page and comments. Yes there are many other monitoring tools as well. Personally I used cacti & iptraf as you mention.
[...] 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.read more | digg story [...]
[...] 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.read more | digg story [...]
[...] 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.read more | digg story [...]
better than this article i found here http://www.debianhelp.co.uk/monitortools.htm
[...] Top Contents: http://www.planetmy.com/blog/?p=248, http://www.planetmy.com/blog/?p=229, http://www.planetmy.com/blog/?p=148 [...]
[...] read more | digg story [...]
Let me tell you guys the reason.
Malaysia can still offer 384K bandwidth? Popular plan at 512K & 1Mbps?
Advanced and developed countries are offering over 25Mbps.
including Singapore, New Zealand, Australia, Hong Kong, China.
That’s after the government push for competition and unbundling.
(some even before unbundling are also running at >4Mbps)
Still Malaysia want to claim to be IT hub? gosh! No wonder Malaysia Telcos are making money…and economic booming (just a little)
All at the expense of people welfare
Guess you people should start to push them.
[...] Bandwidth Monitoring Tools Tags: admin linux monitor net [...]
I need help regarding setting up linux router.
i install fedora core 6 as the operating system.
There is a problem occur when i start the system. I do not have the ability to view most of the pages on internet. For the time being the only pages that i can load is the jaring.my. I can send ping request but when i try to view the pages using web browser the browser said problem loading pages, connection timed out. Sometimes it takes too long to load the pages.
I really hope you can help me out on this.
[...] Planetmy [...]
ipaudit as well,
http://blog.thomdask.com/2009/10/15/bandwidth-meter/