Clock synchronisation: costs, accuracy and reconciliation

Rack servers and network equipment illustrating clock synchronisation in trading infrastructure
Photo by panumas nikhomkhai on Pexels

Why clock error becomes an operations cost

A 100-microsecond clock error costs a broker a trustworthy latency record. It can make an order appear to reach a venue before the strategy generated it, distort execution reports and complicate an incident review. The operational cost is not just buying a time source. It includes diagnosing inconsistent event order, defending records and finding out whether a delay came from the strategy, network or venue.

Clock synchronisation keeps system clocks close to a reference. Timestamp reconciliation then checks and, where necessary, adjusts event records so data from separate hosts can be compared on a common timeline.

These are related controls, but not the same job. A well-synchronised server can still produce misleading records if different applications timestamp different points in the order path.

Start by defining which events need comparison: strategy decision, order creation, NIC transmit, gateway receipt, venue acknowledgement and fill processing. Record the clock source and timestamping method alongside each event. That metadata is essential when an engineer needs to distinguish a clock jump from real processing delay.

Choose a benchmark that matches the path

NTP is often adequate for business systems, logs and services where millisecond-level agreement is acceptable. On a controlled data-centre LAN, a well-configured NTP client commonly stays within roughly 0.1 to 2 milliseconds of its source. Internet paths, congestion, virtualisation and client polling can widen that range.

For tighter trading measurements, IEEE 1588 Precision Time Protocol (PTP) can distribute time with sub-microsecond accuracy when the network and endpoints support it. A practical host-level range is about 0.1 to 5 microseconds with hardware timestamping and a properly engineered path. Software timestamping can sit around 10 to 100 microseconds, depending on load and operating system scheduling. Treat these as typical operating ranges, not guarantees.

Check the point at which a timestamp is taken. An application timestamp taken after a thread wakes is not equivalent to a NIC hardware timestamp taken as a packet leaves the interface.

Linux systems commonly expose hardware timestamps through the NIC's PTP Hardware Clock (PHC) and kernel timestamping interfaces. Verify that the application reads the intended clock and that the PHC is kept aligned with system time.

Typical costs and benchmark ranges

The figures below are typical market ranges in US dollars. They are planning estimates, not quoted prices. Hardware and implementation costs vary with redundancy, rack location, vendor support and the number of hosts. Accuracy assumes a suitable local network and correct configuration.

Item or setupTypical benchmark rangeTypical cost range
LAN NTP appliances, pairAbout 0.1 to 2 ms client offsetUS$1,000 to US$6,000 per pair
GNSS PTP grandmasterAbout 30 to 100 ns at the source output; host accuracy depends on the pathUS$3,000 to US$15,000 per unit
PTP-capable NIC with hardware timestampingAbout 0.1 to 5 us host offset on a suitable PTP pathUS$250 to US$1,200 per server
PTP boundary-clock switchTypically supports sub-microsecond distribution when correctly configuredUS$2,000 to US$15,000 per switch
Commissioning and integrationIncludes source design, configuration, validation and runbooksUS$5,000 to US$25,000 per site
Monitoring and alertingTrack offset, source state, packet delay and holdoverUS$3,000 to US$20,000 per year

Do not multiply the grandmaster price by the number of servers. A common design uses redundant reference clocks feeding PTP-aware switches, then equips only the hosts that need hardware timestamping. Include antenna installation, cabling, switch licences and support in the estimate. A GNSS source also needs a viable antenna view, which can make rooftop access and cabling a larger cost than the receiver itself.

Design for failure, not only steady state

A GNSS grandmaster provides an external reference, but satellite reception can be lost or spoofed. Use two independent time sources where the risk warrants it, and decide how the system behaves during holdover. Some grandmasters can maintain time from an internal oscillator after loss of reference, but drift grows with the holdover period and oscillator quality. Alert on loss of lock, source changes and estimated error, not just whether the service is running.

PTP needs a designed network path. Boundary clocks regenerate timing at selected switches; transparent clocks account for time spent forwarding packets.

Both can help, but mixed vendor implementations and incorrect profiles can create hard-to-find offsets. Keep timing traffic in a documented network design, check multicast or unicast behaviour, and validate every switch and NIC combination under representative load.

For each host, record the active time source, PTP domain, grandmaster identity, PHC state and offset from the system clock. Avoid silently stepping a clock during active trading. Slewing corrects time gradually, while a step can create duplicate or out-of-order timestamps. Define what the trading application should do if offset exceeds its tolerance, including whether it continues trading, degrades or stops.

Reconcile events with a repeatable checklist

Reconciliation should preserve the original evidence. Keep raw timestamps, corrected timestamps, the applied offset and the method used to estimate it. Do not overwrite source records with a corrected value. Use a monotonic clock for measuring elapsed time within a process, and UTC wall-clock time for correlating events across machines.

  1. Label each timestamp. Store host, process, event type, clock source, precision and whether it came from software or hardware.
  2. Measure offsets continuously. Export PTP or NTP offset, path delay, source state and clock steps to monitoring. Alert on threshold breaches and source changes.
  3. Preserve raw data. Retain original event times and correction metadata so an audit or incident review can reproduce the calculation.
  4. Compare like with like. Align event definitions before calculating strategy-to-gateway or gateway-to-venue latency. Document whether processing, queuing and network transit are included.
  5. Test abnormal conditions. Simulate source loss, failover, host reboot and network congestion. Check both alert delivery and application behaviour.

Also look for these common sources of mismatch during reviews:

  • One host reports UTC while another application logs local time without an offset.
  • A virtual machine's clock is adjusted by both the hypervisor and a guest time service.
  • Logs round timestamps to milliseconds even though the underlying system captures finer precision.
  • Clock correction is applied without retaining the estimated offset or its uncertainty.

Make clock health part of operations

Assign ownership across network, Linux or Windows platform, application and operations teams. Put the clock source, allowed offset, failover behaviour and escalation path in the service runbook. A single dashboard should show offset by host and venue-facing path, but retain enough detail to trace a change to a source, interface or switch.

Useful infrastructure coverage from Trading Technology can help teams compare the wider platform choices around these controls. For the clock system itself, review alert thresholds against the application's actual tolerance and the timestamp precision used in its reports. A nominal sub-microsecond target has little value if application events are recorded at millisecond precision.

Which order-path event should your team treat as the authoritative timestamp, and can you prove that every system comparing it uses the same clock basis?

Frequently Asked Questions

What is clock synchronisation in trading systems?

Clock synchronisation keeps server and network-device clocks aligned with a common time reference, usually UTC. It lets teams compare events across hosts, but timestamp accuracy also depends on where and how each application records an event.

Is NTP accurate enough for a broker?

NTP is commonly suitable for logs and services that can tolerate millisecond-level offsets. Trading latency measurement often needs PTP and hardware timestamping, particularly when teams compare events separated by only a few microseconds.

How much does a PTP clock synchronisation setup cost?

Typical planning ranges include US$3,000 to US$15,000 per GNSS grandmaster, US$2,000 to US$15,000 per PTP-aware switch and US$250 to US$1,200 per hardware-timestamping NIC. Commissioning and monitoring add site and recurring costs, while redundancy and installation requirements affect the total.

How should trading firms reconcile timestamps from different servers?

Preserve each raw timestamp and record its host, clock source, event definition and timestamping method. Estimate and store offsets separately, then compare events with matching definitions and a documented UTC basis.