On Thu, Oct 19, 2023 at 02:40:30PM +0200, Nils Fuerste wrote:
> Hello everyone!
> 
> I am trying to use a NIC as a PTP GM with any external sync sorce. I have a
> PC with a dual port NIC (82599ES 10-Gigabit SFI/SFP+) connected to an
> embedded device over Ethernet. I use a SFP-to-Ethernet adapter to translate
> from SFP+ to Ethernet. Both devices need to be synced but I cannot use GPS
> or other external clock sources. My idea is to use the NIC as a PTP GM and
> serve the embedded device with PTP. What I am not sure about is if I need to
> use phc2sys to sync NIC and the physical clock of the machine hosting the
> NIC? What quality of sync can I expect?

You can leave the clock of the NIC running free if you don't need the
client's clock to be accurate, only synchronized to the server.

> ptp4l[2023/10/19/12:28:10]: state=2 rms  222 max  518 freq  +1020 +/-   0
> delay 20436 +/-  13
> ptp4l[2023/10/19/12:28:11]: state=2 rms 968245340 max 999999669 freq   +992
> +/-   0 delay 20507 +/-  36
> ptp4l[2023/10/19/12:28:13]: state=2 rms 433012546 max 999999740 freq   +921
> +/-  28 delay 20559 +/-  31

Those errors are almost exactly 1 second, which is very suspicious. It
could be a driver bug. What kernel version do you use? It would help
if you could get a third device and see if it works better as a server
or client to determine on which side is the problem.

-- 
Miroslav Lichvar



_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to