---
title: "PTP: Timing accuracy and precision for the future of computing"
description: "Meta is rolling out Precision Time Protocol (PTP) across its data centers to replace NTP, moving clock synchronization precision from milliseconds to nanoseconds."
url: "https://swe.quest/articles/ptp-timing-accuracy-and-precision-for-the-future-of-computing-7cb5bf24683b59a5"
canonical: "https://engineering.fb.com/2022/11/21/production-engineering/future-computing-ptp/"
source: "Meta Engineering"
published: "2022-11-21"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 8
tags: ["time-clocks","datacenters","networking","open-source"]
---

# PTP: Timing accuracy and precision for the future of computing

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2022-11-21, 8 min read, Announcement. Original: [https://engineering.fb.com/2022/11/21/production-engineering/future-computing-ptp/](https://engineering.fb.com/2022/11/21/production-engineering/future-computing-ptp/)

## Summary

Meta is rolling out Precision Time Protocol (PTP) across its data centers to replace NTP, moving clock synchronization precision from milliseconds to nanoseconds. Accurate offset measurement depends on network latency being consistent and symmetric, so PTP uses hardware timestamping to improve consistency and transparent clocks to improve symmetry. Meta removed boundary clocks so every machine syncs directly with the Server Clock. Because off-the-shelf gear could not handle PTP at its scale, Meta built its own Time Appliance (a GNSS receiver plus a miniaturized atomic clock) and a PCIe Time Card, and has open-sourced the hardware, client software and transparent clock through the Open Compute Project.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Time & clocks](https://swe.quest/tags/time-clocks.md) (Distributed systems)
- [Datacenters](https://swe.quest/tags/datacenters.md) (Infrastructure)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- NTP basics ([easy posts on Time & clocks](https://swe.quest/tags/time-clocks.md?difficulty=easy))
- network latency ([easy posts on Performance engineering](https://swe.quest/tags/performance.md?difficulty=easy))

## Keywords

Precision Time Protocol, NTP, Time Appliance, Time Card, Open Compute Project, GNSS

## Related posts

- [How Precision Time Protocol is being deployed at Meta](https://swe.quest/articles/how-precision-time-protocol-is-being-deployed-at-meta-6d56b79aabe69525.md): Meta Engineering · 2022-11-21 · Hard · 27 min read · Time & clocks, Networking, Datacenters, Hardware, Consistency models
  Meta replaced NTP with Precision Time Protocol across its data centers to get nanosecond-level clock sync.
- [Simple Precision Time Protocol at Meta](https://swe.quest/articles/simple-precision-time-protocol-at-meta-1f4dfeb134554941.md): Meta Engineering · 2024-02-07 · Hard · 9 min read · Time & clocks, Networking, Datacenters, Performance engineering
  Simple Precision Time Protocol (SPTP) replaces the subscription-based unicast PTPv2 exchange with a stateless, client-driven three-packet exchange: a delay request (flagged with PTP profile Specific 1), a sync carrying T4, and a followup/announce carrying T1 and CF1.
- [Open-sourcing a more precise time appliance](https://swe.quest/articles/open-sourcing-a-more-precise-time-appliance-d4216f5f1f5059e9.md): Meta Engineering · 2021-08-11 · Hard · 12 min read · Time & clocks, Hardware, Networking, Open source, Linux
  Meta built and open-sourced the Time Card, a PCIe card combining a multiband GNSS receiver, a miniaturized atomic clock and an FPGA time engine that turns a commodity x86 server with a hardware-timestamping NIC into an NTP/PTP Stratum 1 time appliance.
- [How Precision Time Protocol handles leap seconds](https://swe.quest/articles/how-precision-time-protocol-handles-leap-seconds-7f6fcf3729d9faf4.md): Meta Engineering · 2025-02-03 · Medium · 3 min read · Time & clocks, Datacenters, Distributed systems
  Meta handles leap seconds for its nanosecond-precision PTP service by self-smearing inside the fbclock library, which shifts its returned Window of Uncertainty {earliest\_ns, latest\_ns} by 1 ns every 62.5 µs.
- [It’s time to leave the leap second in the past](https://swe.quest/articles/it-s-time-to-leave-the-leap-second-in-the-past-9e11ae3896edcf86.md): Meta Engineering · 2022-07-25 · Medium · 6 min read · Time & clocks, Distributed systems, Resilience
  Leap seconds do more harm than good for modern computing, and Meta backs an industry push to freeze them at the current 27.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
