Re: [AVTCORE] Leap seconds

Qin Wu <bill.wu@huawei.com> Thu, 22 September 2011 09:52 UTC

Return-Path: <bill.wu@huawei.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 2C09721F8BB2 for <avt@ietfa.amsl.com>; Thu, 22 Sep 2011 02:52:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.963
X-Spam-Level:
X-Spam-Status: No, score=-4.963 tagged_above=-999 required=5 tests=[AWL=0.751, BAYES_00=-2.599, HTML_FONT_FACE_BAD=0.884, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4]
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 nQvdvqMj8foz for <avt@ietfa.amsl.com>; Thu, 22 Sep 2011 02:52:20 -0700 (PDT)
Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [119.145.14.64]) by ietfa.amsl.com (Postfix) with ESMTP id 87D9521F8B0E for <avt@ietf.org>; Thu, 22 Sep 2011 02:52:19 -0700 (PDT)
Received: from huawei.com (szxga05-in [172.24.2.49]) by szxga05-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LRX002LH4SDSX@szxga05-in.huawei.com> for avt@ietf.org; Thu, 22 Sep 2011 17:53:01 +0800 (CST)
Received: from szxrg02-dlp.huawei.com ([172.24.2.119]) by szxga05-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LRX00EUB4SCOF@szxga05-in.huawei.com> for avt@ietf.org; Thu, 22 Sep 2011 17:53:01 +0800 (CST)
Received: from szxeml206-edg.china.huawei.com ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.1.9-GA) with ESMTP id ADV35017; Thu, 22 Sep 2011 17:52:20 +0800
Received: from SZXEML406-HUB.china.huawei.com (10.82.67.93) by szxeml206-edg.china.huawei.com (172.24.2.58) with Microsoft SMTP Server (TLS) id 14.1.270.1; Thu, 22 Sep 2011 17:52:14 +0800
Received: from w53375q (10.138.41.130) by szxeml406-hub.china.huawei.com (10.82.67.93) with Microsoft SMTP Server (TLS) id 14.1.270.1; Thu, 22 Sep 2011 17:52:18 +0800
Date: Thu, 22 Sep 2011 17:52:17 +0800
From: Qin Wu <bill.wu@huawei.com>
X-Originating-IP: [10.138.41.130]
To: Kevin Gross <kevin.gross@avanw.com>
Message-id: <D53447D3058745EF9D385A5AD5F374FD@china.huawei.com>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.6109
X-Mailer: Microsoft Outlook Express 6.00.2900.5931
Content-type: multipart/alternative; boundary="Boundary_(ID_tHv4JRf6RjI45JM9mDEIAg)"
X-Priority: 3
X-MSMail-priority: Normal
X-CFilter-Loop: Reflected
References: <CALw1_Q2o-LdSLjDShNtZsb9fgbQJe4sEke-ckER74UCwXTnUxw@mail.gmail.com>
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: Thu, 22 Sep 2011 09:52:21 -0000

Hi, Kevin:
Regarding how to know where the leap seconds are, I think, you may follow two potential ways:
1. you may take take David's suggestion, compare the NTP/RTP pairs in the two consecutive SRs to know if exception happen. 
2. you may look at IDMS draft, the parameter clock source is  defined in SDP to signal the source for clock
   synchronization. Using this parameter, the receiver may know where the leap seconds are.
Does this make sense?

Regards!
-Qin

  ----- Original Message ----- 
  From: Kevin Gross 
  To: Qin Wu 
  Sent: Wednesday, September 21, 2011 9:33 PM
  Subject: Re: [AVTCORE] Leap seconds


  IEEE 1588 definitely uses TAI time. You cannot convert between TAI/GPS/1588 and UTC/NTP unless you know where all the leap seconds are. If you know where the leap seconds are, you can fix it as you have suggested or in other ways.


  Abolishing leap seconds was discussed earlier in this thread. That is still being studied at the ITU. It is controversial.


  The RFC 3550 gives no hint of the leap-second issue so implementers are unlikely to make proper accommodation for leap seconds. The issue affects applications that use the RTCP SR NTP timestamp to determine playout time. The stream will get glitched at midnight every couple years. Duration of the glitch is from momentary to minutes depending on implementation. Perhaps no big deal for some but not acceptable behavior for the applications I work on.


  Kevin Gross


  On Tue, Sep 20, 2011 at 8:41 PM, Qin Wu <bill.wu@huawei.com> wrote:

    I am not sure Precision Time protocol defined in IEEE1588 is subject to leap seconds, but I am aware GPS and TAI are two timescales that don't follow leap seconds.
    So one solution to overcome  leap seconds is to use GPS as clocksource and convert GPS time to NTP timestamp. Otherwise manually updated and maintained leap seconds table
    will be used to correct UTC time and NTP time when leap seconds occurs.

    Also I am aware that there is long debate in ITU-T Studay Group 7 regarding abolishing leap seconds. It was said that in 2017, the leap seconds will not be used. UTC will be continuous 
    timescale. so shall we really need to be worried about this issue?

    Regards!
    -Qin

      ----- Original Message ----- 
      From: Kevin Gross 
      To: Colin Perkins 
      Cc: Magnus Westerlund ; avt@ietf.org ; Marshall Eubanks 
      Sent: Wednesday, September 21, 2011 7:17 AM
      Subject: Re: [AVTCORE] Leap seconds


      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.


      Kevin Gross

      On Tue, Sep 20, 2011 at 4:21 PM, Colin Perkins <csp@csperkins.org> wrote:

        I guess I'm confused. RTP was intended to use NTP *format* timestamps, but intentionally said nothing about synchronisation to any particular time source. I don't think it's valid to assume that the NTP format timestamps conveyed in RTP are synchronised to UTC, TAI, or anything else, *unless you have some explicit signalling to state that*. 


        Colin





--------------------------------------------------------------------------


      _______________________________________________
      Audio/Video Transport Core Maintenance
      avt@ietf.org
      https://www.ietf.org/mailman/listinfo/avt







  -- 
  Kevin Gross

  +1-303-447-0517
  Media Network Consultant

  AVA Networks - www.AVAnw.com, www.X192.org