[Ntp] Antw: [EXT] Re: Timescales, leapseconds and smearing

Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> Wed, 09 December 2020 07:41 UTC

Return-Path: <Ulrich.Windl@rz.uni-regensburg.de>
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 A31413A0A0B for <ntp@ietfa.amsl.com>; Tue, 8 Dec 2020 23:41:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable 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 5yb63kpVFL6n for <ntp@ietfa.amsl.com>; Tue, 8 Dec 2020 23:41:04 -0800 (PST)
Received: from mx3.uni-regensburg.de (mx3.uni-regensburg.de [194.94.157.148]) (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 09BDA3A0D42 for <ntp@ietf.org>; Tue, 8 Dec 2020 23:41:03 -0800 (PST)
Received: from mx3.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 71FD56000050 for <ntp@ietf.org>; Wed, 9 Dec 2020 08:41:01 +0100 (CET)
Received: from gwsmtp.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by mx3.uni-regensburg.de (Postfix) with ESMTP id BE385600004A for <ntp@ietf.org>; Wed, 9 Dec 2020 08:40:59 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp.uni-regensburg.de with Novell_GroupWise; Wed, 09 Dec 2020 08:40:59 +0100
Message-Id: <5FD07F8A020000A10003D69A@gwsmtp.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.3.0
Date: Wed, 09 Dec 2020 08:40:58 +0100
From: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
To: martin.burnicki=40meinberg.de@dmarc.ietf.org, "ntp@ietf.org" <ntp@ietf.org>, kurt@roeckx.be
References: <X86sVykHUqlkXP96@roeckx.be> <f809b97a-91e1-751d-889d-cf832625f052@meinberg.de>
In-Reply-To: <f809b97a-91e1-751d-889d-cf832625f052@meinberg.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/uj2lIpNlxzN-KSuVuWI_Q4nhV34>
Subject: [Ntp] Antw: [EXT] Re: Timescales, leapseconds and smearing
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: Wed, 09 Dec 2020 07:41:07 -0000

>>> Martin Burnicki <martin.burnicki=40meinberg.de@dmarc.ietf.org> schrieb am
08.12.2020 um 18:29 in Nachricht
<f809b97a-91e1-751d-889d-cf832625f052@meinberg.de>:

(I agree with Martin's points)

...
> At the other side of the transport are the operating systems. Most Unix
> systems just step the time back by 1 second to insert a leap second.

And the POSIX calls, while allowing "second 60" actually fail to return such as the kernel API cannot (AFAIK) provide the information necessary. In a perfect word "second 60" would be returned even when no NTP client is running on that machine.

...

> See my comments above. What should an NTP server do if a trusted source
> provides invalid information?

Before that, define how to detect that a trusted source is providing invalid information ;-)

...
> That would be similar to the times used in emails, where the main
> timestamp is some local time, but an offset allows to determine the
> associated UTC time.

But most notably those email time stamps lack information about the local clock error ;-)

...
> ntpd from ntp.org currently provides the current smear offset in a
> special interpretation of the refid field, if smearing is in progress.

Another "quick fix"...

Regards,
Ulrich