next up previous
Next: About this document ... Up: Installation of video-streaming implementations Previous: Trace file generator

MMDSR installation

In order to install the MMDSR implementation into the ns-2 simulator, we have to decompress the file "dsr.mm.tar.gz". Then, move the folder "dsr" into the directory where the source of the simulator is stored, i.e. "ns-2.xx" (where xx is the version of the ns-2 simulator installed). All files corresponding to the original DSR must be overwritten.

Also, copy the files "mobilenode.cc", "mobilenode.h" and "packet-stamp.h" to "ns-2.xx/common/".

Then, run "make" to compile the simulator. After this, a new version of the simulator should be created. Once it is finished, a new binary executable file named "ns" will be available in the "ns-2.xx" with MMDSR protocol installed instead of standard DSR.

Set configuration settings of the DSR protocol as usual. Some configuration parameters can be modified at the beginning of files "dsragent.cc" and "dsragent.h". Remember to run "make" after the modifications.

NOTE: in some versions of ns-2, the function "insert" of the file "scheduler.cc" gives us a compilation error or the simulations get into an infinite loop. In these cases the solution is to include the same function of a previous version of ns-2 (ns2-2.27 version is documented as working well).


next up previous
Next: About this document ... Up: Installation of video-streaming implementations Previous: Trace file generator
vico 2009-03-10