Re: [AVTCORE] Leap seconds

Marshall Eubanks <marshall.eubanks@gmail.com> Mon, 19 September 2011 17:08 UTC

Return-Path: <marshall.eubanks@gmail.com>
X-Original-To: avt@ietfa.amsl.com
Delivered-To: avt@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 572BD21F8CA7 for <avt@ietfa.amsl.com>; Mon, 19 Sep 2011 10:08:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.212
X-Spam-Level:
X-Spam-Status: No, score=-103.212 tagged_above=-999 required=5 tests=[AWL=0.386, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9pQnZXDoOep8 for <avt@ietfa.amsl.com>; Mon, 19 Sep 2011 10:08:24 -0700 (PDT)
Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.213.172]) by ietfa.amsl.com (Postfix) with ESMTP id 379C421F8CA3 for <avt@ietf.org>; Mon, 19 Sep 2011 10:08:24 -0700 (PDT)
Received: by yxt33 with SMTP id 33so5131983yxt.31 for <avt@ietf.org>; Mon, 19 Sep 2011 10:10:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=f+xfkZkZlg3+iQMB224/XsStkHgGOoms6rTVQX/J1jk=; b=w/feZlh4OfvZUDONnkTm7QCjE+AkT9XEaj1lj98hplpVUjFrFKjLxjHIyBfuNvtFur ilMShejB7sNmtzYR/E5pfHV2jksezlPUajLL+43L3YMc2JR7wDXv1oRUKkBBh+CdHKTO Xgc65uiJkIHAJ4CqePz7wlxxaFERwkJIz8emc=
MIME-Version: 1.0
Received: by 10.150.100.17 with SMTP id x17mr1149680ybb.402.1316452247491; Mon, 19 Sep 2011 10:10:47 -0700 (PDT)
Received: by 10.151.26.10 with HTTP; Mon, 19 Sep 2011 10:10:47 -0700 (PDT)
In-Reply-To: <CALw1_Q0UD563WAES2bauEFa2+zr+qtwCs_=sX8hRED1VgPQTfw@mail.gmail.com>
References: <CALw1_Q0qK1WDc_KjEneOWrqr+jfVsqdwFYpF=ht-tS4SSNp8nQ@mail.gmail.com> <71C9EC0544D1F64D8B7D91EDCC6220200A2D0340@NABSREX027324.NAB.ORG> <alpine.BSF.2.00.1109141110001.25117@hsa.packetdesign.com> <CALw1_Q2L5z1bdVaENm7ky-epWjmxD326FLQ7THrObO_KMfdXfw@mail.gmail.com> <78481CCB-7A70-4BC4-91DC-A707301F22A5@apple.com> <CALw1_Q2VFe3d52ufVp2wSeNCHiwqgnhLh39dQTWYa52jWLaV+g@mail.gmail.com> <8EF3B729-407D-4A6F-9B5C-9E6833F2478B@apple.com> <CALw1_Q05fXDmTFapSaH1NRCsp2eWdemNus40gXsFwsx4HbR34Q@mail.gmail.com> <0F41102E-7F7A-4D69-B22D-6BFC3215D6C0@apple.com> <CALw1_Q0UD563WAES2bauEFa2+zr+qtwCs_=sX8hRED1VgPQTfw@mail.gmail.com>
Date: Mon, 19 Sep 2011 13:10:47 -0400
Message-ID: <CAJNg7VJqxQ9QFV7dgBbH8PVQVt88kAsX-xgr9XAf4ZO4-_x2kw@mail.gmail.com>
From: Marshall Eubanks <marshall.eubanks@gmail.com>
To: Kevin Gross <kevin.gross@avanw.com>
Content-Type: multipart/alternative; boundary="000e0cd2898e93560d04ad4e6cf9"
Cc: avt@ietf.org
Subject: Re: [AVTCORE] Leap seconds
X-BeenThere: avt@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Audio/Video Transport Core Maintenance <avt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/avt>, <mailto:avt-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/avt>
List-Post: <mailto:avt@ietf.org>
List-Help: <mailto:avt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/avt>, <mailto:avt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 19 Sep 2011 17:08:25 -0000

If the David Mills' documents are taken as normative...

On Mon, Sep 19, 2011 at 12:01 PM, Kevin Gross <kevin.gross@avanw.com> wrote:

> David Singer and I spent some time last week working through this offline.
> We're using the same sources and coming to different conclusions. We need
> some help resolving this open question.
>
> David's position is that the NTP timestamp continues to increment, with
> the system oscillator, through a leap second. The leap second is not visible
> in the NTP timestamp but in a higher layer process that converts NTP
> timestamps to UTC.
>
> My reading is that the NTP timestamp *is* UTC time and that the clock is
> paused for 1 second and a new timeline established at the leap second. This
> behavior will either upset or complicate media systems attempting to
> reference their playback to the NTP timestamps delivered in RTCP sender
> reports.
>

Neither or both is true, depending on your taste. (See below.) I would not
regard a NTP time interval including a leap second as an UTC time interval.

"Thus, determination of UTC time intervals spanning leap seconds will be in
error, unless the exact times of insertion are known from the NIST table and
its successors."


>
> RFC 3550 (RTP) does not discuss leap seconds.
>
> RFC 5905 (NTP) describes the mechanism used to convey
> an upcoming leap second but does not appear to discuss timestamp behavior
> associated with the leap second.
>
> The following two references from David Mills (RFC 5905 author) directly
> discuss leap second behavior:
>
>    1. http://www.eecis.udel.edu/~mills/leap.html Section 5
>    2. Last section of http://doc.ntp.org/4.1.2/leap.htm
>
>
"In this design time stands still during the leap second, but is correct
commencing with the next second. Since clock readings must be positive
monotonic, the apparent time will increase by one nanosecond for each
reading. At the end of the second the apparent time may be ahead of the
actual time depending on how many times the clocks was read during the
second. Eventually, the actual time will catch up with the apparent time and
operation continues normally."

So, the time is frozen EXCEPT that it keeps incrementing by 1 nanosecond per
read. In older software, that was 1 microsecond / read. If you are reading
the clock at 90 KHz, that's

- 90 microseconds for a  clock with 1 nanosecond time units, or 8 clock
cycles
- 90 milliseconds for a  clock with 1 microsecond time units, or 8100 clock
cycles

The near frozen polling would continue for that many additional clock cycles
(plus ~ 800 more for clocks with 1 microsecond time units, to catch up with
the delay caused by the polling in the catch up interval.

Regards
Marshall


>
> --
> Kevin Gross
> +1-303-447-0517
> Media Network Consultant
> AVA Networks - www.AVAnw.com <http://www.avanw.com/>, www.X192.org
>
>
>
> _______________________________________________
> Audio/Video Transport Core Maintenance
> avt@ietf.org
> https://www.ietf.org/mailman/listinfo/avt
>
>