Re: [dtn] IPND draft 03 remarks

Sebastian Schildt <schildt@ibr.cs.tu-bs.de> Sun, 24 January 2016 09:24 UTC

Return-Path: <schildt@ibr.cs.tu-bs.de>
X-Original-To: dtn@ietfa.amsl.com
Delivered-To: dtn@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 756401ACEE8 for <dtn@ietfa.amsl.com>; Sun, 24 Jan 2016 01:24:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.953
X-Spam-Level:
X-Spam-Status: No, score=-3.953 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 8XIyvnqByplg for <dtn@ietfa.amsl.com>; Sun, 24 Jan 2016 01:24:20 -0800 (PST)
Received: from mail.ibr.cs.tu-bs.de (mail.ibr.cs.tu-bs.de [134.169.34.52]) (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 D2D141ACEA1 for <dtn@ietf.org>; Sun, 24 Jan 2016 01:24:19 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.ibr.cs.tu-bs.de (Postfix) with ESMTP id ECAAF187CA6; Sun, 24 Jan 2016 10:24:16 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ibr.cs.tu-bs.de; h=x-mailer:references:message-id:date:date:in-reply-to:from :from:subject:subject:mime-version:content-type:content-type :received:received; s=key1; t=1453627454; x=1455441855; bh=9kQsv CKMsJ1ot6squMVB9DTtAb3Rt5tgcdsID4XAOAc=; b=l5YkIsne+2GEXo0K1HXQ1 D+ROyjdWnD5XGG96wKdPY8JOFvfn5kBXQNpdTBoe25S1y/zzv1KY8NUOfy4bmP8/ GJR9OCAwUmLePZTed1NQPiUllXuvXgCohxUs5M2ltB+b1ssgODzg+peXbwB8PJwa m2G5hzhyrbZk286cywqUw8=
X-Virus-Scanned: Debian amavisd-new at ibr.cs.tu-bs.de
Received: from mail.ibr.cs.tu-bs.de ([127.0.0.1]) by localhost (mail.ibr.cs.tu-bs.de [127.0.0.1]) (amavisd-new, port 10026) with LMTP id 7IWNCEe9NsKo; Sun, 24 Jan 2016 10:24:14 +0100 (CET)
Received: from [IPv6:2001:6f8:900:8d3d:44f4:2ebf:d34e:6263] (unknown [IPv6:2001:6f8:900:8d3d:44f4:2ebf:d34e:6263]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.ibr.cs.tu-bs.de (Postfix) with ESMTPSA id 5849118696A; Sun, 24 Jan 2016 10:24:11 +0100 (CET)
Content-Type: multipart/signed; boundary="Apple-Mail=_29F67EBD-B41E-4340-B7B3-3360082D66EE"; protocol="application/pkcs7-signature"; micalg="sha1"
Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\))
From: Sebastian Schildt <schildt@ibr.cs.tu-bs.de>
In-Reply-To: <FF1750B0EDD9434A98CD71DA0C0357260132FD727F@E10-MBX3-DR.personale.dir.unibo.it>
Date: Sun, 24 Jan 2016 10:24:07 +0100
Message-Id: <C763BB7B-A2F3-45F2-8C4F-D4DF34757177@ibr.cs.tu-bs.de>
References: <A97A415F-05E9-4AE5-A61A-1EEC389EACD3@ibr.cs.tu-bs.de> <FF1750B0EDD9434A98CD71DA0C0357260132FD727F@E10-MBX3-DR.personale.dir.unibo.it>
To: Carlo Caini <carlo.caini@unibo.it>
X-Mailer: Apple Mail (2.3112)
Archived-At: <http://mailarchive.ietf.org/arch/msg/dtn/h5J0FrA-1seeUE_t75tBAqjBxcE>
Cc: "dtn@ietf.org" <dtn@ietf.org>
Subject: Re: [dtn] IPND draft 03 remarks
X-BeenThere: dtn@ietf.org
X-Mailman-Version: 2.1.15
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: Sun, 24 Jan 2016 09:24:22 -0000

Hello Carlo,

> On 23 Jan 2016, at 23:22, Carlo Caini <carlo.caini@unibo.it> wrote:

> Now the situation is moving, as you said, so now this is not a problem. Tomorrow, in case of any new version of BP (in iETF)  we should change also the version of ipnd (maybe still in IRTF?). Why not to decouple them, by introducing a field devoted to BP version separate by that of ipnd? 
> 

Yes, I think you are right. Instead of adding a separate field, the existing 8bit field can be used for it (because overhead is important for beacons): If the first 4 bits define the IPND version and an „offset“ for the BP version, the second 4bit can define BP version. This will then also work in the unlikely case we run out of space when using only 4 bit do identify BP version:

e.g in IPND:
0x47    -> IPND v4, BP v7
in the (far) future possibly
0x62   -> IPND v6 defines BP version offset is 32, so 2 identifies BP protocol version 34 



Sebastian






> 
> 
> ________________________________________
> Da: dtn [dtn-bounces@ietf.org] per conto di Sebastian Schildt [schildt@ibr.cs.tu-bs.de]
> Inviato: sabato 23 gennaio 2016 22.38
> A: dtn@ietf.org
> Oggetto: [dtn] IPND draft 03 remarks
> 
> Hello,
> 
> I am not sure if this is the right group to discuss IPND (dtnrg seems to have vanished completely? At least the webpage), but since it has been mentioned in the last interim I will post it here.
> 
> I just had a quick look, and here are some initial remarks
> 
>> 2. Protocol Description
>> Nodes use DTN IPND beacons, small UDP messages in the IP underlay, to advertise presence
> 
> Since the IPND format is quite generic, I would not limit it to UDP. In fact, we have used earlier versions of the draft on 802.15.4.  While not all possibilities can and should be spelled out in the IPND draft, maybe at least the introduction should be more open.
> When really defining details how to use IPND on different convergence layers (such as specific UDP Port, or how the represent CL addresses in Beacons) the question is, would we consider this extensions of this Draft, or addon-Drafts "Using IPND over <magic transport>"?
> 
> 
>> 2.6.  Beacon Message Format
>> o  Version: An 8-bit field indicating the version of IPND that
>>    constructed this beacon.  The present document describes version
>>    0x04 of IPND.  This version field is incremented for IPND if
>>    either the IPND protocol is modified or the Bundle Protocol
>>    version is incremented.
> Good idea to use this to determine the BP version directly in the beacon. However, this does only make sense if the draft clearly states WHICH BP version corresponds to IPND 0x04 :) (since this is still in draft state, no problem if rfc5050bis is also a moving target, we can always change the IPND draft to follow draft-ietf-dtn-bpbis)
> 
> 
>> 2.6.4.  Neighborhood Bloom Filter
> I am not sure I get it completely, maybe should be rewritten for clarity. But I am quite sure there is not enough information to really get the correct parameters for the BF. The data structure in the beacon should explicitly give the number of hash functions and the length of the BF (that is a given due to the TLV encoding). Then the IPND document should describe an unambiguous way, how to generate k hash functions. I do not have a detailed plan for this, but just from the top of my head: Something like SHA-1 (ubiquitous hardware acceleration, good distribution, cryptographic security irrelevant) salted differently and take the first bits. (Or some slicing, however slicing is dangerous, becasue then you cannot support arbitrarily long BFs). If we want this to work an small microcontrollers, probably a simpler hash than SHA1 would be needed, however than we really need to choose well, to make sure it is robust against collusion. Many "simple, just 10 lines of C"-kind of hashes make c
> ompromises. By choosing an established cryptographic hash,  we can be sure it is a very solid general hashing function (even MD5 would be perfectly fine).
> 
> 
> I am not sure how many people are actively working on the draft (but I suggest they are all reading this list :) ) . If it helps I can also (with a couple of days delay) propose some text addressing the issues mentioned.
> 
> 
> Sebastian
> 
> _______________________________________________
> dtn mailing list
> dtn@ietf.org
> https://www.ietf.org/mailman/listinfo/dtn