Re: [Ntp] Last Call: <draft-ietf-ntp-interleaved-modes-04.txt> (NTP Interleaved Modes) to Proposed Standard

Miroslav Lichvar <mlichvar@redhat.com> Mon, 12 April 2021 10:49 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 B6E8B3A1821 for <ntp@ietfa.amsl.com>; Mon, 12 Apr 2021 03:49:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.839
X-Spam-Level:
X-Spam-Status: No, score=-1.839 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_BLOCKED=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_DOTEDU=0.28] 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 GKrW1vSWdDvZ for <ntp@ietfa.amsl.com>; Mon, 12 Apr 2021 03:49:36 -0700 (PDT)
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-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EA0443A181F for <ntp@ietf.org>; Mon, 12 Apr 2021 03:49:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618224574; 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=Ea3gBZEfsxkXMJ4GcTnpdrgNLwQ5WPqrNnr8+JTqBDg=; b=VZXlpZTnm6DsYracCYA4IPKrIC6T5XIADAXxJlqOCyVsL5k595bJVpe+AmriA5nsRQ4Pa5 NHu1/4//ynb8VqnSo2zBdybEA9N2Ic2hyhrnQajzigBcdlyHPUk1WvPxyC0Bv+cWrg/5yd Grh3VQbrg/WnIqge3yjJ5yeFyn1ZpYY=
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-603-JdwGWYOPOBqmAPABBhzPww-1; Mon, 12 Apr 2021 06:49:31 -0400
X-MC-Unique: JdwGWYOPOBqmAPABBhzPww-1
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 748636D4E0; Mon, 12 Apr 2021 10:49:29 +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 C5A485C559; Mon, 12 Apr 2021 10:49:27 +0000 (UTC)
Date: Mon, 12 Apr 2021 12:49:26 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: "David L. Mills" <Mills@udel.edu>
Cc: Daniel Franke <dfoxfranke@gmail.com>, last-call@ietf.org, NTP WG <ntp@ietf.org>, Karen O'Donoghue <odonoghue@isoc.org>, ntp-chairs@ietf.org, ek.ietf@gmail.com, draft-ietf-ntp-interleaved-modes@ietf.org
Message-ID: <YHQltoGdGtq1hbjU@localhost>
References: <161719557520.16220.12856615921222543758@ietfa.amsl.com> <CAJm83bD7REE1wPEfsfGF9HX2JZ60KAAp-iWZaDdfnQtuepgDeQ@mail.gmail.com> <60735B24.8060505@Udel.edu>
MIME-Version: 1.0
In-Reply-To: <60735B24.8060505@Udel.edu>
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16
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/rNg7BsacC1-2h2RzxAbTTTqQuCA>
Subject: Re: [Ntp] Last Call: <draft-ietf-ntp-interleaved-modes-04.txt> (NTP Interleaved Modes) to Proposed Standard
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: Mon, 12 Apr 2021 10:49:41 -0000

On Sun, Apr 11, 2021 at 04:25:08PM -0400, David L. Mills wrote:
> There is a much easier way to do this,  as I proposed in the recent document
> posted for review. See Section 4.3 for explanation.

I think you are referring to
https://www.eecis.udel.edu/~mills/Autokey3.txt

> The way I propose can be used in all protocol modes and does not requre any
> specific configuration or extension fields.  Briefly, the onwire protocol
> operates as usual, except  that the devstamp of the last transmitted packet
> is saved in a state variable.
> In the reply packet, the origin timestamp is replaced by the saved devstamp.

If the origin timestamp in a response contained a transmit timestamp
of a previous response to the same client/peer, how could it pass the
loopback test at the client/peer? It needs to be a timestamp copied
from the request. For compatibility with RFC 5905 it needs to be the
transmit timestamp from the request (aka basic mode).

> The offset and delay are computed as usual. However, the full interleave
> function requires two protocol rounds to develop a full compliment of
> timestamps. There's no need to do anything special, especially not modify
> any other header field in the reply.  This change is compatible with legacy
> versions and rfc 5905.

The linked document doesn't describe the on-wire protocol in enough
detail for me to understand it. I'd like to see an example with few
exchanges showing all timestamps in packets.

If the protocol really is supposed to be compatible with the current
ntp.org implementation, I don't think it could be very different from
the ntp-interleaved-modes draft discussed in this last call.

The compatibility was one of the goals. The main difference to the
ntp.org implementation is that it automatically switches between
processing packets in basic and interleaved mode, which is needed in
some corner cases, e.g. when polling intervals of two peers in a
symmetric association don't match.

-- 
Miroslav Lichvar