Netdev List
 help / color / mirror / Atom feed
* SNMP OutOctets counter semantics
@ 2010-04-18 12:16 Mattias Rönnblom
  0 siblings, 0 replies; only message in thread
From: Mattias Rönnblom @ 2010-04-18 12:16 UTC (permalink / raw)
  To: netdev

Hi,

after having a look at the SNMP counters (exposed in /proc/net/snmp
among other places), I have a question on the meaning of the
"OutOctets" counter. I'm looking at 2.6.33.

According to include/linux/snmp.h IPSTATS_MIB_OUTPKTS is
"OutRequests". The same file refers to
"draft-ietf-ipv6-rfc2011-update-10.txt", which I believe is what
became RFC 4293. According to both of those standard documents,
"OutRequest" counts IP packets coming from upper (sub-)layers (a
transport layer, ICMP etc) into the IP layer.

This corresponds well with how this counter is actually incremented in
the code, as far as I can tell.

In 2.6.31, a corresponding byte counter "OutOctets" was introduced,
which in the Linux kernel counted the same packets as "OutRequest",
but was a byte counter.

In RFC 4293 (and its draft) there is indeed a OutOctets, but this is a
byte counter for packets _leaving_ the IP layer into the link layer.
This counter in the standard corresponds to the "OutTransmits" packet
counter, which is not implemented in the Linux kernel.

My question is: is this simply a bug, or does the kernel draw its
counter semantics from some other standard?

Best regards,
     Mattias

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-18 12:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-18 12:16 SNMP OutOctets counter semantics Mattias Rönnblom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox