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

Brian E Carpenter <brian.e.carpenter@gmail.com> Fri, 07 April 2023 23:27 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 46F27C151B23 for <ipv6@ietfa.amsl.com>; Fri, 7 Apr 2023 16:27:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.099
X-Spam-Level:
X-Spam-Status: No, score=-7.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_HI=-5, 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 wvieiDj-CBm8 for <ipv6@ietfa.amsl.com>; Fri, 7 Apr 2023 16:27:51 -0700 (PDT)
Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (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 CD726C151541 for <ipv6@ietf.org>; Fri, 7 Apr 2023 16:27:51 -0700 (PDT)
Received: by mail-pj1-x1034.google.com with SMTP id q15-20020a17090a2dcf00b0023efab0e3bfso2562880pjm.3 for <ipv6@ietf.org>; Fri, 07 Apr 2023 16:27:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680910071; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HdtSmSitkgK3VwLV1a/a/9azymliH9eZV0riaLeAnAw=; b=GBndnOcuYNmhRrTTJyCsHfYnL1cpBlOGYuxw8zN81ENcOZ7+UDXc+xaxPNw5M0a+Y0 CoZoFDFMLnrJ5R8tJHVSTB0kv7fStte1LbaWKwc4L6JvbzDg/yK6/p/TchCvpbSV8gVF RogwjdGCVoqNtnL+yLx4xrmK5xU7ogxtwsUsSmD5LBTVZUeZWgPwySFjq3Nz9W4AIuLs THyecdvF/unLCtzS13jHQjVP0oRB46X9jX0E5wjsWmk24n3paIUGVWXi8K3Oka+I2Rtm H2dTfEgVEULZzPUG244n6rWio18cV4oHiC9gXrkjk3Xmw+AG1eLRdY3hAEwIXvWVd7zT 5Jbg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680910071; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HdtSmSitkgK3VwLV1a/a/9azymliH9eZV0riaLeAnAw=; b=Sqh0k94zw9MyUsTHeNt3h2+60bMEwZPYbbYUEIq8lFEzBMIf9BJdyMJlPpzh83UmUk kJiMFmxjIb6WnCQgfmNXxf1lNqbZJz6yrmRzA8qz8ABgJX7DsFA6JWiikgtlRxDHIrop XJKT5Sjf9Rjt14qtvFOSO+pt0pWrQ3Z0X+d+NxbjAUww30/D4UFPQqnViIwByFASBG5O hdICIlyeC3FvobPsj9zjtuHzeJgdTfWVTQRxFjIYN9duhUVPXQusnNv60pNhzmoVfxVT xtJf9hEUbn2h3VbJoX7BlOeNwLt/oXSCXpGvTR3P42bq5gMDmvfDTnAMFhnbV/b7KoQc 9A5w==
X-Gm-Message-State: AAQBX9dqKHestdjlxNINTAoBxcNvYyXvYsdsbrm519SzU/BGsY3aYkqy 3QmYv6M47RZRlXMkKcXV+W30QADGLcwAMg==
X-Google-Smtp-Source: AKy350b7T+7Fi4TUT/VV5XDNzLaHIHP9+tvJUfxzbNMRY7qshSKHszuUPKrNU7k5FREBh0UvUrMKAQ==
X-Received: by 2002:a17:902:ce90:b0:19b:dae0:c97d with SMTP id f16-20020a170902ce9000b0019bdae0c97dmr5057999plg.32.1680910071009; Fri, 07 Apr 2023 16:27:51 -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 y12-20020a170902864c00b0019eae717885sm3402873plt.107.2023.04.07.16.27.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Apr 2023 16:27:50 -0700 (PDT)
Message-ID: <c0610de8-1a64-a4b8-4df6-5d93e8530270@gmail.com>
Date: Sat, 08 Apr 2023 11:27:46 +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
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
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> <ede73f8c-439e-dabe-4f7b-3f5d40a95618@gmail.com>
In-Reply-To: <ede73f8c-439e-dabe-4f7b-3f5d40a95618@gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/NTSBxIr4e_QuZvXolReBGQaHXiI>
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 23:27:52 -0000

Jürgen & Shang,

I realised a serious problem with this:

>>> otherwise try to parse them using if_nametoindex()

That is only valid if the URI is parsed in the host where it originated. On any other host, the result will be rubbish.

Parsing for valid characters is OK. Interpreting the actual value is not OK.

Regards
    Brian Carpenter

On 08-Apr-23 10:08, Brian E Carpenter wrote:
> 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
>>