1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Possible to run a ntp server on Tomato?

Discussion in 'Tomato Firmware' started by Larix, Nov 1, 2008.

  1. Larix

    Larix LI Guru Member

    It is possible to run a ntp Server on the router with tomato to synchron all Clients?

    I use Tomato 1.21 with WRT54G 2.2.
     
  2. mraneri

    mraneri LI Guru Member

  3. GreenThumb

    GreenThumb Addicted to LI Member

    I have wondered this too and have read the past threads. It seems most don't think the router's internal clock is accurate enough. However, one doesn't need a highly accurate internal clock as long as one is running ntpd. Think about it, a PC's internal clock isn't accurate either. I know on my fairly new system that I see lots of clock drift. Many people can see several seconds of clock drift a day. A lot of factors will affect this, especially ambient temperature shifts.

    Ntpd is a daemon that runs in the background, computes an algorithm, and keeps clock drift at bay. It will synchronize with the time server as often as the algorithm suggests is necessary. Not only that but the algorithm, after a while, will be able to accurately predict the amount of clock drift and reset the clock without needing to connect to a time server.

    Furthermore, one doesn't need to be connected directly to an atomic clock to keep accurate enough time. NTP is categorized by what is known as "stratums." Stratum 0 is an atomic clock or a GPS, radio, CDMA or other type of accurate reference clock. Stratum 1 is a machine hooked directly into this reference clock. Stratum 2 is the highest one can achieve "out on the internet." Stratum 2's are connected to stratum 1's. Most machines out on the net using ntpd are at stratum 2, 3 or 4. My PC right now is at stratum 2. Remember ntpd is different from the ntp-client. NTPD runs in real time and updates as needed. NTP-client just updates once, usually when the machine is booted.

    I see no reason that ntpd couldn't be compiled into Tomato -- it is a pretty small program and runs very well on Tomato's Linux internals.
     

Share This Page