According to RFC5905: “Primary servers are assigned stratum one; secondary servers at each lower level are assigned stratum numbers one greater than the preceding level.”
My RouterOS 6.36 ntpd announces it is at stratum 0. I have a couple of devices that complain stratum must be in range 1-15 and can’t synchronize. So would You please make startum configurable (preferred) or make it in range 1-15?
It is not good to make it configurable.
It should have the correct value depending on the stratum of the reference it uses.
How does your router obtain time?
(locally connected GPS receiver, using other NTP servers, or using the “cloud time” feature)
@borisk:
That top level (stratum 0) they talk about are the atomic clocks used as global references, like those at NIST, and the GPS reference clocks.
Unless you have a cesium clock at home, your time source is NOT stratum 0, and unless you have a GPS PPS synchronized time server, not even stratum 1. So those complains are right.
Since Mikrotik routers do not support PPS for time synchronization, it seems correct to assume they are at most stratum 4, unless they are synchronized to a lower stratum NTP server, when the MT will automatically get stratum N+1, where N is the uplink time source stratum - so you will get stratum 2 in the best case for your MT router.
Even more, that stratum 4 is actually faked if you run off the local clock, but was put in place so that the MT can be used as local network time source for windows machines, which only accept time sources with stratum less than 5.
I have checked the behavior of the NTP server on recent NTP server packages on MT hardware, and all of them onnor the stratum conventions properly.
Is this wrong? I think - yes. Have I misunderstood something with NTP? May be yes But I can’t synchronize with ROS NTP server. What to do? Please clarify.
Now this is certainly wrong.
First of all there is this ref 00000000.00000000 which is invalid. This have to be a time stamp when the server last time set its clock.
Since it never happened, this whole information is invalid.
Here we see that the MT uses server 73.78.73.84 as uplink, but has never set its clock (ref is 0).
So the router’s system time is invalid from NTP point of view.
leap 3 means: Alarm condition, clock not synchronized
mode 4 means: Server
stratum 0 means: unspecified
ppoll could be wrong (the maximum interval between messages in seconds to the nearest power of two, so 6 is not right, but of no importance)
So what you are basically getting is a response that your time server is not synchronized. The question is: is your upper NTP layer working correctly?
It seems it is just set to synchronize, but is not actually synchronized when the problem occurs.
BTW, server 73.78.73.84 is not in your server list. Where does this come from?
Sorry, pasted from the sntp client.
Corrected. The status should state “synchronized”.
First, check if your firewall is passing port 123 UDP…
After that, the simplest way would be to try another time server. Just use pool.ntp.org and you will get one.