Re: [dtn] BPbis - time units

Lloyd Wood <lloyd.wood@yahoo.co.uk> Wed, 05 August 2020 02:39 UTC

Return-Path: <lloyd.wood@yahoo.co.uk>
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 1747E3A10F0 for <dtn@ietfa.amsl.com>; Tue, 4 Aug 2020 19:39:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.095
X-Spam-Level:
X-Spam-Status: No, score=-2.095 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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=yahoo.co.uk
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 Uj107q_WWH4x for <dtn@ietfa.amsl.com>; Tue, 4 Aug 2020 19:39:34 -0700 (PDT)
Received: from sonic310-12.consmr.mail.ir2.yahoo.com (sonic310-12.consmr.mail.ir2.yahoo.com [77.238.177.33]) (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 D13783A1086 for <dtn@ietf.org>; Tue, 4 Aug 2020 19:39:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1596595172; bh=RXGu8mNHQsQEEKF6pKLq4JlcvCBvVluyVkYPj3sBY4s=;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OetJa9NdnsQ.jyrUqY_qTnJYAHZiURMzz9lleSFjDun3jL3wpOb_b44lnKyMb3IXVMz8B FzHpgEKcF5kY2I3WzMvNCVc5arP2.nr7aRb8kBH59Gr2j1A3z5t2oKuGVj9JxhyoPNGRtDnU3NdE I5vxErL9SKSE6_KWNm4MmZPNExH6X8V.iW1EQ7.MK4n8f5aJE_A.l2bxKRVrUqX79QEQw.q0aovl nkNz6SZREYH15P6BtXGtHNY.1_YjGQVZZioS36OA67EHc_iXg71hFyt1u9NWZgrLr20ROmlCo1A. VbvI52isvZNrEnQ.InU3RhED41efg2_bd3y3JM7KMzD0EAPX69UyxD7gt1TntVmISb3YCCGe1Ciz fj.huzFOKdID76vARd6ozMYjZbXX96lF22g2qL8zDO0hhG9HQdbmfAfyiHD2ZYJsAr8C5guqyVDK 5ZV.iv30wVVToPp58p6f4faU5q8TNgBBEDUv1gr0jOhETAnMWYC5vyo9QctCzi5IJSU2UObl9WUu HtV9KtK4RWAywyL7nghKYUYMIs2FQMloYAI8owah3uy_Vhl5fIs.HzqyUEWx_bIig5CW71AaY_wA v1OmjpYUHMCSKJPmVXiJ6hVdViyJYWlMDhG5GbcVS6p.inX3mYPOGsdrU67eJ8GrVozmaSBqtYQ- -
Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ir2.yahoo.com with HTTP; Wed, 5 Aug 2020 02:39:32 +0000
Date: Wed, 05 Aug 2020 02:39:26 +0000
From: Lloyd Wood <lloyd.wood@yahoo.co.uk>
Reply-To: "lloyd.wood@yahoo.co.uk" <lloyd.wood@yahoo.co.uk>
To: "dtn@ietf.org" <dtn@ietf.org>, "Wiethuechter, Adam" <adam.wiethuechter@axenterprize.com>
Message-ID: <440514768.28199.1596595166960@mail.yahoo.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_28198_1557294211.1596595166958"
References: <440514768.28199.1596595166960.ref@mail.yahoo.com>
X-Mailer: WebService/1.1.16436 YahooMailIosMobile Yahoo%20Mail/50518 CFNetwork/1128.0.1 Darwin/19.6.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/dtn/QqUyFJzh0nLod-WoJKUZrgEK_1k>
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, 05 Aug 2020 02:39:36 -0000

You have to distinguish between immutable immutability and
mutable immutability. In the first a field MUST NOT(SHOULD NOT?) be changed, while in the second it MAY,but SHOULD NOT, be changed

The draft doesn't do a good job of that; at the moment
the concepts are undefined, so they’re uncanonically canonical

if you remember immutability means SHOULD NOT be changed,you’re good. That’s a very clear semantic.



Lloyd Wood lloyd.wood@yahoo.co.uk http://about.me/lloydwood






On Tuesday, 4 August 2020, 05:45:37 GMT+10, Wiethuechter, Adam <adam.wiethuechter@axenterprize.com> wrote: 





I've been stewing on this for the past few days and rereading sections 4.1.6 and 4.2.2 that pertain to the issue. I have been approaching this as someone who is attempting to implement the draft without extensive prior knowledge (which I would fall into that category). So if I am missing something obvious sorry.

I agree the core issue here is semantic vs syntactic immutability and even my initial read of the document I scratched my head a bit of which one was being discussed.

To me, immutability is that once it's set it never changes, both in semantic form and syntactic. So this means once the primary block is encoded to be in seconds, it stays that way and no downstream node can change it to say milliseconds as an optimization (I would argue that increasing precision however is not an issue, but the other way is). So I think this falls into what Ran is getting at with the integrity/authentication failure. I will also agree to say we need to clearly define the semantics before proceeding. Also the term "harmlessly recode" is something I would be very cautious with and it makes me nervous.

The precision of milliseconds I think is a good one. It's fine-grained enough for the disruption scenarios (as anything in the microsecond range I would start to wonder why DTN is being used in the first place) and corse enough that the value isn't out of control in delay scenarios.



On Wed, Jul 29, 2020 at 2:34 PM R. Atkinson <rja.lists@gmail.com> wrote:
> 
> 
>> On Jul 29, 2020, at 12:14, Birrane, Edward J. <Edward.Birrane@jhuapl.edu> wrote:
>> 
>> 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.
> 
> All,
> 
> If “encoded values” above means in the on-the-wire bit stream, I am fine with that.  
> 
> I really think that both semantics of the bits and the on-the-wire format of that time need to be (a) clearly defined and (b) the same end-to-end.  
> 
> Put another way:
> 
> If the source  is using seconds and it is converted during transit to the destination into milliseconds, then I would expect an integrity/authentication failure at the recipient.
> 
> Yours,
> 
> Ran
> 
> _______________________________________________
> dtn mailing list
> dtn@ietf.org
> https://www.ietf.org/mailman/listinfo/dtn
> 


-- 
73's,
Adam T. Wiethuechter
AX Enterprize, LLC

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