Re: [Ntp] CLOCK_TAI (was NTPv5: big picture)

Martin Burnicki <martin.burnicki@meinberg.de> Wed, 06 January 2021 14:18 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 882A93A0C23 for <ntp@ietfa.amsl.com>; Wed, 6 Jan 2021 06:18:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.361
X-Spam-Level:
X-Spam-Status: No, score=-2.361 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.262, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham 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 g5c2zYH0CqvR for <ntp@ietfa.amsl.com>; Wed, 6 Jan 2021 06:18:42 -0800 (PST)
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 21CB13A0C30 for <ntp@ietf.org>; Wed, 6 Jan 2021 06:18:41 -0800 (PST)
Received: from srv-kerioconnect.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 2FDFE71C032E; Wed, 6 Jan 2021 15:18:39 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meinberg.de; s=dkim; t=1609942719; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AsLsvek1+um+KbkqgijMDW/Hr8cA9kZxkofWg9nLKrw=; b=ZMaMQhbfBNCM/XEdDEEDdj1sO3VTPvThPckEj2r5DkulmK7UC7fWmEqZa2fcdCwc+WjdpK 0X0Hlr0e9UtJKaIB78sOSxkAq6HM4PvqXI3n8+qanExS3xEcOxw0tJ3VN930pc5Oe1CazU aTeeD41wc5Ky87637ypnEFcRAvIl1dLde02Q2m9FuITwjcD5Er0Wu5KHBlK5SXqxiAO/tp uLM8LhNbovpmN1YUDfHOLE7PAcSXGHUTriNuJS2KMw9i1KhFcHTUiH2b5k1AGJLtPItGfM L5GW8HWu/q/nTRgjP1BmgfV8VX63claZR4KIuO1VUuHDpy90Z/5/oDrln1YD9A==
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)); Wed, 6 Jan 2021 15:18:37 +0100
To: FUSTE Emmanuel <emmanuel.fuste@thalesgroup.com>, "ntp@ietf.org" <ntp@ietf.org>
References: <20210105124544.5EF5C40605C@ip-64-139-1-69.sjc.megapath.net> <f876a3ff-16ee-fc63-c27c-d5a3cb847a3d@meinberg.de> <4E78BB38-5FA2-4974-AB25-85C5AD9E7DBE@redfish-solutions.com> <8cdc69d3-c795-6fee-3e5c-9ae11694e3da@meinberg.de> <1af7e53f-1251-ea15-dde9-da165c3b5b49@thalesgroup.com>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Organization: Meinberg Funkuhren GmbH & Co. KG, Bad Pyrmont, Germany
Message-ID: <0af0e655-9f1b-7407-9065-9e3aa7b057d6@meinberg.de>
Date: Wed, 06 Jan 2021 15:18:36 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0
MIME-Version: 1.0
In-Reply-To: <1af7e53f-1251-ea15-dde9-da165c3b5b49@thalesgroup.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/7PJY2YGu2BD2Zrf3Ns9d11lU7mU>
Subject: Re: [Ntp] CLOCK_TAI (was NTPv5: big picture)
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, 06 Jan 2021 14:18:45 -0000

FUSTE Emmanuel wrote:
> Le 06/01/2021 à 11:50, Martin Burnicki a écrit :
>> Philip Prindeville wrote:
>>>> On Jan 5, 2021, at 9:09 AM, Martin Burnicki<martin.burnicki=40meinberg.de@dmarc.ietf.org>  wrote:
>>>>
>>>> For NTP, things are different. There is a huge base of NTPv4
>>>> installations, and making NTPv5 basically compatible with v4 would IMO
>>>> strongly increase the acceptance of NTPv5.
> The "basically" mean nothing. Is is 100% compatible or not compatible. 

As I tried to explain in earlier messages, you can easily make it fully
compatible and support new features by extensions.

> It is NTPv4 or NTPv5.

In the first place it is NTP. If you think you need to completely
redesign it, just give it a different name.

> The "not so different" between v3 and v4 was much 
> a source of problems than an adoption catalyst.

I'm working with NTP for a very long time now, and I don't remember any
problem when moving from v3 to v4. Exactly the opposite was true: there
were no problems because the protocol was compatible to a very high
degree, so it was no problem to have a mixed v3/v4 environment an slowly
changeover to v4. And according to my job I've seen *many* different use
cases, both for the client and for the server side.

So which problems exactly do you mean?

> I even view it in the opposite for a psychological/marketing acceptance 
> point of view: being  v4 compatible is so restrictive for v5 that people 
> would prefer to stick to v4 as v5 would give nothing more than v4 
> (unless being an expert to understand the difference/gain).
> Do we want to do a NTPv4 revision or NTPv5 ?

IMO the protocol should evolve from v4 to v5 in a compatible way.

As I already mentioned before, I've seen real incompatibility problems
when PTPv2 was introduced because even the base packet was incompatible
with v1. Luckily this wasn't a too big problem because PTPv1 wasn't
widespread when v2 was introduced.

>>> The logical corollary to this argument is that because there ARE a lot of servers, it’s not unreasonable to think that there will be a lot of both NTPv4 and NTPv5 servers co-existing in the future, and the user is free to peer with either.
>> So you think it's not necessary to upgrade v4 nodes to v5, as it has
>> been done from v3 to v4? Simply systems should stick with v4 and only
>> enhanced system should start using v5?
>>
>> In this case, wouldn't it be better to start defining a completely new
>> protocol and e.g. call it "Extended Time Protocol", which can be chosen
>> instead of NTP? This would be similar to PTP, which you can use instead
>> of NTP. ;-)
>>
>>> Which eliminates the need for NTPv5 servers to also speak NTPv4.
>> If you have a large network with different types of client you will need
>> to provide NTPv4 and "ETP" (AKA NTPv5) if NTPv5 has requirements that
>> are not needed and can't be supported by some clients.
> But the "can't" is wrong as long as the offset is always transmitted and 
> for the "need" argument, the same clients would have stick to 
> time/daytime service if it is a real one.

Sorry, but you are competing apples to peaches. Do you really suggest
that NTPv4 clients fall back to time/daytime (which, by the way, are
also different protocols than NTP) ?

> A v5 server could still provide v4 frame and for v4 clients if needed 
> but without hw times-stamping support which it would reserve for v5 
> clients if it has some actives. But it is implementation and policy details.

I think whether hardware timestamping is supported or not isn't related
to the packet format. Even NTPv4 can use timestamping in the kernel
driver, if the OS supports it.


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