GloMoSim Basics
description
Transcript of GloMoSim Basics
![Page 1: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/1.jpg)
GloMoSim Basics
Nirbhay ChaubeyPh.D Student,
Computer Science Dept. Gujarat University, Ahmedabad
1
![Page 2: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/2.jpg)
Introduction
• GloMoSim is the Global Mobile Information Systems Simulation Library from UCLA. Specially oriented to simulate wireless, ad-hoc
networks.
• It can be obtained from http://pcl.cs.ucla.edu/projects/glomosim/ .
2
![Page 3: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/3.jpg)
Outline
• Installation on a UNIX-like system. Specific examples for RPM-based Linux
systems.
• Installation on a Windows NT-kernel system.
• Running a basic simulation.
• Seeing the results – GloMoSim VT.
3
![Page 4: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/4.jpg)
Outline
• Installation on a UNIX-like system. Specific examples for RPM-based Linux
systems.
• Installation on a Windows NT-kernel system.
• Running a basic simulation.
• Seeing the results – GloMoSim VT.
4
![Page 5: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/5.jpg)
Installation on a UNIX-like System
• We have chosen to show the installation for a RPM-based Linux system. Red Hat Mandrake Many others…
• Why does this matter?
5
![Page 6: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/6.jpg)
• Un-gzip the distribution package.
• Untar the distribution package.
• Install the glomosim and parsec directories into /usr/local.
6
![Page 7: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/7.jpg)
• Set your path environments (assuming you use tcsh or csh). PCC_DIRECTORY PATH
• Check if pcc works from anywhere.
• Check your pcc environment by pcc –env.
7
![Page 8: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/8.jpg)
• Go to glomosim\main and do make.
• Once the make is complete, GloMoSim is ready to use, and lives in bin.
• Don’t forget to compile the Java GUI, in java_gui.
8
![Page 9: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/9.jpg)
Demonstration of GloMoSim Installation on Linux
We will resume the presentation after the demonstration.
9
![Page 10: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/10.jpg)
Outline
• Installation on a UNIX-like system. Specific examples for RPM-based Linux
systems.
• Installation on a Windows NT-kernel system.
• Running a basic simulation.
• Seeing the results – GloMoSim VT.
10
![Page 11: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/11.jpg)
Installation on a Windows NT-kernel System
• Beforehand: Visual Studio 6.0 w/ sp4 Java SDK 1.2+
JRE (Java Runtime Environment) is
INSUFFICIENT
• Un-gzip the distribution package.
• Untar the distribution package.
• Install the glomosim and parsec directories into %programfiles%\.
11
![Page 12: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/12.jpg)
• Set your path environments. PCC_DIRECTORY
C:\Program Files\glomosim-2.03\parsec\windowsnt-4.0-vc6
PATHC:\Program Files\glomosim-2.03\parsec\
windowsnt-4.0-vc6 \bin Visual Studio
vcvars.bat
• Check if pcc works from anywhere.( Check your pcc environment by pcc –env )
12
![Page 13: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/13.jpg)
• Go to glomosim/main and do makent.bat.
• Once the make is complete, GloMoSim is ready to use, and lives in bin.
• Don’t forget to compile the Java GUI, in java_gui.( javac *.java )
13
![Page 14: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/14.jpg)
Demonstration of GloMoSim Installation on Windows
We will resume the presentation after the demonstration.
14
![Page 15: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/15.jpg)
Outline
• Installation on a UNIX-like system. Specific examples for RPM-based Linux
systems.
• Installation on a Windows NT-kernel system.
• Running a basic simulation.
• Seeing the results – GloMoSim VT.
15
![Page 16: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/16.jpg)
Running a Basic Simulation
• GloMoSim depends on its config.in file.
• Let’s go through some of the basic variables in config.in.
• Most of them are self-explanatory, and those that aren’t are described in config.in.
• SIMULATION-TIME Total time elapsed
inside of simulation.
• TERRAIN-DIMENSIONS The area you are
simulating in.
• NUMBER-OF-NODES The number of nodes.
16
![Page 17: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/17.jpg)
• NODE-PLACEMENT The way the nodes are
placed in the terrain… random, grid, uniform, or by input file allowed.
• MOBILITY Movement of nodes.
Can be none, random-waypoint, by trace, or by pathloss matrix.
• MAC-PROTOCOL Defines what MAC
you use. 802.11, MACA, CSMA, TSMA supported.
• ROUTING-PROTOCOL Bellman-Ford, AODV,
DSR, LAR, WRP, Fisheye, ZRP and static supported.
17
![Page 18: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/18.jpg)
• Parameters for reporting statistics (YES/NO selection): APPLICATION-
STATISTICS TCP-STATISTICS UDP-STATISTICS ROUTING-
STATISTICS NETWORK-LAYER-
STATISTICS
MAC-LAYER-STATISTICS
RADIO-LAYER-STATISTICS
CHANNEL-LAYER-STATISTICS
MOBILITY-STATISTICS
GUI-OPTION GUI-RADIO GUI-ROUTING
18
![Page 19: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/19.jpg)
• Other files of interest: glomo.stat is produced by the simulation, and
contain all statistics. Easily filterable because things are printed with the layer and node they belong to.
mcast.conf contains multicast group information.
19
![Page 20: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/20.jpg)
Outline
• Installation on a UNIX-like system. Specific examples for RPM-based Linux
systems.
• Installation on a Windows NT-kernel system.
• Running a basic simulation.
• Seeing the results – GloMoSim VT.
20
![Page 21: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/21.jpg)
Seeing the Results – GloMoSim VT
• The Visualization Tool is a Java-based tool that allows you to see the happenings of your simulation.
• To use the tool: Run GloMoSim inside of the VT. Write a trace file. Play back the trace file.
21
![Page 22: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/22.jpg)
22
![Page 23: GloMoSim Basics](https://reader036.fdocuments.net/reader036/viewer/2022062723/56813c80550346895da621c6/html5/thumbnails/23.jpg)
Demonstration of GloMoSim Basic Simulation
This is the last slide.
Thank you !
23