Re: [Ntp] Comments on Miroslav's NTP v5 proposal.

Miroslav Lichvar <mlichvar@redhat.com> Tue, 01 December 2020 08:39 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 719793A0B56 for <ntp@ietfa.amsl.com>; Tue, 1 Dec 2020 00:39:01 -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_MSPIKE_H3=-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 yvp94gAQa3vI for <ntp@ietfa.amsl.com>; Tue, 1 Dec 2020 00:39:00 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.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 E81113A0B5B for <ntp@ietf.org>; Tue, 1 Dec 2020 00:38:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606811938; 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=h1AbDhYjImTqHA1UvDdpWAuPXWb4rux+QT/NdK08zLY=; b=II8sm+Jh8RfcBYGnVpRBQQ7ZySnGY7nwu4iVBmkb9XGH9UC7mumfqQd4w8yYVge8/iX2d2 jMuF6/1Z1GyiqfMVE2hFfb7A5dQ6bkd4Dd1LKcvxVyPcck/cGRW/5as1tj6f4eX9GVJegZ tlerR6i3TglPn8OGU6aRla8TBe5go6o=
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-255-izkBPfC4OJ-SkY4gFRLmtw-1; Tue, 01 Dec 2020 03:38:57 -0500
X-MC-Unique: izkBPfC4OJ-SkY4gFRLmtw-1
Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BDD298030A1; Tue, 1 Dec 2020 08:38:55 +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 EAA6B19C44; Tue, 1 Dec 2020 08:38:54 +0000 (UTC)
Date: Tue, 01 Dec 2020 09:38:52 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Doug Arnold <doug.arnold@meinberg-usa.com>
Cc: Watson Ladd <watsonbladd@gmail.com>, NTP WG <ntp@ietf.org>
Message-ID: <20201201083852.GD1900232@localhost>
References: <CACsn0cn8ULX5f_PQVbDsrirPnGHVPWGgMqXn52n_T4P5ELkKgQ@mail.gmail.com> <20201126110406.GQ1734865@localhost> <6B35BF9C-EC1A-4EA7-8D80-AAE7D0CFD728@meinberg-usa.com> <3C6103EB-5453-4024-8155-E9D5EA3DDE46@meinberg-usa.com>
MIME-Version: 1.0
In-Reply-To: <3C6103EB-5453-4024-8155-E9D5EA3DDE46@meinberg-usa.com>
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23
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/p7A9vXBdwHwg0uNVmUnNptrGTPw>
Subject: Re: [Ntp] Comments on Miroslav's NTP v5 proposal.
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 08:39:01 -0000

On Mon, Nov 30, 2020 at 09:31:26PM +0000, Doug Arnold wrote:
> One more thing on the correction field.  In my scheme only the client offset is corrected.  The delay is still the real round trip delay, rather than some kind of corrected delay.  I was thinking that the real round trip delay is what matters. Is that right?  

No, the delay needs to be corrected to not break weighting and
filtering of the measurements.

>     Regarding the datatypes:  What do you think of time16, time32, and timestamp64.  It makes a distinction between the first and the format used for timestamps.

Ok, maybe. What do others think?

>     Regarding the correction field: I think that the easiest route to adoption by manufacturers of switches and routers is to make it work just like PTP.  That is one field that corresponds to the dwell time, difference between the egress and ingress timestamps.  In my scheme the switches and routers do not even have to determine if the message is a request or a response.

PTP uses two correction fields and it corrects the delay too. They are
just in separate messages. Sync messages have their own correction and
delay requests have their own correction. In NTP the two measurements
happen in a single exchange, so there need to be two fields in one
message. For the switch it does not matter, it will always update only
one field as the fields are swapped on the server.

>     Regarding interleaved mode:  I think that this is only important for niche applications that need high precision.  These are generally in smaller networks, where servers saving state for each client is less of an issue.  Note also that several manufacturers make ntp servers with one-step hardware timestamping, where neither follow_up messages not interleaved mode are needed.

That's a good point. However, I suspect one-step timestamping would
difficult to implement with authentication.

-- 
Miroslav Lichvar