Netdev List
 help / color / mirror / Atom feed
From: "Mattias Rönnblom" <hofors@lysator.liu.se>
To: netdev@vger.kernel.org
Subject: SNMP OutOctets counter semantics
Date: Sun, 18 Apr 2010 14:16:17 +0200	[thread overview]
Message-ID: <87bpdh7y7i.fsf@isengard.friendlyfire.se> (raw)

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

                 reply	other threads:[~2010-04-18 12:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bpdh7y7i.fsf@isengard.friendlyfire.se \
    --to=hofors@lysator.liu.se \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox