05 - Mannasim Installation

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

T S P R A D E E P K U M A R , V I T, H T T P : / / W W W. N S N A M .

C O M

MANNASIM
- A S E N S O R N E T W O R K S I M U L AT O R

INTRODUCTION
http://www.mannasim.dcc.ufmg.br/
Mannasim comes with
A sensor simulator that simulates a Carbon

monoxide and temperature sensor

a script generator tool to generate tcl files for

testing the network

CLASSES IN MANNASIM
SensorNode (sensorNode.h and .cc) extends MobileNode
Battery (battery.h and .cc) extend EnergyModel
DataGenerator (dataGenerator.h and .cc) extends TclObject
TemperatureDataGenerator (temperatureDataGenerator.h

and .cc) extends DataGenerator

TemperatureAppData (temperatureAppData.h and .cc )

extends AppData

Processing (processing.h and .cc) extends TclObject

CLASSES IN MANNASIM
SensedData (sensedData.h and .cc) extends AppData
OnDemandData (onDemandData.h and .cc) extends SensedData
OnDemandParameter(onDemandParameter.h and .cc) extends

AppData

SensorBaseApp (sensorBaseApp.h and .cc) extends Application


CommonNodeApp (commonNodeApp.h and .cc) extends

SensorBaseApp

ClusterHeadApp (ClusterHeadApp.h and .cc) extends

SensorBaseApp

CLASSES IN MANNASIM

Each class has their own variables and functions


Users are requested to go through the source code for

understanding the algorithm for each class.

T C L PA R A M E T E R S
Transport Protocol (TCP, UDP)
Routing Protocol (DSR, TORA, LEACH, Directed Diffusion, DSDV and AODV)
Medium Access Control (MAC) - MAC/802_11
Link Layer - LL
Physical Layer (either Crossbow Mica2 or 914MHz Lucent WaveLAN DSSS radio interface).
Antenna An omnidirectional antenna, centered in node position and 1.5 meters above the ground is

provided.

Radio Propagation (FreeSpace, Shadowing, ShadowingVis, TwoRayGround).


Interface Queue (IFQ) (DropTail (default), DropTail/XCP, RED, RED/Pushback, RED/RIO, Vq and XCP.)
IFQ Length - 50 bytes
Battery (Mannasim Battery model is used.)
Scenario Size (in meters with x and y length)

T C L - A C C E S S P O I N T D E TA I L S
Access Point Number - Number of access points in the WSN. One

access point.

Access Point Location - Seven options are provided: Center (default),

Down Left Corner, Down Right Corner, Grid, Random, Up Left Corner
and Up Right Corner

Initial Energy - 100.0 joules default


Access Point Application - Provides a new instance of an access point

in simulation scenario.

Transmission Range - Communication range for access point node.

Default range is set to 100.0 meters.

T C L - C L U S T E R H E A D C O N F I G U R AT I O N
Cluster Head Number - Number of clusters, and consequently cluster heads in the WSN. 0 for non

hierarchical WSN

Cluster Head Location - Random or Grid.


Initial Energy - 10.0 joules default.
Cluster Head Application - Provides a new instance of a cluster head in simulation scenario.
Processing Type - Aggregate processing - Specifies how received data from cluster sons should be

processed

Transmission Range - Default range is set to 70.0 meters.


Dissemination Type - Dissemination type for processed data. Three kinds of dissemination are provided:

Continuous, On Demand and Programmed.

Dissemination Interval - Time interval between two consecutive disseminations. Time defined in seconds.

On demand dissemination don't makes use of this parameter and for continuous dissemination the
interval should be as small as possible (0.001s for example). Default value is set to 50.0 seconds.

COMMON NODE
Common Node Number - 10 common nodes as default.
Common Node Location - Random or Grid.
Initial Energy - 10.0 joules.
Common Node Application
Processing Type - Aggregate processing
Transmission Range - Default range is set to 50.0 meters.
Dissemination Type - Continuous, On Demand and Programmed

(default).

C O M M O N N O D E C O N F I G U R AT I O N
Dissemination Interval - On demand dissemination don't makes use

of this parameter and for continuous dissemination the interval should


be as small as possible (0.001s for example). Default value is set to
20.0 seconds.

Sensing Type - Continuous, On Demand and Programmed (default).


Sensing Interval - Time interval between two consecutive data sensing

tasks. Time defined in seconds. On demand dissemination don't


makes use of this parameter and for continuous dissemination the
interval should be as small as possible (0.001s for example). Default
value is set to 5.0 seconds.

C O M M O N N O D E C O N F I G U R AT I O N
Data Generator Type - Temperature and carbon monoxide data

generators are provided within Mannasim Framework. These


generators create data based on Gaussian Distribution.
Data Average Value - Average value used in Gaussian Distribution

equation. Default value is set to 25.0 celsius degrees.


Data Standard Deviation - Standard Deviation value used in Gaussian

Distribution equation. Default value is set to 5.0 celsius degrees.


Maximum Data Value - Generated data maximum allowed value.

This parameter is used in event-driven WSN applications. Default


value is set to 30.0 celsius degrees

TO COMPILE

Unzip or untar the mannasim.tar.gz to ~ns-2.35/ folder


Open the folder mannasim and copy the files from the

ns-modified-files/ folder in the following location. (as


specified in the next slide)

TO COMPILE
Copy the files from the ~mannasim/ns-modified-files/ and paste it to the

following location of NS2.35

ns-allinone-2.35/ns-2.35/apps/udp.cc
ns-allinone-2.35/ns-2.35/common/ns-process.h
ns-allinone-2.35/ns-2.35/common/packet.cc
ns-allinone-2.35/ns-2.35/common/packet.h
ns-allinone-2.35/ns-2.35/Makefile.in
ns-allinone-2.35/ns-2.35/tcl/lib/ns-default.tcl
ns-allinone-2.35/ns-2.35/tcl/lib/ns-lib.tcl

TO COMPILE

Once done, open the terminal and go to the ~ns-2.35/

folder and do the following commands one by one


./configure
make clean
make

TO RUN THE MANNASIM FILES


From the terminal,
Go to the mannasim folder
cd scriptGeneratorTool and type
./msg-linux.sh
Configure the network as recommended in the previous

slides (Tcl Parameters). Once Tcl file is generated, run the


program using

ns filename.tcl

Thank You, Questions?????

You might also like