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

神明達哉 <jinmei@wide.ad.jp> Wed, 26 June 2019 16:23 UTC

Return-Path: <jinmei.tatuya@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 52D1212029D for <ipv6@ietfa.amsl.com>; Wed, 26 Jun 2019 09:23:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.397
X-Spam-Level:
X-Spam-Status: No, score=-1.397 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
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 Hu3jeV6pfxII for <ipv6@ietfa.amsl.com>; Wed, 26 Jun 2019 09:23:10 -0700 (PDT)
Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 D32B512004F for <6man@ietf.org>; Wed, 26 Jun 2019 09:23:09 -0700 (PDT)
Received: by mail-wr1-f50.google.com with SMTP id d18so3443348wrs.5 for <6man@ietf.org>; Wed, 26 Jun 2019 09:23:09 -0700 (PDT)
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=nrkhLEk1n5gj2KD0eROHYdecrqD3V++BE6Yfhq3sfaA=; b=L1jwRy2MyxTuz9ztwr7UP8JxrTjbThyLVVSyrlmIpwwfGhJW1d/e6B0ka1uY/QhIuK RTq0r81KN72MootjP+jRNN1rVlfh4vlrLwmrFEnZ6Xi4dIX841WBqD31yD5i3R9uznaZ J3qmIIq9E/WM6ML3K5UlpDUi23/GuupA5DxhOgM2ZEvscBDZfL3y4XPOLpx1RoInwjA/ Pbzz34Zi5y/Ea0azNw+M8A5N4xMqNuIhYUip8aSt9qWSgvXJ7Qb4aAhIomK83oVIy9Te Cj0S3jrobGXbM2akiCaOymWNLRFdAfc/wR5I++m3SuLhrZTuxPkZPh7FBNB51XHuyXKD 2cMg==
X-Gm-Message-State: APjAAAU4yzcfjtmaE4MQzZQPkXQC6x/CbUPLAavWgRYPrLsj3y7EYHeM 3ibW7HVH1nXEKh0r+WvXhU6yTneYziSF4NpKbeg=
X-Google-Smtp-Source: APXvYqxZ6ZdTSDpFBZmbOxoB4jLroOy5sEZhyLCTuiquVnv/RbFCxJws4qT018tH4ogv9g7FScbUQBYppgGeGOvMiLg=
X-Received: by 2002:adf:ec49:: with SMTP id w9mr3992175wrn.303.1561566187944; Wed, 26 Jun 2019 09:23:07 -0700 (PDT)
MIME-Version: 1.0
References: <729f46ec4a8b419797e15bbdcac3e549@boeing.com>
In-Reply-To: <729f46ec4a8b419797e15bbdcac3e549@boeing.com>
From: 神明達哉 <jinmei@wide.ad.jp>
Date: Wed, 26 Jun 2019 09:22:56 -0700
Message-ID: <CAJE_bqeXkyWec9-EG1QxS-1FeTyKS6-ONNOYhQK8gsQGwenaVQ@mail.gmail.com>
Subject: Re: [v6ops] RFC4861 question - short prefixes in PIOs
To: "Templin (US), Fred L" <Fred.L.Templin@boeing.com>
Cc: 6man <6man@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000ed0025058c3c7579"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/eTdv8V0U1hT1J-XBo86RUxkEUU8>
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 16:23:12 -0000

(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