PTP Grandmaster, Boundary and Transparent Clocks: A Practical Guide

Blog · PTP

PTP Grandmaster, Boundary and Transparent Clocks: A Practical Guide

The three clock types that define every IEEE 1588 timing fabric — grandmaster, boundary clock, transparent clock. What each one does, where each one belongs, and why getting the choice right matters more than getting the protocol right.

Lasse Johnsen
Lasse JohnsenCo-founder & CTO, TimeBeat
9 min read
PTPArchitectureIEEE 1588

TL;DR

  • A grandmaster is the authoritative time source — disciplined to GNSS and serving PTP downstream. Every PTP fabric has at least one (ideally two for redundancy).
  • A boundary clock terminates PTP on its upstream port and re-originates it on its downstream ports — it disciplines its own clock and acts as master to the next layer.
  • A transparent clock doesn't terminate PTP; it measures the residence time of each PTP message as it transits the device and writes the correction inline.

Grandmaster: where trust originates

A PTP grandmaster is the authoritative time source for an IEEE 1588 network. It takes time from a primary reference (almost always GNSS), disciplines a local oscillator to that reference, and distributes the disciplined time downstream via PTP messages. Every other clock in the fabric is ultimately tracking the grandmaster, so its accuracy and reliability set the upper bound for everything else.

Production grandmasters are hardware appliances or PCIe time cards with hardware-grade GNSS receivers, OCXO/Rubidium/DOCXO holdover oscillators, and PTP transports that handle multiple profiles simultaneously. Software-only grandmasters running on commodity NICs exist for lab use but cannot deliver the precision a production network depends on.

Boundary clock: the workhorse of every real network

Real networks have multiple switches and routers between any two endpoints, and the variable queueing delay through each switch is enough to destroy PTP precision if the protocol can't compensate for it. Boundary clocks solve this by running PTP on every port: upstream-facing ports act as slaves to the master, downstream-facing ports act as masters to the next layer.

Each boundary clock disciplines its own internal clock to the upstream master and then re-originates fresh PTP messages downstream. This resets the network jitter accumulation at every hop, allowing PTP to traverse arbitrarily complex topologies. The trade-off is that each boundary clock contributes its own residual error to the chain — typically ±30 ns per hop on a Class C BC. Six hops costs you about ±200 ns from the boundary clock chain alone.

Transparent clock: the simpler alternative

Transparent clocks take a different approach to the same problem. Rather than terminating PTP and re-originating it, the transparent clock measures how long each PTP message spends inside the device (the residence time) and writes that residence time as a correction field on the message before forwarding it. The downstream slave subtracts the accumulated residence time from its delay calculation, effectively removing the switch's contribution to network jitter.

Transparent clocks are simpler to certify and remain common in industrial automation deployments where switch hardware is constrained. Modern enterprise and telecom deployments mostly lean toward boundary clocks because they offer better operational visibility and more predictable failover behaviour.

Choosing between BC and TC

Boundary clocks for any deployment where you want operational visibility, observability per hop and predictable BMCA failover. Transparent clocks for embedded industrial deployments where simpler certification matters more than per-hop visibility. Don't mix them on the same fabric without thinking it through.

How they work together

A typical production deployment looks like this: one or two grandmasters at the top of the timing hierarchy, a layer of PTP-aware boundary clocks across the network fabric, and a population of slave clocks at the leaves (NICs in servers, FPGAs in trading systems, embedded clocks in cameras and base stations). Every device speaks the same PTP profile with the same defaults, BMCA elects a single active grandmaster, and the boundary clock chain delivers the grandmaster's time downstream with bounded error.

When something goes wrong — a grandmaster fails, a GNSS antenna is unplugged, a boundary clock reboots — BMCA detects the change and the timing fabric reconfigures within seconds without human intervention. That's the design intent, and it works in practice when the deployment is correctly configured. Most PTP failures we see in the field are not protocol failures; they're failures to specify or audit one of the three clock types correctly.

Frequently asked questions

What is a PTP grandmaster clock?+
A PTP grandmaster is the authoritative time source for an IEEE 1588 network. It disciplines a local oscillator to a primary reference (almost always GNSS) and distributes the disciplined time downstream to every other clock on the network via PTP messages. Production grandmasters are hardware appliances with hardware-grade GNSS receivers and OCXO or Rubidium holdover oscillators.
What's the difference between a boundary clock and a transparent clock?+
A boundary clock terminates PTP on its upstream port, disciplines its own clock to the upstream master, and re-originates fresh PTP messages on its downstream ports. A transparent clock doesn't terminate PTP — it measures how long each PTP message spends inside the device and writes the residence time as a correction field on the message before forwarding it. Boundary clocks give better operational visibility; transparent clocks are simpler.
How many boundary clock hops can a PTP fabric tolerate?+
It depends on the per-hop error budget of the boundary clocks and the overall time-error budget the application requires. Modern Class C boundary clocks contribute about ±30 ns per hop, so a six-hop chain costs around ±200 ns from the BC chain alone. For a 5G fronthaul fabric with a ±1.5 µs Class 6 budget, that's tolerable. For a sub-100 ns financial timestamping deployment, six hops is too many.
Can a single device be both a boundary clock and a grandmaster?+
Yes. Many production grandmasters also act as boundary clocks on their downstream ports — they run a GNSS-disciplined local clock as the master clock, and serve PTP downstream from one or more network ports configured as boundary clock master ports. The combination is common in compact deployments where rack space matters.

Talk to us

Got a time-sync question like this in your network?

Book a 30-minute call with a Timebeat engineer — we will tell you which products fit, what the install looks like and what it would cost.