6. NTP in the Internet System
The use of NTP in the Internet has steadily increased over the last few years. It is estimated that well over 2000 hosts and gateways presently synchronize their clocks directly to an NTP time server or indirectly via a LAN time server itself synchronized to an NTP time server. In this section an overview of the Fuzzball and Unix NTP time servers is presented along with a description of the NTP synchronization subnet now operating in the Internet.
6.1. Time Servers
The Fuzzball [MIL88] is a software package consisting of a fast, compact operating system, support for the Internet architecture and an array of application programs for network protocol development, testing and evaluation. It usually runs on a LSI-11 personal workstation, to which it also lends its name, and functions as a multi-purpose packet switch, gateway and service host. The Fuzzball is specially designed for applications requiring accuracies in the order of a millisecond, so it represents an ideal platform for the development and testing of time-synchronization architectures, protocols and algorithms, including those described in this paper. NTP and its forebears were developed and tested on the Fuzzball and the present NTP version is the reference implementation for the specification. Fuzzballs are presently installed at 18 locations in the U.S. and Europe, most of which function primarily as time servers for ARPANET, MILNET and NSFNET hosts and gateways. Ten of these, synchronized to UTC via radio or satellite, are part of the NTP primary synchronization subnet, while the remainder are part of the NTP secondary synchronization network.
An implementation of NTP as a Unix system daemon called ntpd was built by Michael Petry and Louis Mamakos of the University of Maryland. It includes all of the algorithms described in this paper and adjusts the system time using special Unix kernel primitives to control the local clock phase and frequency. Almost 1000 ntpd hosts were found in a recent survey [MIL89b]; however, this survey did not cover all Internet hosts. From other reports and personal communication it is estimated that the total number is well over 2000. Several of these, synchronized to UTC via radio, are part of the NTP primary synchronization subnet, while the remainder are part of the NTP secondary synchronization subnet.
An implementation of NTP as a dedicated processor and control program was built by Dennis Ferguson of the University of Toronto. This device uses a 68000 processor and includes an interface to a radio timecode receiver for the Canadian standard frequency/time station CHU. Other implementations are in progress at Hewlett-Packard Laboratories in Bristol, UK, and at the University of Delaware.
6.2. Synchronization Subnet
The NTP primary synchronization subnet now operating in the Internet consists of 17 primary time servers located in the U.S, Canada and the U.K. There are ten Fuzzball, five Unix and two other servers connected to receivers for WWVB, GOES, WWV/H, CHU (Ottawa) and GBR (Rugby) receivers. Of these, six are gatewayed directly to national backbone networks and are intended for ubiquitous access, while the remainder are connected to regional networks and intended for regional and local access.
Figure 6. Raw Offsets
Most of the primary servers continuously exchange NTP messages with most of the other primary servers, so the primary synchronization subnet is almost completely connected. This provides an exceptional level of redundancy to protect against component or line failures. For instance, if a timecode receiver fails, the primary server synchronizes via NTP to the neighbor at the lowest available stratum and smallest synchronizing distance and continues operation as a secondary server at the next higher stratum. If a timecode receiver or time server appears to operate correctly but delivers incorrect time (falseticker), discrepancies become apparent to its NTP peers, which then deselect the server as the result of the algorithms described in Section 4.
The NTP secondary synchronization subnet presently includes eight Fuzzball and many more other secondary time servers and clients using some thousands of peer paths on hundreds of networks. A secondary server operating at stratum n > 1 ordinarily operates with at least three peers, two at stratum n – 1 and one or more at stratum n. In the most robust configurations a set of servers agree to provide backup service for each other, so distribute some of their peers over stratum-(n – 1) servers and others over stratum-n servers in the same set. In a typical example configuration used at the University of Illinois and the University of Delaware the institution operates three stratum-2 campus servers, each peering with two out of six stratum-1 primary servers and with each other. The three campus servers in turn provide time for several stratum-3 department servers, each peering with all three campus servers. Department servers, many of which also function as file servers, then deliver time to possibly hundreds of stratum-4 workstations in client/server or broadcast modes.
6.3. Performance Analysis
As part of normal operation the Fuzzball time servers monitor delay and offset data from each of their peers. Periodically, these data are collected and analyzed to construct scatter diagrams, time-series diagrams and distribution functions. Scatter diagrams have proven exquisitely sensitive indicators of system performance and possible malfunctions. A well performing peer path, such as shown in Figure 4, exhibits a distinct wedge-shaped opening to the right and with a sharp apex. As traffic increases on the peer path the wedge fills and extends to the right, showing increased delays and delay dispersions. Asymmetrical paths often show distinct asymmetries of delay dispersions readily detected by eye.
Figure 7. Filtered Offsets
Figure 8. Error Distribution
Time-series diagrams are useful for assessing algorithm performance and systematic errors. Figures 6 and 7, constructed from the same data as Figure 4, compare the absolute raw offsets and filtered offsets, respectively, between two primary time servers over an interval of about a week in UTC hours. The servers, each synchronized to WWVB to within about a millisecond, are connected by a path including the ARPANET and an unknown number of LANs and gateways. In typical such cases the reduction in mean offset measurement error is about tenfold. However, the most dramatic reduction with the filter is in maximum error, for which distribution functions with log-log axes are most useful. Figure 8 shows such a function for the above path and the absolute raw offsets (upper curve) and filtered offsets (lower curve), from which it is apparent that the maximum error after the filter is less than about 30 ms for all but about one percent of the samples and less than about 50 ms for all samples.