Re: Globally Unique Link Local Addresses (Re: about violation of standards)

Mark Smith <markzzzsmith@gmail.com> Wed, 24 April 2019 05:12 UTC

Return-Path: <markzzzsmith@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 45A0F120176 for <ipv6@ietfa.amsl.com>; Tue, 23 Apr 2019 22:12:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.497
X-Spam-Level:
X-Spam-Status: No, score=-1.497 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, FROM_LOCAL_NOVOWEL=0.5, HK_RANDOM_ENVFROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 3M-o2SP5EVdv for <ipv6@ietfa.amsl.com>; Tue, 23 Apr 2019 22:12:42 -0700 (PDT)
Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) (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 2C523120154 for <ipv6@ietf.org>; Tue, 23 Apr 2019 22:12:41 -0700 (PDT)
Received: by mail-oi1-x243.google.com with SMTP id j132so13265598oib.2 for <ipv6@ietf.org>; Tue, 23 Apr 2019 22:12:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VjPRRD/132aJ470gKpeCvkC114zWNYkpuCbgjf3zkdQ=; b=PLatXmeIeQhJvBPWHDCWsRCmY1u7vIZ0xgfMEXqaSSQzWAv5mQtaZV2hWeAo1stv93 B2DkwmbC1itTX6o02bm2E8CHPGKamTGpjl2zUX687YWF+LRCZOwSvrzZyNA8WCK0O8Zk 1A9zdDOxrFyBvTUaJqtp9/tUQKdGLiGhhYOendywiRuNX++ZC7lTDTCoYNu8ztqcSiRe vPIcyFfbt1ibpCLH55uU1s8+6xQGt49Qm+Mzr+U2jwg5Y4BYYG7di1jNTfT3mb1BQf8F pe5c1T3p3mjRZOyByuHjP+NUCwm0kVfIRkV47o59qtm6ai5dAM2KE79Dm1AOJ6ERZHQM 9FtQ==
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=VjPRRD/132aJ470gKpeCvkC114zWNYkpuCbgjf3zkdQ=; b=RC1yh74OMqStQtRQE8vWrBNIH5R8FP6Fs4C3jqffLkvPWqjVgjC9BAgUZmCgtbCw08 NWjbnpPGJyN+U+giKwFl2Do9WftHIhn4XHRhBnJyAaktGJ63OZ6+DPVnDD4FfJS5ckrj w86EUOvR3wxBsVYAM4w6nGjBXMlVZNiYG35wAPVSSE1YZY4GGncSf7yRM+7Phecw4bak mzNaXz7egDyF2a3rtZUVzmaUz1nT1fw/km8iQ1zsEayEXCFoAv9W4wYAITuIJ9naCmwo QBmGPwRNBaFAxg8uHSbLr4HjyWJLBILbH/XAMYgQ1k2+3Urr/ch8vjwWKZqOQppHbuZE geRg==
X-Gm-Message-State: APjAAAU2eu5TvWpUFb18Jy1QT7fOPC/M9bYyKcG8MAOiycgCE9zlaJCL plwD1HGqdrK6TVJqHCEW92lfEDG0EDk+JY5LyO8=
X-Google-Smtp-Source: APXvYqxQ9KIQq/91gMpVIAQZjXHC4RkOnnehBkhbTyj4J5VzbpyVTpthpvN18Dqi8o77P/sLF806ljoZebzgLkUXfow=
X-Received: by 2002:aca:cc4e:: with SMTP id c75mr4258907oig.7.1556082761352; Tue, 23 Apr 2019 22:12:41 -0700 (PDT)
MIME-Version: 1.0
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> <47631828-121F-402D-8165-969684C1101B@employees.org> <CAO42Z2wbq=8f6FfR7DoOOFrY7B5puxS26Dk+SsM71Pk7y03ipQ@mail.gmail.com> <afa6e0e2-0a31-53f0-0f41-5e24c81405da@gmail.com> <CAO42Z2zoQtAqzT+v2XYequuWysrLo+WOG8Ou=asRMakQHuS-Pg@mail.gmail.com> <CAJE_bqcJZxWd1ZH8u0rqK5PfwNK9qqmw9O-7=u6Tpu_UTF7-Aw@mail.gmail.com>
In-Reply-To: <CAJE_bqcJZxWd1ZH8u0rqK5PfwNK9qqmw9O-7=u6Tpu_UTF7-Aw@mail.gmail.com>
From: Mark Smith <markzzzsmith@gmail.com>
Date: Wed, 24 Apr 2019 15:12:29 +1000
Message-ID: <CAO42Z2wimfJexfUfs+mfo6Cs8simv9XyTqCaU49VDaSqBG-BxQ@mail.gmail.com>
Subject: Re: Globally Unique Link Local Addresses (Re: about violation of standards)
To: 神明達哉 <jinmei@wide.ad.jp>
Cc: Brian E Carpenter <brian.e.carpenter@gmail.com>, "Pascal Thubert (pthubert)" <pthubert@cisco.com>, 6man WG <ipv6@ietf.org>, Alexandre Petrescu <alexandre.petrescu@gmail.com>, Fernando Gont <fgont@si6networks.com>
Content-Type: multipart/alternative; boundary="0000000000003b4bb605873fc013"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/i4EjImgjYxgP3VKZgGf-bxvewbM>
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 05:12:43 -0000

On Wed., 24 Apr. 2019, 14:01 神明達哉, <jinmei@wide.ad.jp> wrote:

> At Wed, 24 Apr 2019 13:28:48 +1000,
> Mark Smith <markzzzsmith@gmail.com> wrote:
>
> > However, the drawback of using LL addresses is that each application
> > has to be written to specifically handle them via sin6_scope_id.
>
> This is not entirely accurate.  Section 11 of RFC 4007 exists exactly
> for this purpose.  And, in fact, applications like ssh can perfectly
> work for a link-local destination even on a multi-link host even if
> the application (ssh client) doesn't do anything special for
> link-local address:
>
> % ssh fe80::1%lo0 'echo ok'
> ok
>


So what Sockets API function converts "fe80::1%lo0" into a populated
sockaddr_in6 structure including sin6_scope_id?

inet_pton() only deals with and returns addresses, so it seems you have to
write additional special case code that handles the % zone suffix.


> It's true that *some* applications may still need to handle link-local
> addresses as a special case, though.
>
> > I understand that one of the motivations for Link-Local addressing was
> > the "dentist's office" scenario i.e. non-technical, plug and play, "it
> > just works" networking. Having to have specially adapted applications
> > to suit that that scenario is pretty contradictory to that goal.
>
> I wouldn't expect a dentist to type in a textual link-local address
> (or for that matter, perhaps any textual IPv6 address) anyway.
>

So my thoughts have been that things like MDNS would also return the zone
information for a LL address to the resolver, although I haven't looked
into whether it does or not.

I still see that it would be simpler if interface or zone information was
effectively embedded in the LL address, as it is in GUA and ULA addresses,
using the, transparent to the application, node's route table to resolve
and determine the ingress/egress network link interface.


  In
> this context it's more about a higher level problem than
> scope-awareness of the application.  It would have to use some kind of
> zero-config service discovery library with sophisticated user
> interface.  That "library" may have to be aware of the concept of
> scoped addresses more explicitly, but the application would be more
> likely to be agnostic about it.
>
> --
> JINMEI, Tatuya
>