summaryrefslogtreecommitdiff
path: root/README
blob: 596f8fec75ee68b5c5bd17702e538f6be6b29f7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PTP Clock reflector
===================

Reflector takes packets from a PTP (IEEE1588:2008) clock running on PTP domain
0, and makes it available on PTP domain 1 and also changes the clock
identification accordingly.

This allows making a local clock available on the network and reflecting it
back to the same machine for testing of PTP clock implementations.

Locally you can run ptpd from http://ptpd.sourceforge.net with
  ptpd -i eth0 -M -n -C
and a PTP slave clock, e.g.
  http://cgit.freedesktop.org/~slomo/gstreamer/tree/tests/examples/ptp/ptp-print-times.c?h=ptp
  ./ptp-print-times -d 1

Remotely you can run reflector with
  ./reflector

The PTP slave clock will now get the local clock time from the network with 2
round-trip times between the local and remote machine added. If the PTP slave
clock implementation works correct, the difference between the local clock and
the "remote" PTP clock should be approximately 0.