[time-nuts] Precision Time Protocol – Windows 10 implementation

Adam Kumiszcza akumiszcza at gmail.com
Thu Aug 8 11:26:11 UTC 2019


Hi everybody! My first post here, I hope the subject is adequate for this
mailing list.

I'm using a tiny layer 1 NTP server consisting of Raspberry Pi 3B+ with
Ublox MAX-M8Q expansion board providing GNSS (currently GPS, Galileo and
Glonass, sometimes I switch to Beidou, too) reference with PPS + a simple
patch antenna hanging near the window. Offset, jitter and rms are most
often smaller than 1 µs. The server is included in NTP pool.

I'm using several Windows 10 machines on the same LAN, all using NTP client
software from Meinberg. The typical offset and jitter in those are about
100-500 µs. I would like to make it lower. I've heard that one of the
latest versions of Windows 10 provides support for PTP protocol (IEEE
1588v2). Hence my questions:

1. Did anybody try using it on Windows 10 already? From what I can tell
right now, there's only a demonstration web site showing it works when
using Ubuntu Linux as a virtual machine [1]. Or should I wait a bit for
more robust implementation?
2. Do I guess correctly that current implementation of PTP works only on
Ethernet? Some of the computers are on wlan.
3. Is there any other way of making the clients' time offset lower?

I've already tried setting PTP on the Raspberry Pi 3B+. It needed a kernel
recompilation with a patch I found here: [2], but I'm not sure it works
correctly.

As you can see on the screenshot below, PTP appears here as a server, but
I'm not sure if it's used at all.
[image: status16.PNG]

Ptp4l status shows this:

pi at zegar:~ $ systemctl status ptp4l
● ptp4l.service - Precision Time Protocol (PTP) service
   Loaded: loaded (/lib/systemd/system/ptp4l.service; enabled; vendor
preset: enabled)
   Active: active (running) since Wed 2019-08-07 12:32:28 CEST; 24h ago
     Docs: man:ptp4l
 Main PID: 323 (ptp4l)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/ptp4l.service
           └─323 /usr/sbin/ptp4l -f /etc/linuxptp/ptp4l.conf -i eth0

Aug 07 12:32:31 zegar ptp4l[323]: ptp4l[6.631]: port 1: link up
Aug 07 12:32:31 zegar ptp4l[323]: ptp4l[6.631]: port 1: FAULTY to LISTENING
on FAULT_CLEARED
Aug 07 12:32:31 zegar ptp4l[323]: [6.631] port 1: link up
Aug 07 12:32:31 zegar ptp4l[323]: [6.631] port 1: FAULTY to LISTENING on
FAULT_CLEARED
Aug 07 12:32:38 zegar ptp4l[323]: ptp4l[13.526]: port 1: LISTENING to
MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
Aug 07 12:32:38 zegar ptp4l[323]: ptp4l[13.526]: selected best master clock
b827eb.fffe.006e65
Aug 07 12:32:38 zegar ptp4l[323]: ptp4l[13.526]: assuming the grand master
role
Aug 07 12:32:38 zegar ptp4l[323]: [13.526] port 1: LISTENING to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
Aug 07 12:32:38 zegar ptp4l[323]: [13.526] selected best master clock
b827eb.fffe.006e65
Aug 07 12:32:38 zegar ptp4l[323]: [13.526] assuming the grand master role

Thanks in advance for any suggestions!

Adam Kumiszcza

[1]
https://techcommunity.microsoft.com/t5/Networking-Blog/Windows-Subsystem-for-Linux-for-testing-Windows-10-PTP-Client/ba-p/389181
[2] https://github.com/twteamware/raspberrypi-ptp/issues/2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: status16.PNG
Type: image/png
Size: 43646 bytes
Desc: not available
URL: <http://febo.com/pipermail/time-nuts_lists.febo.com/attachments/20190808/ef221b7e/attachment.png>


More information about the Time-nuts_lists.febo.com mailing list