Re: [Ntp] WGLC: draft-ietf-ntp-interleaved-modes

Miroslav Lichvar <mlichvar@redhat.com> Wed, 02 January 2019 12:07 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 3EAA71277D2 for <ntp@ietfa.amsl.com>; Wed, 2 Jan 2019 04:07:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level:
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-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 VPiyMry9DAWI for <ntp@ietfa.amsl.com>; Wed, 2 Jan 2019 04:07:10 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4BA651276D0 for <ntp@ietf.org>; Wed, 2 Jan 2019 04:07:10 -0800 (PST)
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0CE0E2D7E6; Wed, 2 Jan 2019 12:07:09 +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 5AEFF1019629; Wed, 2 Jan 2019 12:07:07 +0000 (UTC)
Date: Wed, 02 Jan 2019 13:07:07 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Harlan Stenn <stenn@nwtime.org>
Cc: ntp@ietf.org
Message-ID: <20190102120707.GC30177@localhost>
References: <2C2DBD6F-727F-48DB-BB48-14CE7F7F8B95@isoc.org> <A113A752-6CDA-4772-9720-A0AABFD9B450@isoc.org> <AM0PR0602MB373031DC961E9B4E10F07C38FFA90@AM0PR0602MB3730.eurprd06.prod.outlook.com> <7b7402ee-8e6b-1e3e-ea18-6d2f689318fd@nwtime.org> <20181210160548.GB27901@localhost> <3b10cdea-59af-15c8-dade-e92d6a6652fc@nwtime.org> <20181211124802.GF26705@localhost> <7fbf59ff-45ea-c1f5-3845-077c6a120f63@nwtime.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <7fbf59ff-45ea-c1f5-3845-077c6a120f63@nwtime.org>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 02 Jan 2019 12:07:09 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/-3PM7Ep1h1i5Pd0I_7Dup5xKp0k>
Subject: Re: [Ntp] WGLC: draft-ietf-ntp-interleaved-modes
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, 02 Jan 2019 12:07:11 -0000

On Fri, Dec 14, 2018 at 01:03:29PM -0800, Harlan Stenn wrote:
> - 18ns corresponds to a precision of about -26.  While that's pretty
> special,

I'm not sure if that is really special. Modern CPUs have a time-stamp
counter, which can be read in few tens of nanoseconds. The precision
of a typical hardware clock on NIC is same or even better.

> I remain curious about how long the delay is between pulling
> the transmit stamp and the packet going out over the wire.

It should be similar to receiving a packet, i.e. few microseconds.
Depending on the OS/driver, with a very fast NTP server close to the
client, it is actually possible to receive the response before the
transmit timestamp of the request.

> If the basic
> precision of the system clock is only -19, we're not going to do better
> than 2 microseconds.  For situations like this, I'm really curious if
> we'll even see any benefit to client/server interleave mode.

I think an improvement in accuracy should be possible even with such a
clock.

> - I'd like to explore a "follow up" message as an alternative.

A protocol using follow up messages could certainly be specified, but
it would enable traffic amplification. That's probably the last thing
we want to add to the client/server mode. There are few sentences
about this in the latest version of the draft.

In any case, such a protocol would be very different from the
interleaved modes and should be specified separately. It could work in
all three modes: client/server, symmetric, broadcast.

-- 
Miroslav Lichvar