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

Anders Rundgren <anders.rundgren.net@gmail.com> Mon, 19 August 2024 19:56 UTC

Return-Path: <anders.rundgren.net@gmail.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 3E6FAC1840E8 for <cbor@ietfa.amsl.com>; Mon, 19 Aug 2024 12:56:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.106
X-Spam-Level:
X-Spam-Status: No, score=-2.106 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, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 LUgDYNVKOkuW for <cbor@ietfa.amsl.com>; Mon, 19 Aug 2024 12:56:10 -0700 (PDT)
Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5E1A4C180B62 for <cbor@ietf.org>; Mon, 19 Aug 2024 12:56:10 -0700 (PDT)
Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-371b2e95c34so1266725f8f.3 for <cbor@ietf.org>; Mon, 19 Aug 2024 12:56:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724097369; x=1724702169; darn=ietf.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=meTEAOEEjWwZg2rf07BO608dJktxFDS5D0+FgwDwIkg=; b=MK15OL2a4dbC248KEXUqpdT73C0UY2cqcmXMZbvYcN7BF+J9U/QqUPX8dAZ6a3DSz0 1wVY6+UVke3Vkm+YtuYA396Hy8LB7Blzby/RDeVUVw3c5h6N+YmIbWmhZxLTjh/C+99g Q6bZ+9hLfzQ+hUHHddPa+T3gYemz05C6dIyvVsfDFt6/eDgELHBYLT825RtwSUuUrsjH a+uJuE0TfEX67bHDCXKc/+SZrzw/z0C/7fSB84fC6MVMNjLb30U46/PZ0v8n6GeP+2nb 9xfcBX5qTq+i8ahnLHV7qCJ7/2ZiQs5PfmYQpT2TVnxMFuogZWYN0H6xq+12ijsd26lj Wg5A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724097369; x=1724702169; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=meTEAOEEjWwZg2rf07BO608dJktxFDS5D0+FgwDwIkg=; b=iy2bAwG0oWfJAEZXuo1V39H7SIFuKjYcktX9MsAB1ajMDbGWXJBerjB1Z0FewoDJ+y 3ou94eXCn/da8Guw4LTKBXw7ZcQKTSRHmj1zaobJX22yoe7BfjKQOjw+sbCBCHzfzZv5 Mpqu9FR8TFRePo4EaitoKKr0w15BcxLZjyeizWB4ju2Xf5gbLJACM6YM4Phqh8AMhkGe W7b6JUeJLK84tu3WSA8X4W1T/CTeh0/CFpujnAbQt3EmdoKdRXpTZZSNfn/r4J6fUZkx jxij2FexsrTinEiwgaEqDW/dMKzZWSyvVdVZ+HP/zMi6Xr0f3snrD47WaoLeIyA7W51W A+hw==
X-Forwarded-Encrypted: i=1; AJvYcCUgfiSoZ5Y5mw4TvIZqjrVfkbtLxMRKqnX07eVswvOXKurxVoX/ZAyvg2i4bBlc4/MPe8hAS9zh5P9cx/8U
X-Gm-Message-State: AOJu0YygGDqTwR+yEOSDlzZuYgjL/Td0Ucva0KsRBMNIPQDHVY4S/9wu mzh64p5+1eq3rT79VCgr3hsk+5TtcZsZzLxRxv8nR8mOmW5+pSk3
X-Google-Smtp-Source: AGHT+IH/w+SINSxAcJdNKQKE3PmfpbDg3pv0AdpbtiVFWO2rX7SyMrOL/fIzGZJLrC5/NEbE4UZOoA==
X-Received: by 2002:adf:f18b:0:b0:368:6337:4220 with SMTP id ffacd0b85a97d-37194315724mr7697052f8f.9.1724097368478; Mon, 19 Aug 2024 12:56:08 -0700 (PDT)
Received: from ?IPV6:2a01:e0a:e1b:64b0:5d75:9333:f2f:fe1b? ([2a01:e0a:e1b:64b0:5d75:9333:f2f:fe1b]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-429ed648f4asm119489865e9.5.2024.08.19.12.56.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Aug 2024 12:56:07 -0700 (PDT)
Message-ID: <6fac715f-84fc-4868-b1d7-398c98353f3d@gmail.com>
Date: Mon, 19 Aug 2024 21:56:07 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: "lgl island-resort.com" <lgl@island-resort.com>, "cbor@ietf.org" <cbor@ietf.org>
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> <CB2D9A13-8ADD-4CA1-AD71-0F5429CD2C11@island-resort.com>
Content-Language: en-US
From: Anders Rundgren <anders.rundgren.net@gmail.com>
In-Reply-To: <CB2D9A13-8ADD-4CA1-AD71-0F5429CD2C11@island-resort.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Message-ID-Hash: 4TOQV7NCLFEWLVEKPOFJQN5R3SIOHPAN
X-Message-ID-Hash: 4TOQV7NCLFEWLVEKPOFJQN5R3SIOHPAN
X-MailFrom: anders.rundgren.net@gmail.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>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Cbor] Re: 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/uOeBhuGfwxfJJVqyhNJvtDgJXNM>
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>

On 2024-08-19 19:51, lgl island-resort.com wrote:
> 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?

I don't bother too much about the terminology, more about the consequences.  Carsten talks about mapping.  Numeric reduction is mapping?

Anders

> 
> LL