Re: ntp_gettime - reconnect



In article <1192814098.089428.67380@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
lmr <lizvettem@xxxxxxxxx> wrote:

Is xntpd configurable to reconnect if the connection fails?

xntpd is either seriously obsolete or misnamed.

No version of ntpd uses connection oriented protocols, so there are no
connections to fail. See the very recent thread about using TCP.

"The" implies a single server; that is not a recommended configuration.

What happens to the OS time when the connection fails?

When ntpd has not received successful replies, or broadcasts for an
extended period of time, the time will coast at its best available
estimate of one second per second. It will also stop serving time to
downstream ntpds. Over shorter intervals additional adjustments may
still be in progress to reflect recent replies.

How can an application know if the connection has failed?

There is no connection, so the following is about recognizing
extended periods with no time synchronisation.

Depends on the OS. If you have the kernel time discipline, which would
require that xntpd be misnamed, you should have a utility called
adjtimex, although it also goes by other names, which can tell you the
current estimated and worst case error bounds on the time; it's up to
you to decide what is an acceptable error bound. Otherwise
you can use the ntpd management protocols, either directly or using
ntpq or ntpd (or whatever they are misnamed as) to read the state
of ntpd.

What does ntp_gettime returns if the connection has failed?

Which OS. There seems to be one in Slackware 11 libc, but I can't find
any documentation on my machine. I suspect, on that system, it is a
front to the same system call as used by adjtimex and will tell you the
error estimates.
.



Relevant Pages

  • Re: Wifi problems (FC 6)
    ... from the router. ... I still have to give the passphrase after bootup completes. ... ntpd tries to run before there is a connection. ...
    (Fedora)
  • Re: ntp_gettime - reconnect
    ... xntpd is either seriously obsolete or misnamed. ... No version of ntpd uses connection oriented protocols, ...
    (comp.protocols.time.ntp)
  • Re: (fedora) Re: NTP problem
    ... It starts AFTER ntpd. ... The fix is to cause ntpd to start after NetworkManager but that is not a good solution in my mind. ... You are also supposed to be able to declare a server as 'dynamic' in /etc/ntp.conf. ... The NetworkManager daemon starts on bootup, but no connection is made until a user logs in. ...
    (Fedora)
  • Re: [SLE] Atom clock synching tool
    ... to a precise clock, and my network connection is intermittent (dial-up ... I think that ntpd polls the server at long intervals, ... That means that it may well happen that the poll happens when the ...
    (SuSE)
  • Re: Time steping regardless of "-x" slew only option
    ... In ntpd the -x otion is still there, but has a slightly different interpretation. ... The xntpd and early ntpd used a different feedback loop for ordinary and slew modes. ... In this design a step forward is implemented directly, but a step backward up to one second causes the system clock to stop for one second or increment slowly during that second. ... I only have one time server, ...
    (comp.protocols.time.ntp)