Is it possible to configure
ntpd to fudge the stratum level of a network source?
Upon first glance, I thought the
fudge directive could accomplish this, however after browsing the
ntp.conf(5) man pages, I found this directive only applies to Reference Clocks.
A few details:
I have a local server running
ntpd as the primary time source for clients on the LAN. This server is pointed at the ntp.org pool, and usually maintains a stratum level 3.
In addition to my main server, I have a 3rd party network device whose primary job is synchronizing wall clocks wirelessly via. RF transmission. The device's specification says that it is a "RFC2030 compliant Time Server", but otherwise it's pretty much a black box. I have configured the device to use my main server as it's only time source:
My problem surfaced when I configured
ntpd on my personal computer to use both my main NTP server, and the wireless transmitter as time sources. When querying my local ntpd, I noticed that the "black box" (10.x.x.Z) was the favored time source:
$ ntpq -pn remote refid st t when poll reach delay offset jitter ============================================================================== x10.x.x.X 18.104.22.168 3 u 48 64 177 0.501 370.029 1.530 *10.x.x.Z 10.x.x.Z 2 u 50 64 377 1.354 -23.681 14.179
10.x.x.Z's only time source is server
10.x.x.X (which is stratum 3), it should be stratum 4. I believe the manufacturer has hard-coded its stratum level.
Is there any way to get my machine to favor the "good" (10.x.x.X) server despite it's higher stratum level? I also tried the
prefer directive in my local
ntp.conf file, but to no avail, the little black box always wins :/
For what it's worth, my local machine is running Mac OS X 10.6.
$ ntpq -c rv | grep version version="ntpd email@example.com Mon May 18 19:38:25 UTC 2009 (1)",