Re: [Ntp] ntp over ptp

Doug Arnold <doug.arnold@meinberg-usa.com> Tue, 12 March 2024 21:05 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 AA6A3C14F5F8 for <ntp@ietfa.amsl.com>; Tue, 12 Mar 2024 14:05:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.106
X-Spam-Level:
X-Spam-Status: No, score=-2.106 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=meinberg-usa.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6hQk11lam8F5 for <ntp@ietfa.amsl.com>; Tue, 12 Mar 2024 14:05:34 -0700 (PDT)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2107.outbound.protection.outlook.com [40.107.8.107]) (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 4DA49C14F690 for <ntp@ietf.org>; Tue, 12 Mar 2024 14:05:33 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fWzM+USM266rgEBMxyA2kJx6XswHG00tWC7BpKEVwNEiIPO44jnFiNC50AImbTJL3vOigkyVWDsm1E7sN4cyziPcakFYzfgHN77uQe6c2/nYuE+RPa+ZPEAVVK6GkpDi+GWAOlG0Lu2knWHxKyEjTxyv2MoW+tDOqkI4q9fsm7C+X+D1sTm91scClUQsBc0ocy2yGf3x0qpyWydNT8EIBbrzDkHKK5jpo6O+MsHnDXaB60GIqkIw4nbw4K4x/SlDtu8SwaZMBJBuUEs4q5gRdvuW0hHDVdA4ViMK477UO3lHqqdNM3eq+jk+fSdW36BvMThYXRtnxDHvKYH6spRYPw==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KCnsAU+uW3hf+rn4wIqqRvf7lQXftVyu72pmwaKMknw=; b=TLPPueIg7JC94cORvwGCNXO3kLCzl6keHHbf3jGecaT9wPvHcTy3olz9vuvMDv+Zv9S3ZqtMVf+cQBLc4zKIFWwhS/AYCIpyeUmlFqAzPLozWS/XMA78bOcK9lL+3wd/KKQ2WhjCjQpCUh74DHaGtraAgiibRjUkMsYVXYrc9L3g7A8VeB+XobvEi4HLJsQRo21y991tm25HrHCb/Aac4S0gVHZYLpoYs8olC2CZDyqNDPs2lKDJtJhp6vAXZNkBuIesk4q/Lap1vsVA1k5FsABiDe9ciuhmnfbtJjpVVXMLMz2nQVMq+BO+evoYfgGWOXZ5B0Hl8qggA/1Em9s1tg==
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=meinberg-usa.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KCnsAU+uW3hf+rn4wIqqRvf7lQXftVyu72pmwaKMknw=; b=ro38bNSODFke25wme0uBXpGTXHfcVABoPelzuyGNQx9va54YwpZEvdbZO8jjAUqaV+WfHUYTQoDaEpDnmnZTWYp+mHagQUFlNzAzaDorR47MHTY5GAKFVspnq43xXLB/doGKINxtsQqCUL0IfFa6CKf980ZWtRKOfcJVHdRbOoxvaeP40YRLNXoViA+73NP3qLj5rXNYLNYMRsr1mSiCoUzKF+cIGB4rn6yterkDPkdD42PPSpbD2omauSxHhVyJi801+AsYR87RV3EnKjYsNyx63Zvl2Wm0cLZGZCUWz2dpi5RAfIxaqfTTPz0mnWWynWHipF2tXDC48hsi/6D2qQ==
Received: from AM7PR02MB5765.eurprd02.prod.outlook.com (2603:10a6:20b:102::15) by DB8PR02MB5770.eurprd02.prod.outlook.com (2603:10a6:10:fa::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36; Tue, 12 Mar 2024 21:05:30 +0000
Received: from AM7PR02MB5765.eurprd02.prod.outlook.com ([fe80::c71d:5537:6c18:1870]) by AM7PR02MB5765.eurprd02.prod.outlook.com ([fe80::c71d:5537:6c18:1870%3]) with mapi id 15.20.7362.035; Tue, 12 Mar 2024 21:05:30 +0000
From: Doug Arnold <doug.arnold@meinberg-usa.com>
To: Miroslav Lichvar <mlichvar@redhat.com>
CC: NTP WG <ntp@ietf.org>, Rodney Cummings <rodney_cummings_spm@hotmail.com>
Thread-Topic: [Ntp] ntp over ptp
Thread-Index: AQHadAbE4ivmIseaCUC7kTYRJ0lmPbE0QA2AgABVDtM=
Date: Tue, 12 Mar 2024 21:05:30 +0000
Message-ID: <AM7PR02MB57656F107CB59C73484BCB33CF2B2@AM7PR02MB5765.eurprd02.prod.outlook.com>
References: <AM7PR02MB5765C06778AC58E3B1AFC281CF242@AM7PR02MB5765.eurprd02.prod.outlook.com> <ZfB4K72uzmhsTsW5@localhost>
In-Reply-To: <ZfB4K72uzmhsTsW5@localhost>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=meinberg-usa.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: AM7PR02MB5765:EE_|DB8PR02MB5770:EE_
x-ms-office365-filtering-correlation-id: 07f17d21-c9a8-4a88-d1b6-08dc42d8264d
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: niL4r/+ts2X9j+75FpHIi6KFzHocCodrexfQt02QC9GSihVBbOteYFKztMUoPLBmO0xwubjMJOE0ixlLB8hyF7w8kuHCxWGXrx2iEWSCfdNtV/u8NpJiF/ZF7QcLWVJdY88muYL6TTO3egXvzRtyLsi+SzGXRJjuq3XcSi4pcoihTtNVyr0JF0maSRmJBe5kRORYC+i4g4q/fN/KcAS4BSA+CIi7bRhD9E6JypCvB6TuBqDtbYjEixfeblP5Y52T19yBq/vk43QmC/tB2FWXkJSzYUs8Ckp7zoEzm3qBzJXXzuC6pgVOQf8Mq4fSjabDV2vYI/p+ZAmliXmXr4mpKEQVMNNLEHEDapr1CEs89+fsYsAEhx99rlNHN3bYqZALDCTHaYUEHbYaxdkJKKaMoe37MhKR1XWQQE8R8aYRdeQgKJDRbWu2RhHi8Xw4LXueNmPnrs0G2S+a4TgWIepAtJiNdGQouTfWq0xJFNtgSkXyfskwvGp543BsUwegYwWWJYzkENfgPl82W9fbOp/xu7xgPN1Jjv4zcpX9HyRgLylteHAG7J4MGYqtOGYwUuS6C+3RuC2EP44R+5wCGqSU4YMwU9TXQjrFl7JjmBVLSvPFY1hGt8UUhV7wfI6e9Tb8gIbrq2EmKewZRwyvhl26Wi5m4Gl0VuHRIi4DsikB8FuTviusVoudx+XrmaM8FhRqtWQ5ECtp/T/75rcBNGotnbtzdGcl2Gqcpd5Xw1pYsnc=
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:(13230031)(1800799015)(376005)(38070700009); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: qaeU36f8q0R5DwSpgpGNV6q4e3L+Z/IUijEfFAXrfy8x331Fajzpx2ikh/nD7y7PCXvjsQuAVZXB68LfE8SA9AVhkcMFa54428ZSuP6HV6o2lJLDe5L6eAg+F6HB0I0NnqY6sbujDCh4TTkFT+N/OQdWcM8ERsIhogTRmhTIDcaEB4uw9aRGiwW3ZefqDRX+GqdXXKc/RPiXp4Y2kMB8bR3p6bmKamCqXGFhvJ2qIqvlTSO4DOsPQpGPV4GM0qYRxXzwvVFPDE0F15sXldie3XNTcHzaBCjOWICybn6wSUtO41n0aHlbykDJnSA+4q7CgrKJIPd8BjxpN2cN+v2zqaO6G5+MR4bsZkbuU+aGe9ldijyFuYW9xObFFTeWSS/D0qQVjhOt+vjNRAoJMExA9X3wWwqlm/SGkjdyUcf7/DSdtL+S7MPATrviN6OPdzSvQoOUnWnorSJyRh94RfUaR/veEI2sCoWGDwvmxaFW8OSH1gx7kmSAVoSKa9Cix6JqzNLK34huo5c/S4b24jzR2/IGgpHYs4eparf1ttUTTAhaldvcpnSe/DuZZErqsCPC8OXykz/HnJT0sL3iodh1H3DtOdzlYimRNO7oUIdOETumzQlmFo/G0n8NK4zjRgCkQxjXDU409EVhfMzMBGMfyNERO2rGOuy4u9CVv6Dbk+NlDTgkXPdMQYfyCd5pFjhBfMAmf1YkzeP7L+NaFc2qJplciKVvrcAWqQwX6bqzT5Au7wCB7w7qPgBZzSvlNH2ebTLYIrBzTQ8T8b/YNGHUcvFWHVW4W/gZ25l8YYMVRBgjHXl9Rdar1ancW19nmHAz+rLUpzhg7sOlZs3u3hPEgR8cmLnfLHLsbro0snM/UD0XXoif+tr7duCcfESTuyTo3bFcf5TGx9v4lc5+PSn7UqX/3+nJd6QUsqLM4aOh4aOHpmQ2mGkyt9o5lbem98tKArscYMkKoZZcFeoFK3PV6CvY7hGfflFE3WjDhoKkNSZk7MrggnTxQZpUek9wJEMljyrWmCptTyUxxqGoMj8GGWuY43k72ImOL7VzSIL2YwDEXpGBVm74iC161+ZlEZApBXTNwEdYWB8iVVvzu7qPgkE1793hovKEVrQb/V31hYCW6I4c73WCuB1Hp8eCRiLZH8j7UCHTO/iWbX75nmc6XIAJZTNCnZWe8vt4JKoZjNpbtCni3Lfh6cC0qnN7lzPIpkqY7s42YRC3H6vIQKbEqMHyMry78eVVMkYePnZTjgFptQ1f6G7s0o3EeOhsVlfPlR2o51tMuOtw5kqUREu4VJavq/9uyrzKB1XBLvas0+ZCuyRn7cP3snCAOZEee6vSrbSx48N0hm+T0IQdsZnUPmfmMr/5AGqSOlmucuVB5IDjpxXNds/qllb2n432df+++qKp+EP7iWKWgnC5g6PeHmx+AfWrMw7Xs9cFbCM9Y+DAO441FpHqoqUZ3P4mybtiBkOg2pFvQXQa4Zd15lCYu80vKpz6n0f2ikZ6q/NVJnLgDDnD+X094GGGup7GO3Usg0FkINTgLkP9l5jf4STUrUOkjvyf/q/1Ez/iH+hzthPbSCJTOuIGPaT+ovmkdRZdqTZkEXlIMq749378GJQNfQ==
Content-Type: multipart/alternative; boundary="_000_AM7PR02MB57656F107CB59C73484BCB33CF2B2AM7PR02MB5765eurp_"
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: 07f17d21-c9a8-4a88-d1b6-08dc42d8264d
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2024 21:05:30.2573 (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: jJEQW+Dj3D4kE+lsD8ekbqT7xcALXjGuWYsTjmvLTJLbpOXB9Pj4eN4S4k7JhHSbVyn3MZ5hyfBtFfD1PY3njl7WhjshEk+X0xSGZs1SjEs=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR02MB5770
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/_LjjWoGgk3ByRtZgS1ORUTtAs-k>
Subject: Re: [Ntp] ntp over ptp
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 12 Mar 2024 21:05:39 -0000

Now that there is a fair number of switches and routers that support PTP, several standards organizations have specified or proposed specifications for timing protocols that use PTP messages, including the PTP reserved EtherType, for new timing protocols that are not PTP.  The IEEE 1588 Working Group has had several discussions about this and there is a great deal of concern that the behavior of PTP capable equipment receiving messages from quasi PTP protocols is uncertain, and therefore makes PTP less reliable.

I have no objection to people defining new timing protocols, or to people copying aspects of PTP, but they should not use the reserved PTP EtherType in their new protocol.  The EtherType is the one thing that PTP implementations should be able to count on.

Doug


________________________________
From: Miroslav Lichvar <mlichvar@redhat.com>
Sent: Tuesday, March 12, 2024 11:43 AM
To: Doug Arnold <doug.arnold@meinberg-usa.com>
Cc: NTP WG <ntp@ietf.org>; Rodney Cummings <rodney_cummings_spm@hotmail.com>
Subject: Re: [Ntp] ntp over ptp

On Mon, Mar 11, 2024 at 11:20:42PM +0000, Doug Arnold wrote:
> The document draft-ietf-ntp-over-ptp-02 describes a mechanism to allow ntp to take advantage of PTP only hardware timestamping ability.  The mechanism uses only the (unicast versions of) Delay Request and Delay Response messages to transport the ntp request and response messages respectively.

NTP over PTP uses only the delay request message type. Delay responses
are not event messages, so they wouldn't trigger a hardware timestamp.
PTPv2.0 is used for better compatibility as PTPv2.1 is not recognized
by some hardware, e.g. the Broadcom NIC on Raspberry Pi CM4.

> The behavior of the protocol is that nodes in the TimeTransmitter state shall send Sync and Announce messages as well as answering delay response messages.  I believe that the document should be expanded to describe this requirement.  It would also be good to point out that the external port configuration option of subclause 17.6 is being used, as well as the end-to-end delay measurement mechanism.

PTP is used just as a transport for NTP. Valid PTP messages are
formed, but the hosts don't follow the E2E delay mechanism. There are
no announce messages or sync messages, no PTP states or any
interaction with real PTP clocks. It's strictly unicast messaging.
PTP and NTP-over-PTP can coexist in the same network each doing its
own thing. A single host can support both as long as different domain
numbers are used.

> This is starting to sound like a PTP profile needs to be defined to list these requirements.  The  rules for that are found in subclause 20.3 and states:
>
>
> "A PTP Profile should define the following:
>
>   *   Which of the best master clock algorithm options (see 9.3.1) is to be implemented

There is no BCMA. None doesn't look like an option that would meet the
requirements specified in that section.

>   *   Which of the configuration management mechanisms (see 8.1.4.3) is to be implemented

There is no PTP state to be managed.

>   *   Which of the path delay mechanisms, delay request-response (see 11.3) or peer-to-peer delay

None of the two. It's a custom delay mechanism which measures both
delay and offset in one exchange.

> A PTP Profile shall extend the standard only in the following ways:
>
>   *   a) The use of the TLV mechanism of 14.3
>
>   *   b) The specification of an optional best master clock algorithm (see 9.3.1)
>
>   *   c) The specification of an optional management mechanism (see 8.1.4.3)
>
>   *   d) The provisions of 20.2.2
>
>   *   e) The provisions of 7.3"

None of those seem to apply to NTP over PTP if I'm reading that right.

--
Miroslav Lichvar