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

Gyan Mishra <hayabusagsm@gmail.com> Sat, 20 April 2019 23:34 UTC

Return-Path: <hayabusagsm@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 4CA331201A7 for <ipv6@ietfa.amsl.com>; Sat, 20 Apr 2019 16:34:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 a3dDFs-aqkjb for <ipv6@ietfa.amsl.com>; Sat, 20 Apr 2019 16:34:52 -0700 (PDT)
Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (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 8717D1200D5 for <ipv6@ietf.org>; Sat, 20 Apr 2019 16:34:52 -0700 (PDT)
Received: by mail-qt1-x831.google.com with SMTP id l17so2098832qtp.2 for <ipv6@ietf.org>; Sat, 20 Apr 2019 16:34:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=f2N5UQdUlj8XlTkkJ8GYbz3pY43PS+GFlUYtF1011lc=; b=MRlt7D3TssF4y8vLfzYWFXWNpZhgbkcjAePFNeD9Z9RYdA4YneKiJ49zccopQ1i5u4 PvOlBOXyIIzlgw7mqRWVeOTbM1264UFTIhumTY7+HNDtwFM8HGOdzu+Y+xspQQE03Zyh m0QJcjggAS32VwCmzd7jYxzVrH+VwhfPbMFChYdaupg4FGr6X7mPzXlfihND1wmyV9r3 7X73tbPKuEsFr52xWb3wDZkbgpTHb4M2OknzBy1d0K82JCzcxClhFDz3ioWmyFbAT9Cq vRgkL4U6UzZajiekg+tw6VEC1t9ncnCZj8kR67wEj+w4C3Z0BDyfYGARbTSRoVjG+ddo 7Sow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=f2N5UQdUlj8XlTkkJ8GYbz3pY43PS+GFlUYtF1011lc=; b=h6s3aoX7J/RJZyNMvjuFg0LCxZgUCnBF4kMAEODc42mcQ7fPUpXKbh8/89ysTiaaoJ JWxk7kiTUav20kXXhzUmKy1To0F2FnIJcIAeJWCLjbUIbqoPcB0TTvYHmElwWdDtcvVZ Flu8lY7mTeRm0CjaJ7hW0e3afbSoXlYOs5jlwLVYz8D7nPFPjEMLfrsg9jJ1n79P+K0I 4vRh2fzb9itwqgtobUK5AzGT9h7V3rSAtpSAqRP9GpomwTYbOnkuggSfGwhyM+eUnrxA c2h8m0paYehyHm361ijslhXjABtocCephgmvApOtR725fwE1Ta/IV2t1QuDkIoCKy+jy 9sew==
X-Gm-Message-State: APjAAAVDO16YPeUNQ9P8evpebqvgYf/y5II4XYRhmqdseIN5wXWV8TzI 0Dn4zQ5Y0vnTGieBsZxf9CMwUBrW
X-Google-Smtp-Source: APXvYqyFup8cMB3U5AMu95VXpXI8D+X2xAbRNcCH38xhrUZKU6ju77Eosa9kfkD0DgxPxuBAXyM7jQ==
X-Received: by 2002:a0c:b64c:: with SMTP id q12mr9966399qvf.50.1555803291190; Sat, 20 Apr 2019 16:34:51 -0700 (PDT)
Received: from ?IPv6:2600:1003:b010:7e2a:215a:3d2f:dcc3:ecea? ([2600:1003:b010:7e2a:215a:3d2f:dcc3:ecea]) by smtp.gmail.com with ESMTPSA id i24sm4215158qtm.3.2019.04.20.16.34.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Apr 2019 16:34:49 -0700 (PDT)
Content-Type: multipart/alternative; boundary="Apple-Mail-4B35C937-4DD0-4BAE-BB17-2C0573C73316"
Mime-Version: 1.0 (1.0)
Subject: Re: encoding link ID in link-local addrs (Re: about violation of standards)
From: Gyan Mishra <hayabusagsm@gmail.com>
X-Mailer: iPhone Mail (16D57)
In-Reply-To: <CAJE_bqe8OXPWRDvXEY66gZHiBgv37OV67YB27WoEtq_VmBqieQ@mail.gmail.com>
Date: Sat, 20 Apr 2019 19:34:48 -0400
Cc: "Pascal Thubert (pthubert)" <pthubert@cisco.com>, IPv6 <ipv6@ietf.org>
Content-Transfer-Encoding: 7bit
Message-Id: <3F852B26-FD19-445D-A8E9-94BCBB9BE7C1@gmail.com>
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>
To: 神明達哉 <jinmei@wide.ad.jp>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/FEzxXFwvPvuoP5DO3KPWHbee2kM>
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: Sat, 20 Apr 2019 23:34:55 -0000

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> wrote:
> 
> At Fri, 19 Apr 2019 07:00:01 +0000,
> "Pascal Thubert (pthubert)" <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
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------