[Cbor] Data model versus serialization (was Re: Scrapping the CDE "Application Profile" concept)

"lgl island-resort.com" <lgl@island-resort.com> Mon, 19 August 2024 17:51 UTC

Return-Path: <lgl@island-resort.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 47D1EC169431 for <cbor@ietfa.amsl.com>; Mon, 19 Aug 2024 10:51:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7zbhQ1k2fK3L for <cbor@ietfa.amsl.com>; Mon, 19 Aug 2024 10:51:23 -0700 (PDT)
Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2136.outbound.protection.outlook.com [40.107.243.136]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B08B0C14F61E for <cbor@ietf.org>; Mon, 19 Aug 2024 10:51:23 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AbvuUius/yJZu3haIranCdl8Vgz0lnP73Gn5DpZGscRpvEQqjBWmMlDxedQ3P/3VwvCUkU0hf/xbpvGassXcudu/r5YXTRItu9vZ6QIufYV6gSsKxPQkWD3YMZJZyWQS5AKa9QRJWN254TgrKnegUiOJvr8SgZrVqlVxBGYbYVNB4j53dVda/wi1VI016GgNs4IE6vgZ9iOgGpW9JM4VQzC0QqroyTrgCX0YbpVJD1Ijih7X8Xyz1pg6ffY/1Kn9JbWED7DfOAlCgmRRTo8PCffzf15gpm/DxKNZ0xiPDoijuyEpYkF78/5Ah4LsdIuObxgpsK034M/2MgOQ81Wm4A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=P5/S2vrYHM/SjhPOy2OrQZ10vtNdYdR8rDYz+XQoF6I=; b=ydUTPTS0REbTd9sRfRhvnWvjNAKv9/WOtiAM0yslJMNWecx1TSSuLMKW5iaKUSwzSqs/Gn1N+vn7LfzF1Lc6vW4dUEuDMKwutxJIQxWTGaGop/xwXY57v6z9qE1xgYMBB2c6TM9jprR91QbHhU/AlB0IiaxeVgYxjlqEbCOdPOPYg03wpkzbJXbErFe62BL6SpjAUewseD76fNF08/Bm1f0lJnz3l/3cW3tZewpoiDKt9tIYK6tPhE5GSZJ/wLFFSdSYROal5AveZeLoE1INuPT8eB477LlNM1XoPAmGm4FmpvY8OO2A9H1LogJwI3xqqnhUiDnC82bpHwqyvgAYHg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=island-resort.com; dmarc=pass action=none header.from=island-resort.com; dkim=pass header.d=island-resort.com; arc=none
Received: from PH7PR22MB3092.namprd22.prod.outlook.com (2603:10b6:510:13b::8) by CH4PR22MB5897.namprd22.prod.outlook.com (2603:10b6:610:221::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Mon, 19 Aug 2024 17:51:19 +0000
Received: from PH7PR22MB3092.namprd22.prod.outlook.com ([fe80::8515:3aa6:3ced:15e]) by PH7PR22MB3092.namprd22.prod.outlook.com ([fe80::8515:3aa6:3ced:15e%6]) with mapi id 15.20.7875.019; Mon, 19 Aug 2024 17:51:19 +0000
From: "lgl island-resort.com" <lgl@island-resort.com>
To: "cbor@ietf.org" <cbor@ietf.org>
Thread-Topic: Data model versus serialization (was Re: [Cbor] Scrapping the CDE "Application Profile" concept)
Thread-Index: AQHa8mBlKHLS2YCW0UKqc/z0SAzJ4A==
Date: Mon, 19 Aug 2024 17:51:19 +0000
Message-ID: <CB2D9A13-8ADD-4CA1-AD71-0F5429CD2C11@island-resort.com>
References: <fbeade60-0c40-4bbc-b233-0c30c23f7426@gmail.com> <EA998EF2-421C-491B-86B7-D9A51F218AA1@tzi.org> <3385efbd-473f-482b-887b-0f40c704f279@gmail.com> <3B1F1ED4-68CA-48EC-8B56-C916ACF55E84@tzi.org> <bcb84f8e-c817-43c2-ac0d-6b401c29857b@gmail.com>
In-Reply-To: <bcb84f8e-c817-43c2-ac0d-6b401c29857b@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=island-resort.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: PH7PR22MB3092:EE_|CH4PR22MB5897:EE_
x-ms-office365-filtering-correlation-id: 9eef1fdf-9700-4082-22a5-08dcc07787ba
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|376014|366016|38070700018;
x-microsoft-antispam-message-info: 01PPRRio+HSnPVG0r/9kyMR8CytKl706TpeWUFxyXkXHmoC6U7vl4GWLu7PZ2y45J2XWYEniMpbC9hnGCAUhDQ1gkbymBZmq3yrjI8n+GvsM4huXvXyKnUEWjnrcgsPpzJVKhkgF4gM9lQxY1mu2uuA/HWVLeS92Sxy5WJSkQkuWLAQjS7Bo6OwltNTk1fGfLfJQQZ7HUQCtP56zPryZwMaZRQdb/Jpe3tkeIrfN0wYPEAsdYImoAEBBowwn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6y79K7QNYo94i7hQ5G58GWW9SFQDs4A29Kc8LKfJY1zB6GZo3PlAdV67tngl+CwtpRCLlSI7K5QGhWyjzvg==
x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR22MB3092.namprd22.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016)(38070700018);DIR:OUT;SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: 96bgGX7/uXiKusrHsD7W5jVHPz2RZxMM/9tNMxV8OhVfh6WbUznXnkonAZHdvCGAwYQ5YOnLzJaE1rQ5afs8yLTQI00Mnp5IShR7tMdJ8ctXZtqZTqBWOskZvMR5Pb3XmNjPC+pmjQIYmmSJfS3qDYbB3fcUET3TXqT7n6KY1HmQ3ovy16gUTf0cra2riYNccRHUBK5YYngi6Qtl5JYdLKME2XDjqw5NgLG3A+n/VOnmthXIHygyVKEC8Mf1rst5S6PGAxT5+bUfLLjX9UJaxtaKV4cqGjY/+QGGY0otF2VsTghudoPIesAPo1m4q5AIpbbc6yMoNhN5AG4Kv13+wZLMF9O88tYjTYoXS+gA+roIH1haq+KJaL7BV0bglZ61yIm3K3F4pMdmIFws8ebCmRHio3wYcpV/zEdUDot5Uyavz4r4o19Drg6b7pZqEcoW4kYY6mdSeiWx07QjYj2isKwhwsB5GHFQlGIqWyWoIkoCgkAzch7MDnU4l1rC6Krs8n9wfx1p16NZaGQJfIO+unMkWPEb6+m3hMOD3STfp8oI8eUHRgJk7oMEi9D+gkR+fsw0EBrpyhGqPsGBbGihrA/G3MBPsNMpTTOs6lQrgYXY6afuO0EYOloVxB7Lm+Q6QJkLNptOtxRZnqCbqiN4CW6ZNULPHiVoIkmm643Viu6tXmgw9SYOPdFdI0LtS82y/hEyf/DZ382ZhI2CKeIBCKSWGHt9pLt92kIDwUQGQErw93JA+1UmUkfkRcXCichQc0+cLQXkKEGgxX56QURqFzfBpdHSR6xZ1A5pcuzjw66SgZfkgUwbHh9B2onbLR2Bx/s2A5O5m8K9RNmvpnAEfIJOggBCdSSfXosoR9iKFTR94a9Loac5Kaq9DDEDddMZPgC3dpNEDpIZJ8jo27U83H0xbTpboftXdOQa9lh0dKzJUgphPiSkZvmaVdhv+tq5QqoiYHvyQrTNOhaAqbgs/AnSXyKXutBVX7LB1O2GCIXYu2NUdBPisGzzMk9W2lO0lNafBzxeOd8ureQfuZ7H+iyKr0Inhb961W1zb8u2pXT24I983xjJvXAOYy5XQTBoXwqh45eusTmCIgQz68JF00pCzK3zhs45zQ/Lod2YA0babEo8BRWLghItEKo97fT7WkDsHkrbYy95TKcXfNy0qROL7tYeTUQ9JiS4M4IWnrFTdB3PiWLkINzQhoPX46f9nIAbQ+Qkbn3RGH81d/pHOPF8cgp4ke0TpiFNoaHJMLAo/J5Haju+DYvGWuzv3u72JOT84/BxZTQUBG/qgzoldgbEarR/j4lwRhPfddDBMoQUbepikVAeG6lhRvDysXwFUoQo7fCL/mHvyxrp5LUuISzleirO8QT6RvEXVAps9ncpmVmTODpHW2d7NcOqrwY/QIdOD+mRK8C4GInO4sQ/BJ1sW0+CA86sRSi7mVyasTMYdkP07mgC8oHZwvFzg+LIP4L2Urrpjl5fribYqxz5oAErJ09FCcfjjyKCLPGAuiEVCRQrWPnsgt6ICgfXm1rjAkD4WDi5foQwAd/dXPSbVZ0Fby/1hlh/TzZFCnjSGtSHIeJ37U+grkfiTfFCJef3xL4VXG0LkaaRkFs6R4dSJA==
Content-Type: text/plain; charset="utf-8"
Content-ID: <B66A22DC92E6AC4997EAD5675C209F7E@namprd22.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: island-resort.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: PH7PR22MB3092.namprd22.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 9eef1fdf-9700-4082-22a5-08dcc07787ba
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2024 17:51:19.0478 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: ad4b5b91-a549-4435-8c42-a30bf94d14a8
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: CxZm4Rnfn6LcUZ9updPKhEx2aXWxaplpYGshqYTTD62P/fb1p5InNBo1Jd1Lx7HnDKlKOmOdexgefa15Qbu79Q==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH4PR22MB5897
Message-ID-Hash: D6DULNI35HBAESJVZDRCWQFZAR2IDREP
X-Message-ID-Hash: D6DULNI35HBAESJVZDRCWQFZAR2IDREP
X-MailFrom: lgl@island-resort.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cbor.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Carsten Bormann <cabo@tzi.org>, Anders Rundgren <anders.rundgren.net@gmail.com>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Cbor] Data model versus serialization (was Re: Scrapping the CDE "Application Profile" concept)
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Gt17XRMqwI3iGlbQIsRXMU9U2ek>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Owner: <mailto:cbor-owner@ietf.org>
List-Post: <mailto:cbor@ietf.org>
List-Subscribe: <mailto:cbor-join@ietf.org>
List-Unsubscribe: <mailto:cbor-leave@ietf.org>

Trying for a bit of clarity on data model versus serialization...

== Data model ==
- Fundamentally, the data types supported — the CBOR generic data model (plus extended data model)
- Most protocol designs are in terms of data types (not serialization)

== Serialization ==
- Says how to encode a particular data type
- A particular serialization is chosen for message size and implementation constraints
- Also, specific serialization is needed for deterministic encoding
- Serialization choices don't narrow or otherwise change the CBOR data model
- Actual implementations of a protocol must agree on serialization to achieve interoperation

Seems to me that JSON has no such split at all. ASN.1 has a little one with DER/BER. CBOR is quite different in having this separation. Necessarily so to support very constrained environments.

Preferred Serialization, CDE and Basic/CIE are primarily serialization specifications (however, they stray into data model with the reduction of big numbers and integers (RFC 8949 3.4.3)).

dCBOR is primarily about the data model. It specifies no new serialization, just re uses CDE. Its main contribution is reduction of floats and integers and exclusion of a few data types.

Does this sound right?

LL