Download and Build
Back to DtnAgent Home
Changelog:
Version 1.5 released on 7/23/2012. Download file here.
-
Added support for UDP convergence layer.
-
Added bundle offset on each TCP packet allowing for identification of duplicate data received from different incoming connections. Flooding techniques that send the same bundle to multiple outgoing connections can now be simulated and partially received bundles can be handled.
Version 1.1 released on 6/20/2012. Download files here.
-
Added option for disabling retransmissions.
-
Added basic DTN tracing with Trace and CMUTrace.
Version 1.0 released on 5/30/2012. Download files here.
Building instructions:
In order to build the model into ns-2 apply the following steps to your local ns-2 files:
-
Add the dtn.h, dth.cc, udp-dtn.h and udp-dtn.cc files to the ns2/apps directory.
-
Add the tcp-dtn.h, tcp-dtn.cc, tcp-dtn-sink.h, tcp-dtn-sink.cc to the ns2/tcp directory.
-
Create a dtn directory inside the ns2/tcl/ path and place ns-dtn.tcl in it.
-
Add to the Makefile at the end of the OBJ_CC macro lines tcp/tcp-dtn.o, tcp/tcp-dtn-sink.o, apps/dtn.o, apps/udp-dtn.o and at the end of the NS_TCL_LIB macro line tcl/dtn/ns-dtn.tcl, as per the provided Makefile.
-
Apply changes to the ns2/common/packet.h file as per the provided file. Look for lines containing HDR_DTN(p) and PT_DTN and also update the PT_NTYPE macro.
-
Add the Agent/DTN defaults as per the provided ns2/tcl/lib/ns-default.tcl file.
-
Add the “source ../dtn/ns-dtn.tcl” directive at the top of the ns2/tcl/lib/ns-lib.tcl file.
-
Add inclusion of the DTN header in the ns2/tcl/lib/ns-packet.tcl (look for DTN in the provided file).
-
Optionally add some basic DTN tracing by applying changes to the trace/trace.h, trace/trace.cc, trace/cmu-trace.h, trace/cmu-trace.cc as per the provided files. Look for lines marked as // DV (or just overwrite the files). Also, add the Trace and CMUTrace defaults to the ns-default.tcl file.
-
Run make inside the ns2 directory.
-
Optionally run the dtnTestWireless.tcl sample file.