Linux CMU-SNMP - assumes constant 308 bytes/packet

Mark Purcell (msp@pos.apana.org.au)
Sat, 12 Jul 1997 14:26:18 +1000 (EST)

Jurgen,

I have been using Linux CMU-SNMP and Tkined/Scotty for about 12 months
now and I would like to say thanks for the efforts you and the other
developers have put into developing such fine products and then
distributing them freely.

I have started using MRTG to produce some Web based management information
and have noticed a big difference between what CMU-SNMP and the Linux
kernel accounting (ipfw) produced. In particular CMU states that
incoming/outgoing traffic were the same, whilst ipfw states that incoming
traffic was a lot higher (as you'd expect).

I did a bit of digging around and found that under CMU-SNMP octets on all
interfaces is always 308 times the number of packets. Scanning the souce
for the majic 308 I found:

case IFINOCTETS:
(u_long)long_return = ifnet.if_ipackets * 308; /* XXX */

I understand why it was done this way however, maybe you could include a
note in the known bugs section, to the effect that Linux CMU-SNMP assumes
a constant 308 bytes/packet over all interfaces and that traffic flow is a
best guess estimate and isn't accurate.

Now that the Linux kernel accounting (ipfw) can produce more accurate
estimates of traffic flow are there any plans afoot to include this more
accurate data in the Linux CMU-SNMP port?

While I have the floor, tkined is great and I use it on a regular basis, a
'Web-based management' interface would make it even better :-) I have
been dumping the network map to a .gif using movie.tcl, but the results
could be better. With their plans for Tcl world dominiation Sun have
devloped a Tcl browser plug in. Is there potential that in the future we
may see tkined running inside a Tclk/Tk plugin on our favourite browser.
Now that would be neat!

Thanks again for the efforts of you and the teams.

Mark

---
Mark Purcell                       mark@purcell.aaa.net.au
                                   m.purcell@pos.apana.org.au
                                   mcitm@mhqe.mc.gov.au
                                   (02) 9907 3309

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.