Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

counting bytes sent to a host

0 views
Skip to first unread message

Chris

unread,
Dec 18, 2009, 5:18:43 AM12/18/09
to
Hi,
I want to count the number of bytes sent to a particular host
(filtering on ip) over a period of time to calculate a rough estimate
of the bandwidth that is being used. I was thinking of using snoop to
count the packets sent, then based on 1500 packet size calculating the
bandwidth used, is there a better way to do this?
Cheers

hume.sp...@bofh.ca

unread,
Dec 18, 2009, 5:41:58 AM12/18/09
to
Chris <cconn...@lycos.com> wrote:
> count the packets sent, then based on 1500 packet size calculating the
> bandwidth used, is there a better way to do this?

I'd think an IPfilter pass/log rule would be less effort.

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/

Wolfgang Ley

unread,
Dec 18, 2009, 7:15:32 AM12/18/09
to Chris
Hi,

If you want to get exact data then using IP QoS and the flowacct module
would be the solution. See "man -s7ipp flowacct" (and the more general
manpages on ipqos and ipqosconf).

Bye,
Wolfgang.

0 new messages