• lightswitch05 a day ago |
    Great write up! I too run a stratum 1 and am part of the pool. Except, I have way less interesting hardware. One benefit on going cheap is having multiple stratum 1s then you can have some redundancy and have more interesting local peers to compare results against. I do see a more expensive setup in my future, though.

    Anyways, I use NTPSec- which is the default these days on Debian when you apt-get install NTP. I’ve not tried Chrony, but I see it mentioned all the time.

    I’m curious what others here are running and their thoughts on the pros and cons?

    Edit: I forgot to add, one of my favorite parts of being in the pool is basically a free uptime monitor of my ISP. There have been multiple cases where I see a blip in my offset then a full blown ISP outage within 78 hours of the blip, then a return to my normal offsets after to outage has resolved.

    • nahikoa a day ago |
      Some of the cool kids are moving to https://github.com/pendulum-project/ntpd-rs
    • geerlingguy a day ago |
      In the NTP Pool community, I've seen a few people mention CenterClick NTP servers; I'm happy to do my own DIY builds (Pi or otherwise), but this looks like a nice option for SMBs or time-nuts who don't want to manage their own hardware: https://centerclick.com/ntp/

      There are also a lot of people who buy old Spectracom or other 'enterprise' time servers since they can be had for low hundreds of dollars with some nice features like rubidium or OCXO oscillators, so they can hold over time much more accurately when GPS is down, or upstream NTP providers are unreachable.

      And regarding chrony, it's the default in many distros now, I like some of its built-in monitoring and clock adjustments, it just feels easier to manage if you want more than just base NTP features. It also supports hardware timestamping if you have network hardware that has it, which IIRC NTPd doesn't? I haven't messed with systemd-timesyncd or ntpd-rs, so can't say much on them.

      • unsnap_biceps a day ago |
        I have around a dozen CenterClick 270s at various locations and I think generally I have one lock up every 6 months or so. A PoE power cycle on the switch recovers it, so overall I've been really happy with them. I believe they're a one-person shop.
        • cinntaile a day ago |
          What do you use them for?
          • unsnap_biceps a day ago |
            NTP :) Honestly, they're not needed. I just like being self-sufficient as much as possible. We have a quarter rack of machines in each location that sync data between them so they do need some time accuracy, but not nearly as much as these devices provide.
        • toomuchtodo a day ago |
          Do you automate monitoring ntp health to power cycle the switch poe?
          • unsnap_biceps a day ago |
            I have our monitoring stack ping the device once a minute and after 5 minutes of no pings, it will cycle the Poe on the port.
            • toomuchtodo 8 hours ago |
              Very cool, thanks so much for sharing.
        • ectospheno 9 hours ago |
          I had that issue with older firmware. Hasn’t popped up lately. They are nice hands off cheap devices for what they provide.
      • ianburrell a day ago |
        systemd-timesyncd is an SNTP client. It is meant to set time, not serve it out, but there are lots more regular servers than time servers.
      • bradknowles 17 hours ago |
        The Reference Implementation for NTP does support hardware timestamping. And the Network Time Foundation is also now the home for PTP, where this kind of thing is vital if you really care about the nanoseconds.

        But if you have any questions on this, I can ask my friend Harlan.

      • bradknowles 16 hours ago |
        Note that the page at https://www.ntppool.org/join/configuration.html specifically recommends using the Reference Implementation of NTP (namely, `ntpd`).

        Although I looked at that page and didn’t see anything about whether or not it was okay to use an NTP,server running under a VM.

        I will contact Ask Bjørn Hansen about this.

    • Palomides a day ago |
      I think most people run chrony or ntpd-rs; not part of the pool, but I've been using chrony for a while, and it seems like ntpd-rs's support for PTP (which I "need") is still under development
    • bradknowles 17 hours ago |
      Well, I’m partial to Meinberg. After all, when I joined the NTP Public Services Project in 2003, it was Heiko Gerstung who gave me my first Primary Time Appliance, for our testing purposes. And they’ve been a strong supporter of NTP.org and the Network Time Foundation ever since.

      Heiko is now the CEO of that company. I got to see his face in person for the first time a few years ago, when I was working on the EC2-Chronos team at AWS, and we were considering bringing in Meinberg as one of our preferred vendors of Primary Time Appliances, with a goal to install them at each and every AWS datacenter around the world.

      That effort was part of the enhanced version of the Amazon Timekeeping Service that we officially launched in 2023, and highlighted as part of the Re:Invent keynote that Peter DeSantis did (see: https://www.youtube.com/watch?v=pJG6nmR7XxI). Originally, the SLA was accuracy within one millisecond, but with this project, we got that down to 20 microseconds.

      Internally, AWS uses Chrony. Both on the back-end Stratum-2 time servers, and we also controlled the default Chrony configuration on all of the EC2 instances. And I so got familiar with doing chronyd configurations.

      I think it’s fine for that purpose, but I would make sure that you’re not doing leap second smearing. I know the leap second is going away, but the last time I checked with Ask Bjørn Hansen, he did not allow any time servers into the pool if they were doing leap smearing. Which is why we could operate our own time.aws.com service, but we couldn’t contribute time servers to the NTP Pool, because all of our servers did leap smearing.

      Ironically, during the time I was actively working to support NTP.org, I helped Ask Bjørn Hansen to set up the NTP Pool, but it has been years since I talked to him about it. I should reconnect with him.

  • aaronax a day ago |
    What speed did you choose in the pool dashboard? How many request per second are you serving, and do you have a goal for that?
    • geerlingguy a day ago |
      I started at 25 Mbit to see how things would go, and found the Oxtrys VPS I have the public server running on could handle that without issue.

      Over the past few weeks I bumped it up to 50, then 100, and now it's at 250 Mbit. At 100 Mbit I was seeing 180-250 requests/sec. At 250 (just switched earlier this morning) I'm seeing 500-600 requests/sec.

      I'm monitoring things on the server with chronytop[1], a tool I whipped up with Claude since I didn't see any other concise dashboards and hated `watch`ing chronyc sources to get any kind of updated data.

      [1] https://github.com/geerlingguy/chronytop

      • syncsynchalt a day ago |
        You might see it grow over time (i.e. months in the pool), as clients tend to pick an IP out of the pool and stick with it for a long time.

        My server (which is in the ipv4 @/NA/US pools at 12mbit) is seeing 250 requests/sec, measured across the 57th minute. (If I measured the 00'th minute it'd spike due to top-of-the-hour SNTP requests in the crontabs of the world). It's been in the pool at that IP for years now.

        • geerlingguy 21 hours ago |
          Good to know; Oxtrys gives a pretty generous pipe, and this VPS has 4GB of RAM and so far very decent performance. It's my first time hosting a VPS with them, mostly due to location—they resell Contabo VPSes in St. Louis, so my Wireguard tunnel only has a couple ms to travel!

          If it runs well, I may move a couple other services to Oxtrys, or see if I could colocate a machine or two in Contabo's DC.

  • jeffrallen a day ago |
    PSA: The Swiss government has NTP servers on ntp{11,12,13}.metas.ch.

    METAS is the Federal Institute of Metrology.

  • Avamander a day ago |
    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 can assemble something FPGA-based[2] for quite a bit less money, that can reach very low noise figures. You can spend the remaining money on the GNSS antenna and receiver instead.

    I'm also sure a FPGA-based approach could be taken even further with some external timekeeping chips available and the FPGA could just do the NTP/PTP protocol stuff.

    [0]: https://www.youtube.com/watch?v=zxK0_j2Ah2I [1]: https://raspberrypi.stackexchange.com/questions/74482/switch... [2]: https://fy.chalmers.se/~f96hajo/fakernet/board_Arty_A7-35-GP...

    • jeffbee a day ago |
      Back when I thought this was true, I put together an x86 platform with PTM and a fancy NIC and it would hard-lock the bus to such an extent that I had to physically unplug it to recover. There are a lot of pieces required for a complete solution and I'd caution against a categorical statement like "x86 has PTM".
      • Avamander a day ago |
        As I said, tad better, not perfect. I'd say finding reasonably-priced x86 hardware with that functionality is an even bigger hurdle.
        • geerlingguy a day ago |
          It all depends on the gains you're looking for. Almost any solution with PPS input can get you under 1µs, even on Linux through GPIO.

          If you want to chase lower, you need a hardware-disciplined clock. Either through FPGA, or in the case of my Time Pi, I have a PTP NIC with a PHC disciplined from the ublox F9T—which should be within 5-20ns of GPS time. This can be measured on higher-end boards like the TimeHAT by comparing PPS out from the GNSS module, PPS from the NIC, and PPS from a separate GPSDO, along with a timestamp comparison tool like the tinyGTC or TAPR TICC: https://tapr.org/product/tapr-ticc/

          The annoying thing is there are few PC hardware combos that include the relevant PPS and frequency outputs to allow actual verification of your time in hardware. Software can show numbers but even on my Pi dashboard, the sub-20ns sync reported is between the system clock and the NIC PHC... but not currently accounting for the delay when the kernel reads the PHC over PCIe.

          Pi could support PTM on its PCIe bus, that would be awesome. Overkill for 99.9% of its market though!

          • bradknowles 18 hours ago |
            Poul-Henning Kamp has proven that you can get down into the nanoseconds range, mostly just by using the right software. If you work at it hard enough.

            In 2002, he got the error band down to 260 nanoseconds, see: https://phk.freebsd.dk/soekris/pps/

            He has done better since then.

            • geerlingguy 7 hours ago |
              My Time Pi setup is in the single-digit ns range, on the hardware side—the PPS from GPS goes into the NIC's PHC, and disciplines that clock on the HAT. That time is distributed with hardware timestamping over the network (PTP), and other devices can get hardware level sync sub-10ns.

              The Pi still has to handle its own PPS through interrupts, and without PTM, that means "less than a microsecond" is about as good as I can currently say _in Linux_ on the Pi.

              Most people who get serious about timing in the ns (and now sub-ns) range move to FPGAs now, especially considering how inexpensive they've become. I haven't made that jump but most of my actual timing-focused hardware runs on an FPGA inside (like the NetTimeLogic PPS analyzer I have all my clocks plugged into).

        • gsich a day ago |
          Intel I225 has support.
          • jeffbee a day ago |
            i225 is the most notorious for glitching out the PCIe link.
            • geerlingguy 21 hours ago |
              Indeed, and the i226 is also a pain, as it doesn't work at 2.5 Gbps in Linux (you have to force 1 Gbps to get a connection)[1], and requires a patch to make PPS support not super glitchy[2].

              [1] https://github.com/geerlingguy/raspberry-pi-pcie-devices/iss...

              [2] https://github.com/Time-Appliances-Project/TimeHAT#intel-i22...

              • RossBencina 17 hours ago |
                So i210 is still the best option?
                • jeffbee 6 hours ago |
                  The 210 is a better NIC in the sense that it actually works, unlike the 225, and it has PPS pins on some implementations, but it never supported PTM in the first place. The 210 predates the PTM standard altogether.
              • gsich 15 hours ago |
                Thanks for the links. I use a I226-LM (according to lspci, but on x86) and only use Debian kernel 6.10. What effects do I have if I have not applied the kernel patches?

                chrony says this, but unsure if this is then even valid?

                  #* GPS                           0  -2    20     2    +11ns[  +23ns] +/-  780ns
    • GJim 14 hours ago |
      > You can spend the remaining money on the GNSS antenna and receiver instead.

      And have yet _another_ GNSS dependent NTP server?

      At least use a LW time signal for a change (assuming you can't aford your own rubidium clock)!

      • Avamander 4 hours ago |
        You can of course discipline your local rubidium against GNSS and have some amazing holdover numbers during an outage. But it would be a waste to try and run a time server against an LW transmission, which doesn't get you anywhere close the same accuracy (nor holdover).
  • omoikane a day ago |
    > https://www.jeffgeerling.com/blog/2026/i-joined-the-ntp-pool...

    I wonder why the wall clock on top is 10 seconds ahead of the bottom one?

    • undersuit a day ago |
      Relativity. /s
    • geerlingguy a day ago |
      Bottom one is NTP, updating I think once or twice a day. The top one is using WWVB radio time, but my studio is a little bit of a faraday cage, so to get it to sync I have to bring it near the front door and point the back toward the West overnight (STL to Ft. Collins).

      I have a solution to that I'm working on—Pico W that grabs time from NTP then broadcasts about 1m with a tiny antenna so I can set my wall clock and watch (the one with the green band in the picture).

      • NooneAtAll5 a day ago |
        how fast does the de-sync happen?
        • geerlingguy a day ago |
          The photo in the blog post was taken about a week after the last WWVB sync, so the clock runs approximately 10s fast/week, or +16ppm, which is typical for cheap quartz crystals.

          One annoying side effect of running faster is whenever the clock gets a correction, since the gears only run forward, the clock has to go all the way around almost 12 hours to get back to the corrected time after a sync.

          • NooneAtAll5 20 hours ago |
            > One annoying side effect of running faster is whenever the clock gets a correction, since the gears only run forward, the clock has to go all the way around almost 12 hours to get back to the corrected time after a sync.

            can it not just stop the clock for a sec?

            • geerlingguy 20 hours ago |
              Some do, but this one doesn't seem to do that. At least not the two times I witnessed it!
              • isomorphic 19 hours ago |
                I've had two analog WWVB clocks in Florida, from different brands; I'm a glutton. They both did this. I caught one advancing and advancing and advancing, never satisfied with where its hands landed, going on and on until the batteries died. I strongly doubt they used a servo or encoder, being too cheap, and probably just winged it with some broken internal state representing the theoretically-displayed-on-the-hands-time (versus signal-time).

                It could be the received signal was so bad in Florida (or without error-checking) that the clock made up an invalid time that it was impossible for it to sync to.

                I'd therefore recommend against synced analog time, and against WWVB (unless you live in Colorado).

                • ssl-3 14 hours ago |
                  > unless you live in Colorado

                  Cheap WWVB clocks have worked well for me in Ohio.

                  I've just hung them on an exterior wall or in a room with some windows, without regard to cardinal direction, and fed them a new battery every now and then. They just hang there and display a reasonably-accurate time.

                  It's a very boring relationship.

                  (Perhaps I am simply very lucky in this way.)

      • isomorphic a day ago |
        The irony is that the bottom one appears to be the one behind the others. Or at least, the top one seems to agree with the three digital clocks on the rack.

        Speaking of that, do you have a list somewhere of your gear, specifically those three digital clocks (or maybe they're just essentially displays)?

        Thank you for the article!

        • geerlingguy 21 hours ago |
          The other clocks all agree on :28 seconds, which is indicated in the bottom clock (OCEST WiFi NTP clock), whereas the top WWVB clock is showing :38 ;)

          But in order from top to bottom:

          PTP Wallclock (yellow matrix display), running Oliver Ettlin's software I found out about through a CCC talk on PTP

          Masterclock NTDS (unlisted on their site, but they still make these for broadcast) 'analog-style' digital NTP clock

          Mitxela Precision Clock Mk4 (gets time straight from GPS, displays accurate time to the ms, though you need a high speed camera to see it).

          The two wall clocks are a radio time clock from La Crosse I found at Micro Center (up top), and an OCEST WiFi NTP clock.

          • isomorphic 19 hours ago |
            Thank you!

            Also, I swear I read all of those digital clocks, saw :28, and thought :38. Clearly I don't need accurate time if I can't be bothered to read properly!

            I've commented here before that the WWVB clocks are mostly useless in Florida. Others have suggested spoofing the signal. It seems better to cut out the middleman and go direct to GNSS or at least (and probably easier) NTP.

  • zodwick a day ago |
    One of those posts which truly hits you in the face and calls you an idiot for how much you don't know. Definitely a rabbit hole I'm going down this week. Thanks
  • bityard a day ago |
    I thought I remembered reading that they did not allow VPSes to be part of the pool because of the historical issues around VMs and timing, combined with the fact that the VPS operator could make host-level changes at any time that could impact the accuracy of the host. But now I'm not finding anything about that. Maybe they have enough monitoring and automation that running nptd on bare metal is not a strict requirement anymore?
    • walrus01 a day ago |
      I don't recall the details but one of the historical problems with VPSes is that people were trying to use things like openvz VPSes which are more like a glorified chroot/jail, rather than something like a QEMU/KVM VPS (or Xen PVH, or Xen HVM with virtualization extensions).

      I still personally wouldn't try to run an NTP server on a VM unless I also owned/controlled the bare metal hardware the hypervisor is running on.

      • geerlingguy a day ago |
        KVM allows chrony to adjust the clock, which give much better stability. With other VMs you can have a very jumpy clock and poor time service.

        Some decent discussion on this topic (though with broken links to a separate NTP Pool discussion) here: https://a.osmarks.net/content/serverfault.com_en_all_2022-11...

        • walrus01 a day ago |
          I'm not sure if I would call answers from 2016 'recent' as KVM linux-on-linux has advanced significantly in the years since then, particularly with improvements focused on performance in something like a 6.1.x kernel in a theoretical scenario like a debian trixie host (proxmox 9.2 or whatever) and a trixie or fedora 44/45 guest.
          • geerlingguy a day ago |
            Touche, but the main point is KVM is fine for NTP timing. I don't think I'd try to virtualize a PTP server, that still needs to be closer to the physical hardware.
    • bigstrat2003 21 hours ago |
      They definitely allow VPSes. I've been running a Digital Ocean droplet as part of the NTP pool for years now.
    • bradknowles 17 hours ago |
      Historically, yes. There’s just way too much variability introduced into the fine-grained timing and interrupt signals with any kind of VM solution that I know of.

      But it is possible that Ask Bjørn Hansen has changed his mind. I bet if you look on their website at ntppool.org, you should find an answer.

      • bityard 10 hours ago |
        That's where I looked
        • bradknowles 3 hours ago |
          I will talk to him about that page, and see if I can get him to update it with the latest information.
  • tomassirio a day ago |
    Hey Jeff, I learn a lot through your content.

    Thanks a lot for sharing knowledge!

  • yardstick a day ago |
    It’s been a decade or more since I last used NTP pool on my servers, have they fixed their quality issues with unreliable and misconfigured time sources? With 10k+ servers polling them, I saw enough issues to abandon it in favour of the likes of Google, Apple, Microsoft etc.

    Issues included unresponsive servers, and servers handing out time that was days/weeks/months out of realtime.

    • gerdesj a day ago |
      I've been using the ntp pools successfully for at least 20 years across many 100s of systems. I think you need to pick at least five sources. Although the docs suggest four: https://www.ntppool.org/en/use.html for an individual system.
      • yardstick 19 hours ago |
        Yes was using DNS - two hostnames, one for europe and one for americas iirc. So it was receiving randomly allocated servers every DNS resolve. Didn’t try 4+ hostnames.
        • ssl-3 14 hours ago |
          With 1, it may be right or wrong, and we can't know one way or the other.

          With 2, we still never know if one is correct. This is about the same as 1 but with more steps.

          With 3, we gain some good certainty[1].

          With 4, there can be further-improved consensus and also redundancy (stuff can and will break). 4 is what the pool suggests[2] using.

          With 5 or 6 or more, we're getting into rapidly-diminishing returns while linearly increasing load on the pool. If the time is critical enough to whatever you've got going on to go that far, it may be best to start rolling one's own infrastructure if for no other reason than to reduce impact and be a good neighbor.

          (Setting up a networked timeserver (I'm most familiar with ISC ntpd) to distribute network time locally is easy, and is a light-weight process for non-gargantuan networks. Learning about and adding locally-received GPS is still optional, but it's in the realm of spending afternoon with a Raspberry Pi or something along with an inexpensive GPS module.)

          [1]: https://en.wikipedia.org/wiki/Triple_modular_redundancy

          [2]: https://www.ntppool.org/en/use.html

          • bradknowles 3 hours ago |
            So, the cool thing about `ntpd` and Chrony is that they do exponential backoff, once they have gathered enough statistical information about the upstream servers they are using. They will typically keep a tighter loop on their selected SYSPEER, but the others will be allowed to relax.

            This will reduce the load on any additional upstream time servers that you configure, but obviously it won’t go all the way down to zero.

            You still want to be considerate of your neighbors, and not abuse their servers. But it is generally considered fine to be connected to as many as ten upstream time servers.

            Now, if you use the “pool” directive, when you get back multiple IP addresses for the same name, you will connect to each of those servers in that pool. If you do the numbered server trick that I explain elsewhere, and each name comes back with just three IP addresses, that means that you will actually be connecting to four or five names, times three IP addresses per name. That’s twelve to fifteen servers, probably.

            But that’s okay, because you’re just connecting to the servers you were told about when you did the DNS query, and given the DNS load balancing built into the pool, when the next person asks the same question about those same machines, they will probably get different answers.

            Whether it’s `ntpd` or Chrony, when your client goes through the periodic re-evaluation process of those configured upstream time servers, that’s when it should pick up any IP addresses per name changes. And if the IP address is different, then it doesn’t matter that the name is the same. The design of the NTP protocol is such that you must have one and only one unique clock behind each IP address. That’s why load balancing switches don’t work with NTP.

      • bradknowles 17 hours ago |
        Years ago, I wrote a document on support.ntp.org that laid out the math for how NTP servers are chosen, and how many upstream time servers you need to protect yourself from a given number of falsetickers. That article seems to have gone by the wayside, otherwise I would refer you to it.

        However, during my time working on the EC2-Chronos team that managed all NTP time servers for all of AWS and Amazon worldwide, in every single region, availability zone, and datacenter, I learned the old rules aren’t quite right.

        Ultimately, the NTP algorithm works something like this:

        1. Get a statistically significant set of time samples for each upstream time server. That will give you a range of time that it looks like the upstream time server is sending to you, and what you can’t really control is the latency, jitter, wander, etc… that is induced by the network between you. You can measure and account for some of what the network does to you, but not all of it. That’s why you get error bars back.

        2. Take the median for each upstream time server, plus the error bars, and plot that on a line. Fastest at one end, slowest at the other.

        3. Do some calculations to figure out what the median value is for all of these time servers.

        4. If you have more than a selected number of servers on that line, it selects the one that is furthest from the median and throws it out.

        5. Then recalculate the new median. If you are now down to three timeservers on that list (or whatever you have configured), then take the one closest to that median and it becomes your SYSPEER. That’s the server you will sync yourself to, since it seems to have the best idea of what the “real” time should be.

        6. If you still have servers that can be “voted off the island”, then go back to step #4.

        7. Periodically re-evaluate the servers you have configured and which one should be your new SYSPEER.

        Now, this assumes you don’t have a local refclock attached (e.g., GPS). If you do, then you probably “PREFER” it over everyone else.

        The idea here is that each server that gets voted off the island is potentially a false ticker that is trying to get you to choose the wrong SYSPEER. So, make sure you have enough extra servers defined in your configuration file to survive having a number of falstickers and still get to the right answer. Or, at least one that is close enough.

        Historically, the limit was ten upstream timeservers. Any more than that, and `ntpd` would still monitor them, but wouldn’t use them for selecting a SYSPEER. You could monitor up to about 600 upstream timeservers this way, and IIRC, this is actually how the early versions of the NTP Pool operated. You can now adjust how many time servers you want to use for that consideration, but if everyone did this, then it would be chaos. So, you do need to restrict yourself to a reasonable number of upstreams.

        More recent NTP servers (e.g., Chrony) will actively use a more upstreams if you configure them, but again you should be courteous to your neighbors and not abuse this feature.

        Another trick you can use is to select numbered time servers inside of each NTP Pool zone. So, not just “us.pool.ntp.org”, but also “0.us.pool.ntp.org” and “1.us.pool.ntp.org” and “2.us.pool.ntp.org” and “3.us.pool.ntp.org”. If you were to choose all five of these names, each one will come back with multiple IP addresses, and you should have way more upstream time servers defined than you will ever need.

        You should also choose upstream servers and zones that are relatively close to your topological location, where possible. So, don’t choose any upstream servers in Europe or Asia, if you are located in the US. And so on.

        Some vendors have signed up to have their own subdomains under the NTP Pool. So, you could add them as time servers for your machine, if you’re on one of those platforms. And they usually have numbered subdomains as well.

        If you are an Amazon or AWS customer, then you can also use time.aws.com as one of your upstream time servers. That service was designed to serve all Amazon and AWS customers, worldwide. Every Kindle. Every Alexa device. Every Ring camera. And there are numbered subdomains under time.aws.com, too. I made sure those were created, based on my own experience in helping to set up the NTP Pool and in talking to Ask Bjørn Hansen.

        Of course, Apple and Google run their own time server infrastructures. So, you can use them, as well as the NTP Pool. And plenty of other vendors also run their own time server infrastructures.

        I’ve been doing this off and on for over twenty years. I can keep going, if you want. Feel free to ask me anything related to NTP.

        • rzerda 15 hours ago |
          Could you please shed some light on why EC2 instances are recommended to sync to the single link-local address (say, I care only about EC2 instances without PTP for now)? I presume that traffic never leaves the hardware node, and since underlying HW needs precise enough time, it just serves that time downstream to the instance.
          • bradknowles 3 hours ago |
            So, on EC2 nodes, the internal Stratum-2 servers provide time to the NTP client on the hypervisor card. From there, it is provided via the link-local address to the EC2 instances. That’s the best quality of time sync that you could possibly get to those instances. The Stratum-1 servers inside the AWS network in each availability zone are providing the signal to the Stratum-2 distribution servers, and those Stratum-2 distribution servers are what feed the hypervisors across all regions, all availability zones, and all datacenters.

            On the newer instances, your local NTP client could also be configured to receive a 1PPS signal from the hypervisor card, and in that case you can get an SLA of 20 microseconds or better from “true time”. For these systems, there are Stratum-1 servers within the same datacenter as the hardware where your instance is running. That’s what allows AWS to run a custom fabric for 1PPS signals that is very high fidelity, low jitter and wander, etc….

            Older instances aren’t running on hardware that has access to that proprietary fabric where 1PPS is transmitted with very high fidelity, and so there is no 1PPS signal that can be fed to your instance. In that case, you get an SLA of one millisecond (or better).

            Either way, this is at least an order of magnitude better than you can get from any other source, since that source would have to be from outside of the AWS network. You might be able to get yourself down to single-digit millisecond accuracy, but still not down as low as you can get from AWS if you just use the link-local service.

    • syncsynchalt 7 hours ago |
      Newer versions of ntpd have the `pool` directive which will re-resolve a new IP to clear out bad servers. I suspect that would have resolved your issue.

      FWIW I've been serving time in the pool for years now, it's a fun little hobby.

  • mianos 21 hours ago |
    I wrote my own, it was started as my own code then used a few llms to vibed it up beyond my own ability a bit. Then back to hand fixing stupid vibe coded stuff.

    The parts are under 50 bucks, an esp32p4 with ethernet (and poe) by Waveshare and an m8T module from ali (or fleabay) for $20.

    https://github.com/mianos/esp32-p4-Ethernet-NTP-Server

    It has a matching ui fed from the REST interface that shows little coloured lights, the satellites and graphs.

    Supports ipv6, ipv4 ntp, and ptp.

    What I did lately is point a klunker at everyone else's try at the same thing and asked it whose is better, then, if possible made mine the same.

    edit: I agree, adding an fpga would allow me to vastly improve the timing. I have to go to all lengths to get the timing on one CPU and everything else on another.