Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-04.txt

Emile Cormier <emile.cormier.jr@gmail.com> Tue, 17 January 2023 20:26 UTC

Return-Path: <emile.cormier.jr@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 64342C151538 for <cbor@ietfa.amsl.com>; Tue, 17 Jan 2023 12:26:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.097
X-Spam-Level:
X-Spam-Status: No, score=-7.097 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 eVRQaJvuXxkJ for <cbor@ietfa.amsl.com>; Tue, 17 Jan 2023 12:26:53 -0800 (PST)
Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 006A6C14CE55 for <cbor@ietf.org>; Tue, 17 Jan 2023 12:26:52 -0800 (PST)
Received: by mail-pg1-x530.google.com with SMTP id v3so22905003pgh.4 for <cbor@ietf.org>; Tue, 17 Jan 2023 12:26:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ru3pPuAo4MXA5G8Z3yVz4fLT8QkSntc8EkwNhQpsqaA=; b=iJR1VQJHU2ZE1vYMw0kTdAgutXtih7DT+j8AAUTN4LcBfvfAmpvetBDpHy6mTqEnup TJYPKbSiPNF/iBzGmpPmOboxmqd1JNcPvqhPFJQetSgdiddkzWwebqoL7ZjxD+lNKJV/ L66Q8seqNogJj+oGKVl8QJvAtx+uJh7UIg64GYjjDsxS542MsA4pD5Jx6MUGZ7AID+Lm ioivoA01BMLhV5hUoGexdJrB9TVCqT5w8Xs78PvDRKw2C9/F84zm7LnZdOrVYu9K8uw+ 9MJTUELRrFRtjJ+KO335cSsPFDYY7s1ZW27xuLWvnrUUd0tnYUeqWiSks5myr8IIHHk7 uyqA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ru3pPuAo4MXA5G8Z3yVz4fLT8QkSntc8EkwNhQpsqaA=; b=kMLr96kGdzd8EtuRo3CCO4Oq8mR1H7feSkILSEDxEdZWnbY+A6FIFyOOW05HMhc8fg cN60X6MLFJJ1ZF65Iw/nlt+OLLLPnn+D9IQL7Fq6P0aaTWqjASvVO48roGgzmJhI18oQ h8TdYiKbFNA5wbnbxI9uXUEcQ5w74noAUZfDoHnQ2Tis4vrlZRvy9RCIZvYNrIEHFc9A cArsRH7k7E3M9X/RyTQVAj5Uym8RDwcmnC72qXjesfrFLnHxCp+5JYYrTgBbMnLnSHSs uSrI5tCHnhIgBOWSN2L01/QHMYUrZyDd+8dUFAIkLM4yZXmdfZG94QVoAiSUbP4V8pWt ZWCw==
X-Gm-Message-State: AFqh2kpHe9EJTOgfkfHFgxuriYPt0ohd6XJJDHokdv3cl/cz0muX/Yqq CsydHSTsFHGKbfx9KqGriAF3BQZDJe+Hy+HrTEI=
X-Google-Smtp-Source: AMrXdXuBOvsUJF7PCB91gJbGumbSBDs27mU04wWeEt1YeYJJMWVY4CNyeenX2jFzcG4AvoO/fjDLWy5mE7dyYHNWxVk=
X-Received: by 2002:a62:7b58:0:b0:583:3c8d:266a with SMTP id w85-20020a627b58000000b005833c8d266amr438423pfc.72.1673987212177; Tue, 17 Jan 2023 12:26:52 -0800 (PST)
MIME-Version: 1.0
References: <167345627851.15097.9738487459393843034@ietfa.amsl.com> <CAM70yxD2Z52JsJ=XHFFrJWFuAEG5oHv-B8gf6zRYVK4fhpDpeQ@mail.gmail.com> <0B9B7A5E-D61E-4B97-9CE5-9A8AE7055F50@tzi.org> <20230117004326.5642c6ab@nuclight> <CAM70yxAs=9S-H6ve2HfDf5W=f4cKGZ3B=AXJV==vm26ERs9-mg@mail.gmail.com> <20230117204606.2b742f14@nuclight> <CAM70yxAeLGmiPyidn1zc64rjRcKNHp7hSUt+d6veH-AqguObkw@mail.gmail.com> <20230117220443.6c5054e7@nuclight>
In-Reply-To: <20230117220443.6c5054e7@nuclight>
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Tue, 17 Jan 2023 16:26:40 -0400
Message-ID: <CAM70yxBbNtn0D91tZ1mSY3Cg-MMVnpaCodius5MWH-wEjQHu-g@mail.gmail.com>
To: Vadim Goncharov <vadimnuclight@gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org
Content-Type: multipart/alternative; boundary="00000000000023f5af05f27b8544"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/CiZC8mnYXBhmi4UYvSNUEYxjGh4>
Subject: Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-04.txt
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: Tue, 17 Jan 2023 20:26:53 -0000

On Tue, Jan 17, 2023 at 3:04 PM Vadim Goncharov <vadimnuclight@gmail.com>
wrote:

> Then I understand you, but instead of seven new tags I think reference
> to Section 4 here and in 3.5.5 should be prohibited. It allows for too
> large values if a generic #6.1002 duration would be allowed. In fact,
> as most clocks support 1-second resolution, it should give part of
> second (no more than 1 second), like Precision field in NTP.
>

I think the rationale for allowing Tag 1002 for the clock quality
Uncertainty and Guarantee attributes is to allow flexibility in their
resolution, as well as numeric format (integer, float, bignum, etc). If
there was universal agreement on the resolution and numeric format of the
Uncertainty and Guarantee attributes, then we could indeed remove Tag 1002
as a possibility for those attributes. That would eliminate the possibility
of recursion.

I'm not an expert on time synchronization, so I cannot propose a resolution
and numeric format of the Uncertainty and Guarantee attributes. One
possibility would be:

[quantity, exponent]

where 'quantity' is an integer or float, and 'exponent' is an integer for a
10^(exponent) multiplier for the quantity. But this is not consistent with
how Tag 1002 durations work, and I can see the "ugliness" of this
inconsistency.

The Uncertainty and Guarantee clock quality attributes might be used for
scientific applications, so I in that case, don't think they should be
constrained to numeric formats and resolutions used in network time
synchronization.