Re: [netmod] rfc8407bis IANA guidance (enums vs identities)

Kent Watsen <kent+ietf@watsen.net> Thu, 08 February 2024 15:54 UTC

Return-Path: <0100018d896d8ff5-61d4fed0-b971-499f-b1df-1dee0a0f5980-000000@amazonses.watsen.net>
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 32D60C1C64C1 for <netmod@ietfa.amsl.com>; Thu, 8 Feb 2024 07:54:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.906
X-Spam-Level:
X-Spam-Status: No, score=-6.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.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 X_DTsAi-AiQV for <netmod@ietfa.amsl.com>; Thu, 8 Feb 2024 07:54:37 -0800 (PST)
Received: from a48-93.smtp-out.amazonses.com (a48-93.smtp-out.amazonses.com [54.240.48.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7D855C1C64A0 for <netmod@ietf.org>; Thu, 8 Feb 2024 07:54:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1707407675; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=GZLwhL0ZFHJllqebPpohPV31eeWd2HZXQhXuBrPftJQ=; b=F7WWG9+pN9x/Vd3V/1zRBmp7evSMn9rTm+e4hv21IETzd4iuO7u2Uw9qVgkjpmi+ GfvtNvXTpP+RztsxjI4kpUT0ooXdIjhXTcdS53x2lFomtA7OKvr7dpXsAVc91cJMvAN v6teCdCOjnVLOk/7OpeYCMwthFyGIDiazInWm+uk=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <0100018d896d8ff5-61d4fed0-b971-499f-b1df-1dee0a0f5980-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_34884FA9-0C86-4797-B60F-663CCC9B20F4"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\))
Date: Thu, 08 Feb 2024 15:54:35 +0000
In-Reply-To: <DU2PR02MB101609111188D59950DE47F0588442@DU2PR02MB10160.eurprd02.prod.outlook.com>
Cc: "netmod@ietf.org" <netmod@ietf.org>
To: Mohamed Boucadair <mohamed.boucadair@orange.com>
References: <0100018d849d7a49-663e55c5-84f1-4f49-97a1-5024f124d468-000000@email.amazonses.com> <DU2PR02MB101609111188D59950DE47F0588442@DU2PR02MB10160.eurprd02.prod.outlook.com>
X-Mailer: Apple Mail (2.3731.600.7)
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
X-SES-Outgoing: 2024.02.08-54.240.48.93
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/R16ckr3xkU0J5TZ0it6uv-R7uHQ>
Subject: Re: [netmod] rfc8407bis IANA guidance (enums vs identities)
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: Thu, 08 Feb 2024 15:54:41 -0000

Hi Mohamad,

Thanks for the response.
Some thoughts below.

K


> On Feb 8, 2024, at 3:36 AM, mohamed.boucadair@orange.com wrote:
> 
> Hi Kent, all,
>  
> Let’s me also provide some background and explain why we are not using any normative language for enum vs identities. We used to have this text in early versions:
>  
>    This recommendation takes precedence over the behavior in
>    Section 4.11.1 of [RFC8407] for IANA-maintained modules because the
>    extensibility concern is not applicable for such modules.
>  
> The reco that the text refers to is the following one (RFC8407):
>  
>    If extensibility of enumerated values is required, then the
>    "identityref" data type SHOULD be used instead of an enumeration or
>    other built-in type.
>  
> However, Juergen convinced me that we don’t need an update as we do already have the following:
>  
>    If the set of values is fixed and the data type contents are
>    controlled by a single naming authority, then an enumeration data
>    type SHOULD be used.
>  
> I think that we need to better convey this in the draft, while avoiding redundant normative language.

+1


> (1)
>  
> OLD:
>    If the set of values is fixed and the data type contents are
>    controlled by a single naming authority, then an enumeration data
>    type SHOULD be used.
>  
> NEW:
>    If the set of values is fixed and the data type contents are
>    controlled by a single naming authority (e.g., IANA), then an enumeration data
>    type SHOULD be used.

Good.


> (2)
>  
> OLD:
>    An IANA-maintained module may use identities (e.g., [RFC8675]) or
>    enumerations (e.g., [RFC9108]).  The decision about which type to use
>    is left to the module designers and should be made based upon
>    specifics related to the intended use of the IANA-maintained module.
>    For example, identities are useful if the registry entries are
>    organized hierarchically, possibly including multiple inheritances.
>    It is RECOMMENDED that the reasoning for the design choice is
>    documented in the companion specification that registers an IANA-
>    maintained module.
>  
> NEW:
>    An IANA-maintained module may use the "identityref" data type (e.g.,
>    [RFC8675]) or an enumeration data type (e.g., [RFC9108]).  Consistent
>    with Section 4.11.1, the default recommendation is to use an
>    enumeration data type.  The decision about which type to use is left
>    to the module designers and should be made based upon specifics
>    related to the intended use of the IANA-maintained module.  For
>    example, identities are useful if the registry entries are organized
>    hierarchically, possibly including multiple inheritances.  It is
>    RECOMMENDED that the reasoning for the design choice is documented in
>    the companion specification that registers an IANA-maintained module.

Should both the RFC8675 and RFC9108 refs point to sections in RFC 7950?


Regarding new text:

   Consistent with Section 4.11.1, the default recommendation
   is to use an enumeration data type.

Might it be better to say something like the following?

   Please see Section 4.11.1 for guidance on which data type to use.



Regarding existing text:

   The decision about which type to use is left
   to the module designers and should be made based upon specifics
   related to the intended use of the IANA-maintained module.  For
   example, identities are useful if the registry entries are organized
   hierarchically, possibly including multiple inheritances.

I think that this introduces redundant normative language.  I believe that this text can be removed, if the following change is made to Section 4.11.1:

OLD:
   If extensibility of enumerated values is required, then the
   "identityref" data type SHOULD be used instead of an enumeration or
   other built-in type.

NEW:
   If extensibility or hierarchical organization of the enumerated values is required, then the
   "identityref" data type SHOULD be used instead of an enumeration or
   other built-in type.



>  
> The full changes can be better tracker here: https://author-tools.ietf.org/api/iddiff?url_1=https://boucadair.github.io/rfc8407bis/draft-ietf-netmod-rfc8407bis.txt&url_2=https://boucadair.github.io/rfc8407bis/enum-vs-identities/draft-ietf-netmod-rfc8407bis.txt
>  
>  
> Cheers,
> Med


Thanks,
Kent