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

神明達哉 <jinmei@wide.ad.jp> Wed, 24 April 2019 20:08 UTC

Return-Path: <jinmei.tatuya@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 05DF4120132 for <ipv6@ietfa.amsl.com>; Wed, 24 Apr 2019 13:08:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.669
X-Spam-Level:
X-Spam-Status: No, score=-0.669 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.979, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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 Sv3PO1tbZaiS for <ipv6@ietfa.amsl.com>; Wed, 24 Apr 2019 13:08:26 -0700 (PDT)
Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 E42FC120025 for <ipv6@ietf.org>; Wed, 24 Apr 2019 13:08:25 -0700 (PDT)
Received: by mail-wr1-f46.google.com with SMTP id a12so3609332wrq.10 for <ipv6@ietf.org>; Wed, 24 Apr 2019 13:08:25 -0700 (PDT)
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=nGOJVrEa2+YptGkiaiWJvGaJf7eFgAyIzXxNJ4DfShw=; b=LOiEq9azStw+c3sqnJmsmuc8cFS3obOn+jP1m420TkTOj+qKVngYMca6mrRUjSTvhz VJ9iianCt/hgJA+1HxC0B8CSlKzynR+xakNzMmGDf6V6w/rXLERO1qEho8sBoxSyS7+K vFM3fzEwIZmK9L5NnyhFW6C6I3P/4INc68wGjcHn8+TOA2fPafGAjLc9Qd1vNrulHeDy kdfUxHoa8TbX0AHMiGw8oCpm2dIkEDCuJOh2UrGZ3EgHB8gNNlllC2/mW0M3SWqU3wld d7zrlffyzQD5pMmVc2pQ7E+A30w2jf2d9iuPq+etQMh6+bbCpgpk2yTjY0tqyOtba+Dz QbFA==
X-Gm-Message-State: APjAAAUnxphzuua715akmOEi2De+yry6hr6GeE/Zi/mOei2Sv3Sv3Dz3 6YC8kyew9T8wk85r2ZWtxR9st5XduO6iB75Opg0=
X-Google-Smtp-Source: APXvYqyC369UTRtib5l3uj4anHMLB8/XzvGsIXXGiuQ6Qe5Fbif5aaCaNzH62W8BtyQBebKaP59HS5On30Uz8mn1eCM=
X-Received: by 2002:a5d:6b46:: with SMTP id x6mr22035389wrw.313.1556136504251; Wed, 24 Apr 2019 13:08:24 -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> <CAO42Z2wimfJexfUfs+mfo6Cs8simv9XyTqCaU49VDaSqBG-BxQ@mail.gmail.com> <887AC8E6-2955-4AB0-9F9E-A20BC93E098C@isc.org> <CAO42Z2ywLQawBsW9pT-=SX98QyVWsU3pdCHWzgmWwGVTSwNdcw@mail.gmail.com>
In-Reply-To: <CAO42Z2ywLQawBsW9pT-=SX98QyVWsU3pdCHWzgmWwGVTSwNdcw@mail.gmail.com>
From: 神明達哉 <jinmei@wide.ad.jp>
Date: Wed, 24 Apr 2019 13:08:12 -0700
Message-ID: <CAJE_bqcczW_eZHp=_c47kh2zfCgoCrj_3bCYpZBaYDtDuDP3jQ@mail.gmail.com>
Subject: Re: Globally Unique Link Local Addresses (Re: about violation of standards)
To: Mark Smith <markzzzsmith@gmail.com>
Cc: Mark Andrews <marka@isc.org>, Fernando Gont <fgont@si6networks.com>, "Pascal Thubert (pthubert)" <pthubert@cisco.com>, 6man WG <ipv6@ietf.org>, 神明達哉 <jinmei@wide.ad.jp>, Alexandre Petrescu <alexandre.petrescu@gmail.com>
Content-Type: multipart/alternative; boundary="0000000000008ed8ed05874c43f1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/GJEcw7WbHLoVm2zk6Wu9SP_pBLo>
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 20:08:28 -0000

At Wed, 24 Apr 2019 20:29:57 +1000,
Mark Smith <markzzzsmith@gmail.com> wrote:

> > getaddrinfo() does in most implementations as it returns a pointer to a
> > struct sockaddr_in6 which have a sin6_scope_id field.  inet_pton() deals
> > with the part to the left of the % symbol.
>
> I was more thinking about scenarios where only an address is expected to
be
> supplied, so there would not be a need for a DNS look up.
>
> So it wouldn't and didn't occur to me to use getaddrinfo() just for the
> purpose of converting an LL address % string into a sockaddr_in6
structure.

Today's applications use getaddrinfo() primarily to be protocol
independent (and to support both IPv6 and IPv4 as a result), not
necessarily for scenarios involving name-to-address resolution, let
alone specifically for converting LL addresses with the % notation:
apps don't have to use protocol-dependent code logic whether it's
invoked as "ssh 192.0.2.1" or "ssh 2001:db8::1".  And for this primary
reason the use of getaddrinfo() is very common.

The better support for scoped addresses is just a bonus effect of it,
but thanks to the common adoption most modern applications can
understand the % notation without doing anything special for
link-local addresses within their application code.

That's the whole point of this topic.  Recall the original context:

> 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.

the point is that "each application has to be written to specifically
handle them via sin6_scope_id" is not correct for most modern
applications.  I don't deny there are still exceptions, but they are
exceptions, and would be weak to be used as a rationale to introduce
something new.

--
JINMEI, Tatuya