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

Brian E Carpenter <brian.e.carpenter@gmail.com> Wed, 07 July 2021 21:18 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 D6D1F3A005E for <ipv6@ietfa.amsl.com>; Wed, 7 Jul 2021 14:18:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.435
X-Spam-Level:
X-Spam-Status: No, score=-2.435 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.338, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 pcAjFbzpQeO8 for <ipv6@ietfa.amsl.com>; Wed, 7 Jul 2021 14:18:45 -0700 (PDT)
Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (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 5D6CC3A0045 for <ipv6@ietf.org>; Wed, 7 Jul 2021 14:18:45 -0700 (PDT)
Received: by mail-pl1-x636.google.com with SMTP id a6so1781036plh.11 for <ipv6@ietf.org>; Wed, 07 Jul 2021 14:18:45 -0700 (PDT)
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=G3GMoq5R15bNP8v91n22g7YEZ7McQsee4seYAUNw4nA=; b=MgNzR3G9pbIAPLCzZEdPB9Y8zOmXKzhdxzOt+gskEVBvauaUHfoD8GoOcTm1wU5Orh gaTN8hdeMVlr0+lqZ+647Jv/68fVtfpGYlsF/VcwY0EpQit+9tZ25DUSDyqk1MJvUi4t jpq10EWcWC/RTDq5O9DqBDSvYCIPjmmmRQEyia2INHOcBZW1C83LXREUBpHtmxOgOuQl lP9YG2WQnr4jo/UOvZrCNdCtl5DLtp2jp8VCuj9OniXOWj258/zzUDslKntrRlreUQKb zS2a3uMZyZpwmuq8BeInQU36Vn8nGmHd5kK14GrxZWI+DWaeLSdPtkee/98k62S+C7DK 5Y1Q==
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=G3GMoq5R15bNP8v91n22g7YEZ7McQsee4seYAUNw4nA=; b=EWQLTjh3W2Z+CWZqTWkz6UWhgjsHkgsWjK9/EHhm/AV7m/zL0Vq6bcVuGPv62fmH9+ X/Xkw55RGRnrbifTWq6PtJZRXUf6d4etAH3ufDuoQyLCRiI5zC88Bm13SpBhxqlqPX+P V4NS3rUVsQsyn2ttBu5Kulg6zdG+B0bbwVbaTCZ9XTEe8DM/AI9xVpMUfIoHNl9KPJTt UTcwcLfiOO47UKgdFgjGEnhiuaYJ5j1K65a22k11gaXYeT855teYV/DC+d8Z1uTuzeav 7UAETseE+E01dGKOc4BFbycaiADcxbqpPllhw956Ajy17dFDlkVuk6lKUnGLelhQuIfj +KLQ==
X-Gm-Message-State: AOAM533FfRJAsqMKsV7oT6wzqi5fTx8YQm/+VQU6W6L+29FT+BpK+zFe ViQ7RZbxeH+Vfok0nz0xsb7RV9kkE0S8ww==
X-Google-Smtp-Source: ABdhPJwO13TuxKReDEScnUaANVDqfuCCSYk4ZtlsJeoEJ79OKQTGNmdv0BuMVcn8XCetPPu5vGDU9A==
X-Received: by 2002:a17:903:22c4:b029:129:8878:f872 with SMTP id y4-20020a17090322c4b02901298878f872mr15816673plg.74.1625692724148; Wed, 07 Jul 2021 14:18:44 -0700 (PDT)
Received: from ?IPv6:2406:e003:1188:5b01:80b2:5c79:2266:e431? ([2406:e003:1188:5b01:80b2:5c79:2266:e431]) by smtp.gmail.com with ESMTPSA id cx5sm7774621pjb.1.2021.07.07.14.18.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jul 2021 14:18:43 -0700 (PDT)
Subject: Re: I-D Action: draft-carpenter-6man-rfc6874bis-00.txt
To: Philip Homburg <pch-ipv6-ietf-7@u-1.phicoh.com>, ipv6@ietf.org
Cc: Michael Richardson <mcr+ietf@sandelman.ca>
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>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <e90a069c-873f-6c93-29f0-b69c9430b66b@gmail.com>
Date: Thu, 8 Jul 2021 09:18:39 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0
MIME-Version: 1.0
In-Reply-To: <m1m19WD-0000EXC@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/6RTgN_H2IF5JN554EhJanIDEWjM>
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, 07 Jul 2021 21:18:50 -0000

On 08-Jul-21 03:31, Philip Homburg wrote:
>> Nico Schottelius <nico.schottelius@ungleich.ch> wrote:
>>    > While copy & paste won't work with this proposal, I believe the %25
>>    > escape should be "good enough" for most daily usage.
>>
>> Also, ping and/or getaddrinfo() could become tolerant of %25 as a special
>> case (and given that few Windows machines have 25 interfaces), which would
>> let the copy&paste work the other way.
> 
> 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.
 
> 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': 'fe80::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 needed to make this work to implement RFC 8990 and it wasn't exactly
intuitive.

> (and do something sensible in operating systems to select a default interface)

But the interesting use cases are ones where the default won't do.

    Brian

> then we can reduce the use of scoped addresses and thus the copy paste problem.
> 
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
> .
>