Re: [AVTCORE] Leap seconds

David Singer <singer@apple.com> Thu, 22 September 2011 00:05 UTC

Return-Path: <singer@apple.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 F310B11E810D for <avt@ietfa.amsl.com>; Wed, 21 Sep 2011 17:05:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.598
X-Spam-Level:
X-Spam-Status: No, score=-106.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, 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 p03YXsBkAjmu for <avt@ietfa.amsl.com>; Wed, 21 Sep 2011 17:05:52 -0700 (PDT)
Received: from mail-out.apple.com (mail-out.apple.com [17.151.62.51]) by ietfa.amsl.com (Postfix) with ESMTP id 182DA11E80F8 for <avt@ietf.org>; Wed, 21 Sep 2011 17:05:52 -0700 (PDT)
MIME-version: 1.0
Content-type: multipart/alternative; boundary="Boundary_(ID_hDy0FNFyTkwgXHwwEysL6w)"
Received: from relay16.apple.com ([17.128.113.55]) by mail-out.apple.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTP id <0LRW008QSDMIMGU0@mail-out.apple.com> for avt@ietf.org; Wed, 21 Sep 2011 17:08:22 -0700 (PDT)
Sun-Java-System-SMTP-Warning: Lines longer than SMTP allows found and truncated.
X-AuditID: 11807137-b7bddae0000031a0-f8-4e7a7e0a5646
Received: from [17.153.49.169] (Unknown_Domain [17.153.49.169]) by relay16.apple.com (Apple SCV relay) with SMTP id 74.B8.12704.A0E7A7E4; Wed, 21 Sep 2011 17:15:06 -0700 (PDT)
From: David Singer <singer@apple.com>
In-reply-to: <CAJNg7VLPyyimujcuUOZZ1XgFsmd-_CPyBfk7gp78rnLgt6aMZg@mail.gmail.com>
Date: Wed, 21 Sep 2011 17:08:21 -0700
Message-id: <BD16136F-46CE-43C5-8FAD-DB18DF132195@apple.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> <CAJNg7VJ@apple.com>
To: Marshall Eubanks <marshall.eubanks@gmail.com>
X-Mailer: Apple Mail (2.1084)
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsUiONNwpS5XXZWfwbVGQ4uXPSvZLe5sXsts sftfK7MDs8fLFzdZPXbOusvusWTJT6YA5igum5TUnMyy1CJ9uwSujLXb7jMXtAZXbFpzh7WB sde1i5GDQ0LARGLtHp4uRk4gU0ziwr31bF2MXBxCAhsZJfrf/mQBSQgLKEvc2nSNGcTmFTCU WLqpnR3EZhZwkzg09xMTiM0moCrxYM4xRhCbUyBQYmrrCrA4C1D8+7LVTBD1QRKzVuxhhZhj I3F//z9WiGWzOCW+/L8AlhABWtB87jAzxHGyEk3LMiYw8s1CsnoWktUQtrbEsoWvmWcBdTAL 6EhMXsiIKgxhfzx/hGkBI9sqRsGi1JzESkMzvcSCgpxUveT83E2MoLBtKDTfwbj9r9whRgEO RiUeXkn5Kj8h1sSy4srcQ4wSHMxKIrwtkkAh3pTEyqrUovz4otKc1OJDjNIcLErivEcfVfgJ CaQnlqRmp6YWpBbBZJk4OKUaGNMSxV+7e7G8UZfel5j3Onxpr/eN93tKv6jfWf2NbcG+nINe MTlz0rZu/C3Yl/h6akD9FeZXT/MS9GXEt/390Hlngu+xx/WhDYd/TsjyKnnLUnUhfrO4b+zc lUG/DvhWLZqZdySIaStX41XtfQ8nTJD4ldvD2pOR1RH56+VCwwdVs55e/Lzmvp4SS3FGoqEW c1FxIgCwGtHFVwIAAA==
Cc: "Frederick, Ron" <ron.frederick@bluecoat.com>, "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: Thu, 22 Sep 2011 00:05:53 -0000

On Sep 21, 2011, at 13:56 , Marshall Eubanks wrote:

> 
> 
> On Wed, Sep 21, 2011 at 4:07 PM, Frederick, Ron <ron.frederick@bluecoat.com> wrote:
> 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.
> --
> 
> The 800 kg elephant in the room is of course the suspicion that different implementations do different things during that second.
> 
> I know back when I was doing VLBI ops the policy was, "don't schedule  an observation over a leap second."  Media doesn't always 
> have that luxury.

Yes, I agree.

I think the easy fix is to clarify in RTP that the time in RTP sender reports always increments by one second for every second that elapses, such that subtracting any pair of these gives a true count of the number of seconds in between the two events.  This is consistent with the permission that one can use any clock as the source of these timestamps; NTP sync is not required.

Then a footnote to the effect that care should be taken with leap seconds if either these timestamps are derived from a 'civil time' clock that provides a timestamp in calendar format, or if the timestamps are converted to calendar format, e.g. for display purposes.


David Singer
Multimedia and Software Standards, Apple Inc.