Blogger joins NTP Pool with a Stratum 2 server fed by his GNSS Time Pi

The author of a personal blog has joined the NTP Pool, the shared global pool of public time servers. He offers one public Stratum 2 server, ntp-01.jeffgeerling.com, which gets its time from his Stratum 1 server, time.jeffgeerling.com, in his studio. That Stratum 1 machine is a Raspberry Pi "Time Pi" connected to an outside GNSS antenna through a TimeHAT v6, paired with a timing-grade u-blox ZED-F9T GNSS module. He also posted a video about the setup on YouTube.

He encourages others to contribute to the pool but lists what to know first. You do not need a timing-grade GNSS module, or even GNSS-backed time. The main requirements are keeping the system online (servers are only made active in the pool if they are online and serving good time consistently for a long period), maintaining good time (Stratum 1 GNSS, or pulling from a few other reliable servers and running as Stratum 2 or 3), and having a stable IPv4 and/or IPv6 address plus a long-term commitment. Just "testing the waters" wastes resources: a new server needs at least a few hours for the tests that verify it provides good time. Anyone who only wants their own time server can simply run one; joining the pool is a bigger commitment because it is a shared global resource.

He names two more caveats. The server's IP address will be public. And NTP traffic decays slowly: some misconfigured systems could take months or even years to stop sending traffic to that address. The first matters a lot to him. When he exposed his home IP while self-hosting his website on a cluster of Raspberry Pis, someone DDoSed the site for the better part of a month. He had to cycle his home IP and put the site behind Cloudflare, and the site now lives on a VPS.

For that reason he runs two layers. The Stratum 1 Time Pi in the studio runs a WireGuard tunnel to a Stratum 2 VPS with a cloud provider in St. Louis, chosen to keep latency down, since fewer hops across the Internet give better NTP sync. The VPS is hosted with Oxtrys, a provider he had not used before. In the Stratum 1 server's chrony config he lists the Stratum 2 server as a noselect source, so he can compare the Internet delay between the two outside the WireGuard tunnel. He also tracks his time against an NTP server at WWV in Fort Collins, CO, one of NIST's NTP servers in Boulder, CO, and Cloudflare, polling them only every 1024 seconds. He says this singling out of servers is for long-term measurement only; typical configurations should use pool addresses. The Cloudflare line steps up and down at times, most likely because of BGP routing changing the paths packets take between St. Louis and time.cloudflare.com.

On the timing side, the Time Pi is also his primary local time reference in the studio. The TimeHAT's built-in Intel i226 NIC has hardware timestamping, which PTP needs for accuracy on the LAN. He disciplines the NIC's hardware clock (the PHC) directly from the GPS module's pulse-per-second pin using linuxptp's ts2phc, to within tens of nanoseconds of UTC, and can distribute that time to other PTP-aware computers on the LAN. The PHC time reaches the Pi's system clock through refclock PHC in Chrony rather than phc2sys, because phc2sys produced an odd 200ms jump every so often. Chrony then disciplines the system clock, but only to about a microsecond, because the pulse crosses the PCIe bus and adds latency he cannot measure. He is trying to make that latency measurable, pointing to ahmadexp's rp1-ptp-pps utility PR, since GPIO is routed through the RP1 chip deterministically. PTM could cut the PHC-to-system-clock error to a few nanoseconds, but the Pi's BCM2712 SoC does not support it. Another snag: Debian's default sourcedir /run/chrony-dhcp directive picked up an NTP server via DHCP, so chrony overrode his accurate GNSS-derived time with far less accurate public NTP time. That was another reason to move clock steering into chrony. The whole configuration for both servers is managed by Ansible in his time-pi project.

Then came an outage. Some automated firewalls shut down public NTP servers because the traffic can look like abuse, and he wondered whether that had happened late on the night of November 16, when the server dropped offline while he was writing the post. The logs pointed elsewhere: an unattended upgrade installed a new Debian kernel and rebooted the server, and the new kernel caused problems. The server still runs automatic upgrades, but reboots are now left to him. Oxtrys' live chat support has been responsive enough, but its account dashboard is broken until November 22, so it does not list his server's out-of-band management options. The NTP Pool monitors slowly raised the server's score back past 10, at which point it can serve time in the pool again. Recovery takes maybe 6 to 12 hours if the server has been down long enough.

He notes that the pool does not currently support NTS (Network Time Security), though some have experimented with it. He has not explored NTS much and expects to write more later. He is fine with basic NTP, but recommends that anyone with critical timing needs use other time sources too, and not rely only on NTP. He closes by saying he knows about 1% (probably less) of what there is to know about hosting a public NTP server, and thanks other pool operators and the large endpoints such as time.apple.com and time.cloudflare.com.

Key facts

  • The author runs one public Stratum 2 server in the NTP Pool (ntp-01.jeffgeerling.com), fed over WireGuard by his Stratum 1 Time Pi (time.jeffgeerling.com), which uses a TimeHAT v6 and a u-blox ZED-F9T GNSS module.
  • Pool requirements: stay online, keep good time (GNSS Stratum 1, or Stratum 2 or 3 from a few reliable servers), and have a stable IP plus a long-term commitment. A new server needs at least a few hours for its verification tests.
  • The server's IP is public and stray NTP traffic can persist for months or years. A past DDoS lasting the better part of a month on his self-hosted site is why he put a Stratum 2 VPS in St. Louis in front of the Stratum 1 Pi.
  • The NIC's PHC is disciplined to within tens of nanoseconds of UTC via ts2phc; Chrony's refclock PHC then sets the system clock to about a microsecond.
  • On the night of November 16 the Stratum 2 server went offline after an unattended Debian kernel upgrade and reboot. Recovery of its pool score past 10 takes maybe 6 to 12 hours, and reboots are now manual.

Why it matters

The NTP Pool is shared infrastructure, and this is a practical account of what joining it takes. The author's main point is that you do not need an expensive timing setup: a Stratum 2 or 3 server pulling from a few reliable sources qualifies. The real costs are commitment, a stable and public IP address, and patience while the pool's tests run. The post also shows a layered design, with a protected Stratum 1 source behind a public Stratum 2 front, that keeps the precise clock off the open Internet.

Who it affects

People thinking about contributing a server to the NTP Pool, and hobbyists building GNSS-backed time sources at home. Anyone running a Raspberry Pi with PTP hardware may also find the chrony and PHC details useful. The pool's users benefit when operators keep servers online and accurate.

How to use it

The author's setup is a template. Run a Stratum 1 source (here a Pi with TimeHAT v6 and a ZED-F9T) at home and tunnel it with WireGuard to a nearby VPS that acts as Stratum 2 and joins the pool. Add the Stratum 2 server to the Stratum 1 chrony config as a noselect source to compare delay outside the tunnel. Use refclock PHC in Chrony rather than phc2sys if you see jumps, and watch for Debian's chrony-dhcp sourcedir picking up a DHCP-supplied server. The full configuration for both servers is in his Ansible time-pi project. He cautions that singling out servers and polling every 1024 seconds is for his long-term measurement only; most systems should use pool addresses.

How solid is it

This is a first-person account of one person's own setup, and the figures come from his own measurements and graphs. The graphs are not reproduced in the text, and the post gives no numerical results for the comparison against WWV, NIST Boulder or Cloudflare. It gives no total traffic figures, query rates or number of pool servers. He describes his own knowledge as about 1% (probably less) of what there is to know about hosting a public NTP server.

Risks and caveats

Your server's IP address becomes public, and misconfigured clients can keep sending traffic for months or even years. The author's earlier DDoS, which lasted the better part of a month, is why he separates the layers. Some automated firewalls may shut down public NTP servers because the traffic can look like abuse; he was nervous about this with a new VPS provider, though his outage turned out to be an unattended kernel upgrade. The pool does not currently support NTS. The Chrony-disciplined system clock is limited to about a microsecond by PCIe latency, and the Pi's BCM2712 SoC does not support PTM. He recommends that anyone with critical timing needs use other time sources too, and not rely only on NTP.

“I think I know about 1% (probably less) of what there is to know about hosting a public NTP server”

— the post's author, on his own NTP expertise