← Sun, Nov 22 digest

I joined the NTP Pool, but not with my Stratum 1 Pi

read article ↗ hn thread ↗

Jeff Geerling shares his architecture for joining the public NTP pool using a local Stratum 1 Raspberry Pi connected securely via WireGuard to a public Stratum 2 VPS.

read it Provides a practical architectural blueprint for safely exposing high-precision time servers to the public internet using a local GNSS reference and a cloud VPS.

summary

Jeff Geerling details his journey joining the global NTP pool while protecting his home network from DDoS risks. He set up a local Stratum 1 time server using a Raspberry Pi with a timing-grade GNSS module and hardware timestamping, routing time securely over a WireGuard tunnel to a public Stratum 2 VPS. The article covers hardware choices, chrony configuration quirks, latency tracking, and handling an unexpected VPS kernel reboot. Commenters expand on alternative hardware like FPGAs and ESP32s, software options like ntpd-rs, and operational metrics.

key points

  1. A two-layer architecture using a local Stratum 1 Pi connected via WireGuard to a public Stratum 2 VPS isolates home networks from NTP traffic and DDoS risks.
  2. The setup utilizes a u-blox ZED-F9T timing-grade GNSS module and an Intel i226 NIC for hardware timestamping and PTP clock disciplining.
  3. Chrony manages clock steering locally, avoiding pitfalls like DHCP time overrides and system clock jumps.
  4. Scaling the public VPS pool allocation to 250 Mbit successfully handles between 500 and 600 requests per second.

who should read it

Systems administrators, homelab enthusiasts, and makers interested in precise timekeeping, network protocols, and hardware clocks.

discussion warm

consensus

Commenters appreciate the practical writeup and share operational tips, while discussing the trade-offs of using Raspberry Pis versus FPGAs or specialized hardware for precision timekeeping.

pushback

Some question whether running NTP on a standard VPS or a Pi is ideal, citing virtualization timing jitter and hardware limitations.

best comment by Avamander ↗

For the price and complexity of building a good Linux-based time server I'd heavily recommend looking at FPGA-based solutions instead. x86 platforms also have PCIe PTM and TGPIO options available[0], which are tad better than the common ARM equivalents and GPIO interrupts.

In general Pi-s are relatively bad for timekeeping. Not just the NIC (which can be replaced by hats with their own), there are also oscillator replacement mods[2] to work around this to some extent. Though all this still leaves many other sources of timekeeping error.

So if the goal is low-cost precise timekeeping, one …

Proposes FPGA-based alternatives as a lower-cost and more precise option compared to Linux-based Raspberry Pi time servers.

Generated by an LLM from the article and thread. Check the sources before relying on it.