NTP, Network Time Protocol version 2

Description Glossary RFCs Publications Obsolete RFCs

Description:

Protocol suite: TCP/IP.
Protocol type:Application layer protocol.
Ports:123 (UDP).
Links:

MAC header IP | IPv6 header UDP header NTP message

NTP version 2 header:

0001020304050607 0809101112131415 1617181920212223 2425262728293031
LI Version Mode Stratum Poll interval Precision
Root delay
Root dispersion
Reference clock identifier
Reference clock identifier
Reference timestamp
-
Originate timestamp
-
Receive timestamp
-
Transmit timestamp
-
Authenticator
-

LI, Leap Indicator. 2 bits.
This field is used to warn of an impending leap second.

LIDescription
0No warning.
1Last minute has 61 seconds.
2Last minute has 59 seconds.
3Alarm condition, clock not synchronized.

Version. 3 bits.
NTP version number. MUST be set to 2.

Mode. 3 bits.

ModeDescription
0reserved.
1Symmetric active.
2Symmetric passive.
3Client.
4Server.
5Broadcast.
6NTP control message.
7private use.

Stratum. 8 bits.
Stratum level of the local clock.

StratumDescription
0unspecified.
1Primary reference.
2
-
255
Secondary reference.

Poll interval. 8 bits, signed.
The maximum interval between messages in seconds to the nearest power of two.

Precision. 8 bits, signed.
Precision of the local clock in seconds to the nearest power of two.

Root delay. 32 bits, signed fixed point.
The total roundtrip delay to the primary reference source, in seconds with the fraction point between bits 15 and 16. Positive and negative values are valid.

Root dispersion. 32 bits, signed fixed point.
The maximum error relative to the primary reference source in seconds with the fraction point between bits 15 and 16. Only positive values greater than zero are valid.

Reference clock identifier. 32 bits.
Used to identify the particular reference clock.

In the case of stratum 2 and greater (secondary reference) this is the IPv4 address of the primary reference host.

In the case of stratum 0 (unspecified) or stratum 1 (primary reference), this is a four byte, left-justified, zero padded ASCII string. While not enumerated as part of the NTP specification, the following are suggested ASCII identifiers:

StratumIdentifierDescription
0"DCN"DCN routing protocol.
0"NIST"NIST public modem.
0"TSP"TSP time protocol.
1"GBR"GBR VLF radio.
1"WWVB"WWVB LF radio.
1"GOES"GOES UHF environment satellite.
1"GPS"GPS UHF positioning satellite.
1"CHU"CHU HF radio.
1"MSF"MSF HF radio.
1"WWV"WWV HF radio.
1"WWVH"WWVH HF radio.

Reference timestamp. 64 bits.
The local time at which the local clock was last set or corrected.

Originate timestamp. 64 bits.
The local time when the client sent the request.

Receive timestamp. 64 bits.
The local time when the request was received by the server.

Transmit timestamp. 64 bits.
The local time when the reply was sent from the server.

Authenticator. 0 or 96 bits.


Glossary:


RFCs:


Publications:


Obsolete RFCs:

[RFC 1119] Network Time Protocol (Version 2) Specification and Implementation.


Description Glossary RFCs Publications Obsolete RFCs