Re: [netmod] "uint24" in rfc6991-bis?

"Rob Wilton (rwilton)" <rwilton@cisco.com> Thu, 23 April 2020 09:25 UTC

Return-Path: <rwilton@cisco.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 DDF3A3A17AB for <netmod@ietfa.amsl.com>; Thu, 23 Apr 2020 02:25:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.598
X-Spam-Level:
X-Spam-Status: No, score=-9.598 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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=d/WrUy2S; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=BQfFnEp3
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 dMaNYJhdLhpz for <netmod@ietfa.amsl.com>; Thu, 23 Apr 2020 02:25:37 -0700 (PDT)
Received: from rcdn-iport-5.cisco.com (rcdn-iport-5.cisco.com [173.37.86.76]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C06A73A17A6 for <netmod@ietf.org>; Thu, 23 Apr 2020 02:25:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2036; q=dns/txt; s=iport; t=1587633937; x=1588843537; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=qk4GwvItvaEDlWOe5A1Bm+Vsd06LKeOzUNQTl9JUQbw=; b=d/WrUy2SiYIZ3ZRKf7rJoYmKndHVXTl+9STwvM7NsOvTT7Gq8HXL2BM0 8ebE14VN+8aQjRT8dU7kknY9xm776UXt8zmqgD5xnvdBW3twdn2KhUPIV nk3fdVNF5LayFaJjZMllAfcmrArs+3TBnxCS2tjUthGM0OxRXvB/r5B71 E=;
IronPort-PHdr: 9a23:0qkZ2hTqM3Bb4P+zhhFa/00dfdpsv++ubAcI9poqja5Pea2//pPkeVbS/uhpkESXBdfA8/wRje3QvuigQmEG7Zub+FE6OJ1XH15g640NmhA4RsuMCEn1NvnvOjYlHcBeU1lN9HCgOk8TE8H7NBXf
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AGAADfXaFe/4YNJK1jAxkBAQEBAQEBAQEBAQEBAQEBAREBAQEBAQEBAQEBAYFnBAEBAQEBCwGBU1EFbFggBAsqCodaA4RZhheCX5gsgS6BJANUCgEBAQwBARgLCgIEAQGDf0UCgiAkNAkOAgMBAQsBAQUBAQECAQUEbYVWDIVxAQEBAQMBARAoBgEBLAsBCwICAgEIDgIBBAEBAR4QGwwLHQgCBAENBQgagwWCSwMuAQMLpV4CgTmIYoIngwABAQWFERiCDgMGBYEzAYJigkIOhwYagUE/gRFDgk0+gmcBAQIBgWQfJoJ9gi2OD4lcmS98CoJEiAuQBZxhj3OJQJM1AgQCBAUCDgEBBYFSOYFWcBU7gmlQGA2VMINzM4RhhUJ0AgGBJo02AYEPAQE
X-IronPort-AV: E=Sophos;i="5.73,306,1583193600"; d="scan'208";a="504398239"
Received: from alln-core-12.cisco.com ([173.36.13.134]) by rcdn-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 23 Apr 2020 09:25:35 +0000
Received: from XCH-ALN-004.cisco.com (xch-aln-004.cisco.com [173.36.7.14]) by alln-core-12.cisco.com (8.15.2/8.15.2) with ESMTPS id 03N9PZ2k024486 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 23 Apr 2020 09:25:35 GMT
Received: from xhs-rcd-001.cisco.com (173.37.227.246) by XCH-ALN-004.cisco.com (173.36.7.14) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 23 Apr 2020 04:25:35 -0500
Received: from xhs-rtp-001.cisco.com (64.101.210.228) by xhs-rcd-001.cisco.com (173.37.227.246) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 23 Apr 2020 04:25:34 -0500
Received: from NAM12-MW2-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-001.cisco.com (64.101.210.228) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Thu, 23 Apr 2020 05:25:33 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A/3kh5nbxdTYWJSDR2NqjtbAUR+NXnRdNWiigu3V+3ERbREY2zsOCYWays4AyB8dxVZlsZQFz1fdvN/6w0ufYtqG2X01EE004BSXN8sczPm33eY3rQTI6pV4zFM4KUyH3AOaTN3bzxBnCASXYhVMedp/FO1u6rSYj8gbh/UtiPCjixweKN+F45h13ouj0JYLjAEk+HSIB4yOZw5AUxBP5fsjJsbFKcgwEvf8v6J29WGwHBjtFWCeeiiyITDAlghMzgnnNSoLpvfVOy+EBkMvxU9USwlo4l4OF3uEBXrHJMdw6u1VOuiQsO1hVW0wIuYd2ZcQCT3Op92Y6XCD4KmUVg==
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=UL0T5O6h6bdWkGZTiCTZZHKwblCYhcdE+PvMVQ06gGs=; b=Z9yB349UfA8rWiJcUd3+wykoCT7P+qQ88Z1o7LQ2hLMhOKObf7RY9QuQZGD0tPUFjdfgDdzbyrHoRH/7ZyKqu9v/eabPEqS3oDT4I+K2sFCT8A8xLmUrGynXBTj7xgvKB3TWuX1N7v92wtFR5fFhdr+mJPZCPGNL7i6YlXicxtHwworpu5VGhVRXMzaArbJGiYwUiDFaTt/s0rtLZvSGRT0WCEQzK4BbwfPu8PggHEx+BsWfrpdLHWMSe8dqihR0Kebq0uvoec3htExzzVZXY7nz1iA4sni1soD86DDWgajferB1pKur+rcrwkZET0rV02kzX7L+nEwHIjHAEeYmxA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UL0T5O6h6bdWkGZTiCTZZHKwblCYhcdE+PvMVQ06gGs=; b=BQfFnEp3fyF3uXfmsO0xKxpYdviaec6mUul9MY107IcV7E/K1tud0CVENUvei1tcIvgW7jtl+1FRnZD+tsn6JO2rN19rP2n37DvoVaD4CnvO0sKHa4RJHPzTky3AdZsXXj1Rw8NVThHDatUx9aKlCVwvmyWOJV4BsQJ6H2Vn6JI=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (2603:10b6:208:190::17) by MN2PR11MB4663.namprd11.prod.outlook.com (2603:10b6:208:26f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13; Thu, 23 Apr 2020 09:25:32 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::3:2164:a8e2:33b3]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::3:2164:a8e2:33b3%5]) with mapi id 15.20.2937.020; Thu, 23 Apr 2020 09:25:32 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Robert Varga <nite@hq.sk>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] "uint24" in rfc6991-bis?
Thread-Index: AQHWGOuf68Kgi/+Ld0aVI9Vlk15BnKiFs2KAgAC6kUA=
Date: Thu, 23 Apr 2020 09:25:31 +0000
Message-ID: <MN2PR11MB4366B7889896668A4A92CEBBB5D30@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <a185a706-235e-a780-1cdd-147ac33a4e40@hq.sk> <20200422220855.jlpgobh2ixloaheq@anna.jacobs.jacobs-university.de>
In-Reply-To: <20200422220855.jlpgobh2ixloaheq@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rwilton@cisco.com;
x-originating-ip: [82.15.79.32]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: b8509440-68f6-4144-8c44-08d7e7684560
x-ms-traffictypediagnostic: MN2PR11MB4663:
x-microsoft-antispam-prvs: <MN2PR11MB466365522189D7121CDDD137B5D30@MN2PR11MB4663.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 03827AF76E
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4366.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(396003)(39860400002)(376002)(346002)(136003)(478600001)(186003)(66946007)(66446008)(66556008)(966005)(76116006)(66476007)(55016002)(83080400001)(8936002)(2906002)(4326008)(8676002)(9686003)(81156014)(316002)(5660300002)(7696005)(64756008)(86362001)(33656002)(110136005)(6506007)(71200400001)(53546011)(52536014)(26005); DIR:OUT; SFP:1101;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: eMtJQjoWdF8FT5qlrwQRJG8WelWgrUUaDt3J+hL9ndxFSH77tecqu/y2Q+iuUh85mH4hUR7/6lR6Tv8qhRBKgXvtCQdK8/EQMVIc0ul05y3ZFzLUAz2b1bEhmEcThgnRysG9SVzE+1Rh+SXV0Mh8cs+eTJs5MdVpQUwjoJtOyaDkt4Yzv9u2Awk3wVxbAigJl+iIir0JYXdWfZN8upkOXOh2l3v1HX/ib+n6vndlexrdpIw2v8opBQCEfQV8ZefjHauQkgaTOZS4aKaicnflKEz9rywTjmSb7gDEIbSLqOItJRw5lJcrP8y3qcBl+7y1RZTCYuq44poN/WDmc1ncFY/LayB2YW4vrI+CzEVE29+JRWkGxfuQ12PxC3IBYyJbDpLq/uQglcxSdgnEZ7ZLTnkujcffV4qECLNy83mJAp5bY9O46wyG7x7RpB+7+iSLeLMEWB6PwbaLB1FUPd5KwxpS1ib25MO4cflv2Zg9iBW5ln/coGPGa0u+UNsyW3ovyj0iHDO2d4yLYjsk81cBCw==
x-ms-exchange-antispam-messagedata: mMLuczjJiBhG9WRvmIqq6cQ5Ljfc9mXmwOvOf4u1PSNqFCSP4ctGGD6i+oymMp4HOZZXSTEUdyX2A58Ns0u8SIprebSYUZZQGMVflDz+kS73zv1i91AF1cYXIwhFi8YuIr5UTMgYA2Xi6lWy57uLNA==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: b8509440-68f6-4144-8c44-08d7e7684560
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Apr 2020 09:25:31.7867 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: fdyBGM08M2xpXrMM7En3n+SjAiWZugXPlR5Z4cVUG9JXlYsZJ4KwmwvxGf70vvvaNBfmCZ9W9chOyAb2EZTbSQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4663
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.14, xch-aln-004.cisco.com
X-Outbound-Node: alln-core-12.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/u95kVB1vxXHqBsjOzdMz72f0CuY>
Subject: Re: [netmod] "uint24" in rfc6991-bis?
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: Thu, 23 Apr 2020 09:25:40 -0000

[As an individual contributor]

> -----Original Message-----
> From: netmod <netmod-bounces@ietf.org> On Behalf Of Juergen Schoenwaelder
> Sent: 22 April 2020 23:09
> To: Robert Varga <nite@hq.sk>
> Cc: netmod@ietf.org
> Subject: Re: [netmod] "uint24" in rfc6991-bis?
> 
> On Wed, Apr 22, 2020 at 11:17:26PM +0200, Robert Varga wrote:
> > Hello,
> >
> > a number of IETF protocols-and-whatnots are operating on unsigned
> > 24bit (or 3-octet) entities. For example:
> >
> > https://tools.ietf.org/html/rfc7471#section-4.1.5
> > https://tools.ietf.org/html/rfc7471#section-4.4.5
> > SRGB range start/length in https://tools.ietf.org/html/rfc8669
> 
> For these use cases, it might be also a good idea to define types that
> capture the additional semantics. SRGB seems to consist of two 24-bit
> values - I can't tell whether it makes sense to model this 6-octet value
> as two 3-octet values in YANG.
> 
> > I wonder whether it would make sense to provide something like:
> >
> > type uint24 {
> >    type uint32;
> >    range 0..16777215;
> > }
> >
> > in ietf-inet-types as a common base type for such definitions.
> 
> If we add such a definition, it likely should go into ietf-yang-types.
[RW] 

I would find this type somewhat confusing in the sense that it mixing the underlying YANG datatype with the range of the value space,

e.g., I don't think of uint8 as
type uint8 {
   type uint32;
   range 0..255;
}

because the encoding is allowed to be different.  Perhaps having a slightly different name would help avoid possible confusion with the built in types?

Regards,
Rob


> 
> /js
> 
> --
> Juergen Schoenwaelder           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/>
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod