Survey of NTP Hosts
The above experiment was designed to assess the performance of all time servers that could be found in the Internet, regardless of protocol, system management discipline or protocol conformance. In another experiment a number of NTP primary time servers was surveyed. Primary servers are synchronized by radio or satellite to NBS standards and located at or near points of entry to national and international backbone networks. Since they are monitored and maintained on a regular basis, their performance can be taken as representative of a managed system.
| Host | Synch | Hops | Samples | Unfiltered Offset | Unfiltered Delay | Filtered Offset | Filtered Delay |
|---|---|---|---|---|---|---|---|
| FORD | GOES | 10 | 8097 | 2 | 190 | 2 | 178 |
| ISI | WWVB | 12 | 2214 | -12 | 269.5 | -9 | 220 |
| MIT | WWV | 11 | 991 | -8 | 178 | -9 | 163 |
| NCAR | WWVB | 8 | 1563 | 6 | 231 | 6 | 216 |
| UIUC | WWVB | 7 | 3986 | -9 | 198 | -10 | 177 |
| UMD | WWVB | 5 | 16105 | 1 | 60 | 1 | 52 |
Table 2. Time Responses by Category
The experiment operated over a two-week period in August 1989 using paths between six primary servers on the east coast, west coast and midwest. All measurements were made from an experiment host located at the University of Delaware. All of the paths involve links operating at 1.5 Mbps or higher, although there are up to a dozen links on some paths and some lower speed links are in use. Samples of roundtrip delay and clock offset were collected at intervals from one to seventeen minutes on all six paths and the data recorded in files for later analysis.
Table 2 shows the results of the survey, which involved about 33,000 samples. For each server the name, synchronization source, number of network hops and number of samples are shown. The offset and delay columns show the sample medians in milliseconds. The unfiltered columns show the raw data, while the filtered columns show the data after processing by the clock-filter algorithm used in NTP and described below. Note that the number of samples collected depend on whether the server is selected for clock synchronization as determined by the clock-selection algorithm. As in previous surveys of this type, statistics based on the sample median yield more accurate results than those based on the sample mean. However, results for the trimmed mean (also called Fault-Tolerant Average [KOP87]) with 25% of the samples removed are within a millisecond of the values shown in Table 2. The reduced delay for the filtered data is an artifact of the filtering algorithm.
The residual offset errors apparent in Figure 2 can be traced to subtle assymetries in path routing and network/gateway configurations. If these can be calibrated, perhaps using a portable atomic clock, reliable time transfer over the Internet should be possible to a few milliseconds if measurements are made over periods in the order of weeks. Assuming individual time offset measurements can be made with confidence (see below) to this order, frequency transfer over the Internet can be determined to about 10^-7 in a day and to less than 10^-8 in two weeks.
3.1. Errors Due to Statistical Delays
In order to more completely assess the accuracy and reliability that clocks can be synchronized using NTP and the Internet, the paths illustrated in Table 2 were carefully measured in several surveys conducted over a period of 18 months. Each survey used up to six time servers and lasted up to two weeks. A typical survey involves the path between experiment hosts at the University of Delaware and USC Information Sciences Institute, located near Los Angeles, over a complex path of up to twelve network hops involving NSFNET, ARPANET and several other nets and gateways. This path was purposely selected as among the poorer performing ones in order to determine how well clocks can be synchronized under nonideal conditions.
Figure 3. Offset vs Delay
A number of algorithms for deglitching and filtering time-offset data are summarized in [MIL89a], including trimmed-mean and various kinds of nonlinear filters. The NTP Version 1 protocol used a type of median filter in which a window consisting of the last n sample offsets is continuously updated and the median sample selected as the estimate. In this algorithm the outlyer (sample furthest from the median) is discarded and the process repeated until only a single sample offset is left, which is then produced as the offset estimate. It was used in the Fuzzball and Unix implementations for about two years until the end of 1987.
Experiments during the development of NTP Version 2 have produced an algorithm which provides higher accuracy together with a lower computational burden. The key to the new algorithm became evident through an examination of scatter diagrams plotting clock offset versus roundtrip delay. Without making any assumptions about the distributions of queueing and transmission delays on either direction along the path, but assuming the intrinsic frequency offsets of the host and peer clocks are relatively small, let d0 and c0 represent the delay and offset when no other traffic is present on the path and so represents the true values. The problem is to accurately estimate d0 and c0 from a sample population of di and ci collected under typical conditions over a relatively long period. Figure 3 shows a typical scatter diagram for the path under study, in which the points (di,ci) are concentrated near the apex of a wedge defined by lines extending from the apex with slopes +0.5 and -0.5, corresponding to the locus of points as the delay in one direction increases while the delay in the other direction does not. From these data it is obvious that good estimators for (d0,c0) are points near the apex and that the best offset samples occur at the lower delays. Therefore, an appropriate technique is simply to select from the n most recent samples the sample with lowest delay and use its associated offset as the estimate. This is the basis of the NTP Version 2 algorithm described in detail in [MIL89b].
Figure 4. Raw Offsets
Figure 5. Filtered Offsets
Figure 4 shows the raw time-offset series for the path under study over a six-day interval, in which occasional errors up to several seconds are apparent. Figure 5 shows the time-offset series filtered by the NTP Version 2 algorithm, in which large errors have been dramatically reduced and may even reveal a subtle diurnal traffic variation over this path. Finally, the overall performance of the path is apparent from the error distributions shown in Figure 6. The upper line shows the distribution for the raw data, while the lower line shows the filtered data. The significant facts apparent from the latter line are that the median error over all samples was only a few milliseconds, while the maximum error was no more than 50 ms.
Figure 6. Error Distribution for NTP hosts
3.2. Errors due to Radio Propagation Effects
In order to assess the accuracy of the above results, it is necessary to consider the inherent accuracy and precision of the primary synchronization paths and radio clocks themselves. The radio clocks used in the surveys are all capable of resolution to within a millisecond and are potentially accurate to within a millisecond or two relative to the propagation medium. However, the absolute accuracy depends on knowledge of the radio propagation path to the source of standard time and frequency. In the absence of calibration by portable atomic clock, the conventional method is to estimate the propagation delay along the great-circle path between the known geographic coordinates of the transmitter and receiver. However, this can result in errors as great as two milliseconds when compared to the actual oblique ray path. Additional errors can be introduced by unpredictable latencies in the radio clocks, operating system, hardware and in the protocol software (e.g., encryption delays) for NTP itself.
An evaluation of the performance of the synchronization accuracy of the NTP primary servers relative to national standards in principle requires calibration by a portable atomic clock; however, it is possible to estimate the accuracy by means of a detailed analysis of the radio propagation path itself. In the case of the NBS WWVB service on 60 kHz, the variations in path delay are relatively well understood and limited to the order of 50 microseconds [BLA74]. In the case of the NBS GOES service the accuracy is limited by the ability to accurately estimate the distance along the line-of-sight path to the satellite orbit and the ability to maintain accurate stationkeeping in geosynchronous orbit. In principle, the estimation errors for either of these services is small compared to the accuracy expected of Internet timestamps generated with NTP.
Locations Lat Long
University of Delaware (Newark) 30.68N 75.73W
CHU Radio (Ottawa) 45.30N 75.75W
SSN: 184 Date: 1 Sept 89 Dist: 625 km
UTC MUF Path Delay (ms)
(hours) (MHz) 2.5 5 10 15
MHz MHz MHz MHz
0 14.3 5.1j2 5.1j2 5.1j2
2 11.6 4.0n2 4.0n2 2.7n1
4 9.7 4.0n2 4.0n2
6 8.3 4.0n2 4.0n2
8 7.3 4.0n2 4.0n2
10 9.2 5.1j2 5.1j2
12 13.3 5.1j2m 5.1j2
14 15.4 5.1j2 5.1j2 3.2j1
16 16.5 5.1j2 5.1j2m 3.2j1
18 17.0 5.1j2 5.1j2m 3.2j1
20 16.8 5.1j2 5.1j2 3.2j1
22 16.0 5.1j2m 5.1j2 3.2j1
Table 3. Radio Propagation Delay
However, in the case of the NBS WWV/H and NRC CHU services, which operate on HF frequencies from 2.5 through 20 MHz, radio propagation is determined by the upper ionospheric layers, which vary in height throughout the day and night, and by the geometric ray path determined by the maximum usable frequency (MUF) and other factors, which also vary throughout the day, night, season and phase of the 11-year sunspot cycle.
In an effort to calibrate how these effects affect the limiting accuracy of the NTP primary servers using WWV/H and CHU services, existing computer programs were used to determine the MUF and propagation geometry for typical ionospheric conditions forecast for September 1989. The results are shown in Table 3 by two-hour intervals throughout a 24-hour period for the path between the University of Delaware (Newark), and CHU (Ottawa). Each line of the table shows UTC (hour), MUF (MHz) and delay (ms) for forecast frequencies of 2.5, 5, 10 and 15 MHz. In case no propagation path is likely, the delay entry is left blank. The delay itself is followed by a code indicating whether the path is entirely in sunlight (j), in darkness (n) or mixed (x) and the number of hops. A symbol (m) indicates two or more geometric paths are likely with similar amplitudes, which may result in multipath fading and unstable indications.
From Table 3 it can be seen that the delay decreases as the ionospheric layers fall during the night (to about 250 km) and rise during the day (to about 350 km). The delay also changes when the number of hops and thus the oblique ray geometry changes. The maximum delay variation for this particular path is from 2.7 to 5.1 ms, a variation of 2.4 ms. While this may be an extreme case (a forecast path to Hawaii varies from 8.6 to 9.7 ms), the results demonstrate that the ultimate accuracy of HF-radio derived NTP time may depend on the ability to accurately estimate the propagation path variations or to confine observations to the same time each day.
3.3. Errors due to Radio Clock Phase Noise
Precision timekeeping at the NTP primary servers requires an exceptionally stable local oscillator reference in order to deliver accurate time when the radio propagation medium, transmitter or radio clock has failed. Furthermore, the oscillator must maintain accurate frequency in case the radio clock has excessive phase noise or experiences propagation anomaly, such as can happen when a WWV/H radio clock changes frequency. For instance, in order to maintain time to within a few milliseconds for a day without outside synchronization, the local oscillator frequency must be accurate to within 10^-7 or better.
Accuracies like this usually require a relatively expensive oven-compensated quartz oscillator, which is not a standard component in most computer systems. Accordingly, the NTP host-clock model involves an adaptive-parameter control loop which continuously corrects phase and frequency variations of the reference oscillator relative to the indications received from the radio clock. The loop parameters are chosen to match the characteristics of uncompensated board-mounted crystals used in most computing equipment, where frequency can vary several parts in 10^6 as the result of normal room temperature changes. Commercial radio clocks typically have similar oscillators and control loops, although none are known with the adaptive-parameter design used in NTP.
A problem occurs when the reference oscillator in the radio clock itself becomes destabilized due to propagation path disturbance or, in case of WWV/H clocks, when the path fails and a frequency change is made. Sometimes this can result in temporary frequency surges, which the reference oscillator in the primary server will attempt to follow. If synchronization with the radio transmitter is lost following a surge, the primary server will ordinarily continue at its last estimated frequency, which can lead to gross time errors if allowed to continue. In order to cope with this problem, NTP continuously evaluates the quality of the time indications received from the radio clock and modulates their affect on the frequency estimate. If the quality estimate is low, the effect on the frequency estimate is reduced; while, if the estimate is high, the effect is increased. The goal is to maintain the best frequency estimate possible in the face of widely varying quality in indications received from the radio clock.
The final experiment reported in this paper involves an assessment of how well the NTP estimation algorithm behaves under typical propagation conditions with a commercial WWV/H radio clock. In order to separate the effects of host-clock wander from the effects due to the radio clock itself, the host clock was derived from a precision oven-compensated quartz oscillator with rated stability of ±5x10^-9 per day and aging rate of 1x10^-9 per day. The oscillator was set to within an estimated accuracy of ±1x10^-8 relative to the 20-MHz WWV transmission under good propagation conditions near midday at the midpoint of the propagation path. The estimated offset and frequency ordinarily produced by the NTP local clock algorithm was then recorded at 30-second intervals for a period of about weeks.
Figure 7. Radio Clock Frequency Error
Figure 8. Radio Clock Offset Error
The results of the experiment are shown in Figure 7 and Figure 8. Figure 7 shows the estimated frequency error for the entire period and reveals generally good behavior, except for occasional periods where apparent phase hits cause the control loop to surge. The times of these surges are near times when the path MUF between the transmitter and receiver are changing rapidly (see Table 3) and the receiver must change operating frequency to match. An explanation for the surges is evident in Figure 8, which shows the measured offsets during an interval including a typical surge. The figure shows a negative phase excursion of about 10 ms near the time the MUF would ordinarily fall in the evening and a similar positive excursion near the time the MUF would ordinarily rise in the morning. Since these excursions are far beyond those expected due to ionospheric behavior alone, the results may point to a defect in the radio clock design itself.