Slashdot Mirror


Computer Network Time Synchronization

Ben Rothke writes "For most people, having their clocks accurate to within a few millionths of a second is excessive. Yet there are plenty of reasons to ensure that clocks on networks and production systems are that accurate. In fact, the need for synchronized time is a practical business and technology decision that is an integral part of an effective network and security architecture. The reality is that an organizations network and security infrastructure is highly dependent on accurate, synchronized time." Read the rest of Ben's review. Computer Network Time Synchronization author David L. Mills pages 304 publisher CRC rating 10 reviewer Ben Rothke ISBN 0849358051 summary Definitive reference on how to deploy and use NTP

From a practical perspective, nearly every activity requires synchronized time to operate at peak levels, from plane departures and sporting events, to industrial processes, IP telephony, GPS and much more. Within information technology, technologies from directory services, collaboration, to authentication, SIM and VoIP all require accurate and synchronized time to work effectively.

Computer Network Time Synchronization: The Network Time Protocol is a valuable book for those that are serious about network time synchronization. David Mills, the author of the book, is one of the pillars of the network time synchronization community, and an original developer of the IETF-based network time protocol (NTP). The book is the summation of his decades of experience and a detailed look at how to use NTP to achieve highly accurate time on your network.

While network time synchronization is indeed crucial to corporate networks, this is only the second book on the topic. Last year saw Expert Network Time Protocol: An Experience in Time with NTP, which is a most capable title. But this book is clearly the indisputable reference on the subject, given its extraordinary depth and breadth. While Expert Network Time Protocol gets into the metaphysics of time, Mills's book takes a much more rationalist and pragmatic approach, which explains the myriad mathematical equations.

Mills is an electrical engineer by training and a significant part of the books 15 chapters involve advanced mathematics. But even for those who can't manage such equations, there is enough relevant material to make the book most rewarding.

Chapters 1 and 2 provide an excellent overview of the basics of network timekeeping and an overview of how NTP works. We often take for granted that network computers have the capabilities to set their internal clock. But while the capabilities are there, the reality is that these clocks are rarely accurate and subjected to many externalities that affect their ability to provide accurate time. The book shows how highly accurate time is easily achievable; often without the need for additional hardware. The goal of book is to show the reader how they can use NTP to synchronize the time on their network hosts to within a few milliseconds.

Chapters 3 - 11 detail the internals of NTP and time synchronization. Topics such as clock discipline algorithms, clock drivers and more are detailed. For many readers, the information may be overkill, but remember that this is not a For Dummies book.

Chapters 13 - 15 ease up on the abstract mathematics and are much more readable to newbie to the world of time synchronization. Chapter 13 is quite readable and details the metrology and chronometry of how NTP measures time as opposed to other time scales.

One of the key differences is the notion of absolute vs. relative time. Relative or astronomic time is based on the earth's rotation. Since the earth's rotation is not absolute, leap seconds are added to keep UTC (Universal Coordinated Time) synchronized with the astronomical timescale.

So what exactly is this legendary thing called the second? In 1967, the 13th General Conference on Weights and Measures defined the International System unit of time, the second, in terms of atomic time rather than the motion of the Earth. Specifically, a second was defined as the duration of 9,192,631,770 cycles of microwave light absorbed or emitted by the hyperfine transition of cesium-133 atoms in their ground state undisturbed by external fields.

Since the 17th century, time has for the most part been measured astronomically via the solar day. But in the 1940s, it was established that the earth's rotation is not constant, as the earth is spinning slower than it did years ago.

Part of what NTP provides is coordination to UTC. UTC provides operating systems and applications with a common index to synchronize events and prove that events happened when timestamps state they did. UTC is a 24-hour clock system and that any given moment, UTC is the same no matter where you are located.

For the purist, UTC really stands for Coordinated Universal Time, but both terms are used. Mills somewhat humorously notes that we follow the politically correct convention of expressing international terms in English, and their abbreviations in French.

Chapter 15 concludes the book with a fascinating look at the technical history of NTP. As of mid-2006, NTP has been in use for over 25 years and remains one of the longest, if not longest running, continuously operating application protocols in use on the Internet. Currently in version 4.2.1, NTP is a well-developed, stable protocol.

For those that are simply interested in how time synchronization works, or are responsible for time synchronization in their organization, Computer Network Time Synchronization: The Network Time Protocol is the most comprehensive guide available to using NTP.

For those that need an exhaustive tome on all of the minutiae related to NTP and synchronization, this is the source. Short of a vendor and product analysis, the book covers every detail within NTP and is the definitive title on the subject.

Two new books on the subject in a year demonstrate the importance of time synchronization. While this is not likely indicative of a flood of new books on time synchronization, this book should be considered the last word on the topic."

You can purchase Computer Network Time Synchronization from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

54 of 240 comments (clear)

  1. Finally, an NTP book for the masses by Giant+Ape+Skeleton · · Score: 5, Funny

    It's about time!

    --
    The difference between stupidity and genius is that genius has its limits.
    1. Re:Finally, an NTP book for the masses by From+A+Far+Away+Land · · Score: 3, Funny

      "It's about time!"

      I clocked your pun doing 110 in a 100 pun zone. If convicted, the punishment is setting VCR clocks in your state, each to within a fraction of a second of each other.

    2. Re:Finally, an NTP book for the masses by Seraphim1982 · · Score: 3, Insightful

      Just cut the power for a few minutes. Then they'll all be blinking '12:00'.

  2. NTP gurus wanted... ? by crazyjeremy · · Score: 2, Insightful

    Seriously... about how many people out there actually need to know NTP to this degree? Anyone have a rough estimate? I can't imagine any one organization would have to dedicate an individual to this sort of thing or would they?

    1. Re:NTP gurus wanted... ? by Just+Some+Guy · · Score: 3, Interesting
      Seriously... about how many people out there actually need to know NTP to this degree?

      Oh, about 10. But how many weird things do you know that not many others would value?

      Some people are really, really into keeping time. It's a hobby for them. This book is for that sort of person. Besides, although my company didn't need to hire a person to do nothing but NTP, they certainly needed at least one person on staff with that skillset (hint: Active Directory, Kerberos, "clockskew") to keep everything else working. How fortunate for me that my boss needs the skills that I picked up out of personal curiosity!

      --
      Dewey, what part of this looks like authorities should be involved?
    2. Re:NTP gurus wanted... ? by Raul654 · · Score: 4, Interesting

      Mills told me he was rather popular back around the year 2000 ;) {to the point of being called to the White House for a series of meeting about Y2K complaince)

      More interestingly, Mills said that he fears a potential DOS against the entire internet would be to use an NTP hack to advance the clocks on all the caches, thus expiring their contents and causing the root servers to be flooded. This would effectively bring down DNS until the caches could be fixed.

      --


      To make laws that man cannot, and will not obey, serves to bring all law into contempt.
      --E.C. Stanton
    3. Re:NTP gurus wanted... ? by Gospodin · · Score: 2, Funny

      In digits, of course... :)

      --
      ...following the principles of Heisenburger's Uncertain Cat...
    4. Re:NTP gurus wanted... ? by jimwelch · · Score: 2, Informative

      >>about how many people out there actually need to know NTP to this degree?

      NTP or acurate time?

      I am sure you can find the answer to acurate time on Google or by reading the book.
      But just to get us started:

        * network file sharing with central backup
        * ditto with CVS type system.
        * network databases.

      --
      Never trust a man wearing a coat and tie!
    5. Re:NTP gurus wanted... ? by schon · · Score: 2, Funny

      Some people are really, really into keeping time.

      Yeah, it's called OCD. :o)

    6. Re:NTP gurus wanted... ? by DerekLyons · · Score: 2, Informative
      Seriously... about how many people out there actually need to know NTP to this degree? Anyone have a rough estimate? I can't imagine any one organization would have to dedicate an individual to this sort of thing or would they?
      Anyone writing hard real time distributed applications will need to know NTP this deep, or deeper. So figure, at least a couple of dozen or more individuals in the brokerage sub section of the financial world *alone*.
    7. Re:NTP gurus wanted... ? by Kludge · · Score: 2, Insightful

      I'm glad he wrote it down.
      What happens when he gets hit by a car?
      Reading a book is much easier than decyphering code.

    8. Re:NTP gurus wanted... ? by QuietLagoon · · Score: 2, Interesting
      Seriously... about how many people out there actually need to know NTP to this degree?

      A small percentage of computers need to be controlled to the accuracy of NTP's capability, and to the level of knowledge represented in this august book.

      For the rest of us there's OpenNTP which is a much simplified and more secure version of NTP. If you're happy with a clock that is accurate to two- or three-hundred milliseocnds, check it out.

    9. Re:NTP gurus wanted... ? by macdaddy · · Score: 2, Interesting
      Oh, I see. So what you're saying is that you'd forego actually knowing how to properly design a NTP system in lieu of simply bombarding stratum 2 and 3 servers with queries directly from your individual desktops. I see. That makes sense.

      Yes folks, there is a right and a wrong way to set up NTP. Having each of your individual clients poll stratum 2 or 3 (or Allah forbid a stratum 1 server) directly is like configuring each of your clients to poll the the Internet's DNS Root Servers directly. After all very few of the queries sent to the root servers are unnecessary or frivolous. A proper NTP design is essential for any entreprise-class network. I include in this ISPs. ISPs should provide their customers with a locally-available NTP service. It's extremely easy to do. Then they should block outbound NTP queries from their dynamically-assigned customers (allowing the statics out, like you normally would for exceptions to ACLs like when you block SMTP out (you do block outbound SMTP, don't you?)). I've long-since believed that NTP will someday become a point of attack. It's not that I find a fault in the program or protocol but the very fact that it's a protocol used to enhance security and improve auditing and certainly isn't out of the minds of hackers. NTP would be fairly easy to DoS if proper ACLs aren't in place.

      The point of all this is that NTP is very easy to set up correctly and is even easier to set up wrong. I wish everyone would spend the extra 0.001% of effort to do it right.

  3. All you need to know about NTP by Just+Some+Guy · · Score: 5, Funny
    1. Operate a stratum 1 ticker.
    2. Get D-Link to use you as the non-configurable time source for a line of disposable networking gear.
    3. Profit!

    Congrats to PHK for finding the elusive middle step!

    --
    Dewey, what part of this looks like authorities should be involved?
    1. Re:All you need to know about NTP by Tackhead · · Score: 4, Funny
      > 2. Get D-Link to use you as the non-configurable time source for a line of disposable networking gear.

      The man who uses one NTP server always knows what time it is. The man who uses two NTP servers is never sure.

      The man who wrote the firmware for D-Link is why nobody's sure anymore.

  4. ieee 1588 is where it is at by __aapopf3474 · · Score: 5, Informative
    NTP is somewhat coarse, IEEE 1588 gives much tighter timing. IEEE 1588 can be used for industrial automation.

    From the intro:

    Measurement and control systems are widely used in traditional test and measurement, industrial automation, communication systems, electrical power systems and many other areas of modern technology. The timing requirements placed on these measurement and control systems are becoming increasingly stringent. Traditionally these measurement and control systems have been implemented in a centralized architecture in which the timing constraints are met by careful attention to programming combined with communication technologies with deterministic latency. In recent years an increasing number of such systems utilize a more distributed architecture and increasingly networking technologies having less stringent timing specifications than the older more specialized technologies. In particular Ethernet communications are becoming more common in measurement and control applications. This has led to alternate means for enforcing the timing requirements in such systems. One such technique is the use of system components that contain real-time clocks, all of which are synchronized to each other within the system. This is very common in the general computing industry. For example essentially all general purpose computers contain a clock. These clocks are used to manage distributed file systems, backup and recovery systems and many other similar activities. These computers typically interact via LANs and the Internet. In this environment the most widely used technique for synchronizing the clocks is the Network Time Protocol, NTP, or the related SNTP.

    Measurement and control systems have a number of requirements that must be met by a clock synchronization technology. In particular:

    • Timing accuracies are often in the sub-microsecond range,
    • These technologies must be available on a range of networking technologies including Ethernet but also other technologies found in industrial automation and similar industries,
    • A minimum of administration is highly desirable,
    • The technology must be capable of implementation on low cost and low-end devices,
    • The required network and computing resources should be minimal.

    In contrast to the general computing environment of intranets or the Internet, measurement and control systems typically are more spatially localized.

    IEEE 1588 addresses the clock synchronization requirements of measurement and control systems.

    1. Re:ieee 1588 is where it is at by __aapopf3474 · · Score: 2, Informative

      IEEE 1588 is much more accurate than NTP. Yes, to get greatly increased accuracy, it is helpful to have switches that properly handle 1588 traffic. However, this is not a huge issue with industrial automation, where one has complete control over the hardware. Yes, I'm not sure if running 1588 over the commodity internet would buy you much. However, if you really wanted tight timing, then 1588 is worth a look. The reason to use 1588 over NTP is if you need greater accuracy like +/- 60ns. My interest in 1588 is dealing with realtime distributed operating systems. It is starting to look like interesting things can be done if you have a really precise clock on physically distributed nodes. This could be interesting for distributed time triggered architectures.

  5. Origination of abbreviation UTC by flooey · · Score: 5, Informative

    In case anyone's interested, one of the reasons that the abbreviation is UTC is because there are a series of Universal Time time references: UT0, UT1, etc. Despite being officially "Coordinated Universal Time", it's abbreviated as UTC partly to continue the UTx notation.

    1. Re:Origination of abbreviation UTC by flooey · · Score: 2, Informative

      Not so. From Wikipedia:

      The very next paragraph in that article says:

      "UTC" also has the benefit that it fits in with the pattern for the abbreviations of variants of Universal Time. "UT0", "UT1", "UT1R", and others exist, so appending "C" for "coordinated" to the base "UT" is very satisfactory for those who are familiar with the other types of UT.

    2. Re:Origination of abbreviation UTC by jpetts · · Score: 4, Funny

      Also, so nobody suggests using Coordinated Universal Network Time.

      --
      Call me old fashioned, but I like a dump to be as memorable as it is devastating - Bender
  6. Step #1 by Iphtashu+Fitz · · Score: 2, Funny

    Don't synchronize with a time server in Denmark, unless of course you are in Denmark.

  7. I've always wondered... by SenorAmor · · Score: 5, Interesting

    It's been proven that the Earth is rotating slower than it used to be, and the definition of a second was changed so that the length of a second remains constant. The day, however, remains the same as it always has been: one full rotation of the Earth. Eventually there will be conflict between the two. If the rotation of the Earth continues to slow, there will be more seconds (and, in turn, more minutes, and then more hours) in a given day. To that end, I've always wondered what would be more disruptive to the human populace: longer days or longer seconds?

    1. Re:I've always wondered... by Just+Some+Guy · · Score: 2, Insightful
      To that end, I've always wondered what would be more disruptive to the human populace: longer days or longer seconds?

      Longer seconds. The change in length of a day is extremely gradual ("glacial" is fast by comparison), but as seconds are defined in terms of physical constants, a changing second means that our physics have ripped and we're fixin' to die.

      --
      Dewey, what part of this looks like authorities should be involved?
    2. Re:I've always wondered... by hubie · · Score: 2, Informative
      and the definition of a second was changed so that the length of a second remains constant
      This isn't my field of study, but I believe the second is defined as a certain number of oscillations between two hyperfine levels of the cesium-133 atom. This was done in the late sixties to get the definition of the second away from earth rotations and tie it to something more reliable and easy to measure.
    3. Re:I've always wondered... by iggymanz · · Score: 2

      leap seconds are added to the "civil" day to solve that problem roughly every year at present. And there's more than one type of "day", there's mean solar day, which in 1820a.d. was 86,400 atomic seconds, and now is about 2 milliseconds longer.

    4. Re:I've always wondered... by mOdQuArK! · · Score: 4, Funny

      "easy to measure" being one of those relative terms that make normal people roll their eyes when thinking about engineers & scientists :-)

    5. Re:I've always wondered... by Oloryn · · Score: 2, Funny
      To that end, I've always wondered what would be more disruptive to the human populace: longer days or longer seconds?

      How many people do you know who don't want more seconds (or more likely, minutes or hours) in a day?

  8. About the author by Raul654 · · Score: 4, Interesting

    Mills is a prof in my department and was my advisor back when I was an undergrad. He is a very smart guy (A bit of trivia about him - he was asked to consult for the Chinese government on the Great Firewall and turned down the offer for ethical reasons). He also prides himself on the fact that NTP has never had a serious (any?) security issue despite being around damn-near forever. One very neat observation he described during a seminar on NTP was that high CPU load increases CPU heat, and CPU heat increases clock drift. Thus, NTP can, in effect, be used to measure CPU loads remotely. Another thing is, assuming CPU load is constant, it can be used as a thermometer, and in practice he has used it to detect fan failures.

    --


    To make laws that man cannot, and will not obey, serves to bring all law into contempt.
    --E.C. Stanton
    1. Re:About the author by nagora · · Score: 2, Insightful
      Sorry, but that's ghey.

      It's what?

      --
      "Encyclopedia" is to "Wikipedia" what "Library" is to "Some people at a bus stop"
    2. Re:About the author by Jacer · · Score: 2, Interesting

      One would assume with the nick GeekGirlSarah, that your name is Sarah....

      --
      --fetch daddy's blue fright wig, i must be handsome when i release my rage
  9. Duh by 0racle · · Score: 2, Interesting

    a second was defined as the duration of 9,192,631,770 cycles of microwave light absorbed or emitted by the hyperfine transition of cesium-133 atoms in their ground state undisturbed by external fields.

    Well of course, I mean, what took them so long? Seriously though it's things like this that make me ask, what on earth lead them to define it like that? Its not 9 million cycles, not 9.5 million, not an obvious number of cycles at all. How did 9,192,631,770 cycles become it, not 9,192,631,771, thats too long, not 9,192,631,769 thats too short. Only 9,192,631,770 was good enough.

    --
    "I use a Mac because I'm just better than you are."
    1. Re:Duh by PatrickThomson · · Score: 2, Informative

      They took the pre-existing definition of a second, and measured how many cycles happened in that second, then rounded that to the nearest integer and said "new definition which is only dependant on quantum mechanics".

      --
      I am one of many. My idea is not unique, nor do I expect my voice alone to sway you. I speak in a chorus of opinion.
    2. Re:Duh by Ingolfke · · Score: 4, Funny

      It's part of the Davinci code.

    3. Re:Duh by Shimbo · · Score: 4, Funny

      Seriously though it's things like this that make me ask, what on earth lead them to define it like that? Its not 9 million cycles, not 9.5 million, not an obvious number of cycles at all.

      Most of the SI units have been through several iterations. At each refinement you try to have a more precise value, whilst changing the absolute value as little as possible.

      For example, why do we define an international mile to be 0.9144 metres, rather than the original 1000 double paces of a Roman legionary? Well, it's pretty hard to find a properly calibrated legionary these days.

  10. Accurate time useful in computer security by SecureTheNet · · Score: 2, Interesting

    Accurate time is very useful in computer security work. For one, it's needed to accurately correlate log file entries from one computer to another in case of a breach, to identify means of access and creating an accurate picture of what happened and when.

    --
    SecureThe.Net - Practical Resources for Securing Systems
  11. Of Phones and Networks by nbannerman · · Score: 2, Interesting

    I run the network and phone system in a college, and whilst I appreciate NTP is great, it does have drawbacks.

    The biggest problem is keeping computer systems synched to 'real life' systems, such as analogue clocks and college bells. These systems have a mind of their own, and are seemingly set to random times.

    A prime example; my computer at work synchs from the web, as do the servers, which in turn means all the Cisco VoIP phones are synched as well. The bells however, are never quite spot on, nor are the many analogue clocks in offices and classrooms.

    Does anyone have a method of keeping everything in synch, because centralised and synchronised systems fall apart when dealing with 'real life' systems that are out of my hands.

    1. Re:Of Phones and Networks by k12linux · · Score: 2, Funny

      Easy. Get payroll to set all punch-clocks to the NTP time. You'll find that most manual clocks will "magically" adjust themselves shortly after.

  12. Clock wisdom by Copid · · Score: 2, Funny

    "A man with one clock knows what time it is. A man with two clocks is never quite sure."

    --
    An interesting anagram of "BANACH TARSKI" is "BANACH TARSKI BANACH TARSKI"
  13. NTP is great, except if you need it in Windows by Circuit+Breaker · · Score: 5, Interesting

    For various reasons, I'm trying to synchronize a clock to millisecond accuracy among ~50 Microsoft Windows stations, and it's nearly impossible -- No NTP client for Windows (including AboutTime, 2000's internal client, XP's internal client, and a port of the standard NTP client) appears to be able to keep time reasonably synchronized.

    Part of the problem is the Windows Kernel counting time in 10ms or 15ms (depending on whether or not you use an SMP kernel), which automatically says you can't get more than ~30ms precision. But it seems so much worse, with every machine drifting up to ~1 second daily unless they are syncrhonized very frequently -- I get somewhat reasonable results synchronizing them every minute.

    On Linux and FreeBSD, this is so trivial it's not even funny; My linux machines manage to keep synchronization to ~0.5 ms over months. Please wake me up when Windows is ready for the enterprise. And, yes, the "enterprise" I work in does need millisecond precision time-of-day synchronization among machine, as does any place that seriously tries to correlate network events (especially those related to security) collected at different points in the network.

    1. Re:NTP is great, except if you need it in Windows by ldspartan · · Score: 2, Interesting

      If its synchronizing on a schedule ("synchronizing them every minute"), you don't have an NTP client, you have an SNTP client. Real NTP doesn't have a concept of a synchronization interval, the clock is either synchronized or it isn't.

      I think.

      This appears to be a port of real-deal NTP code to windows. I've never used it, just found it in a few minutes of googling, but its worth a shot.

      --
      Phil

    2. Re:NTP is great, except if you need it in Windows by pe1chl · · Score: 2, Informative

      Common PC hardware can't keep a clock within this accuracy

      Why not? You must be thinking about the CMOS clock?
      Current PC hardware has high-resolution timers that can be synchronized to within microseconds using NTP.

  14. Re:GLOBAL SLOWING!!! by Urusai · · Score: 2, Funny

    Just jackrabbit your starts to the west, and let the engine brake you going east. Do your part to stop global slowing!

  15. GPS card by hey · · Score: 4, Informative

    If you really care about time why not use a GPS card in your PC.

    eg http://www.visualgps.net/NMEATime/

  16. Hasn't this already been written? by Ryan+Amos · · Score: 2, Funny
    man ntpd
    1. Re:Hasn't this already been written? by Antique+Geekmeister · · Score: 2, Informative

      I agree with you in general: the man pages for NTP are quite good. However, there are a few vagaries that I certainly hope this book covers: why you always want at least 3 upstream NTP servers and at least 3 local ones if you're maintaining them (so that the 2 good ones can outvote the confused one), how to gracefully monitor the state of the NTP servers (the Nagios plugins are quite good!), etc.

    2. Re:Hasn't this already been written? by pVoid · · Score: 2, Funny
      from man ntpd:

      to preserve the ultimate precision, about 232 picoseconds. While the ultimate precision, is not achievable with ordinary workstations and networks of today, it may be required with future gigahertz CPU clocks and gigabit LANs.

      Man, I can just see the cobwebs floating in the wind on that thing.

  17. I am into accurate time. by JavaManJim · · Score: 4, Interesting

    For my computer I am testing an old Heath Most Accurate Clock II* with its RS232 attachment that goes to the serial port on my HP Pavilion. The only problem is the brick sized power transformer gets very hot because its supplying two amp heavy circuits. Use ThinkGeek's KillAWatt to measure power consumption. AWK the transformer is hungry. I guess for real use eventually I will peek at time once a day or so.

    *Heath Most Accurate Clock II, synchronizes with WWV at 10 meters.

    I think that the network, with all its erratic latency, is not really the best source to use as a timing transport.

    Some people have occasionally picked up old cesium clocks from ebay to set the PC's time. Most are from labs and after purchase, probably gather dust in the garage.
    http://tycho.usno.navy.mil/cesium.html

    For my wrist, myself and lots of us geeks, use a Casio G-Shock (GW-700a) that updates its time from WWV three times a night. Its more accurate than the clocks at our local public DART train station. They are always four seconds slow.

    I also have a great little Nixie clock kit that gets its info, not from WWV via radio, but from satellite GPS time. Its the dinky one at the bottom of the page. Looks fantastic though.
    http://www.amug.org/~jthomas/clockpage.html

  18. Re:Summary of the book by QuesarVII · · Score: 2, Informative

    Even shorter still!

    emerge ntp

  19. Re:time joke by one2go · · Score: 2, Funny
    Here's another one (from Zowie)

    A rather confident 007 walks into a bar and takes a seat next to a very attractive woman. He gives her a quick glance, then casually looks at his watch for a moment. The woman notices this and asks, "Is your date running late?" "No", he replies, "I am here alone. Q has just given me this state-of-the-art watch and I was just testing it." The intrigued woman says, "A state-of-the-art watch? What's so special about it?" "It uses alpha waves to telepathically talk to me," he explains. "What's it telling you now?" "Well, it says you're not wearing any panties..." The woman giggles and replies, "Well it must be broken because I am wearing panties!" 007 taps his watch, ...and says "Bloody thing must be an hour fast..."

  20. Microsoft's version of NTP by AB3A · · Score: 4, Informative

    Actually, having set up the NTP servers in our network, I have to say that the Windows version of NTP draws very substantial vacuum. It's not nearly as easy to configure. It can't be queried about what it thinks of the configured time standards, and I'm not exactly sure how they expect you to manage keys.

    As long as you don't give a damn about sub-second accuracy (in our SCADA system, we like to stay in sync within 7 milliseconds or less) and as long as you don't care about traceability, then I guess it's better than nothing. However, the NT version of Mills' NTP is free, it is very stable on all versions I've tested it on from NT through 2003 server, and the configuration is exactly the same as most POSIX systems.

    Having been there and tried it, I have to say that Microsoft did a piss poor job with their version of NTP. Get the GNU version. It Just Works Better.

    --
    Nearly fifty percent of all graduates come from the bottom half of the class!
    1. Re:Microsoft's version of NTP by pe1chl · · Score: 4, Informative

      Microsoft did not implement NTP. They first needed it to be simplified to "SNTP", which essentially is what they always did: send a query, receive the result, and put the timestamp in that result in the clock.
      A full NTP implementation includes a PLL that locks the clock to the consecutive incoming timestamps. This filters out jitter and ensures that the system knows about the inaccuracy of the clock oscillator. It uses this information during the intervals between incoming timestamps.

      So, an NTP-controlled system smoothly advances time staying as close to real time as possible, while a Microsoft system has a sawtooth pattern and may even step the clock backward when a query happens to be delayed in the network.
      Don't use SNTP outside of a LAN.

  21. One thing about accuracy... by jafo · · Score: 2, Insightful

    On production systems it's much more important that the servers are all close to each other, not so much that they are close to NIST time. So, don't care so much that your servers are stratum 2 or 3, set up a couple of sources and then sync the rest of your boxes to them. I'd rather have all my machines be one second off but the same one second off, than have them all be closer to real time with larger differences between them.

    Also, one thing about the time on earth changing that I didn't realize before. Damming water is one of the few activities that has changed the rotation speed of the earth, I've been told. Because it collects large masses of water further from the equater.

    And if you don't want to buy a GPS, the guy responsible for the NIST time standard at NIST Boulder says that syncing your clock once a day via phone from one of their services is good enough to be considered stratum 1.

    One final time note... We used to hold our LUG meetings at NIST. One time during a meeting, their official digital clocks stopped for the better part of a minute, and then ran quickly to catch up.

    Sean

  22. Do they have Mills' leap second stuff in there? by Animats · · Score: 3, Interesting
    Dave Mills used to like to observe what happens after a leap second. Among other things, every generator on the power grid has to make sixty extra turns, which takes about four hours. Some computer clocks used to count the power line (this seems to be rare today) and you could watch, via NTP, the stress in the clock network as the power line clocks disagreed with the WWV clocks, and slowly came into synchronism.

    Actually, synchronization is less important than it used to be, because more stuff is buffered. All three US television networks used to be locked together in frame sync to a master clock in New York, so that video sources could be switched without all the TV receivers rolling for a few frames. Now everything goes through frame buffers, so that's not an issue.

    Similarly, US telephony used to be locked to a master clock in New Jersey, so that all the T1 lines ran in sync and bit for bit transfer worked. That's not as important as it used to be, with so many different transmission media, some synchronous and some packetized.

  23. Never use two NTP sources! by Terje+Mathisen · · Score: 3, Informative

    First, my credentials: I've been working with NTP for more than 10 years, my personal web server, which you can find via http://www.ntp.org/ (I won't link directly to try to avoid the /. effect.) have hosted windows binaries of the official NTP distribution for some years now.

    Since the original article didn't mention this, I would like to warn NTP users against ever configuring two servers! The reason is that NTP by design requires a plurality of all sources to agree on what the time is, before it will believe any of them.

    This means that if you have two sources that disagree slightly, you can relatively easily get into a situation where your local machine decides to distrust both and simply start drifting away. I have actually seen this happen multiple times.

    This means that you need to configure either a single or at least three servers, and if you want fault tolerance you actually need four, since that will leave three even when one of them fails.

    Terje

    --
    "almost all programming can be viewed as an exercise in caching"