BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} netstat larrd graph on Linux incorrect



In <4325FD50.4030600@micron.com> Tom Schmidt <tschmidt@micron.com> writes:

>Has anyone corrected the known issue on Linux where the "netstat -s" 
>output reports TCP throughput in segments rather than bytes?  This makes 
>the LARRD graphs reporting of bits/second incorrect.

This happens on other platforms also, I believe. In fact, as I recall the
LARRD code, the only platform where the netstat graphs are right are
Solaris.

The problem is that quite a few systems don't count the number of bytes
sent/received, but only the number of packets ("segments") going in and
out. And packets can var from 64-1500 bytes.

>A rough conversion of segments to bytes would be to multiply by the MSS 
>of 1460 (assuming MTU=1500).  Should this conversion go somewhere in the 
>netstat-bf.sh code or elsewhere?

If you want to use this guesstimate, then you can put it into the
calculations performed by RRD at the server end, in larrd-grapher.cgi.
It already performs a bytes->bits conversion. Personally, I think 
that would be misleading. Hobbit uses a different format of the
RRD file with separate counters for packets and bytes, so you can
get the correct BPS values for those platforms that report data, and
you'll know you're only counting packets on the other platforms. 


Henrik

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index