[dtn] DTN BPv7 test bundles and CRCs

Brian Sipos <BSipos@rkf-eng.com> Fri, 22 March 2019 15:45 UTC

Return-Path: <BSipos@rkf-eng.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 DD5F313107E for <dtn@ietfa.amsl.com>; Fri, 22 Mar 2019 08:45:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rkfeng.onmicrosoft.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 pWMWQN_WVzA9 for <dtn@ietfa.amsl.com>; Fri, 22 Mar 2019 08:45:17 -0700 (PDT)
Received: from NAM05-CO1-obe.outbound.protection.outlook.com (mail-eopbgr720074.outbound.protection.outlook.com [40.107.72.74]) (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 79FBF131068 for <dtn@ietf.org>; Fri, 22 Mar 2019 08:45:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rkfeng.onmicrosoft.com; s=selector1-rkfeng-com0i; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vy+ODtqtYaTOrvwEUFTykAXnBzbUupki35W93wijGEE=; b=PAQGlS9a/lxdZFzAL2jQoR698tFrJ6rerx5j0WsTgZEf0b7izKM1+LMhbbClRZMOTCuRGprkSqzihqc9AqOYjnXngZ//xtmKdhvDd6vgU9/PviQ4b1nQmgZe4rlf8CCZ3sT3HbTyXet2CUbdifsyYbev+giXylTGvu07+Agpk6o=
Received: from CY4PR1301MB2039.namprd13.prod.outlook.com (10.171.240.14) by CY4PR1301MB1894.namprd13.prod.outlook.com (10.171.223.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.11; Fri, 22 Mar 2019 15:45:14 +0000
Received: from CY4PR1301MB2039.namprd13.prod.outlook.com ([fe80::8d3e:bd54:ba51:7933]) by CY4PR1301MB2039.namprd13.prod.outlook.com ([fe80::8d3e:bd54:ba51:7933%5]) with mapi id 15.20.1709.015; Fri, 22 Mar 2019 15:45:14 +0000
From: Brian Sipos <BSipos@rkf-eng.com>
To: "dtn@ietf.org" <dtn@ietf.org>
Thread-Topic: DTN BPv7 test bundles and CRCs
Thread-Index: AQHU4MX70KrTQEdcJ06prCxjO0TiXQ==
Date: Fri, 22 Mar 2019 15:45:14 +0000
Message-ID: <CY4PR1301MB2039A571321298DB5E470C959F420@CY4PR1301MB2039.namprd13.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=BSipos@rkf-eng.com;
x-originating-ip: [38.100.63.114]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 9e738991-b36a-4a80-fa95-08d6aedd605f
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:CY4PR1301MB1894;
x-ms-traffictypediagnostic: CY4PR1301MB1894:
x-microsoft-antispam-prvs: <CY4PR1301MB18946CB9E0B345AE68DC48479F430@CY4PR1301MB1894.namprd13.prod.outlook.com>
x-forefront-prvs: 09840A4839
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(39830400003)(366004)(396003)(136003)(346002)(199004)(189003)(71200400001)(71190400001)(72206003)(99286004)(8936002)(97736004)(2351001)(106356001)(105586002)(2501003)(33656002)(68736007)(53936002)(25786009)(55016002)(19627405001)(66066001)(5660300002)(7696005)(2906002)(80792005)(54896002)(476003)(256004)(6436002)(486006)(508600001)(316002)(3846002)(6116002)(9686003)(1730700003)(105004)(186003)(6506007)(26005)(102836004)(6916009)(52536014)(74316002)(14454004)(86362001)(7736002)(81166006)(5640700003)(8676002)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR1301MB1894; H:CY4PR1301MB2039.namprd13.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: rkf-eng.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: E432UVFSmxzPP3+kKrnkt4evLn8faVSAMNv45p+NyUijRAqU6jpIWzFCZV9SyGJlT2N31pgGxQerDT38iTurS5ulHh03TMUGRZEB5FdIvRvA19Uxv7vUYGuNsxPl4kFVMI3RiafvP4DSKBLbs2oYbSy23HydRovj/VuOE9attxAtTKNCbUYHv49Z1e5c8q//mqIFePRuRdLhhScKnk9Rgrfc+z2HfBAhS0NdgN29l0XeP7zMaxZKkMFeNTbnH/DAbxe+UB0J9CcR6hlEIjXexraLyQlH1QCaUNR7rK9vhSe538zRkfQRLGuljSkoAio3Y1284RfN7dmbjU6xle1OWjYJSkN35QJS2Umu5u6iSS+0X1h1MsDDGG0wqOB31jcSQxCWB4fYXRzgeaulI4w9qlCPg/vRZ/UGZgYvFotj3zU=
Content-Type: multipart/alternative; boundary="_000_CY4PR1301MB2039A571321298DB5E470C959F420CY4PR1301MB2039_"
MIME-Version: 1.0
X-OriginatorOrg: rkf-eng.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 9e738991-b36a-4a80-fa95-08d6aedd605f
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Mar 2019 15:45:14.6061 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4ed8b15b-911f-42bc-8524-d89148858535
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1301MB1894
Archived-At: <https://mailarchive.ietf.org/arch/msg/dtn/ccsJe6uXxi6kEYY3QFZ3k-rXPFI>
Subject: [dtn] DTN BPv7 test bundles and CRCs
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: Fri, 22 Mar 2019 15:45:20 -0000

To anyone who has been prototyping Bundle Protocol version 7 (BPbis) agents,
I'm spending a little time on a Wireshark dissector to examine and troubleshoot bundles and the only trouble I've run into is in verifying the CRCs. The BPbis spec is not very helpful in determining exactly what CRC implementation to use only because the ITU specification itself doesn't provide CRC test vectors.

I'm doing prototyping in Python and dissecting in C language, so there is even a disparity between what CRC algorithms are available and how well they are documented. This seems like such an easy use/build decision to use COTS CRC function but I'm struggling to find implementations to match what BPbis requires.

I think there would be a lot of value to have some test/representative bundles in an appendix which include blocks with different CRC types and different block sizes. Some CRC implementations pad out octet-sequences to a multiple of the CRC size and some apparently do something else. The problem is in the CRC implementations not being very clear about their parameters but having a few encoded test bundles to work with would go a long way to ensuring compatibility of implementations.

Thanks for any advice,
Brian S.