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

Mark Smith <markzzzsmith@gmail.com> Thu, 27 June 2019 08:01 UTC

Return-Path: <markzzzsmith@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 40957120221 for <ipv6@ietfa.amsl.com>; Thu, 27 Jun 2019 01:01:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.498
X-Spam-Level:
X-Spam-Status: No, score=-0.498 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, FROM_LOCAL_NOVOWEL=0.5, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 gAJypst50FIe for <ipv6@ietfa.amsl.com>; Thu, 27 Jun 2019 01:01:45 -0700 (PDT)
Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (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 D2E99120130 for <ipv6@ietf.org>; Thu, 27 Jun 2019 01:01:45 -0700 (PDT)
Received: by mail-oi1-x22c.google.com with SMTP id t76so916699oih.4 for <ipv6@ietf.org>; Thu, 27 Jun 2019 01:01:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=AQjz9eV29F8BJoJMkqrIwqaixiBWwbO21TCKpYhE800=; b=jyfjLFHXFksaATywVD40zvwJZy8YjMPyfnk/zWbBGXvpTcDozvF/oJ1Vovww/WJC/l B1UpkfB8lc1ze8YNqI3RXxuo6jXNkdcXpBTUad7s5V7QUzqDGkC4K9PX5svYkknILfQG U3Lpy59azdtZDYtpsYsgrjSSb2+sodek46Nwa+NhdR/f+nm50JR/N+rct5GdpHGUFDAK +4oBd+oBml2c45JYkssF5fX9Azqtm4/Q3uOdEu2G42oqYo//mN82hhgNuzvoWiXUU7aa GMTbLeirt+VM0iMeIa6ZsMYlHg5DCNgmjJ/bIukLUYIW91Abg2dC970H10fNBTs7JPKs 9fvg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=AQjz9eV29F8BJoJMkqrIwqaixiBWwbO21TCKpYhE800=; b=eizDi1qVgFyY1fgvIgixhMmvkefwolDYV1A8aLnpyusdBmwXf/LdsrV4DfzGX0IBmm L2vsQMTFaRy1uPU0s2jbn9l1HPEE3A8p35uCQhDreYazNF9omFXnB2PSv10ucI0zAAB9 9edtyIv0Lyq3o7Prl02GNkiXDVcApGUA33oVlOIsC53D2HQN87K0QxyyP0/j8UeaFWzs LRKT/EfiwtyI/ddmOr51o2ktp8kF36z/c3c1aWlJwS55YbA+P2oVE4w5cz7AlFQ6II/K rAHmDYXsjZmQeI8vssOhLBTOiuin2e2Faf8ny9tVtioQVJSc3YahrQd810QxVik/L0wR +jkw==
X-Gm-Message-State: APjAAAXEgcoKrGyQr6LQ6BCSd+mYeBSOalYCIKX3p+BaUfXzu9rdKyea lpGv69WtU/SGjuy/AUE8yZTQ5YYAsCfEs+W4jIQ=
X-Google-Smtp-Source: APXvYqwn/jPT+4HXwVaA3V2MAcOejLY3iN4JpzwKMO8zVFxtBbCNxf6/W+T6RkcVjIJPy/iuYUTZUeCD4WZ7cedSj1o=
X-Received: by 2002:aca:d511:: with SMTP id m17mr1463093oig.54.1561622504865; Thu, 27 Jun 2019 01:01:44 -0700 (PDT)
MIME-Version: 1.0
References: <729f46ec4a8b419797e15bbdcac3e549@boeing.com> <CAJE_bqeXkyWec9-EG1QxS-1FeTyKS6-ONNOYhQK8gsQGwenaVQ@mail.gmail.com> <2b54c5e1eb54498faa7ec5d07e0f9b3a@boeing.com> <BN6PR21MB04977E999EE62A9929ABE7B7A3E20@BN6PR21MB0497.namprd21.prod.outlook.com> <e5671ed47bd1402e84840c1a266f18dd@boeing.com> <DM5PR21MB0508A10B647C43269C4354D5A3E20@DM5PR21MB0508.namprd21.prod.outlook.com> <877c15fd-c6f0-e108-f984-54e5101d2f12@gmail.com>
In-Reply-To: <877c15fd-c6f0-e108-f984-54e5101d2f12@gmail.com>
From: Mark Smith <markzzzsmith@gmail.com>
Date: Thu, 27 Jun 2019 18:01:18 +1000
Message-ID: <CAO42Z2xQRih5dqoBwKQEmNUPpW7x4yukKAV6vto9xxyivAeOrQ@mail.gmail.com>
Subject: Re: [v6ops] RFC4861 question - short prefixes in PIOs
To: Alexandre Petrescu <alexandre.petrescu@gmail.com>
Cc: 6man WG <ipv6@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/ixX4yPeJMcO8rGf-TgUVlX_CCgk>
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: Thu, 27 Jun 2019 08:01:48 -0000

On Thu, 27 Jun 2019 at 16:14, Alexandre Petrescu
<alexandre.petrescu@gmail.com> wrote:
>
> With respect to backwards compatibility: some implementations of RIO require PIO to be present too.   That is a problem of forward compatibility, because it does not allow for RIO (the new feature) to be present just itself, it requires the PIO (the old feature).
>
> I would like to ask whether RIO is allowed to exist in itself, without PIO.
>

See RFC 4191. PIOs aren't required, related to, involved in or a
dependency for RIO processing. The implementations you're referring to
sound like they have a bug.

> Alex
>
> Le 26/06/2019 à 23:01, Dave Thaler a écrit :
>
> ➢  Is there some reason to prefer RIOs?
>
>
>
> RFC 4191 says:
>
>    There are several reasons for using a new Route Information Option
>
>    instead of using flag bits to overload the existing Prefix
>
>    Information Option:
>
>
>
>    1. Prefixes will typically only show up in one option, not both, so a
>
>       new option does not introduce duplication.
>
>
>
>    2. The Route Information Option is typically 16 octets while the
>
>       Prefix Information Option is 32 octets.
>
>
>
>    3. Using a new option may improve backwards-compatibility with some
>
>       host implementations.
>
>
>
> Then see all of section 3 of that RFC for the analysis of compatibility.
>
>
>
> Dave
>
>
>
> From: Templin (US), Fred L <Fred.L.Templin@boeing.com>
> Sent: Wednesday, June 26, 2019 1:18 PM
> To: Dave Thaler <dthaler@microsoft.com>; 神明達哉 <jinmei@wide.ad.jp>
> Cc: 6man <6man@ietf.org>
> Subject: RE: [v6ops] RFC4861 question - short prefixes in PIOs
>
>
>
> Hi Dave,
>
>
>
> I agree that what I want is more akin to RIO than to “traditional” PIO, but then I saw
>
> David Farmer’s note about RFC8028 and that seems to be more in line with what I am
>
> looking for.
>
>
>
> Certainly, multi-homing needs to be accommodated and RFC8028 seems to support
>
> that while using the ubiquitous standard PIO albeit with A=L=0. Is there some reason
>
> to prefer RIOs?
>
>
>
> Thanks - Fred
>
>
>
> From: Dave Thaler [mailto:dthaler@microsoft.com]
> Sent: Wednesday, June 26, 2019 10:40 AM
> To: Templin (US), Fred L <Fred.L.Templin@boeing.com>; 神明達哉 <jinmei@wide.ad.jp>
> Cc: 6man <6man@ietf.org>
> Subject: RE: [v6ops] RFC4861 question - short prefixes in PIOs
>
>
>
> RIO should add a route with the next hop of the router, where the prefix is not an on-link prefix.
>
> PIO should be for on-link prefixes, i.e., either the receiver should create a SLAAC address or the receiver should add an on-link route, or both.
>
>
>
> Dave
>
>
>
> From: ipv6 <ipv6-bounces@ietf.org> On Behalf Of Templin (US), Fred L
> Sent: Wednesday, June 26, 2019 9:52 AM
> To: 神明達哉 <jinmei@wide.ad.jp>
> Cc: 6man <6man@ietf.org>
> Subject: RE: [v6ops] RFC4861 question - short prefixes in PIOs
>
>
>
> OK, thanks. Then, it seems to me that what I really want is a Route Information Option
>
> (RIO) [RFC4191] because what I am looking for is a way to establish a short prefix in the
>
> IPv6 forwarding table that directs packets to a specific outgoing interface (or, more
>
> precisely, to a specific router on a specific outgoing interface).
>
>
>
> But, with RIO, the prefix would not be added to the interface prefix list in the same
>
> way as for PIO - correct?
>
>
>
> Thanks - Fred
>
>
>
>
>
> From: 神明達哉 [mailto:jinmei@wide.ad.jp]
> Sent: Wednesday, June 26, 2019 9:23 AM
> To: Templin (US), Fred L <Fred.L.Templin@boeing.com>
> Cc: 6man <6man@ietf.org>
> Subject: Re: [v6ops] RFC4861 question - short prefixes in PIOs
>
>
>
> (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> 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.
>
> > 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.
>
> > 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.
>
> > 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.
>
> > 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.
>
> 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
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
>
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------