Research breakthrough possible @S-Logix

Office Address

  • 2nd Floor, #7a, High School Road, Secretariat Colony Ambattur, Chennai-600053 (Landmark: SRM School) Tamil Nadu, India
  • +91- 81240 01111

Social List

How to Create different mobility models in NS2?

Step 1

Download BonnMotion v2.1.3 (2015-02-10)

Using this link

Step 2

Installing bonnmotion v2.1.3

. / install

Step 3

cd bonnmotion-2.1.3/bin/

To run BonnMotion

Step 4

$bonnmotion-2.1.3/bin] ./bm -hm (this will list all the models)

Screenshot :

mobility node creation
Step 5

$bonnmotion-2.1.3/bin] ./bm -hm ProbRandomWalk (Will display all the parameters for ProbRandomWalk like number of nodes, x, y, random seed, etc.)

Screenshot :

Create different mobility models in NS2
Step 6

Create scenario with 10 number of nodes with x and y as 500 * 500

$bonnmotion-2.1.3/bin] ./bm -f scenario ProbRandomWalk -n 10 -x 500 -y 500

Step 7

Create two files called scenario.ns_movements, scenario.ns_params

$bonnmotion-2.1.3/bin] ./bm NSFile -f scenario

Screenshot :

Tool for mobility scenario generation
Step 8

The scenario.ns_params and scenario.ns_movements can be used inside tcl script for ns2 using the source commandsource scenario.ns_paramssource scenario.ns_movements

Screenshot :

Tool for mobility scenario analysis