[LARTC] Bandwidth monitoring tool

Andreas Unterkircher unki at netshadow.at
Fri Jun 17 08:19:36 CEST 2005


You can do this with iptraf. You can call it with

iptraf -s{yourinterface} -t1 -B

and it will output per port statistics in it's logfile for 1 minute (-t1) that
looks like this:


TCP/22: 564 packets, 101772 bytes total, 13.57 kbits/s; 341 packets, 24968
bytes incoming, 3.32 kbits/s; 223 packets, 76804 bytes outgoing, 10.23 kbits/s

TCP/80: 727 packets, 469337 bytes total, 62.57 kbits/s; 329 packets, 29763
bytes incoming, 3.97 kbits/s; 398 packets, 439574 bytes outgoing, 58.60
kbits/s

UDP/53: 176 packets, 22362 bytes total, 2.97 kbits/s; 88 packets, 11181 bytes
incoming, 1.48 kbits/s; 88 packets, 11181 bytes outgoing, 1.48 kbits/s

TCP/25: 20 packets, 5768 bytes total, 2.71 kbits/s; 11 packets, 4675 bytes
incoming, 2.18 kbits/s; 9 packets, 1093 bytes outgoing, 0.47 kbits/s

You can parse this and create some graphs for example with rrdtool.

Cheers,
Andreas

Omry Yadan (omry_y at inter.net.il) schrieb:
>
> Hi.
>
> I am trying to shape my upstream bandwidth, mostly per port. and I am
> having some problems getting things to work the way I want them to.
>
> before I throw my configuration at you guys ;), I`d like to debug it by
> myself - but I was not able to find a tool that allow me to
>
> monitor current bandwidth usage per port (and preferably even per port+ip).
>
> I want to know what is the current bandwidth passing through port 80
> (all connections), and in port 80, I`d like to
>
> know what is the badnwidth usage per IP (regardless of the number of
> sockets that are opened from that IP).
>
> anyone?
>
>
>     thanks.
>
>        Omry.
>
> _______________________________________________
> LARTC mailing list
> LARTC at mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>
>



More information about the LARTC mailing list