Re: [dtn] [Last-Call] [EXTERNAL] Re: Genart last call review of draft-ietf-dtn-bpbis-17

Laurence Lundblade <lgl@island-resort.com> Fri, 08 November 2019 22:04 UTC

Return-Path: <lgl@island-resort.com>
X-Original-To: dtn@ietfa.amsl.com
Delivered-To: dtn@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8D65A120255 for <dtn@ietfa.amsl.com>; Fri, 8 Nov 2019 14:04:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=unavailable 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 XY9sQGIaaeao for <dtn@ietfa.amsl.com>; Fri, 8 Nov 2019 14:04:31 -0800 (PST)
Received: from p3plsmtpa11-01.prod.phx3.secureserver.net (p3plsmtpa11-01.prod.phx3.secureserver.net [68.178.252.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AA4D412022D for <dtn@ietf.org>; Fri, 8 Nov 2019 14:04:31 -0800 (PST)
Received: from [10.122.0.90] ([45.56.150.85]) by :SMTPAUTH: with ESMTPA id TCMmiAs4zrk1WTCMniKFAD; Fri, 08 Nov 2019 15:04:29 -0700
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <C9B63091-C78C-4EB8-AF07-31C88A5018D5@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_4C319A18-5087-452F-87FC-94CB69D499A5"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Fri, 08 Nov 2019 14:04:28 -0800
In-Reply-To: <CC7943D2-62C7-4CDF-A16D-ED7AB1F67DAE@strayalpha.com>
Cc: "Burleigh, Scott C (US 312B)" <scott.c.burleigh=40jpl.nasa.gov@dmarc.ietf.org>, Magnus Westerlund <magnus.westerlund@ericsson.com>, "draft-ietf-dtn-bpbis.all@ietf.org" <draft-ietf-dtn-bpbis.all@ietf.org>, "gen-art@ietf.org" <gen-art@ietf.org>, "last-call@ietf.org" <last-call@ietf.org>, "lloyd.wood@yahoo.co.uk" <lloyd.wood@yahoo.co.uk>, Stewart Bryant <stewart.bryant@gmail.com>, "dtn@ietf.org" <dtn@ietf.org>
To: Joe Touch <touch@strayalpha.com>
References: <157306815414.27362.18239257168598208900@ietfa.amsl.com> <65cb92a64e5e6d5010392ad33d70be44c8abc962.camel@ericsson.com> <A75165E4-126B-4791-9A6D-7CDF555A431C@gmail.com> <430992730.1235576.1573218197349@mail.yahoo.com> <EFC9E9F1-D43C-46B4-A38B-53EB76E1D3AD@gmail.com> <17ed0ca2fddc42c5bec46925d10a0458@jpl.nasa.gov> <CC7943D2-62C7-4CDF-A16D-ED7AB1F67DAE@strayalpha.com>
X-Mailer: Apple Mail (2.3445.104.11)
X-CMAE-Envelope: MS4wfBS3mv7F01KR2BzyZEGOJ5T8BDKYm9rTKH2v8dV2W7o3Lw44ivwKmc+1aBPJwwf47wA4qmJnIlTIV4Lzq7yhXJyj6cFgSqObylTPc6SBx19HhY4zfb78 UIdG+h9R0uGfXy8S3I7LZQL2x+6stIIMdao0x9pp1ClZ+ZqfVqipR+js2IsGGt78efc8VGUXVFJUSPiQBkq3hwKolWx+xLCbfIfIX/AxLA8RwIugE8gZ3gTw K56vcjTZmuXkYaKObYZcaAFOq+fAmt6oUnX+jV5DDysQakE+UgkekmNZC8cf6f1kIz0+mMY96LiobiKGKJMX94tUMrGe/WSlsPF/91SsXBgZ5+ZXWMaEuCxo C0vcS2NTUBMEQN+CE4YbfW/Bg8x1g17ZYSNRyXubN7zdyAN5uOlYBFcsJuP6sq8fAeuFVJ4Wo7Lq/dWOblCrjePSMXTFpB8xISG1ADBNpUg0URR5mspZF5TX aTQgfScmDHx3x47b
Archived-At: <https://mailarchive.ietf.org/arch/msg/dtn/N8RxyVUDW3hvQxASOu3P2rBPtDQ>
Subject: Re: [dtn] [Last-Call] [EXTERNAL] Re: Genart last call review of draft-ietf-dtn-bpbis-17
X-BeenThere: dtn@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Delay Tolerant Networking \(DTN\) discussion list at the IETF." <dtn.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dtn>, <mailto:dtn-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dtn/>
List-Post: <mailto:dtn@ietf.org>
List-Help: <mailto:dtn-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dtn>, <mailto:dtn-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 08 Nov 2019 22:04:34 -0000

CBORbis defines an “Epoch-based Date/Time” here <https://tools.ietf.org/html/draft-ietf-cbor-7049bis-09#section-3.4.3> making normative reference to Posix time with a brief discussion of leap seconds, positive and negative values and number of bits.

(I’m not familiar with draft-ietf-dtn-bpbis-xxm, just saw the time discussion and thought it might be of use)

LL


> On Nov 8, 2019, at 7:40 AM, Joe Touch <touch@strayalpha.com> wrote:
> 
> Unix time != the Posix time API. One is a time scale; the other is the interface to obtain potentially many different time scales.
> 
> I dove into these issues here: draft-touch-time
> 
> Joe
> 
>> On Nov 8, 2019, at 7:34 AM, Burleigh, Scott C (US 312B) <scott.c.burleigh=40jpl.nasa.gov@dmarc.ietf.org <mailto:scott.c.burleigh=40jpl.nasa.gov@dmarc.ietf.org>> wrote:
>> 
>> I disagree.  From Wikipedia:
>>  
>> Unix time (also known as Epoch time, POSIX time,[1] <https://en.wikipedia.org/wiki/Unix_time#cite_note-1> seconds since the Epoch,[2] <https://en.wikipedia.org/wiki/Unix_time#cite_note-single-unix-spec-4.16-2> or UNIX Epoch time[3] <https://en.wikipedia.org/wiki/Unix_time#cite_note-3>) is a system for describing a point in time <https://en.wikipedia.org/wiki/Timestamp>. It is the number of seconds <https://en.wikipedia.org/wiki/Second> that have elapsed since the Unix epoch, that is the time 00:00:00 UTC <https://en.wikipedia.org/wiki/Coordinated_Universal_Time> on 1 January 1970, minus leap seconds <https://en.wikipedia.org/wiki/Leap_second>. Leap seconds are ignored,[4] <https://en.wikipedia.org/wiki/Unix_time#cite_note-single-unix-spec-rationale-4.16-4> with a leap second having the same Unix time as the second before it, and every day is treated as if it contains exactly 86400 seconds.[2] <https://en.wikipedia.org/wiki/Unix_time#cite_note-single-unix-spec-4.16-2> Due to this treatment Unix time is not a true representation of UTC.
>>  
>> Now, of course, this is Wikipedia, which everyone knows to be useless and unreliable.  But the summary is at least concise and clear, and in this particular case it is supported by several source documents, noted at the bottom of the article.
>>  
>> For example, “The Open Group Base Specifications Issue 7, Rationale: Base Definitions”, section A.4 (General Concepts) says “Coordinated Universal Time (UTC) includes leap seconds. However, in POSIX time (seconds since the Epoch), leap seconds are ignored(not applied) to provide an easy and compatible method of computing time differences.”
>>  
>> Going back a bit, page 166 of https://www.tuhs.org/Archive/Distributions/Research/Dennis_v5/v5man.pdf <https://www.tuhs.org/Archive/Distributions/Research/Dennis_v5/v5man.pdf> Dennis and Ritchie (who ought to know) say “Time returns the time since 00:00:00 GMT, Jan. 1, 1970, measured in seconds.”
>>  
>> I am happy to agree that an operating system’s implementation of the time() function may typically obtain accurate UTC time (from GPS or NTP) and subtract the leap seconds out of that value to obtain Epoch time, and in this sense the implementation of the time() function is typically dependent on information about leap seconds.
>>  
>> But that is an implementation expedient, which BP does not care about.  What BP cares about is expressing time as a number of seconds that have elapsed since the Epoch (minus an offset, the number of seconds elapsed from the Epoch to midnight 1 January 2000 UTC).  The manner in which that value is generated doesn’t matter to the protocol.
>>  
>> Scott
>>  
>> From: Stewart Bryant <stewart.bryant@gmail.com <mailto:stewart.bryant@gmail.com>> 
>> Sent: Friday, November 8, 2019 6:33 AM
>> To: lloyd.wood@yahoo.co.uk <mailto:lloyd.wood@yahoo.co.uk>
>> Cc: Magnus Westerlund <magnus.westerlund@ericsson.com <mailto:magnus.westerlund@ericsson.com>>; last-call@ietf.org <mailto:last-call@ietf.org>; gen-art@ietf.org <mailto:gen-art@ietf.org>; draft-ietf-dtn-bpbis.all@ietf.org <mailto:draft-ietf-dtn-bpbis.all@ietf.org>; dtn@ietf.org <mailto:dtn@ietf.org>
>> Subject: [EXTERNAL] Re: [Last-Call] Genart last call review of draft-ietf-dtn-bpbis-17
>>  
>>  
>> 
>> 
>> On 8 Nov 2019, at 13:03, lloyd.wood@yahoo.co.uk <mailto:lloyd.wood@yahoo.co.uk> wrote:
>>  
>> http://lloydwood.users.sourceforge.net/Personal/L.Wood/publications/wood-ieee-aerospace-2009-bundle-problems.pdf <http://lloydwood.users.sourceforge.net/Personal/L.Wood/publications/wood-ieee-aerospace-2009-bundle-problems.pdf>
>>  
>> The critical text in that paper is:
>>  
>> "The Bundle Protocol uses Coordinated Universal Time (UTC), where leap seconds are added at irregular, unpredictable, intervals to reflect slowing of the Earth’s rotation. For nodes ‘in the field’ for a long time (decades), some way of communicating newly-decided UTC leap seconds will be required to prevent clock drift over long time scales that would eventually lead to bundles expiring before delivery. This is most likely to be a significant issue for real-time traffic with very short bundle lifetimes."
>> That says that leap-seconds need to be transmitted to the remote site, but the ID does not say anything about that, indeed it silently implies that this is handled.
>> The draft text says
>> Like TAI, Unix epoch time
>>    is simply a count of seconds elapsed since a standard epoch.  Unlike
>>    TAI, the current value of Unix epoch time is provided by virtually
>>    all operating systems on which BP is likely to run.
>>  
>> Which is not quite right. The TAI is a continuous count of the number of seconds since the epoch. The UNIX tine is the continuous count + leap seconds since the epoch. Unix knows how many leap seconds have happened by a background process and adds them in, but for that to work it has to have a method of knowing the current leap second state. BTW leap seconds can be removed as well as added.
>>  
>> - Stewart
>>  
>>  
>>  
>> -- 
>> last-call mailing list
>> last-call@ietf.org <mailto:last-call@ietf.org>
>> https://www.ietf.org/mailman/listinfo/last-call <https://www.ietf.org/mailman/listinfo/last-call>
> -- 
> last-call mailing list
> last-call@ietf.org
> https://www.ietf.org/mailman/listinfo/last-call