Re: [AVTCORE] Leap seconds

Magnus Westerlund <magnus.westerlund@ericsson.com> Tue, 20 September 2011 07:59 UTC

Return-Path: <magnus.westerlund@ericsson.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 1CD5421F8B3E for <avt@ietfa.amsl.com>; Tue, 20 Sep 2011 00:59:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.513
X-Spam-Level:
X-Spam-Status: No, score=-106.513 tagged_above=-999 required=5 tests=[AWL=0.086, BAYES_00=-2.599, 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 U-SFbFOZ+DIk for <avt@ietfa.amsl.com>; Tue, 20 Sep 2011 00:59:46 -0700 (PDT)
Received: from mailgw10.se.ericsson.net (mailgw10.se.ericsson.net [193.180.251.61]) by ietfa.amsl.com (Postfix) with ESMTP id 3AB5E21F8AF0 for <avt@ietf.org>; Tue, 20 Sep 2011 00:59:46 -0700 (PDT)
X-AuditID: c1b4fb3d-b7c47ae000000b17-fe-4e78488209a1
Received: from esessmw0184.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw10.se.ericsson.net (Symantec Mail Security) with SMTP id 68.E1.02839.288487E4; Tue, 20 Sep 2011 10:02:10 +0200 (CEST)
Received: from [127.0.0.1] (153.88.115.8) by esessmw0184.eemea.ericsson.se (153.88.115.82) with Microsoft SMTP Server id 8.3.137.0; Tue, 20 Sep 2011 10:02:07 +0200
Message-ID: <4E78487D.1030602@ericsson.com>
Date: Tue, 20 Sep 2011 10:02:05 +0200
From: Magnus Westerlund <magnus.westerlund@ericsson.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
MIME-Version: 1.0
To: Kevin Gross <kevin.gross@avanw.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>
In-Reply-To: <CALw1_Q2jGj_pHowfzgxMSBKXdEU99k=ST217PCBYtznRjBsvfA@mail.gmail.com>
X-Enigmail-Version: 1.3.1
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: AAAAAA==
Cc: "avt@ietf.org" <avt@ietf.org>, Marshall Eubanks <marshall.eubanks@gmail.com>
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: Tue, 20 Sep 2011 07:59:47 -0000

On 2011-09-19 22:07, Kevin Gross wrote:
> Yes, well, there it is in all the gory detail.
> 
> The point I'm try to get to is that any behavior that doesn't move the
> timestamp forward at a constant rate will be a problem for RTP. You
> appear to be reading it as I have. NTP time is UTC time and so there's
> non-uniform behavior around leap seconds.

Assuming that the NTP clock freezes or semi freezes during the leap
seconds I see two effect happening.

One issue is that an system reading it's clock during the leap second
itself will get different values depending on if the system uses true
NTP time or POSIX time. Thus potentially creating up to a second of
mismatch due to this.

The second issue appears to be that if the two systems are not precisely
aligned the leap second will appear to occur at different time from a
outside observer. That will result that the system that first implements
the leap second will appear to be out of sync with 1 second until the
second system also performs the leap second. Thus you suddenly see a 1
second sync correction that the receiver system might start correct for,
then that difference disappears when the other system also have had its
leap second event. Thus resulting in adjusting back again.

The above can cause different media streams to be out of sync at the
receiver for the time when only one of the media stream's SR has been
delivered.

I would note that leap seconds are rare. They have occurred 24 times
since 1970. And there has been only 2 during the 2000 decade.

>From my perspective, unless you have a really high performance
application, the leap second event will at most cause some sync
adjustments with potentially media out of sync that will be corrected as
soon as both sender and receiver has passed the leap second event and
SRs has been delivered in both cases.

I think the reasonable thing to do is simply to ignore SRs that indicate
an approximately 1 second adjustment on a media stream when in close
proximity to a leap second event. This would works fine as long as the
two involved nodes would not be more out of sync than the guard period
where this algorithm is active.

Cheers

Magnus Westerlund

----------------------------------------------------------------------
Multimedia Technologies, Ericsson Research EAB/TVM
----------------------------------------------------------------------
Ericsson AB                | Phone  +46 10 7148287
Färögatan 6                | Mobile +46 73 0949079
SE-164 80 Stockholm, Sweden| mailto: magnus.westerlund@ericsson.com
----------------------------------------------------------------------