[ntp:questions] Two servers, one client : one problem

Yann I. yann.frm at gmail.com
Tue May 3 16:58:04 UTC 2011


Hi !

I have some problems about the configuration of ntp servers and client.
You'll find the configurations used for the test and some outputs (of "ntpq
-p" for example).
First of all, the both servers are standalone and are not synchronized with
an external ntp server. Later, they'll be connected to external ntp server.
Later...
The servers and client don't use iptable.

My problem is the following :
 I don't understand why the client can't be synchronized with one of the
servers. The servers are seen as a "falsetickers"...
 The "ntpq associations" shows me a "reject" but I don't understand the
reason...

Thank you for your help.
Regards,

Yann I.


Here are the configuration files and some outputs for the servers and the
client (which are on the same LAN without iptables) :


=====================
Server 01 (srv01-cba)
=====================
Configuration file :
------------------
  server  127.127.1.0
  fudge   127.127.1.0 stratum 4

  driftfile /var/lib/ntp/drift

  peer srv02-yil

Output of "ntpq -p" :
-------------------
       remote           refid      st t when poll reach   delay   offset
jitter

==============================================================================
  *LOCAL(0)        .LOCL.           4 l   27   64  377    0.000    0.000
0.001
   srv02-yil       LOCAL(0)         5 u  917 1024  376   15.406  -263.19
20.361

Several outputs :
---------------
# ntpq -p associations
Temporary failure in name resolution
[root at localhost etc]# ntpq
ntpq> associations

ind assID status  conf reach auth condition  last_event cnt
===========================================================
  1 18629  9614   yes   yes  none  sys.peer   reachable  1
  2 18630  9014   yes   yes  none    reject   reachable  1
ntpq>
ntpq> rv 18629
assID=18629 status=9614 reach, conf, sel_sys.peer, 1 event, event_reach,
srcadr=LOCAL(0), srcport=123, dstadr=127.0.0.1, dstport=123, leap=00,
stratum=4, precision=-20, rootdelay=0.000, rootdispersion=10.000,
refid=LOCL, reach=377, unreach=0, hmode=3, pmode=4, hpoll=6, ppoll=10,
flash=00 ok, keyid=0, ttl=0, offset=0.000, delay=0.000,
dispersion=0.924, jitter=0.001,
reftime=d16aac9e.b6dea2a2  Tue, May  3 2011 16:32:30.714,
org=d16aac9e.b6dea2a2  Tue, May  3 2011 16:32:30.714,
rec=d16aac9e.b6deb68c  Tue, May  3 2011 16:32:30.714,
xmt=d16aac9e.b6de9123  Tue, May  3 2011 16:32:30.714,
filtdelay=     0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00,
filtoffset=    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00,
filtdisp=      0.00    0.96    1.92    2.87    3.81    4.76    5.72    6.66
ntpq>
ntpq> rv 18630
assID=18630 status=9014 reach, conf, 1 event, event_reach,
srcadr=srv02-yil, srcport=123, dstadr=10.0.0.226, dstport=123,
leap=00, stratum=5, precision=-20, rootdelay=0.000,
rootdispersion=11.307, refid=LOCAL(0), reach=376, unreach=0, hmode=1,
pmode=1, hpoll=10, ppoll=10, flash=800 peer_loop, keyid=0, ttl=0,
offset=-303.907, delay=15.333, dispersion=26.270, jitter=20.352,
reftime=d16aaad0.4019aeab  Tue, May  3 2011 16:24:48.250,
org=d16aaae8.401958ba  Tue, May  3 2011 16:25:12.250,
rec=d16aaae8.8fdc99be  Tue, May  3 2011 16:25:12.561,
xmt=d16aabeb.b6b664e1  Tue, May  3 2011 16:29:31.713,
filtdelay=    15.33   15.44   15.41   15.34   15.31   15.23   15.25   15.22,
filtoffset= -303.91 -283.55 -263.19 -242.87 -222.58 -202.30 -182.10 -161.92,
filtdisp=     11.47   26.86   42.24   57.61   72.96   88.33  103.72  119.10



=====================
Server 02 (srv02-yil)
=====================
Configuration file :
------------------
  server  127.127.1.0
  fudge   127.127.1.0 stratum 4

  driftfile /var/lib/ntp/drift

  peer srv01-cba

Output of "ntpq -p" :
-------------------
       remote           refid      st t when poll reach   delay   offset
jitter

==============================================================================
  *LOCAL(0)        .LOCL.           4 l   31   64  377    0.000    0.000
0.001
   srv01-cba       LOCAL(0)         5 u  136 1024  377    0.001  314.047
20.291

Several outputs :
---------------
  # ntpq
  ntpq> associations

  ind assID status  conf reach auth condition  last_event cnt
  ===========================================================
    1 24386  9614   yes   yes  none  sys.peer   reachable  1
    2 24387  9014   yes   yes  none    reject   reachable  1
  ntpq>
  ntpq>
  ntpq> rv 24386
  assID=24386 status=9614 reach, conf, sel_sys.peer, 1 event, event_reach,
  srcadr=LOCAL(0), srcport=123, dstadr=127.0.0.1, dstport=123, leap=00,
  stratum=4, precision=-20, rootdelay=0.000, rootdispersion=10.000,
  refid=LOCL, reach=377, unreach=0, hmode=3, pmode=4, hpoll=6, ppoll=10,
  flash=00 ok, keyid=0, ttl=0, offset=0.000, delay=0.000,
  dispersion=0.931, jitter=0.001,
  reftime=d16aad97.4018f4c0  Tue, May  3 2011 16:36:39.250,
  org=d16aad97.4018f4c0  Tue, May  3 2011 16:36:39.250,
  rec=d16aad97.4019042a  Tue, May  3 2011 16:36:39.250,
  xmt=d16aad97.4018d1f3  Tue, May  3 2011 16:36:39.250,
  filtdelay=     0.00    0.00    0.00    0.00    0.00    0.00    0.00
0.00,
  filtoffset=    0.00    0.00    0.00    0.00    0.00    0.00    0.00
0.00,
  filtdisp=      0.00    0.95    1.94    2.93    3.90    4.85    5.81
6.78
  ntpq>
  ntpq>
  ntpq>
  ntpq>
  ntpq> rv 24387
  assID=24387 status=9014 reach, conf, 1 event, event_reach,
  srcadr=srv01-cba, srcport=123, dstadr=10.0.0.233, dstport=123,
  leap=00, stratum=5, precision=-20, rootdelay=0.000,
  rootdispersion=11.093, refid=LOCAL(0), reach=377, unreach=0, hmode=1,
  pmode=1, hpoll=10, ppoll=10, flash=800 peer_loop, keyid=0, ttl=0,
  offset=314.047, delay=0.001, dispersion=18.696, jitter=20.291,
  reftime=d16aabdf.b6b4b4af  Tue, May  3 2011 16:29:19.713,
  org=d16aabeb.b6b664e1  Tue, May  3 2011 16:29:31.713,
  rec=d16aabeb.65aed238  Tue, May  3 2011 16:29:31.397,
  xmt=d16aaae8.401958ba  Tue, May  3 2011 16:25:12.250,
  filtdelay=     0.00    0.00    0.00    0.00    0.00    0.00    0.00
0.00,
  filtoffset=  314.05  293.76  273.37  253.02  232.72  212.42  192.21
172.01,
  filtdisp=      3.89   19.23   34.61   50.00   65.38   80.77   96.11
111.50



=========
Client 01
=========
  server srv01-cba iburst
  server srv02-yil iburst

  driftfile /var/lib/ntp/drift


Output of "ntpq -p" :
-------------------
       remote           refid      st t when poll reach   delay   offset
jitter

==============================================================================
  xsrv01-cba       LOCAL(0)         5 u   10   64  377    0.135  267.274
4.308
  xsrv02-yil       LOCAL(0)         5 u   59   64  377    0.127  -56.638
0.427


Several outputs :
---------------
  # ntpq
  ntpq> associations

  ind assID status  conf reach auth condition  last_event cnt
  ===========================================================
    1  1998  9114   yes   yes  none falsetick   reachable  1
    2  1999  9114   yes   yes  none falsetick   reachable  1
  ntpq>
  ntpq>
  ntpq>
  ntpq> rv 1998
  assID=1998 status=9114 reach, conf, sel_falsetick, 1 event, event_reach,
  srcadr=srv01-cba, srcport=123, dstadr=10.0.0.231, dstport=123,
  leap=00, stratum=5, precision=-20, rootdelay=0.000,
  rootdispersion=11.414, refid=LOCAL(0), reach=377, unreach=0, hmode=3,
  pmode=4, hpoll=6, ppoll=6, flash=00 ok, keyid=0, ttl=0, offset=267.274,
  delay=0.135, dispersion=2.223, jitter=4.308,
  reftime=d16aada0.b6ae267f  Tue, May  3 2011 16:36:48.713,
  org=d16aadc1.77857fa6  Tue, May  3 2011 16:37:21.466,
  rec=d16aadc1.32d39012  Tue, May  3 2011 16:37:21.198,
  xmt=d16aadc1.32c7e339  Tue, May  3 2011 16:37:21.198,
  filtdelay=     0.16    0.13    0.14    0.15    0.15    0.15    1.00
0.14,
  filtoffset=  268.42  267.27  266.12  264.94  263.78  262.62  261.02
260.29,
  filtdisp=      0.00    0.96    1.94    2.93    3.90    4.88    5.87
6.83
  ntpq>
  ntpq>
  ntpq>
  ntpq> rv 1999
  assID=1999 status=9114 reach, conf, sel_falsetick, 1 event, event_reach,
  srcadr=srv02-yil, srcport=123, dstadr=10.0.0.231, dstport=123,
  leap=00, stratum=5, precision=-20, rootdelay=0.000,
  rootdispersion=11.765, refid=LOCAL(0), reach=377, unreach=0, hmode=3,
  pmode=4, hpoll=6, ppoll=6, flash=00 ok, keyid=0, ttl=0, offset=-56.638,
  delay=0.127, dispersion=4.956, jitter=0.523,
  reftime=d16aad97.4019042a  Tue, May  3 2011 16:36:39.250,
  org=d16aadd0.24086019  Tue, May  3 2011 16:37:36.140,
  rec=d16aadd0.32c2c788  Tue, May  3 2011 16:37:36.198,
  xmt=d16aadd0.32b653d0  Tue, May  3 2011 16:37:36.198,
  filtdelay=     0.17    0.15    0.14    0.13    0.14    0.15    0.14
0.13,
  filtoffset=  -57.45  -57.34  -57.23  -57.11  -56.99  -56.87  -56.75
-56.64,
  filtdisp=      0.00    0.96    1.92    2.91    3.86    4.83    5.82
6.78


The output of /var/log/messages for the client is the following :

  May  3 12:28:38 client01 ntpd[16141]: ntpd 4.2.2p1 at 1.1570-o Tue May 19
13:57:55 UTC 2009 (1)
  May  3 12:28:38 client01 ntpd[16142]: precision = 1.000 usec
  May  3 12:28:38 client01 ntpd[16142]: Listening on interface wildcard,
0.0.0.0#123 Disabled
  May  3 12:28:38 client01 ntpd[16142]: Listening on interface wildcard,
::#123 Disabled
  May  3 12:28:38 client01 ntpd[16142]: Listening on interface lo, ::1#123
Enabled
  May  3 12:28:38 client01 ntpd[16142]: Listening on interface lo,
127.0.0.1#123 Enabled
  May  3 12:28:38 client01 ntpd[16142]: Listening on interface br1001,
10.0.0.231#123 Enabled
  May  3 12:28:38 client01 ntpd[16142]: Listening on interface virbr0,
192.168.122.1#123 Enabled
  May  3 12:28:38 client01 ntpd[16142]: kernel time sync status 0040
  May  3 12:28:38 client01 ntpd[16142]: frequency initialized -18.121 PPM
from /var/lib/ntp/drift
  May  3 12:28:45 client01 ntpd[16142]: synchronized to 10.0.0.226, stratum
5
  May  3 12:28:45 client01 ntpd[16142]: kernel time sync enabled 0001
  May  3 12:29:43 client01 ntpd[16142]: no servers reachable



More information about the questions mailing list