All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Bandwidth monitoring tool
@ 2005-06-17  6:00 Omry Yadan
  2005-06-17 17:31 ` Nelson Castillo
  0 siblings, 1 reply; 4+ messages in thread
From: Omry Yadan @ 2005-06-17  6:00 UTC (permalink / raw)
  To: lartc

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@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: [LARTC] Bandwidth monitoring tool
@ 2005-06-17  6:19 Andreas Unterkircher
  2005-06-17  8:09 ` Andreas Unterkircher
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Unterkircher @ 2005-06-17  6:19 UTC (permalink / raw)
  To: lartc

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@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@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>
>

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-06-17 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-17  6:00 [LARTC] Bandwidth monitoring tool Omry Yadan
2005-06-17 17:31 ` Nelson Castillo
  -- strict thread matches above, loose matches on Subject: below --
2005-06-17  6:19 Andreas Unterkircher
2005-06-17  8:09 ` Andreas Unterkircher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.