[chrony-users] NTP over PTP |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-users] NTP over PTP
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Thu, 19 Aug 2021 15:56:24 +0200
- Authentication-results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mlichvar@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629381391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=p+lod5gnS5Jl0Nj2SYSSCWhEJt0Pu9BUDEWU45JJAk4=; b=gTBCvAsm322KGDvtIvAUj0Lxws0li+fgwLZ2JuuTejk4WvPCdZdMJBh266UiuQEBloPawj G260Jkza1r5zDaIqqAOU+N/GbFboKHJ6d9XHz7yuroZSFb5F7n1EV8vgyTqkNhQpbfY9HI Ettxt0BK7xTJN9zw31F5WIr36hE8iLw=
There is a new experimental feature available in the latest code in
git. NTP messages can be exchanged as a payload of PTP messages to
enable hardware timestamping on NICs that can timestamp PTP messages,
but not NTP messages. This improves accuracy and stability of
synchronization while avoiding the security and other issues of PTP.
I tested it with three NICs: XL710 (i40e), BCM5720 (tg3) and BCM57810
(bnx2x). It works on the first two, but doesn't work on the third one.
It seems to check for the PTP multicast address in addition to the PTP
port, version and message type. This means it's unusable even for the
standard PTP unicast mode. I don't know if this limitation is in the
hardware or firmware (where it could potentially be fixed).
If anyone is willing to test the new code and has access to other NICs
which have a "ptpv2" filter but not the "all" filter listed in the
ethtool -T output, please let me know if it worked for you or not.
Both TX and RX timestamping printed by chronyc ntpdata should be
hardware and the stddev value in sourcestats should improve
significantly.
For example, synchronization between two BCM5720 using plain NTP:
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
10.43.134.28 16 7 15 -0.006 0.275 -3ns 1312ns
and NTP-over-PTP:
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
10.43.134.28 16 10 15 -0.000 0.019 -0ns 84ns
The new ptpport directive is documented here:
https://chrony.tuxfamily.org/doc/devel/chrony.conf.html#ptpport
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.