Re: a draft about on-link and submit prefixes

Lorenzo Colitti <lorenzo@google.com> Tue, 14 March 2017 04:07 UTC

Return-Path: <lorenzo@google.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 44362129C46 for <ipv6@ietfa.amsl.com>; Mon, 13 Mar 2017 21:07:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 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_NONE=-0.0001, RP_MATCHES_RCVD=-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=google.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 3iV5GZldIi1I for <ipv6@ietfa.amsl.com>; Mon, 13 Mar 2017 21:07:11 -0700 (PDT)
Received: from mail-ua0-x233.google.com (mail-ua0-x233.google.com [IPv6:2607:f8b0:400c:c08::233]) (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 BCABC129C43 for <ipv6@ietf.org>; Mon, 13 Mar 2017 21:07:11 -0700 (PDT)
Received: by mail-ua0-x233.google.com with SMTP id q7so147531098uaf.2 for <ipv6@ietf.org>; Mon, 13 Mar 2017 21:07:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pMYHbHtAZ8pVnmfgSioTLUnLmBMi6wQcHKSlabkpxaw=; b=JNGnKJAi/9egd1x+4U6X6A8JH85svdoY85d9B7jFbR+iMtCFvR1PVQInT0fZk4qHvl /7a2BkMknehH4n6r+Q33OPVi3sXSvqERbgoZJUMjxle7Q+uFJ3MrXK9ClJ5k8LtpCbtE SPgT9rHrmoycGMiz2+sjGufTwnUL/T08YSXrCWo3eIikcgYt8QR1jtoJynxRCEDe5dYX ITXHV5LTjipNnQ6dFkPqWvAEn8qrdLwnaU79NQZ+A3iH/1wlGiThmgdePS8uynqlIc96 3/IAAimNqSAM/LNQS1IS8ajG7c1QukKWq/aM1cNjC6oZtHTz64mhIsf8sq0uzTE5VWOE yIYw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pMYHbHtAZ8pVnmfgSioTLUnLmBMi6wQcHKSlabkpxaw=; b=ZuTPQ5VZhUkmPL1/q10NHWV5qPPu28zDfM8xo99dpPCotoiUJ/THdAqu0oIXJRsDj2 UFmnd2/WOJzIEyhkyFjHjLNH5bmuJCXJZhmPPd986wixEWnVb10Zw9mDAclHcx10ADyH LVI2wND2lmtkGG6nYJFHHkm24EXAJ2DEVGrAO/cL12iKsy9k6gVwKf0R9qxDAfhggAAO DTVeYSviUuQOpAxvZSMC5obQ0OZAjyOKe+NBK1iCHu9chYOomOdhGKWtSTaMNLx6CfaJ xHgQWVKTHAl+Y/dqWasy5A+4TNXlo9+yJXSIBQ9AgB8oAkn6Z5BfCG03/ci0Kfne+jsl d6bQ==
X-Gm-Message-State: AMke39lwOImitNqmN8jr8pFvq8BTFCKei7LD+s5jZ+Ecqx/AHwKbfLqcXO3oEhD5MOGZqmp0ocoILOoy2p90Dbh3
X-Received: by 10.159.36.10 with SMTP id 10mr18430925uaq.124.1489464430559; Mon, 13 Mar 2017 21:07:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.31.171.2 with HTTP; Mon, 13 Mar 2017 21:06:50 -0700 (PDT)
In-Reply-To: <CAJE_bqdd9OXOi+SZ8_OfGWXxEoKSfoR6=Lp3-_=vEaWbjx4udw@mail.gmail.com>
References: <CAJE_bqdd9OXOi+SZ8_OfGWXxEoKSfoR6=Lp3-_=vEaWbjx4udw@mail.gmail.com>
From: Lorenzo Colitti <lorenzo@google.com>
Date: Tue, 14 Mar 2017 13:06:50 +0900
Message-ID: <CAKD1Yr3ncJkNwZgpWpr049K497iLAQ3dCzJ6dCHM1VsrC8UHog@mail.gmail.com>
Subject: Re: a draft about on-link and submit prefixes
To: 神明達哉 <jinmei@wide.ad.jp>
Content-Type: multipart/alternative; boundary="001a113df6844a5609054aa8f682"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/QVWSzTogtBKFZm2G1wkL_USAAzc>
Cc: IPv6 IPv6 List <ipv6@ietf.org>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.17
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: Tue, 14 Mar 2017 04:07:13 -0000

On Tue, Mar 14, 2017 at 8:14 AM, 神明達哉 <jinmei@wide.ad.jp> wrote:

> I've submitted a new individual draft on the separation between
> on-link and (SLAAC) subnet prefixes, at the risk of stating the
> obvious: https://datatracker.ietf.org/doc/draft-jinmei-6man-prefix-
> clarify/


Thanks for attempting to clarify the topic. I think it is useful to do so,
since the distinctions here are very subtle and even many in the WG (not to
mention in the IETF or in the industry) are not fully aware of their
implications.

If possible, I would suggest making this document even more general. It's
mostly geared to how implementations treat PIOs, and refers to RFC 4861 and
RFC 4862, but really I think the clarifications it makes have much broader
impact. As I see it, the core issues here are:

   - IPv6 addresses don't specify any on-link information
   - For most (but not all) unicast addresses, subnet prefixes are 64 bits
   per RFC 4291.
   - A given subnet prefix can be spread across multiple links, and a given
   link can support multiple subnet prefixes.

This is not immediately obvious to people who are familiar with the IPv4
subnet model, because it is quite different.

For example, it is an entirely valid configuration for an RA to contain a
PIO for 2001:db8::/64 A=1 L=0 and a PIO for 2001:db8::/96 A=0 L=1. In this
case, the host can form an address via SLAAC that *is not on link*. This is
a a perfectly supported configuration that has no equivalent in IPv4. In
IPv4 the subnet prefix and the onlink prefix have to match because things
wouldn't work otherwise (e.g., the broadcast address would not be on link
any more).

A corollary to the above is that subnet prefixes don't specify any on-link
information. The fact that the subnet prefix is "almost always" 64 bits
long doesn't mean that the on-link prefix cannot be /48, /89 or /120. The
fact that the on-link prefix is /120 doesn't mean that nodes on that link
have to have addresses in that /120.