Re: [netmod] [Anima] revising RFC8366 -- Re: BRSKI-AE enum issue -> empty, but what's he encoding ?

tom petch <ietfc@btconnect.com> Mon, 05 July 2021 16:13 UTC

Return-Path: <ietfc@btconnect.com>
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 1F0D63A1CFC; Mon, 5 Jul 2021 09:13:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=btconnect.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OICcHsW3uvkD; Mon, 5 Jul 2021 09:13:39 -0700 (PDT)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2092.outbound.protection.outlook.com [40.107.21.92]) (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 D60B13A1CEC; Mon, 5 Jul 2021 09:13:38 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eLX4NMixMP6gYSne1J2iFm3zjx6SDonoQgoh37ArnxNikmVDFrSJnbx6W5tKBosIcIuPtwgCjLKS6DtWHHeGaZhoKrCuoXm5tp1BtoQ30KJ+wDndtu/DnM/86oUko5U+SMBm5rHW1nSHeqqFhehZn29xlS6ciho+97nWdPEMP5QLVjaUQcpimPxINXvuJgNJHHmnJJINH8BfSPjq5nd2+oWoAsGdKW5PPdU3fkPcjGNTJ0QTRY6ZHW3vzsbya0M+ONTA6Of7fZc+oqDM5IVH88fqj60srnQ4kRYi+0U8wlCD33tNn6SGL8UdnTJhwhLMWZzCSLC31lorybYsZ0S6pw==
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-SenderADCheck; bh=vIRWAIa8bef9muCqjdEgeDEF7wRo//+jH46YkKtI8QA=; b=EcriSKSuL0nenSPVKYNQRiSbeBFneNjjWeZFsLf5nRuM+qUiPVrpKlvcMmpIbR3muGRpcAiPzwtgqvTkR32P02YA5PZDGjG5+1H9l8jBF5hu7/ZJzEKKIV9aZ4h/7AkO3OT1rDRyw0lEP5NJ3i4qBjbNTluvOTMCNMNVVBzA+2KMKDejiCwhgkHgxGE4wWffthePm8oDbW79zz5nDjXT/qk6ew3qwLeqlVrEhWBdndmAxiAX1cMHLZl2RQDLw57kFj70a5G1vG7YrSs+tBLU94Rl0zG3SEu9ow5QlbVzygE2LDYRzE8vo8u7xZgY7pfSE0oAejnyH+d2XWZtCgBtAg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=btconnect.com; dmarc=pass action=none header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vIRWAIa8bef9muCqjdEgeDEF7wRo//+jH46YkKtI8QA=; b=MZ53UZu1jOCUzIi8NiN1c0YwlFuWjCneCG0UJSzObT34mHON/ul2yH135rRpjkf+NTmfuow2xztvoD0jmIgYRfUkFStOywz/Lk829DGtqs47ooQ5K6c3+G2LvTZR546J5w5ADuy3F/haSm0UMqdv7fJWDYno6ouColBIpcJQw+U=
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com (2603:10a6:20b:134::11) by AM6PR07MB5142.eurprd07.prod.outlook.com (2603:10a6:20b:3f::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.8; Mon, 5 Jul 2021 16:13:36 +0000
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com ([fe80::fc5d:ca7a:e2ea:ca9d]) by AM7PR07MB6248.eurprd07.prod.outlook.com ([fe80::fc5d:ca7a:e2ea:ca9d%9]) with mapi id 15.20.4308.019; Mon, 5 Jul 2021 16:13:36 +0000
From: tom petch <ietfc@btconnect.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>, "anima@ietf.org" <anima@ietf.org>, "Rob Wilton (rwilton)" <rwilton@cisco.com>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] [Anima] revising RFC8366 -- Re: BRSKI-AE enum issue -> empty, but what's he encoding ?
Thread-Index: AQHXcbMbXBq0wbK1vEGnorzfRBCN2Q==
Date: Mon, 05 Jul 2021 16:13:36 +0000
Message-ID: <AM7PR07MB62487F5BB3361E8745B54203A01C9@AM7PR07MB6248.eurprd07.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: sandelman.ca; dkim=none (message not signed) header.d=none; sandelman.ca; dmarc=none action=none header.from=btconnect.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 3d811d1c-e1f3-4bce-0923-08d93fcfd7d5
x-ms-traffictypediagnostic: AM6PR07MB5142:
x-microsoft-antispam-prvs: <AM6PR07MB514235989EA3361323EC664DA01C9@AM6PR07MB5142.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 8i4D1y01a7e2s64+byTAxPPL5gDM8rS6/oYqI3kBNrU+984PfoxubXzfBbbJqPbbS6ZZ/6BBlRO6hKt/m6+7uKJuIDLGpTj3+FW/IojN4pQ42MLT4sMvlmn3Q6OOSwXZuhY1X6g+tphfAHljcUR047Gmk/tKRfySnZVqDVL+w8+Yz4aPlt6MpyJz8ypLH7aOHcXBb77lzc8kwsc+360IbvjCUESLSpQEVnWukLXZqcJqjvdzniFa5tAl8x+FSSFLa0AL5T8o/L2eStG4SKkbM43JBIVbcCHmx8Iz3m/kR2B/SQy6IrkGTw4eykrYTIMzMY7cUqEjlGEAXlUg0Vvg4vSD2n+5YrfhXNsiIx3A9GQ9wA3K7o29zmInKCqaxswknyARckjn43lTegL079meokYFaL/1fHXv1nrHMryAqCDcnCcQAdaYoKBYt4rMPPf+vaU+BotM8Z0xxSG03xAo6HVaGWBNpdAanfTtrvp4BiUtHUHu8MV8kGvTIoVInLBNcwdVOraH7y3lAwnuWziBVQm4LPdJnY0r57o6166lGP7iTRWxvslWL5qR6HsCyuFcQ9cen5Bj1asR6UazURLn99Zb9sZMT8EdJ60rF1SyWYNI4+k3LEpfa2O13baibHv4DXe+Qa6Q8QKxlQecR4A/9Q==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR07MB6248.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(66574015)(8936002)(52536014)(86362001)(110136005)(91956017)(8676002)(64756008)(66446008)(26005)(186003)(55016002)(66946007)(66556008)(38100700002)(66476007)(76116006)(498600001)(122000001)(2906002)(7696005)(5660300002)(83380400001)(71200400001)(33656002)(9686003)(6506007); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: gy/CAGLnx0LIFJsc/V1kZpGDROs5b4JnXmkR03G6UZzmA9NBxbKj6L3UD8WZ1Xm0UhMOn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4mzmkp1qE3eIGmoFcWNpa1UMXD4mc5nKlsXsKCaR/VE4Hz4/8uOD75cVq1KDsDF5xTEKZKIMsmOk0886M4p8gyaBo6Khmk8w5Rsf8ZLZ31qsptemaeI4aOwOOiUdK6Gdcdz7aNAFp13p0U2B45/qL8ugLObCXE8xQjYMMN4tsmHI=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM7PR07MB6248.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 3d811d1c-e1f3-4bce-0923-08d93fcfd7d5
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2021 16:13:36.0722 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: QA7+vT3jQC6yUCHNA8ygeOECdRBfuHl/Xfqa8dPiqXn94v5m/cDZmIpWHwUNyK1hjo3wzW6IaKOydvTfNdY6lw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR07MB5142
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/QqVbZ865RIsLAcACc0WszQyJH1Q>
Subject: Re: [netmod] [Anima] revising RFC8366 -- Re: BRSKI-AE enum issue -> empty, but what's he encoding ?
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 05 Jul 2021 16:13:45 -0000

From: Michael Richardson
Sent: Monday, July 05, 2021 16:17


    tp> Likewise involving IANA.  They maintain registries which anyone can

    tp> access.  They perform updates, on request, according to the policy of

    tp> the registry, which is set when the registry is set up and can range

    tp> from requiring a Standards Track RFC to First Come First Served,

    tp> depending on how easy you want it to be to make changes.  See 'IANA

    tp> Considerations' RFC for the range of options.  And they can turn

    tp> updates to a registry into an update to a code module (such as an SMI

    tp> MIB).


Probably Standards Track RFC to update the voucher types.

    tp> What I am missing is how easy or difficult you want it to be to make
    tp> changes, who will make changes, (IETF only, another SDO, a manufacturer
    tp> ....), what review you want for changes by whom, how frequent changes
    tp> will be (usually a guess and usually wrong but it helps to have the
    tp> assumptions about the requirements spelt out) and such like.

    tp> As an engineer, I do like to know the requirements before working on the design!

We need to be able to write RFCs that extend the voucher types.

Not that often though.

<tp>

Michael,

That is nice and clear.

To quote an earlier e-mail in this thread,
> Where I'm a bit blurry is how stuff like the YANG in RFC8995, which uses
> RFC8366 gets updated when IANA revises the module.  I think, it mostly doesn't
> matter because none of are generating code from YANG... AT THIS TIME.
Well my answer would be that confusion reigns.  An IANA Registry is authoritative so the minute the RFC is published asking IANA to maintain a module, then the module in RFC8366(-bis) is obsolete. Trouble is, that the rest of the RFC - if any - is not.  (You may have seen this on the DHCP list with I-D referencing an RFC when they should have been referencing the IANA website)   RFC7224 gets it right because the contents are only the initial version of the IANA module so that (almost) any reference to RFC7224 is an error, the reference should be to the IANA website.  That says that having long-lived text in an RFC with the initial version of an IANA-maintained module can only cause confusion (IMHO); they are clearer as separate RFC.

Again a quote that caught my eye,
"I also think that in our enumeration/Registry, that we should include the
"value" parameter, so that constrained-voucher can consistently set values
even if the enumeration changes order."
If by 'value' that means the value substatement of the 'enum' YANG statement, then that may not give you what you expect.  What goes on the wire is the text name string.  If a number is displayed to a user, then it is because the local software had deduced one, perhaps from a YANG module.  The text string is the authoritative definition, the value conveys nothing.  If you want a value, then you need a different type of leaf like an integer.  (In other languages, the binding of text string to value is part of the specification of an enumeration - not in YANG).

The usual alternative to a YANG enum is identity which can also be in an IANA-maintained module but which can be augmented.  It is just an identifier (which to me is more honest than an enum with its 'value' substatement:-).  It is referenced by identityref. (It can also form a tree structure).  AFAICT 'leaf assertion' in RFC8366 could equally well be an identityref. and then later RFC could augment the identity.

So I have reservations about enum and about IANA-maintained modules (at least as part of a larger RFC:-) but I did note when I looked at
draft-ietf-anima-voucher 
that one of the authors was a YANG doctor so assumed that the choice of 'enum was made knowingly.

Tom Petch

--

Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )

           Sandelman Software Works Inc, Ottawa and Worldwide