← Engineering topics

How does TSN synchronize clocks across devices?

A storage inverter and a site controller log alarms three milliseconds apart. Which device acted first?

Where was the timestamp taken?

An inverter may timestamp a fault at its source, while a controller logs the arrival of a message. Transmission and queueing delays sit between those two observations. To reconstruct the event, identify what each timestamp measures and which clock supplied it.

Following a common clock

Time-sensitive networking uses gPTP, defined in IEEE 802.1AS, to distribute a common time reference. A grandmaster sends synchronization messages. On time-aware Ethernet links, port timestamps help estimate propagation delay between neighbours. Bridges account for residence time, and endpoints use the corrected timing information to adjust clock offset and rate.

Matching the site clock to UTC

A site can share time internally using a local reference. To compare its alarms with UTC logs at a dispatch centre, it also needs a traceable time source and correct conversion between time scales. One example is a satellite-disciplined grandmaster, with the timestamp format checked at the data collector.

What three milliseconds can tell us

If both source timestamps can each be off by two milliseconds, their difference can be off by four. A three-millisecond gap leaves the order ambiguous. During commissioning, apply a common test event to both inputs, compare the recorded timestamps, then repeat during a grandmaster changeover to measure error and recovery time.