Re: [dtn] "Block data length" field in BPbis

"Burleigh, Scott C (312B)" <scott.c.burleigh@jpl.nasa.gov> Wed, 30 May 2018 18:54 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 7FCA812EA52 for <dtn@ietfa.amsl.com>; Wed, 30 May 2018 11:54:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham 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 CShHewQc28VT for <dtn@ietfa.amsl.com>; Wed, 30 May 2018 11:54:57 -0700 (PDT)
Received: from mail.jpl.nasa.gov (mailhost.jpl.nasa.gov [128.149.139.109]) (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 A669D12E8FA for <dtn@ietf.org>; Wed, 30 May 2018 11:54:57 -0700 (PDT)
Received: from mail.jpl.nasa.gov (ap-embx16-sp20.jpl.nasa.gov [128.149.137.84]) by smtp.jpl.nasa.gov (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id w4UIsuUe010409 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128 bits) verified OK); Wed, 30 May 2018 11:54:56 -0700
Received: from ap-embx16-sp10.RES.AD.JPL (2002:8095:8953::8095:8953) by ap-embx16-sp20.RES.AD.JPL (2002:8095:8954::8095:8954) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1415.2; Wed, 30 May 2018 11:54:20 -0700
Received: from ap-embx16-sp10.RES.AD.JPL ([fe80::156f:dcf8:9cdf:e7ec]) by ap-embx16-sp10.RES.AD.JPL ([fe80::156f:dcf8:9cdf:e7ec%21]) with mapi id 15.01.1415.002; Wed, 30 May 2018 11:54:20 -0700
From: "Burleigh, Scott C (312B)" <scott.c.burleigh@jpl.nasa.gov>
To: Felix Walter <felix.walter@tu-dresden.de>, "dtn@ietf.org" <dtn@ietf.org>
Thread-Topic: [dtn] "Block data length" field in BPbis
Thread-Index: AQHTwsMggreYcWUixUSHoQsop2KHaaRJBYJA
Date: Wed, 30 May 2018 18:54:20 +0000
Message-ID: <9fea9811e748475c90f53130901dc383@jpl.nasa.gov>
References: <ce643b57-1765-c189-0c2d-5fbe5f573548@tu-dresden.de>
In-Reply-To: <ce643b57-1765-c189-0c2d-5fbe5f573548@tu-dresden.de>
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: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Source-Sender: scott.c.burleigh@jpl.nasa.gov
X-AUTH: Authorized
Archived-At: <https://mailarchive.ietf.org/arch/msg/dtn/2xUFE7b7YUE02Bj39YKVHv8sE7M>
Subject: Re: [dtn] "Block data length" field in BPbis
X-BeenThere: dtn@ietf.org
X-Mailman-Version: 2.1.22
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, 30 May 2018 18:55:00 -0000

Felix, sorry, I am finally replying to this email: you are right that CBOR representation would provide all of the individual lengths of the block-type-specific data fields that are summed in the block data length field, and as such the block data length field is redundant.  My first impulse on re-reading your email was simply to revise the definition of "Block data length" as you suggest.  But on reflection I think it actually makes more sense to remove block data length from the specification and instead specifically require that all block-type-specific data fields appear in CBOR representation.

I want to post version 11 of this specification later today, before version 10 expires, and at this point I plan to go ahead with removal of the block data length field.  If anyone has a technical argument to make in defense of retaining block data length in bpbis, please speak up this afternoon?

Scott

-----Original Message-----
From: dtn <dtn-bounces@ietf.org> On Behalf Of Felix Walter
Sent: Friday, March 23, 2018 9:22 AM
To: dtn@ietf.org
Subject: [dtn] "Block data length" field in BPbis

Hi,

We just had a short talk with Scott, Ed, and Rick about the "Block data length" [1] field of the canonical block in BPbis that I would like to forward to the list. As far as I understand it, this value is the count of (serialized) bytes still belonging to the block, but following the length field.

Because CBOR is used for the block-type-specific data, the length field by itself is redundant. For example, in the payload block, it will always be followed by a "CBOR byte string" representing the payload data. (This contains a length as well.) It needs to be considered in implementations that all these length fields are variable-length themselves - however, this turned out to be no big issue. I also see the point of having the "Block data length"
available to the parser, to be able to skip over the whole block data of complex extension blocks without even parsing them.

Are there any further reasons for having the "Block data length"
available which I have missed? Or does anyone have a strong opinion on whether this should be removed or kept?

By the way, the language concerning the "Block data length" should probably be modified slightly as it refers to "[...] the aggregate length of all remaining fields of the block, i.e., the block-type-specific data fields.", though, this may (now) be followed by the CRC checksum.

Felix

[1] https://tools.ietf.org/html/draft-ietf-dtn-bpbis-10#section-4.2.3

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