home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / protocol / time / ntp / 1183 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.8 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!agate!ucbvax!maths.tcd.ie!ajudge
  2. From: ajudge@maths.tcd.ie (Alan Judge)
  3. Newsgroups: comp.protocols.time.ntp
  4. Subject: Re: Problems with xntp and MIPS RISC/os 5.01
  5. Message-ID: <9301121633.aa05583@salmon.maths.tcd.ie>
  6. Date: 12 Jan 93 16:33:09 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: inet
  9. Organization: The Internet
  10. Lines: 33
  11.  
  12. Lars> I am not sure that the SLEWALWAYS code has ever been tested. (I
  13. Lars> certainly didn't do so when I was hacking xntp to version 3.) On the
  14. Lars> other hand, it does seem like it ``ought to'' work --- it's not that
  15. Lars> complicated.
  16.  
  17. I'm a little worried about what happens if the clock drifts too far
  18. for adjtime to be able to cope reasonably.
  19.  
  20. Lars> It does seem that you need something like SLEWALWAYS, or perhaps a
  21. Lars> variant that uses gettimeofday to get to the nearest second and leaves
  22. Lars> the residue in sys_offset. Since it is you who needs the feature, it
  23. Lars> is probably up to you to get it to work.
  24.  
  25. This is what I was thinking of doing.  I'm willing to do the coding,
  26. but I'm worried about breaking NTP in the process, as I don't really
  27. understand how it works.
  28.  
  29. For example, if I use a variant of settimeofday to get to the nearest
  30. second, will xntp be able to deal with the rest of the offset with
  31. adjtime?  As the code is now, it looks like it will attempt to step
  32. for any offset greater than 128ms, and may never get in sync.  Also,
  33. the comments warn about increasing CLOCK_MAX above 500ms, which is the
  34. minimum that I would need (and, even then, I could end up stepping a
  35. lot).
  36.  
  37. What sort of tickadj values are reasonable if one is reliant on
  38. adjtime? 
  39.  
  40. Have you any hints about what I might try, or things to avoid?
  41. What is the best way of testing an NTP server?  (I don't want to start
  42. running a flaky Stratum 2.)
  43. --
  44. Alan
  45.