17.1.8.1 MobileNode Movement

Some examples of node movement files may be found in ~ns/tcl/mobility/scene/scen-670x670-50-600-20-*. These files define a topology of 670 by 670m where 50 nodes move with a speed of 20m/s with pause time of 600s. each node is assigned a starting position. The information regarding number of hops between the nodes is fed to the central object "GOD" (XXX but why/where is this information used??-answer awaited from CMU.) Next each node is a speed and a direction to move to.

The generator for creating node movement files are to be found under ~ns/indep-utils/cmu-scen-gen/setdest/ directory. Compile the files under setdest to create an executable. run setdest with arguments in the following way:

./setdest -n \<num_of_nodes\> -p \<pausetime\> -s \<maxspeed\> -t \<simtime\>
          -x \<maxx\> -y \<maxy\> \> \<outdir\>/\<scenario-file\>
Note that the index used for nodes now start from 0 instead of 1 as was in the original CMU version, to match with ns's tradition of assigning node indices from 0.



Tom Henderson 2014-12-17