---
title: "Open-sourcing a more precise time appliance"
description: "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."
url: "https://swe.quest/articles/open-sourcing-a-more-precise-time-appliance-d4216f5f1f5059e9"
canonical: "https://engineering.fb.com/2021/08/11/open-source/time-appliance/"
source: "Meta Engineering"
published: "2021-08-11"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 12
tags: ["time-clocks","hardware","networking","open-source","linux"]
---

# Open-sourcing a more precise time appliance

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2021-08-11, 12 min read, Deep dive. Original: [https://engineering.fb.com/2021/08/11/open-source/time-appliance/](https://engineering.fb.com/2021/08/11/open-source/time-appliance/)

## Summary

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. The FPGA disciplines a 125 MHz clock derived from the rubidium oscillator against GNSS PPS using a PI control loop with 250 ps resolution, and the card keeps holdover within 1 µs per 24 hours if GNSS is lost. Setup uses the Linux 5.15+ driver, chrony's PHC refclock and phc2sys. Calnex Sentinel measurements showed NTP within ±40 µs, PTP in the nanosecond range, PPS error within ±200 ns and 24-hour holdover drift under 300 ns. Specs, schematics, BOM and code are released through the OCP Time Appliance Project.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

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

## Prerequisites

- NTP and PTP basics ([easy posts on Time & clocks](https://swe.quest/tags/time-clocks.md?difficulty=easy))
- Hardware timestamping on NICs ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))
- Clock oscillators and PPS signals

## Keywords

Time Card, Open Compute Project, PTP, NTP, chrony, ConnectX-6 Dx, GNSS, phc2sys

## Related posts

- [PTP: Timing accuracy and precision for the future of computing](https://swe.quest/articles/ptp-timing-accuracy-and-precision-for-the-future-of-computing-7cb5bf24683b59a5.md): Meta Engineering · 2022-11-21 · Easy · 8 min read · Time & clocks, Datacenters, Networking, Open source
  Meta is rolling out Precision Time Protocol (PTP) across its data centers to replace NTP, moving clock synchronization precision from milliseconds to nanoseconds.
- [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.
- [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.
- [Three Clocks are Better than One](https://swe.quest/articles/three-clocks-are-better-than-one-10703f0b75ab21bf.md): TigerBeetle · 2021-08-30 · Medium · 5 min read · Time & clocks, Distributed systems, Linux
  TigerBeetle builds a fault-tolerant "cluster time" by measuring clock offsets to peers during keepalive probes.

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)
