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

tom petch <ietfc@btconnect.com> Mon, 27 April 2020 11:08 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 0AC463A0869 for <netmod@ietfa.amsl.com>; Mon, 27 Apr 2020 04:08:02 -0700 (PDT)
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=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 5ZabapQKwCy4 for <netmod@ietfa.amsl.com>; Mon, 27 Apr 2020 04:08:00 -0700 (PDT)
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60117.outbound.protection.outlook.com [40.107.6.117]) (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 91D5B3A0831 for <netmod@ietf.org>; Mon, 27 Apr 2020 04:07:59 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S5zKhtYY+e8tnjf/LxWo1HGv3NOw7QsI+En9U+t/E4KOKB12eERwaBk832TCYCzbDaJAbyl+argHaXgQAgVhvwry07wv6el17wNpbxoFn7+oQ1uI8ic4cH2PuXGMx+kLBu0b8wRTRFnQd5TutnAp4jr1b5ooNHqe7YMgGvyU5ADDKMMivQCrXHX/m20OFYEas3+6loCCn59ujP53fg/AsHgEr6jzteafDlwRwfQH5Ds6nRzf7wnB/zLJyQiCY7IS997KkpNuhvQ78W73FgxY26IFJOMxOR8HzzEKMpCfLHO4ASzUqAK6+vknhmoNtCriAWwT60t8ON6hP0FUZwwPEw==
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=b1GQPYQWNYh25N15F24hKtV8RdCbHpDH2XqaKgbqCgQ=; b=Nuwj6XPEiBxIBmEUWP6wW3Nu5Io+IM4RhPNJ6JRNSL6MI7iFWasQyrUX8IBTZZklmvqG08t8ZBhWQ+6vUH3qfHvj2QRkqnjzMi0G2h/cWpjUFtafTOgKjG2K3SrmrWtvXZufnCWzTIshEYoJWR7e6jmsL0KUn53itPzqRnyZfUe59mPVpQk4AIg+67SjitppEDddDhJTV0yXBrUdCUVNdV1INK4P2S/Wcb8ApGwpPZpBXKzOl3D0feTNXJfod7URz9OVYyQZLj5ilNTuJt/7/flY1i4hYiQGYJt3vIRs5iS3BeSasIgAmjj3xmyoQ35l7YXUq+ZrM+DQheWXHU3Dmg==
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=b1GQPYQWNYh25N15F24hKtV8RdCbHpDH2XqaKgbqCgQ=; b=Ru1V4VvEB82lIiVBtCTDw+3VuLb5+jfEDpcVTcpMBGR2MHDO20WDtTRB5cHRYYEkT9eoLgTQOARKdCWrKsC4YICmCIdPcZMdh7BF3XxuoWAVtf2Ke/35I8qnpM/qGa/LVGlfJxgknIeHcdcZuzWV0NADVaD4znMj20cgFdUj/gU=
Received: from DB7PR07MB4522.eurprd07.prod.outlook.com (2603:10a6:5:34::23) by DB7PR07MB5499.eurprd07.prod.outlook.com (2603:10a6:10:7d::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.14; Mon, 27 Apr 2020 11:07:56 +0000
Received: from DB7PR07MB4522.eurprd07.prod.outlook.com ([fe80::1980:df3f:5436:3e6d]) by DB7PR07MB4522.eurprd07.prod.outlook.com ([fe80::1980:df3f:5436:3e6d%5]) with mapi id 15.20.2958.014; Mon, 27 Apr 2020 11:07:56 +0000
From: tom petch <ietfc@btconnect.com>
To: =?iso-8859-1?Q?Martin_Bj=F6rklund?= <mbj+ietf@4668.se>, "rwilton=40cisco.com@dmarc.ietf.org" <rwilton=40cisco.com@dmarc.ietf.org>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] "uint24" in rfc6991-bis?
Thread-Index: AQHWGOuVMHxLoiDdCkqJMy7y0KTV46iFs2KAgAC9C4CAAAjdgIAGXHEn
Date: Mon, 27 Apr 2020 11:07:56 +0000
Message-ID: <DB7PR07MB45226BEB2DEFFF8EB1578CCEA0AF0@DB7PR07MB4522.eurprd07.prod.outlook.com>
References: <a185a706-235e-a780-1cdd-147ac33a4e40@hq.sk> <20200422220855.jlpgobh2ixloaheq@anna.jacobs.jacobs-university.de> <MN2PR11MB4366B7889896668A4A92CEBBB5D30@MN2PR11MB4366.namprd11.prod.outlook.com>, <20200423.115715.467694125357149481.id@4668.se>
In-Reply-To: <20200423.115715.467694125357149481.id@4668.se>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ietfc@btconnect.com;
x-originating-ip: [81.131.229.19]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 70a32203-dd52-4b92-b667-08d7ea9b3d76
x-ms-traffictypediagnostic: DB7PR07MB5499:
x-microsoft-antispam-prvs: <DB7PR07MB549925364B3D044A121FC282A0AF0@DB7PR07MB5499.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0386B406AA
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR07MB4522.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(39860400002)(376002)(136003)(396003)(346002)(366004)(2906002)(478600001)(6506007)(110136005)(4326008)(8676002)(53546011)(966005)(316002)(5660300002)(86362001)(9686003)(7696005)(91956017)(81156014)(71200400001)(66446008)(83080400001)(66476007)(55016002)(66556008)(52536014)(64756008)(76116006)(33656002)(8936002)(186003)(26005)(66946007); DIR:OUT; SFP:1102;
received-spf: None (protection.outlook.com: btconnect.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 0jFUq1ggCp2rkHxw1NttpMnFIrnPK6vjImnLiSh7bPiU3k0Y3smBPDHwRizXFaD8rjxMAiUixjKde2mz9qkL8pQ44GGNET/gNnZP+I1oCTWtuormvoL6kyCHKXz0xNRi/PrmBQ5z9oDz40+DqHL0kHH+mgEwUp735jZ/WgH6EJFO5DCVAYArWK05G5c7Dct5j1FfTA3jqSEzbI6Tizp26CFk/sDoE9YNyqjssQ7cLSYQDaxewTtVme0MC7nXD0Y67FlGJjMshidVefhilWY2Ewgzm23ZofNFisQupi3ZtHLuouM/S9bU5ryUZSFRVmkjegxDiDEnPqZgGeqh4Chx6E9moDaZlDo9xNWJouUKgfNdfdPeH1MAe+Pychub9IvoE2kd90oja5YIimWQ+YoI/aaIE68UU84a2zFZA5C1v+XcfgZaSZL0rZVWv6Cc/wd8eIT9dmfq8fO6RvBL8in1GSgYzadBWgCUf8HDSScKPLpkPU/izSMnSPVCCq1m0wfUgk6TazfO97tsVObTlaXnhg==
x-ms-exchange-antispam-messagedata: +TgPlKB72kzXtre4stzaFCFLREV/8xdGoUTWKxmZ9U1pUWMeNbX4K/dYW06nAwxPnEzEjXEULRCSwSbyeEPQwhhGJZTCEy+0Lpo8JNaq4o0LvEdI77vBEsNoPTd2OsB35ye2RRdz5AcarV68lM2LaJaJhJH5LQ9ZJTbpW9/lpup+u8tzqtCWdbGav7zblBgGmggDwMkNi3mp+lWctnAQlp4y6kqfiVLmd5SSpk4ZZDWppkZOPwbjtZeNaLMe4+IPCYgEtDGBwiZXsi5o3zXryripfNFz3JRhDJnfC4nf9DhBTyWrVxagXP7BwAteEQOL7gEVA6xBVHyMBrt4Y8D2D7heBAW65PUSwl7ZyuaStZZFZLpirCb/E73Pr+adtKU0FBnZKq3cwi/CPirMWivVMeOLDAZdMSGvg0hCbXu4HYun5FmchQUaxMZB5Vb/naPVLHNB/dJj7WLuMObjuhtueOYzK94cDLLiFI1u3AiRkUoiMXk4yLfEpeh2xHbxJ9AmdYrvoQHLIvyJZ33QTqwzz85eoScrn/gKGKKRk6PHq5vlxYZVmUpQzWbEK4Xihx9bUSeXDIPL0DHdGtVyNOVYLzKpxxcd6iZn7YoMsE+RWQ65ORqwFlQnwB13ocV6ny7H4H2g3BF47DJTsXu3WvfNj+Fvd/lAKK0aB/O/sNgnqZa/5tFqNWx3Ptffe4L/d0mtMyYeurDcwlckHx5U4X5uEdA4nqbT2Ovtn0JTif1lE5ctzJYmaiPKKzCVZSpbeW2Qe2pN/0FALZZUgRn8tPSySKBXn0jFIrG5Kto6xYn5c4I=
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-Network-Message-Id: 70a32203-dd52-4b92-b667-08d7ea9b3d76
X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Apr 2020 11:07:56.6795 (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: PFuirIMvSpn8QlC+KDsvhFh9UErRDzn2Dca9lZnjwVrQWfDPpo79jO+bA6gTXcgMSiv2DD/fEu4ul5Cp6lEG8w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR07MB5499
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/yKgZpXp6Hzsgj0ZbWuUDmSEEcls>
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: Mon, 27 Apr 2020 11:08:02 -0000

From: netmod <netmod-bounces@ietf.org> on behalf of Martin Björklund <mbj+ietf@4668.se>
Sent: 23 April 2020 10:57

"Rob Wilton \(rwilton\)" <rwilton=40cisco.com@dmarc.ietf.org> wrote:
> [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,

I agree.

> 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?

Then the question is if it really is so common so that we need a type
in ietf-yang-types for this.

<tp>

I think not.  As Juergen said, where there is a 24 bit quantity, there are probably other semantics e.g. meaning of the maximum and minimum values comes to mind - and so a more specific type for that application seems a better idea.

Tom Petch
 
/martin


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

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod