cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2127
Views
0
Helpful
5
Replies

Routers ignoring NTP prefer statement

R_Acuti
Level 1
Level 1

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.

5 Replies 5

Diana Karolina Rojas
Cisco Employee
Cisco Employee

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,

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.

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,

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.

 

Hello, from my understanding, the lower the stratum #, the more accurate the time. So in this case, the stratum 1 connection will be more preferred than the stratum 2 connections; regardless of the "prefer" command.