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

Martin Burnicki <martin.burnicki@meinberg.de> Wed, 06 January 2021 14:29 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 C3ED83A1069 for <ntp@ietfa.amsl.com>; Wed, 6 Jan 2021 06:29:40 -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 nd25uzzOsbK6 for <ntp@ietfa.amsl.com>; Wed, 6 Jan 2021 06:29:38 -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 D25283A10EC for <ntp@ietf.org>; Wed, 6 Jan 2021 06:29:09 -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 2CF2271C050B; Wed, 6 Jan 2021 15:29:08 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meinberg.de; s=dkim; t=1609943348; 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=KBDLsteGsdzJGSLgHuSsz1IO5Ld54RZUlBn+rk4fo2E=; b=Y3QsiKf4vGbnh+bwa0BdwsjP7JSq8xaNx3PVyXyBTKwexAOyFUc8PwFNG6Meak4o9TWM/v pZUXO304VEw/bthLUhftWwlYRiIlbj+x4cgFN8OKqkh3mgUE01dmo6T67yL1N8XzJiTknu oO1Oy/Bv9/1pI0okkA4S7K6T9dcVQ5IE0jKKUAhUgVBZC0ZexvnYPVu7LzMGWJaQk4miWM LoNLo9xr50hYpk3XmJ2EN9fMMVAbnHtbWM+fe+FTTGVv+LGM8CPLaXUvj/+PBZFc9d09dJ FzlVpRP4xLz33+QZdA0QuXg4n5+n0Rzs5irVvoKK4vQ9NvQl8I3ZkQNEkIvCsQ==
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:29:06 +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> <59A706AB-A151-4779-989B-B957F2C50FD0@redfish-solutions.com> <f6871e77-7130-0234-b30f-a1efd7fc501d@meinberg.de> <5d9b2399-dbb4-99c8-4495-69ad03479a23@thalesgroup.com>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Organization: Meinberg Funkuhren GmbH & Co. KG, Bad Pyrmont, Germany
Message-ID: <c28ac809-1d5b-0e1d-48fa-88d4c45d870b@meinberg.de>
Date: Wed, 06 Jan 2021 15:29:06 +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: <5d9b2399-dbb4-99c8-4495-69ad03479a23@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/-YtMvS-s8QzHfc2D4tWJin_Ih_I>
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:29:47 -0000

FUSTE Emmanuel wrote:
> Le 06/01/2021 à 11:58, Martin Burnicki a écrit :
>>
>> Or you would have to provide (and maintain) an NTP server implementation
>> that supports both v4 and v5, depending on the version of the request.
> As the vast majority of today ones which still support v1/v2/v3/v4, 
> being based on ntpd,  and v3/v4 for most of the others.

I don't thing NTPv1 and v2 are really supported by current
implementations, maybe except for a v2 version code in the mode 6 packets.

If I remember correctly, NTPv2 wasn't even widespread, but some fields
of the packet were changed in v3. When that happened, NTPv2 wasn't very
widespread, either.

The only thing a v4 server has to do to when it receives a v3 request is
to copy the v3 version code into the reply packet instead of the native
v4 code. That's it.

In a compatible approach you could set up the reply packet as usually,
and only append extension fields with more detailed information if the
protocol version sent by the client is v5.

A possible approach could be that

- a v5 client could send an initial v5 request

- when the server sees v5 it replies with a base packet and one or more
extension fields indicating its features/capabilities

- the client could send further requests with extension fields
requesting for additional information

- a v4 client would simply send and receive a v4 packet without the
extensions


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