28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 6<br />

CHAPTER 6<br />

NTP6<br />

6.0 Introduction<br />

Having the correct time and time zone on your routers and having the time be synchronized<br />

across your network is useful to accurately track events that occur on the<br />

router and network and to correlate events that occur on different routers. The time<br />

and date are used to mark when the files stored on the router, including the active<br />

and previous configuration files, the system logging files, and the tracing files, were<br />

created or last updated. The messages in JUNOS logging and tracing files are<br />

timestamped to mark when events, errors, and problems occurred. All these dates<br />

and times are based on the router’s time. A number of JUNOS commands, including<br />

the ones you use to check the status and uptime of the router, report the current<br />

time and the time at which events occurred.<br />

On JUNOS routers, you can configure the time manually by simply setting it. This is<br />

generally sufficient for smaller or less complex networks. However, for larger or<br />

more global networks, you should use Network Time Protocol (NTP) to set the time<br />

for you. NTP is an IETF standard described in RFC 1305 that synchronizes time<br />

across computers and routers on the Internet. The router synchronizes the system<br />

time with an NTP server and periodically accesses the server to maintain the correct<br />

time. NTP uses a hierarchical system of clock strata to derive time. The top-level<br />

stratum 1 clock, also called the primary NTP server, is a computer that is connected<br />

to a high-precision accurate clock, such as an atomic clock, or to a radio clock, such<br />

as a GPS, Loran, or WWVB, which is the NIST time signal radio station. NTP stratum<br />

2 systems derive their time from a stratum 1 system and are one hop away from<br />

a stratum 1 system; NTP stratum 3 systems derive their time from a stratum 2 clock,<br />

and are one hop from the stratum 2 machine and two hops from the stratum 1<br />

machine. Note that these hops are NTP hops, not network hops. The systems can be<br />

any number of network hops apart. NTP can have up to 16 strata.<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.<br />

181

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!