Re: [dtn] BPbis - time units

"Wiethuechter, Adam" <adam.wiethuechter@axenterprize.com> Mon, 03 August 2020 19:45 UTC

Return-Path: <adam.wiethuechter@axenterprize.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 A54573A10C0 for <dtn@ietfa.amsl.com>; Mon, 3 Aug 2020 12:45:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.198
X-Spam-Level:
X-Spam-Status: No, score=-0.198 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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 (1024-bit key) header.d=axenterprize.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 NhmX_ZEnr-dy for <dtn@ietfa.amsl.com>; Mon, 3 Aug 2020 12:45:26 -0700 (PDT)
Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com [IPv6:2607:f8b0:4864:20::e2c]) (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 9A3613A10D0 for <dtn@ietf.org>; Mon, 3 Aug 2020 12:45:26 -0700 (PDT)
Received: by mail-vs1-xe2c.google.com with SMTP id o184so19867372vsc.0 for <dtn@ietf.org>; Mon, 03 Aug 2020 12:45:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axenterprize.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=YLib0pnG0L3yENGtKHmyzgvGvDPW05Sp1YvAE8Jp7IE=; b=qrvJGLuhgf5BSMEyG+GQ/SWkmXOGjcRaOSNKdzJgriZo3L35PyWJ4s+Wlt8ki8Vo34 4Wn+jJAF0dqNTZlLXV/vdT3t+Jvtsc/Ouva1I3BHzRJ1wx/SsYuvr0lzpNEtuOvHbhJK 8FhuDiJVgVtrAu49T7sYRqMyNzKQJzO1XA5Uo=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=YLib0pnG0L3yENGtKHmyzgvGvDPW05Sp1YvAE8Jp7IE=; b=DrKE2qky8YmewFja9Zutdvz51xN/EnQWzgIPPS+roD4biz0dyRj5k2139nSZrbAO6c PKHKHdMHir5/ALIQrhsSdE+LcrXK0TLD5ON1JPgGP0l0q4ZshKnQH820WObk5k/15cwx 23icUNF0QMvL6W9dgdNc+mi6i94UOBbVh3puiUFgufFiDEuveO5VuNSwzTOcnAGqayFb B87vOHoAOEcv+KEwmuLzEPX1Qq2CvLgJ/i/DtkKoIXZlMuf547YQ7PUxqLrfKHIkBK60 nt78ml2GK96EQzrPDYqzxUO4y7URq79pTSc2/GIVDTPeMFAujtZaoc6vRHsGNJmlwiY5 zPkQ==
X-Gm-Message-State: AOAM531yCcfepnflMLxRC/E/z4giKqpZvHXbZOGUs1Lg+YCiV/tgs45K OG0EGKV5qY/M6nYK9Il4Y3TxY8kGpeNY3PcW1rNClg5cJg==
X-Google-Smtp-Source: ABdhPJx6gY0dX3ygeKU53NvA+KfxnwFaG8uGy0Ddd6lmBW+duTi2CWfsTT9CDcalhSZpd6dgoTMY0PCcgjoQxhZ41L8=
X-Received: by 2002:a05:6102:2247:: with SMTP id e7mr12641901vsb.181.1596483925343; Mon, 03 Aug 2020 12:45:25 -0700 (PDT)
MIME-Version: 1.0
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> <1d02fc86f45141a98e6c8c6cd1638daa@aplex01.dom1.jhuapl.edu> <1368660F-AC62-49FF-800E-14EA40968B1B@gmail.com>
In-Reply-To: <1368660F-AC62-49FF-800E-14EA40968B1B@gmail.com>
From: "Wiethuechter, Adam" <adam.wiethuechter@axenterprize.com>
Date: Mon, 03 Aug 2020 15:45:14 -0400
Message-ID: <CA+r8TqXDs__J9CKMZ5m56TebUXsbftD1dorS-faL-Y=fYrKjGA@mail.gmail.com>
To: "dtn@ietf.org" <dtn@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000042999505abfe6106"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dtn/5oADgIQ0OQMh8Q_jbUp_04-QQNM>
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: Mon, 03 Aug 2020 19:45:29 -0000

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