Re: [dtn-interest] DTN2 manual or tutorials?

Melissa Ho <mrh9@cornell.edu> Tue, 08 February 2005 09:05 UTC

Received: from gomez.oxid8.com (216-237-120-2.infortech.net [216.237.120.2] (may be forged)) by webbie.berkeley.intel-research.net (8.11.6/8.11.6) with ESMTP id j1895G110898 for <dtn-interest@mailman.dtnrg.org>; Tue, 8 Feb 2005 01:05:16 -0800
Received: from [192.168.100.42] (c-24-6-108-25.client.comcast.net [24.6.108.25]) (authenticated (0 bits)) by gomez.oxid8.com (8.11.6/8.11.6) with ESMTP id j18971h09379; Tue, 8 Feb 2005 01:07:01 -0800
Received: from 127.0.0.1 (AVG SMTP 7.0.300 [265.8.6]); Tue, 08 Feb 2005 01:05:14 -0800
Message-ID: <420880C7.9010603@cornell.edu>
Date: Tue, 08 Feb 2005 01:05:11 -0800
From: Melissa Ho <mrh9@cornell.edu>
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
X-Accept-Language: en-us, en
To: tk424 <tk424@umr.edu>
CC: dtn-interest <dtn-interest@mailman.dtnrg.org>
Subject: Re: [dtn-interest] DTN2 manual or tutorials?
References: <F611D55671119742B12C443E0B8AF5CC7BEBBF@UMR-CMAIL3.umr.edu>
In-Reply-To: <F611D55671119742B12C443E0B8AF5CC7BEBBF@UMR-CMAIL3.umr.edu>
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Sender: dtn-interest-admin@mailman.dtnrg.org
Errors-To: dtn-interest-admin@mailman.dtnrg.org
X-BeenThere: dtn-interest@mailman.dtnrg.org
X-Mailman-Version: 2.0.13
Precedence: bulk
List-Help: <mailto:dtn-interest-request@mailman.dtnrg.org?subject=help>
List-Post: <mailto:dtn-interest@mailman.dtnrg.org>
List-Subscribe: <http://mailman.dtnrg.org/mailman/listinfo/dtn-interest>, <mailto:dtn-interest-request@mailman.dtnrg.org?subject=subscribe>
List-Id: Delay Tolerant Networking Interest List <dtn-interest.mailman.dtnrg.org>
List-Unsubscribe: <http://mailman.dtnrg.org/mailman/listinfo/dtn-interest>, <mailto:dtn-interest-request@mailman.dtnrg.org?subject=unsubscribe>
List-Archive: <http://mailman.dtnrg.org/pipermail/dtn-interest/>

Alas, the only official documentation and tutorials are those included 
with the source, and the dtn-interest archives.

There is a slightly out-of-date installation guide on my website here:
http://www.melissaho.com/research/dtn/demo

The caveats/tricks you should know are:
1. Download the BerkeleyDB source and compile it with --enable-cxx:
cd build_unix
../dist/configure --enable-cxx
make
make install (as root)
2. Download tclreadline source and install it. This will give you access 
to the dtnd command line help, and in general make it easier to use/test 
dtn. One of the hooks for processing bundles is to specify a tcl command 
to run on bundles that are received. http://tclreadline.sourceforge.net
3. By default, dtnd is initialized with the conf file ./daemon/dtn.conf. 
This is a tcl file - where you can load the appropriate test functions, 
and do any node/route initializations necessary.
4. You may need to specify your LD_LIBRARY _PATH in order to run dtnd 
successfully:
export LD_LIBRARY_PATH=/usr/local/BerkeleyDB4.2/lib

For the dtnd options run it with the --help option:
./daemon/dtnd --help

After you first compile DTN2, you will need to initialize the database:
./daemon/dtnd --init-db

Then to clear the database and run dtn you can use the tidy option:
./daemon/dtnd -t

Read the error messages if it doesn't run successfully - in general, 
Mike has done a pretty good job of putting in informative enough error 
messages for you to be able to fix whatever configuration issues come up.

As another side note, I just did a fresh checkout and build on a fedora 
core 3 machine - and realized that I was missing tcl.h since I didn't 
have tcl-devel installed.

Also - we haven't tested DTN2 on solaris - your best bet (while we're 
still in the early stages) is to do development on Fedora.

Melissa

tk424 wrote:

> Dear DTN2 users,
>
> My team in University of Missouri, Rolla recently installed DTN2 
> software on Solaris9 and is trying to learn this software.
>
> As far as I searched so far, it seems that there is no manual or 
> tutorials on the DTN2 simulator, that is a material that 
> systematically guides a newbie into this DTN2 world. Is this true? If 
> not, where can I get the material? If so, how I can learn how to use 
> this simulator?
>
> I was wondering whether I can ask some specific questions to bug DTN2 
> users. :>
>
> As some of them,
>
> (1) How to use the test files in directory “DTN2/test” such as main.tcl?
>
> (2) What does each tcl and shell files (*.tcl and *.sh) in directory 
> “DTN2/test” do? Does main.tcl use other tcl and shell files?
>
> (3) Can you give me some example commands of “dtnd” so that I can 
> learn the usage of “dtnd”
>
> There are tons of other questions, but I will stop here. J
>
> Thank you in advance!
>
> Best regards,
>
> Tae-hyung Kim
>
> p.s. Just for your information, I have some background on Tcl, C++, 
> awk, and a little bit of shell scripting.
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> Friends are angels who lift us to our feet when
> our wing have trouble remembering how to fly.
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 2/7/2005
>  
>



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 2/7/2005