Transcript for:
Understanding Network Time Synchronization

if you look at all of the different devices on your network your local computer your printer your local router and switch you'll notice that all of those devices have a clock so you can see the date and the time listed on the clock on that device and on most networks keeping a synchronization of all these clocks becomes incredibly important we want to be sure that all of the log files between all of these devices are synchronized with their times some servers require the time frames to be very close together for authentication purposes and if you have an outage you do want to be sure that you understand exactly when that outage may have occurred and you'll have no idea unless you have a synchronized time in fact if you look at the clock that's on your local computer you'll notice that it's probably up to date with the latest date and time because all of these updates occur automatically behind the scenes your local system and network administrators get to determine how often these updates occur and to which servers are going to be used to be able to provide the synchronization and be able to provide it with less than a millisecond of granularity on your local network we use a protocol called ntp or network time protocol on your network are going to be ntp servers and ntp clients an ntp server is going to listen on udp port 123 and it's going to respond with time information for anyone who makes a request to that server this device is not modifying their own time they're simply providing time updates to anyone who might need it on the network your device like your local computer is an ntp client ntp clients make requests to the ntp server and receive responses and update their times accordingly if a device is both an ntp client and server then it's not only making requests to another ntp server to keep its own clock up to date but it's providing answers to other devices on the network so that those devices can keep their clock synchronized as well if you're designing a network with switches routers and other devices then it's important to know what devices will be ntp clients which devices will be ntp servers and which devices will act as both clients and servers as you're making these changes to date and time on your local machines it's important to know how accurate that date and time might be we refer to the accuracy of an ntp server as a stratum value for example a stratum zero device is effectively an atomic clock providing very accurate representation of the date and time this is the accuracy you might get from something like the clock associated with global positioning systems or the u.s naval observatory keeps a stratum zero atomic clock that you can reference if your device is getting its time frame from a stratum zero then your device is a stratum one clock it's already synchronized to one of these stratum zero servers and usually these are primary time servers on your network if you're synchronizing your time to a stratum one server then that is a stratum two and each time you go one step beyond those you add one to that value so the next layer down would be stratum three generally stratum one and two are what you might see in your environments but it would also depend on how large your network is and where you're providing that synchronization from your computer is most likely operating as an ntp client so if you look at the date and time configuration on your device you'll see the ntp servers that are used to synchronize this clock you might also be able to put multiple servers into this list so if you're not able to synchronize against the first one on the list you can choose the second one and if you have a large network you may have your own ntp server this would usually reference a particular stratum device and you would choose the stratum level based on that value you may have multiple ntp servers with different stratum values across those servers and if a device is trying to decide which one to synchronize from it will probably use the lowest stratum device because that one's going to be the most accurate