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

Vadim Goncharov <vadimnuclight@gmail.com> Tue, 17 January 2023 19:04 UTC

Return-Path: <vadimnuclight@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 BCBE5C15171D for <cbor@ietfa.amsl.com>; Tue, 17 Jan 2023 11:04:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, RCVD_IN_DNSWL_NONE=-0.0001, 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 9GaVMBgNCh9V for <cbor@ietfa.amsl.com>; Tue, 17 Jan 2023 11:04:48 -0800 (PST)
Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (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 78FD4C151547 for <cbor@ietf.org>; Tue, 17 Jan 2023 11:04:48 -0800 (PST)
Received: by mail-ed1-x52f.google.com with SMTP id x36so11799807ede.13 for <cbor@ietf.org>; Tue, 17 Jan 2023 11:04:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=TgUJfmqWDgsd2KelqGdWhpzk3JQ00l14bV2IXOgCghI=; b=Gtf9s2Ixy8hvZWsitMuaVPV0Doi10u9OWQoALnUSPA0VNzol4dyji6MBQHVP+wW0hb rhZjSJF7MbzVxuw5wNtjUBTL/xB+MtNruva3rgW7u8sh0QsfeHX3e/+ymA4Kh6PnSpQi yOH45ayt2eSzEjT9QCiqYR60ykwQihYA5iKOqaQ/09gaOqjAiTbdP1AALqt2utwpchXD bYQzSGPKmMKAWSfmdw/Hjma0b+FWdySUHfxHoxMld5QRtmb8wa8RbFU55/xnB2ov5uVj bGBz2kPheqgslFB8DfiumCUC9gzZqmaXF3EjE3GdwSVYh/HS0SEfKX8ORH+u/nYJeG96 l5lg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TgUJfmqWDgsd2KelqGdWhpzk3JQ00l14bV2IXOgCghI=; b=KeSaCzZOsYfi7nfae9IWCI0ZU5Wu+2fYCTLaXILefqzyiKQJeDJ44EY4GupINgfxUF wjwQkKKwjYQ0sjmncasj47t5prJnhtVypoPfU0uGp6ypQUa1FTtMwlvDad9Ip3jF4vgc 3BJ8ogtef5k8b7AV9I1IgXw3o1W56BEg5ZEA1WKb47malAQYWSqy+D8G/KWRSKADlRb3 YU6MUBxxVxEsF5pqrnyI9+VE0VBWl99UE2/iJrg4P8RXPsbM0GCj9ENR5Z/wFV8+eaNv LMfCUH5Cx+R1siXEoaT4sLe8TMc3e5HkdRu1N/s/WzFIpZ+xIiIFhQ3IysThzSzblAR8 aDMA==
X-Gm-Message-State: AFqh2koW2vMlCaskzTGVgqdF8ysIlVRE9Nb/GpS45xZQO174yk50tyz8 cb5sxsI6pIlsFUcwuFITVnwy8cPDJsJBsw==
X-Google-Smtp-Source: AMrXdXv5i1lYc25M1ZonDDzJ9MJd7gfehjqv4hk3LGUBpJm7qPI8+Iq6hmWf4ncEAFR6zH51DIrYjA==
X-Received: by 2002:a50:9fe7:0:b0:49e:ef4:51c3 with SMTP id c94-20020a509fe7000000b0049e0ef451c3mr3683083edf.16.1673982286569; Tue, 17 Jan 2023 11:04:46 -0800 (PST)
Received: from nuclight (broadband-77-37-180-193.ip.moscow.rt.ru. [77.37.180.193]) by smtp.gmail.com with ESMTPSA id t20-20020a056402021400b0049e210884dasm2300866edv.15.2023.01.17.11.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 11:04:46 -0800 (PST)
Date: Tue, 17 Jan 2023 22:04:43 +0300
From: Vadim Goncharov <vadimnuclight@gmail.com>
To: Emile Cormier <emile.cormier.jr@gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org
Message-ID: <20230117220443.6c5054e7@nuclight>
In-Reply-To: <CAM70yxAeLGmiPyidn1zc64rjRcKNHp7hSUt+d6veH-AqguObkw@mail.gmail.com>
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>
X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd12.3)
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/gjNh_26fx8ETUioCHLB6p0-LIf0>
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 19:04:52 -0000

On Tue, 17 Jan 2023 14:02:46 -0400
Emile Cormier <emile.cormier.jr@gmail.com> wrote:

> On Tue, Jan 17, 2023 at 1:46 PM Vadim Goncharov
> <vadimnuclight@gmail.com> wrote:
> 
> > I don't understand what do you mean by "nesting" and where recursion
> > is possible at all. Do you mean 1001 tag can contain another 1001
> > tagged map inside itself? I don't see such evidence in draft.
> > If your parser already slurps all map at once, then it can emit
> > proper event (right column of your table) after parsing.
> >  
> 
> The way it currently stands in the draft, a 1001 tag can contain
> another 1002 tag via a either a clock quality Uncertainty or
> Guarantee attribute. See sections 3.5.4 and 3.5.5.

Ah, OK, now I've re-read this more carefully. I agree that recursion
(at least for compound types) must be prohibited.

> > 3.5.4. Uncertainty (Key -7)
> >
> > Key -7 (Uncertainty) can be used to represent a known measurement  
> uncertainty for the clock, as a numeric value in seconds *or as a
> duration* (Section 4).

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.

> There is nothing in the draft that says a 1002 tag nested within a
> clock quality attribute cannot itself contain clock quality
> attributes. I don't think there's a reasonable real world case for
> clock quality attribute durations to have nested clock qualities, so
> I'm willing to discard those nested clock quality attributes in my
> decoder even if it doesn't strictly follow the spec.
> 
> My proposed alternate set of tags (1001 thru 1007) sidesteps the
> recursion situation altogether, at the cost of an extra byte for
> clock quality information. It also takes up more slots in the tag
> registry.

Well, I suppose 3 tags should be enough (instead of 2), at maximum, but
seven seems too much - conceptually, a point in time is still one
value, and separate e.g. clock quality would be of no much use alone.

-- 
WBR, @nuclight