Re: [Cbor] Robert Wilton's Discuss on draft-ietf-cbor-time-tag-11: (with DISCUSS and COMMENT)

Carsten Bormann <cabo@tzi.org> Wed, 25 October 2023 20:36 UTC

Return-Path: <cabo@tzi.org>
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 A72B2C180DD9; Wed, 25 Oct 2023 13:36:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.905
X-Spam-Level:
X-Spam-Status: No, score=-1.905 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=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
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 VrSYdWkuLZfi; Wed, 25 Oct 2023 13:36:28 -0700 (PDT)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [134.102.50.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 919BCC1519A3; Wed, 25 Oct 2023 13:35:58 -0700 (PDT)
Received: from smtpclient.apple (eduroam-pool10-228.wlan.uni-bremen.de [134.102.90.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4SG10W56g0zDCbJ; Wed, 25 Oct 2023 22:35:55 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <8F14C1EC-2356-4FEA-B7DE-DBEBC0CB3A2D@island-resort.com>
Date: Wed, 25 Oct 2023 22:35:44 +0200
Cc: Robert Wilton <rwilton@cisco.com>, The IESG <iesg@ietf.org>, "draft-ietf-cbor-time-tag@ietf.org" <draft-ietf-cbor-time-tag@ietf.org>, "cbor-chairs@ietf.org" <cbor-chairs@ietf.org>, "cbor@ietf.org" <cbor@ietf.org>, Barry Leiba <barryleiba@computer.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <93FA14FF-56DC-4C2D-AA61-8C8201E19E14@tzi.org>
References: <169822991734.25025.2578479462883686140@ietfa.amsl.com> <8F14C1EC-2356-4FEA-B7DE-DBEBC0CB3A2D@island-resort.com>
To: "lgl island-resort.com" <lgl@island-resort.com>
X-Mailer: Apple Mail (2.3731.700.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/JcMQjP7ww8tzIxWv-22stuzhsGM>
Subject: Re: [Cbor] Robert Wilton's Discuss on draft-ietf-cbor-time-tag-11: (with DISCUSS and COMMENT)
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Oct 2023 20:36:32 -0000

On 25. Oct 2023, at 21:01, lgl island-resort.com <lgl@island-resort.com> wrote:
> 
> Also, here’s a time tag implementation FAQ I wrote some time ago: https://github.com/laurencelundblade/QCBOR/blob/master/doc/TimeTag1FAQ.md

This may need some debugging.

Preferred encoding for floating point values means that you will get (and, if deterministic, send) binary32 (what you call “single”) occasionally.  Binary64 has 53 bits of resolution, not 52.  Binary64 (“double”) only gets microsecond resolution until next century, not beyond the end of solar system.  If you are "transmitting thousands of time stamps and space is a problem”, don’t use Tag 1 but a representation that is appropriate for your needs (e.g., custom epoch, custom resolution).

Anyway, draft-ietf-cbor-time-tag is not a document about tag 1 (which indeed stays available for use where it is sufficient), but about tags 1001..1003.

Grüße, Carsten