Re: [Ntp] comments on draft-mlichvar-ntp-ntpv5-03 / Message Format

Miroslav Lichvar <mlichvar@redhat.com> Thu, 25 November 2021 09:36 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 A68243A0121 for <ntp@ietfa.amsl.com>; Thu, 25 Nov 2021 01:36:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.802
X-Spam-Level:
X-Spam-Status: No, score=-2.802 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.701, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, 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 n2LJE6pj7Vp7 for <ntp@ietfa.amsl.com>; Thu, 25 Nov 2021 01:36:07 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 868AB3A0120 for <ntp@ietf.org>; Thu, 25 Nov 2021 01:36:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637832966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Re9BRi07SjkaQslVKxNsxpl8lbUVX9utooETSqbwAC8=; b=KGWtuISwhwfLwQY9aeggphJQT3VUe8CoE/n+DuAF+6TZ8A0p+wf/tM3I/GURjyKQ/ncILI DURc6goWRWNdGeNsjyXd2DeFc9Nn0kG+B8x6TD4mTYSnU2whEUrNRyxpAU/FheCIQrNo4m 9t1lEp4n9Sdu7QWuv+17u8T1wtFBLmU=
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-404-qsdRYvq3PLWOinpr-nMGUQ-1; Thu, 25 Nov 2021 04:36:04 -0500
X-MC-Unique: qsdRYvq3PLWOinpr-nMGUQ-1
Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C9D1781EE61 for <ntp@ietf.org>; Thu, 25 Nov 2021 09:36:03 +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 501AF5D9C0 for <ntp@ietf.org>; Thu, 25 Nov 2021 09:36:02 +0000 (UTC)
Date: Thu, 25 Nov 2021 10:36:00 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: ntp@ietf.org
Message-ID: <YZ9ZADfVlh6z9I4N@localhost>
References: <20211123131501.Horde.ErUH7VWw3Nr2PFkAGzGIEuI@mail.drown.org> <20211124223810.Horde.KKjrsykVQUMJgW4WVO5ZZmt@mail.drown.org>
MIME-Version: 1.0
In-Reply-To: <20211124223810.Horde.KKjrsykVQUMJgW4WVO5ZZmt@mail.drown.org>
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14
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/7i39BQaKy3aDY5A1HCGlA1HEUPk>
Subject: Re: [Ntp] comments on draft-mlichvar-ntp-ntpv5-03 / Message Format
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Network Time Protocol <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: Thu, 25 Nov 2021 09:36:11 -0000

On Wed, Nov 24, 2021 at 10:38:10PM -0600, Dan Drown wrote:
> This email will be on the "4. Message Format" section.
> 
> Right now the flags/era/timescale fields come before root dispersion and
> root distance. This puts them at a different offset in the packet compared
> to their location in NTPv4. Was there a reason not to keep these at the same
> offset? It's not an implementation problem, just a cosmetic difference.

The reason was to not break the ordering of the fields by their
length. As the format of root delay/dispersion is different, I thought
moving them might have a small advantage that a combined NTPv4+NTPv5
implementation would be less likely to incorrectly interpret their
values as there would have to be two separate paths. But I wouldn't mind
the order to be changed if there is a good reason.

> For timescale offset, there is an overlap with the unknown value
> (0x8000/-1.0 seconds) during a negative leap second smear. Is this worth
> mentioning in the rfc?

Hm, good point. I think it depends on when the leap smear starts.
There is no +1.0 value. If we define 0x8000 in time16 to mean unknown,
at least it would be symmetric. +1.0/-1.0 would be rounded to
0x7fff/0x8001.

> Transmit Timestamp currently has: "In responses it is the time when a
> response to the client was transmitted. The specific response depends on the
> selected mode (basic or interleaved). The timestamp corresponds to the
> beginning of the transmission"
> 
> I'm suggesting this rewording: "In responses it is the beginning of the
> transmission of a response to the client. Which response it refers to
> depends on the selected mode (basic or interleaved). See Measurement Modes
> section below for detail."

Sounds good to me.

Thanks,

-- 
Miroslav Lichvar