Re: [netmod] Changes to IPv6 zone definition in draft-ietf-netmod-rfc6991-bis-15

Jürgen Schönwälder <jschoenwaelder@constructor.university> Sun, 07 April 2024 17:37 UTC

Return-Path: <jschoenwae@constructor.university>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 29EEAC14F6AD for <netmod@ietfa.amsl.com>; Sun, 7 Apr 2024 10:37:36 -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, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=constructor.university
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 bHwtgekmyKAS for <netmod@ietfa.amsl.com>; Sun, 7 Apr 2024 10:37:31 -0700 (PDT)
Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2112.outbound.protection.outlook.com [40.107.241.112]) (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 48AB8C14F6AF for <netmod@ietf.org>; Sun, 7 Apr 2024 10:37:30 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G5egw2Thd9m41VKSqlc/rU42RZ2fkb6e8V5QHaVhe3SqhIixmhuZVSSnsrwPDN6CteHevL+FSWIX66RRrddHnD/nR85lK+v50rKN96xnewg7lIWDS1/pGULUx2vNaEyeBKBU1fYagR6Qzlm9EjLJ+uxFE2WH5DgIm0PtCh0YpMfXn0xA3oF5caRtHnPvMo+mofyZ2MwxeLuDW5HOfoP+NOgXAwTxA+qpjf3iDyfGlME5FmbPLYYp4M0AV/183NS6+UamTGcBmHBmAGsjh6XbxL1AtkJ2OPH7ogeO8liON2+i9VVidJQT8p8ARcE5w/Tjy13ZxScn9eASm0Rtzd9RlA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5+MZ/fpsdYCao8IEDjyQSz+bHGR9BK0kurz9OLo1C8o=; b=WPmvNIWh9CGyd4UpxP803Kp0KYUtJWsZVs+8Ix4MsXLwXTgCUcScvivvhouvduEO0Nek3Iu1Zd1nw39cvRC35C8NXFbTJONhTC99/Ued+yY7JaHURmTib3forxLdmD5JsNXwz+EGM72YorX/lK1DRA6P1XYDAd7h02DZIhGPS/6y2a9qfZfqq/se+UyBEwV8SUDs2XvVQmThJs9DIHDYZiBLYKa/deuVev0yil2MoPJ4npNlFXaPItX5bH2p+5nyTqTUc0i15geJtA6DDGAuze0hYt7Kw0b7NKnROIIGFhNGLKLrWpLKD8Gcl1kXJHaAKETb2BuKsDuIbzJnoldZvQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=constructor.university; dmarc=pass action=none header.from=constructor.university; dkim=pass header.d=constructor.university; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=constructor.university; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5+MZ/fpsdYCao8IEDjyQSz+bHGR9BK0kurz9OLo1C8o=; b=RQ0kcSqzRu4lKKYN1L//vTux/MEw9vFBMR7YGJz0f6XKZ2uNtwsPq05b7bWo83ixfS0ytlVSB+BsPVW83Cx3tPQOZATIh2DfARHYl3jv+jsJHOU65It+llFp/1+ljQYkBJLC4tQgU6zkpMXlPZwXEaV3l9SZpuhQAZvCcnmGhK4IipKByMtHyVBCZO12kXkkc1ZsAx/XJbie9YlDYwz05eOFCYNNI1Lk9BskEHn2yyzpRJ8spJJDeSjxqfvOx5I4bqHsbiINJYp5cQjpgukeMvkijGSQXL5shCzV/8R7jgBORrnzyX9mGcWXnN1arOYMlkIAN9SaQdUzkpJtgPO9kQ==
Received: from GVXP190MB1991.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:3::6) by AM9P190MB1314.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:268::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Sun, 7 Apr 2024 17:37:27 +0000
Received: from GVXP190MB1991.EURP190.PROD.OUTLOOK.COM ([fe80::a279:5583:a8b:382e]) by GVXP190MB1991.EURP190.PROD.OUTLOOK.COM ([fe80::a279:5583:a8b:382e%3]) with mapi id 15.20.7409.042; Sun, 7 Apr 2024 17:37:26 +0000
Message-ID: <797b0f5f-b1b1-45a9-82b7-75ed6ff65007@constructor.university>
Date: Sun, 07 Apr 2024 19:37:24 +0200
User-Agent: Mozilla Thunderbird
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
Cc: NETMOD Working Group <netmod@ietf.org>
References: <BY5PR11MB41966FD2ECEFB84708C5A325B5869@BY5PR11MB4196.namprd11.prod.outlook.com> <16d6f918-ea40-3596-9292-d2656eec8ad4@gmail.com> <8d491135-c720-228c-efad-f1f3fa113545@gmail.com> <B655FE46-F8B9-4BAD-A4AF-7E6E2627ACE9@gmail.com> <1786272e-6982-42b3-a9f3-31cf5075089d@gmail.com>
Content-Language: en-US
From: Jürgen Schönwälder <jschoenwaelder@constructor.university>
In-Reply-To: <1786272e-6982-42b3-a9f3-31cf5075089d@gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
X-ClientProxiedBy: FR3P281CA0006.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1d::16) To GVXP190MB1991.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:3::6)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: GVXP190MB1991:EE_|AM9P190MB1314:EE_
X-MS-Exchange-AtpMessageProperties: SA
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 6nRRBCOglw1pzFV2iz4fB/w8BEt/eyhS4hBJUCOcNrJlgWgqjYHr9cFthPPX9dn+Y6/ylVwC7amAMVC+v5qBZqqSiaq7X8b9B3CSCML+Zjfp/1K6FVZCoCg0L5zhE+zEgTiy1Vv5BH3Vk9njhcVK+aXeijxpA5j3TXyP1GDiFR4Pyygdi4RWAh8caKXuwew+9lIF/oyvV4ffiDpvoPmFMgkHQX84LTbWsyTV+ePbNHNnygthLphnWAQ2Q09GSqL+t0SfiCgktTxnnfdBZho+9IrgJHYBFaC/2+fj1qMzBSfy1cLUExsQxDdLY/EGgvP8HEozUnJxzcydAAQ5kiFAASFcFqtoUvT+88lujQ60UPNbCbcReymKjh+4lxB9QXUAAgsBmL4km5S/W59kD+g8+b3k5sP2TNZrPBWrkOViawUfAv/PyxM9Wo+Jt8YxG2rALO2N5eWktTrxa3AX7VEJpwdf5d636niZhR1bKX27Skht7ice0EcLC0WUYPlJRTO2a8DaEihYwZ7Ce556tuag7xCSwtUIGIlCvJC++b4RZNLZ13xWbyjp52nJjGB1qJJLRqRhog1fglGAyXaMQTBMDwczZUN3NBZCS7ZERlbrOrBypsWOwZWQOaz25keYAkOpWbB4EfKjNLuaDBU3YNK4tInGZ9c8M3U5ye5S+tXnuV4=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:GVXP190MB1991.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230031)(366007)(376005)(1800799015); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: Beyah2rUWdRbcfrYqGblykOPPrh5zMAJd1Yp3yNG5FqLRiPXdlI0uAeEoXJMnWNEaM7XG2t+/DHtYXqLVNdBDD31q30xJhe6u+Xpe4ftMeBC7r2kWfKD6tgTmVY7z3xsdGEOoYQANZeonzZ7ZlK9KSUC5t7Pt2REsgsN0kW0R5kU8jRq48SFk1K4Rapl4lBVg0cQS72PnJRpfrpr1nwynUtT/6rt0bAEwD2Qw7iSUFkTRHxo9kas60zVPonVgs97LheB6kAggMm139aCaR741Z4IzYCrNN8gkRMDdwnrxc9o7Buyb8CTK52QAIB11Baa6EfcstFUrENC04p2smFhjLhaatkmo86Ix+QBe18CguPXdsWpL57nALXuX9wKc70U57gNIZiSexDkmTqpfDjBZoJAnbUopTdAX9RPggJjEbYGE4vkGjTWZxjJTUUnYs0Skm9IsvU6k98XAR81hZ/SPX57HUhMNiVEwXFw0LOkNPw6o/Kgbtgucywv6tYM+qjCSRMX1px+ExmU5XILdXd8qpy21g37EeYekLoINhdYhf8mZS3hn7RsSxRV63PXmuix9Z98qtzqNU41uuJOcULW53igmSsXbg+do62IeuqSNptggIiHXhLZxP3VF6Vcpk4qDYJtsq36K5R3CM0FDoLfillNt9lmzTBVgCU2etlOqH3Q/PVQVnc/UvgL9H6QU1wyNUGkfKpJiWHujrCQToIx/eq19At36jDF/4TmhKXt44C8RNla+XCWiQgHpdmeEpyZkxzGXjyA83wWLjuaaFHeX/f7FRMwjcDolHf20rMQAFwEEKWmiqO1SmUwitQSp0oZIJEX6UiUJi7jc32dRx8eWOtP+cOKwpfgbwbjdyjOVF+A7gf0UoZMTy9D8vll12xucyzU0W+xq9iO/wJ0KFBzhCgwM1nDlRR/aiqc5uihOya/rDszzzFSYuN3yRXoZbNdkVgNb197T5d0xCfC13sfrL+D14aZ5BFRnFUsEvHpj9TANdGiSMxHwqU6luDBtuZLxekANDhQqcxSiAzYeO7q1Yk4HBjKsmoiufymyBij9w+YmNABJAcq5sZsGzaAB8/KFdfLWtLANZsIk8Qtr3zYUB3l4o/PWhs4u5lcYuvits4ZQFqRvsWzkyd9OIgvpMZ3qXSRkBO5N+sKR+s5uXi/jout/60uC4j1/qebWe4VgTADoaityj3gqAICtfgC6OlQI91iPG5qLOSGoxXMOKbB4bCsXygJQu/YRW6zSVDpKs640RYQafVDPhUxKlb3zCAB9pI9jb5A0s+HGPIOrMgVbX9ayU+htexlzNBX9on2MOoyhaBwRyCszSgjt4zn1+gvBAeUujvJZP9arELPQh++Tw4Nw4H2NFj6c+Hp8eEiqY0gDJU8az8dSgL/TMaRFRprwX4AlNKU0CBj2ceBU41lfvso+OuA3SWqlWnAZn74+RIvRM618LQZ/nZ9dmF4JYf147ox31F5846p3V2e7F/BSMRuMjBRTOSLPF2dumSJvZ0mVnLhrgLYKYwOSS8mR2DM6vOWuven8nzmmpqFG4HpbnFBYPzcBzallwM2du9KBcUqHFUfS5hdKl7l1nIDLWa61MnYcp1H4dVK5fAhEshoQAapyoLC+sL/4DTy/kw4mvQ=
X-OriginatorOrg: constructor.university
X-MS-Exchange-CrossTenant-Network-Message-Id: ebbcc371-4ebd-48e0-0054-08dc57296447
X-MS-Exchange-CrossTenant-AuthSource: GVXP190MB1991.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2024 17:37:26.8855 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: f78e973e-5c0b-4ab8-bbd7-9887c95a8ebd
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: 0bVFB3UHsQgjKwcoNqESWnEUL8eKJ4+qTALKtOaqSqwLfZlMRNijpIMQEe6R0BVsudDytXTZkU7Sadt+44HRJ8dYNH7/T9nfKZqSFRY2A8Y=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P190MB1314
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/SnuOmmNzZqN51AHsftxp44EEpyc>
Subject: Re: [netmod] Changes to IPv6 zone definition in draft-ietf-netmod-rfc6991-bis-15
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 07 Apr 2024 17:37:36 -0000

Please see inline...

On 06.04.24 22:50, Brian E Carpenter wrote:

> I am discovering your draft as I type, but I assume you are referring to 
> typedef uri {}. Assuming that RFC6874 is indeed obsoleted, you can just 
> forget about this issue until something changes.
> 
> I do see a quite different glitch in your typedef uri {}. If the host 
> part of a URI is a literal IPv6 address, normalizing to uppercase 
> contradicts Section 4.3 of RFC5952 which says:
> 
> '4.3.  Lowercase
> 
>     The characters "a", "b", "c", "d", "e", and "f" in an IPv6 address
>     MUST be represented in lowercase.'
> 
> Therefore, normalizing to uppercase would be an error. However, I think 
> your text is wrong anyway: section 6.2.2.1 of RFC3986 applies to hex 
> digits *within a percent-encoded triplet* and in fact hex digits in the 
> host part would be normalized to lowercase.
> 
> So where your draft reads "except for hexadecimal digits", it should 
> read "except for hexadecimal digits within a percent-encoded triplet", 
> for consistency with RFC3986 and RFC5952.

I will do the following change:

OLD

       [...] All unnecessary
       percent-encoding is removed, and all case-insensitive
       characters are set to lowercase except for hexadecimal
       digits, which are normalized to uppercase as described in
       Section 6.2.2.1.

NEW

       [...] All unnecessary
       percent-encoding is removed, and all case-insensitive
       characters are set to lowercase except for hexadecimal
       digits within a percent-encoded triplet, which are
       normalized to uppercase as described in Section 6.2.2.1
       of RFC 3986.

> While I'm here, I looked at typedef ipv6-address {}. Two comments:
> 
> 1. "If the zone index is not present, the default zone of the device 
> will be used."
> FYI, although RFC 4007 describes the default zone, it's optional. For 
> example, there is no default zone on Linux; if you execute a socket call 
> with a zero or null zone, it's a run-time error.

I am pretty optimistic that you can memset a sockaddr_in6 to zero and
then fill out the sin6_addr field and things will work. Perhaps the zero
is not what RFC 4007 calls the default zone, then we need to find
better wording. But then RFC 4007 also says:

    An implementation should also support the concept of a "default" zone
    for each scope.  And, when supported, the index value zero at each
    scope SHOULD be reserved to mean "use the default zone".

> 2. There seems to be a limited character set for the zone ID. RFC 4007 
> doesn't restrict the character set; it just says "non-null strings". 
> IMHO that's a bug, but if I want to name an interface 
> *%!@#$^&()_-+=:;'"?\|}{}{/.><, it's allowed by the RFC. (The text 
> doesn't even specify ASCII, and the remark about "conflict with the 
> delimiter" is meaningless, if you think about parsing.)

> If you intend to limit the character set more than RFC 4007 does, that 
> should be stated, and probably discussed on the 6man list.

Yes, the zone ID is underspecified, and we can't really fix that. What
we had did not allow forward slashes, although they are used by some
vendors. So we are trying to improve but whatever we do is debatable
since the zone ID is underspecified. (On Linux, I am pretty sure an 
interface name does not even have to be ASCII or UTF-8. Whatever we
end up doing, we will likely assume UTF-8.)

This is why I suggested to write an ID that explains what happens if
people go creative with zone IDs so that people know that certain zone
IDs will not play nice with YANG modules, certain zone IDs will not play
nice with URLs and so on. People can than take an informed decision and
deal with the consequences.

/js

-- 
Jürgen Schönwälder              Constructor University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany