Simple Network Time Protocol

17
Murali B.V.S

Transcript of Simple Network Time Protocol

Page 1: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 1/17

Murali B.V.S

Page 2: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 2/17

 Agenda History 

 What is the Diff b/w NTP and SNTP

How NTP works?

Internals of NTP

 About Brocade SNTP

Limitations

Configurations

Display Commands

Page 3: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 3/17

Introduction…  Normally PC maintains two types of clocks internally 

Software Clock

Hardware clock

The software clock runs when the computer is turned on andstops when the computer is turned off.

 The hardware clock uses a battery and runs even while thecomputer is turned off.

Both clock times are not unique.

 What is the need for standard and Accurate time ?  What are the protocols are supported for this ?

Three major timing protocols are supported.

Page 4: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 4/17

Timing protocols… 

Page 5: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 5/17

NTP - Introduction• NTP is a protocol for synchronizing the clocks on computers

over packet-switched data networks

• NTP delivers accurate and reliable time in spite of faults inthe network

• Provides a connectionless service (UDP in the TransportLayer)

• NTP is used on Internet

Page 6: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 6/17

NTP - Clock Strata

NTP uses a hierarchical organization of clocks• Stratum 0.- Composed by: Atomic Clocks, GPS Clocks.

• Stratum 1 - Primary • Time Servers.- Computers attached to stratus 0 devices

• They act as servers for requests from Stratus 2

• Stratum 2• Computers sending NTP requests to Time Servers in Stratum 1

Computers in this level will reference to several time servers tosynchronize their clocks

• S2 Computers will peer with another S2 computers to providemore reliable and robust time for all devices in the peer group

• They act as servers for requests from Stratus 3

Page 7: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 7/17

NTP - Clock Strata•

Stratum 3, 4, … • Computers employ the same NTP function as in Stratum 2

• Potentially up to 16 levels

Page 8: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 8/17

NTP - Determining Time

Timestamps exchanged between the server and clients(subnet peers)

Page 9: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 9/17

NTP Data packet  LI = leap indicator VN = version numberStrat = Stratum (0-15)Poll = poll intervallPrec = Precision

Page 10: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 10/17

Diff b/w NTP and SNTP

NTP : Network Time Protocol (RFC 1305) SNTP : Simple Network Time Protocol (RFC 4330)

Imp Points: NTP protocol packets are entirely interchangeable with SNTP protocol

packets. a NTP server cannot differentiate a request for time originating from a

NTP client or SNTP client.

The difference between the NTP and SNTP protocols lie in thealgorithms used to implement the protocols.

NTP uses complex algorithms to calculate accurate time.

SNTP is a simplified sub-set of the algorithms used by the NTPprotocol.

Page 11: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 11/17

Contd.. SNTP is ideal for synchronising computers at the leaves of a

network.

It is ideally suited to less powerful processors, such as micro-controllers and embedded systems, which do not require the

accuracy of NTP.

Page 12: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 12/17

Page 13: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 13/17

Limitations… 

The Brocade device can be configured both as an SNTP serverand as an SNTP client.

Brocade device to consult up to three SNTP servers for thecurrent system time and date.

Page 14: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 14/17

Config and Display

SNTP as a client :

Command : sntp server 208.99.8.95

Syntax: [no] sntp server { <ip-address> | <hostname> | ipv6 <ipv6-address> } [<sntp-version>] [ authentication-key <key-ID> <key-

string>] SNTP as a Server :

Command : sntp server-mode use-local-clock authentication-key abc123

Syntax: [no] sntp server-mode [ use-local-clock [ stratum <stratum-number> ] ] [ authentication-key <key-string> ] 

Page 15: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 15/17

Contd

Display Commands

show sntp associations

show sntp status

Page 16: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 16/17

Contd..

SNTP Server Information… 

Page 17: Simple Network Time Protocol

8/22/2019 Simple Network Time Protocol

http://slidepdf.com/reader/full/simple-network-time-protocol 17/17