[mrtg] Re: monitoring traffic in & out of Linux box
tony bourke
tony at vegan.net
Sun Nov 5 04:29:20 MET 2000
Hello Ragnar,
I wanted to double check, so I set up a little test. I ran a continuous
FTP from one machine to another:
gcc-2.95.2-sol8-sparc-local: 65147904 bytes 2.78 MB/s
gcc-2.95.2-sol8-sparc-local: 65147904 bytes 3.13 MB/s
gcc-2.95.2-sol8-sparc-local: 65147904 bytes 2.81 MB/s
I ran MRTG on the Linux machine and the Cisco switch the Linux machine was
connected to.
Switch:
973396800 3201972 64646 3205835 64724
973396500 3113714 62883 3116689 62938
973396200 3019427 61154 3159151 62925
973395900 3159151 62937 3159151 63888
Linux:
973396800 3194833 54656 3198528 54720
973396500 3095909 52969 3097773 52997
973396200 3018904 51806 3164114 53029
973395900 3164114 53036 3164114 54201
There were some minor differences all within 1% (if I did my math right),
which could be chocked up to statistical error, but it appears the Linux
results can be trusted. This was a 2.2 Kernel, but I believe the others
were ok too (I used MRTG on linux machines 2 years ago, never noticed a
problem).
Tony
On Sat, 4 Nov 2000, [iso-8859-1]
Ragnar Kjørstad wrote:
>
> On Sat, Nov 04, 2000 at 04:19:48PM -0500, tony bourke wrote:
> > > linux doesn't do network accounting on the number of bytes transfered,
> > > only the number of packets. (at least it used to). You can do byte
> > > accounting by using ipchains, but it's a little bit more work to setup.
> >
> > Are you sure about that? The ifconfig only shows packets, but I've always
> > been able to get accurate bps (bits per second) with MRTG and linux runing
> > ucd-snmpd. When ever I set up MRTG, i usually set it up on the switch and
> > the server, so I can compare the two. I'm pretty sure Linux has always
> > been ok for me, and this is dating back several years.
>
> OK, it appers to be fixed in linux-2.2, so my comment only apply to
> linux-2.0. (and still it returns number of bytes, but it is an estimate,
> from the number of packets transfered).
>
>
> --
> Ragnar Kjørstad
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive http://www.ee.ethz.ch/~slist/mrtg
> FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
> WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
>
-------------- -- ---- ---- --- - - - - - -- - - - - - -
Tony Bourke tony at vegan.net
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list