Re: [v6ops] RFC4861 question - short prefixes in PIOs

Brian E Carpenter <brian.e.carpenter@gmail.com> Wed, 26 June 2019 23:03 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 27D9E120169 for <ipv6@ietfa.amsl.com>; Wed, 26 Jun 2019 16:03:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rWM_lY194EKP for <ipv6@ietfa.amsl.com>; Wed, 26 Jun 2019 16:03:48 -0700 (PDT)
Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 971A112006B for <6man@ietf.org>; Wed, 26 Jun 2019 16:03:48 -0700 (PDT)
Received: by mail-pl1-x632.google.com with SMTP id m7so147368pls.8 for <6man@ietf.org>; Wed, 26 Jun 2019 16:03:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yRfhXoJHwvOxqNnW2eirt5NfO/XDdnIcdOc+o5zMgms=; b=Sq4RDuuOTqfGMJ2wFASamCyk37as1Tfv86nSaK/UbSeLzH28WOgoQu1YUIqlvcF5xT yqEN5vh2+lIwbio61zb65HdiSXfQo7+pIQyQqrJ5Vufq+waQ/h0k+wGyhkKosIpRZuwz zv49W2yQ4TFUrCXOPKSH9OYLSlLhXkRMYHtffd/1We7V1qPCCnKEfIoMl10PyoRBx3Pr CYlWLNwgD9vpvzZ6RdPKOghlcCw2NguGJdoZNR8ZRJJIZTD7b26VDBLO44BArU9IhmVF 9wOPynYrKN1GOud/DnyVAkUNBBYxU/Mr9qghro01l8eac7DjIxVPF0NqgKRs+JPSgiOB UDkg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yRfhXoJHwvOxqNnW2eirt5NfO/XDdnIcdOc+o5zMgms=; b=JOIHKaWXFZsOCyryRnICq+n10J4jp8DU4raafB6gcGUXbxgc4CwTgNFwUVOFgDV3R9 RxVVxaaF3lmk2D8E5VJoA3rd1mPjijFOuNEsBZevC8ftb6aj4df4EtOrIGb4vuLVDTtz dumJLrf66SjqdXJVmtjqGhtLqavLB8hnxavFz68kvbLBZFqQGU4c5JI7w9ilY11TecB/ i/NrT/X/vrapSNHwu+CQ5r0q/Umaa0lLTuyuGlCW3GWvij5/2EorsLkpPZ7/do+17bCV TW+rVrY+ZbHXZw+R0padSN++CEljo+raINFENORzSSRPb12H9H/X5Mo3iBqfMSGxXvDo Du2Q==
X-Gm-Message-State: APjAAAXCmnFJgoGlkLCud5Jo0Xq2klPWliAxHHuskhVQm1itVg/ErxPA eEmI/3TeW/Vn8DsjzYjIDio=
X-Google-Smtp-Source: APXvYqyvoYGKo2Vt/rtPLpjgCvFsZs2hXr1gFAi0QIt2N9HhI3MYBCg4T/jQ0CcLcScA1bK0o8Ovxw==
X-Received: by 2002:a17:902:a714:: with SMTP id w20mr641185plq.127.1561590227964; Wed, 26 Jun 2019 16:03:47 -0700 (PDT)
Received: from [192.168.178.30] (32.23.255.123.dynamic.snap.net.nz. [123.255.23.32]) by smtp.gmail.com with ESMTPSA id z4sm284998pfa.142.2019.06.26.16.03.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2019 16:03:47 -0700 (PDT)
Subject: Re: [v6ops] RFC4861 question - short prefixes in PIOs
To: David Farmer <farmer@umn.edu>, "Templin (US), Fred L" <Fred.L.Templin@boeing.com>
Cc: 6man <6man@ietf.org>, 神明達哉 <jinmei@wide.ad.jp>
References: <729f46ec4a8b419797e15bbdcac3e549@boeing.com> <CAJE_bqeXkyWec9-EG1QxS-1FeTyKS6-ONNOYhQK8gsQGwenaVQ@mail.gmail.com> <CAN-Dau35=8i0DAn1xd8nHJh9aAVZY12v3az9QUyXYXAtOQ9xeA@mail.gmail.com> <4b1cb44d708349dc8ff936bde9ebd21d@boeing.com> <CAN-Dau1ZZCe9z_kiDC_cO7+1gh+AnaFZ0YKTr+UJHm+WeRT+qg@mail.gmail.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <e785bda2-601d-63e4-07a7-7043ce2b0fcd@gmail.com>
Date: Thu, 27 Jun 2019 11:03:43 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2
MIME-Version: 1.0
In-Reply-To: <CAN-Dau1ZZCe9z_kiDC_cO7+1gh+AnaFZ0YKTr+UJHm+WeRT+qg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/ynLl3N9x8ZDJZkSlIYL3yedQNGs>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jun 2019 23:03:51 -0000

On 27-Jun-19 09:17, David Farmer wrote:
> Actually, I misspoke a little in my response to #4, it's not setting the next-hop destination for a destination prefix, for that you would use RIOs. It about setting the next-hop destination for traffic sourced from addresses covered by PIOs and this would override RFC4191 default router preferences. The gory details are discussed in section 3 of RFC8028. 
> 
> In other words, RFC8028 is about the routing of sources in PIOs, including ones with A=L=0, the routing of destinations is a subject of RIOs.
> 
> Brain and Fred, as the authors, can probably explain it better than I can.

I think that's right. The thrust of RFC8028 is to ensure that source address selection works appropriately in a multihomed host, as well as picking the appropriate first hop router. Fred Templin's requirement seems to be a little different.

   Brian

> 
> But, hope that helps.
> 
> On Wed, Jun 26, 2019 at 3:22 PM Templin (US), Fred L <Fred.L.Templin@boeing.com <mailto:Fred.L.Templin@boeing.com>> wrote:
> 
>     Thanks for your response, David:____
> 
>     __ __
> 
>     >> RFC 8028 updates RFC4861 and talks about A=L=0, it talks about this in Section 2.1;____
> 
>     __ __
> 
>     That does indeed look like the kind of behavior I am after, but how is it different than____
> 
>     RFC4191 RIOs? RIOs include a Preference value for each router that advertises the____
> 
>     prefix. Do we lose that feature by going with PIOs per RFC8028?____
> 
>     __ __
> 
>     Thanks - Fred____
> 
>     __ __
> 
>     *From:*David Farmer [mailto:farmer@umn.edu <mailto:farmer@umn.edu>]
>     *Sent:* Wednesday, June 26, 2019 12:01 PM
>     *To:* 神明達哉<jinmei@wide.ad.jp <mailto:jinmei@wide.ad..jp>>
>     *Cc:* Templin (US), Fred L <Fred.L.Templin@boeing.com <mailto:Fred.L.Templin@boeing..com>>; 6man <6man@ietf.org <mailto:6man@ietf.org>>
>     *Subject:* Re: [v6ops] RFC4861 question - short prefixes in PIOs____
> 
>     __ __
> 
>     Some additional comments regarding questions #3 and #4 are below; ____
> 
>     __ __
> 
>     On Wed, Jun 26, 2019 at 11:23 AM 神明達哉 <jinmei@wide.ad.jp <mailto:jinmei@wide.ad.jp>> wrote:____
> 
>         (I'm only copying 6man, as I believe it's purely a protocol spec
>         question)
> 
>         At Wed, 26 Jun 2019 15:56:36 +0000,
>         "Templin (US), Fred L" <Fred.L.Templin@boeing.com <mailto:Fred.L.Templin@boeing..com>> wrote:
>         >
>         > I have an RFC4861 question (several actually) on short prefixes in RA PIOs:
>         >
>         > 1) If a PIO includes a prefix with length less than 64 (e.g., 2001:db8::/32) and with L=1, does it
>         >
>         > mean that 2001:db8::/32 should be added to the interface prefix list?
> 
>         In my interpretation (ditto for subsequent questions), yes.____
> 
>     __ __
> 
>     +1____
> 
>      ____
> 
>         > 2) If yes to 1), does it mean that packets forwarded to the interface for any destination covered
>         >
>         > by 2001:db8::/32 will trigger Address Resolution instead of forwarding to a default router?
> 
>         Yes.____
> 
>     __ __
> 
>     +1____
> 
>      ____
> 
>         > 3) If the PIO instead has L=0, does it mean that 2001:db8::/32 is “associated” with the link but
>         > not necessarily “on-link”?
> 
>         I'm not sure how to interpret it (in particular I'm not sure what
>         "associated with the link" means), but my interpretation of L=0 is
>         that the RA doesn't say anything about the on-link-ness of that
>         prefix.  See also the description of the L flag in RFC4861:
> 
>               L              1-bit on-link flag.  [...]  When
>                              not set the advertisement makes no statement about
>                              on-link or off-link properties of the prefix.  In
>                              other words, if the L flag is not set a host MUST
>                              NOT conclude that an address derived from the
>                              prefix is off-link.  That is, it MUST NOT update a
>                              previous indication that the address is on-link.____
> 
>     __ __
> 
>     RFC 8028 updates RFC4861 and talks about A=L=0, it talks about this in Section 2.1;____
> 
>     __ __
> 
>        In some circumstances, both L and A might be zero.  If SLAAC is not
>        wanted (A=0) and there is no reason to announce an on-link prefix
>        (L=0), a PIO SHOULD be sent to inform hosts that they should use the
>        router in question as the first hop for packets with source addresses
>        in the PIO prefix.  An example case is the MIF router in Figure 1,
>        which could send PIOs with A=L=0 for the common prefix.  Although
>         this does not violate the existing standard [RFC4861], such a PIO has
>        not previously been common, and it is possible that existing host
>        implementations simply ignore such a PIO or that existing router
>        implementations are not capable of sending such a PIO.  Newer
>        implementations that support this mechanism should be updated
>        accordingly:
> 
>        o  A host SHOULD NOT ignore a PIO simply because both L and A flags
>           are cleared (extending Section 6.3.4 of [RFC4861]).
> 
>        o  A router SHOULD be able to send such a PIO (extending
>           Section 6.2.3 of [RFC4861]).____
> 
>      ____
> 
>         > 4) If yes to 3), does it mean that 2001:db8::/32 should be added to the IPv6 forwarding table
>         >
>         > as a “route-to-interface” with the receiving interface as the next hop?
> 
>         No.  See the second MUST NOT of the RFC4861 text cited above.____
> 
>     __ __
> 
>     I wouldn't call it a “route-to-interface” it should be a route pointing to the route as the next-hop.____
> 
>      ____
> 
>         > 5) Does A=1 have any meaning for prefixes with length less than 64? Or, must prefixes with
>         >
>         > length less than 64 set A=0?
> 
>         As far as RFC4861 is concerned, the A flag has no meaning, regardless
>         of the prefix length.  It only matters in RFC4862.  In terms of
>         RFC4862, whether "A=1 has any meaning for prefixes with length less
>         than 64" depends on the length of the IID of the link; if the prefix
>         length != 128-IIDLength, the validation rule 5.5.3 d) of RFC4862 makes
>         the prefix ignored.  If non-64 prefix length is invalid in terms of
>         RFC4862 in that sense, it'd be *safe* to avoid setting the A flag, but
>         the protocol specification doesn't say it *must* be so.____
> 
>     __ __
> 
>     +1 ____
> 
>      ____
> 
>         You may also want to check
>         https://tools.ietf.org/html/draft-jinmei-6man-prefix-clarify-00
>         I believe it clarifies many of the above questions.
> 
>         --
>         JINMEI, Tatuya____
> 
>         --------------------------------------------------------------------
>         IETF IPv6 working group mailing list
>         ipv6@ietf.org <mailto:ipv6@ietf.org>
>         Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
>         --------------------------------------------------------------------____
> 
> 
>     ____
> 
>     __ __
> 
>     -- ____
> 
>     ===============================================
>     David Farmer               Email:farmer@umn.edu <mailto:Email%3Afarmer@umn.edu>
>     Networking & Telecommunication Services
>     Office of Information Technology
>     University of Minnesota  
>     2218 University Ave SE        Phone: 612-626-0815
>     Minneapolis, MN 55414-3029   Cell: 612-812-9952
>     =============================================== ____
> 
> 
> 
> -- 
> ===============================================
> David Farmer               Email:farmer@umn.edu <mailto:Email%3Afarmer@umn.edu>
> Networking & Telecommunication Services
> Office of Information Technology
> University of Minnesota  
> 2218 University Ave SE        Phone: 612-626-0815
> Minneapolis, MN 55414-3029   Cell: 612-812-9952
> ===============================================
> 
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
>