Von: Miroslav Lichvar <mlich...@redhat.com> An: Richard Cochran <richardcoch...@gmail.com> Kopie: Armin HAMAR <armin.ha...@sprecher-automation.com>, Linuxptp-users@lists.sourceforge.net Datum: 02.07.2019 09:37 Betreff: Re: [Linuxptp-users] PPS to Linux PTP offset/delay?
On Mon, Jul 01, 2019 at 08:10:43PM -0700, Richard Cochran wrote: > On Mon, Jul 01, 2019 at 03:53:20PM +0200, Armin HAMAR wrote: > > Like it's about 300ns for the PPS and -/+10ns for the output of linux PTP > > the delay is around 938 which looks > > for me pretty high for a point to point connection? > > No it isn't. You need to consider the delays from the MAC through the > PHY. These can be greater than one microsecond on the i210. The igb driver compensates the delays for the I210. So, with two directly connected I210s (short cable) the measured delay should be close to zero. It's not perfect, but probably more accurate than anything else using MAC timestamping supported by the kernel. That also means the I210 can be used as a reference to measure the delays of another card (on <= 1Gb speeds). Those ~938 nanoseconds is the TX+RX timestamping error of the other end. If the clocks can be synchronized independently from their HW timestamping (e.g. PPS input/output), the measured offset should correspond to the (TX-RX)/2 error. When both TX+RX and (TX-RX)/2 are known, TX and RX can be calculated. -- Miroslav Lichvar For me it's still a bit unclear why the PPS delay of the two cards is so low/high compared to the PTP4L output. Should it then with compensation not be very close together? So these are the ptp4l values (from the slave): ``` master offset -5ns path delay 938ns ``` And from the LeCroy 10GS/s 600MHZ OSCI i get: ``` master offset -/+6ns. path delay ~300ns ``` A little bit irrateating is the i210 pps as it's 50/50 for some reason (did read in the igb_pps that this is normal). Cable is about 3m in lenght copper. -- Armin Hamar
_______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users