Re: [dtn] BPbis - time units

"Birrane, Edward J." <Edward.Birrane@jhuapl.edu> Wed, 29 July 2020 16:14 UTC

Return-Path: <Edward.Birrane@jhuapl.edu>
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 A12733A094E; Wed, 29 Jul 2020 09:14:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=jhuapl.edu
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 gsYkmt6NPhnF; Wed, 29 Jul 2020 09:14:31 -0700 (PDT)
Received: from aplegw01.jhuapl.edu (aplegw01.jhuapl.edu [128.244.251.168]) (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 1E8C13A0BE5; Wed, 29 Jul 2020 09:14:31 -0700 (PDT)
Received: from pps.filterd (aplegw01.jhuapl.edu [127.0.0.1]) by aplegw01.jhuapl.edu (8.16.0.42/8.16.0.42) with SMTP id 06TGDOxH095221; Wed, 29 Jul 2020 12:14:25 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhuapl.edu; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=JHUAPLDec2018; bh=V6iCKmUTYpPJWnScQ9hOPMTa6chocr8jAFwOi0KozT0=; b=bJsTru5cmV1QTHTbCVXYVhUJGhtdf2a7g3hiZEH/UBxdryF1sFwg8AutvdTxiap3xso0 +8gspPb5dXtEVzOR/0wE86jh84fSSHNwFkY3nkPqf/HGI2TOkWap5wqWklKmoMm+FJ73 oT1fQHFcgaRu8i05CRJG2heZm6SriKDD2IE+dewQ8wH816qNNEULBcRFroKvStZrSsN/ dqci3RJNkeGnsEALbqsRN9esgOFxLVaffdXFpMjn2bYVK3uSxuFRTW9nqLRqeDb8Vo4i QJGIVQ7vrt8OsPYS/qZH4nBSwOl6YaIETlQh9LS+D3u1Ii1GUM4QqbGdykcwH8MRo4Gq qQ==
Received: from aplex03.dom1.jhuapl.edu (aplex03.dom1.jhuapl.edu [128.244.198.7]) by aplegw01.jhuapl.edu with ESMTP id 32gmbykdh1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 29 Jul 2020 12:14:25 -0400
X-CrossPremisesHeadersFilteredBySendConnector: APLEX03.dom1.jhuapl.edu
Received: from aplex01.dom1.jhuapl.edu (128.244.198.5) by APLEX03.dom1.jhuapl.edu (128.244.198.7) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 29 Jul 2020 12:14:25 -0400
Received: from aplex01.dom1.jhuapl.edu ([fe80::19f5:dcc5:c696:1a50]) by aplex01.dom1.jhuapl.edu ([fe80::19f5:dcc5:c696:1a50%25]) with mapi id 15.00.1497.006; Wed, 29 Jul 2020 12:14:24 -0400
From: "Birrane, Edward J." <Edward.Birrane@jhuapl.edu>
To: "Taylor, Rick" <rick.taylor@airbus.com>, "Jeremy.Mayer@dlr.de" <Jeremy.Mayer@dlr.de>, "cabo@tzi.org" <cabo@tzi.org>, "scott.c.burleigh=40jpl.nasa.gov@dmarc.ietf.org" <scott.c.burleigh=40jpl.nasa.gov@dmarc.ietf.org>
CC: "dtn@ietf.org" <dtn@ietf.org>
Thread-Topic: [dtn] BPbis - time units
Thread-Index: AQHWZXd7QA7uY1Jylk6UMIj/Dy3A96kemPhggABbwwD//74EoA==
Date: Wed, 29 Jul 2020 16:14:24 +0000
Message-ID: <1d02fc86f45141a98e6c8c6cd1638daa@aplex01.dom1.jhuapl.edu>
References: <9f0460a88aab4e29bc0d12347b27613a@jpl.nasa.gov>, <2D9743FA-7D23-444F-8D8C-F7B04CDCC010@tzi.org> <10b6be3b53a1460d8b1c53b0ba14099f@dlr.de> <5e7ce4a88b6b4682a3d21f190299b33b@aplex01.dom1.jhuapl.edu> <71139622270d41f59772bb2e9afc70ba@CD1-4BDAG04-P04.cdmail.common.airbusds.corp>
In-Reply-To: <71139622270d41f59772bb2e9afc70ba@CD1-4BDAG04-P04.cdmail.common.airbusds.corp>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [128.244.198.168]
Content-Type: multipart/alternative; boundary="_000_1d02fc86f45141a98e6c8c6cd1638daaaplex01dom1jhuapledu_"
MIME-Version: 1.0
X-OrganizationHeadersPreserved: APLEX03.dom1.jhuapl.edu
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-29_10:2020-07-29, 2020-07-29 signatures=0
Archived-At: <https://mailarchive.ietf.org/arch/msg/dtn/tcaXKWzAv4YmXeo_tkyHnXeSJSk>
Subject: Re: [dtn] BPbis - time units
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: Wed, 29 Jul 2020 16:14:35 -0000

Rick,

  BPbis states that the primary block shall be immutable, and then provides a definition of immutability (from section 4.2.2):

The primary block of each bundle SHALL be immutable.  The values of
   all fields in the primary block must remain unchanged from the time
   the block is created to the time it is delivered.

If we allow flexible time representation, an implementation could say "I, and all downstream from me, prefer milliseconds" and then recode time values in primary blocks from seconds to milliseconds in a well-intentioned attempt to speedup some processing thinking they met the standard of immutability presented in section 4.2.2 because the semantic time value was unchanged.

The text should probably say "the encoded values of all fields in the primary block must remain unchanged...". Hopefully that is a small and not controversial clarification.

To your point - that may be obvious. But we have seen a similar issue with BPAs recoding fixed-width representations to compact representations in the past...

-Ed



Edward J. Birrane, III, Ph.D.
Embedded Applications Group Supervisor
Principal Staff, Space Exploration Sector
Johns Hopkins Applied Physics Laboratory
(W) 443-778-7423<tel:(443)%20778-7423> / (F) 443-228-3839<tel:(443)%20228-3839>

From: Taylor, Rick <rick.taylor@airbus.com>
Sent: Wednesday, July 29, 2020 11:38 AM
To: Birrane, Edward J. <Edward.Birrane@jhuapl.edu>; Jeremy.Mayer@dlr.de; cabo@tzi.org; scott.c.burleigh=40jpl.nasa.gov@dmarc.ietf.org
Cc: dtn@ietf.org
Subject: [EXT] RE: [dtn] BPbis - time units

APL external email warning: Verify sender rick.taylor@airbus.com<mailto:rick.taylor@airbus.com> before clicking links or attachments



Airbus Amber
Ed,

You make a valid point re canonicalization and recoding, but given the stamps are in the immutable primary block, after the source has built the block, no matter the timeval encoding, they can't be changed, so I see this a non-issue - which normally means I've missed something... can you elaborate?

Cheers,

Rick

Rick Taylor
Product Design Authority, Mobile IP Node/PlexOS
Principal Engineer (eXpert), Mobile Communications
Airbus Defence and Space
Celtic Springs
Coedkernew
Newport
NP10 8FZ

Phone: +44 (0) 1633 71 5637
rick.taylor@airbus.com<mailto:rick.taylor@airbus.com>
www.airbusdefenceandspace.com<http://www.airbusdefenceandspace.com/>

From: dtn [mailto:dtn-bounces@ietf.org] On Behalf Of Birrane, Edward J.
Sent: Wednesday, July 29, 2020 3:21 PM
To: Jeremy.Mayer@dlr.de<mailto:Jeremy.Mayer@dlr.de>; cabo@tzi.org<mailto:cabo@tzi.org>; scott.c.burleigh=40jpl.nasa.gov@dmarc.ietf.org<mailto:scott.c.burleigh=40jpl.nasa.gov@dmarc.ietf.org>
Cc: dtn@ietf.org<mailto:dtn@ietf.org>
Subject: Re: [dtn] BPbis - time units

The primary block must remain immutable otherwise integrity mechanisms over the primary block will fail.

Specifically, if a source node creates a tag 1, some other waypoint node cannot recode it as a tag 1001 even if it represents the same data value (and vice versa).

If the WG allows flexibility for tag 1 vs tag 1001, text must be added which either (a) states that the representation (once encoded) never be changed or (b) defines an unambiguous canonicalization of the time value.

-Ed

Edward J. Birrane, III, Ph.D.
Embedded Applications Group Supervisor
Principal Staff, Space Exploration Sector
Johns Hopkins Applied Physics Laboratory
(W) 443-778-7423<tel:(443)%20778-7423> / (F) 443-228-3839<tel:(443)%20228-3839>

From: dtn <dtn-bounces@ietf.org<mailto:dtn-bounces@ietf.org>> On Behalf Of Jeremy.Mayer@dlr.de<mailto:Jeremy.Mayer@dlr.de>
Sent: Wednesday, July 29, 2020 3:11 AM
To: cabo@tzi.org<mailto:cabo@tzi.org>; scott.c.burleigh=40jpl.nasa.gov@dmarc.ietf.org<mailto:scott.c.burleigh=40jpl.nasa.gov@dmarc.ietf.org>
Cc: dtn@ietf.org<mailto:dtn@ietf.org>
Subject: [EXT] Re: [dtn] BPbis - time units

APL external email warning: Verify sender dtn-bounces@ietf.org<mailto:dtn-bounces@ietf.org> before clicking links or attachments




Hi,

I think we need to allow some flexibility with regards to the expression of time units. For many applications, it should suffice to keep everything in milliseconds (keeping in mind that millisecond-based times also necessitate internal timekeeping capability with a similar accuracy. However, in long-delay/bandwidth-constrained applications, there may not be any real requirement to have millisecond-accuracy time fields/time-keeping.



Therefore, I propose (apologies in advance) that we use both: tag 1 can be a standard unix-based timestamp (in seconds), used for long-delay applications. Otherwise, times can be represented with tag 1001, key (-3,-18) as reference in Carstens CBOR timekeeping draft (https://www.ietf.org/id/draft-bormann-cbor-time-tag-03.txt) for additional flexibility in unit expression, with the slight overhead that may arise.



Thanks,

Jeremy

________________________________
From: dtn <dtn-bounces@ietf.org<mailto:dtn-bounces@ietf.org>> on behalf of Carsten Bormann <cabo@tzi.org<mailto:cabo@tzi.org>>
Sent: Wednesday, July 29, 2020 7:47:45 AM
To: Burleigh, Scott C (US 312B)
Cc: dtn@ietf.org<mailto:dtn@ietf.org>
Subject: Re: [dtn] BPbis - time units

On 2020-07-29, at 03:09, 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:
>
> Hi.  At IETF-108 there was discussion on whether BP time fields (e.g., bundle creation time, lifetime, bundle age) should be denominated in seconds, milliseconds, microseconds, or nanoseconds.  Version 26 of the BPbis I-D (now posted) revises all time field definitions to be denominated in milliseconds.

Note that CBOR has a choice of different time formats (tag 1, tag 1001), so if you want to provide a choice, you could allow the use of these in addition to assigning a default meaning to naked integers.  (These have a different epoch, but that is just a matter of subtracting a constant value; the representation needs one bit more which is making a difference between 2106 and 2030 next for whole seconds.)  Until 2106, tag 1 is shorter (6 bytes in total) than a naked integer in milliseconds (9 bytes).

(I don't have an opinion on the actual question, but here is some data for that.)

Grüße, Carsten

_______________________________________________
dtn mailing list
dtn@ietf.org<mailto:dtn@ietf.org>
https://www.ietf.org/mailman/listinfo/dtn



THIS DOCUMENT IS NOT SUBJECT TO EXPORT CONTROL.


This email and its attachments may contain confidential and/or privileged information.  If you have received them in error you must not use, copy or disclose their content to any person.  Please notify the sender immediately and then delete this email from your system.  This e-mail has been scanned for viruses, but it is the responsibility of the recipient to conduct their own security measures. Airbus Operations Limited is not liable for any loss or damage arising from the receipt or use of this e-mail.

Airbus Operations Limited, a company registered in England and Wales, registration number, 3468788.  Registered office:  Pegasus House, Aerospace Avenue, Filton, Bristol, BS34 7PA, UK.