Re: [Ntp] Antw: Re: Antw: Re: Antw: [EXT] Re: New Version Notification for draft‑gruessing‑ntp‑ntpv5‑requirements‑03.txt

Martin Burnicki <martin.burnicki@meinberg.de> Fri, 22 October 2021 09:43 UTC

Return-Path: <martin.burnicki@meinberg.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 372133A0B18 for <ntp@ietfa.amsl.com>; Fri, 22 Oct 2021 02:43:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 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, NICE_REPLY_A=-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=meinberg.de
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 E7AdUsIfJMgz for <ntp@ietfa.amsl.com>; Fri, 22 Oct 2021 02:43:21 -0700 (PDT)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BDED23A0B0F for <ntp@ietf.org>; Fri, 22 Oct 2021 02:43:20 -0700 (PDT)
Received: from seppmail.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id A4D0C71C12C4; Fri, 22 Oct 2021 11:43:16 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meinberg.de; s=d2021; t=1634895796; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=v+gGJ42IBTLixKl1s6awiM5h1Tz6I2GOnY94V4hQmwo=; b=VsRcHM6Lep/19kjbnZKM1ulX2BajbV3tAz7WmkAt7OZfgUMNWRuGZceBmEXPqqwg7H0yZO kHCYvXwjHJD8VRAXarVSgM90Wsg8SVvIceRC3XGGJImU9j7sVZb6ymv0kL5fQVGuc1B3N+ CivlPWKs1Odi+acY3jz/sYCQGASPPdPz+V3RFMA0CLtDB9RXGJyX8SSsxTQyIGvJjx7Yb1 yWRdx4DGKH3JrJq944YWGAcLo372zk0d9php9zhOW/NH6G6pfcBzMz/QAYM37S4GK/aiQI 9So1BbrKsZdiWFfFOKAansyMSGFxMRzKIT5rxfTLDUYdl0qet/5nSIUIYbfeEw==
Received: from srv-kerioconnect.py.meinberg.de (srv-kerioconnect.py.meinberg.de [172.16.3.65]) (using TLSv1.3 with cipher AEAD-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by seppmail.py.meinberg.de (Postfix) with ESMTPS; Fri, 22 Oct 2021 11:43:16 +0200 (CEST)
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)); Fri, 22 Oct 2021 11:43:15 +0200
Message-ID: <016f3516-8eaf-c4bd-a3cc-8c2cb393eb8f@meinberg.de>
Date: Fri, 22 Oct 2021 11:43:14 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0
Content-Language: en-US
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>, martin.burnicki=40meinberg.de@dmarc.ietf.org, mlichvar@redhat.com, halmurray+ietf@sonic.net
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <D19C98F0020000AAAB822621@gwsmtp.uni-regensburg.de> <B6193D9D02000051AB59E961@gwsmtp.uni-regensburg.de> <84735FB40200007C44DF974D@gwsmtp.uni-regensburg.de> <236983740200003E824A10E1@gwsmtp.uni-regensburg.de> <CEFD0B92020000436A6A8CFC@gwsmtp.uni-regensburg.de> <616E7B69020000A10004491E@gwsmtp.uni-regensburg.de> <DB577C29020000EF6A6A8CFC@gwsmtp.uni-regensburg.de> <616E933D020000A100044957@gwsmtp.uni-regensburg.de> <72083C72020000E06A6A8CFC@gwsmtp.uni-regensburg.de> <D11527C602000032FDA5B133@gwsmtp.uni-regensburg.de> <9E2EA18B020000B86A6A8CFC@gwsmtp.uni-regensburg.de> <6EFADD85020000BDFDA5B133@gwsmtp.uni-regensburg.de> <61714B21020000A100044B83@gwsmtp.uni-regensburg.de> <393ee78b-e2d6-e6bf-76a4-f5375724503f@meinberg.de> <61726C92020000A100044BD9@gwsmtp.uni-regensburg.de>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Organization: Meinberg Funkuhren GmbH & Co. KG, Bad Pyrmont, Germany
In-Reply-To: <61726C92020000A100044BD9@gwsmtp.uni-regensburg.de>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="------------C4CQ32w7eihh7sVUJSUZbnHV"
X-SM-outgoing: yes
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/1r9UjIiS2WJBeY2OfUbrIATss0M>
Subject: Re: [Ntp] Antw: Re: Antw: Re: Antw: [EXT] Re: New Version Notification for draft‑gruessing‑ntp‑ntpv5‑requirements‑03.txt
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: Fri, 22 Oct 2021 09:43:27 -0000

Ulrich Windl wrote:
> Martin Burnicki <martin.burnicki=40meinberg.de@dmarc.ietf.org> schrieb:
>> Ulrich Windl wrote:
[...]
>> If I remember correctly, the stratum number plays not a big role in the
>> selection algorithm of ntpd. It's more important that different time
>> sources agree on the "same" time.
> 
> True. Maybe the "rest of the smear correction" (correction that still has to be done) should be added to the dispersion instead.

In fact, a smearing server running ntpd (at least from ntp.org) will 
change its refid during the smear interval, so clients that are aware of 
this can detect that smearing is in progress (and thus, a leap second is 
being handled), and can undo the smearing, if required, because the 
special refid provides the current smear offset.

Again, the original intention was to hide the leap second from 
downstream nodes.

[...]
>> If a secondary server gets smeared time from a primary server, it just
>> follows that time and doesn't even notice the leap second, just like any
>> other client.
>>
>> So it doesn't add some other smearing offset, *except* if the secondary
>> has a leap second file that forces it to handle a leap second.
> 
> So the assumption is that only stratum-1 servers do leap smearing and higher strati even when seeing a leap announcement do "jump"? Or are they expected to ignore the leap announcement? Or do the smearing servers keep the leap announcement for themselves (not pass it on)?

The only problem that exists here occurs if an NTP node gets smeared 
time (from upstream) without a leap second warning, but has a local leap 
second file.

In this case 2 leap seconds were applied: one via the smeared input 
time, and the other one due to the time step forced by the leap second 
announcement from the leap second file. This would result in faulty time.

> Thinking about it that would demand that a smearing server always indicates "no leap" (LI==00) to ist clients as it actualy converts the leap event (taking one second) to a "smearing interval" (taking hours).

Speaking again for ntpd from ntpd.org.

If a server that has been configured to provide its clients with smeared 
time receives unsmeared time from upstream servers, refclocks, etc., and 
in addition a leap second warning from those sources, or from a leap 
second file, does not smear its own system time but passes the leap 
second warning to the kernel as usual.

The smear offset is only applied to the timestamps in the network 
packets that are sent in reply to queries from downstream nodes.

I don't know whether other implementations work the same way.


Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg, 
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy