TiiL Tutorials
@TinhocTiiL

How to install BonnMotion – A mobility scenario generation and analysis tool

BonnMotion is a Java software which creates and analyzes mobility scenarios and is most commonly used as a tool for the investigation of mobile ad hoc network characteristics. The scenarios can also be exported for several network simulators, such as ns-2, ns-3, GloMoSim/QualNet, COOJA, MiXiM, and ONE. BonnMotion is being jointly developed by the Communication Systems group at the University of Bonn, Germany, the Toilers group at the Colorado School of Mines, Golden, CO, USA, and the Distributed Systems group at the University of Osnabrück, Germany. Several mobility models are supported, namely

  • the Random Waypoint model,
  • the Random Walk model,
  • the Gauss-Markov model,
  • the Manhattan Grid model,
  • the Reference Point Group Mobility model,
  • the Disaster Area model,
  • the Random Street model,
  • and more.

To install

1) download: https://sys.cs.uos.de/bonnmotion/download.shtml

2) extract

3) open terminal from current BonMotion, like this: mctho@mctho-laptop:~/bonnmotion-3.0.1$

4) preinstall require

    1. check java version:   java –version
    2. get java bin path:
    3. install javac
      1. type:  javac  to get help

Command ‘javac’ not found, but can be installed with:
sudo apt install default-jdk # version 2:1.11-72build2, or
sudo apt install openjdk-11-jdk-headless # version 11.0.18+10-0ubuntu1~22.04
sudo apt install ecj # version 3.16.0-1
sudo apt install openjdk-17-jdk-headless # version 17.0.6+10-0ubuntu1~22.04
sudo apt install openjdk-18-jdk-headless # version 18.0.2+9-2~22.04
sudo apt install openjdk-19-jdk-headless # version 19.0.2+7-0ubuntu3~22.04
sudo apt install openjdk-8-jdk-headless # version 8u362-ga-0ubuntu1~22.04

      1. install

mctho@mctho-laptop:~/bonnmotion-3.0.1$ sudo apt install openjdk-11-jdk-headless

4) ./install

5) run  ./bm  in bin folder

6. Tutorial on Bon site: https://sys.cs.uos.de/bonnmotion/doc/README.pdf

7. Example

input: ./bm -f scenarioGaus OriginalGaussMarkov -n 10 -d 200 -j 3D -z 100 -i 3600 -x 1000 -y 1000 -a 20

output

scenarioGaus.params file

model=OriginalGaussMarkov
ignore=3600.0
randomSeed=1678505101576
x=1000.0
y=1000.0
z=100.0
duration=200.0
nn=10
circular=false
J=3D
updateFrequency=2.5
velocityStdDev=0.1
alpha=1.0
avgSpeed=20.0
maxSpeed=Infinity

scenarioGaus.movements file for first node

0.0 893.7410989589855 519.7537681490627 0.0 2.5 893.7410989589855 519.7537681490627 0.0 5.0 893.7410989589855 519.7537681490627 0.0 7.5 893.7410989589855 519.7537681490627 0.0 10.0 893.7410989589855 519.7537681490627 0.0 12.5 893.7410989589855 519.7537681490627 0.0 15.0 893.7410989589855 519.7537681490627 0.0 17.5 893.7410989589855 519.7537681490627 0.0 20.0 893.7410989589855 519.7537681490627 0.0 22.5 893.7410989589855 519.7537681490627 0.0 25.0 893.7410989589855 519.7537681490627 0.0 27.5 893.7410989589855 519.7537681490627 0.0 30.0 893.7410989589855 519.7537681490627 0.0 32.5 893.7410989589855 519.7537681490627 0.0 35.0 893.7410989589855 519.7537681490627 0.0 37.5 893.7410989589855 519.7537681490627 0.0 40.0 893.7410989589855 519.7537681490627 0.0 42.5 893.7410989589855 519.7537681490627 0.0 45.0 893.7410989589855 519.7537681490627 0.0 47.5 893.7410989589855 519.7537681490627 0.0 50.0 893.7410989589855 519.7537681490627 0.0 52.5 893.7410989589855 519.7537681490627 0.0 55.0 893.7410989589855 519.7537681490627 0.0 57.5 893.7410989589855 519.7537681490627 0.0 60.0 893.7410989589855 519.7537681490627 0.0 62.5 893.7410989589855 519.7537681490627 0.0 65.0 893.7410989589855 519.7537681490627 0.0 67.5 893.7410989589855 519.7537681490627 0.0 70.0 893.7410989589855 519.7537681490627 0.0 72.5 893.7410989589855 519.7537681490627 0.0 75.0 893.7410989589855 519.7537681490627 0.0 77.5 893.7410989589855 519.7537681490627 0.0 80.0 893.7410989589855 519.7537681490627 0.0 82.5 893.7410989589855 519.7537681490627 0.0 85.0 893.7410989589855 519.7537681490627 0.0 87.5 893.7410989589855 519.7537681490627 0.0 90.0 893.7410989589855 519.7537681490627 0.0 92.5 893.7410989589855 519.7537681490627 0.0 95.0 893.7410989589855 519.7537681490627 0.0 97.5 893.7410989589855 519.7537681490627 0.0 100.0 893.7410989589855 519.7537681490627 0.0 102.5 893.7410989589855 519.7537681490627 0.0 105.0 893.7410989589855 519.7537681490627 0.0 107.5 893.7410989589855 519.7537681490627 0.0 110.0 893.7410989589855 519.7537681490627 0.0 112.5 893.7410989589855 519.7537681490627 0.0 115.0 893.7410989589855 519.7537681490627 0.0 117.5 893.7410989589855 519.7537681490627 0.0 120.0 893.7410989589855 519.7537681490627 0.0 122.5 893.7410989589855 519.7537681490627 0.0 125.0 893.7410989589855 519.7537681490627 0.0 127.5 893.7410989589855 519.7537681490627 0.0 130.0 893.7410989589855 519.7537681490627 0.0 132.5 893.7410989589855 519.7537681490627 0.0 135.0 893.7410989589855 519.7537681490627 0.0 137.5 893.7410989589855 519.7537681490627 0.0 140.0 893.7410989589855 519.7537681490627 0.0 142.5 893.7410989589855 519.7537681490627 0.0 145.0 893.7410989589855 519.7537681490627 0.0 147.5 893.7410989589855 519.7537681490627 0.0 150.0 893.7410989589855 519.7537681490627 0.0 152.5 893.7410989589855 519.7537681490627 0.0 155.0 893.7410989589855 519.7537681490627 0.0 157.5 893.7410989589855 519.7537681490627 0.0 160.0 893.7410989589855 519.7537681490627 0.0 162.5 893.7410989589855 519.7537681490627 0.0 165.0 893.7410989589855 519.7537681490627 0.0 167.5 893.7410989589855 519.7537681490627 0.0 170.0 893.7410989589855 519.7537681490627 0.0 172.5 893.7410989589855 519.7537681490627 0.0 175.0 893.7410989589855 519.7537681490627 0.0 177.5 893.7410989589855 519.7537681490627 0.0 180.0 893.7410989589855 519.7537681490627 0.0 182.5 893.7410989589855 519.7537681490627 0.0 185.0 893.7410989589855 519.7537681490627 0.0 187.5 893.7410989589855 519.7537681490627 0.0 190.0 893.7410989589855 519.7537681490627 0.0 192.5 893.7410989589855 519.7537681490627 0.0 195.0 893.7410989589855 519.7537681490627 0.0 197.5 893.7410989589855 519.7537681490627 0.0 200.0 893.7410989589855 519.7537681490627 0.0

Avatar
https://khoacntt.ntu.edu.vn/giang-vien/mai-cuong-tho

một GV Đại học. TiiL đã phụ trách một số môn học như: Lập trình Java, Phát triển web với Java, Lập trình thiết bị di động, Lập trình hệ thống nhúng và IoT.

Comments are closed.