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

Doug Arnold <doug.arnold@meinberg-usa.com> Mon, 30 November 2020 21:18 UTC

Return-Path: <doug.arnold@meinberg-usa.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 4B5683A11BF for <ntp@ietfa.amsl.com>; Mon, 30 Nov 2020 13:18:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=meinbergfunkuhren.onmicrosoft.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 Uv8PLPNvgZLq for <ntp@ietfa.amsl.com>; Mon, 30 Nov 2020 13:18:00 -0800 (PST)
Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02on0627.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe05::627]) (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 2CA8E3A109E for <ntp@ietf.org>; Mon, 30 Nov 2020 13:17:59 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dDSaazhPq4XLzm1FmD6m0OC3DK6o1e7BzCdqSV+3Aas7d16fbiSeLf4ZUa1DqZ4t167iRx/S2C7J5Pd5baXH5KeZbfLHIiufHHGvECNbascNOWcBqYX/A1X+w88U7myFMn1YSG9fswBpZ3UUY6hTjYRmwjCHXa5ERkXyIsuFBBdArHkFwZLNBHglZKbngXpFgjnsKKJSQ0ruDqLEgBRXr0qCZFzsqW9vnQTRvm9Q8JCT1TAf0GVXdE5HLO9DhvNjk6EqY+Rtdq8nmHYQx/fhwNCrQZ+D0MoPktCXHJ90tMmzpRcsvj/dAa0F1aShDUPdwYCMqvfDinqpwJgdgI1AiQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HsuCXHuarHpEZTi5Gl/i5dFU4if9nYaI27U/1UJsBmA=; b=NBGA2jN7jEV/klTlwrzlNX2T9XNQDuHDSeEYkF05eoaOUlFaZ9m9kGbAtWtsfRFc7Jh7M790eahWlIl0PfCnUmi9p0ZJUeWCLG4XJM17f+9D90SsZLZ1oUpSh42bHXEvVZU/ERDqrr92I4IRKio0hGry51jxwyaY2l5w4lB60R+MYanVjlLWAenBCkLSxgpm7BNXDoaSwcuGQd9biXiwlGEQffLBkNsgizrNotO1gdnInVBWTU/i3og5tgqSdu4+kDjDOwX2Y0d/QKqx+JxxGvz/90PikiYYWH51EjGqJtJtM/+tc1peAgyIDgle0TOM1VCVw5P2yBifoN2zPP/Q1A==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=meinberg-usa.com; dmarc=pass action=none header.from=meinberg-usa.com; dkim=pass header.d=meinberg-usa.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meinbergfunkuhren.onmicrosoft.com; s=selector1-meinbergfunkuhren-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HsuCXHuarHpEZTi5Gl/i5dFU4if9nYaI27U/1UJsBmA=; b=aQoZlpmzDghgDajk9XtZ4mF+ydUqy3Rm7hzNM7LNj4f2J39Q6CU/bqBc1yNDBNnaIQbg2CLfxCN5REtbtQ22DJleBpoSXXACyIY3qA2mMeXBcmoFah7VjC8/5ph4zIVEDNiYXhmgqfrKvx5LBYV8aAzWmHDRi3BtH99JYpBEb/M=
Received: from AM7PR02MB5765.eurprd02.prod.outlook.com (2603:10a6:20b:102::15) by AM7PR02MB6355.eurprd02.prod.outlook.com (2603:10a6:20b:1c0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.22; Mon, 30 Nov 2020 21:17:57 +0000
Received: from AM7PR02MB5765.eurprd02.prod.outlook.com ([fe80::d022:fca0:630d:905f]) by AM7PR02MB5765.eurprd02.prod.outlook.com ([fe80::d022:fca0:630d:905f%6]) with mapi id 15.20.3611.031; Mon, 30 Nov 2020 21:17:57 +0000
From: Doug Arnold <doug.arnold@meinberg-usa.com>
To: Miroslav Lichvar <mlichvar@redhat.com>, Watson Ladd <watsonbladd@gmail.com>
CC: NTP WG <ntp@ietf.org>
Thread-Topic: [Ntp] Comments on Miroslav's NTP v5 proposal.
Thread-Index: AQHWu+sPbDZeID9FfUi710FW5mEjr6naT+AAgAahAwA=
Date: Mon, 30 Nov 2020 21:17:57 +0000
Message-ID: <6B35BF9C-EC1A-4EA7-8D80-AAE7D0CFD728@meinberg-usa.com>
References: <CACsn0cn8ULX5f_PQVbDsrirPnGHVPWGgMqXn52n_T4P5ELkKgQ@mail.gmail.com> <20201126110406.GQ1734865@localhost>
In-Reply-To: <20201126110406.GQ1734865@localhost>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.43.20110804
authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=meinberg-usa.com;
x-originating-ip: [64.30.82.72]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 1f7aea7d-c01a-4f98-96a4-08d8957568bc
x-ms-traffictypediagnostic: AM7PR02MB6355:
x-microsoft-antispam-prvs: <AM7PR02MB6355C89F780D58AF352C4F5ACFF50@AM7PR02MB6355.eurprd02.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: YVsH4zzgIW98c2a4xlHj7GyL21rS9O//GqPVMlBfiw7BRAa93t5yoTAgs0bOhxBvOYhMsM8/YeAkdRjJOnxESxX/OQK9XQmBvYSibXQKj7eu8mkrNfu0C8dvq3XDU0YNxn3sasem2kFUL1MZsGt8+OF6ONyYoj0Jm53eBbJpyVD1wYuZrfjBkXc7nNnhMStiqHHTNTXYVPFEU4BpD3QivhYD2ff3wvXYUO8rYAub12sSKFfry5dXO7kBp6l+vHFj7GbcO+zpYBUTEWWvP2jNfg2uIyPvIoY+X6ZCmHnrUgdCNaN9E/8UagsQJAi6BP2YV4gSGSih/ZzFBYbotETFw9TUVMraeMO1yBWyhOAtyUPnnLjoRjT22yw6SO4YgFjX5qLlMHGAa7yTNscDhEQ1GA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR02MB5765.eurprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(39830400003)(366004)(376002)(346002)(396003)(136003)(2616005)(66946007)(966005)(36756003)(6486002)(44832011)(4326008)(66446008)(110136005)(6512007)(2906002)(66476007)(6506007)(64756008)(478600001)(186003)(316002)(26005)(8936002)(66556008)(91956017)(76116006)(86362001)(8676002)(5660300002)(33656002)(71200400001)(83380400001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: Ft4L72WXcAPy5vNEigzoxUdkdQpG4cRTOUY6G/PUxUYxQNCxeWoEMHjD2UJjPRo619TqUP+xOc9gf5Gt6AUGilngmYPClI8mQtUwIECg1wvSL2NXTszNz+Lxxkt7NbL2heMe2270I5/5liu+kcRe9FlduqVAsdGQMGF3oRi4gfXzih787jtp9tuef/eCMDLct+iAdq1GiIqnWseB1r5noh+LBnoezPBnxueY8Tmb7vU4hsvbZan6hRzqyZuUBcn+ogb+6uOB7zZxQWLtWnKDsKSgYa4kU5+dVA3lQmeR7tkY6zEAiqOOD+W56V1ASixL3uxi9kA1y6+Gz9cglYu5iEov1s/tjUc9ehGw95N1fjqtV0TWAN0U2LYV6/wZlfczFKwTdtZiYqaq5RDuo3nHTDBoaS/nhZ+1lrdrN+kkrlNzQb5vtEyiaYubiFvYngR79WLoE7n9uaaPJXNjMKsELh3vQKu6DQbqsQHVqYmx6B+eSDxJ5aIN5FYPBSEmh4Afp07R7C/cGANxykM+EmREzwydwYc5ywwVxlq0/blsPT0m7aSekfwIqHp1xKCV8wIkPV2RruG0sOrjr9P2QWpqJeZ2Ht8fu9DFfjc678Vm9w0FOPafn02YhOc9RBcXJ8VeXnP3Rgm7MY3E6neDfzP5CKgpbIp5gOYyOMitN2UK+N8lKXy5X4QBwfBzNpCpAfHCTcAzAd1bgyIMpeot+5uCBJlD7uEZcH9VUUYpu+2DWKIirG7Eb+/tldtltGPSPfE4wz/lttkNXn/TtB85Mic3SSEn3iNOlmRL3lA82IxxalKfMZXiv4Pptfi0Esn1Z18DS+wLuPwUR7rbUM/k1W2RBPgyyLAxnApjZdQoDdpky2us5d69X5EKVBM9D0FE3vd6o/o0Dimv2sUQzsLPhxX5LtcwIQKkdjyckPiAwXs4va91NnvYFh6FBY3REJ6m6QEkfFuPCsvGs1+6HhKyZsuprqRMGpCis8ZcH4pQGotFd86mvDdi4RUYMMvO2H+6TL6P
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <50773A79198941459C7173CEE7B85E63@eurprd02.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: meinberg-usa.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM7PR02MB5765.eurprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 1f7aea7d-c01a-4f98-96a4-08d8957568bc
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2020 21:17:57.2921 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: d59904cd-769f-4368-8bd0-f5f435893a38
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: pN0e3eLQVbvmUVCyErPUdR68xMwQTqn+0JnHkzS0VQt4nLtMZfsugVCGCU8fJX7D6I8Y4jzjsyr4axiOX51OhHtK3PbBLntcfUBwNOuY2b8=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR02MB6355
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/eVDunQVt289ty5YEJrBdz4HMVwA>
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: Mon, 30 Nov 2020 21:18:03 -0000

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.

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.

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.

Doug

On 11/26/20, 6:04 AM, "ntp on behalf of Miroslav Lichvar" <ntp-bounces@ietf.org on behalf of mlichvar@redhat.com> wrote:

    On Sun, Nov 15, 2020 at 11:35:02PM -0800, Watson Ladd wrote:
    > The following are unsorted, rough comments. I agree sending them
    > outright before the meeting is probably suboptimal, but I need
    > something to do to keep me awake to the meeting. Obviously this is an
    > early draft, and I hope my suggestions are read as contributions not
    > criticisms.

    Thanks for the comments.

    > The data types need some evocative names. Maybe shim for the 16 bit
    > one? Not sure what works for the 32 bit one?

    I have no good suggestions here. Maybe "short", "medium", and "long"?

    > The distribution of multiple scales needs some careful thought,
    > especially leap smearing. Insofar as we need monotonic clocks, I'm
    > contemplating MJD as a basis for solving the problems leap smearing
    > were supposed to solve, but we might be stuck with leap smearing due
    > to the install base.

    It's not clear to me how timestamps in a MJD-based format would help.

    The "Monotonic Timestamp" from the draft is not supposed to have an
    epoch and it actually doesn't need to be from a monotonic clock. I can
    see how this could be confusing. There should be a better name for
    this timestamp and concept.

    > I'm not sure UT1 deserves a timescale. It's a comparatively slow
    > moving offset from UTC, updated every month. Would an extension to
    > propagate this difference work instead?

    How would an extension be better? Are you worried we will need more
    than 16 timescales, which wouldn't fit in the 4-bit field?

    There must be some demand for UT1 as NIST runs UT1-based NTP servers.
    That's the main reason why I put it there. I guess it's very
    convenient for some astronomers.

    > If Root Delay and Root Dispersion are propagated something needs to be
    > said about their proper updating. These values are used in source
    > selection, and so some degree of agreement across implementations is
    > desirable.

    I'd like to have a section on the metrics. Explain how they are
    supposed to work and where they can be used, but unlike RFC5905 not
    enforce any particular model of the clock.

    > The monotonic additional timestamps are an intriguing idea but I'd
    > like to know more about it. In particular the frequency to be
    > distributed seems pretty awkward. Maybe I'm imagining the application
    > entirely incorrectly.

    The goal is to give clients two separate signals so they can better
    measure their phase and frequency offsets. With a single signal there
    is always a compromise between phase and frequency accuracy, which
    leads to various issues.

    As a simple example, consider the kernel PLL used by ntpd. The
    monotonic timestamp could be set to the current system time adjusted
    by the current PLL offset. The "monotonic" time provided by the server
    would be very close to UTC (or another negotiated timescale), but its
    frequency would be more stable.

    I'm planning to make a demonstration of how this can improve stability
    in a long chain of servers.

    -- 
    Miroslav Lichvar

    _______________________________________________
    ntp mailing list
    ntp@ietf.org
    https://www.ietf.org/mailman/listinfo/ntp