Re: [Ntp] comments on draft‑mlichvar‑ntp‑ntpv5‑03

Steven Sommars <stevesommarsntp@gmail.com> Thu, 25 November 2021 17:24 UTC

Return-Path: <stevesommarsntp@gmail.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 D74B23A0C2F for <ntp@ietfa.amsl.com>; Thu, 25 Nov 2021 09:24:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 oZPS6_rIcSAA for <ntp@ietfa.amsl.com>; Thu, 25 Nov 2021 09:24:38 -0800 (PST)
Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8ECA33A0C2E for <ntp@ietf.org>; Thu, 25 Nov 2021 09:24:38 -0800 (PST)
Received: by mail-yb1-xb34.google.com with SMTP id d10so13631163ybe.3 for <ntp@ietf.org>; Thu, 25 Nov 2021 09:24:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HFkkKocDP82/71FlX8F+A68L974IaqLlW25jVyOYQA8=; b=C0z2sXU9DmeRdYrGiLlsitFLdSsRR5YEW3/s9Tv4ryDWWCZQxCJCmM5EHBTGC5HBQQ PgZ65qqQnjr3qzLnfmMst8PGG+0MSKfRp02QPJZs6LqhX9h8ucgHAwwQANWl4vk0d0o6 6DxGjwcPeQhKCR54Kt6SP26i2K47l50l8HmyId66Hd0OOVi3LY2mEOdHkr/afppVIjEg j/OaL3LpygwDxW8lpzbn5SeilKPAGhp3khbzzsSwdGs1gDWCvURDVYdAXo70vLeh6JEV FvlL9Ss2+22JjfI/oozJTCNconF+jekjoAmwNbdDRE6vO/3hkqTe7qez4KCmQLAR1HVt Is6A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HFkkKocDP82/71FlX8F+A68L974IaqLlW25jVyOYQA8=; b=hZ3+aMjEzAW/hl4+RovJUi2sj3qK4/8IKBNcERYNBbtWHZzDKnGbSnvWWYkYim6u0R hX9P4wygVzLjc60AH+67jHr48cOPDtfk182t4a3dsdjAvWq6r7pVR1XD88EAnN8LgOct KKSqqypED/nnsA3fpK7W+liJzKmmohSY9C47EVMz9K3fZmVm3ar0YZSKJgHSXFrjETyH A3w8kw9kKkIIuMsQjh0OFIwoUiGWRATRheTYcvDfV2OkKlaHJO1OKwJmU98pAJzrLP/+ YhV4zleMAd7qNx3ihEvQojjdFW9Bzn9bHzwz1FSSK3t1EJOMOFBD+hNr8r4DoCiBytSI xbsg==
X-Gm-Message-State: AOAM531wxsgr97ZOxch74kByXDARaEQtwjGr5/EsPG6yoEcr+99oqAZk m/cyab540p8t9NBE/5QJYsOXlRUjJIY7ZNjylenbWhEt
X-Google-Smtp-Source: ABdhPJw0dXVKBg84OtHC4cSCIHJB2I2w98VuJAgUn8WG1ywdDHv+V4Jp0bKNSqEee44cnFyPKdZw+bsgQgA9EfCrO5Q=
X-Received: by 2002:a05:6902:1144:: with SMTP id p4mr8460696ybu.189.1637861076480; Thu, 25 Nov 2021 09:24:36 -0800 (PST)
MIME-Version: 1.0
References: <20211123131501.Horde.ErUH7VWw3Nr2PFkAGzGIEuI@mail.drown.org> <619DEA79020000A10004599E@gwsmtp.uni-regensburg.de> <YZ39jGBrF+zeiYm3@localhost> <20211124221752.Horde.jVR5d5RhflN9UNe6SuqxlZx@mail.drown.org>
In-Reply-To: <20211124221752.Horde.jVR5d5RhflN9UNe6SuqxlZx@mail.drown.org>
From: Steven Sommars <stevesommarsntp@gmail.com>
Date: Thu, 25 Nov 2021 11:24:25 -0600
Message-ID: <CAD4huA7h7eGcGe1o+vbnDe4DVgrGCQKCXf=J1nV07gSW_6=QSA@mail.gmail.com>
To: Dan Drown <dan-ntp@drown.org>
Cc: NTP WG <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000a7b7ac05d1a03f6e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/O_XBvpDF7ltol0FwvNTG-f9Tg4M>
Subject: Re: [Ntp] comments on draft‑mlichvar‑ntp‑ntpv5‑03
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 17:24:43 -0000

Root dispersion should have the same resolution as the time stamp.
With today's 16-bit field the smallest root dispersions are 0,   15.3,
30.5 ... microseconds.
What should an NTP server having 1 microsecond uncertainty return?


On Wed, Nov 24, 2021 at 10:18 PM Dan Drown <dan-ntp@drown.org> wrote:

> Quoting Miroslav Lichvar <mlichvar@redhat.com>:
> > On Wed, Nov 24, 2021 at 08:32:09AM +0100, Ulrich Windl wrote:
> >> I wonder: Up to NTPv3 floating-point math was avoided, but starting in
> NTPv4
> >> floating-point math is used.
> >
> > That is up to the implementation. The specification doesn't require
> > floating-point math, but it is easier to implement if you can use it.
>
> Floating point hardware is pretty common in embedded devices with an
> internet connection.  For example esp8266 and esp32 have single
> precision FPU hardware.  Cortex-M4/M7s have optional FPU hardware as
> well.
>
> > For internal calculations, you could keep everything in the 64-bit
> > format. Even in the NTPv5 packet we could do that, if we don't mind
> > wasting 16 octets per packet. The specification would certainly be
> > simpler.
>
> I don't see the value in 64 bits of root delay/dispersion.  Maybe the
> timescale offset field would benefit from more precision, but at the
> moment I prefer to keep it at 16 bits.
>
> > I implemented recently some of the NTPv5 ideas in chrony in an
> > experimental extension field. I noticed there is a minor compatibility
> > issue with the proposed time32 format and NTPv4. The maximum value is
> > not really 16, but slightly less than that. That means it cannot reach
> > the MAXDISP value from RFC5905. To avoid having to work with two
> > different MAXDISP values, we could specify an infinite value for the
> > maximum 32-bit value of the type.
>
> Defining 0xFFFFFFFF (15.999999996) to mean MAXDISP makes sense to me.
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
>