Re: [Snac] M/O Bit reflection behavior of draft-hui-stub-router-ra-flag-02

Ted Lemon <mellon@fugue.com> Wed, 17 April 2024 15:25 UTC

Return-Path: <mellon@fugue.com>
X-Original-To: snac@ietfa.amsl.com
Delivered-To: snac@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 302BDC14F69C for <snac@ietfa.amsl.com>; Wed, 17 Apr 2024 08:25:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fugue-com.20230601.gappssmtp.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KW1G4uCq2hiv for <snac@ietfa.amsl.com>; Wed, 17 Apr 2024 08:25:54 -0700 (PDT)
Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 22C4BC14F697 for <snac@ietf.org>; Wed, 17 Apr 2024 08:25:53 -0700 (PDT)
Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-6eb7ee5a776so2207401a34.3 for <snac@ietf.org>; Wed, 17 Apr 2024 08:25:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fugue-com.20230601.gappssmtp.com; s=20230601; t=1713367553; x=1713972353; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iV7u2VV3ArWYF9P/PgEGC2UVFCiUA3MOpxNpStb3Sv4=; b=xpcRdNpZayRwNX5lJrepDruRQjaXApgzKs/zq+8Vuu/1uBuqTexpq0wpS7XZ1Qa1f3 7PZij00xaIOw/GBsn4vMzYeKGgTucwcIm1sLzozwPdkNjUOwGRIDF3XgCDm7UVx4HXXu xD/0/XVTN5Vol5qXIplueICazGU1tI1uokRuBaEcqH5EKf/HwxkRDVxxkCvBz2JnZ+qF wBN3nWIT2i917EsJW6mvUV86Ci9S4A/wYgpN/vWEl4iAfsOoQHNh8ppWBMkAqswtfSCU 5TETvngtHgPRpr4Skex2Sm5vhbU+wQvuIcSizZd0tEB8Bhw+paoZ2EVhZwVi0Fc7zz4I dvMw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713367553; x=1713972353; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iV7u2VV3ArWYF9P/PgEGC2UVFCiUA3MOpxNpStb3Sv4=; b=YPFFm13l5mI6QgZ1dpY6xlBVKWS7x+8pMj3+PhKQwp/+VoGbgXq8Zlb/ibOE5m4DWl +HTvko9cqw8VsLx+Ym77+aTX6kPapsxbXPMxpt0SswNj50tN8cOfizifZyptoCAxcIKg sQQtr3me4diGBUnpbEj8BIx/vFS7nxxdZ9Kk5vA9ogT/Ha4O+/u/fEBLi7kVscFFTHbj 4wBXlh+I0l0as1RIBMW7iR9Ahbf28V9fDOWS4MYjIlAjv/5egwAzYi0gNphL5YD7Ychf ztxrfgzLRNSUPWaYgIkHnLeNTSqColGirPYJ//AW9IvEQBTEKfFmVxrzzT9997IxV3e/ QC8A==
X-Gm-Message-State: AOJu0Yx+fGXq0k5qwHg6vHedLSsJI8ZAqWy1uAm02GKe3vPl+a/0kxAL /3eHlu4gGisQXMliqKCNOnCftSAKlEz6EO3hz2GvFpBe9ALzOZ52zJfJjJb/XQ3hMQig+/LQXky J1QXbbkikqK4ONt+6VSg/v5BVpP0wm0M8nul8jmHjlLug2R82
X-Google-Smtp-Source: AGHT+IHYRp21Ur3rGp/9PPOUVKx63rAirFdrGkFgVzD0gtHHe9wnkbwsfOMI9KpmMz6B//Ir9IkTREUGtIaHNZVBXmU=
X-Received: by 2002:a9d:6243:0:b0:6ea:30bc:a6b5 with SMTP id i3-20020a9d6243000000b006ea30bca6b5mr18821443otk.22.1713367553036; Wed, 17 Apr 2024 08:25:53 -0700 (PDT)
MIME-Version: 1.0
References: <D993DD7C-4133-4C9A-B9BD-D38A37CC8A4F@gmail.com> <DU0P190MB1978A6D7BBCE565E0C9018F7FD2C2@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM> <DU0P190MB1978D701C90820D8DB97CCEDFD332@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM> <46119458-8B82-4DE0-A5BC-C58F64436FDB@gmail.com> <CAPt1N1mXSPR=7XwyobZhOSZppFohjJd-8DirqM6QFYihQXbvDQ@mail.gmail.com> <DU0P190MB1978F520A848CB9F32AA2385FD082@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM> <CAPt1N1=c5_GHXqqGFzTKrRdg9x1wOgq7Vw=Q0+FsyTHEgSQS8A@mail.gmail.com> <20240417114328.GA18918@unix-ag.uni-kl.de> <CAPt1N1=eyR6f_5UOn2N3g79QyJcur4jw18MJiCy34vMBu9O1SA@mail.gmail.com> <20240417141618.GA5099@unix-ag.uni-kl.de>
In-Reply-To: <20240417141618.GA5099@unix-ag.uni-kl.de>
From: Ted Lemon <mellon@fugue.com>
Date: Wed, 17 Apr 2024 11:25:42 -0400
Message-ID: <CAPt1N1=2Zqw9rSV0F-Mr1+888ht8-_F_Ykg_hABw6h=JJKHZBA@mail.gmail.com>
To: Erik Auerswald <auerswal@unix-ag.uni-kl.de>
Cc: SNAC ML <snac@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000005e724906164c7852"
Archived-At: <https://mailarchive.ietf.org/arch/msg/snac/f1htEpiGqRlHRcdvU1xYpiGiqYo>
Subject: Re: [Snac] M/O Bit reflection behavior of draft-hui-stub-router-ra-flag-02
X-BeenThere: snac@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Mailing list for discussing problems relating to the automatic connection of stub networks to existing infrastructure networks. " <snac.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/snac>, <mailto:snac-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/snac/>
List-Post: <mailto:snac@ietf.org>
List-Help: <mailto:snac-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/snac>, <mailto:snac-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Apr 2024 15:25:55 -0000

I think that that is an unfortunate way to characterize what we are
discussing.

The behavior of the M and O bits isn’t defined anywhere.  Modern hosts have
had to adapt to this.  During the discussions we had in Brisbane the
consensus was that they do now handle inconsistent M&O bits correctly.

If you are aware of current implementation behaviors that are contrary to
this, we need to know about that, so please do share that information.
However, experiences from the early 2000s probably aren’t cause for
concern—the fact that you had that experience then suggests that
implementers did too, and updated their code accordingly.

Op wo 17 apr 2024 om 10:16 schreef Erik Auerswald <
auerswal@unix-ag.uni-kl.de>

> Hi Ted,
>
> the problem I mentioned introduced rogue IPv6 routers ("Internet
> Connection Sharing") that sent RAs without M or O flags, but the network
> actually required DHCPv6, with correct RAs sent by the legitimate subnet
> router with set M and O flags.  There was only one (redundant) DHCPv6
> server involved.
>
> The clients received a legitimate RA and configured themselves via DHCPv6.
> Then they received a rogue RA, forgot the DHCPv6 address, and created
> a new address via SLAAC in a different subnet.  This then repeated.
> Hilarity ensued.
>
> The unusually large amount of DHCPv6 requests was the first thing to come
> to attention when troubleshooting the WLAN problems.
>
> This is from quite a few years back, the network in question uses IPv6
> since 2003 (mostly dual-stack with IPv4).
>
> It does not matter how hosts are supposed to cope with inconsistent RAs.
> It only matters how they do cope.  Back in the day, they did not cope
> well.
>
> I'd think the question is whether SNAC wants to play nice, or wants to
> play rough ("if you manage your network, you must use RA Guard or suffer
> the consequences").
>
> Br,
> Erik
>
> P.S. IMHO some protection against IPv6 attacks is required for every
>      managed network, be it RA Guard and friends, or dropping all frames
>      with an Ethertype of 0x86DD.  Not every managed network is properly
>      protected, though.
>
>
> On Wed, Apr 17, 2024 at 08:37:04AM -0400, Ted Lemon wrote:
> > The rogue router problem was really competing dhcp servers, so I don’t
> > think we have to worry about that.  The current design is very much
> > informed by that experience—you may recall that I was the author of one
> of
> > the more popular dhcp servers at that time…  :)
> >
> > Op wo 17 apr 2024 om 07:43 schreef Erik Auerswald <
> > auerswal@unix-ag.uni-kl.de>
> >
> > > Hi,
> > >
> > > back in the day, introducing rogue routers (i.e., Windows home systems
> > > with their default behavior back then) into a managed WLAN using DHCPv6
> > > resulted in client-side problems.  The clients would alternate between
> > > DHCPv6 address assignment and SLAAC for the rogue prefix(es).
> > >
> > > Today, RA Guard should help.  It might interfere with SNAC, though. ;-)
> > >
> > > Br,
> > > Erik
> > >
> > >
> > > On Tue, Apr 16, 2024 at 10:22:52PM -0400, Ted Lemon wrote:
> > > > Hm. The consensus that seemed to arise in discussion in the room(s)
> is
> > > that
> > > > we can't really fix this, and it doesn't make sense to try. That is,
> we
> > > > shouldn't track the M&O bits sent by other routers. If they send
> > > > inconsistent bits, too bad, the host stack already has to deal with
> that
> > > > anyway.
> > > >
> > > > On Tue, Apr 16, 2024 at 6:15 AM Esko Dijk <
> esko.dijk@iotconsultancy.nl>
> > > > wrote:
> > > >
> > > > > > is the current requirement that the M&O bits be consistent
> between
> > > RAs
> > > > > actually a good idea? And separately, is it necessary?
> > > > >
> > > > >
> > > > >
> > > > > To get it 100% consistent all the time seems to make a solution
> complex
> > > > > (as our past discussions about reboot corner cases show). It would
> > > need a
> > > > > distributed consensus algorithm.
> > > > >
> > > > >
> > > > >
> > > > > One simpler solution is
> > > > >
> > > > > 1 - copy/mirror the latest values advertised by a non-stub-router,
> if
> > > any
> > > > >
> > > > > 2 - when a stub router boots/reboots, first send an RS to get
> > > > > non-stub-routers on the link to respond to see their M/O flags, if
> any
> > > > > (this RS is anyway needed after startup, to know whether existing
> > > on-link
> > > > > prefixes are “suitable” in the SNAC sense).
> > > > >
> > > > > 3 - if no regular routers are found (only SNAC stub routers) – then
> > > > > advertise M&O flags with value ‘0’ . This may conflict with other
> stub
> > > > > routers that advertise ‘1’ – but only for a limited time.
> > > > >
> > > > >   (Eventually these stub routers will switch back to ‘0’ or to the
> > > > > RA-advertised value, if such a non-stub-router RA ever shows up
> again
> > > in
> > > > > the future)
> > > > >
> > > > >
> > > > >
> > > > > Agree with your 3 questions but I don’t know answers. Btw what does
> > > > > “DHCPv6 is wanted” mean here – that the client or the higher layer
> > > > > controlling this client gets a sudden instruction or preference for
> > > > > obtaining a DHCPv6 based address/prefix/information ?
> > > > >
> > > > >
> > > > >
> > > > > Esko
> > > > >
> > > > >
> > > > >
> > > > > *From:* Ted Lemon <mellon@fugue.com>
> > > > > *Sent:* Wednesday, March 20, 2024 08:07
> > > > > *To:* Suresh Krishnan <suresh.krishnan@gmail.com>
> > > > > *Cc:* Esko Dijk <esko.dijk@iotconsultancy.nl>; snac@ietf.org;
> 6MAN <
> > > > > 6man@ietf.org>
> > > > > *Subject:* Re: [Snac] M/O Bit reflection behavior of
> > > > > draft-hui-stub-router-ra-flag-02
> > > > >
> > > > >
> > > > >
> > > > > [Adding 6man to this discussion for reasons that will shortly
> become
> > > > > apparent]
> > > > >
> > > > >
> > > > >
> > > > > Suresh and I had a conversation offline about persisting the M&O
> bits
> > > > > advertised by other routers. Suresh accumulated quite a few battle
> > > scars
> > > > > over this back in the day. I think we could solve this problem, but
> > > just
> > > > > the stub router bit isn't going to be enough to solve it. And then
> the
> > > > > question came up: is the current requirement that the M&O bits be
> > > > > consistent between RAs actually a good idea? And separately, is it
> > > > > necessary?
> > > > >
> > > > >
> > > > >
> > > > > I don't think we can answer that here, but it might be worth
> trying to
> > > get
> > > > > an answer to that before proceeding with a complicated solution. At
> > > present
> > > > > at least Apple BRs do not in fact reflect the M&O bits received
> from
> > > > > infrastructure routers, and we haven't had any bug reports as a
> result.
> > > > > That's not a particularly good indication, but I think it's worth
> > > > > investigating what DHCPv6 IA_NA and IA_PD and Information-Request
> > > clients
> > > > > actually do when the M&O bits go away.
> > > > >
> > > > >
> > > > >
> > > > > There are three questions I would ask:
> > > > >
> > > > > 1. What happens if the M&O bits are advertised, and a DHCPv6
> client of
> > > any
> > > > > of the three types starts, and then a new RA is seen with the
> relevant
> > > > > bit(s) clear?
> > > > >
> > > > > 2. What happens if the M&O bits are not advertised, but DHCPv6 is
> > > wanted,
> > > > > and then an RA shows up with the M&O bits set. Does DHCPv6 start?
> > > > >
> > > > > 3. What happens if the we get an RA with the M&O bits set, and
> then an
> > > RA
> > > > > with them clear, and /then/ an indication that DHCPv6 is wanted?
> > > > >
> > > > >
> > > > >
> > > > > Some of these questions may not make sense in all situations, but I
> > > think
> > > > > this is the complete set of questions. Suresh's and my belief is
> that
> > > once
> > > > > a client has started doing DHCPv6, it's going to continue to do so
> > > even if
> > > > > it sees an RA with the relevant bit(s) clear. But it would be good
> to
> > > test
> > > > > that theory.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Wed, Mar 20, 2024 at 12:12 PM Suresh Krishnan <
> > > > > suresh.krishnan@gmail.com> wrote:
> > > > >
> > > > >
> > > > >
> > > > > > On Mar 20, 2024, at 11:03 AM, Esko Dijk <
> esko.dijk@iotconsultancy.nl
> > > >
> > > > > wrote:
> > > > > >
> > > > > > PS:
> > > > > >
> > > > > >> What the draft-hui-stub-router-ra-flag could do is just refer to
> > > this
> > > > > one, perhaps?
> > > > > >
> > > > > > My remark may not be fully clear. What I meant here is that the
> > > sentence
> > > > > stating that the values of M and O are mirrored, could refer to
> this
> > > > > behavior with a sentence like "as defined in
> [draft-ietf-snac-simple]."
> > > > > > This avoids explaining the mirroring in much detail within
> > > > > draft-hui-stub-router-ra-flag. And it directly answers the
> question the
> > > > > reader may have on how this works in detail.
> > > > >
> > > > > Thanks for that clarification Esko. That will certainly clarify the
> > > > > intended behavior for this draft. I do have further concerns
> regarding
> > > race
> > > > > conditions copying bits between stub routers, but that is not a
> > > concern for
> > > > > this draft.
> > > > >
> > > > > Regards
> > > > > Suresh
>