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

David Farmer <farmer@umn.edu> Wed, 26 June 2019 19:02 UTC

Return-Path: <farmer@umn.edu>
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 98CD9120668 for <ipv6@ietfa.amsl.com>; Wed, 26 Jun 2019 12:02:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.298
X-Spam-Level:
X-Spam-Status: No, score=-4.298 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, 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=umn.edu
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 E2vJTID8F_kF for <ipv6@ietfa.amsl.com>; Wed, 26 Jun 2019 12:02:04 -0700 (PDT)
Received: from mta-p6.oit.umn.edu (mta-p6.oit.umn.edu [134.84.196.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 71EE412070B for <6man@ietf.org>; Wed, 26 Jun 2019 12:01:30 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by mta-p6.oit.umn.edu (Postfix) with ESMTP id 277D65C1 for <6man@ietf.org>; Wed, 26 Jun 2019 19:01:29 +0000 (UTC)
X-Virus-Scanned: amavisd-new at umn.edu
Received: from mta-p6.oit.umn.edu ([127.0.0.1]) by localhost (mta-p6.oit.umn.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D9i70fMZzPs1 for <6man@ietf.org>; Wed, 26 Jun 2019 14:01:28 -0500 (CDT)
Received: from mail-vs1-f71.google.com (mail-vs1-f71.google.com [209.85.217.71]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mta-p6.oit.umn.edu (Postfix) with ESMTPS id BAD5386E for <6man@ietf.org>; Wed, 26 Jun 2019 14:01:28 -0500 (CDT)
Received: by mail-vs1-f71.google.com with SMTP id p62so806631vsd.6 for <6man@ietf.org>; Wed, 26 Jun 2019 12:01:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umn.edu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vg0kAtzPNVh0SdBZPYfIrreZkvqkNZApuXfgChZCLz0=; b=mI27kZZkdBszQvMp7l/CPeQpBrVxzwXOpU/z1hVsNPd587RIItGV8ifz/cdW1LMVW5 3+Wygp5ch4Usgk+agcw0gRZPEHWnZDZ0JAvGixcVpgG0vklLCahfejAWMbHiWRTag85Z +i9SFNvuuOU7lGHyCeUKYyqmdqWu09lNNYqpXBNR0/ke5PpIZBohcBHXgTJ3Mara3lxe kOAkfarPKz4bvEs2HjD/37MYHnUF68vQa6fYTqjVAJMT8QCFKQZ+wCbZV8emD32Fj35L RPeY03+CDTSlJ44x5LeTLJKWeSvnrsfJyKRhYmwVH7TL4hfr7zJvtbBd7oARu18cm/Mq q2eQ==
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; bh=vg0kAtzPNVh0SdBZPYfIrreZkvqkNZApuXfgChZCLz0=; b=GizcE48r3Q8OJawI+cVjJ3MAeQJmz4xyYGyUbmqnazAGP+DQOuyz3+wRz0ioBm1+dM U6Z2VgfupdNMwimY6c66Qpi9gXehmbh0uTsbqQEKV+2uKmc2nkJ2+g6K3rcMFkvuDt83 6MdYY6FDw9c0yKqh/agUC0z6NiGmMN9fI4GxkDxF/XBa3cY99FvGC+L1fNw3lXtVyavV 0vpR4Yk5khLnjzir1DiJlSlotMVwkykURwcsCIb2lEz1D1K+4IWE0IN7YQuYXzndAPp9 TzDrolJq+o08L6dAkNtqIrv2iu+e0O2j1jIQ2WSFbrSBgiZCGw56Yp0aDk/VqZpOjdp6 VViw==
X-Gm-Message-State: APjAAAW5PxT7EvPB54lL2+F5frbvzOk2UG+YAYK6/4lNbzCvYcQoHowV nl0lSRE7uxaJN5+B0/piZxJygloVoXnKOJekax+KoPAWwCvUMI16b9Lez7np+vr91PKE5qds9qt t1srPIgI1he2GFR8DcG0es1FA
X-Received: by 2002:a67:8c02:: with SMTP id o2mr3869454vsd.167.1561575687227; Wed, 26 Jun 2019 12:01:27 -0700 (PDT)
X-Google-Smtp-Source: APXvYqwTZbUWDDE34XjACFKS1fKkQbVGYUM7XEeMZSB++lYK83NngtbSSzp/uMvGob3yp7HIbSkh6kXMB/apkPVUJsg=
X-Received: by 2002:a67:8c02:: with SMTP id o2mr3869421vsd.167.1561575686614; Wed, 26 Jun 2019 12:01:26 -0700 (PDT)
MIME-Version: 1.0
References: <729f46ec4a8b419797e15bbdcac3e549@boeing.com> <CAJE_bqeXkyWec9-EG1QxS-1FeTyKS6-ONNOYhQK8gsQGwenaVQ@mail.gmail.com>
In-Reply-To: <CAJE_bqeXkyWec9-EG1QxS-1FeTyKS6-ONNOYhQK8gsQGwenaVQ@mail.gmail.com>
From: David Farmer <farmer@umn.edu>
Date: Wed, 26 Jun 2019 14:01:10 -0500
Message-ID: <CAN-Dau35=8i0DAn1xd8nHJh9aAVZY12v3az9QUyXYXAtOQ9xeA@mail.gmail.com>
Subject: Re: [v6ops] RFC4861 question - short prefixes in PIOs
To: 神明達哉 <jinmei@wide.ad.jp>
Cc: "Templin (US), Fred L" <Fred.L.Templin@boeing.com>, 6man <6man@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000174c7a058c3eaced"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/Y_yrdsEMD6dwJsh1Kz_bErjftlA>
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 19:02:08 -0000

Some additional comments regarding questions #3 and #4 are below;

On Wed, Jun 26, 2019 at 11:23 AM 神明達哉 <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
> <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
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
>


-- 
===============================================
David Farmer               Email:farmer@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
===============================================