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

Emile Cormier <emile.cormier.jr@gmail.com> Wed, 18 January 2023 22:38 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 CAA63C15155F for <cbor@ietfa.amsl.com>; Wed, 18 Jan 2023 14:38:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 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_BLOCKED=0.001, 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 h-yXXb02cNez for <cbor@ietfa.amsl.com>; Wed, 18 Jan 2023 14:38:52 -0800 (PST)
Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) (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 581A4C14EB1C for <cbor@ietf.org>; Wed, 18 Jan 2023 14:38:52 -0800 (PST)
Received: by mail-pg1-x52a.google.com with SMTP id d10so64153pgm.13 for <cbor@ietf.org>; Wed, 18 Jan 2023 14:38: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=qEeGUK5opT1SCTJB+vpLkltKYimsNAOOuVwOBftT1dI=; b=nAgApvFFnygtyTOUVh3n9heCUkkEaEDzRh1kgtNFbItS6z+fMVRhdgDhkLj3Q1+MF+ qle1Aqhx6Q/seXKMo142nMh3S7V2XGiNZhXetD9Bs3S1/cFOrG+DJNp3QaA7FxtcDvQl mN1NDS/eKcuQtC8C7rFmg+WbUOAf35zYAx5gVGM5NkvL3N+7DbeWbo6s/SsTI+UflfSO mZDnUaOppbp2Sjr3x1XUZHBgdIcnNkzA0G8X/DQAvNrhmXQIaGe2ZmpIUq42tCZqt8MU rD6wdNI7NbOahZwKcOoiNx8dVqMJYNlmyXgSwpld9e8EnnfY7AgxFiiKhsQe2SFPpawh k97Q==
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=qEeGUK5opT1SCTJB+vpLkltKYimsNAOOuVwOBftT1dI=; b=bv8tULhUvRHxMoUvXNa14kIVU1tJM6H+WVaGEwEbj/ATxcmqyfdUW65dTfEGripVr0 zf4Z5PItFP3YpKpT8DMYdZtdGX+bSp3QsQKdB1ZfgLouadZGGtoaKloXEKD2rZ7t+fUo 89Du0aPiJhp9puKFNFr3IOoxuiIFzPWRS215NeLCIB581awESh06NAtMm+JjsDejHHTs BaTCgLuuzm0jwFyAJaiRxmIEHSDJL0pJHqnzRK02AGxSrH+eXR4He5YxXmwLyuK9AEvR cAi4zP9u6u5TZiPTFBu9Lf9eMblBNOfdZiX6IQhUXXnwWIz8iewhlhIjeomSX1GoxYPD LDQg==
X-Gm-Message-State: AFqh2kroOx1T4Zr2g7BQpNcdLEhYQFyW+f4vOkriCFapfMvm4c1Sfpv4 dwusVA+5nO4dPU/iK4LZd20/6yFicIwCBv6ZHnA=
X-Google-Smtp-Source: AMrXdXtzJQFrYaXfj/YX8efqEF5Y7iyvqLjgcWO9nanI+A5shnQcpc/15ZtxFhuMKEI3j22ooemRdGWr2n2Czt/gw3Y=
X-Received: by 2002:a62:7b58:0:b0:583:3c8d:266a with SMTP id w85-20020a627b58000000b005833c8d266amr886291pfc.72.1674081531737; Wed, 18 Jan 2023 14:38:51 -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> <CAM70yxBbNtn0D91tZ1mSY3Cg-MMVnpaCodius5MWH-wEjQHu-g@mail.gmail.com> <5EFA83F3-7FD3-4B11-A23A-8D98E59542AB@tzi.org>
In-Reply-To: <5EFA83F3-7FD3-4B11-A23A-8D98E59542AB@tzi.org>
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Wed, 18 Jan 2023 18:38:40 -0400
Message-ID: <CAM70yxCm7PV9bD5Wf=rJpVHKrTpZ+kRyHWW+_E5vQF9s6BYusg@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Vadim Goncharov <vadimnuclight@gmail.com>, cbor@ietf.org
Content-Type: multipart/alternative; boundary="00000000000006399e05f2917b83"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/9W8lJURBQXZADuz_Gz0WnvSrGk4>
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: Wed, 18 Jan 2023 22:38:56 -0000

On Wed, Jan 18, 2023 at 6:02 PM Carsten Bormann <cabo@tzi.org> wrote:

> This is what key 4 (base 10) and key 5 (base 2) already do.
> Putting in a tag 1002 duration into the uncertainty/guarantee values gives
> us access to these formulations.
>

Yes, I agree it's better not to reinvent another definition of "Duration"
for the Uncertainty and Guarantee attributes.

My only remaining concern at this point is whether there should be a clause
that says decoders may discard nested clock quality attributes within the
Uncertainty and Guarantee attributes. My decoder will discard them
regardless of what the RFC says, but I guess that doesn't matter to anyone
much while it remains closed-source.

What about the ability to encode a local time having an unspecified time
zone? The C++ std::chrono::local_time duration is computed from the date
time of day the same way as std::chrono::sys_time (POSIX), except that the
time zone is unspecified instead of UTC. All that would be needed is a
"Local" time scale to be added to the time scale registry. I already
understand that you want to launch the time tag RFC with only the UTC and
TAI time scales for now.