[Ntp] Antw: Re: Antwort: Re: Antw: [EXT] Re: Temperature Compensation for NTP?

Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> Wed, 09 December 2020 13:45 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 861B53A1672 for <ntp@ietfa.amsl.com>; Wed, 9 Dec 2020 05:45:33 -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=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 ePtYHrgpU9OR for <ntp@ietfa.amsl.com>; Wed, 9 Dec 2020 05:45:31 -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 B43FA3A166E for <ntp@ietf.org>; Wed, 9 Dec 2020 05:45:30 -0800 (PST)
Received: from mx3.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 00B056000054 for <ntp@ietf.org>; Wed, 9 Dec 2020 14:45:27 +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 03429600004A for <ntp@ietf.org>; Wed, 9 Dec 2020 14:45:25 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp.uni-regensburg.de with Novell_GroupWise; Wed, 09 Dec 2020 14:45:25 +0100
Message-Id: <5FD0D4F3020000A10003D6D1@gwsmtp.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.3.0
Date: Wed, 09 Dec 2020 14:45:23 +0100
From: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
To: "ntp@ietf.org" <ntp@ietf.org>, magnus@rubidium.se
References: <06a3f575-0f32-8686-40c4-e948e619527e@thalesgroup.com> <5FCF48F1020000A10003D5E1@gwsmtp.uni-regensburg.de> <F8A667ED0200007A43047E14@gwsmtp.uni-regensburg.de> <5FD07720020000A10003D684@gwsmtp.uni-regensburg.de> <OFC100EA2B.0D5BBA74-ONC1258639.00422784-C1258639.00425388@ptb.de> <db435749-0a2d-63a9-777e-2657c7b99eed@rubidium.se>
In-Reply-To: <db435749-0a2d-63a9-777e-2657c7b99eed@rubidium.se>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/rtpezsfh6zL2h1toTwBt3mUo8v4>
Subject: [Ntp] Antw: Re: Antwort: Re: Antw: [EXT] Re: Temperature Compensation for NTP?
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 13:45:34 -0000

>>> Magnus Danielson <magnus@rubidium.se> schrieb am 09.12.2020 um 14:25 in
Nachricht <db435749-0a2d-63a9-777e-2657c7b99eed@rubidium.se>:
> Hi,
> 
> In a similar notion, I do not see temperature compensations to be
> anything but local clock maintenance. This can be done in so many ways
> that I do not think it will be useful to clutter core mechanism
> descriptions with it. There can be hardward compensations already in the
> use of temperature compensated oscillators (TCXO) or oven stablized
> oscillators (OCXO) or even atomic reference based. You can also do
> software based compensation from trivial simple to advanced self-tuning.
> That would still not relate to the core mechanisms of NTP. You may
> benefit from feeling the correct time from NTP as you do such training,
> but just like the oscillator offset file, it's a local issue, until it
> isn't because it failed, and I've seen such cases with NTPv4.

OK, convinced ;-)

> 
> What we can do is to refactor the lockin mechanisms, because it can be
> made more robust and also overcome problems with incorrect offset files,
> that may rended intermediary nodes and client nodes problematic. That
> would still not be part of the core protocol, but may be relevant as a
> side protocol.
> 
> Cheers,
> Magnus
> 
> On 2020-12-09 13:04, kristof.teichel@ptb.de wrote:
>> I agree with the faction who believes that things like temperature
>> correction should be outside of a document whose main focus is the
>> on-wire protocol part of NTP (be it version 4 or 5)
>>
>> I would also prefer it if the on-wire protocol and any algorithms
>> deriving offset/correction data from it would be split into different
>> documents, with potentially a third one for the actual techniques used
>> for clock disciplining.
>> This would mean quite a lot of work in the short term, such as
>> defining interfaces for what the single modules need from one another. 
>> But I think the clarification would be worth it (for example, it would
>> create a place where integrating temperature corrections makes sense).
>>
>>
>> Best regards,
>> Kristof
>>
>>
>> -----"ntp" <ntp-bounces@ietf.org <mailto:ntp-bounces@ietf.org>>
>> schrieb: -----
>> An: "ntp@ietf.org <mailto:ntp@ietf.org>" <ntp@ietf.org 
>> <mailto:ntp@ietf.org>>
>> Von: "FUSTE Emmanuel"
>> Gesendet von: "ntp"
>> Datum: 09.12.2020 10:55
>> Betreff: Re: [Ntp] Antw: [EXT] Re: Temperature Compensation for NTP?
>>
>> Le 09/12/2020 à 08:05, Ulrich Windl a écrit :
>> >
>> > As said before, I think describing the protocol without the
>> algorithms and clock model behind does not make sense, and when
>> describing the clock model, one has to explain where clock wander and
>> error estimate mainly comes from.
>> > Also one of the design goals of NTP has been to provide "reasonalbe"
>> time and error estimate even when there are no servers available and
>> to lengthen the polling interval. I think considering the temperature
>> (optionally), can help improving those capabilities, so why ignore?
>> >
>> Because improving capabilities of the oscillator is not the NTP job. NTP
>> algorithm is a consumer of those capabilities, we should have way to
>> provide these capabilities to the NTP algorithm but it is not the job of
>> NTP to interfere with them.
>> Chrony implement poor man temperature compensation, great. But if I use
>> TCXO or OCXO considering the temperature (and which one ?) is non sense.
>> And I could even implement this basic crystal TC in a kernel driver for
>> better integration with the timekeeping machinery and interface for the
>> same result, NTP is completely out of the picture.
>> If I know the aging curve I could implement it too in this same driver
>> or in chrony to better free running precision.
>> An oscillator could characterized by stability temp stability in ppm/c,
>> Alan variance, phase noise, aging curve and more.
>> For sure, only a metrology lab or the oscillator maker could give you
>> the characteristics of an oscillator and on most hardware and computers,
>> the oscillator spec are not provided or know.
>> NTP appliance provider job is to use such advanced oscillators and
>> compensation technique to provide better global characteristics and be
>> better clock source for serving NTP.
>> The job of NTP is to steer the system clock and so possibly the
>> underlying oscillator in one way and to provide measurements in the
>> other way.
>> So the only question is : what property/characteristics/metric of the
>> underlying oscillator/clock the NTP servo/clock model need to do its job
>> better rather than default values ?
>> With the modern granularity and precision of measurements thanks to HW
>> time stamping availability and oscillators quality, the spectrum of
>> possibility is too wide for hard coded good for all default values.
>>
>> Regards,
>> Emmanuel.
>> _______________________________________________
>> ntp mailing list
>> ntp@ietf.org <mailto:ntp@ietf.org>
>> https://www.ietf.org/mailman/listinfo/ntp 
>> <https://www.ietf.org/mailman/listinfo/ntp>
>>
>> _______________________________________________
>> ntp mailing list
>> ntp@ietf.org 
>> https://www.ietf.org/mailman/listinfo/ntp