Scripts Ns2
Scripts Ns2
This README file assumes some familiarity with ns-2 Monarch wireless
extensions.
You would need to install tcl, otcl, tk and tclcl as with any ns-2
installation.
The versions of these software packages that I am using are:
0. Updates
1. ADMR Implementation
2. ODMRP Implementation
3. Trace Post-Processing
4. Scenario File Generation
5. General Information
6. Final Remarks
Updates
--------------------------------------------------------
The ADMR code is in the admr/ directory which is in the ns-2 source
directory.
There are some minor modifications in other files in the ns-2 source
tree
such as cmu-trace.{h,cc}, packet.h and tcl/lib/ns-mobilenode.tcl.
These were
mostly needed in order to integrate the ADMR header into the
simulator.
The following command line can be used to run an ADMR simulation from
the ns source directory:
Note: This is not the ADMR implementation used for the experiments
reported
in the Mobihoc 2001 ADMR paper.
ODMRP Implementation:
--------------------------------------------------------
The ODMRP code is in the odmrp/ directory which is in the ns-2 source
directory. There are some minor modifications in other files in the
ns-2
source tree such as cmu-trace.{h,cc}, packet.h and tcl/lib/ns-
mobilenode.tcl.
These were mostly needed in order to integrate the ODMRP header into
the
simulator.
The final 39 lines of the output are in matlab-ready format. You can
do
"tail -39 RESULTS/admr_totals_output" to extract these lines and then
store them in a
file to directly feed into matlab.
The final 21 lines of the output are in matlab ready format. You can
do
"tail -21 RESULTS/odmrp_totals_output" to extract these lines and
then store them in a
file to directly feed into matlab.
The movement scenarios that I have been using so far are random
waypoint
scenarios and are generated by the generators included in the ns-2
wireless extensions (setdest.cc).
Note that only cbr scenario generation has been tested, tcp has not.
General Information
--------------------------------------------------------
I have had problems when the O2 flag is set (in the Makefile) and so
I normally disable
it. Also note that the NODEBUG flag which disables asserts is a
default Makefile
option in ns-2.
---------------------------------------------------------