Re: [art] Predictable Internet Time

Joe Touch <touch@isi.edu> Tue, 28 March 2017 23:03 UTC

Return-Path: <touch@isi.edu>
X-Original-To: art@ietfa.amsl.com
Delivered-To: art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5456412773A for <art@ietfa.amsl.com>; Tue, 28 Mar 2017 16:03:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9oDj6b4LsH-v for <art@ietfa.amsl.com>; Tue, 28 Mar 2017 16:03:01 -0700 (PDT)
Received: from nitro.isi.edu (nitro.isi.edu [128.9.208.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DEFB41271DF for <art@ietf.org>; Tue, 28 Mar 2017 16:03:00 -0700 (PDT)
Received: from [128.9.184.151] ([128.9.184.151]) (authenticated bits=0) by nitro.isi.edu (8.13.8/8.13.8) with ESMTP id v2SN2khD014396 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 28 Mar 2017 16:02:46 -0700 (PDT)
To: Nico Williams <nico@cryptonector.com>
References: <CAMm+LwgfQJ8aG5wB=d3fRbbeje3J9o7Z4_DCuP8DL88ouDeKzw@mail.gmail.com> <504e2cea0d1668c31486b05fec0a967a4446aefe@webmail.weijax.net> <CAMm+Lwi_jU6gjdtdM6a2n_9_89tUvWBNXxnMtSjTEA++h1D4Ew@mail.gmail.com> <e0a43370-751f-808c-3719-9716f9cd57d1@isi.edu> <alpine.DEB.2.11.1701031348430.7102@grey.csi.cam.ac.uk> <f94415b6-d9f7-0a03-cf5b-ce39c109aa71@isi.edu> <f9429571-b9d5-75d4-9b46-b877a189a7bf@gmail.com> <20170328173916.GE7490@localhost> <e73d5c15-1ba3-8162-f7df-555e2e8588a6@isi.edu> <20170328224041.GJ7490@localhost>
Cc: Stewart Bryant <stewart.bryant@gmail.com>, art@ietf.org
From: Joe Touch <touch@isi.edu>
Message-ID: <9ddcde60-a915-a03d-dfc3-2c2c451c398c@isi.edu>
Date: Tue, 28 Mar 2017 16:02:46 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <20170328224041.GJ7490@localhost>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 7bit
X-MailScanner-ID: v2SN2khD014396
X-ISI-4-69-MailScanner: Found to be clean
X-MailScanner-From: touch@isi.edu
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/FRIbrZnQeSNLfE1fLc1XtedED3o>
Subject: Re: [art] Predictable Internet Time
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/art>, <mailto:art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art/>
List-Post: <mailto:art@ietf.org>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/art>, <mailto:art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 28 Mar 2017 23:03:02 -0000


On 3/28/2017 3:40 PM, Nico Williams wrote:
> On Tue, Mar 28, 2017 at 02:40:07PM -0700, Joe Touch wrote:
>> On 3/28/2017 10:39 AM, Nico Williams wrote:
>>> On Tue, Jan 03, 2017 at 06:35:03PM +0000, Stewart Bryant wrote:
>>>> Yes, the system should use a leap-second-free constant-duration-seconds time
>>>> for everything. It is only humans that need the variable jumpy version of
>>>> time presented to them, and that is a UI issue.
>>> I don't think that's quite right.
>>>
>>> Unix time is canonically a count of seconds since an epoch and admits no
>>> leap seconds. 
>> Unix time also uses a completely different definition of a "second" than
>> UTC.
> Did I.. say otherwise?
Yes, below....
>
>> There is no simple conversion between Unix time and UTC. Conversion
>> requires accurate assessment of the local Unix clock vs SI to determine
>> a rate conversion as well as knowing the table of leap seconds since the
>> Unix epoch.
> You're complicating things.  Forget the local clock.  To convert a time_t
> value to UTC requires just a list of leap seconds (and some arithmetic).
time_t does not access a SI reference or frankly any other stable reference.

If you don't have a stable time unit, accurate conversion isn't possible.

If you do have a stable time unit, you need the ratio of that time unit
to SI.

> There's no need to assess the quality of the local clock or anything of
> the sort.
>
>>> ...
>>> It's all about data typing. 
>> That is certainly one problem, but not the only one.
> It's really the main one, IMO.  In any case, smearing seems very wrong:
> you end up with more problems because you go from roughly two kinds of
> time (UTC vs TAI-ish) to three kinds of time (UTC vs TAI-ish vs the new
> thing).  If people had a hard time interoperating with two kinds of
> time, imagine how it would be with THREE kinds of time.  And if the
> smearing formula ever needs updating, then we'd be in trouble.  (Earth's
> rotation normally _slows_ over time, but the 2004 earthquake _sped up_
> Earth's rotation.  A few big ones and we might need negative leap
> seconds.  PIT's formula can't predict these events.)
>
> Just specify, in each protocol, the use of TAI (x)or UTC.  Done.
I agree.

Joe