Re: [Ntp] [EXT] Re: NTPv5 draft suggestion to move timescale offset into extension fields.

David Venhoek <david@venhoek.nl> Mon, 16 January 2023 15:46 UTC

Return-Path: <david@venhoek.nl>
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 D74A5C1522DD for <ntp@ietfa.amsl.com>; Mon, 16 Jan 2023 07:46:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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=venhoek-nl.20210112.gappssmtp.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 I3jC5ux6PDkJ for <ntp@ietfa.amsl.com>; Mon, 16 Jan 2023 07:46:18 -0800 (PST)
Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (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 59F26C1522D9 for <ntp@ietf.org>; Mon, 16 Jan 2023 07:46:17 -0800 (PST)
Received: by mail-pg1-x535.google.com with SMTP id 36so19916190pgp.10 for <ntp@ietf.org>; Mon, 16 Jan 2023 07:46:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=venhoek-nl.20210112.gappssmtp.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=uhBfGeP1eJzTJeN91M1+ENX1676BbdfJ4gUIrrfRMro=; b=KNk2FnHlRq3a38xpjYc5ogRc96A1mhM2fRrQopN9/2yoUj3Qx8TIvmgRAvplphjQr9 SNlVQniZM0wxt/VpxR1OWwAi4osAzoBCA7nlcUAIAQYONbe3RcZKrezWhgJp4ZW6PG2m HWz9zHU26xuuB0FZ+LVLBELSCLbrTrVQqMF5Uu/htX+9wp/8GT5clfnreIsDCs1TtKcy SudNdIt8R6Ot9/L4BxBj6oSvFIBN3RpatN2652hh4eg9XsJStkBWxwNHeDoRz/2B1nXQ uEHB9PQ21GNLtoIBXg5AklZaJR4QpntTe8ZMDoX/glH0yslcPYykYm6e4ryavEGGSjNi VBSw==
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=uhBfGeP1eJzTJeN91M1+ENX1676BbdfJ4gUIrrfRMro=; b=B6Kn03ZsUFK+IIdaAZcLxXd6cbc7pZ0etBQ7M6Uh0PDt8dLG+dBorIMOlhVxJFXlwX OdKxTM53eiDIzleVLlMO7KNd78b+tNYjmfwvJlzVL9U3WFe1PmkbgdXh166+b8Ji4fNG XVE358asUxFBRO0kIoThaMiwhoFfQPaEiiQPr02wA99xlcpsHELpueRWbfZQvX7XctcP khv8D8zpyHEEKCuF+UhgXhpS/cgy73sxLB8MXTTJP4VDiZihduVEfi9qipC+GfSrBqUL Q1H5juatWmtj6s7kUlkYt6xA29FzuOYUr7eUrefZFbkSiJPfQnvv3YJK17I+515ZNPe3 jyQA==
X-Gm-Message-State: AFqh2kp98eCwoSuDT/qjI76C8ua1uiM3oTjNh0ZoaTvvHNm3g6WKx+w4 iZCDEFvwK8M+8r88F9qwNmJrZ0r5Cjs5ALYD2uPStQ==
X-Google-Smtp-Source: AMrXdXuLCABSv1xI7/0/GPvMSt8R2Dt8PiDy4WBvti+dSqOrN7O8dWw9uU8qRScd6pxkGYs+AvoH+Zxc+gOlfJPK0gk=
X-Received: by 2002:aa7:978d:0:b0:589:8362:c7ce with SMTP id o13-20020aa7978d000000b005898362c7cemr3364pfp.21.1673883976779; Mon, 16 Jan 2023 07:46:16 -0800 (PST)
MIME-Version: 1.0
References: <CAPz_-SU7rctchBVvm59YAoEA7p8Or9aqdGovJ2E98Tp85jVsWQ@mail.gmail.com> <Y2jCtzeJZfz2daYJ@localhost> <CAPz_-SVkFZaycpimBGy-pZRgwxo9pdnrmh7QDd-=+qvXfdFKRw@mail.gmail.com> <63691D61020000A10004F69D@gwsmtp.uni-regensburg.de> <CAPz_-SWE0UxBoRe6Orr0-t7Mq7z5O-QnyGk+zBNDjDcTd5TxpQ@mail.gmail.com> <Y8UfskkHan7Te8dA@localhost>
In-Reply-To: <Y8UfskkHan7Te8dA@localhost>
From: David Venhoek <david@venhoek.nl>
Date: Mon, 16 Jan 2023 16:46:22 +0100
Message-ID: <CAPz_-SUvMH4DuQzjhFiAGm34v3UE89tb4UqJ=tB63taAK_jLCw@mail.gmail.com>
To: Miroslav Lichvar <mlichvar@redhat.com>
Cc: "ntp@ietf.org" <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/KnOA1h5-RlXWiYVC55IhzfTpiZE>
Subject: Re: [Ntp] [EXT] Re: NTPv5 draft suggestion to move timescale offset into extension fields.
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Network Time Protocol <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: Mon, 16 Jan 2023 15:46:22 -0000

The first example that comes to my mind is system local timescales. If
you start one today, with the current scheme you would be forced to
start it in era 1 or you can never properly communicate its relation
to utc, because the offset is more than 2^31 seconds. Looking long
term, this becomes an issue if you want to start transmitting the
system local timescale before knowing what the current time in utc is,
because you might not be able to know the correct era before knowing
the current utc time, and if they use slightly different definitions
of seconds, the era number needed might even dynamically change if you
start the system local timescale around the middle of the utc era.

Another example is when one is running a physics experiment where
using a different timescale is used to blind the measurement data
during analysis (to avoid bias from knowing the answer you expect). If
you don't choose the starting point for that timescale correctly
(within ~70 years of 1900) you may no longer be able to combine the
timescale with utc in a single ntp exchange (which you may want to do
in the boxes where you monitor how your experiment timescale
correlates to tai).

On Mon, Jan 16, 2023 at 10:58 AM Miroslav Lichvar <mlichvar@redhat.com> wrote:
>
> On Fri, Jan 13, 2023 at 03:19:30PM +0100, David Venhoek wrote:
> >  I think it would be best to also include an
> > explicit era number in that extension field. This would give us
> > maximum flexibility in the future with regards to the zero point of
> > new timescales, instead of having that be forced to within a window of
> > about 70 years (wraparound is every ~140 years, so if two zero points
> > are more than ~70 years apart the "closest" era heuristic no longer
> > works).
>
> I'm still not convinced we need to support different timescales using
> different era numbers.
>
> Can you please provide some examples?
>
> --
> Miroslav Lichvar
>