On Tue, Mar 15, 2022 at 04:06:31PM +0100, Marco Davids (SIDN) via 
Linuxptp-users wrote:
> I have a setup with an interface being a PTP client (HW timestamping, a nice
> Meinberg GM and such) and phc2sys supplying time from it to another
> interface's PHC in the same server.
> 
> Is there anything to be said about the accuracy/precision on the second
> interface's PHC with this approach?

The accuracy and stability is impacted by asymmetry and jitter of the
PCIe latency. Half of the delay printed by phc2sys gives you an upper
bound, assuming in one direction the latency is zero and the other
direction taking all the delay, similarly to the root delay in NTP.

There is a PCIe feature supported on some HW called Precision Time
Measurement (PTM) that uses HW timestamping of PCIe messages and
should at least in theory significantly improve the accuracy and
stability, but the support in the kernel doesn't seem to be finished
yet.

If you need best performance, you should synchronize the PHC through
the system clock. That is, instead of

phc2sys -s eth0 -c eth1

use

phc2sys -s eth0 -c CLOCK_REALTIME
phc2sys -s CLOCK_REALTIME -c eth1

Ideally, the NICs should be the same model. That will cancel out
asymmetries in the HW timestamping errors, which can be larger than
the PCIe asymmetry.

-- 
Miroslav Lichvar



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

Reply via email to