Re: encoding link ID in link-local addrs (Re: about violation of standards)

Alexandre Petrescu <alexandre.petrescu@gmail.com> Wed, 24 April 2019 14:53 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 E12F61201A8 for <ipv6@ietfa.amsl.com>; Wed, 24 Apr 2019 07:53:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.632
X-Spam-Level:
X-Spam-Status: No, score=-1.632 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_MED=-2.3, SPF_SOFTFAIL=0.665, 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 GsX6_dM_OOMZ for <ipv6@ietfa.amsl.com>; Wed, 24 Apr 2019 07:53:17 -0700 (PDT)
Received: from oxalide-smtp-out.extra.cea.fr (oxalide-smtp-out.extra.cea.fr [132.168.224.13]) (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 8AAB5120184 for <ipv6@ietf.org>; Wed, 24 Apr 2019 07:53:17 -0700 (PDT)
Received: from pisaure.intra.cea.fr (pisaure.intra.cea.fr [132.166.88.21]) by oxalide-sys.extra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) with ESMTP id x3OErCk5165177; Wed, 24 Apr 2019 16:53:12 +0200
Received: from pisaure.intra.cea.fr (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 1EB28204039; Wed, 24 Apr 2019 16:53:12 +0200 (CEST)
Received: from muguet2-smtp-out.intra.cea.fr (muguet2-smtp-out.intra.cea.fr [132.166.192.13]) by pisaure.intra.cea.fr (Postfix) with ESMTP id 0BA95203FA5; Wed, 24 Apr 2019 16:53:12 +0200 (CEST)
Received: from [10.8.35.150] (is154594.intra.cea.fr [10.8.35.150]) by muguet2-sys.intra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) with ESMTP id x3OErBrQ015970; Wed, 24 Apr 2019 16:53:11 +0200
Subject: Re: encoding link ID in link-local addrs (Re: about violation of standards)
To: Gyan Mishra <hayabusagsm@gmail.com>, 神明達哉 <jinmei@wide.ad.jp>
Cc: "Pascal Thubert (pthubert)" <pthubert@cisco.com>, IPv6 <ipv6@ietf.org>
References: <bb7f7606-2adf-e669-8bcd-e41f17800782@gmail.com> <CAJE_bqd9frqX5-yeVPj8MYXpZ4737HqK1gmfD9cQV3A-Ea5HrQ@mail.gmail.com> <6bd5db47-408a-727e-5c13-f34a3465f986@si6networks.com> <CAJE_bqfTLqRbLp4fLu2ASZuZ+4G5c2G+RXkO92kXfLgPTqBnng@mail.gmail.com> <EEF00EA7-2AAF-403F-99AD-1D53ED18E8B3@cisco.com> <CAJE_bqe8OXPWRDvXEY66gZHiBgv37OV67YB27WoEtq_VmBqieQ@mail.gmail.com> <3F852B26-FD19-445D-A8E9-94BCBB9BE7C1@gmail.com> <455C3D20-E71B-4DF4-837E-081964E3328A@gmail.com>
From: Alexandre Petrescu <alexandre.petrescu@gmail.com>
Message-ID: <19275484-3fa5-7c4e-3624-b861ddea6e2f@gmail.com>
Date: Wed, 24 Apr 2019 16:53:11 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <455C3D20-E71B-4DF4-837E-081964E3328A@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/wWAmIG1QHeOdO_PjkdtMZRXe_ko>
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, 24 Apr 2019 14:53:20 -0000


Le 21/04/2019 à 02:23, Gyan Mishra a écrit :
[...]
> That being said the fe80:1::1 can be coded on both Linux host and a 
> CISCO router with Linux kernel under the hood but that does not make it 
> correct or valid that we should now change the RFC 4291 to allow that to 
> happen.

Noted.

By 'now' do you mean 'not'?

I will add in the draft that Cisco also supports fe80:1::1.  I think I 
forgot that, but now that you say it I trust it too.

> I don’t see any justification to allowing the 54 bits in the network 64 
> bit portion of the link local address to be changed from all 0s.

I dont understand you.

You say fe80:1::1 works on Cisco, but then you say you seee no 
justification to allow the 54bits to change from 0.  The first 1 in 
fe80:1::1 means a change from 0.

So, do you mean Cisco is wrong?

Or do you mean such things are wrong and the RFC is right?

I do not understand you.

Let me rate limit my messages.

Alex

> 
> Please respond back to this email thread if you feel differently and 
> also respond if you agree.
> 
> Thank you
> 
> Gyan
> 
> Sent from my iPhone
> 
> On Apr 20, 2019, at 7:34 PM, Gyan Mishra <hayabusagsm@gmail.com 
> <mailto:hayabusagsm@gmail.com>> wrote:
> 
>> Suresh & Alexandre
>>
>> There are many implementations worldwide that I have been involved in 
>> deployment of IPv6 using a standard architecture that I deploy to all 
>> my customers and that involves setting the station id on the link 
>> local address so that the next hop is more intuitive and easily 
>> recognizable that it’s your local next hop since by default all 
>> routers and hosts set the station id to EUI64 format FFFE big stuff 
>> into the MAC address between the 3rd and 4th octet which is “non 
>> intuitive”
>>
>> So the IPv6 addressing RFC 4291 states the 1st 10 bits used for fe80 
>> and the next 54 bits must be set to 0 which covers the 64 bit prefix 
>> length so the entire station id 64 bits is open to be modified and 
>> changed as the end user desires on any platform and that is following 
>> the current RFC standard.
>>
>> So in Alexandre scenario with BSD setting the LL to FE80::1 would be 
>> fine but if you did fe80:1::1 that would be setting 1s in the all 0s 
>> 54 bit field of the station id which is not allowed.
>>
>> So as far a variable link local address I am in favor of variable and 
>> you have the entire 64 bit station id to modify which is fine but I am 
>> completely not in favor of violating the current standard of writing 
>> into the 54 bit all 0s portion of the network prefix.
>>
>> 2.5.6.  Link-Local IPv6 Unicast Addresses
>>    Link-Local addresses are for use on a single link.  Link-Local
>>    addresses have the following format:
>>    |   10     |
>>    |  bits    |         54 bits         |          64 bits           |
>>    +----------+-------------------------+----------------------------+
>>    |1111111010|           0             |       interface ID         |
>>    +----------+-------------------------+----------------------------+
>>    Link-Local addresses are designed to be used for addressing on a
>>    single link for purposes such as automatic address configuration,
>>    neighbor discovery, or when no routers are present.
>>    Routers must not forward any packets with Link-Local source or
>>    destination addresses to other links.
>>
>>
>> Sent from my iPhone
>>
>> On Apr 19, 2019, at 12:25 PM, 神明達哉 <jinmei@wide.ad.jp 
>> <mailto:jinmei@wide.ad.jp>> wrote:
>>
>>> At Fri, 19 Apr 2019 07:00:01 +0000,
>>> "Pascal Thubert (pthubert)" <pthubert@cisco.com 
>>> <mailto:pthubert@cisco.com>> wrote:
>>>
>>> > While I completely object with Alexandre’s argument I tend to agree 
>>> with the end goal.
>>> >
>>> > Some functions in the router are complex to implement because same 
>>> value for a link local address appears on multiple interfaces.
>>>
>>> Yeah, I see that motivation.  The generic/usual answer of mine to that
>>> kind of problem is to use the sockaddr_in6::sin6_scope_id (or anything
>>> similar to it for a non-POSIX platform) and the extended textual
>>> format for scoped addresses as described in RFC4007.  But I can
>>> imagine there are cases where they are not enough and/or applicable.
>>>
>>> So...
>>>
>>> > It would be useful to be able to encode an abstract interface ID 
>>> somewhere in the /64. Legacy 00 would mean unspecified...
>>>
>>> (As a co-author of RFC4007 I can't help correcting it to "link ID"
>>> instead of "interface ID" but:-)... yes, I can imagine we might reach
>>> some consensus of using some portion of the 128-bit space to encode
>>> that information.  But, that will require a lot of considerations,
>>> including
>>>
>>> - whether the goal is really impossible to achieve with currently
>>>   available tools
>>> - especially if the first answer is something like "it can, but it's
>>>   not convenient", then whether the goal really justifies to consume
>>>   a particular space of the finite resource of address space
>>> - whether it has to be inside the upper 64 bits (or in more general,
>>>   inside the "subnet prefix" part).  If it has to be so, whether it
>>>   has to be within the first 32 bits (if not, at least it doesn't
>>>   conflict with the BSD implementation).
>>> - if, like draft-petrescu-6man-ll-prefix-len suggests, the encoded ID
>>>   is the same for all nodes in the link, how we assign those IDs and
>>>   how we ensure their uniqueness, how each node knows the ID on
>>>   generating addresses, etc.
>>>
>>> When I said "I'm open to discussion", I meant I'm willing to discuss
>>> these matters.  Of course, since there are so many open questions, I'd
>>> expect it to take quite a long time, and I can't say at this point
>>> whether I support the eventual proposal that the WG might come up
>>> with, or whether we can really expect any WG-wide consensus..  I'm now
>>> clarifying the intent, as it didn't seem to be clear enough.
>>>
>>> --
>>> JINMEI, Tatuya
>>> --------------------------------------------------------------------
>>> IETF IPv6 working group mailing list
>>> ipv6@ietf.org <mailto: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
> --------------------------------------------------------------------
>