Re: [AVTCORE] Leap seconds

"Frederick, Ron" <ron.frederick@bluecoat.com> Wed, 21 September 2011 20:04 UTC

Return-Path: <ron.frederick@bluecoat.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 7A9CE1F0C3E for <avt@ietfa.amsl.com>; Wed, 21 Sep 2011 13:04:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 o9xkWMOdu27g for <avt@ietfa.amsl.com>; Wed, 21 Sep 2011 13:04:39 -0700 (PDT)
Received: from whisker.bluecoat.com (whisker.bluecoat.com [216.52.23.28]) by ietfa.amsl.com (Postfix) with ESMTP id E6A5A1F0C38 for <avt@ietf.org>; Wed, 21 Sep 2011 13:04:39 -0700 (PDT)
Received: from PWSVL-EXCHTS-02.internal.cacheflow.com (sai-rp.bluecoat.com [10.2.2.126] (may be forged)) by whisker.bluecoat.com (8.14.2/8.14.2) with ESMTP id p8LK77s6002653 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 21 Sep 2011 13:07:07 -0700 (PDT)
Received: from PWSVL-EXCMBX-01.internal.cacheflow.com ([fe80::15bc:12e2:4676:340f]) by PWSVL-EXCHTS-02.internal.cacheflow.com ([fe80::4910:317f:407:6ecc%14]) with mapi id 14.01.0289.001; Wed, 21 Sep 2011 13:07:02 -0700
From: "Frederick, Ron" <ron.frederick@bluecoat.com>
To: Marshall Eubanks <marshall.eubanks@gmail.com>
Thread-Topic: [AVTCORE] Leap seconds
Thread-Index: AQHMcwLggHZuxPKBMUmKovSaih7Cd5VNnFiAgAAGeACAAAqagIAAA5UAgAAOhoCAAChaAIAAKYOAgAELGgCABj2eAIAAE16AgAAxZACAAMejgIAAcNKAgAB/LICAAA/iAIABLIAAgAAwgQA=
Date: Wed, 21 Sep 2011 20:07:02 +0000
Message-ID: <1EBE92F6-A24D-4B6B-B692-23D396BF5E30@bluecoat.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> <CAJNg7VJqxQ9QFV7dgBbH8PVQVt88kAsX-xgr9XAf4ZO4-_x2kw@mail.gmail.com> <CALw1_Q2jGj_pHowfzgxMSBKXdEU99k=ST217PCBYtznRjBsvfA@mail.gmail.com> <4E78487D.1030602@ericsson.com> <CALw1_Q0urojdegAdsJ7L7bT=0680RN-0pk1g7J4zhP-aK3M5ew@mail.gmail.com> <6A72C4E9-B429-4B97-B4AA-98E420DF4C94@csperkins.org> <CALw1_Q1hb3mynU9J-PmdBH33RT2tWYt6Ba6he7Tojog-b-3GaQ@mail.gmail.com> <CAJNg7VJwaNTzDWq5cO9MqXK-wa+bz_=K9YL1ooD=J4e2CLjjeA@mail.gmail.com>
In-Reply-To: <CAJNg7VJwaNTzDWq5cO9MqXK-wa+bz_=K9YL1ooD=J4e2CLjjeA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.2.2.106]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <B30B69639228A042A8A3C7DD4B840CD5@bluecoat.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailman-Approved-At: Thu, 22 Sep 2011 09:42:24 -0700
Cc: "avt@ietf.org" <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: Wed, 21 Sep 2011 20:04:40 -0000

On Sep 21, 2011, at 10:13 AM, Marshall Eubanks wrote:
On Tue, Sep 20, 2011 at 7:17 PM, Kevin Gross <kevin.gross@avanw.com<mailto:kevin.gross@avanw.com>> wrote:
Well, that would fix things. By my reading, RFC 3550 is not clear on this however. I'm not sure trying to figure out the original intent of the RFC will help us resolve things because nowhere in the text do I see any indications that the RFC authors gave consideration to the NTP leap second issue.

The RFC does say "Wallclock time (absolute date and time) is represented using the timestamp format of the Network Time Protocol (NTP), which is in seconds relative to 0h UTC on 1 January 1900." (emphasis on timestamp format mine) Since it doesn't say anything about leap seconds, you could interpret it as Dave Singer and Colin Perkins have to mean actual seconds elapsed.

But a couple sentences later there's, "Running NTP may be useful for synchronizing streams transmitted from separate hosts." Again, no mention of leap-seconds but here, since we're talking about actual NTP (as opposed to "NTP timestamp format"), wouldn't you be inclined to assume that leap seconds are included in timestamps in this suggested implementation?

I have already determined that TAI time is best for my application. If anyone knows of any existing signaling mechanism I can use to communicate this to receivers (e.g. specific SDP a= records), I would welcome suggestions.


Yes, I don't know why leap seconds aren't treated as are the time zones and DST (i.e., instead of keeping UTC and displaying UTC + Z, you would keep TAI and display TAI + L  + Z). I urged that many years ago, but got absolutely no traction.

It sounds like what we would really want is to have RTP's timestamp is in NTP format with a timebase of 1 January 1900 0h TAI instead of UTC (which are actually the same time, since that date predates any added leap seconds). The challenge I see, though, is that operating system functions which applications are likely to use to get wallclock time are likely to return UTC, not TAI, and short of hardcoding a schedule of leap-seconds in the applications it will be difficult to convert back. Even then, if the system really does "freeze" the time it returns for a second during a leap second, there's no way to recover the correct TAI time and strange results will be seen when an SR is generated during that second.
--
Ron Frederick
ronf@bluecoat.com<mailto:ronf@bluecoat.com>