[Ntp] Comments on Miroslav's NTP v5 proposal.

Watson Ladd <watsonbladd@gmail.com> Mon, 16 November 2020 07:35 UTC

Return-Path: <watsonbladd@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 D5E303A14DB for <ntp@ietfa.amsl.com>; Sun, 15 Nov 2020 23:35:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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, 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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pAGt9_TVS2Wu for <ntp@ietfa.amsl.com>; Sun, 15 Nov 2020 23:35:16 -0800 (PST)
Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) (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 7F7663A14D3 for <ntp@ietf.org>; Sun, 15 Nov 2020 23:35:16 -0800 (PST)
Received: by mail-lj1-x22b.google.com with SMTP id i17so17898011ljd.3 for <ntp@ietf.org>; Sun, 15 Nov 2020 23:35:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8+nDfdzXsGYd+H9QMJ+koKG8ebsMwWNx7GsBkLW4bjI=; b=kh8pm0vjO1idPdr2MJCquAP7R84PzHdwTeG4S5w/Fr1dlkiqTY+Q7Qv3Vdh+wD1Y9Y ZBBKkSkgdcKE/MkCXDitsH1cYC5M4+qBFEJGuWuV3bdx5ADZphCAygGoU3vFMNkfGBmt b9CsvR8/YOjbWDEWIIkGu0Ktcq6fbxAb6CxXOJjwcbkutmRo0Z6VGSuMg2uuw0uyo0KL HCvtDrNw65f6YfP0Kqio1D0TP91VsLcAhPUe+W/gLd8lc+w78yLq4AI6aFmN/j0Id54e bEg1NagU4tuhXHXd4TuQXjtRHRVoSpAOT3rUsfvXPk9lzLU1NdIJ80tPEaUOZYIGlT9z b+ww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8+nDfdzXsGYd+H9QMJ+koKG8ebsMwWNx7GsBkLW4bjI=; b=MX1xwHHYlmotfyG4isLdWIl2SbqJfJNugm3FklgIa0YOAbCuQwqURsGTTT6CtVWazY eN0m+ILULfli4ccN3A+IqkeV5kz5TP6LXZyoSnNiErRXJSn3Z6SLP0/0tKf23a5Fru2l VyxGilZCx/owvWsV0Pw5rRCW4oHux+R3d8/tqvp0Bl582SDZjTWTLeRsUChD7u6iU1wa 2Gr/6pdoIrsGh1UfPidnqsdTvKSgOb3bCdzrXadn7vnP4jLwfddCp1Z+AX2rCFeY1JY/ NjgIc/sv8I1vp/jTzqkQ72hvS6ah9iEE6e/f+cbPd8FrR+I5xHx/J/VIu6c+IuLBcjUS EgUg==
X-Gm-Message-State: AOAM530vpCFNY3oI6umwWyjodbRlLNECU70xZlzIdOLfKpentrhRE/Ji xzcT4rF+r/CBo+dGGrn13uUslWYQ+AwW2hCywpxHACG9caF1cQ==
X-Google-Smtp-Source: ABdhPJw4xI30xz1GS9jig6iifgckZmb81gNzBstJfihdJFXswiAF8nLoU0zjGJAAALFowjPwgKf2q1f/D3Wr4aaQKok=
X-Received: by 2002:a2e:8053:: with SMTP id p19mr5349643ljg.321.1605512114090; Sun, 15 Nov 2020 23:35:14 -0800 (PST)
MIME-Version: 1.0
From: Watson Ladd <watsonbladd@gmail.com>
Date: Sun, 15 Nov 2020 23:35:02 -0800
Message-ID: <CACsn0cn8ULX5f_PQVbDsrirPnGHVPWGgMqXn52n_T4P5ELkKgQ@mail.gmail.com>
To: NTP WG <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/uv89fg1TdaxSB7z1U8570a8tWFg>
Subject: [Ntp] Comments on Miroslav's NTP v5 proposal.
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: Mon, 16 Nov 2020 07:35:18 -0000

Dear all,

The following are unsorted, rough comments. I agree sending them
outright before the meeting is probably suboptimal, but I need
something to do to keep me awake to the meeting. Obviously this is an
early draft, and I hope my suggestions are read as contributions not
criticisms.

The data types need some evocative names. Maybe shim for the 16 bit
one? Not sure what works for the 32 bit one?

The distribution of multiple scales needs some careful thought,
especially leap smearing. Insofar as we need monotonic clocks, I'm
contemplating MJD as a basis for solving the problems leap smearing
were supposed to solve, but we might be stuck with leap smearing due
to the install base.

When smearing it seems the offset will get added to the timestamps set
by the server on the receiving end to reconstruct UTC, which will then
be used to update estimate of true time, and apply whatever smear was
needed. There's no way to avoid this because of the kinds of smear in
use and the need for recipients to understand the smearing of the
source when propagating downward.

I'm not sure UT1 deserves a timescale. It's a comparatively slow
moving offset from UTC, updated every month. Would an extension to
propagate this difference work instead?

If Root Delay and Root Dispersion are propagated something needs to be
said about their proper updating. These values are used in source
selection, and so some degree of agreement across implementations is
desirable.

The monotonic additional timestamps are an intriguing idea but I'd
like to know more about it. In particular the frequency to be
distributed seems pretty awkward. Maybe I'm imagining the application
entirely incorrectly.

I think we need to see the companion document with algorithms
suggested to evaluate some of the potential ideas. What we've seen
from experience is deviation from RFC 5905 can produce better
timekeeping in certain circumstances and doesn't threaten stability.
What we've also discovered is that some changes in common deployment
have led to undesirable impulse response characteristics.

When we introduce something like this auxiliary monotonic timestamp
for a separate frequency distribution that could introduce all sorts
of fun complications and options into the stability calculation. Now
we have two different chains of oscillators, and different algorithms
putting the results together. I have a lot to learn about modeling and
estimating stability here.

Bloom filters of addresses to prevent loops have a problem: if the
synchronization tree traverses two RFC 1918 hosts in different
networks, the Bloom fIlter will have a false positive.

Sincerely,
Watson Ladd

--
Astra mortemque praestare gradatim