Re: [art] Predictable Internet Time

Nico Williams <nico@cryptonector.com> Tue, 28 March 2017 22:40 UTC

Return-Path: <nico@cryptonector.com>
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 E735C12708C for <art@ietfa.amsl.com>; Tue, 28 Mar 2017 15:40:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.796
X-Spam-Level:
X-Spam-Status: No, score=-4.796 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cryptonector.com
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 HvKq1k3d9lhe for <art@ietfa.amsl.com>; Tue, 28 Mar 2017 15:40:47 -0700 (PDT)
Received: from homiemail-a31.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 358A4126BF0 for <art@ietf.org>; Tue, 28 Mar 2017 15:40:45 -0700 (PDT)
Received: from homiemail-a31.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a31.g.dreamhost.com (Postfix) with ESMTP id AC2491406B20; Tue, 28 Mar 2017 15:40:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=tLdVeXGDxhSITD XaLcuNBhcTZQs=; b=sPB9tghqMhc7GkuiPYxPDm78N8wxpCR1RrjuJtIqVwu8Td q7aH/VrwIQCpPWE8gySTwEfS64lope0dtHoI/sqYi6nOTuzm6WowHwWoVKGKZkl3 0g+ijCH6k0SSYv15dhlgaTzfOfiSfsmuUoylz70myHkDRSIRBw8WWVF8NbJfE=
Received: from localhost (cpe-70-123-158-140.austin.res.rr.com [70.123.158.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a31.g.dreamhost.com (Postfix) with ESMTPSA id 576A51406B0A; Tue, 28 Mar 2017 15:40:44 -0700 (PDT)
Date: Tue, 28 Mar 2017 17:40:42 -0500
From: Nico Williams <nico@cryptonector.com>
To: Joe Touch <touch@isi.edu>
Cc: Stewart Bryant <stewart.bryant@gmail.com>, art@ietf.org
Message-ID: <20170328224041.GJ7490@localhost>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <e73d5c15-1ba3-8162-f7df-555e2e8588a6@isi.edu>
User-Agent: Mutt/1.5.24 (2015-08-30)
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/13VUCCul03FDyMkujV14ikhvGlQ>
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 22:40:49 -0000

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?

> 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).

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.

Nico
--