Re: [ntp:questions] Optimal config
Richard B. Gilbert wrote: Iburst simply causes ntpd to send eight requests to a server at intervals of two seconds when it initializes. The eight replies that will normally result allow ntpd to fill its filter pipeline and make a pretty good guess at what time it is. Subsequent requests are sent at the normal poll intervals, ranging from 64 to 1024 seconds. Unless the specified peer becomes unreachable, in which case the eight-packet burst will resume until the peer is reachable. For ntp-4.2.4p4 anyway. Dennis -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] [Q] Why do many time servers time out on queries from ntpq -p?
Maurice Volaski wrote: I've been trying the peers command in ntpq on a number of time servers and finding that for as many that do respond, there are about an equal number that do not. An example of a failing response is: ntpq host sundial.columbia.edu current host set to hickory.cc.columbia.edu ntpq peers hickory.cc.columbia.edu: timed out, nothing received ***Request timed out I can reproduce identical successes and failures from 3 computers running different OSs on independent networks. These I've tried work just fine: timex.cs.columbia.edu time.euro.apple.com lain.ziaspace.com ntp.nblug.org ntp1.cs.wisc.edu clock1.unc.edu But these time out: sundial.columbia.edu time.apple.com morose.quex.org ntp.sycharlutheran.org ntp.bytestacker.com ntp1.kansas.net All of the above were tested and gave the same results on kennedy1.aecom.yu.edu (Linux with ntpq [EMAIL PROTECTED]) fluxsoft.com (FreeBSD with ntpq 4.2.0-a) ool-45766590.dyn.optonline.net (Mac OS X with ntpq [EMAIL PROTECTED]) If the server operator has 'noquery' specified in the default restriction it will prevent the server from responding to ntpq and ntpdc. Interestingly, I actually wrote a script that uses 'ntpq -pn' to randomly query client entries in my ntp_clients_stats log file. I've found that only about one percent respond on average. Dennis -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] SNTP server + ntpd 4.2.4 client
Unruh wrote: My system is running a Linux kernel patched with real-time support. I don't feel confident applying the PPS support patch on top of it. No need. Just attach the gps as a refclock. The kernel does not need pps support to use the refclock. The Linux kernel does not have built-in PPS support, so yes he would have to patch and recompile the kernel in order to use the PPS provided by the GPS device. Otherwise it will just be using NMEA time, which is not very accurate for timing purposes. For Linux 2.4 there is the PPSkit, and for Linux 2.6 there is LinuxPPS. Instead you can use the shmpps driver to use the PPS signal without patching the Linux kernel. I use it and it works very well. FreeBSD has built-in PPS support (no patch needed), but it's not enabled by default. PPS support has to be enabled in the kernel config and the kernel recompiled. Dennis -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] 1 Machine, 2 NICs, 2 Instances of ntpd; Possible?
Steve Kostecke wrote: FWIW: ntpdc is version specific and it's use has been discouraged on more than one occasion. FWIW: I routinely use ntpdc to add/remove associations ('addserver' and 'unconfig') and to fudge time1 values. It seems to work fine for those purposes. Before using it, however, I would recommend patching it with the patch described by myself here: http://bugs.ntp.org/1003 Dennis -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Authentication problem
Harlan Stenn wrote: Dennis Not that it matters, as no one is maintaining ntpdc currently, but I Dennis think I found a bug while messing with it: Dennis saturn:$ ntpdc ntpdc keyid Dennis no keyid defined ntpdc unconfig 63.240.161.99 Dennis MD5 Password: ***Permission denied ntpdc keyid Dennis keyid is 134682920 Feel free to open a bug report on this. While there is little chance somebody will fix it, there is *no* chance it will be fixed if nobody remembers it. I just did, bug 1003. https://support.ntp.org/bugs/show_bug.cgi?id=1003 Hopefully someone will get to it, but if not at least it's documented. -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
[ntp:questions] Authentication problem
I've had this issue with authentication for a while, but decided to finally ask as it's bugging me. I use ntpdc to add/remove servers on the fly so I don't have to restart the server. It works fine using addserver and unconfig as long as I don't quit ntpdc. saturn:$ ntpdc ntpdc addserver 63.240.161.99 Keyid: 1 MD5 Password: done! ntpdc unconfig 63.240.161.99 done! However, if I quit ntpdc, start ntpdc, issue the unconfig command and put in the proper password when prompted, it won't be accepted. addserver works fine though. ntpdc quit saturn:$ ntpdc ntpdc addserver 63.240.161.99 Keyid: 1 MD5 Password: done! ntpdc quit saturn:$ ntpdc ntpdc unconfig 63.240.161.99 MD5 Password: ***Permission denied ntpdc quit saturn:$ ntpdc ntpdc unconfig 63.240.161.99 MD5 Password: ***Permission denied ntpdc readkeys ***Permission denied The only way I've found to get it to work is to quit again and issue the readkeys command. The readkeys command won't be accepted until I quit and restart ntpdc again. ntpdc quit saturn:$ ntpdc ntpdc readkeys Keyid: 1 MD5 Password: done! ntpdc unconfig 63.240.161.99 done! Am I doing something wrong, is there a bug, or is that the correct behavior of ntpdc? I have the following in my ntp.conf: # Authentication keys /etc/ntp/keys trustedkey 1 requestkey 1 controlkey 1 And my keys file looks like this: 1 M somepassword Thanks, Dennis -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Authentication problem
David L. Mills wrote: Dennis, The ntpdc program has not been actively maintained for some time. The principal problem is that the ntpdc remote configuration commands are incompatible with the pool and manycast schemes. The ntpq program can now generate configuration file commands, but the command set is incomplete. For instance, there is no demobilize command. If ntpdc works, even if buggy, use it. It would be helpful if you could wiggle the ntpq facilities and speak up about what you think it should and should not do. I looked through the ntpq documentation on the UDel website, but could not find anything regarding runtime configuration commands. Only for ntpdc. If you could point me to some documentation concerning ntpq runtime configuration commands, I'd be happy to mess around with it. Dave Dennis -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Authentication problem
Harlan Stenn wrote: I think this is because you have not respecified the keyid. That solves the issue just fine. I'll just have to remember to say 'keyid 1' whenever I start ntpdc. Try giving the 'keyid' command after you restart ntpdc to be sure. It does say no keyid defined. I'm not sure why you were not asked for it though... I found that odd. When I issue the addserver command, I get prompted for the keyid, but not when I issue the unconfig command. That's the problem. And as Dave as pointed out, nobody has volunteered to maintain ntpdc for quite a while now, and the new config parsing code does not have an unconfig command yet (near as I can remember). Sorry, I'm not a very accomplished programmer. Otherwise I'd be glad to help out, time permitting. I am aware of two obvious solutions to this problem (as well as many others) but since I mention these two solutions Frequently I'll refrain from repeating them at this time. Like I mentioned, specifying 'keyid 1' right after starting ntpdc solves the problem. Although I'd be interested in other solutions, or at least point me to where you've talked about them before. I use ntpdc regularly for adding/removing servers and fudging refclock values, etc. It's useful as I don't have to restart the server all the time. Not that it matters, as no one is maintaining ntpdc currently, but I think I found a bug while messing with it: saturn:$ ntpdc ntpdc keyid no keyid defined ntpdc unconfig 63.240.161.99 MD5 Password: ***Permission denied ntpdc keyid keyid is 134682920 It seems to randomly generate a keyid and specify it for use, and then prompt for a password for that keyid even though it doesn't exist. And if I do it again: saturn:$ ntpdc ntpdc keyid no keyid defined ntpdc unconfig 63.240.161.99 MD5 Password: ***Permission denied ntpdc keyid keyid is 134686616 A different keyid is generated. Anyway, thanks for the help! -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Ultralink 325 WWVB receiver
Rob Kimberley wrote: Interesting plots! Have tried to make some sense of them, but rather difficult. 1) How is the Rx powered? (I don't know the product) It's powered from the RS232 connection currently. It also has an external 5V DC power supply that can be used instead. 2) Do you know what type of oscillator is used in the Rx, and how it is supposed to be controlled? The only thing I could find regarding that in the user's manual is this brief statement: A microcomputer processes WWVB signals, maintains an accurate real time clock and hosts the serial communication interface. Received data is correlated over time to set an internal real-time clock (RTC). The RTC is driven by a precision quartz crystal for continuous accurate time reference. 3) The changes in offset don't appear to follow any regular 24 hour pattern, so would tend to rule out diurnal effects, plus the changes are much larger than one would expect. I haven't ruled out the possibility of interference yet. Although, according to my clockstats file, it gets an R5 signal (R1 being unreadable signal and R5 the best) a large portion of the time. In fact the clockstats file for the 16th of Feb. showed R2 - R5 about 85 percent of the time. Is it possible that even though the signal is strong some interference is affecting the unit's accuracy? I notice a large step around 02:00 on a Saturday. Does anything large get switched off/on at this time? Thinking along the lines of some sort of power surge causing interference to the receiver. Normally my Windows machine shuts down via the Task Scheduler at 2am every day, after some backups take place. But this last time the machine running the WWVB receiver (apollo) restarted somehow shortly after that time. I don't know what happened as /var/log/messages doesn't show anything. The odd thing about the WWVB receiver is the initial offset on an ntpd restart is not consistent and ntpd pretty quickly declares it a falseticker. I have to manually fudge the time1 setting with ntpdc, otherwise it will stay a falseticker. Anyway, that's why the offset converged real close to zero early Saturday morning, as you can see on the janus graph, as ntpd declared the WWVB receiver a falseticker after the reboot, and synced to saturn (the machine running the GPS reference), which janus (the observation machine) is also synced to. More later (and apologies for the delay in replying) No worries, I'm thankful for any assistance. Rob Kimberley Dennis -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Configuration files missing after make all
[EMAIL PROTECTED] wrote: Hello all, I;ve downloaded the Development version 4.2.5p111 off NTP from http://www.ntp.org/downloads.html I installed it with the foilowing procedure: ./configure --prefix={path} ./make ./makeinstall When I browse to the path where everything should be there are only 3 directories looking like this: bash ls bin lib man Now where are the config files? I expected them to be in this path because if I read the makefile: sysconfdir = ${prefix}/etc well my prefix is /home/joah/ntp, so the conf-files should be at /home/ joah/ntp/etc. but that directory does not exists! what have I done wrong? I also took a look at /etc, there are some ntp conf files, but those are created months ago when I installed the machine, they are not created by my installation. anyone know how I get the conf files installed? What have I done wrong here ? thanks! Have you tried a 'find / -name ntpd 2 /dev/null' ? If you actually passed configure '--prefix={path}', where {path} is the actual characters '{path}', then everything was probably installed in {path}/bin, {path}/man, relative to the directory you configured the install from. The default path prefix is /usr/local . -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] why is my pool server's offset so bad
Pat Farrell wrote: Well, its gotten bad again. I had it working well for a few days. But lately, the offsets are diving down. See http://www.pool.ntp.org/scores/70.184.242.241 Clearly something is wrong. Thanks pat saturn:$ ntpq -p 70.184.242.241 remote refid st t when poll reach delay offset jitter ntp-2.cns.vt.ed 198.82.247.40 2 u 32h 640 17.908 -0.296 0.000 ntp-4.cns.vt.ed 198.82.247.164 2 u 32h 640 18.5670.637 0.000 ancalagon.cede. .INIT. 16 u- 102400.0000.000 0.000 prometheus.acm. .Ïôð. 16 u 32h 6400.0000.000 0.000 time-b.nist.gov .ACTS. 1 u 32h 640 13.5556.162 0.000 The reachability column for each upstream server is at zero, indicating that ntpd can't connect to those servers. Your system clock has been wandering for approx. the last 32 hours, which is about the same time your offset history began to take a dive. Have you inadvertently blocked outbound traffic on 123/UDP? I can query your server just fine, so inbound is not a problem. -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
[ntp:questions] Ultralink 325 WWVB receiver
I recently snagged an Ultralink 325 WWVB receiver off Ebay to use as a refclock with an ntp server, hoping to peer that one and my gps-referenced ntp server together. The unit works fine, and I get good signal (R5) most of the time, as shown in the clockstats file. The behavior is a little odd though, compared to what I'm used to with my with my gps-referenced ntp server: After fudging out an initial offset of about 280 ms, I noticed the offset will travel a 10 ms range towards the negative. For example, if the offset initially starts at say 0.500, it will gradually, in about 0.300 - 0.400 ms steps, make it's way to about -0.500. Once it reaches the low end, it will jump back up to 0.500 and start its decent over. I'm assuming this is fairly typical, as I observed a different WWVB machine and it shows similar stepping behavior within a range. The initial offset changes also. One time it was 280 ms, another time it was 960 ms. The most recent time I didn't use any correction at all initially. All that aside, the machine's offset seems to wander around quite a bit compared to my gps-referenced ntp server. I haven't noticed any specific pattern to it though. I've repeatedly tried to fudge out the offset, but it seems to wander right back to about a 4.5 ms offset compared to my gps-referenced ntp server. Coincidentally (or not), this is also about what I've calculated my propagation delay to be based on information Dave Mills posted in another thread. Do I include the propagation delay in the fudge factor, or is there a separate step for that? The docs say the unit is capable of +- 1 ms accuracy, so perhaps I'm missing something. Are there special steps that need to be taken for WWVB receivers? The unit's user manual, the driver documentation and source code didn't reveal any secrets. Thanks for any help, Dennis -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] NTP daemon - fixed offset against real time
[EMAIL PROTECTED] wrote: Hello, i would like to ask you for help or ideas with one ntp related task. I need to setup one ntp server to serve its sntp clients with time, which is specific amount of time (several seconds) in advance against correct real time taken from another ntp server in network. I did some search in documentation from both ntpd and openntpd, but i didn't find any configuraition option related to this. I need this quirky thing due to time syncing of several broadcast graphics servers which also generates clocks to TV picture and it is necessary to compensate delay caused by MPEG coding and transmission of TV signal. You can do this with the 'fudge' command with the 'time1' option. The docs say it's a Reference Clock Command, but I've used it successfully with regular internet servers before to fix the small time offset due to my ntp server's asymmetric connection. See: http://www.eecis.udel.edu/~mills/ntp/html/clockopt.html#cmd Thanks a lot Michal Smucr Dennis -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] why is my pool server's offset so bad
Pat Farrell wrote: On Mon, 21 Jan 2008 09:40:31 -0800, Dennis Hilberg, Jr. wrote: statistics loopstats peerstats clockstats You won't generate any clockstats unless your using a clock driver. Which I assume requires an external real clock, GPS, WWV, etc.? An attached refclock yes. And using one of the drivers from here: http://www.eecis.udel.edu/~mills/ntp/html/refclock.html#list Using 'noquery' prevents people from using ntpq and ntpdc (and ntptrace too I believe) on your server. OK, I took that one out. broadcast 172.16.4.255 Disable broadcast unless you are using it. Does this control broadcasting as opposed to clients on the local 172.16/16 net doing queries? What I know about broadcast I learned from the docs, as I've never used it myself. But from what I understand a broadcast server will continuously send out time information, and a broadcastclient will receive these if configured, and automatically us it as a synchronization source without having to manually specify it in the ntp.conf file. Perhaps someone else could elaborate on this. It has nothing to do with queries, as in ntpq or ntpdc queries, if that's what you were referring to. Thanks Pat -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] leapyear bug in gpsd
Danny Mayer wrote: I have never seen someone who says they are a gpsd maintainer on here but we would be glad to have them comment on this if they are here. Anyone know where they usually hang out? gpsd has its own mailing list, which is where support is offered, [EMAIL PROTECTED] . All of the maintainers/developers are subscribed to it. -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] leapyear bug in gpsd
Johan Swenker wrote: Hi, Today I found why my gps receiver stopped working last newyears eve. Apparently gpsd has a leapyear bug (repaired on january 1st). Thus it reported a january 21 while it still was january 20. Which was discarded by ntp. After compiling the new version of gpsd, my PC once again has submillisecond accuracy ;) The PC was running Debian stable, with gpsd from the Debian repositories. The PC is still running Debian stable, but with a self compiled version of gpsd. In the mean time I did inform the Debian maintainer by mail. Thus, if you use gpsd to feed ntpd with the correct time, either wait untill february 29, or find yourself a better gpsd. Regards, Johan Swenker Yep, I heard about this through the gpsd mailing list, [EMAIL PROTECTED] . It was reported on Jan 1, and gpsd 2.36 was released as an emergency fix. So upgrade to gpsd 2.36, if you haven't already. You can view the gpsd mailing list archives to read the emails on it: https://lists.berlios.de/pipermail/gpsd-users/ Subject: Garmin 18LVC Weirdness -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] why is my pool server's offset so bad
Pat Farrell wrote: On Sat, 19 Jan 2008 09:08:52 -0800, Dennis Hilberg, Jr. wrote: What does 'ntpq -p' and 'ntpq -crv' show? I switched from openntpd to just ntpd Mostly to get the ntpq utility. Results: noise:/var/log/ntpstats# ntpq -p remote refid st t when poll reach delay offset jitter == +morose.quex.org 128.118.25.5 2 u 26 64 17 19.758 27.712 4.961 *nist.netservice .ACTS. 1 u 26 64 17 42.558 42.964 5.676 -198.247.173.220 199.240.130.12 3 u 22 64 17 55.344 32.627 4.648 +ntp.pbx.org 18.26.4.105 2 u 29 64 17 12.755 39.016 4.589 noise:/var/log/ntpstats# ntpq -crv assID=0 status=c624 sync_alarm, sync_ntp, 2 events, event_peer/strat_chg, version=ntpd [EMAIL PROTECTED] Sun Mar 4 13:21:35 UTC 2007 (1), processor=i686, system=Linux/2.6.18-5-686, leap=11, stratum=16, precision=-20, rootdelay=0.000, rootdispersion=3.705, peer=35414, [EMAIL PROTECTED] , reftime=. Thu, Feb 7 2036 1:28:16.000, poll=6, clock=cb3d1c34.08acf058 Sat, Jan 19 2008 20:02:44.033, state=3, offset=43.053, frequency=0.000, jitter=8.408, noise=7.869, stability=0.000, tai=0 noise:/var/log/ntpstats# ntpq -p remote refid st t when poll reach delay offset jitter == +morose.quex.org 128.118.25.5 2 u 13 64 37 19.758 27.712 6.959 *nist.netservice .ACTS. 1 u 13 64 37 42.558 42.964 7.996 -198.247.173.220 199.240.130.12 3 u9 64 37 55.806 32.210 7.400 +ntp.pbx.org 18.26.4.105 2 u 17 64 37 12.755 39.016 6.160 noise:/var/log/ntpstats# It looks like switching from openntpd to ntpd solved the problem. Check out your offset graph now. Was your Mandriva 2006 system using ntpd, or openntpd? Post your /etc/ntp.conf file also. -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] why is my pool server's offset so bad
Pat Farrell wrote: It used to be great. Now if you look at the stats, say at http://www.pool.ntp.org/scores/70.184.242.241 you see its terrible. What am I doing wrong? thanks pat When did you first notice the poor behavior? Is there some change you made about that time that could be the cause? Is the connection heavily loaded? I did a 30-packet ping on your connection, and while there was no packet loss, your ping times ranged anywhere from 89ms to 108ms. I also mobilized an association with your server, here's a sample: saturn:$ ntpq -pn remote refidst t when poll reach delay offset jitter *127.127.28.0.PPS. 0 l2 16 3770.0000.005 0.001 +127.127.20.0.GPS. 0 l- 16 3770.000 -4.684 0.212 -140.142.16.34 .USNO. 1 u 40 64 377 14.155 -0.197 3.389 +132.249.20.88 .WWVB. 1 u1 64 377 43.097 -1.901 2.597 -216.218.254.202 .CDMA. 1 u4 64 377 35.131 -0.886 13.000 -198.60.22.240 .GPS. 1 u1 64 377 53.884 -0.055 3.181 x70.184.242.241 198.82.1.202 3 u 19 64 377 93.164 -117.18 14.863 That jitter is actually pretty low compared to what I saw last night. It was up into the 40ms range. No doubt your network is part of the problem. What does 'ntpq -p' and 'ntpq -crv' show? -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] why is my pool server's offset so bad
Pat Farrell wrote: It used to be great. Now if you look at the stats, say at http://www.pool.ntp.org/scores/70.184.242.241 you see its terrible. What am I doing wrong? thanks pat Here's another couple of samples: saturn:$ ntpq -pn remote refidst t when poll reach delay offset jitter *127.127.28.0.PPS. 0 l6 16 3770.0000.007 0.006 +127.127.20.0.GPS. 0 l 11 16 3770.000 -2.940 0.208 -140.142.16.34 .USNO. 1 u 23 64 377 14.047 -0.533 8.526 -132.249.20.88 .WWVB. 1 u 46 64 377 43.934 -3.788 3.127 +216.218.254.202 .CDMA. 1 u 49 64 377 34.345 -1.143 3.704 -198.60.22.240 .GPS. 1 u 50 64 377 51.841 -0.751 2.435 x70.184.242.241 129.6.15.292 u2 64 377 95.560 -138.59 46.704 saturn:$ ntpq -pn remote refidst t when poll reach delay offset jitter *127.127.28.0.PPS. 0 l1 16 3770.0000.006 0.006 +127.127.20.0.GPS. 0 l7 16 3770.000 -2.695 0.217 -140.142.16.34 .USNO. 1 u 39 64 377 14.047 -0.533 13.039 -132.249.20.88 .WWVB. 1 u 60 64 377 43.934 -3.788 3.263 +216.218.254.202 .CDMA. 1 u 63 64 377 34.345 -1.143 3.693 -198.60.22.240 .GPS. 1 u2 64 377 53.228 -0.591 2.443 x70.184.242.241 129.6.15.292 u 18 64 377 95.181 -76.828 49.811 -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] ntp documentation
Pat Farrell wrote: On Fri, 04 Jan 2008 22:19:04 +, Steve Kostecke wrote: The NTP FAQ is available at http://www.ntp.org/ntpfaq/NTP-a-faq.htm Thanks. Is there any documentation of the public graphs? For instance, my server is at http://www.pool.ntp.org/scores/70.184.242.241 I'm not sure what the 'offset' mean. Recently my graph shows lots of blue above the Y axis, I have no idea what that's telling me. Pat The pool score/offset graphs are explained at the bottom of your server's score page where it says What do the graphs mean? Quoted from the score page: The Score graph A couple of times an hour the pool system checks the time from your server and compares it to the local time. Points are deducted if the server can't be reached or if the time offset is more than 100ms (as measured relatively crudely from the monitoring systems). More points are deducted the bigger the offset is. When the score goes down the background color in the top part of the chart will reflect how severely the outage is. The color scale goes from blue (very little) to yellow to orange to red (the server is several seconds off or unreachable). Because of how the graph is averaged out, you can't always infer what happened from the color. It's only meant as a tool to visualize trends. For more exact details of what the monitoring system found you can click on the CSV link. The Offset graph The monitoring system works roughly like an SNTP (RFC 2030) client, so it is more susceptible by random network latencies between the server and the monitoring system than a regular ntpd client would be. In other words: Don't be alarmed by the occasional large offset and please don't use the offset as an absolute performance metric. -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] using both a PPS source and a HBG (dcf-77-like) timesource?
Folkert van Heusden wrote: snip Well if I remember correctly someone said to me once that the time-string returned by cheap gps device (like my garmin 18 lvc) sometimes is a bit off while its PPS signal is fine. Currently I'm syncing against NMEA/PPS and seeing quiet a big offset: remote refid st t when poll reach delay offset jitter == xGPS_NMEA(0) .GPS.0 l7 16 3770.000 -185.08 1.001 --- snip You can even out that delay in the GPS time by using the 'fudge' option. Example: server 127.127.20.0 minpoll 4 fudge 127.127.20.0 time1 0.185 I do the same thing with my GPS 18 LVC, only I use gpsd with the SHM drivers. Dennis Folkert van Heusden -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Configuring FreeBSD 6.2 for use with Garmin GPS 18 LVC
Dennis Hilberg, Jr. wrote: Phil wrote: Dennis, Have you considered that the unit itself may be defective, Granted it used to work, but that doesn't mean it will last forever. It is a massed produced and rather inexpensive unit, I would think ordering a new unit would be cheaper than the time and labor of stringing wire all over the place. Just a thought, Phil It's certainly possible, maybe it's just gradually dying. If that's the case, it's still under warranty. I was actually going to order another GPS 18 LVC to use on my Linux machine as a refclock, so I suppose I could compare the performance of the two. Maybe I'll do that before I spend a bunch of time stringing wire all over the place, like you suggested. Thanks Phil, Dennis A follow-up: I ended up extending the cable on the GPS 18 LVC by about 50 feet anyway, and now the device sits on the peak of the roof with good exposure. It sees 8 - 10 satellites constantly, and my problem has gone away. Dennis -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] using both a PPS source and a HBG (dcf-77-like) timesource?
Folkert van Heusden wrote: Well if I remember correctly someone said to me once that the time-string returned by cheap gps device (like my garmin 18 lvc) sometimes is a bit off while its PPS signal is fine. Currently I'm syncing against NMEA/PPS and seeing quiet a big offset: remote refid st t when poll reach delay offset jitter = xGPS_NMEA(0) .GPS.0 l7 16 3770.000 -185.08 1.001 --- snip You can even out that delay in the GPS time by using the 'fudge' option. Example: server 127.127.20.0 minpoll 4 fudge 127.127.20.0 time1 0.185 I do the same thing with my GPS 18 LVC, only I use gpsd with the SHM driv ers. Ok but the odd thing is: a friend of mine has the exact same garmin 18 lvc but not this big offset? I'm sure the offset isn't exactly the same on each GPS 18 LVC, and probably also depends on which and how many NMEA sentences its outputting. I have mine fudged to 0.190, so you are right in the ballpark. The offset won't be consistent, but close enough. It doesn't have to be perfect, only within a few ms so that ntpd can use it as a time source. An 'ntpq -pn' on my server: saturn:$ ntpq -pn remote refidst t when poll reach delay offset jitter +127.127.28.2.GPS. 0 l5 16 3770.000 -5.397 5.299 *127.127.28.3.PPS. 0 l7 16 3770.000 -0.007 0.004 -140.142.16.34 .USNO. 1 u 461 1024 377 17.1820.180 6.635 -132.249.20.88 .WWVB. 1 u 837 1024 377 44.1280.621 3.173 -216.218.254.202 .CDMA. 1 u 1850 1024 376 35.3220.252 2.332 +64.183.55.54.GPS. 1 u 460 1024 377 59.748 -1.279 4.186 Folkert van Heusden Dennis -- Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] ntp documentation
Unruh wrote: Richard B. Gilbert [EMAIL PROTECTED] writes: Unruh wrote: Where is there ntp documentation? For example I wanted to have ntp write out the statistics on its peers etc. I looked everywhere-- man page of ntp, ntp.conf, etc, and finally discovered by looking at the source that there seem to be a huge bunch of undocumented options. Or are they documented somewhere in that filing cabinette down some broken steps in a flooded basement, behind a door labeled Beware of Tigers You'll find the secret staircase at ntp.org. The humidity may be a little high in the basement but it's not actually wet. ;-) This snippet from my ntp.conf might help: logfile /var/ntp/ntp.log statsdir /var/ntp/ntpstats/ statistics peerstats clockstats filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable But where did you find those options? for example I finally did statistics peerstats and the system set up a daily and total couple of files in /var/log/ntp ( my statsdir) What does filegen do and mean? Do I need it? I should have some docs where I can easily find that. Does it exist? Those are explained on the Monitoring Options page, here: http://www.eecis.udel.edu/~mills/ntp/html/monopt.html You might try using the site map for the docs. It was recently added (I think) and is a lot of help. http://www.eecis.udel.edu/~mills/ntp/html/sitemap.html -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] ntp documentation
Unruh wrote: Where is there ntp documentation? For example I wanted to have ntp write out the statistics on its peers etc. I looked everywhere-- man page of ntp, ntp.conf, etc, and finally discovered by looking at the source that there seem to be a huge bunch of undocumented options. Or are they documented somewhere in that filing cabinette down some broken steps in a flooded basement, behind a door labeled Beware of Tigers You can find links to the official NTP documentation along with other information here: http://www.ntp.org/documentation.html The official NTP docs are in html format only. -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] why is this clock not even considered?
Folkert van Heusden wrote: Hi, See this: remote refid st t when poll reach delay offset jitter == +belle.intranet. 192.87.106.2 2 u 251 256 3750.1056.605 0.122 +thegateap.intra 192.87.106.2 2 u 106 256 2771.2506.193 0.150 *mauer.intranet. .DCFa. 1 u 253 256 3770.1540.068 0.071 -auth1.xs4all.nl 193.79.237.142 u 53 256 2777.899 17.204 2.084 +ntp1.nl.uu.net .GPS.1 u8 256 337 13.5996.001 8.832 -ntp3-rz.rrze.un .DCFp. 1 u 21 256 377 29.5660.059 0.237 +ntps1-1.cs.tu-b .PPS.1 u 1043 256 360 29.7937.204 0.097 +chime1.surfnet. .GPS.1 u 42 256 3779.1356.485 2.794 SHM(0) .SHM.0 l 11 64 3770.000 -5.365 1.810 Why is the '.SHM.'-clock not even considered? Because of the negative offset? Folkert van Heusden Are you using the 'prefer' keyword with that configured server? -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Configuring FreeBSD 6.2 for use with Garmin GPS 18 LVC
Phil wrote: Dennis, Have you considered that the unit itself may be defective, Granted it used to work, but that doesn't mean it will last forever. It is a massed produced and rather inexpensive unit, I would think ordering a new unit would be cheaper than the time and labor of stringing wire all over the place. Just a thought, Phil It's certainly possible, maybe it's just gradually dying. If that's the case, it's still under warranty. I was actually going to order another GPS 18 LVC to use on my Linux machine as a refclock, so I suppose I could compare the performance of the two. Maybe I'll do that before I spend a bunch of time stringing wire all over the place, like you suggested. Thanks Phil, Dennis -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Configuring FreeBSD 6.2 for use with Garmin GPS 18 LVC
Speechless wrote: On Sun, 16 Dec 2007 23:34:48 -0800, Dennis Hilberg, Jr. [EMAIL PROTECTED] wrote: Thanks to everyone who replied to this thread. The server is running successfully. I had no problems recompiling and booting the kernel. If only the Linux kernel recompile process was as easy! The only issue I have is the GPS is loosing satellite sync periodically, whereas it rarely lost sync when it was hooked to the Linux box. Please post the output from command: uname -a apollo$ uname -a FreeBSD apollo.dennishilberg.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Dec 14 22:33:38 PST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC-PPS i386 Also, initially ntpd would stop using the GPS as the system peer shortly after startup, even though the GPS still had sync. I rebooted the system, thinking perhaps the links weren't created correctly, and that seems to have fixed that issue for now. Please post the contents of: /etc/devfs.conf apollo$ cat /etc/devfs.conf (comments ommitted) own cuad0 root:wheel permcuad0 0660 own cuad0.init root:wheel permcuad0.init 0660 own cuad0.lock root:wheel permcuad0.lock 0660 link cuad0 gps0 I see a lot of this behavior in the ntp log: 16 Dec 12:06:21 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 12:06:21 ntpd[814]: kernel time sync status change 2101 16 Dec 12:07:04 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 12:07:04 ntpd[814]: kernel time sync status change 2107 16 Dec 15:30:05 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 15:34:26 ntpd[814]: kernel time sync error 2007 16 Dec 15:43:16 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 15:43:16 ntpd[814]: kernel time sync status change 2101 16 Dec 15:43:32 ntpd[814]: kernel time sync status change 2107 16 Dec 17:54:38 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 17:57:38 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 18:07:59 ntpd[814]: kernel time sync error 2307 16 Dec 18:08:17 ntpd[814]: kernel time sync status change 2107 16 Dec 21:13:28 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 21:22:12 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 21:28:30 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 21:32:16 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 21:33:54 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 21:36:43 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 21:44:27 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 21:51:25 ntpd[814]: synchronized to 64.125.78.85, stratum 1 16 Dec 21:55:16 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 23:15:18 ntpd[814]: kernel time sync error 2307 16 Dec 23:15:33 ntpd[814]: kernel time sync status change 2107 I don't know what 'kernel time sync error' and 'kernel time sync status change' mean, but I'm assuming that when ntpd switches from the GPS to one of the other internet servers that it's loosing sync. Thoughts? Please post the contents of: /etc/ntp.conf apollo$ cat /etc/ntp.conf (comments omitted) restrict 127.0.0.1 server 127.127.20.0 minpoll 4 prefer fudge 127.127.20.0 flag3 1 server tick.ucla.eduiburst server nist1-sj.WiTime.net iburst server time.xmission.comiburst server ntp.your.org iburst driftfile /var/lib/ntp.drift logfile /var/log/ntp/ntp.log statsdir /var/log/ntp/ statistics loopstats peerstats sysstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen sysstats file sysstats type day enable filegen clockstats file clockstats type day enable -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Configuring FreeBSD 6.2 for use with Garmin GPS 18 LVC
Thanks to everyone who replied to this thread. The server is running successfully. I had no problems recompiling and booting the kernel. If only the Linux kernel recompile process was as easy! The only issue I have is the GPS is loosing satellite sync periodically, whereas it rarely lost sync when it was hooked to the Linux box. Also, initially ntpd would stop using the GPS as the system peer shortly after startup, even though the GPS still had sync. I rebooted the system, thinking perhaps the links weren't created correctly, and that seems to have fixed that issue for now. I see a lot of this behavior in the ntp log: 16 Dec 12:06:21 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 12:06:21 ntpd[814]: kernel time sync status change 2101 16 Dec 12:07:04 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 12:07:04 ntpd[814]: kernel time sync status change 2107 16 Dec 15:30:05 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 15:34:26 ntpd[814]: kernel time sync error 2007 16 Dec 15:43:16 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 15:43:16 ntpd[814]: kernel time sync status change 2101 16 Dec 15:43:32 ntpd[814]: kernel time sync status change 2107 16 Dec 17:54:38 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 17:57:38 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 18:07:59 ntpd[814]: kernel time sync error 2307 16 Dec 18:08:17 ntpd[814]: kernel time sync status change 2107 16 Dec 21:13:28 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 21:22:12 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 21:28:30 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 21:32:16 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 21:33:54 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 21:36:43 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 21:44:27 ntpd[814]: synchronized to 164.67.62.194, stratum 1 16 Dec 21:51:25 ntpd[814]: synchronized to 64.125.78.85, stratum 1 16 Dec 21:55:16 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0 16 Dec 23:15:18 ntpd[814]: kernel time sync error 2307 16 Dec 23:15:33 ntpd[814]: kernel time sync status change 2107 I don't know what 'kernel time sync error' and 'kernel time sync status change' mean, but I'm assuming that when ntpd switches from the GPS to one of the other internet servers that it's loosing sync. Thoughts? -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
[ntp:questions] Configuring FreeBSD 6.2 for use with Garmin GPS 18 LVC
Hello, As the subject line suggests, I would like to set up FreeBSD 6.2 to use my Garmin GPS 18 LVC as a refclock. I've been following advice from David Taylor's web page on this subject http://www.david-taylor.myby.co.uk/ntp/FreeBSD-GPS-PPS.htm , although he used FreeBSD 5.4. I have a few questions regarding the configuration. I understand that 'options PPS_SYNC' needs to be added to the kernel config file, and that the kernel then needs to be recompiled. However, he includes a comment from Harlan Stenn stating that 'include GENERIC', 'ident PPS-GENERIC', and 'options PPS_SYNC' need to be added to the file /usr/src/sys/i386/conf/PPS . This file doesn't exist on my system. Do I need to create the file from scratch with those items in it, or is it something that is created after the kernel recompile? I emailed David Taylor with these questions regarding the configuration, and he replied that he can't quite remember exactly how he configured his system, and if that PPS file needed to be created from scratch or not. So he directed me to the newsgroup. If someone could give me a complete list of steps that need to be taken to configure FreeBSD to use the GPS 18 LVC, or point me to some documentation on the matter, I would greatly appreciate it. I'm new to FreeBSD and don't know my way around. Thanks! -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Any samples for NTP/SNTP client code?
[EMAIL PROTECTED] wrote: The problem with any free utilities for Windows is that I have to spend the time to decide which one of them is safe enough to install on my PC. Nowadays, most of them are infested with viruses and crapware. I plan to use my very old PC, now packed in a box. WinRAR is safe. I have it on my Windows machine with no issues. It can uncompress *.tar, *.gz, *.bz2, and *.z archives, and others listed here: http://rarlab.com/otherfmt.htm -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Inexpensive OEM GPS units?
Rob van der Putten wrote: MegaGPS.com ships internationally. I don't know about Garmin. Their webform is broken. Any suggestions? It works fine for me using Firefox 2.0.0.9. Have you tried using a different browser? Regards, Rob -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Inexpensive OEM GPS units?
Chris Adams wrote: Once upon a time, Steve Kostecke [EMAIL PROTECTED] said: What does ntpq -p show? $ ntpq -p remote refid st t when poll reach delay offset jitter == -fly.hiwaay.net 192.5.41.40 2 u2 64 377 16.3519.846 1.449 +lashiir.sapros. 74.53.198.1463 u 36 64 377 48.5936.778 0.636 +newton.8086.net 209.51.161.238 2 u 39 64 377 27.0755.322 0.970 -ntp.unknowndevi 18.26.4.105 2 u 52 64 377 51.295 -9.173 6.805 LOCAL(0).LOCL. 10 l 52 64 3770.0000.000 0.002 xGPS_NMEA(0) .GPS.0 l 11 64 3770.000 143.198 56.164 *SHM(0) .SHM.0 l2 16 3770.000 -0.195 0.541 $ The PPS is run via shm_splc2, so the GPS_NMEA is guaranteed to be off (but it gets the date/time info). This is using pool servers plus an ISP server (across a DSL link from my box). I run a Garmin GPS 18 LVC over serial, and get the PPS signal via the shmpps (shm_splc2) driver. Here is my 'ntpq -p' and 'ntpq -crv': saturn:$ ntpq -p remote refid st t when poll reach delay offset jitter == *SHM(0) .PPS.0 l 13 16 3770.0000.000 0.001 -bigben.cac.wash .USNO. 1 u 26 64 377 13.568 -1.107 2.694 -clepsydra.dec.c .GPS.1 u 37 64 377 32.296 -1.607 3.923 -time.sdsc.edu .WWVB. 1 u4 64 377 41.676 -4.008 2.228 -clock.sjc.he.ne .CDMA. 1 u5 64 377 33.254 -1.262 1.950 +tick.ucla.edu .GPS.1 u 48 64 377 42.264 -0.820 6.585 +clock.xmission. .GPS.1 u4 64 377 51.862 -0.540 1.430 saturn:$ ntpq -crv assID=0 status=0964 leap_none, sync_telephone, 6 events, event_peer/strat_chg, version=ntpd [EMAIL PROTECTED] Sun Oct 7 00:42:35 UTC 2007 (2), processor=i686, system=Linux/2.6.17-5mdv, leap=00, stratum=1, precision=-20, rootdelay=0.000, rootdispersion=0.243, peer=28353, refid=PPS, reftime=caebb9b5.a65ccee4 Sun, Nov 18 2007 23:28:53.649, poll=4, clock=caebb9b6.5599d760 Sun, Nov 18 2007 23:28:54.334, state=4, offset=0.000, frequency=-22.465, jitter=0.001, noise=0.001, stability=0.000 -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] just joined the pool, a check list
Ronan Flood wrote: Dennis Hilberg, Jr. [EMAIL PROTECTED] wrote: Cyrille37 wrote: restrict -4 default kod notrap nomodify nopeer noquery restrict -6 default kod notrap nomodify nopeer noquery You don't specify -4 or -6 with restrict. Yes you do, otherwise it assumes IPv4, certainly for default; bug still open: https://support.ntp.org/bugs/show_bug.cgi?id=320 Oops! Sorry, I was going off the documentation, which doesn't mention IPv4 or IPv6 for 'restrict': http://www.eecis.udel.edu/~mills/ntp/html/accopt.html , unless I missed it somewhere else . Thanks for the clarification. -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] just joined the pool, a check list
Dennis Hilberg, Jr. wrote: statsdir /var/log/ntp/ statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable Oops, might as well remove the 'clockstats' option: statsdir /var/log/ntpstats/ statistics loopstats peerstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] which ntpd ? OpenBSD openntpd, BSD ntpd, other ?
Cyrille37 wrote: Hello, I'm a bit lose to get a good system for setting computer's clock. After asking about clockspeed vs ntpd, I choose ntpd. But it seems to exists several ntpd implementation. for example the Debian packages contains openntpd (OpenBSD NTP daemon) which has not many configuration options, like no drift file ... I've found ntpd in the BSD System Manager's Manual, which has a full set of options. Please, is there one reference for NTPD daemon which I can install on my Linux box ? My need are simple : - getting only one computer which ask time to stratum 2 servers and then serves the time to my others computers. - not asking to much to stratum 2 servers by computing the time drift of the server's clock. Thanks for help. The reference implementation of NTP is what you're looking for. You can get it at http://www.ntp.org/downloads.html . OpenNTPD is something different. The full documentation for NTP is at http://www.eecis.udel.edu/~mills/ntp/html/index.html . -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] in pool, my server runs for days, crashes with no log
fishtop_records wrote: But I've got a bigger problem. The normal /etc/rc.d/init.d/ntpd script is not working. if I run the ntpd program from a shell, it runs fine. (It takes a fairly long time to start and detach from the shell, maybe a full minute or more) if I start it the usual Mandriva way, /etc/rc.d/init.d/ntpd start it says it succeeds, but a minute, checking the status fails. [EMAIL PROTECTED] log]# /etc/rc.d/init.d/ntpd status ntpd dead but subsys locked I see no errors in either the /var/log/syslog or the /var/log/ntp/ ntpd.log While its OK to start it by hand for now, its bad form. What can I do to see why it won't stay up? I had a similar problem with the same version of ntp (4.2.0) on a Mandriva 2007.0 system. I did what you did, tried to use the Mandriva startup script for the reference implementation and it didn't work very well, for whatever reason. I never figured it out. The startup script was set up to run 'ntpdate' on boot and right at ntpd startup via a host in the 'step-tickers' file. All of that is pointless anyway if you use the '-g' option when starting ntpd, which allows for an initial large adjustment. I ended up abandoning the Mandriva distribution of ntp a while back and now only use the reference implementation from www.ntp.org . For my startup script, it's just: ulimit -l 8192 /usr/local/bin/ntpd \ -c /etc/ntp.conf \ -p /var/run/ntpd.pid -g I would get rid of all traces of the Mandriva ntp: '# urpme ntp'. Make sure you don't have the OpenNtpd installed either: '# urpme ntpd'. Then install the reference implementation and create a simple startup script like mine. Finally, create a basic ntp.conf if you don't already have one: restrict default kod nopeer nomodify notrap restrict 127.0.0.1 server hostname.1.domain iburst server hostname.2.domain iburst server hostname.3.domain iburst server hostname.4.domain iburst driftfile /var/lib/ntp.drift logfile /var/log/ntp/ntp.log statsdir /var/log/ntp/ statistics loopstats peerstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable Since your server is in the pool, don't configure it with pool servers as synchronization sources. Find some good stratum twos from http://support.ntp.org/bin/view/Servers/StratumTwoTimeServers that are not part of the pool project. Hope that helps, -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
[ntp:questions] Too many servers listed in ntp.conf?
A question was posted to the timekeepers mailing list about the quantity of servers listed in the ntp.conf. Chuck wrote: i have read several places to use many servers in my servers listings.. i presently have 12. is there a practical limit where after ntp only gets sluggish and the extra servers dont really help it? i figured an 'even dozen' should be a good round number :) To which I replied: Correct me if I'm wrong, but I thought I remember reading somewhere that ntpd will only make use of 10 servers max at one time, regardless of how many are specified in the ntp.conf. I have five in each of my ntp.conf files. Am I right about that? I thought I read that somewhere... -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Can a clock drift be too big for ntpd?
Patrick Nolan wrote: More ignorance on my part. Where would I look for this? I searched the kernel source code and didn't find it. I did a little searching for you. If you're using 2.6 kernel, you're looking for HZ in /usr/src/linux/include/asm_i386/param.h . In the current version of the kernel, it's set to 100. I just checked it. I think you can also set it in the makemenuconfig. -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Can a clock drift be too big for ntpd?
Steve Kostecke wrote: FWIW, my 2.6.15 kernel is set to 250Hz and ntpd has no problem with it. My stock Mandriva 2.6.17-5mdv kernel is also set to 250Hz with no problems. -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] My ntpd stopped working
rasmus wrote: On 19 Sep., 21:32, Jan Ceuleers [EMAIL PROTECTED] wrote: rasmus wrote: The _first_ rule in your INPUT chain needs to explicitly allow all traffic to 123/UDP. Something like this: Sorry, I was unclear. The rule I referred to was one that allowed udp/ 123 traffic. So I have a rule exactly matching what you wrote at the head of my INPUT chain. I can see traffic reach my nptd and I can log packets with sport 123 in my OUTPUT filter. You misunderstand. The rule only accepts packets that are related to an ongoing connection. You need to accept ALL packets destined to UDP port 123 (while retaining the stateful firewalling on all other traffic). So please do take Steve's advice and insert a -j ACCEPT rule matching only UDP port 123 traffic at the start of your INPUT chain. If I do misunderstand, then I am confused :) More probably, I am not explaining myself properly. Snippets from my iptables: 67462 5124K ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:123 83M 40G ACCEPT all -- eth0 * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED So, unless I misunderstand :), I think I have the setup you advocate. Cheers, Rasmus You had it working a few hours ago, I could query your server and use it as a time source. I get request timed out now, however. Have you tried this for IPTables? http://easyfwgen.morizot.net/gen/ -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] My ntpd stopped working
fishtop_records wrote: I also just added to the pool and am having similar problems. If you look at the service graph, you see a sawtooth process. http://www.pool.ntp.org/scores/70.184.242.241 the values get better until I start getting real load, and then NTPD crashes with an ' Exiting: No more memory! message to the log. I'm running ntpd [EMAIL PROTECTED] on a Mandriva box, its a dual Xeon system with a gig of ram and not a lot of real usage, so I thought it would be a good server for the pool. I am more than willing to debug this, but I need some pointers. Thanks Pat Read here, toward the bottom under Typical problems: http://www.pool.ntp.org/join/configuration.html -- Dennis Hilberg, Jr. timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] WiFi NTP.
Jason Rabel wrote: Those numbers seem much more reasonable. The root dispersion is the maximum error between the local clock and the root of the NTP chain. Your time on each system is accurate to within the range given above. My problem is that I misunderstood you when you said 'precision'. I was simply referring to offsets grabbed from ntpq. Perhaps Guy was too. As a humorous side note, my Windows machine, which also syncs to my stratum 1 using the Meinberg NTP distribution, has a rootdispersion=80.430 with an offset=57.178. Sorry to hijack the thread, by the way. ;) -- Dennis Hilberg Jr timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] ntp.conf
Aggie wrote: Thank you very much. I still don't see any file generated. Here's my ntp.conf: driftfile C:\Program Files\NTP\etc\ntp.drift server 192.168.1.2 prefer minpoll 4 maxpoll 4 enable stats statistics clockstats peerstats loopstats rawstats sysstats statsdir C:\Program Files\NTP\etc\ filegen clockstats file clockstats.txt type day enable filegen peerstats file peerstats.txt type day enable filegen loopstats file loopstats.txt type day enable filegen rawstats file rawstats.txt type day enable filegen sysstats file sysstats.txt type day enable In one of the post, Dennis mentioned to check if ntpd has write access to its statsdir. How do I check it? Thanks. Oh, and how long will it take to generate the files?? Maybe I just didn't wait long enough?? Thanks Kevin On Windows XP right click on the statsdir (C:\Program Files\NTP\etc\) and select Properties. Under the General tab, there are a couple of check boxes next to Attributes:, one that says Read-only and one that says Hidden. Make sure the Read-only one is unchecked. According to the documentation, sysstats is updated hourly, loopstats is updated every time the local clock is updated, peerstats is updated I'm assuming when NTP's peer is polled (documentation is a little vague), and rawstats is updated when an NTP message is received from a peer or clock driver. An hour or two is probably a sufficient time for stats to be generated. You won't generate any clockstats though, unless you are using a clock driver. That is, if I understand the documentation properly. -- Dennis Hilberg Jr timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Building/cannabalizing a WWVB radioclock...
Pete Stephenson wrote: It may simply be easier to get a GPS 18 LVC and see if I can get it connected and seeing if it'll reach a nearby spot where I can get signal. Either that, or get a proper WWVB receiver with a better antenna. I recently purchased a Garmin GPS 18 LVC for the purposes of a refclock. After soldering all the wires to a 9-pin serial connector and getting power from a USB port, I connected it to my Windows machine and used the Garmin SNSRCFG software to test it out. To my surprise it had locked on to 8 satellites, and currently seems to vary anywhere from 3 to 10. I had plans to mount it outside a window or possibly on the slope of the roof, but from the looks of it now I can leave it sitting on top of my Linux machine where it is currently connected, with the 5 meter cable still coiled up in a twist tie. I don't have any long-term data yet, as it's only been two days, but so far it works great. Offsets average about +- 15 us, and jitter and noise are in the 1-2 us range. So you might try the GPS 18 LVC as you just might get good signal, even indoors like mine. -- Dennis Hilberg Jr timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Offsets in NTP vs. SNTP
Dennis Hilberg Jr wrote: You also might read RFC 2030, which defines SNTP: http://www.faqs.org/rfcs/rfc2030.html My mistake, RFC 4330 obsoleted RFC 2030: http://www.ietf.org/rfc/rfc4330.txt -- Dennis Hilberg Jr timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Installing more stable oscillator?
Pete Stephenson wrote: Fair enough. I was inquiring about direct email as I didn't want to pester the newsgroup as a whole with messages. Still, if someone were to read the messages (or your website) and this keeps them from needing to ask questions in the first place, so it might reduce traffic overall. Please, post in the newsgroup. I have plans to turn one of my current Linux NTP machines into a FreeBSD machine using that Garmin GPS 18 LVC as a refclock, which I just ordered last night. I'll gladly read all the posts! -- Dennis Hilberg Jr timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.php ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions
Re: [ntp:questions] Installing more stable oscillator?
Pete Stephenson wrote: Ah, see, my familiarity with Linux does not extend to kernel patching. If I knew how, that'd be something I'd definitely do. Are you aware of any references that might be helpful? I've yet to be completely successful at recompiling and booting a Linux kernel. I've got to the point where it will compile with no problems, but booting it successfully is another matter. After spending multiple hours reading various incomplete (apparently) how-tos on the web, and then a couple hours going through the make menuconfig, waiting the hour or whatever it took for the kernel to compile, having the new image not boot properly was pretty frustrating. The last time I tried dealing with the kernel, after I did a 'make modules' and 'make modules_install', I got tons of dependency errors on the reboot and ended up having to reinstall the root file system. I'd rather install and learn a new OS (FreeBSD) if I decide to run a refclock since it has built-in PPS support, rather than mess with the PPSkit and the Linux kernel patching. I've tried recompiling a Linux kernel various times since I've been using it (since about 2000 or so), but my lack of success has convinced me it's not worth it. Plus there seems to be a lack of complete and detailed how-tos out there on the subject. One can only RTFM if complete and accurate manuals actually exist. Let me know if you find a good tutorial and are successful at recompiling. Sorry to hijack the thread. ;) -- Dennis Hilberg Jr timekeeper(at)dennishilberg(dot)com NTP Server Information: http://saturn.dennishilberg.com/ntp.html ___ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions