Re: [dtn-users] regarding DTNSIM2

Aggelis Aggelis <aggelis@gmail.com> Wed, 27 May 2015 10:43 UTC

Return-Path: <aggelis@gmail.com>
X-Original-To: dtn-users@ietfa.amsl.com
Delivered-To: dtn-users@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1AF081ACCEE for <dtn-users@ietfa.amsl.com>; Wed, 27 May 2015 03:43:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.398
X-Spam-Level:
X-Spam-Status: No, score=-1.398 tagged_above=-999 required=5 tests=[AC_DIV_BONANZA=0.001, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, J_CHICKENPOX_82=0.6, SPF_PASS=-0.001] autolearn=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 FFZMIvhGdj_j for <dtn-users@ietfa.amsl.com>; Wed, 27 May 2015 03:43:22 -0700 (PDT)
Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (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 ED7931A911F for <dtn-users@irtf.org>; Wed, 27 May 2015 03:43:21 -0700 (PDT)
Received: by lbbuc2 with SMTP id uc2so4216212lbb.2 for <dtn-users@irtf.org>; Wed, 27 May 2015 03:43:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7e7x812O2mAGGjs8IsQl0CPzGeuZijH+KyjnDYsu2E0=; b=itHXhC6b7IGwMTMlwZcpUnN6AshhMvsE6WhtTAw1hHyC2nGmz8db0qu/u30+hzjQJf 1TY+b3jbBnFybci/CPtxQKPnltQfiicZc2m2umNQ5DNyX3xqdNRyjE7Fq0NmaKt6wypM OaEbPMbwArMw7HaepVY4sPEnGM/EHy8HGKWt/iHxewRI6dhjgqdJjPdFyqCUa2U2yoGt XaSbfwzpOuIYbKHgFxWiDR5z7oyfiG380VelIbM+7LXtyL76F8IBngnMQU2z+HZzvQKU BdSAv1g64wUO6bF4c6yimfE1V3crZ7+dZ6YD8Laa7OsAzMxLGOVvOPEOz/k818w1HWSA puXA==
MIME-Version: 1.0
X-Received: by 10.152.3.33 with SMTP id 1mr27297203laz.109.1432723400114; Wed, 27 May 2015 03:43:20 -0700 (PDT)
Received: by 10.25.73.70 with HTTP; Wed, 27 May 2015 03:43:19 -0700 (PDT)
In-Reply-To: <CAKUkA50Mjkwe33Cfvk4epZpQ1H6FbFrL+84fK8uRMQkCwxXEFA@mail.gmail.com>
References: <1514562455.1226992.1432619249040.JavaMail.zimbra@ece.iitkgp.ernet.in> <237830359.1227131.1432619530600.JavaMail.zimbra@ece.iitkgp.ernet.in> <CAKUkA53W65K6SP1T+mNwuWdK_JPdBAAZLfGF2kDnZ7iK=hLXMA@mail.gmail.com> <94CFB3711B4CAE4DBFC5BEB3374BF0C61E02DC@NDMSMBX404.ndc.nasa.gov> <CAKUkA50Mjkwe33Cfvk4epZpQ1H6FbFrL+84fK8uRMQkCwxXEFA@mail.gmail.com>
Date: Wed, 27 May 2015 13:43:19 +0300
Message-ID: <CAKUkA531PU-UOLpMY6kqq6+NqWYyHx+LFMTNJks8x1D4YJHGoA@mail.gmail.com>
From: Aggelis Aggelis <aggelis@gmail.com>
To: "Zoller, David A. (MSFC-EO50)[HOSC SERVICES CONTRACT]" <david.a.zoller@nasa.gov>
Content-Type: multipart/alternative; boundary="089e0141a0b6534b2605170de93a"
Archived-At: <http://mailarchive.ietf.org/arch/msg/dtn-users/d5CT0qNosZ6mePD-8XLTbTIjkZk>
Cc: "dtn-users@irtf.org" <dtn-users@irtf.org>
Subject: Re: [dtn-users] regarding DTNSIM2
X-BeenThere: dtn-users@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "The Delay-Tolerant Networking Research Group \(DTNRG\) - Users." <dtn-users.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/dtn-users>, <mailto:dtn-users-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/dtn-users/>
List-Post: <mailto:dtn-users@irtf.org>
List-Help: <mailto:dtn-users-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 27 May 2015 10:43:26 -0000

i also forgot to mention that i tried putting the EID in the ion
configuration
eg
# Alert ION which endpoints are on this host
a endpoint dtn://ionbox.dtn q  <------ THIS LINE WAS ADDED
a endpoint dtn://ionbox.dtn/sink q
a endpoint dtn://ionbox.dtn/ping q
a endpoint dtn://ionbox.dtn/a q

but it didnt work so i disabled in
ion-open-source/bp/library/ext/bpextensions.c

the phn member of the extensions[] array

---------------------PART FROM bpextensions.c-------

static ExtensionDef     extensionDefs[] =
                        {
#if 0 <-------------ADDED
                { "phn", EXTENSION_TYPE_PHN,
                                phn_offer,
                                {phn_processOnFwd,
                                phn_processOnAccept,
                                phn_processOnEnqueue,
                                phn_processOnDequeue,
                                0},
                                phn_release,
                                phn_copy,
                                0,
                                0,
                                phn_parse,
                                phn_check,
                                phn_record,
                                phn_clear
                },
#endif <---------------ADDED
#if 0
                { "snid", EXTENSION_TYPE_SNID,
                                snid_offer,
                                {snid_processOnFwd,
                                snid_processOnAccept,
                                snid_processOnEnqueue,

.
.
.
.
----------------------------------------------------------

then recompiled ion and now ion can send bundles to dtn router.
I will also try your solution and post the results.

Regards
   Aggelis Aggelis


On Wed, May 27, 2015 at 1:33 PM, Aggelis Aggelis <aggelis@gmail.com> wrote:

> Thank you very much David
> i also found another thread in ion-users list from Somreeta
>
> http://korgano.eecs.ohiou.edu/pipermail/ion-users/2014-October/000398.html
>
> here is a quote from the above thread.
>
> "It looks like the DTN2 node is unable to parse the Previous Hop extension block inserted by ION, because it can't parse the dtn-scheme node ID for that node (apparently 'dtn://somreetadtn.dtn'); it then apparently closes the connection, which causes ION to fail on reading from the DTN2 node.
> ION automatically computes an administrative EID for the dtn scheme based on the hostname, which in this case seems to be somreetadtn, and that's the EID that it uses in the Previous Hop block.  If the structure of that EID is incorrect then we should fix it in ION, but it looks compliant to me.  Matthew's suggestion to explicitly add that endpoint in the ION config is a good one.
> If worse comes to worst, you can always just disable the Previous Hop extension block at the ION end; all you do is '#ifdef 0' the phn member of the extensions[] array in bp/ext/bpextensions.c and rebuild.
> Scott"
>
> Regards
>
>    Aggelis Aggelis
>
>
>
> On Tue, May 26, 2015 at 8:43 PM, Zoller, David A. (MSFC-EO50)[HOSC
> SERVICES CONTRACT] <david.a.zoller@nasa.gov> wrote:
>
>>  Hi Somreeta and Aggelis,
>>
>> In  <dtn2>/servlib/bundling/BundleProtocol.cc, you can comment out line
>> 100:
>>
>>     //BundleProtocl::register_processor(new PreviousHopBlockProcessor());
>>
>>
>>
>> This will disable processing the Previous Hop Insertion Block so that you
>> will be back in business. Neither of those implementations conform to the
>> specification and they are not 100% compatible with each other – one
>> includes a trailing null character after an EID string and the other does
>> not. The specification says that the EID should be broken into a
>> null-terminated Scheme name and a null-terminated SSP similar to the
>> Primary Header dictionary. I believe ION 3.3 has been updated to the
>> specification format which will be more incompatible with the current
>> DTN2.9 implementation.
>>
>> Regards,
>>
>> DZ
>>
>>
>>
>> *From:* dtn-users [mailto:dtn-users-bounces@irtf.org] *On Behalf Of *Aggelis
>> Aggelis
>> *Sent:* Tuesday, May 26, 2015 2:35 AM
>> *To:* Somreeta Pramanik
>> *Cc:* dtn-users@irtf.org
>> *Subject:* Re: [dtn-users] regarding DTNSIM2
>>
>>
>>
>> hello somreeta
>>
>> This reply is not related to your question but to a previous post that
>> you asked n this list related to dtn-ion interoperability:
>>
>>
>> in a post that you send to dtn-users about interoperability isues between
>> ion and dtn2
>>
>> you said that you had a problem where
>>
>> somreeta dtn% [1411747528.640888 /dtn/bundle/protocol error] error
>> parsing previous hop eid 'dtn://somreetadtn.dtn
>>
>> [1411747528.640911 /dtn/bundle/protocol error] consume: protocol error
>> handling block 0x5
>>
>> [1411747528.640922 /dtn/cl/tcp/conn/0x7f7268000940 error] protocol error
>> parsing bundle data segment
>>
>> and at the reply from  Yang, Yueli
>>
>> it had attached two configuration files where they tested dtn 2.9.0 and
>> ion 3.21
>>
>> with success.
>> ----------------
>>
>> Hi Somreeta:
>>
>>
>>
>> We recently successfully validated ION-DTN interoperability with the
>> attached configuration files.
>>
>>
>>
>> We have two hosts, both running ubuntu 14.04:
>>
>> “tango” running ION-3.2.1 with the attached tangoion.rc file.
>>
>> “ballet” running DTN-2.9.0 with the attached balletdtn2.conf file.
>>
>>
>>
>> Hope this helps your debug of sending from ION node to DTN2 node.
>>
>>
>>
>> Yueli Yang
>> -----------------
>>
>> in our tests we had success with ion dtn interoperability with only with
>> ion version
>> 3.0.1
>>
>> Did you have success with the conf files that Yeli sent you?
>>
>> Also since in the mailing list archives i cannot find yelis configuration
>> files
>>
>> could you please send me those files ?
>>
>> Thanks and regards
>>
>>
>>
>> On Tue, May 26, 2015 at 8:52 AM, Somreeta Pramanik <
>> somreeta@ece.iitkgp.ernet.in> wrote:
>>
>> Hello all,
>> Can anyone please provide me the DTNSIM2 simulator. I can't download it
>> from the site http://watwire.uwaterloo.ca/DTN/sim/
>>
>> _______________________________________________
>> dtn-users mailing list
>> dtn-users@irtf.org
>> https://www.irtf.org/mailman/listinfo/dtn-users
>>
>>
>>
>
>