2. Protocol Overview
The NTP application functions exactly as in RFC 1119. The use of remote operations and the underlying Application support means that for NTP daemons to peer with one another, they send an A-ASSOCIATE.REQUEST, and receive an A-ASSOCIATE.INDICATION.
On successful association, they subsequently periodically invoke the appropriate Remote Operation with the appropriate parameters at the appropriate frequency.
On failure, they mark the peer as unreachable.
The states that an ntp daemon records for each peer are enhanced from RFC 1119 to include:
Connected: this indicates the host is connected with its peer and synchronisation data is being exchanged.
Connecting: this state indicates that a connection is in progress. Hosts at large distances may take several seconds to connect, and such blocking can perturb the exchange of data with other hosts. Therefore, the connection is made asynchronously.
Accepting: this state indicates that a connection is being accepted from another host, but the necessary negotiation of transport session etc has not been fulfilled yet. This is another asynchronous part.
Disconnected: this state is reached if the remote host cannot be contacted.