Re: [Ntp] Suggested improvements to the Roughtime draft (draft-ietf-ntp-roughtime-00)

Marcus Dansarie <marcus@dansarie.se> Sat, 15 February 2020 02:56 UTC

Return-Path: <marcus.dansarie.nilsson@gmail.com>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 334A9120026 for <ntp@ietfa.amsl.com>; Fri, 14 Feb 2020 18:56:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level:
X-Spam-Status: No, score=-1.4 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 84Zpg564UQyE for <ntp@ietfa.amsl.com>; Fri, 14 Feb 2020 18:56:21 -0800 (PST)
Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 34A7112001A for <ntp@ietf.org>; Fri, 14 Feb 2020 18:56:21 -0800 (PST)
Received: by mail-lf1-x136.google.com with SMTP id t23so8069707lfk.6 for <ntp@ietf.org>; Fri, 14 Feb 2020 18:56:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to; bh=vpUnC52Lbqyj2tD2wriZTlgGlS6zhuT1yP/XdYKdt4U=; b=A3HAaU5ZVVXNwCSxMVKJB87aoT0yQrRdVIyzMqmas9tS+4BlWODAikUpf+mUZeuts7 zgmoi7ocMROrwj9soiZZFQOHGs5Yx5D80e3T2O5M+/GMO8hS9777Fy7jnM6KQkexNoNi sZ8HwDjezEB4vrpNaY5u50VbWJLO7b8hEMI5Wcj4iAGFjeEXjzyJtnllbMGFxmszylA6 XQU5F1dK/lFjnDnZpTOxjq445eGF0LttCXB76F1ViDa0qgL5Z8f5FFXroqbr+8peAyMy x//iOzKHPg1tII+B55RKaeXFKcegqU3Vz2ChDVh/TJkmYwDghYGGRFKlt6YD6MZD+Pik s7Ow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to; bh=vpUnC52Lbqyj2tD2wriZTlgGlS6zhuT1yP/XdYKdt4U=; b=I0Zi33ksn8+gef0TGZUe4kvQSoVr9X2Tl5MjIcKx96/t4SRkvwzsV8XkQTHcnX7sFp 4fiAStYotF8fj2LyVwkwOv9ieYX3W08UdpvbWRBmFO4KnnBFR9+DWqsIdrsi/j9GoIdx KcPDehTSPCCY2FzwocSfoDWwGGQJBZP2vBWcM7fjZpmM9P5wTqXygKU3OBXXzzkO58dc 73Ctq2G9NQ1HrxhrkxnUSsgEsdAwKgpltwCRRqG3SCBZKnyrkIgFZsMD8nfGFGjOdal1 0FbJK0tb5/uxiM4SoGZSx+PRfH8HzxrnErXjC58WAoxUE9I3fptrjeq9jjfyzpgbF+2a oH3A==
X-Gm-Message-State: APjAAAWpl7H6QDa4WPImEyR3/wy+1c2F5M2KjG1YCsR+QObD/Rd2Mbyp 0LnuDVSE0rcjTE09DKPAeXgZiaDOD23dlw==
X-Google-Smtp-Source: APXvYqwIl2U7ojw2BH1UfSetA6ECnRH5DaLunBGQOoQ+sgiwjUUTGqOEwZqYYqcVRq40UHWQ/WLo8A==
X-Received: by 2002:ac2:43af:: with SMTP id t15mr3144678lfl.154.1581735379032; Fri, 14 Feb 2020 18:56:19 -0800 (PST)
Received: from ?IPv6:2001:440:1878:fdb:658f:453c:314f:b2d0? ([2001:440:1878:fdb:658f:453c:314f:b2d0]) by smtp.gmail.com with ESMTPSA id t7sm4251388ljo.7.2020.02.14.18.56.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Feb 2020 18:56:18 -0800 (PST)
Sender: Marcus Dansarie <marcus.dansarie.nilsson@gmail.com>
To: Watson Ladd <watson@cloudflare.com>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <a4d11bbf-c8eb-d478-0143-f566c10faa88@dansarie.se> <CAN2QdAE45doMZsqU8HSwAusZSuW0Vds99CcBCkawx0U9QJayhQ@mail.gmail.com>
From: Marcus Dansarie <marcus@dansarie.se>
Autocrypt: addr=marcus@dansarie.se; prefer-encrypt=mutual; keydata= mQINBFawEn4BEAC8YukDy8f3eczlE8WAcuctrjsNltPCLZDzcj3vBmiayXlXuPULOopqeuw4 +oaZqj4KqvdFBA1mzvwPll7IHePuwAoJYJr48IbIXc9MRjtLoFtd0KnhiVPUS8F2cmfzSJ8E FEv92sz6UT8/tlLEu6sNqr6/caYUivspuW5wf4f6nkSE+6rao9Nx9X03r289IPNBSZv+Y/Ym jWHDPpbT8WLUJZ+A8RsW/1oza609oAzqTkclmnRzip8wZZWNg3Q55P7onBmTIOrEz13My9r5 DWCMHyxXgFL1RJ9YW0t4yRkRm+HvOn3Vesk3m8CCGA6esHV0IPZmBOxJr3l+UQYuDiTgFufr WMpu5MvlyKGHS4fNd505DyyJY2G6eQLLrOq3nZy4qoZSL42TMxzYglexg+H6P/YsIIShk5Ch h/hNphXjrElDWhbGT5JiRWIivgSj/gq5QVBbDLR3b25n9PA0byGemfcEHL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KMBC+zYsoe0nksCas+XzUihERW2a6 vjCkzb6jVs5+QwapnskrKNw9CG7QTEcPsNXH7w798Q0/hFkAy6c1goH+YBMEmy/TtlXq0lMv TNzvB70Gjot9vc6FdQEeQW4BeEJ4E0Ii/aKV8PITTe45mO0YFyQooW7go1cIkY9Ue7/3ggr6 FXGDjFqNeZaf0S6XficHXHsmKYnObOsuFUfVpBZbhtiahR99VHMbiV+UjdUY3X5+Td5p/VIA sFbHFW7M157wHDJQDKad1NrvWjq5if/cpiKC1VYGLP595jlZUu99JmtwqlEEru6gh0Z94Iv3 8kAcSCf4M9jwwoTXKcHYXHezaFgl8q4op2C0dLWoJihgjXLYHYiQPNiRtkHPOPocDJtu3T1U foURyeSY4YcBgderqZHZgygBpdU0Arc9C5wWy1t9WofUIg==
Message-ID: <ef5ecf18-d81a-b6ae-c768-9c146842c9cb@dansarie.se>
Date: Sat, 15 Feb 2020 03:56:01 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1
MIME-Version: 1.0
In-Reply-To: <CAN2QdAE45doMZsqU8HSwAusZSuW0Vds99CcBCkawx0U9QJayhQ@mail.gmail.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="TuN7OqZuupj7ejfU6WtQAHgsTR6Ve4R0A"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/MS0KuufhaDRVkpl5Cu9kRq0zRMA>
Subject: Re: [Ntp] Suggested improvements to the Roughtime draft (draft-ietf-ntp-roughtime-00)
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 15 Feb 2020 02:56:23 -0000


On 2020-02-15 02:12, Watson Ladd wrote:

> Thank you very much for doing this! I consider most of your suggestions
> excellent ideas, but perhaps others have additional input they wish to give.

Thank you!

> Some fields especially DUT1 and DUTC might not be available over NTP,
> PTP, or NEMA. That makes it a bit tricky to get out of a GNSS unit, even
> if it available from the satellite. Since these are optional fields I'm
> not that concerned, but it would be a shame if no one could use it. I
> would make NONC echoing a MUST: it's trivial for servers to do, has no
> downsides I can see.

I view the fact that DUTC and DUT1 are tricky to get hold of as a major
argument for including them. I only expect a few servers to actually end
up including them in responses, but even that would greatly increase the
availability of the information. For DUTC, an updated leap second file
should be sufficient, but DUT1 may be hard to get right without manual
handling.

> We may have to refine the notion of malfeasance to cover additional data
> such as leap seconds, but that does seem a bit tricky as not all leap
> second dissemination mechanisms function the same way or have the same
> view ahead.

Agree. The absence of a future leap second from the list should probably
not be considered malfeasance. The question is what the absence of the
most recent past one should be considered, especially if the server
otherwise provides acceptable time. (And what if a server has a RADI of,
say, 10 seconds and misses multiple leap seconds?)

> I'm not sure I entirely understand the proposal: it seems that the idea
> is to use the 5 fraction of day bytes to represent 2^-40 of the current
> day, where the length of the current day in seconds is determined by the
> LEAP field applicable to the day in question. My first concern is with
> the intervals: if specified as additions to this timescale they change
> length with respect to the SI second depending on what day it is. If we
> don't then interval arithmetic becomes a bit tricky, as part of the
> interval is converted with one number, and part with another number.
> Comparing packets where there is disagreement over whether or not a
> leapsecond happened now seems a bit tricky.

Peter's original suggestion, which was forwarded to the list by me,
should be somewhere in the archive. But yes, that is the general idea. I
am not entirely convinced myself, and would be perfectly happy to
continue with the current timestamp format. My main concern with Peter's
suggestion is that it adds lots of complication to gain a small amount
of precision (in a protocol called ROUGHtime).

> At a more practical level there is a problem with leap second
> indications arriving later in the day. Not all leap dissemination
> mechanisms work ahead of time: some only work the same day such as NTP.
> A server that learns that there that there is a positive leapsecond in
> the middle of the day will adjust the number of seconds it thinks are in
> the day, so the timestamps here cannot be directly compared without
> knowing the leap state the server is applying, and they have to be
> converted to some other scale to compare numerically. That makes me
> hesitate to endorse this idea but perhaps when I see formulas I'll be
> happier with it.

Yes, I agree that what you describe is a real risk and a very valid
argument against using a fraction-of-day timestamp format.

Kind regards,
Marcus