Re: [v6ops] Scope of Unique Local IPv6 Unicast Addresses (Fwd: New Version Notification for draft-gont-6man-ipv6-ula-scope-00.txt)

Brian E Carpenter <brian.e.carpenter@gmail.com> Thu, 07 January 2021 20:23 UTC

Return-Path: <brian.e.carpenter@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 688353A0DFF; Thu, 7 Jan 2021 12:23:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.361
X-Spam-Level:
X-Spam-Status: No, score=-2.361 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.262, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, 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 0WD1aekJoXSz; Thu, 7 Jan 2021 12:23:57 -0800 (PST)
Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (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 1F0343A0DFC; Thu, 7 Jan 2021 12:23:57 -0800 (PST)
Received: by mail-pf1-x42d.google.com with SMTP id a188so4566596pfa.11; Thu, 07 Jan 2021 12:23:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FpewZUbjm+wz7zAp0M8DPi5D6AOxjcwSMl9eiDAMKqs=; b=BifO5rTA+Q4qO55UshAzWWFQ9Q3geCdoUyfGmSEvHCjweGaPr+NGXrkDoUh1eZu6xg JzSPMhmLAMKh5XDYFWh/D09OHIl/iYTtu7fk+T5+Y5v3tK+s9IxyaLii5NBNXuOV6/S7 ZybwVPNGdusmxxvjR0SHsWc+Q0bOMoBxl/Uvn/mVxKWpNb0l0rBkhq7SusDb1Fzst+bm DOjuIS6F1HY91qnxxKltWS6i1zGamGZx2AfJhEHlPqMgVk7Wv5/a7uX9F8/mm4rEDgRl uBC2fdvVSmJ/cuZEwrlc+lCiVEMDzgJ7FY+sHiJm9o5B4KUNtjuSUKcLNdssTGNqYRhx PJ0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FpewZUbjm+wz7zAp0M8DPi5D6AOxjcwSMl9eiDAMKqs=; b=Pu5EHKGMCr/bghO375oGL6eoDeeZZ3/3CGI0/wZxM4W87BqqsvtVzPs9R+9n3jK14Y 1ZY7CZA0iTC2NDw1diGvpVJNJNqlYPr214eLkOeft3MNBJkXak36oLMlugVEfldMqq97 DcHXiM9LN4pp0d7p+US/8z+XsSciM9RRjGBHHX3j07v4GCvqWHnK+sm7eEA73ncOGysF kDU9U7UUUteYKmLc79SZoThRlm0oqYn+bcvDPJPfRoV1b53YZHR+dHjOmho6RfdibSMq 1CIOZxdsO/a1OWoF7dFF+ZnazvvSreAK2DcbtGa72jpUI+0E/jwrGbwPcYio+cmWK23N YZDw==
X-Gm-Message-State: AOAM5302IrhP04YlZrJPed7l7xbymGwU2vSfyrzuPDYoNITwT9NrJ+Lf OdmYcCer3TgIhdnFffcluKG1bjQ0gu7hxg==
X-Google-Smtp-Source: ABdhPJxr3FyH4yPJyNDHDQnGoFg2HcodvJZcrkjja+r1+xwES7Oiblh8wYn0GndFHMd2ZuWK9qGPqg==
X-Received: by 2002:a63:804a:: with SMTP id j71mr3507284pgd.307.1610051036219; Thu, 07 Jan 2021 12:23:56 -0800 (PST)
Received: from [192.168.178.20] ([151.210.131.28]) by smtp.gmail.com with ESMTPSA id d4sm2857337pjz.28.2021.01.07.12.23.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jan 2021 12:23:55 -0800 (PST)
Subject: Re: [v6ops] Scope of Unique Local IPv6 Unicast Addresses (Fwd: New Version Notification for draft-gont-6man-ipv6-ula-scope-00.txt)
To: Philip Homburg <pch-ipv6-ietf-7@u-1.phicoh.com>, ipv6@ietf.org
Cc: IPv6 Operations <v6ops@ietf.org>
References: <160989494094.6024.7402128068704112703@ietfa.amsl.com> <6fe3a45e-de65-9f88-808d-ea7e2abdcd16@si6networks.com> <CAO42Z2wR-3vbHi-NrBBMmCTNDq5fgqvSmBUbYK7P+63QTNfxkg@mail.gmail.com> <CAKD1Yr014PzVJj9Y6O=PBGc_QSVtur-0wMpaNkFA0dqr8FHGuA@mail.gmail.com> <44e7ac61-523a-d35e-9024-7e6df81e4226@gmail.com> <m1kxTfc-0000M9C@stereo.hq.phicoh.net>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <7a61fb44-b5f1-9601-4fab-5b676f0cad83@gmail.com>
Date: Fri, 08 Jan 2021 09:23:51 +1300
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
In-Reply-To: <m1kxTfc-0000M9C@stereo.hq.phicoh.net>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/5nqrHSyi9s8Sc2V7Z0W0fTJtS0Y>
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: Thu, 07 Jan 2021 20:23:58 -0000

On 08-Jan-21 00:41, Philip Homburg wrote:
>>> No, rewrite RFC 4007 and get rid of zone IDs. And the introduce interface I
>> Ds
>>> to select the interface of an outgoing packet, whether link-local or global
>> .
>>
>> Effectively that's what RFC3879 did. RFC4007 was a bit behind the
>> curve. As far as I know, zone IDs and interface IDs are exactly
>> equivalent (at least in POSIX and WinSock environments). IMHO this
>> is *only* a terminology question.
>>
>>> It doesn't change anything in practice, because that is what existing code
>>> does.
>>
>> Really? Using the interface ID for non-link-local addresses?
> 
> It works on Linux and MacOS. On freebsd I get
> '2001:67c:2e8:3::c100:a4%re0: Name does not resolve'
> which suggests that they do an extra check in a library. I didn't check
> if the kernel handles it.

Thanks. It doesn't work on Winsock (Windows 10 version) either. It assigns
interface index 0 to all global addresses (including ULAs) regardless of
which physical interface they are on. There is no interface 0 on Windows;
it amounts to being the "default zone" defined by RFC4007.

There's nothing in RFC4007 suggesting that a non-default zone applies
to global addresses. Rather the opposite:

"And, when supported, the index value zero at each
scope SHOULD be reserved to mean "use the default zone"...
Those default indices can also be used
as the zone qualifier for an address for which the node is attached
to only one zone; e.g., when using global addresses."

So I'd say that Linux and MacOS have got it wrong, and FreeBSD
and Windows are right. Portable code certainly can't assume that
the interface ID can be used for global unicast.

    Brian