Network Time Protocol (NTP) General Overview: David L. Mills University of Delaware
Network Time Protocol (NTP) General Overview: David L. Mills University of Delaware
General Overview
David L. Mills
University of Delaware
http://www.eecis.udel.edu/~mills
mailto:mills@udel.edu
2-Aug-04 1
Introduction
2-Aug-04 2
The Sun never sets on NTP
2-Aug-04 5
NTP architecture overview
Clock Discipline
Peer 1 Filter 1
Algorithm
Selection
and Combining
Peer 2 Filter 2 Loop Filter
Clustering Algorithm
Algorithms
P/F-Lock Loop
Peer 3 Filter 3
Timestamps
NTP Messages VFO
Workstation Clients
(a) (b)
S1 S1 S1 S1 S1 S1
* * *
S2 S2 S2
z Goals
– Provide the best accuracy under prevailing network and server conditions.
– Resist many and varied kinds of failures, including two-face, fail-stop,
malicious attacks and implementation bugs.
– Maximize utilization of Internet diversity and redundancy.
– Automatically organize subnet topology for best accuracy and reliability.
– Self contained cryptographic authentication based on both symmetric key
and public key infrastructures and independent of external services.
z Non-goals
– Local time – this is provided by the operating system.
– Access control - this is provided by firewalls and address filtering.
– Privacy - all protocol values, including time values, are public.
– Non-repudiation - this can be provided by a layered protocol if necessary.
– Conversion of NTP timestamps to and from other time representations and
formats.
2-Aug-04 8
Evolution to NTP Version 4
z Current Network Time Protocol Version 3 has been in use since 1992,
with nominal accuracy in the low milliseconds.
z Modern workstations and networks are much faster today, with
attainable accuracy in the low microseconds.
z NTP Version 4 architecture, protocol and algorithms have been evolved
to achieve this degree of accuracy.
– Improved clock models which accurately predict the time and frequency
adjustment for each synchronization source and network path.
– Engineered algorithms reduce the impact of network jitter and oscillator
wander while speeding up initial convergence.
– Redesigned clock discipline algorithm operates in frequency-lock, phase-
lock and hybrid modes.
z The improvements, confirmed by simulation, improve accuracy by
about a factor of ten, while allowing operation at much longer poll
intervals without significant reduction in accuracy.
2-Aug-04 9
NTP Version 4 autonomous system model
z Fire-and-forget software
– Single software distribution can be compiled and installed automatically on
most host architectures and operating systems.
– Run-time configuration can be automatically determined and maintained in
response to changing network topology and server availability.
z Optional autonomous configuration (Autoconfigure)
– Multicast survey nearby network environment to construct a list of suitable
servers.
– Select best servers from among the list using a defined metric.
– Reconfigure the subnet for best accuracy with overhead constraints.
– Periodically refresh the list in order to adapt to changing topology.
z Optional autonomous authentication (Autokey)
– For each new server found, fetch and verify its cryptographic credentials.
– Authenticate each message received using engineered protocol.
– Regenerate keys in a timely manner to resist compromise.
2-Aug-04 10
A day in the life of a busy NTP server
2-Aug-04 11
Clients per server population by stratum (1997 survey)
800
700
600
Max
Top 10
500
Mean
Population
400
300
200
100
0
1 2 3 4 5 6-14
2-Aug-04 12
Server population by stratum (1997 survey)
60
316 219
1950
4413
ser
1
2
3
4
5
6-14
6585
2-Aug-04 13
Client population by stratum (1997 survey)
989 115
13051.00862 11211
49073
1
2
3
4
5
6-14
106825
2-Aug-04 14
Reference clock sources (1997 survey)
2-Aug-04 15
Timekeeping facilities at UDel
2-Aug-04 16
Precision timekeeping equipment (prior to 2000)
2-Aug-04 17
Squeezing the nanoseconds
z This shows the residual error measured between the Austron 2201
GPS receiver and the HP 5061A cesium clock
z The GPS receiver is stabilized using the LORAN-C receiver, which
improves its accuracy to about 50 ns, in spite of the intentional
degradation introduced in the GPS signal available to the public
2-Aug-04 18
Udel Master Time Facility (MTF) (from January 2000)
2-Aug-04 19
Briefing roadmap on NTP technology and performance
2-Aug-04 20
NTP online resources at www.ntp.org
2-Aug-04 21
Further information
2-Aug-04 22