Re: basic questions about the leapsecond
- From: Unruh <unruh-spam@xxxxxxxxxxxxxx>
- Date: Tue, 16 Dec 2008 02:29:30 GMT
GDowd@xxxxxxxxxxxxxxx (Greg Dowd) writes:
-----Original Message-----
From: questions-bounces+gdowd=symmetricom.com@xxxxxxxxxxxxx
[mailto:questions-bounces+gdowd=symmetricom.com@xxxxxxxxxxxxx] On Behalf
Of Richard B. Gilbert
Sent: Monday, December 15, 2008 1:08 PM
To: questions@xxxxxxxxxxxxx
Subject: Re: basic questions about the leapsecond
Greg Dowd wrote:
I think it is the original rfc1305 (NTPv3) language that determinedthat
the bits only show up on the day of the event. While the actualthe
requirement is merely that they are set before 23:59 and cleared after
midnight, the supporting text is shown below.
"On the day prior to the insertion of a leap second the leap bits
(sys.leap) are set at the primary servers, presumably by manual means.
Subsequently, these bits show up at the local host and are passed to
local-clock procedure. This causes the modulus of the time variable,by
which is the length of the current day, to be increased or decreased
one second as appropriate. Immediately following insertion the leapbits
are reset. Additional discussion on this issue can be found inAppendix
E."8,
"The chronometry involved can be illustrated with the help of FigureFrom Appendix E
which shows the details of seconds numbering just before, during and1989.
after the last scheduled leap insertion at 23:59:59 on 31 December
Notice the NTP leap bits are set on the day prior to insertion, asthe
indicated by the <169>+<170> symbols on the figure. Since this makes
day one second longer than usual, the NTP day rollover will not occurand
until the end of the first occurrence of second 800. The UTC time
conversion routines must notice the apparent time and the leap bits
handle the timescale conversions accordingly. Immediately after theleap
insertion both timescales resume ticking the seconds as if the leaphad
never happened. The chronometric correspondence between the UTC andNTP
timescales continues, but NTP has forgotten about all past leapof
insertions. In NTP chronometric determination of UTC time intervals
spanning leap seconds will thus be in error, unless the exact times of
insertion are known."
When ntpv4 is standardized, the language changes to "leap at the end
the current month".Behalf
-----Original Message-----
From: questions-bounces+gdowd=symmetricom.com@xxxxxxxxxxxxx
[mailto:questions-bounces+gdowd=symmetricom.com@xxxxxxxxxxxxx] On
Of David J Taylordo
Sent: Monday, December 15, 2008 9:39 AM
To: questions@xxxxxxxxxxxxx
Subject: Re: basic questions about the leapsecond
David L. Mills wrote:
Guys,
See http://www.eecis.udel.edu/~mills/ntp/html/ntpd.html#leap for what
actually is in the implementation. As visivle here, the Spectracom
(GPS/WWVB) driver, ACTS telephone modem driver and WWV audio driver
second.correctly display leap information. The Meinberg GPS receiver, EndRun[]
CDMA receiver and audio IRIG driver do not display leapsecond
information.
Dave
Dave,
Thanks for that summary. My own GPS system using the Garmin GPS18 LVC
and
the official ntp code for FreeBSD also does /not/ show the leap
Is this something fundamental to all GPS - in that they don't indicate
until nearer the end of the month?
Thanks,
David
Did you READ the message you replied to?
It seems quite clear to me!
He asked if the Garmin GPS18LVC reported leap second information before the
fact. David never talked about that receiver.
Reading the documentation on the GPS18 it seems it does NOT transmit the
information that a leap second will occur. It does correct its time
transmission to include the leap second, including broadcasting how many
leap seconds have been inserted in the past. But that would seem to be
after the fact, not before the fact.
Ie, it would seem that if you are getting your time from the Garmin GPS, at
midnight on Dec 31, ntp will suddenly find that it is out by one second.
Since that is longer than 128ms, it will jump the time by resetting the
system clock by a second the next time it queries the GPS receiver input ( somewhere
between 16 and 1000 seconds later, depending on the poll interval for the
GPS receiver.)
Ie, for a while your system time will be out by a second.
_______________________________________________
questions mailing list
questions@xxxxxxxxxxxxx
https://lists.ntp.org/mailman/listinfo/questions
Did I miss something? The question I replied to asked if any
generalizations could be drawn about the behavior of various GPS
devices, did it not? Dave Mill's reply described exactly the behavior
of the current distribution from ntpd land and a sampling of reflock
driver operations. It made no attempt to explain why some devices
behave one way and some another. For instance, I think it was Martin
that noted that IRIG doesn't provide leap second info unless the 1344
ToM enhancements are added. It might be useful to understand that 1344
only allows the leap bit to be set in the last 10 minutes of the day.
Then you would understand that no audio IRIG driver will ever set leap
well on its own. As for GPS, the leap second warning is typically
provided a few months early. So, why do so many drivers not report it
immediately? The fundamental cause is likely that most of these
drivers, including ones I've worked on, were written in the window from
1992 - today. In that window, the ietf rfc defining NTP behavior
restricts the driver to setting the bit until the day of the event per
my posting. Meanwhile, time has marched on and v4 has been available
for a long time but it is not standardized and so there is no clear
definition of whether what the refclock drivers do is correct or
incorrect.
.the unexplained creates a frame of reference. Then I don't ask so manyFrom my point of view, I find understanding the history and context of
stupid questions. At least hopefully I don't ask the same question
twice.
- Follow-Ups:
- Re: basic questions about the leapsecond
- From: Chris Adams
- Re: basic questions about the leapsecond
- References:
- basic questions about the leapsecond
- From: Antonio M. Moreiras
- Re: basic questions about the leapsecond
- From: Martin Burnicki
- Re: basic questions about the leapsecond
- From: Greg Dowd
- Re: basic questions about the leapsecond
- From: Richard B. Gilbert
- Re: basic questions about the leapsecond
- From: Greg Dowd
- basic questions about the leapsecond
- Prev by Date: Re: basic questions about the leapsecond
- Next by Date: Re: basic questions about the leapsecond
- Previous by thread: Re: basic questions about the leapsecond
- Next by thread: Re: basic questions about the leapsecond
- Index(es):
Relevant Pages
|