When viewed on a
sfptpd slave server, the topology file presents a PTP clock hierarchy diagram showing all clocks local to the slave server and PTP network elements between the slave and master clock.
- A PTP Boundary Clock would be visible in the file as a parent to the slave.
- A PTP Transparent Clock will also be visible in the topology file.
The topology file identifies the current state of the selected slave clock, the interface being used to receive PTP messages and the timestamping mode being used. Each clock in the topology is identified by its UUID which is derived from its MAC address. Nanosecond values between clocks are the offset values recorded during the last file update.
The following output is a example of a topology file currently showing alarm states.
alarms: no-sync-pkts no-delay-resps
interface: eth2 (eth2)
In the above example, the slave is in an alarm state indicating that Sync messages and Delay_Response messages are not currently being received from the master clock.
The topology file can be periodically monitored, for example, using a script to extract key fields, to monitor the current connection state and synchronization status of the PTP slave.