Re: [IPv6] I-D Action: draft-ietf-6man-rfc6874bis-06.txt

Brian E Carpenter <brian.e.carpenter@gmail.com> Fri, 07 April 2023 22:08 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 A8314C151B32 for <ipv6@ietfa.amsl.com>; Fri, 7 Apr 2023 15:08:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, 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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jEbH3HC8Q9tF for <ipv6@ietfa.amsl.com>; Fri, 7 Apr 2023 15:08:44 -0700 (PDT)
Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DBFB1C151530 for <ipv6@ietf.org>; Fri, 7 Apr 2023 15:08:44 -0700 (PDT)
Received: by mail-pj1-x1035.google.com with SMTP id d22-20020a17090a111600b0023d1b009f52so2433859pja.2 for <ipv6@ietf.org>; Fri, 07 Apr 2023 15:08:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680905324; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=x5W2TRq81hL0fHyR2NK5Oljg39ijZxQbcwKdU1qtEQI=; b=MqmYgLEvl2KvDhRmQsWZXMN16Q+IeV0B2FFPoQQmdtgMCk/EYTfHNc2awXES+2sy5M cAu1YjecCR+mAKp39bd+QCR4m90JB3Q8sXXeQzyXycdGVAFWng+wfi2PiHjmuaohh4+X 6KFHTkO9b/lnX3+f7x94ohsq7wjjdyNi6gZEdvcrpFOC0XnA7xHgBhgSRtmdLp0It30M Wozx8lqrKsusuApDlh5ah9Ywpr+tpwKJC4ZI/JbatP1MIIQrY4zdXJvTK7C7e4M/6VD0 RMEgQ4qnPeCd/bUEbUf4kk1uMThRnG7N8m31h8O70/CQC+03FEWS6wdlCMFCbSxFMRc+ N5JQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680905324; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=x5W2TRq81hL0fHyR2NK5Oljg39ijZxQbcwKdU1qtEQI=; b=tYVoXPCZJsmZA6gWHiChgg/v5uZ7Al+phC/FRb1bCh7uHK4d9uRZoBGsls6IIV89a0 2z3aN2XBXUq7ozy4MvbF5BQUhM8GW+XKvDqu0lU/MJw4SnW/Mj49WYVaWbYPIKJ8ysVG Avigl53ESc5Anu46ncaWOwKL9vh/Z3FrL8n+ypBkloT9JSPVSO1kxTdu+IVLZm8bplrs ZCQmlfGRf4X0RTcx+77W2B3RP4UR+KcpcZ6COVGyKU7JkDL8nowy9nojRC1dHiX95rSA 9tW8wC+pr44L1pFJXv0yd85u3j+faYqqglu5URDkpRHEpQ14sU3EvN1pK+TswzGrh6Yi ce4w==
X-Gm-Message-State: AAQBX9dwQR9wIf+KIB14kp8LvHEkPByE6WMjI5uK5kKkDWHFpevAgj19 6i7v22fHyCFzWi25jToiiBul+8LNcIzR2Q==
X-Google-Smtp-Source: AKy350a5+iWchu7gT4lIT9PD5dVRzrYJJ+4HQJfCbmm8r+TEmIKQnI4ubWmSOFXuokQJwabRJ99dYg==
X-Received: by 2002:a17:902:fa45:b0:19f:3234:fec5 with SMTP id lb5-20020a170902fa4500b0019f3234fec5mr3381817plb.51.1680905324327; Fri, 07 Apr 2023 15:08:44 -0700 (PDT)
Received: from ?IPV6:2406:e003:1184:f001:9991:d1ad:8c20:42bd? ([2406:e003:1184:f001:9991:d1ad:8c20:42bd]) by smtp.gmail.com with ESMTPSA id jh15-20020a170903328f00b001a5240aa535sm310122plb.37.2023.04.07.15.08.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Apr 2023 15:08:43 -0700 (PDT)
Message-ID: <ede73f8c-439e-dabe-4f7b-3f5d40a95618@gmail.com>
Date: Sat, 08 Apr 2023 10:08:38 +1200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0
Content-Language: en-US
To: Shang Ye <yesh25@mail2.sysu.edu.cn>, Jürgen Schönwälder <jschoenwaelder@constructor.university>
Cc: IPv6 List <ipv6@ietf.org>
References: <168084071877.13626.3983641153813140583@ietfa.amsl.com> <6b5a79e7-b00e-ced3-43f3-5e975112e79c@gmail.com> <20230407072611.hva2mdwhyqhmyv3z@anna> <3885713A59BD6A3A+42276ef6-d0c9-f29d-125f-10b8a9ad9a55@mail2.sysu.edu.cn>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
In-Reply-To: <3885713A59BD6A3A+42276ef6-d0c9-f29d-125f-10b8a9ad9a55@mail2.sysu.edu.cn>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/wtgf2183m4paKa4Q1x6rGDew9c8>
Subject: Re: [IPv6] I-D Action: draft-ietf-6man-rfc6874bis-06.txt
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.39
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: Fri, 07 Apr 2023 22:08:46 -0000

On 08-Apr-23 03:38, Shang Ye wrote:
> Jürgen & Brian,
> 
> On 2023/4/7 15:26, Jürgen Schönwälder wrote:
> 
>> In other words, why not simply use the
>> following approach:
>>
>>     extract ZoneID characters
>>     try to parse them as a numeric zone identifier
>>     if succcess, done
>>     otherwise try to parse them using if_nametoindex()
>>     if success, use the index
>>     otherwise report failure (or try any future zone name to index mapping function)
> 
>   From my experience of writing a URI parser, I can tell that this is
> indeed the right way of parsing a zone identifier. Should we probably
> mention this process in the document?

I'm not convinced. Eventually of course the socket API will parse
and verify the zone ID, but I don't believe we should attempt to
to specify exactly when that happens.

> 
>> What is the rationale for limiting the focus on human readable
>> strings?  Why not generally support numeric zone indexes as they
>> should always work and accepting zone names (oops interface names used
>> as zone names) where this is feasible (i.e., the names use lowercase
>> unreserved characters)? If we generally support numeric zone indexes,
>> we would not have to exclude so called "infrastructure devices" since
>> they should be able to deal with numeric zone indexes as well.
> 
> Aren't numeric zone indices already supported in the current format
> because they are exactly human readable strings? Section 11.2 of RFC
> 4007 also says:
> 
>      An implementation SHOULD support at least numerical indices that are
>      non-negative decimal integers as <zone_id>.
> 
> So I don't understand why this sentence is necessary:
> 
>      However, in some operating systems it is possible to use the
>      underlying interface number, represented as a decimal integer, as an
>      alternative to the human-readable string.

Because it's only a SHOULD, so we cannot rely on it.

> 
> On the other hand, the following sentence is mostly true:
> 
>      For example, on Linux, a user can determine interface numbers simply
>      by issuing the command "ip link show" and then, for example, use
>      "fe80::1%5" instead of "fe80::1%Ethernet1/0/1", if the interface
>      number happens to be 5.
> 
> Except that we can't really make a network interface name on Linux
> contain slashes, can we?

Why not? Have you tried?

> 
> Now that users can work around their inability to use an unsupported
> interface names in a URI by first converting them into numerical
> indices, is it possible that we replace the ZoneID ABNF rule with
> 
>      ZoneID = 1*( %x61-7A / DIGIT / "-" / "." / "_" / "~" )
> 
> and thus avoid the case-sensitivity issue of zone identifiers altogether?

The whole point is (for the normal caases) to allow straigthforward cut and
paste.

Regards
    Brian

> 
> 
> Regards,
> Shang
>