Re: [Ntp] Antw: Re: Antw: [EXT] Re: NTPv5 draft

Miroslav Lichvar <mlichvar@redhat.com> Tue, 01 December 2020 09:56 UTC

Return-Path: <mlichvar@redhat.com>
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 B65113A0FB8 for <ntp@ietfa.amsl.com>; Tue, 1 Dec 2020 01:56:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.121
X-Spam-Level:
X-Spam-Status: No, score=-2.121 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com
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 CogaoaqX4_4o for <ntp@ietfa.amsl.com>; Tue, 1 Dec 2020 01:56:09 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 66BEC3A0FB5 for <ntp@ietf.org>; Tue, 1 Dec 2020 01:56:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606816568; 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=zTt/DuChLgA87R/fRla2Rrevg8TJzcIRl1sInUlx01c=; b=Twi00DIkYjAi8mYGKimQ5yI6z0OfKVR5NpwSsXrhLZiRtBNAZfd/ISr+JspMvJlfYtnY5R HDfYBdRJrJ34tqTjhj8DMV3bAI+Gh4UcuCKQ5XdVGazTQ0VTT3nYPE/PgjaDWTxS2DuT+z y00HyS56IMdpXPB7FBS/8nV26fnrzic=
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-378-k9Sii77CMkanJtXhv6EJdg-1; Tue, 01 Dec 2020 04:56:06 -0500
X-MC-Unique: k9Sii77CMkanJtXhv6EJdg-1
Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 33BA91800D42; Tue, 1 Dec 2020 09:56:05 +0000 (UTC)
Received: from localhost (holly.tpb.lab.eng.brq.redhat.com [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 500A860917; Tue, 1 Dec 2020 09:56:03 +0000 (UTC)
Date: Tue, 01 Dec 2020 10:56:01 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
Cc: Dieter Sibold <dsibold.ietf@gmail.com>, Steven Sommars <stevesommarsntp@gmail.com>, "ntp@ietf.org" <ntp@ietf.org>, kurt@roeckx.be
Message-ID: <20201201095601.GJ1900232@localhost>
References: <20201111161947.GG1559650@localhost> <AA848C67-CFB7-43FC-B190-FD3911360373@gmail.com> <20201130200240.GI971977@roeckx.be> <CAD4huA79u3NkR8LS96Gqgs58mJguoN7=p=CJnitzgh_RzNWCVg@mail.gmail.com> <5FC5FF2B020000A10003D2EF@gwsmtp.uni-regensburg.de> <20201201084448.GE1900232@localhost> <5FC60B73020000A10003D323@gwsmtp.uni-regensburg.de>
MIME-Version: 1.0
In-Reply-To: <5FC60B73020000A10003D323@gwsmtp.uni-regensburg.de>
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13
Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mlichvar@redhat.com
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/rf-A6Lgdpe4FXL9uUokdWZDJEWU>
Subject: Re: [Ntp] Antw: Re: Antw: [EXT] Re: NTPv5 draft
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: Tue, 01 Dec 2020 09:56:12 -0000

On Tue, Dec 01, 2020 at 10:22:59AM +0100, Ulrich Windl wrote:
> >>> Miroslav Lichvar <mlichvar@redhat.com> schrieb am 01.12.2020 um 09:44 in
> Nachricht <20201201084448.GE1900232@localhost>:
> > I think it depends on the clock. Normally, the precision of the clock
> > should be constant. If it's a CPU with variable frequency, for
> > timekeeping performance it is better to set the frequency to a
> > constant value.
> 
> That's what I called "design" precision. However when you read the clock and
> your computer is not fast enough for the full precision, should you work with
> the full precision of the hardware or with the limited precision the software
> can get? (Say your clock has 1ns resolution, but reading it takes 10 to 15 ns,
> maybe even longer if there's high system load).

If the clock takes a longer time to read due to high system load, that
delay will be included in the delay measured by the client. I think
the precision field should ideally describe the inherent precision
coming from the frequency in the hardware, i.e. how much information
there is actually in the timestamps provided by the server. That's
difficult to determine in userspace, so most implementations set the
precision to a minimum time it takes to read the clock. That's just an
upper bound on the actual precision. If it's a high-frequency clock
accessed over a slow bus, or there is a slow system call involved, it
can overestimate the precision by few orders of magnitude.

> > clk_jitter is another candidate (it looks like a constant here for GPS). 
> > Maybe more. Some are heritage of microsecond resolution of NTPv3.
> > 
> > Those values are provided only in the monitoring protocol.
> 
> Agreed, but aren't they used internally? And are you saying we don't need
> monitoring? ;-)

I mean they are not relevant for the NTPv5 design. The monitoring
protocol should have its own specification.

-- 
Miroslav Lichvar