Slashdot Mirror


The NTP Pool Needs More Servers — Yours, If Available

Do you have a static IP or two? If so, you might be able to spread some Internet infrastructure well-being with very little effort. An anonymous reader writes "The NTP Pool project is turning 10 soon, and needs more servers to continue serving reasonably accurate time to anyone in the world."

42 of 160 comments (clear)

  1. I would but I just don't have the time... by Anonymous Coward · · Score: 5, Funny

    //puts on sunglasses//

    1. Re:I would but I just don't have the time... by K.+S.+Kyosuke · · Score: 3, Funny
      --
      Ezekiel 23:20
    2. Re:I would but I just don't have the time... by Anonymous Coward · · Score: 4, Funny

      That joke feels a little out of date.

  2. Do you need a clock? by Hatta · · Score: 3, Insightful

    Are we talking about about stratum 1 servers here?

    --
    Give me Classic Slashdot or give me death!
    1. Re:Do you need a clock? by GuruBuckaroo · · Score: 4, Informative

      Nope. Anyone with a stable time server is encouraged to join. The operative word being "stable". It's more about providing something that will be reliably *there* when it's needed. The protocol itself will take care of accuracy.

      --
      Poor means hoping the toothache goes away.
    2. Re:Do you need a clock? by GuruBuckaroo · · Score: 5, Informative

      Minimal. NTP packets are about 128 bytes. Individual clients will (if up to spec) contact no more than every 64 seconds, but up to 17 minutes once synchronized (or longer if using SNTP). I'm in the pool and I never notice the traffic.

      --
      Poor means hoping the toothache goes away.
    3. Re:Do you need a clock? by mitgib · · Score: 4, Informative

      Any idea how much bandwidth this would involve?

      About 1kbit on average, so nothing really. I've provided a pool server for a couple of years now, you have to run ntpd anyway, might as well join it to the pool if it is not going anywhere (IPwise) any time soon.

      --
      Being a spelling & grammar Nazi is a sign you do not poses the intelligence to contribute to the conversation
    4. Re:Do you need a clock? by Matt_R · · Score: 2

      virtualisation often has issues with timekeeping. I wouldn't run an NTP server on a VPS.

    5. Re:Do you need a clock? by Anonymous Coward · · Score: 5, Interesting

      Until somebody hard codes your server into their commercial firmware and screws up the NTP implementation.

      http://pages.cs.wisc.edu/~plonka/netgear-sntp/

  3. What is NTP? by cpu6502 · · Score: 4, Informative

    "The NTP pool is a dynamic collection of networked computers that volunteer to provide highly accurate time via the Network Time Protocol to clients worldwide." "Network Time Protocol (NTP) is a networking protocol for synchronizing the clocks of computer systems over packet-switched, variable-latency data networks. In operation since before 1985, NTP is one of the oldest Internet protocols in use." - wikipedia.

    --
    My AC stalker: " I personally agree with your posts most of the time, but that won't keep me from modding you troll"
    1. Re:What is NTP? by SJHillman · · Score: 4, Funny

      What Wikipedia doesn't tell you is that Skynet had humble beginnings as a network clock...

    2. Re:What is NTP? by Anonymous Coward · · Score: 3, Funny

      "The NTP pool is a dynamic collection of networked computers that volunteer to provide highly accurate time via the Network Time Protocol to clients worldwide." "Network Time Protocol (NTP) is a networking protocol for synchronizing the clocks of computer systems over packet-switched, variable-latency data networks. In operation since before 1985, NTP is one of the oldest Internet protocols in use." - wikipedia.

      Thanks for that informative post.

      Also, anyone reading Slashdot who needed such a post, your geek card has been downgraded to "minion" level. Minion level cards do not get access to the second-floor gym or the breakroom, but can still use the reference library. Take advantage of it!

    3. Re:What is NTP? by 0racle · · Score: 2, Funny
      News for Nerds. Are you so pitiful you don't know how to use a web search engine?

      Oh, excuse me,

      A web search engine is designed to search for information on the World Wide Web. - wikipedia

      Oh damn

      The World Wide Web (abbreviated as WWW or W3,[2] commonly known as the Web, or the "Information Superhighway"), is a system of interlinked hypertext documents accessed via the Internet. - wikipedia

      OH GOD DAMNIT

      An information system (IS)[1] - is any combination of information technology and people's activities that support operations, management and decision making. -wikipedia

      You know what, look it up your damn self.

      --
      "I use a Mac because I'm just better than you are."
    4. Re:What is NTP? by Mr.+Slippery · · Score: 3, Interesting

      NTP could mean anything. It could be "Novell transfer protocol"...

      In the same sense that HTTP could be "Highly Technical TARDIS Protocol", yes. But anyone who needs HTTP expanded is a n00b (no offense, we were all n00bs once);it's a universally-used protocol.

      NTP is also a universally-used protocol. Every server (every properly-managed server, at least) uses it, and many if not most PCs use it.

      OTOH, the number one meaning for "LSEQ" seems to be "Leeds Sleep Evaluation Questionnaire", according to the duck. Not universal.

      If you not only don't know what NTP is, but after looking it up think it's mysterious to the average /.er, you deserve a little teasing. ;-)

      --
      Tom Swiss | the infamous tms | my blog
      You cannot wash away blood with blood
  4. Re:No Gov. help? by SJHillman · · Score: 3, Informative

    http://tf.nist.gov/tf-cgi/servers.cgi

    Step 1: Open Browser
    Step 2: Put "nist ntp" in browser/search bar
    Step 3: Click Enter
    Step 4: Click on first link
    Step 5: Copy link to Slashdot
    Step 6: Use the remaining 8 seconds of your 10 second break to highlight what steps you took to get that link

  5. More than just a static IP by MetalliQaZ · · Score: 5, Informative

    Anyone considering this should carefully read the NTP pool's page on the matter. In addition to having a static IP, you need to have fairly good availability over a long period of time, and more importantly you need to be able to handle a lot of traffic. Even though the traffic is fairly low most of the time, you could experience spikes that would be difficult to handle for small businesses or amateurs. Also, anyone with metered bandwidth on their server/colo would almost certainly be unable to handle the cost.

    The NTP pool is something that you have to consider carefully. You can't help out for 18 months and then decide to quit. You can expect to receive traffic for up to YEARS after you leave the pool.

    -d

    --
    "Here Lies Philip J. Fry, named for his uncle, to carry on his spirit"
    1. Re:More than just a static IP by ShaunC · · Score: 2

      Yeah, you really oughtn't try to volunteer your DSL connection. If you have a dedicated server somewhere, though, it's pretty simple to configure ntpd and register yourself as part of the pool. I've been doing my part for a few years (whoops - I rebooted yesterday). The traffic really is negligible and the load is practically nil. If you've got the resources, help the cause!

      --
      Thanks to the War on Drugs, it's easier to buy meth than it is to buy cold medicine!
    2. Re:More than just a static IP by kwark · · Score: 2

      I've seen spikes in traffic coming from eastern european countries and Turkey a couple of years ago. Using the recent iptables module I limit traffic to ntp:
      iptables -A INPUT -i eth0 -p udp --dport 123 -m recent --name ntp --set
      iptables -A INPUT -m recent --name ntp --update --seconds 30 --hitcount 6 -j DROP
      And the abuse eventually stopped.

  6. Why not use EC2? by paulschreiber · · Score: 3, Interesting

    Can Google/Apple/Amazon not just throw some money at this?

    1. Re:Why not use EC2? by TooMuchToDo · · Score: 5, Informative

      Virtual machines cannot be used for NTP:

      http://support.ntp.org/bin/view/Support/KnownOsIssues#Section_9.2.2.

      NTP was not designed to run inside of a virtual machine. It requires a high resolution system clock, with response times to clock interrupts that are serviced with a high level of accuracy. No known virtual machine is capable of meeting these requirements.
      Run NTP on the base OS of the machine, and then have your various guest OSes take advantage of the good clock that is created on the system. Even that may not be enough, as there may be additional tools or kernel options that you need to enable so that virtual machine clients can adequately synchronize their virtual clocks to the physical system clock.

    2. Re:Why not use EC2? by Kohenkatz · · Score: 2

      In theory, Microsoft runs NTP at time.windows.com. In practice, it seems very flaky. Search for it and you'll find countless forum posts about outages.

    3. Re:Why not use EC2? by Fnordulicious · · Score: 2

      Can Google/Apple/Amazon not just throw some money at this?

      Apple already has a few configured by default in Mac OS X: time.apple.com, time.asia.apple.com, time.euro.apple.com

      $ ntpdate -q time.apple.com
      server 17.151.16.23, stratum 2, offset -0.002298, delay 0.04951
      server 17.171.4.13, stratum 2, offset -0.003922, delay 0.09973
      server 17.171.4.14, stratum 2, offset -0.003779, delay 0.09933
      server 17.171.4.15, stratum 2, offset -0.004068, delay 0.09940
      server 17.171.4.21, stratum 0, offset 0.000000, delay 0.00000
      server 17.171.4.22, stratum 2, offset -0.010687, delay 0.11308
      server 17.171.4.23, stratum 2, offset -0.006814, delay 0.10687
      server 17.171.4.24, stratum 0, offset 0.000000, delay 0.00000
      server 17.151.16.12, stratum 2, offset -0.002686, delay 0.04926
      server 17.151.16.14, stratum 2, offset -0.002507, delay 0.04927
      server 17.151.16.20, stratum 2, offset -0.002333, delay 0.04941
      server 17.151.16.21, stratum 2, offset -0.002317, delay 0.04892
      server 17.151.16.22, stratum 2, offset -0.002512, delay 0.04955
      server 17.151.16.38, stratum 2, offset -0.002454, delay 0.04890

      $ ntpdate -q time.asia.apple.com
      server 17.82.253.7, stratum 2, offset 0.003790, delay 0.25430
      server 17.83.253.7, stratum 2, offset -0.000764, delay 0.15932

      $ ntpdate -q time.euro.apple.com
      server 17.72.255.12, stratum 2, offset -0.006641, delay 0.20169
      server 17.72.255.11, stratum 2, offset -0.006988, delay 0.20267

      So it looks like they’ve got a reasonable handful in the pool. Dunno about Google or Amazon because googling didn’t turn up anything immediately obvious.

  7. Re:How do we help ??? by Dog-Cow · · Score: 3

    It is easy and they do provide documentation. I added my server and it took about 10 minutes. Stop being a lazy shit.

  8. $25 Raspberry Pi + $27 GPS reciever? by bill_mcgonigle · · Score: 5, Interesting

    Some quick searching shows one can get a USB GPS receiver for $27 and the comments say it works with linux/gpsd, showing up as /dev/ttyUSB0.

    Somebody could make a simple OS image that would narrow the scope of the problem to the availability of ~$60 and an available public IP address.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  9. errr... $35 Raspberry Pi + $27 GPS reciever by bill_mcgonigle · · Score: 2

    needs the Model B, of course.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  10. Re:$25 Raspberry Pi + $27 GPS reciever? by MyFirstNameIsPaul · · Score: 3, Funny

    Perhaps you could also point out a source for a Raspberry Pi.

    --

    I once took an excursion to Reddit, and later HN. Unlimited up/down voting sucks when dealing with a hive-mind.

  11. Woo-hoo! First post! by PPH · · Score: 4, Funny

    They can use my system if they don't mind pretty crappy latency.

    --
    Have gnu, will travel.
  12. US Navy Master Clock by cffrost · · Score: 2, Informative

    These three are the US master clock's stratum-1 servers. They most likely will not run out of bandwidth. The last one isn't (intended) for civilian users, so don't come to me if an aircraft carrier, F/A-18 Hornet, etc. smashes through your front door.

    tick.usno.navy.mil
    tock.usno.navy.mil
    ntp.usno.navy.mil

    More information.

    --
    Thank you, Edward Snowden.

    "Arguments from authority are worthless." —Carl Sagan
    1. Re:US Navy Master Clock by Just+Some+Guy · · Score: 5, Insightful

      These three are the US master clock's stratum-1 servers. They most likely will not run out of bandwidth.

      Don't do that, though; it's anti-social. The NTP ecosystem is much better off scaling horizontally than vertically.

      --
      Dewey, what part of this looks like authorities should be involved?
    2. Re:US Navy Master Clock by Just+Some+Guy · · Score: 2

      That is a perfectly reasonable use. Basically, you're configuring a few internal machines to serve as proxies for the rest. And from an operations standpoint, you're providing a (likely) much more stable clock source that's not at the whims of your upstream network.

      --
      Dewey, what part of this looks like authorities should be involved?
  13. No data behind the claim by Gothmolly · · Score: 2

    Without metrics, this is just "Please sir, may I have some more?"
    How about telling us how many servers are there, what their utilization is, client load, etc?

    --
    I want to delete my account but Slashdot doesn't allow it.
  14. Re:In the mean time.... by fuzzyfuzzyfungus · · Score: 4, Informative

    The 'default' is what it is because it is the setting that provides the best chance of working right out of the box. Hitting a known public NTP source qualifies as a pretty sane default.

    Now, if you are going to be running a bunch of systems, it certainly is polite, as well as efficient, to run your own NTP server for your internal systems, just as you likely run your own DNS server for them. However, that isn't really something you can sensibly set as the default; because every organization's internal server will have a different address and smaller sites/single users/laptops frequently off the LAN simply won't have one.

    Not all that dissimilar from the fact that most distro's package managers default to pointing directly to the public package mirrors. That is obviously nuts from the perspective of anybody running more than a few machines, you'll waste enormous amounts of time and bandwidth if you aren't caching packages and updates; but your default can't really assume the existence of a local cache...

  15. Okay, NOW I'm confused by RulerOf · · Score: 3, Funny

    "no to pizza"

    Why would you make up an acronym for a concept that doesn't exist for words that cannot be spoken?

    --
    Boot Windows, Linux, and ESX over the network for free.
  16. Re:How about static DNS name vs static IP address? by profplump · · Score: 2

    The NTP protocol doesn't support changing IPs -- there's a long-term relationship among hosts in an NTP group. Servers like yours that hop on and off the network are only useful for single-sync applications and therefore are not suitable for inclusion in an NTP pool.

  17. Too many idiots are pissing in the pool. by jcochran · · Score: 4, Interesting

    I used to have a computer in the pool, but removed it due to disgust with the NTP abusers out there. When I looked at the logs, I would see that the vast majority of incoming traffic was from a relatively small handful of IP address. For normal well behaved users, you would see them hit you every 64 seconds and over a period of a few hours slowly back off until they do a query only once every 1024 seconds. Reasonable and well behaved. Even a relatively low bandwidth DSL line could handle a lot of users like that.

    Unfortunately, not all the users are reasonable and well behaved. There were a few addresses that were hitting me with a query per second. And you can't blacklist these anti-social idiots because if you do, they're still consuming inbound bandwidth. After a period of time where 1% of the users were consuming 99% of my donated resources, I left the pool out of disgust. Was still getting hits from the idiot users a year later.

    To make their idiocy even more evident, the SHORTEST interval that NTPD will hit a server is once per 16 seconds. So those once a second idiots were using software that itself was written by idiots.

    Would I donate to the pool again? Nope. Not at long as there are invalid NTP clients that hit that often. If I could be assured that the idiots are gone, then I'd donate. Until then, I don't need the headaches.

    1. Re:Too many idiots are pissing in the pool. by profplump · · Score: 4, Interesting

      I've got one better -- I actually had a pool user call my ISP and get me disconnected (temporarily) because I was "hacking" them on UDP port 123.

    2. Re:Too many idiots are pissing in the pool. by jafo · · Score: 3, Insightful

      This is similar to the reason I ended up leaving the pool 7 years ago... The week I left the pool I had two different people call me telling me that one of my machines was hacked because it was attacking their network. "Hmm, what port are you seeing the attacks on?" "123." "You know what 123 is, right? NTP... Those packets your intrusion detection system is complaining about are in response to packets you sent that server."

      It was actually the guy that hung up on me while I was telling him that his machines were causing this, that caused me to leave the pool. I'm sorry, but I just can't be providing individual phone support to everyone who uses the NTP pool, that's kind of how I was feeling...

      I haven't been in the pool for 7 years, and I'm still getting around 8,000 packets per second on NTP, around a megabit per second. There's one DSL line in Italy that sends an average of 15 packets/sec.

      Here's a blog post I wrote in relation to this: http://www.tummy.com/journals/entries/jafo_20050412_123522

      Sean

  18. Re:$25 Raspberry Pi + $27 GPS reciever? by kwark · · Score: 3, Interesting

    An USB GPS means no Pulse Per Second (actually 1000ms). The PPS fires an interrupt on the serial port, which should result in an interrupt every 1000ms accurate within 100us.

    The lack of PPS will result in a ntpd with lots of jitter, my experience is about +/- 150ms but this depends heavily on actual USB usage and the GPS device itself. This is unsuitable for a low stratum ntpserver IMHO, so don't use it as the only timesource if you want to participate in the pool unless you advertise it as some high stratum source (I would guess 5-10).

  19. Geographic distribution by tepples · · Score: 3, Informative

    As I understand it, an NTP server closer to you on the Internet will provide more accurate time. Fewer hops away generally means a shorter ping and less jitter. Adding more servers in underserved countries adds more servers closer to users in those countries.

  20. Re:In the mean time.... by heypete · · Score: 3, Interesting

    I've always wondered about the defaults to have every RH/Debian/Suse/Ubuntu/etc. box talk directly to the pool. I know that for years, the pool has been considered fully sufficient to meet these needs, but it just always struck me as more efficient for an organization to run its own NTP server--one machine talking to the pool--and have other machines in the organization talk to that, rather than having all the machines in the organization talk to the pool.

    They actually talk to a "vendor" subdomain of the pool: 0.rhel.pool.ntp.org, 1.rhel.pool.ntp.org, 2.rhel.pool.ntp.org, etc.

    They provide vendor-specific subdomains and encourage vendors to provide NTP servers to the pool. Thus, if there's some abuse or misconfiguration that results in excessive traffic they can change the vendor-specific subdomain to prevent that traffic from flooding NTP servers without inconveniencing clients that use the general pool.

    Anyway, yes: it's better for an organization to have one or two local time servers communicate with the pool (or other sources of time) and then provide time service to the local network. Still, talking to the pool is a reasonably sane "general purpose" default.

  21. Re:$25 Raspberry Pi + $27 GPS reciever? by heypete · · Score: 2

    USB has the controller poll devices. Even on a dedicated bus there's a degree of uncertainty from the polling. Also, relying on NMEA data adds even more uncertainty, as there's no assurance that sentences are delivered in the right order or at timing more precise than one second.

    My GPS triggers a serial interrupt when the PPS line goes high. The PPS line is within 1uS of UTC. After an hour or two to settle, NTP holds the time within +/-15uS.

    Sure, one second precision is probably "good enough" for normal uses, but one can get more consistent time from most public servers. Providing one second precision time as a public time server is a bad idea, as NTP expects more consistent ticks and this will confuse other clients.

    Running a serial GPS+NTP clock is pretty easy and provides much more stable time. Why bother with a USB GPS receiver when a more suitable serial+PPS capable one is available for only slightly more?

  22. Re:In the mean time.... by Just+Some+Guy · · Score: 2

    For home use, I actually use ntpupdate in a once-a-day cron job, rather than having a full ntpd talking to the pool all day long. It was a little more work to set up (which is also something I wish could be addressed), but combined with automatic drift correction, it seems more than adequate for my needs.

    That's not a good approach. ntpd handles a lot of edge cases - what if your drift isn't constant? what if some of your time sources turn out to be flaky? - and generally only checks the upstream clocks often enough to verify that it's still running correctly. It would be really hard to build that much functionality into a home-rolled solution, and given that it's harder to do it your way than to just run ntpd in the first place, why not?

    --
    Dewey, what part of this looks like authorities should be involved?