Re: [Ntp] Smearing
Tony Finch <dot@dotat.at> Tue, 19 October 2021 15:48 UTC
Return-Path: <fanf2@hermes.cam.ac.uk>
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 EB22D3A081F for <ntp@ietfa.amsl.com>; Tue, 19 Oct 2021 08:48:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 sF9KhDiVCtPM for <ntp@ietfa.amsl.com>; Tue, 19 Oct 2021 08:48:00 -0700 (PDT)
Received: from ppsw-31.csi.cam.ac.uk (ppsw-31.csi.cam.ac.uk [131.111.8.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CD8183A081C for <ntp@ietf.org>; Tue, 19 Oct 2021 08:47:59 -0700 (PDT)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: https://help.uis.cam.ac.uk/email-scanner-virus
Received: from [87.74.217.245] (port=58593 helo=milebook.lan) by ppsw-31.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:25) with esmtpsa (PLAIN:fanf2) (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1mcrLJ-000CsB-KT (Exim 4.95) (return-path <fanf2@hermes.cam.ac.uk>); Tue, 19 Oct 2021 16:47:57 +0100
Date: Tue, 19 Oct 2021 16:47:56 +0100
From: Tony Finch <dot@dotat.at>
To: Hal Murray <halmurray+ietf@sonic.net>
cc: NTP WG <ntp@ietf.org>
In-Reply-To: <20211015210250.6330328C0F3@107-137-68-211.lightspeed.sntcca.sbcglobal.net>
Message-ID: <2ee63d83-cde0-4665-52e1-5fa0d18325e@dotat.at>
References: <20211015210250.6330328C0F3@107-137-68-211.lightspeed.sntcca.sbcglobal.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Sender: Tony Finch <fanf2@hermes.cam.ac.uk>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/VgtA07mVb8loEKgahrE2OUNs53o>
Subject: Re: [Ntp] Smearing
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 19 Oct 2021 15:48:06 -0000
Hal Murray <halmurray+ietf@sonic.net> wrote: > > I think the protocol should use TAI and make available the leap info. > > That means an NTP client will need to know if it should smear. > > Plan A is to put that info in a flag in /etc/smear or such so that other > programs can also use it, perhaps to unsmear or perhaps just to print a > warning message when log files do/don't smear. > > Plan B would be to put that info into the kernel. There are spare slots in > struct timex and struct ntptimeval. Then a flag in ntp.conf could tell ntpd > to smear and it could pass that to the kernel. Both plans don't answer the question of how the client gets the correct configuration. Smearing is (typically) a feature of a data centre environment and each client implicitly gets a time that matches its neighbours by using the local NTP servers. When there's a mixture of NTP4 and NTP5 clients, how can you be sure that they get the same time? I think an NTP5 server should have some way to say, "if you were talking NTP4 to me I would give you a smeared time", so that an NTP5 client can match its neighbours. > -------- > > The next leap info is big enough that I don't want it in the basic > packet format. It doesn't need to be more than 4 bytes. According to TF.460 (the definition of UTC) leap seconds can only happen at the end of a month, so the leap indicator only needs to count months. Leap seconds will no longer work when the earth is turning slowly enough that we need one at the end of every month; we expect that to happen before the year 4200, at which point DTAI will be about 4 hours. https://www.ucolick.org/~sla/leapsecs/dutc.html If you allow 15 bits for the count of months since 1972, that lasts until after the year 4700. 14 bits for DTAI is over 4.5 hours; it might be wise to add a sign bit in case things get really weird. That leaves 2 bits spare which is just enough for the leap direction. (Though it would be handy to have another bit to indicate smearing.) Tony. -- f.anthony.n.finch <dot@dotat.at> https://dotat.at/ protect and enlarge the conditions of liberty and social justice
- [Ntp] Smearing Hal Murray
- Re: [Ntp] Smearing Tony Finch
- Re: [Ntp] Smearing Danny Mayer
- Re: [Ntp] Smearing Tony Finch
- Re: [Ntp] Smearing Danny Mayer
- Re: [Ntp] Smearing Tony Finch
- Re: [Ntp] Smearing Danny Mayer
- Re: [Ntp] Smearing Miroslav Lichvar
- Re: [Ntp] Smearing Tony Finch