This file shows how to configure sfptpd to act as a PTP master, using the NTP daemon as the reference:
- An NTP sync module is instantiated using the
sync_moduleoption:- The key-id and key-value are set for authenticating with NTP
using the
ntp_keyoption.
- The key-id and key-value are set for authenticating with NTP
using the
- A PTP sync module is instantiated using the
sync_moduleoption. - The PTP sync module is configured to act as a PTP master by using the
ptp_modeoption. - The master also has
ptp_tx_latencyandptp_rx_latencyoptions that can be used to compensate for latency between the NTP daemon and interface (see PPS Measurements). - Any PTP traffic is transmitted using hybrid mode by using the
ptp_network_modeoption in the generic[ptp]section (see Hybrid Mode).
Note: NTP uses UTC time - not atomic (TAI) time. When
sfptpd is configured as a master clock, it uses UTC time. Therefore ensure that the ptp_utc_offset parameter in the sfptpd master config file is set to a value of 0.