mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Ahern <dsahern@kernel.org>
To: "Xiao, Jiguang" <Jiguang.Xiao@windriver.com>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"yoshfuji@linux-ipv6.org" <yoshfuji@linux-ipv6.org>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: This counter "ip6InNoRoutes" does not follow the RFC4293 specification implementation
Date: Wed, 16 Feb 2022 19:59:50 -0700	[thread overview]
Message-ID: <bcc98227-b99f-5b2f-1745-922c13fe6089@kernel.org> (raw)
In-Reply-To: <SJ0PR11MB5120426D474963E08936DD2493359@SJ0PR11MB5120.namprd11.prod.outlook.com>

On 2/16/22 3:36 AM, Xiao, Jiguang wrote:
> Hello,
> 
> I found a counter in the kernel(5.10.49) that did not follow the RFC4293
> specification. The test steps are as follows:
> 
>  
> 
> Topology:
> 
>   |VM 1| ------ |linux| ------ |VM 2|
> 
>  
> 
> Steps:
> 
> 1. Verify that “VM1” is reachable from “VM 2” and vice versa using ping6
> command.
> 
> 2. On “linux” node, in proper fib, remove default route to NW address
> which “VM 2” resides in. This way, the packet won’t be forwarded by
> “linux” due to no route pointing to destination address of “VM 2”.
> 
> 3. Collect the corresponding SNMP counters from “linux” node.
> 
> 4. Verify that there is no connectivity from “VM 1” to “VM 2” using
> ping6 command.
> 
> 5. Check the counters again.
> 
>  
> 
> The test results:
> 
> The counter “ip6InNoRoutes” in “/proc/net/dev_snmp6/” has not increased
> accordingly. In my test environment, it was always zero.
> 
>  
> 
> My question is :
> 
> Within RFC4293, “ipSystemStatsInNoRoutes” is defined as follows:
> 
>   “The number of input IP datagrams discarded because no route could be
> found to transmit them to their destination.”
> 
> Does this version of the kernel comply with the RFC4293 specification?
> 
>  

I see that counter incrementing. Look at the fib6 tracepoints and see
what the lookups are returning:

perf record -e fib6:* -a
<run test>
Ctrl-C
perf script

       reply	other threads:[~2022-02-17  2:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <SJ0PR11MB51207CBDB5145A89B8A0A15393359@SJ0PR11MB5120.namprd11.prod.outlook.com>
     [not found] ` <SJ0PR11MB51202FA2365341740048A64593359@SJ0PR11MB5120.namprd11.prod.outlook.com>
     [not found]   ` <SJ0PR11MB51209200786235187572EE0D93359@SJ0PR11MB5120.namprd11.prod.outlook.com>
     [not found]     ` <SJ0PR11MB5120426D474963E08936DD2493359@SJ0PR11MB5120.namprd11.prod.outlook.com>
2022-02-17  2:59       ` David Ahern [this message]
2022-02-24  9:04         ` Xiao, Jiguang
2022-03-09  2:16           ` Xiao, Jiguang
2022-03-09  4:50             ` David Ahern
2022-03-31  9:13               ` Pudak, Filip
2022-03-31 14:13                 ` David Ahern
2022-04-04  7:09                   ` Pudak, Filip
2022-04-04 15:09                     ` David Ahern

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=bcc98227-b99f-5b2f-1745-922c13fe6089@kernel.org \
    --to=dsahern@kernel.org \
    --cc=Jiguang.Xiao@windriver.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=yoshfuji@linux-ipv6.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

all inboxes | Powered by JetHome®