05-15-2018 05:42 AM - edited 03-03-2019 08:48 AM
Hello all,
I have some routers occupying stratum 2, that have 3 available NTP servers.
I have configured the nearest NTP server (stratum 2) with the "prefer" statement.
The next nearest NTP server is also stratum 2.
Lastly, I have configured the NTP server appliance, which is stratum 1.
All NTP sources are showing authenticated/sane/valid but the routers are overriding the "prefer" statement to synch up with the stratum 1 device.
Is this normal behavior or am I doing something wrong? I thought "prefer" would keep the router on its local, designated time source.
05-15-2018 07:43 AM
Hello estimated good morning!
I will share you this: The server
option specifies which servers to query, with one server listed on each line. If a server entry includes prefer
, that server is preferred over other servers. A response from a preferred server will be discarded if it differs significantly from other servers' responses; otherwise it will be used.
Did you review this server had the time equal or similar to the others servers? and the connection (in terms of delay, etc) is optimum?
Do not forget to rate useful post.
Best Regards,
05-15-2018 07:54 AM
Hi Diana,
I'm not sure what the thresholds are for a router discarding its "preferred" server, but I am noticing a difference in some of the qualities of the NTP servers. This is in a closed, classified environment so I can't post a screen shot but I can share some of the relevant information.
The output of "show ntp associations" is:
Address ref clock st when poll reach delay offset disp
~ 2 964 1024 377 1.507 1.129 19.433
~ 2 87 1024 377 2.583 -0.474 19.550
~* 1 746 1024 377 1.655 0.333 0.071
As you can see, the dispersion is quite a bit different. I'm not sure if it is far enough off to cause this behavior.
Rich A.
05-15-2018 08:20 AM
Maybe the others ntp sources are in close agreement but the preferred one is reporting a very different ntp time compared with the others then that device is considered not trustworthy and would not be used. The command "show ntp associations detail" will give you a more detailed information about why the router choose the other server.
Please do not forget to rate useful post, this motivate us to continue participating in the community.
Best regards,
05-15-2018 11:28 AM
After checking NTP associations detail on 3 similar routers, I'm not seeing an obvious reason for discarding the preferred NTP server.
delay, offset, dispersion and jitter are all very low values.
All of the filter values are very low. (filtdelay, filtoffset, filterror).
I realize this is not an ideal solution but I restarted the router. (It's in a lab, so no harm done.)
The router has currently synchronized to the "prefer" server. I will observe it over the next several days to see if it rejects the preferred server later on.
05-22-2018 02:00 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide