Re: appropriate length of fe80:: prefix - new version of draft-petrescu-6man-ll-prefix-len

Alexandre Petrescu <alexandre.petrescu@gmail.com> Fri, 15 February 2019 15:28 UTC

Return-Path: <alexandre.petrescu@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 2CD5312D84D for <ipv6@ietfa.amsl.com>; Fri, 15 Feb 2019 07:28:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.632
X-Spam-Level:
X-Spam-Status: No, score=-2.632 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_MED=-2.3, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=ham 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 GFA0g89AjvjH for <ipv6@ietfa.amsl.com>; Fri, 15 Feb 2019 07:28:30 -0800 (PST)
Received: from cirse-smtp-out.extra.cea.fr (cirse-smtp-out.extra.cea.fr [132.167.192.148]) (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 61B6F12008F for <ipv6@ietf.org>; Fri, 15 Feb 2019 07:28:30 -0800 (PST)
Received: from pisaure.intra.cea.fr (pisaure.intra.cea.fr [132.166.88.21]) by cirse-sys.extra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) with ESMTP id x1FFSRaQ019168; Fri, 15 Feb 2019 16:28:27 +0100
Received: from pisaure.intra.cea.fr (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id AF8B32066EC; Fri, 15 Feb 2019 16:28:27 +0100 (CET)
Received: from muguet1-smtp-out.intra.cea.fr (muguet1-smtp-out.intra.cea.fr [132.166.192.12]) by pisaure.intra.cea.fr (Postfix) with ESMTP id 9A25D2066A9; Fri, 15 Feb 2019 16:28:27 +0100 (CET)
Received: from [10.8.35.150] (is154594.intra.cea.fr [10.8.35.150]) by muguet1-sys.intra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) with ESMTP id x1FFSRPB007710; Fri, 15 Feb 2019 16:28:27 +0100
Subject: Re: appropriate length of fe80:: prefix - new version of draft-petrescu-6man-ll-prefix-len
To: Brian E Carpenter <brian.e.carpenter@gmail.com>, Fernando Gont <fgont@si6networks.com>, Mark Smith <markzzzsmith@gmail.com>
Cc: IPv6 IPv6 List <ipv6@ietf.org>, 神明達哉 <jinmei@wide.ad.jp>
References: <6d9657d0-803c-fcb2-ddb9-13f707bdfd47@gmail.com> <CAKQ4NaXGmuuqE=W=fepZDEn8NVJGwtQtdRxxC7j6PePNzy5WGA@mail.gmail.com> <5f27ed42c17a463898c43e94422499a2@ustx2ex-dag1mb5.msg.corp.akamai.com> <CAKQ4NaXS0JjbainT+7AiEb3FudqNiVKc_YXQ1y0JrLSSnzFAPw@mail.gmail.com> <27f3c3266f2e4a7f9ed773e986d41275@ustx2ex-dag1mb5.msg.corp.akamai.com> <38ef7dced8e34455b1059ce3ca8afeb1@ustx2ex-dag1mb5.msg.corp.akamai.com> <0af59661-ed8b-cd25-1125-468604edee53@gmail.com> <1df7d774-fe97-2feb-444a-94992cb89581@gmail.com> <CAJE_bqfVkFkvxVto67VGhjDK61ob6wxZXCRObtmwpr3GSyenfw@mail.gmail.com> <2def076d-b6bf-d84f-152b-d1d9277e9e73@gmail.com> <CAKQ4NaUW5-VY=TMjh0Ap01KTg4=An8=EXH_ej40nW=GM1kUL4w@mail.gmail.com> <c54b9702-1c6f-e5ae-971d-7d3ef443d994@gmail.com> <CAO42Z2wPAF6YCwsb+f0BXMEOKdFSiiFRNop=ChvKFPW32UepBA@mail.gmail.com> <e2a1a5c4-832f-744e-db69-2100c32fb59e@gmail.com> <9bfa3899-bab8-f606-06f2-4e42a629b9fa@si6networks.com> <efe24981-5a3b-5cfd-49eb-12546f0e9c5f@gmail.com>
From: Alexandre Petrescu <alexandre.petrescu@gmail.com>
Message-ID: <933ae5d4-b045-12ff-8416-97b34f2acdbd@gmail.com>
Date: Fri, 15 Feb 2019 16:28:27 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <efe24981-5a3b-5cfd-49eb-12546f0e9c5f@gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: fr
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/0zBB1OvEzvexmVIYqLQgz1J_DEc>
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: Fri, 15 Feb 2019 15:28:33 -0000

Hi,

I submitted a new version of draft-petrescu-6man-ll-prefix-len.

The changes are:
- explanation of why fe80:1::1 does not work in a particular OS,
- refer to the new DHCPv6 RFC which considers fe80::/10.

https://datatracker.ietf.org/doc/draft-petrescu-6man-ll-prefix-len/

Alex

Le 31/01/2019 à 23:35, Brian E Carpenter a écrit :
> Hi Fernando,
> On 2019-02-01 00:15, Fernando Gont wrote:
>> On 30/1/19 19:14, Brian E Carpenter wrote:
>>> Section 5.3 "Creation of Link-Local Addresses" of RFC4862 refers to
>>> an interface identifier of N bits and an fe80::0 prefix "of
>>> appropriate length", which according to the addressing architecture
>>> is 128-N. But N is undefined by RFC4862 and cannot be derived from an
>>> RA because all this happens as soon as the interface is enabled.
>>> Therefore N must be predefined.
>>
>> I guess that since link-local addresses are generated with SLAAC, at
>> least according to current specs that implies a prefix length of /64?
> 
> All the current specs (including the ones Alexandre mentioned) specify
> 64 bit IIDs for LL assignment. But as I pointed out, it isn't necessary
> that the same IID is used for LL creation and for a routeable address
> created later after receiving an RA/PIO. I can't see anything in nature
> or RFC4862 that requires the lengths to be the same either.
> 
> I have no problem with every ipv6-over-foo specifying 64 for the LL IID,
> or with implementations using the same IID for both LL and SLAAC, but
> these are choices, not rules.
> 
> There's probably a privacy argument for *not* using the same IID for
> LL and routeable addresses.
> 
>>> As pioneered by RFC2464**, all ipv6-over-foo documents must therefore
>>> specify N for their link type. So far, everybody has specified 64, as
>>> far as I know. Is there a reason to do otherwise for the two drafts
>>> mentioned below?
>>
>> I'd regard that as an artifact of history ;-) , which made sense at a
>> time when we generated IIDs embedding MAC addresses in the IID.
>> Nowadays, I don't think there's a valid technical reason for a link
>> layer to specify the IID length. Why would they care? In fact, some
>> might even regard that as a layering violation...
> 
> You're 100% correct about the historical reason for this. It's quite
> amusing to see the magical 0xfffe appearing in draft-hou-6lo-plc
> for no obvious reason. But I think that an ipv6-over-foo MUST specify
> the IID length for LL addresses, because it's explicitly a free parameter
> N in RFC4862. Of course these days the IID bits should be specified
> as "see [RFC8064], [RFC7217]".
> 
>>> Why does it matter, since the unrouteable fe80::/(128-N) prefix is
>>> quite disjoint from the question of the routeable /64 prefix? All we
>>> care about is that it matches fe80::/10.
>>>
>>> (As a matter of curiousity, is there any particular reason to use the
>>> same IID to generate the LL address and the stable routeable address?
>>> It surely isn't necessary, otherwise temporary addresses wouldn't
>>> work.)
>>
>> Where I've found this "expectation", it has been associated with some
>> sort of "compression" -- some way to avoid storing or transmitting part
>> of the IP address because you can derive/imply it form elsewhere.
> 
> Which sounds like bad computer science. And again, temporary addresses
> seem to show that it is a wrong assumption.
> 
>      Brian
>