Re: [dtn] BPbis - time units

"Burleigh, Scott C (US 312B)" <scott.c.burleigh@jpl.nasa.gov> Wed, 29 July 2020 16:13 UTC

Return-Path: <scott.c.burleigh@jpl.nasa.gov>
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 116E33A0DF1 for <dtn@ietfa.amsl.com>; Wed, 29 Jul 2020 09:13:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_GOV_DKIM_AU=-0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=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=jpl.nasa.gov
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 pWSIfH0qlOC8 for <dtn@ietfa.amsl.com>; Wed, 29 Jul 2020 09:13:43 -0700 (PDT)
Received: from ppa02.jpl.nasa.gov (ppa02.jpl.nasa.gov [128.149.137.113]) (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 BCCB53A0C41 for <dtn@ietf.org>; Wed, 29 Jul 2020 09:13:33 -0700 (PDT)
Received: from pps.filterd (ppa02.jpl.nasa.gov [127.0.0.1]) by ppa02.jpl.nasa.gov (8.16.0.27/8.16.0.27) with SMTP id 06TGCFWT039380; Wed, 29 Jul 2020 09:13:26 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpl.nasa.gov; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=InSight1906; bh=+4lA3MWzYzMc57kLzKhcAmxbMKgHoonpPl+mrv52RgA=; b=hGXWoGJwzggjpzwFAuuYcaHmR2saoSqNizJvuSwOMRJwgAlxWQGoBkozNCFM/VqnTp0W L5I6LyV7c8JcOe/gGshs6DVWAA/SHNmLElU7eQLL4K07qw7o0ejDD5RuZzZjfWtZdXnV dz8n2/zrWSYZoJUdRy1FVU5Z8Qh3vOiEcsDDp3/2dcVlm3QE4C3LoCEN/B0wYV9YTetf MUjhshdkMlYntMf9whUsgkJaWcONbHiXjD0AqvJz4TJ3lZVuhp8dnhzC9I2bRvXqaJGU TAQo8lJrr/GfpX3zfmFllABcpF7d9eAVJFyXzu6dewpih8KgpuK6EB+d39fgtvHiB1OL PA==
Received: from mail.jpl.nasa.gov (altphysenclup01.jpl.nasa.gov [128.149.137.52]) by ppa02.jpl.nasa.gov with ESMTP id 32jy97rav1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Jul 2020 09:13:23 -0700
Received: from ap-embx16-sp60.RES.AD.JPL (ap-embx16-sp60.jpl.nasa.gov [128.149.137.141]) by smtp.jpl.nasa.gov (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id 06TGDMuG012312 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128 bits) verified FAIL); Wed, 29 Jul 2020 09:13:22 -0700
Received: from ap-embx16-sp30.RES.AD.JPL (2002:8095:8955::8095:8955) by ap-embx16-sp60.RES.AD.JPL (2002:8095:898d::8095:898d) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 29 Jul 2020 09:13:21 -0700
Received: from ap-embx16-sp30.RES.AD.JPL ([fe80::ec3d:4aec:4990:1f68]) by ap-embx16-sp30.RES.AD.JPL ([fe80::ec3d:4aec:4990:1f68%13]) with mapi id 15.01.1979.003; Wed, 29 Jul 2020 09:13:24 -0700
From: "Burleigh, Scott C (US 312B)" <scott.c.burleigh@jpl.nasa.gov>
To: "Taylor, Rick" <rick.taylor@airbus.com>, "Birrane, Edward J." <Edward.Birrane@jhuapl.edu>, "Jeremy.Mayer@dlr.de" <Jeremy.Mayer@dlr.de>, "cabo@tzi.org" <cabo@tzi.org>
CC: "dtn@ietf.org" <dtn@ietf.org>
Thread-Topic: [dtn] BPbis - time units
Thread-Index: AQHWZXd8X9drw0pyP0GzGaccXC3DnakfEVqAgAAVqwD//4sG4A==
Date: Wed, 29 Jul 2020 16:13:24 +0000
Message-ID: <b24a77aa738d438c9e2916af823b397b@jpl.nasa.gov>
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-originating-ip: [207.151.104.72]
Content-Type: multipart/alternative; boundary="_000_b24a77aa738d438c9e2916af823b397bjplnasagov_"
MIME-Version: 1.0
X-Source-IP: ap-embx16-sp60.jpl.nasa.gov [128.149.137.141]
X-Source-Sender: scott.c.burleigh@jpl.nasa.gov
X-AUTH: Authorized
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
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2007290109
Archived-At: <https://mailarchive.ietf.org/arch/msg/dtn/0f5S8hPd0uFBP0laru3SHKoDLbk>
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:13:50 -0000

I think this brings up a general point on immutability that I may have missed in the BPsec draft, beyond the representation of time values.

We all agree that the primary block must be immutable end-to-end, because otherwise its authenticity can't be protected by a BIB.  But does "immutable" mean "none of the bits in the block must ever change" or does it mean "the canonicalized representation of the block must always be the same"?  I can imagine a free-spirited implementation of BP inserting some leading zeroes into the representation of, say, the source EID's scheme code number; has immutability been violated in that event?

I suspect it has not, which suggests that maybe we need some language in the BPbis specification to say so.  If so, maybe the canonicalization language in BPsec needs to migrate to BPbis?  And if that is the case, then perhaps that general language addresses Ed's point?

That said, I am not an enthusiastic fan of making time representation in BP more complicated.  But if people feel that sub-second precision in time representation is going to be important, then I think this would be a reasonable approach.

Whatever we do, I think it is important to use the same mechanism (DTN time) for representation of all time values in BP blocks.

Scott

From: Taylor, Rick <rick.taylor@airbus.com>
Sent: Wednesday, July 29, 2020 8:38 AM
To: Birrane, Edward J. <Edward.Birrane@jhuapl.edu>; Jeremy.Mayer@dlr.de; cabo@tzi.org; Burleigh, Scott C (US 312B) <scott.c.burleigh@jpl.nasa.gov>
Cc: dtn@ietf.org
Subject: [EXTERNAL] RE: [dtn] BPbis - time units

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.