Re: [Ntp] The bump, or why NTP v5 must specify impulse response

Watson Ladd <watsonbladd@gmail.com> Tue, 26 May 2020 15:45 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 C51023A0414 for <ntp@ietfa.amsl.com>; Tue, 26 May 2020 08:45:28 -0700 (PDT)
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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable 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 phA8LgIg5ePR for <ntp@ietfa.amsl.com>; Tue, 26 May 2020 08:45:27 -0700 (PDT)
Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) (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 63A603A0415 for <ntp@ietf.org>; Tue, 26 May 2020 08:45:27 -0700 (PDT)
Received: by mail-lj1-x241.google.com with SMTP id z18so25068666lji.12 for <ntp@ietf.org>; Tue, 26 May 2020 08:45:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4U73Lo2Z693NF3oVUl3l/w198yuMoFE9sXXUFUhPSRY=; b=YqAfsRZHO1bO1WJ921494qNzFmhLIPFcgBfkC3wU9ot6rmixyfZXuT4cem9XPA70hQ Ik5eyF1ZA3DWO1ffW390N8Vo9s/nVqPJvEZ3BRHHjlcV6JRh9c69kuiU/gTMYC0MrAA2 IJ1pn+IEh15U068w1r2nqc2G5kkbwatw3nKuVUh/H1SpDrBxL3w7YduY/Ls2W2XtxFzL iAEhOstIjTwBgFO8VBZlBgkupf+9bbeHNYkzCnRax8GTzvQfOI/5TWA3GnXWTrgIHJX2 S1mJ7KRAyIcNwUUPMMiqUO5E044O410AftMoiB7x6lqvQWpQmoeO5dUr9KfN48eqfP3j u6TA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4U73Lo2Z693NF3oVUl3l/w198yuMoFE9sXXUFUhPSRY=; b=noiA0muH6dk/PAXFMvLSHnFDZ8Uyufvex3jFjvqCnxPG66Yaa+0E2ttG/enn4nZEDl WV4w4bLwEb/KD8ES5Z8Tr8BgpyknYGZPZQv7uLvm7RTH7r0YyeU+gyFcHF72azYu/ojl Dmg9ec7ZX+ASdOpvWMrPGhobnTADphfVUYkvuuKiK3NKG7OMWnQx7psC22axmP60gaad Kj815qVPxvfab8nzlHq9U1rhEEm10h41M/fIJn78WAWQbDXy4U4NGnNAsa0gXMRCluzV TpwK+QIO2HigRgHfqODpIAp9q8yll4b18tibRBnfu1qzZkUo3/XZWV00eI2t4kEA5J+U LG9A==
X-Gm-Message-State: AOAM531buc0FpsgAKH6meqe3YsGTx3yTthQzCPszu0yC/UzGA5x2F+JG OeD3oItbr/E4cgLg9LJG6NvCiaxD/gLNFHLY348=
X-Google-Smtp-Source: ABdhPJxVID2XQxL2DCbhqZhKSHBlKmS39Pf9NAn1nU+ONmfxYbgvfz3FoKaiO7vLJeqI7j2maOpls8BALEBTmhjLvwY=
X-Received: by 2002:a2e:9245:: with SMTP id v5mr908845ljg.234.1590507924140; Tue, 26 May 2020 08:45:24 -0700 (PDT)
MIME-Version: 1.0
References: <CACsn0c=zzDKP6iBjPJWGF0rkqSaY3AY738ynGwDZO14sdBJ-Bg@mail.gmail.com> <CAJm83bB2A3VUxXX47Y0ubmS9Xne7PRSyV_xHY_D9YvHjqE-vFA@mail.gmail.com> <CACsn0cm3jpKZTUQ=novTgVaFhc1xCJgmUF3oOgdrzQa-HgOCUQ@mail.gmail.com> <CAJm83bAqbMMs2W3SyH+3c17wcC85paY4-_jk2SxczgsxBLyYyA@mail.gmail.com> <CAJm83bAQeR_6U3jgmbWzdus3pu+OO2_KP+M9RtbCFYOfDQy4dw@mail.gmail.com> <DB8PR02MB56111CCA23CDCF97A3C9F3E8CFDD0@DB8PR02MB5611.eurprd02.prod.outlook.com> <F7E5836A-4C7A-4A1A-B769-65EADE2C8F5C@gmail.com> <7d909ae3-a830-1270-6920-fa088a56525e@nwtime.org> <6C9832A9-E18B-4DE2-934F-9E471FC22F7B@akamai.com> <bc7920e2-dc81-ba7f-ec24-7926cda8589d@nwtime.org> <E591F38A-A303-4077-BC4C-A61AB7867F83@gmail.com> <9DED58A4-705A-49F6-954B-98C99C6AAA57@meinberg.de>
In-Reply-To: <9DED58A4-705A-49F6-954B-98C99C6AAA57@meinberg.de>
From: Watson Ladd <watsonbladd@gmail.com>
Date: Tue, 26 May 2020 11:45:12 -0400
Message-ID: <CACsn0cm_6BEPACH2Ewxo+Ym+4KC72HK+o5uuTNKG7vgpPM0AZQ@mail.gmail.com>
To: Heiko Gerstung <heiko.gerstung@meinberg.de>
Cc: Dieter Sibold <dsibold.ietf@gmail.com>, Harlan Stenn <stenn@nwtime.org>, NTP WG <ntp@ietf.org>, Doug Arnold <doug.arnold@meinberg-usa.com>, Daniel Franke <dfoxfranke@gmail.com>, "Salz, Rich" <rsalz=40akamai.com@dmarc.ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/TM3CG2-HnE75Y91HElvNIvKNIVU>
Subject: Re: [Ntp] The bump, or why NTP v5 must specify impulse response
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: Tue, 26 May 2020 15:45:29 -0000

On Tue, May 26, 2020 at 5:51 AM Heiko Gerstung
<heiko.gerstung@meinberg.de> wrote:
>
> I second that. There are a gazillion use cases out there and a multitude of time sync requirements. A client that needs to time stamp legal documents would want to adjust its own clock very quickly (i.e. maybe stepping it) to be as close as possible to "true" time. Other devices and applications require that steps are avoided at any cost, even it that means the clock is wrong by x and the client nows it. For those clients, there are a lot of different limits in regards to the accepted adjustment rate for the clock, depending on what the clock is actually used for. Most do not want to jump backwards at all, a few may be fine with that as long as it is documented somewhere etc. etc.

The challenge with a hierarchy is that the clients are also servers,
so we need to ensure stability is maintained down the chain. Even
without that rapid adjustment is counterproductive: In ntpd's
algorithm the clock adjustment rate serves to dampen the jitter as
well as adjust the clock to true time: increasing the loop gain can
lead to overresponding to jitter and worse tracking. I don't think the
slew rate limit is in practice the limiting factor as much as the
jitter on the network. With a more accurate clock there will be even
slower adjustments due to the Allen intercept moving further right. In
chrony these two are tracked separately, but the fundamental problem
of tuning remains.

That doesn't mean we can't modularize. It does mean that we may to
restrict particular parameter choices and advise implementors to
carefully test in multimachine configurations, akin to what one has to
do before unleashing a new congestion control upon the unsuspecting
TCP implementations of the world. Imagine if BBR v1 had gone live in a
new Windows version...

>
> Making it modular would be very useful. It would be great if the protocol could allow to advertise the selected algorithms, which could be standardized on their own (as suggested, a standard/default algorithm that may resemble what NTPv4 does would be required) or at least documented by whoever introduces it. Maybe a registry could be set up or companies would be able to use their IANA OUI's plus a self-assigned ID.

I'm not sure what the advertisement is for: what is the client or
server supposed to do with this knowledge?

Sincerely,
Watson Ladd