Re: I-D Action: draft-carpenter-6man-rfc6874bis-00.txt

Philip Homburg <pch-ipv6-ietf-7@u-1.phicoh.com> Thu, 08 July 2021 09:53 UTC

Return-Path: <pch-b9D3CB0F5@u-1.phicoh.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 761753A1B13 for <ipv6@ietfa.amsl.com>; Thu, 8 Jul 2021 02:53:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.887
X-Spam-Level:
X-Spam-Status: No, score=-1.887 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_NONE=0.001, T_SPF_HELO_TEMPERROR=0.01] autolearn=ham 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 L7z04tDAEMfE for <ipv6@ietfa.amsl.com>; Thu, 8 Jul 2021 02:53:34 -0700 (PDT)
Received: from stereo.hq.phicoh.net (stereo.hq.phicoh.net [130.37.15.35]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1A2E83A1B0E for <ipv6@ietf.org>; Thu, 8 Jul 2021 02:53:24 -0700 (PDT)
Received: from stereo.hq.phicoh.net (localhost [::ffff:127.0.0.1]) by stereo.hq.phicoh.net with esmtp (TLS version=TLSv1.2 cipher=ECDHE-RSA-CHACHA20-POLY1305) (Smail #158) id m1m1Qie-0000FLC; Thu, 8 Jul 2021 11:53:20 +0200
Message-Id: <m1m1Qie-0000FLC@stereo.hq.phicoh.net>
To: ipv6@ietf.org
Subject: Re: I-D Action: draft-carpenter-6man-rfc6874bis-00.txt
From: Philip Homburg <pch-ipv6-ietf-7@u-1.phicoh.com>
Sender: pch-b9D3CB0F5@u-1.phicoh.com
References: <162545101341.19246.8566193740265797873@ietfa.amsl.com> <95a7dbe5-e0a3-4676-9dcc-005ff53725e0@gmail.com> <CA+9kkMD3iSgo-KMM5Ed8bVnVCu_G3f2kB6zHKoOx2ta=x8QucA@mail.gmail.com> <CANMZLAbmdWHDRBPpHgy_e4_0-WUVW2gjnbXWwu2pF_xi-S0vWQ@mail.gmail.com> <87a6n13y0j.fsf@ungleich.ch> <CA+9kkMBx4F0FGZasdk11ogyCOwQZecAEkO4JbECDr4osySN-4w@mail.gmail.com> <01289d8c-a470-1867-448f-3d616647ba5f@gmail.com> <87bl7flww8.fsf@ungleich.ch> <6771.1625578366@localhost> <m1m19WD-0000EXC@stereo.hq.phicoh.net> <e90a069c-873f-6c93-29f0-b69c9430b66b@gmail.com>
In-reply-to: Your message of "Thu, 8 Jul 2021 09:18:39 +1200 ." <e90a069c-873f-6c93-29f0-b69c9430b66b@gmail.com>
Date: Thu, 08 Jul 2021 11:53:20 +0200
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/cbI6d7UqaSkr7NSiSzJ2eG2C0fs>
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, 08 Jul 2021 09:53:41 -0000

>> Instead of doing this, maybe we should pick a new character in an update of
>> RFC 4007 and deprecate '%' as a mistake?
>
>Even 9 years ago the WG concluded that '%' was too engrained in code and
>actual practice to deprecate it. Many libraries that handle IPv6 addresses
>support '%' and that means that innumerable pieces of software would be
>impacted, so deprecation seems impractical.
>
>If this was a mistake, it was made in 2005 when we approved RFC4007.

If we started changing 9 years ago, we would be done now. What I see is
that addresses with zone IDs are used rarely and locally. And lots of software
doen't even know how to deal with it. 

If we now introduce, for example, '-' in addition to '%' and require parsers
to accept both, but canonical output remains at '%' for a while then we
will have a sensible input format for URLs.

Keeping '%' as the only option means that URLs will remain a mess.

>> Aternatively, if we make fe80::ABCD%0 a valid address in the socket API
>
>I think you'll find that it already is. I use the netifaces module in Python
>and it returns things like [{'addr': '00:ff:19:f7:7d:9a'}], 23: [{'addr': 'fe8
>0::216a:f0d3:2303:3d1%6', 'netmask': 'ffff:ffff:ffff:ffff::/64', 'broadcast': 
>'fe80::ffff:ffff:ffff:ffff%6'}]. It's a bit obscure, though. Also (before
>Python 3.7) socket.getaddrinfo(socket.gethostname(),0) on Windows would
>return fe80::216a:f0d3:2303:3d1%6, but somebody changed that behaviour.

I guess I was too terse.

>From a socket API point of view writing an IPv6 address without zone ID is
equivalent to using zone ID 0. So 2001:db8::1 and 2001:db8::1%0 are the
same. 

However, in the case of link local, the opengroup specifically disallows
the use of zone ID 0.

If we would introduce a command like
'set-default-interface-for-link-local eth0'
that makes zone ID 0 available, then a URL like http://[fe80::abcd]/
could work. No change needed to browsers, no complex syntax.