Grandmaster, boundary clock, and transparent clock: the roles in a PTP network
PTP (Precision Time Protocol, IEEE 1588) distributes time across a network with an accuracy of well under a microsecond. This is only possible if the network is properly configured. In this article, you will read about the roles devices have in a PTP network and what to look out for.
The grandmaster
The grandmaster is the source of time in the PTP network. Usually, this is a time server with a GNSS receiver (GPS, Galileo) and a stable oscillator. If there are multiple time sources, the devices automatically select the best one as the grandmaster. If that one fails, the next one takes over. This is called the Best Master Clock algorithm.
The slave (or 'time receiver')
A slave is a device that has its clock adjusted by the grandmaster: a server, a measuring system, a camera, or a safety relay. In newer documentation, this is called a 'time receiver'.
The boundary clock
A boundary clock is a switch or device that receives time on one side (as a slave) and distributes time itself on the other side (as a master). As a result, the grandmaster does not have to communicate with all devices simultaneously, and the latency per network segment is measured 'cleanly' again. Boundary clocks are useful in large networks and between different network segments.
The transparent clock
A transparent clock is a switch that forwards PTP messages but measures how long each message has 'lingered' within the switch itself. It embeds this dwell time in the message so that the receiver can correct for it. In this way, the switch does not cause any inaccuracy.
And regular switches?
PTP also works over switches that do not support the protocol, but the accuracy is lower and less predictable. Queues on busy switches cause varying delays. For microsecond accuracy, all switches in the path preferably have boundary or transparent clock support.
What do you pay attention to during the design?
Select the correct profile: for example, the standard profile, the Power profile for energy grids, or a telecom profile. All devices must use the same profile.
Multicast or unicast: not every network allows multicast. Some profiles work with unicast, but that requires more configuration.
Redundancy: ensure at least two grandmasters so that a failure does not affect the entire network.
Verification: Regularly measure the actual deviation of the slaves. Only in this way can you be certain that the accuracy is achieved.
Need advice?
BerdoTime supplies Mobatime PTP grandmasters and advises on the design of your PTP network. Read more about our time servers or call 085-4000265.



Comments