{"id":48181,"date":"2012-08-23T00:00:00","date_gmt":"2012-08-23T00:00:00","guid":{"rendered":"https:\/\/www.techopedia.com\/how-network-time-protocol-keeps-the-internet-ticking\/"},"modified":"2020-11-07T00:13:06","modified_gmt":"2020-11-07T00:13:06","slug":"how-network-time-protocol-keeps-the-internet-ticking","status":"publish","type":"post","link":"https:\/\/www.techopedia.com\/2\/28711\/networks\/how-network-control-protocol-keeps-the-internet-ticking","title":{"rendered":"How Network Time Protocol Keeps the Internet Ticking"},"content":{"rendered":"
Here's something cool you might not have thought about: The next generation of common appliances are likely to be allocated IPv6<\/a> IP addresses. This means that your refrigerator will be able to give you a heads up when you're about to run out of milk, and your stove can save the day by letting you know that your dinner is about to be burned. To do this, these devices will need a reliable source for time reference. Network Time Protocol<\/a> (NTP) will offer just that and most likely from an atomic clock somewhere upstream.<\/p>\n It's not an issue of life-changing proportions if you can't have milk with your morning coffee (although it feels that way sometimes!) but if NTP fails in a spectacular fashion, some much more critical systems can fail as a result. Here we'll take a look at NTP, where it's used and what it controls. You'll be surprised to learn just how common this little protocol is.<\/p>\n Just about everything connected to the Internet either uses NTP to synchronize its clock, or if it doesn't, its software probably has a setting to allow it to use NTP. Smartphones, servers and switches are just some of the many Internet-connected devices that rely on time to perform critical operations such as instantiating backups or checking for security updates. And when NTP fails to function correctly, the result can be chaos.<\/p>\n One age-old issue that is still seen on some older operating systems is the seasonal give or take of an hour known commonly as daylight saving time. The hour-long time shift, when suddenly introduced to a busy server, for example, can cause problems on a number of levels. The server might get confused with when a file was created or last written to. This can lead to all sorts of errors, causing services to fail. In addition, scheduled jobs – such as scanning the file system for malware or viruses – might run again despite having already been completed. If that task is resource intensive, the result will be less-than-optimal server performance. For many businesses, such as e-commerce websites, this can have a significant impact on the bottom line.<\/p>\n At the risk of scaremongering (the Y2K bug springs to mind) a certain "leap second glitch" actually did do some damage<\/a>. In July 2012, Reditt, Gawker, Mozilla and other large sites experienced technical problems and outages after a single second was removed from the world's atomic clocks. You can see that large corporations felt the loss of a single second and such issues of time sensitivity are not just the preserve of small businesses without the resources to roll out preventative measures in advance.<\/p>\n So how does the Network Time Protocol propagate around the Internet? It harks back to a time when the Internet was a more trusted community. Without getting into too much technical detail consider that atomic clocks, commonly regarded as the most accurate (and relatively attainable) types of time pieces, sit at the top of a hierarchy, as shown in the image below.<\/p>\n Source: http:\/\/commons.wikimedia.org\/wiki\/User:Bdesham<\/a><\/p>\n The hierarchy functions initially by trust, or locality you might say. Stratum 0 <\/span>is the next level down under the atomic clock and is usually a time server connected directly to that atomic clock. Then, controlled with some explicit firewalling rules, certain servers can ask Stratum 0 <\/span>machines for the correct time.<\/p>\n So that there's never too much load on these machines, they selectively connect to trusted NTP servers underneath<\/span> them (at least in terms of the hierarchy), called Stratum 1<\/span> servers and so on. By using this model, anyone with a computer on the Internet can connect to one or more (several are often used for reliability in case one NTP server fails) servers that have recently received an accurate time from an atomic clock.<\/p>\n Many businesses run their own time servers in the interest of security because clearly, wide and unwelcome disruption is possible if a key group of business servers are given the wrong time.<\/p>\n As a result, most modern implementations of NTP can be thoroughly secured to an impressive level, giving confidence to system and network administrators<\/a>. There's little doubt, however, that some operations require even tighter security and cryptography, giving as close to a guarantee as possible that the server connecting to a precious, possibly load-sensitive, NTP server is correctly identified as being trusted. Further information on encrypting NTP exchanges can be found on the ntp.org<\/a> site.<\/p>\n As a protocol that's used almost everywhere, NTP has a relatively good track record for security bugs, but anything used as widely as this protocol is always prone to exploits.<\/p>\n When you consider that IPv6 has such a large number of IP addresses in its allocation pool, you can see why manufacturers are pushing to connect an increasing number of devices to the Internet to benefit from superior functionality. You can be certain that NTP will play a significant part in each of those devices' software builds. When it comes to modern electronics equipment of all shapes and sizes, a stitch in time saves nine. (Read more about IPv6 in The Trouble With IPv6<\/a>.)<\/p>\n","protected":false},"excerpt":{"rendered":" Here's something cool you might not have thought about: The next generation of common appliances are likely to be allocated IPv6 IP addresses. This means that your refrigerator will be able to give you a heads up when you're about to run out of milk, and your stove can save the day by letting you […]<\/p>\n","protected":false},"author":7648,"featured_media":48182,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_lmt_disableupdate":"","_lmt_disable":"","om_disable_all_campaigns":false,"footnotes":""},"categories":[575,577,566,549],"tags":[],"category_partsoff":[],"class_list":["post-48181","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet","category-it-careers","category-network-management","category-networks"],"acf":[],"yoast_head":"\nNTP: An Essential Protocol<\/span><\/h2>\n
When NTP Fails<\/span><\/h2>\n
The NTP Community<\/span><\/h2>\n
<\/p>\n
Securing NTP<\/span><\/h2>\n
A Stitch in Time<\/span><\/h2>\n