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

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Wed, 22 April 2020 22:09 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 2250B3A0C20 for <netmod@ietfa.amsl.com>; Wed, 22 Apr 2020 15:09:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.719
X-Spam-Level:
X-Spam-Status: No, score=-2.719 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_MSPIKE_H2=-0.82, 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 JadA3G_qh77Z for <netmod@ietfa.amsl.com>; Wed, 22 Apr 2020 15:09:02 -0700 (PDT)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2062.outbound.protection.outlook.com [40.107.21.62]) (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 B19C83A0C51 for <netmod@ietf.org>; Wed, 22 Apr 2020 15:08:58 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=It4qZ2t/vrfyF2vxI1E13xd9YwAfUCE4cUGVWAO4JgNW9fh3gbuyFGvn58SNutOXWuKn+oVs6ltF4vBOTozCLs33OreTIaqb9iPd9pAR8/hVMjzWlAWA9dsaWse8aojGqUvytCQc0qu63kc9N9HPPTAwakxZMMawKJezePIBbe6do6hvd4uvJGp9xY25CC2SiBWfSN5AikYAI07XTz9SzhhMdk4ARWeKpTu7k6cHM2sCuWySkAPwi45Q3swj4PgL7Ke98X9QrvkqvxVJMVC/VzvGg04M2A0Kcj3oI8PXio9QUcXpvMd70AWFyWOxnWScEC+OTOjqCDLS4ar14oHlIw==
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=OLIScD9dz+5+91ukaRjf8oiSZlkiNYJNw6MqIPUaadU=; b=jaKlodqzYbjbMWQuijtaxuckGl05cVp+Op4G8+jF31J6WYGTjTZxZxWwOgrdlUn41pV8FVgu3PtBAl+GtPQ75WolCST15gc/3A85jvPpC4aegpClNTG6SZGOPMot3JwgaTG3LWw5SVO9MqKCnhwcAkaYbiSySYZ0K4Jva+dklOQxYwOTfWvpzlowQqjW3r1M1RDIyFxhIlklUep4tfg2tjQR2J3Mk0UYguT3FpuaTek/YtvmATrNNaU0PeSg9uDy6Pnx6XPJMCzXDERMDvdi04KfP3Tr/fl5WpHC16fqDukm1kiXXg+PzPk27k94gvxrb/cHz7tLBOMYamg4utf+ww==
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=OLIScD9dz+5+91ukaRjf8oiSZlkiNYJNw6MqIPUaadU=; b=cAAoC8nv3/8m/Cn1H7+8hvdl5vrJnY1U9k4FeBd36lRj4AOpNHKKrjCA/XJBoilZ9W4Zm3QSD4hsvSoZ3B2jbsPWSuVIFzuoHcpxuIR+so/efy7u/EljQNsq/6oacUpoL9cyt/k7ZvblPYRoIR9BnhIP49E3UzMnqtuk2KWAh6U=
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=J.Schoenwaelder@jacobs-university.de;
Received: from AM0P190MB0707.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:196::24) by AM0P190MB0705.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:19e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13; Wed, 22 Apr 2020 22:08:56 +0000
Received: from AM0P190MB0707.EURP190.PROD.OUTLOOK.COM ([fe80::dc34:2067:88d1:c483]) by AM0P190MB0707.EURP190.PROD.OUTLOOK.COM ([fe80::dc34:2067:88d1:c483%6]) with mapi id 15.20.2937.012; Wed, 22 Apr 2020 22:08:56 +0000
Date: Thu, 23 Apr 2020 00:08:55 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Robert Varga <nite@hq.sk>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20200422220855.jlpgobh2ixloaheq@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Robert Varga <nite@hq.sk>, "netmod@ietf.org" <netmod@ietf.org>
References: <a185a706-235e-a780-1cdd-147ac33a4e40@hq.sk>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <a185a706-235e-a780-1cdd-147ac33a4e40@hq.sk>
X-ClientProxiedBy: AM3PR07CA0053.eurprd07.prod.outlook.com (2603:10a6:207:4::11) To AM0P190MB0707.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:196::24)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from localhost (2001:638:709:5::7) by AM3PR07CA0053.eurprd07.prod.outlook.com (2603:10a6:207:4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.9 via Frontend Transport; Wed, 22 Apr 2020 22:08:56 +0000
X-Originating-IP: [2001:638:709:5::7]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 9c4bd4d0-c7e2-43ab-8dbd-08d7e709c025
X-MS-TrafficTypeDiagnostic: AM0P190MB0705:
X-MS-Exchange-Transport-Forked: True
X-Microsoft-Antispam-PRVS: <AM0P190MB0705C69B5EB02104F4844E38DED20@AM0P190MB0705.EURP190.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:8882;
X-Forefront-PRVS: 03818C953D
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0P190MB0707.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFTY:; SFS:(136003)(39850400004)(396003)(346002)(376002)(366004)(8936002)(81156014)(966005)(86362001)(16526019)(186003)(6486002)(4326008)(2906002)(3450700001)(478600001)(786003)(316002)(66946007)(66476007)(66556008)(6916009)(8676002)(6496006)(52116002)(5660300002)(83080400001)(1076003); DIR:OUT; SFP:1101;
Received-SPF: None (protection.outlook.com: jacobs-university.de does not designate permitted sender hosts)
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: wBWbMMEymtSc1F6q7O1Vs/7viRzi25+6axKVyzvf7KB7U2Qd39XbVhXvl6vk++ldlRjHRdSRBtOaC0KULHZaArnyHrS/Yn5hbjWtnKurUdLa23i60JqB/UV+KHMMzabQRaco743c10JLPeJhXgbgXFSePYpiru5ELh+kpugm7me9tz5cwSGJHyV5Ho7OIVCpA1F+QyaHwrDbql0M8MoAvbMbMnnBZow2xH/C07kZ/V8M4CYoSG45EEAUoVeBtYbyu7oarnM37ZhJgVF/+YaoPS3VV8uAXL7uQ/x+iV964VONvrj5f3xr5csCI5xjpjDEw194xl8qhfGO8ojtkX5oiLr8L9vjTY2h8P0v9uYz5AqKSlTzjFkUbW0EsqdoM0BJC3/MJdlrBXQYFHi2LxYbMBfXnj5k9t8GXeReRfuoBJK+wTCuPSxQJP1CAeYkZfXYEsoqN0Fg6ocxzc0dIBvwXHqMNex/qrn1aP7eCD0UMPE4BrkA169BLaJWtdaH5FCwx759DVdZCVz7/RPljIuKHQ==
X-MS-Exchange-AntiSpam-MessageData: Dl+tnHcz2oF4LxYk7DAAkUkr8x9rA66VHTGjkWXRYt3n7u7N0VmRlc1e62Qk8h+6ooS+FDSPnFoZlEYwqKcuN6yvCK3KGPYxLiOcGDGdxNDTV4kz8rR+/X1mnOfDlqjlph0Ky/yXY0nwFBvtC9s4+On+BVmIbvH2l1Z2UXq0/sw=
X-OriginatorOrg: jacobs-university.de
X-MS-Exchange-CrossTenant-Network-Message-Id: 9c4bd4d0-c7e2-43ab-8dbd-08d7e709c025
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2020 22:08:56.2146 (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: NpKw5qKrX6fA4QWP5f+fkkxUdFELE2DRry2oC26ofV+bcue/L/x6Iai8pM6j+1yqrL4jP3v8gph4k8A5zFT5ZVeSBwRavpzIEK9GprdJWEw=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0P190MB0705
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/NNS-8XgXNwH9-uyEB681aROydyc>
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: Wed, 22 Apr 2020 22:09:05 -0000

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.

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