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

Shang Ye <yesh25@mail2.sysu.edu.cn> Fri, 07 April 2023 15:39 UTC

Return-Path: <yesh25@mail2.sysu.edu.cn>
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 56B3CC14F75F for <ipv6@ietfa.amsl.com>; Fri, 7 Apr 2023 08:39:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.408
X-Spam-Level:
X-Spam-Status: No, score=0.408 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FORGED_MUA_MOZILLA=2.309, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
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 TlGVv84rQnbi for <ipv6@ietfa.amsl.com>; Fri, 7 Apr 2023 08:39:07 -0700 (PDT)
Received: from smtpbgau2.qq.com (smtpbgau2.qq.com [54.206.34.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 88980C14F747 for <ipv6@ietf.org>; Fri, 7 Apr 2023 08:39:05 -0700 (PDT)
X-QQ-mid: bizesmtp79t1680881931t36kiewv
Received: from [172.27.55.72] ( [58.249.112.45]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 07 Apr 2023 23:38:50 +0800 (CST)
X-QQ-SSF: 00400000002000B0F000B00A0000000
X-QQ-FEAT: 3M0okmaRx3hH1Ty8JvMDSIpDL3vLojTPkEh2acBEbeZ1a8KPbP6kKSu2wzxcJ PTU/XZsXjlCB2QEgB0ofEnBzCnBbslla1u6KoZyPmqgg0OiDGUlyBAUp08aWX6dMi1aS/8G IslqyArGE194oQ9OZmJoGQfyz+WkxIyHq1RJZpeEM97xOwHpk7g6dYyhf8LA9Hp6yJRa83G ajOM0yNw+/HA2TxrqbZiuVe7UdkYM9QYeL1EU+VHC+UjgQSJf/BQczKECHxmG2c5BQLnJuI uhjzLK7uQfGYRGbuR+RLwUbRM9J9POo+NF6uGHGbUgnJHR7IJkqfLu0TMek+9faO5Iekba5 tvcW3mP+ebuXjp/L8DjLBhlBWK1+0cFCYczvvP6WiEgM5mudzM=
X-QQ-GoodBg: 2
X-BIZMAIL-ID: 2724375188687003921
Message-ID: <3885713A59BD6A3A+42276ef6-d0c9-f29d-125f-10b8a9ad9a55@mail2.sysu.edu.cn>
Date: Fri, 07 Apr 2023 23:38:51 +0800
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1
From: Shang Ye <yesh25@mail2.sysu.edu.cn>
To: Jürgen Schönwälder <jschoenwaelder@constructor.university>, Brian E Carpenter <brian.e.carpenter@gmail.com>
Cc: IPv6 List <ipv6@ietf.org>
References: <168084071877.13626.3983641153813140583@ietfa.amsl.com> <6b5a79e7-b00e-ced3-43f3-5e975112e79c@gmail.com> <20230407072611.hva2mdwhyqhmyv3z@anna>
Content-Language: en-US
In-Reply-To: <20230407072611.hva2mdwhyqhmyv3z@anna>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
X-QQ-SENDSIZE: 520
Feedback-ID: bizesmtp:mail2.sysu.edu.cn:qybglogicsvr:qybglogicsvr7
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/JiKyTqQa0_8E--psA83RR4D9l4U>
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 15:39:10 -0000

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?

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

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?

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?


Regards,
Shang