Re: [netmod] WGLC on draft-ietf-netmod-rfc6991-bis-11

Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de> Fri, 18 February 2022 16:23 UTC

Return-Path: <J.Schoenwaelder@jacobs-university.de>
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 96E193A094B for <netmod@ietfa.amsl.com>; Fri, 18 Feb 2022 08:23:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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=jacobsuniversity.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 f1bVlp49kOdv for <netmod@ietfa.amsl.com>; Fri, 18 Feb 2022 08:23:07 -0800 (PST)
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0631.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::631]) (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 C0C433A08AB for <netmod@ietf.org>; Fri, 18 Feb 2022 08:23:05 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DpKqLosAszLnmJfK6iZaBd9T2jtPm/K+SbAS30aKgP0YddCnG306qQ6xWOFM3Hbo3+pq73swB/7jnHkwTpPa9NluqE81l6QS3++bkPzWjAKfhXyWET8YPyurM6yCR4+cZ8EUrfZLWNqMBVTkPqkxL2gJLHIdp9dvjnHYwGM7OiNQe6hn8hRmp8PPE+zlDS9UVRqM+7r3NLsnnNL5gJQDYeV/8Eb6rkSzB3wACz/MQYUIQmLBJePEcJjLElXN9G761pn1G86UTjpxUp2yx6K67+ngCfzlGBdl69Kkq9OoQ8woYm6pEV8eFVo44zZA39fCOEKi+SwUmP4RujKtvxAX/Q==
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=tQdZo7gKgRLQfophkaLTK4URjfgJq6v8oJrq2kfDfBw=; b=fxEALJ10RQAGPoE4C2xgzxIsrsXACSawEAL8ky1rGzz5+qdcDLrs8TLFmiyv4XhSCtaHYL27FKMsHfKgSmLHSWTMvjoOXQJ7i5uwxHySGQWrcoj4xH8tYOc3uVtZXYXVlGnz8hA2auvW7lkrmWmwutguuGQf1SDA5nrVE7rMgVniGV4mUBWKOIkf2s82d5cQrrYnrEBhHLh2NGuL/KfkfeIxebEAOj6FEUt8ntZOlCvmZ+Co/mZRp2PHSR1QqVT3P9Y2Kl6nMMmyDBnF043dTBteq/kf6sXD8wjCsr+ohyVTHBAGx2hAIlq0s4yUGrNRAEOtw4S/lc195fZeGuQF6g==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jacobs-university.de; dmarc=pass action=none header.from=jacobs-university.de; dkim=pass header.d=jacobs-university.de; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jacobsuniversity.onmicrosoft.com; s=selector2-jacobsuniversity-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tQdZo7gKgRLQfophkaLTK4URjfgJq6v8oJrq2kfDfBw=; b=cpotS4QSXXF3C28FBVBz8gjKFDdJAhF76YhMRQYq49fC6givvKxh2aJF6B4FpR8stLfapycX7RkBJrC4ebkMN/9qpUQK50MpHEpKZJyo225dLxYI1sZ9uIU5a3/ZcL3g7hYRNAwdYkgZjcTVJiPfF9sgD/zmktyYasCyJynJ1fI=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=jacobs-university.de;
Received: from VI1P190MB0656.EURP190.PROD.OUTLOOK.COM (2603:10a6:800:12b::14) by AM9P190MB1634.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:3b7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.16; Fri, 18 Feb 2022 16:22:58 +0000
Received: from VI1P190MB0656.EURP190.PROD.OUTLOOK.COM ([fe80::ed29:1606:f39c:2954]) by VI1P190MB0656.EURP190.PROD.OUTLOOK.COM ([fe80::ed29:1606:f39c:2954%6]) with mapi id 15.20.4995.016; Fri, 18 Feb 2022 16:22:58 +0000
Date: Fri, 18 Feb 2022 17:22:57 +0100
From: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>
To: "maqiufang (A)" <maqiufang1=40huawei.com@dmarc.ietf.org>
Cc: Kent Watsen <kent+ietf@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20220218162257.6xjqkuzwmmpih6s6@anna>
Reply-To: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: "maqiufang (A)" <maqiufang1=40huawei.com@dmarc.ietf.org>, Kent Watsen <kent+ietf@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>
References: <0100017ec2a73fab-b7e69955-c6ab-496e-a9a4-274780023fd1-000000@email.amazonses.com> <688072256.676638.1644847512655@mail.yahoo.com> <0100017efa66ecb8-0c62b7d8-c715-4817-9dc9-fa80d5da8951-000000@email.amazonses.com> <431304add29c4d3fb55315c2152e118c@huawei.com>
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <431304add29c4d3fb55315c2152e118c@huawei.com>
X-ClientProxiedBy: AM0PR06CA0076.eurprd06.prod.outlook.com (2603:10a6:208:fa::17) To VI1P190MB0656.EURP190.PROD.OUTLOOK.COM (2603:10a6:800:12b::14)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 00cd97db-5038-4492-1a49-08d9f2faed26
X-MS-TrafficTypeDiagnostic: AM9P190MB1634:EE_
X-Microsoft-Antispam-PRVS: <AM9P190MB16344CF284B08C283EF109F0DE379@AM9P190MB1634.EURP190.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: alyK6tvClHWbv1U7P1+tOrIiM55uD24SZWt2kEQeXwhxyyN1AR62YvnUPuMbA7Lh3Bwealk2PNCigFfj4kLzo22gHBrlGKTESx+2Wh4tV/SHSrMu5knHcsWVMAFsW1I6jLzXgfLKFtqMOzrPCmpxjvmTLllWchq6gUvJlHdouynzyQQpF3rF7QY31s1vv+sMFnI5yNYaKYIiwsG5Ngy31ARiHkM7pe0glwmqmgM6Z4ZjacFWMG7+W3QuovnLhukd3TT0Xz9UQmfFg4mB7PRIMDSc/wzqa8l55a8BFRHufY/uCrYAVIcOXRZiGLl0qgg1pYm1tg9Zn8LXCQZzKE6jP11luQqBs3v2/Wp3gSprugh8yO8oN8IL5CPP/rIDSCkmqN34BBnj1ePW3lJvnPlIQE22ikwsWA61yySvKZuVp7J2w7IgVtVKLe5/7Zoa0RefFC01PLp7NxOR5pRaI10yFMgipjRLBbuLM5ETonnlsbNA9C6e8+gsjnCsOI6vh8Xj7YwatZESOoIerDTEvgA4mFsISWTVh/NzYG7lQdamus+cX5iUZEQ1lNQt0ser1Z7x2rm6lEnlBl0bIYvm/Jno5pSd/vFsv6sYtxLNIMVgc6mpxkP+FZ1f5h4Xsc6vh3vKZve1Fq1+DFHBMN5vQkR3fNJpkqJJs5F8/0NOaZ+0X2dZTcxxb5Ui7itIkDfjWcrCLZPUfZd8guyrZo+gmGfQebxRw1bnKOtBWXqO0SrC9dnncUrqUl5AJImbBtDRg3rsgqGNdWIupeSfhONzVIcKjTSedNLG8IvwT+FtuPOw79P+3a2Nwl/IWR5Zy4je7Uj4
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1P190MB0656.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230001)(7916004)(366004)(33716001)(2906002)(3450700001)(66946007)(4326008)(66556008)(66476007)(40140700001)(8676002)(6486002)(54906003)(316002)(8936002)(38100700002)(38350700002)(508600001)(786003)(86362001)(186003)(26005)(1076003)(66574015)(5660300002)(85202003)(85182001)(83380400001)(6512007)(6506007)(52116002)(9686003)(21314003); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: Nu0KRc8q45ccVLl5MrMyjfofbsEqSUbqQ7mwIb2HFTr9Xzy0RYbNKdpY/aySleGZ8zmluQ7XxgXL/NETw2wazCyzzSE9TARK4aWW3I2z6YoRa2C/1hKeqwUsfkdkS5SIvFLUl65697tu/FeVCj6GL1kdps++0utiKq1HMOt3Hh4YkolZn/KLXnso+wCj6Qn9r5t9iJOnhm66GywYeOtJmAxJYCuBadEOAuihzJD6SN4PqC8u0tChB5d8C2NBOD4FgNXbduSy0JYOUgSVpvhNe0VYo93Vvs62II1CrqvEh61rNdl7hHqXeNv7zmndnPAi/dk87JyBRiHGu4ulY/BqcLrqZMjbSm+shXUtm9ueClrpW16fN6Op6ruJHmYZHsByqc7vSz2fYPr7nNCkZ8tVC6HkjsQs4hVpDWL1w3DWrhmCBToUULocL77AnNVGh10NiTZldzAVoVKWyY2U0PXQwA0DSQaem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vhpXN1xAHq8kuzry+WTpn0lgFMVySCB+/tpQcysBAcbL1A5n6V1rpkP/MmdlJl8Z6WQWiZNbXUtzk0PtewkA8FBwLkQmYn6AWsv/r9Rf1FpGBuUTTvViHesDkZm5P9dw==
X-OriginatorOrg: jacobs-university.de
X-MS-Exchange-CrossTenant-Network-Message-Id: 00cd97db-5038-4492-1a49-08d9f2faed26
X-MS-Exchange-CrossTenant-AuthSource: VI1P190MB0656.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2022 16:22:58.5328 (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: ySxNPnjYRhvdZWEXFSklIxi2Lu8+JFEuDWB13axo81sqUYruqiMOlrSGfZf63qiK4/U81cIvPJDV4U4qNNm/YyAnV7J6mrWTVRhcTSPW4As=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P190MB1634
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Gwgax9L2h82Us7Kul2rUhME0H94>
Subject: Re: [netmod] WGLC on draft-ietf-netmod-rfc6991-bis-11
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: Fri, 18 Feb 2022 16:23:12 -0000

On Tue, Feb 15, 2022 at 12:12:04PM +0000, maqiufang (A) wrote:

> I have only one comment: It seems that Table 2 doesn’t list all the
> types defined in “ietf-inet-types” YANG module, e.g.,
> protocol-number, ip-address-link-local, ip-address-and-prefix…
> Should this be fixed?

Yes, this should be fixed. When the initial version was produced,
there was quite some concern about consistency with SMIv2 definitions
and this lead to the tables. Meanwhile, I assume the purpose of the
tables is more to provide a quick overview. Hence I propose to split
the tables into (i) tables that provide an overview of all types
defined in the YANG modules and (ii) tables that detail equivalent
SMIv2 types where they exist (short tables). For the overview tables,
I suggest to add some more information. I am thinking of overview
tables like these (keep scrolling, there is more text below):

* ietf-yang-types

  | Typedef               | Type              | Introduced |
  |-----------------------+-------------------+------------|
  | counter32             | uint32            | RFC 6021   |
  | zero-based-counter32  | uint32            | RFC 6021   |
  | counter64             | uint64            | RFC 6021   |
  | zero-based-counter64  | uint64            | RFC 6021   |
  | gauge32               | uint32            | RFC 6021   |
  | gauge64               | uint64            | RFC 6021   |
  |-----------------------+-------------------+------------|
  | object-identifier     | string            | RFC 6021   |
  | object-identifier-128 | object-identifier | RFC 6021   |
  |-----------------------+-------------------+------------|
  | date-and-time         | string            | RFC 6021   |
  | date                  | string            | RFC XXXX   |
  | time                  | string            | RFC XXXX   |
  |-----------------------+-------------------+------------|
  | hours32               | int32             | RFC XXX    |
  | minutes32             | int32             | RFC XXX    |
  | seconds32             | int32             | RFC XXX    |
  | centiseconds32        | int32             | RFC XXX    |
  | milliseconds32        | int32             | RFC XXX    |
  | microseconds32        | int32             | RFC XXX    |
  | microseconds64        | int64             | RFC XXX    |
  | nanoseconds32         | int32             | RFC XXX    |
  | nanoseconds64         | int64             | RFC XXX    |
  | timeticks             | int32             | RFC 6020   |
  | timestamp             | timeticks         | RFC 6020   |
  |-----------------------+-------------------+------------|
  | phys-address          | string            | RFC 6020   |
  | mac-address           | string            | RFC 6020   |
  |-----------------------+-------------------+------------|
  | xpath1.0              | string            | RFC 6020   |
  | hex-string            | string            | RFC 6991   |
  | uuid                  | string            | RFC 6991   |
  | dotted-quad           | string            | RFC 6991   |
  | yang-identifier       | string            | RFC 6991   |
  | revision-identifier   | date              | RFC XXXX   |
  |-----------------------+-------------------+------------|
  | percent-i32           | int32             | RFC XXXX   |
  | percent-u32           | uint32            | RFC XXXX   |
  | percent               | uint8             | RFC XXXX   |
  |-----------------------+-------------------+------------|

* ietf-inet-types

  | Typedef                 | Type         | Introduced |
  |-------------------------+--------------+------------|
  | ip-version              | enum         | RFC 6021   |
  | dscp                    | uint8        | RFC 6021   |
  | ipv6-flow-label         | uint32       | RFC 6021   |
  | port-number             | uint16       | RFC 6021   |
  | protocol-number         | uint8        | RFC XXXX   |
  | as-number               | uint32       | RFC 6021   |
  |-------------------------+--------------+------------|
  | ip-address              | union        | RFC 6021   |
  | ipv4-address            | string       | RFC 6021   |
  | ipv6-address            | string       | RFC 6021   |
  | ip-address-no-zone      | union        | RFC 6991   |
  | ipv4-address-no-zone    | ipv4-address | RFC 6991   |
  | ipv6-address-no-zone    | ipv6-address | RFC 6991   |
  | ip-address-link-local   | union        | RFC XXXX   |
  | ipv4-address-link-local | ipv4-address | RFC XXXX   |
  | ipv6-address-link-local | ipv6-address | RFC XXXX   |
  | ip-prefix               | union        | RFC 6021   |
  | ipv4-prefix             | string       | RFC 6021   |
  | ipv6-prefix             | string       | RFC 6021   |
  | ip-address-and-prefix   | union        | RFC XXXX   |
  | ipv4-address-and-prefix | string       | RFC XXXX   |
  | ipv6-address-and-prefix | string       | RFC XXXX   |
  |-------------------------+--------------+------------|
  | domain-name             | string       | RFC 6021   |
  | host-name               | domain-name  | RFC XXXX   |
  | host                    | union        | RFC 6021   |
  |-------------------------+--------------+------------|
  | uri                     | string       | RFC 6021   |
  | email-address           | string       | RFC XXXX   |
  |-------------------------+--------------+------------|

In future versions we may add a column indicating the status, but
right now all definitions are current, so I rather not add noise.
(Instead of the column 'Introduced' one could have a column 'Revision'
listing the revision date but somehow pointing to the RFC feels more
valuable for modules that we publish in RFCs. And even better would be
to produce such tables from annotations, perhaps the versioning people
solve that problem.)

While putting these tables together, I noticed that we are not
consistent with the naming. We have percent-i32 and percent-u32 and I
think this is pretty neat since the name indicates that these are
signed and unsigned (int32 and uint32) types. We also have hours32,
minutes32, seconds32, etc. but here the name provides no clue whether
the number is signed. Hence, I suggest to use the naming scheme that
is used for the percent types:

  hours32               -> hours-i32
  minutes32             -> minutes-i32
  seconds32             -> seconds-i32
  centiseconds32        -> centiseconds-i32
  milliseconds32        -> milliseconds-i32
  microseconds32        -> microseconds-i32
  microseconds64        -> microseconds-i64
  nanoseconds32         -> nanoseconds-i32
  nanoseconds64         -> nanoseconds-i64

/js

-- 
Jürgen Schönwälder              Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>