SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Downloaden Sie, um offline zu lesen
Mannasim - a Sensor
network simulator
T S Pradeep Kumar,
VIT Chennai
http://www.nsnam.com
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.
TCL Parameters
• 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)
TCL - Access point details
• 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.
TCL - Cluster Head
Configuration
• 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).
Common Node
configuration
• 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.
Common Node
configuration
• 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?????

Weitere ähnliche Inhalte

Was ist angesagt?

task scheduling in cloud datacentre using genetic algorithm
task scheduling in cloud datacentre using genetic algorithmtask scheduling in cloud datacentre using genetic algorithm
task scheduling in cloud datacentre using genetic algorithmSwathi Rampur
 
Morales, Randulph: Spatio-temporal kriging in estimating local methane source...
Morales, Randulph: Spatio-temporal kriging in estimating local methane source...Morales, Randulph: Spatio-temporal kriging in estimating local methane source...
Morales, Randulph: Spatio-temporal kriging in estimating local methane source...Integrated Carbon Observation System (ICOS)
 
Task scheduling Survey in Cloud Computing
Task scheduling Survey in Cloud ComputingTask scheduling Survey in Cloud Computing
Task scheduling Survey in Cloud ComputingRamandeep Kaur
 
Tdtd-Edr: Time Orient Delay Tolerant Density Estimation Technique Based Data ...
Tdtd-Edr: Time Orient Delay Tolerant Density Estimation Technique Based Data ...Tdtd-Edr: Time Orient Delay Tolerant Density Estimation Technique Based Data ...
Tdtd-Edr: Time Orient Delay Tolerant Density Estimation Technique Based Data ...theijes
 
Enterprise Scale Topological Data Analysis Using Spark
Enterprise Scale Topological Data Analysis Using SparkEnterprise Scale Topological Data Analysis Using Spark
Enterprise Scale Topological Data Analysis Using SparkAlpine Data
 
Compressive Data Gathering using NACS in Wireless Sensor Network
Compressive Data Gathering using NACS in Wireless Sensor NetworkCompressive Data Gathering using NACS in Wireless Sensor Network
Compressive Data Gathering using NACS in Wireless Sensor NetworkIRJET Journal
 
Delaunay based two-phase algorithm for connected cover in WSNs
Delaunay based two-phase algorithm for connected cover in WSNsDelaunay based two-phase algorithm for connected cover in WSNs
Delaunay based two-phase algorithm for connected cover in WSNsMaynooth University
 
Optimal Converge cast Methods for Tree- Based WSNs
Optimal Converge cast Methods for Tree- Based WSNsOptimal Converge cast Methods for Tree- Based WSNs
Optimal Converge cast Methods for Tree- Based WSNsIJMER
 
Genetic Algorithm for task scheduling in Cloud Computing Environment
Genetic Algorithm for task scheduling in Cloud Computing EnvironmentGenetic Algorithm for task scheduling in Cloud Computing Environment
Genetic Algorithm for task scheduling in Cloud Computing EnvironmentSwapnil Shahade
 
Energy-aware Task Scheduling using Ant-colony Optimization in cloud
Energy-aware Task Scheduling using Ant-colony Optimization in cloudEnergy-aware Task Scheduling using Ant-colony Optimization in cloud
Energy-aware Task Scheduling using Ant-colony Optimization in cloudLinda J
 
Modeling and Optimization of Resource Allocation in Cloud [PhD Thesis Progres...
Modeling and Optimization of Resource Allocation in Cloud [PhD Thesis Progres...Modeling and Optimization of Resource Allocation in Cloud [PhD Thesis Progres...
Modeling and Optimization of Resource Allocation in Cloud [PhD Thesis Progres...AtakanAral
 

Was ist angesagt? (14)

task scheduling in cloud datacentre using genetic algorithm
task scheduling in cloud datacentre using genetic algorithmtask scheduling in cloud datacentre using genetic algorithm
task scheduling in cloud datacentre using genetic algorithm
 
Morales, Randulph: Spatio-temporal kriging in estimating local methane source...
Morales, Randulph: Spatio-temporal kriging in estimating local methane source...Morales, Randulph: Spatio-temporal kriging in estimating local methane source...
Morales, Randulph: Spatio-temporal kriging in estimating local methane source...
 
Task scheduling Survey in Cloud Computing
Task scheduling Survey in Cloud ComputingTask scheduling Survey in Cloud Computing
Task scheduling Survey in Cloud Computing
 
Tdtd-Edr: Time Orient Delay Tolerant Density Estimation Technique Based Data ...
Tdtd-Edr: Time Orient Delay Tolerant Density Estimation Technique Based Data ...Tdtd-Edr: Time Orient Delay Tolerant Density Estimation Technique Based Data ...
Tdtd-Edr: Time Orient Delay Tolerant Density Estimation Technique Based Data ...
 
Enterprise Scale Topological Data Analysis Using Spark
Enterprise Scale Topological Data Analysis Using SparkEnterprise Scale Topological Data Analysis Using Spark
Enterprise Scale Topological Data Analysis Using Spark
 
D021201024031
D021201024031D021201024031
D021201024031
 
Svm on cloud (presntation)
Svm on cloud  (presntation)Svm on cloud  (presntation)
Svm on cloud (presntation)
 
Compressive Data Gathering using NACS in Wireless Sensor Network
Compressive Data Gathering using NACS in Wireless Sensor NetworkCompressive Data Gathering using NACS in Wireless Sensor Network
Compressive Data Gathering using NACS in Wireless Sensor Network
 
Delaunay based two-phase algorithm for connected cover in WSNs
Delaunay based two-phase algorithm for connected cover in WSNsDelaunay based two-phase algorithm for connected cover in WSNs
Delaunay based two-phase algorithm for connected cover in WSNs
 
Optimal Converge cast Methods for Tree- Based WSNs
Optimal Converge cast Methods for Tree- Based WSNsOptimal Converge cast Methods for Tree- Based WSNs
Optimal Converge cast Methods for Tree- Based WSNs
 
Genetic Algorithm for task scheduling in Cloud Computing Environment
Genetic Algorithm for task scheduling in Cloud Computing EnvironmentGenetic Algorithm for task scheduling in Cloud Computing Environment
Genetic Algorithm for task scheduling in Cloud Computing Environment
 
Energy-aware Task Scheduling using Ant-colony Optimization in cloud
Energy-aware Task Scheduling using Ant-colony Optimization in cloudEnergy-aware Task Scheduling using Ant-colony Optimization in cloud
Energy-aware Task Scheduling using Ant-colony Optimization in cloud
 
20320130406029
2032013040602920320130406029
20320130406029
 
Modeling and Optimization of Resource Allocation in Cloud [PhD Thesis Progres...
Modeling and Optimization of Resource Allocation in Cloud [PhD Thesis Progres...Modeling and Optimization of Resource Allocation in Cloud [PhD Thesis Progres...
Modeling and Optimization of Resource Allocation in Cloud [PhD Thesis Progres...
 

Ähnlich wie Mannasim for NS2

Query optimization for_sensor_networks
Query optimization for_sensor_networksQuery optimization for_sensor_networks
Query optimization for_sensor_networksHarshavardhan Achrekar
 
Topic 4 Data Processing.pptx
Topic 4 Data Processing.pptxTopic 4 Data Processing.pptx
Topic 4 Data Processing.pptxDukeCalvin
 
Application of machine learning and cognitive computing in intrusion detectio...
Application of machine learning and cognitive computing in intrusion detectio...Application of machine learning and cognitive computing in intrusion detectio...
Application of machine learning and cognitive computing in intrusion detectio...Mahdi Hosseini Moghaddam
 
Internet of things - 3/4. Solving the problems
Internet of things - 3/4. Solving the problemsInternet of things - 3/4. Solving the problems
Internet of things - 3/4. Solving the problemsSumanth Bhat
 
Cyclone DDS Unleashed: Scalability in DDS and Dealing with Large Systems
Cyclone DDS Unleashed: Scalability in DDS and Dealing with Large SystemsCyclone DDS Unleashed: Scalability in DDS and Dealing with Large Systems
Cyclone DDS Unleashed: Scalability in DDS and Dealing with Large SystemsZettaScaleTechnology
 
Simulation of Heterogeneous Cloud Infrastructures
Simulation of Heterogeneous Cloud InfrastructuresSimulation of Heterogeneous Cloud Infrastructures
Simulation of Heterogeneous Cloud InfrastructuresCloudLightning
 
Primary mirror edge sensor project for the Southern African Large Telescope
Primary mirror edge sensor project for the Southern African Large TelescopePrimary mirror edge sensor project for the Southern African Large Telescope
Primary mirror edge sensor project for the Southern African Large TelescopeDeonBester4
 
EP-4221 -Chapter5.I(1).pptx
EP-4221 -Chapter5.I(1).pptxEP-4221 -Chapter5.I(1).pptx
EP-4221 -Chapter5.I(1).pptxgeremu2
 
Using Apache Pulsar to Provide Real-Time IoT Analytics on the Edge
Using Apache Pulsar to Provide Real-Time IoT Analytics on the EdgeUsing Apache Pulsar to Provide Real-Time IoT Analytics on the Edge
Using Apache Pulsar to Provide Real-Time IoT Analytics on the EdgeDataWorks Summit
 
Using Apache Pulsar to Provide Real-Time IoT Analytics on the Edge_David
Using Apache Pulsar to Provide Real-Time IoT Analytics on the Edge_DavidUsing Apache Pulsar to Provide Real-Time IoT Analytics on the Edge_David
Using Apache Pulsar to Provide Real-Time IoT Analytics on the Edge_DavidStreamNative
 
Surge 2013: Maximizing Scalability, Resiliency, and Engineering Velocity in t...
Surge 2013: Maximizing Scalability, Resiliency, and Engineering Velocity in t...Surge 2013: Maximizing Scalability, Resiliency, and Engineering Velocity in t...
Surge 2013: Maximizing Scalability, Resiliency, and Engineering Velocity in t...Coburn Watson
 
A Virtual Infrastructure for Mitigating Typical Challenges in Sensor Networks
A Virtual Infrastructure for Mitigating Typical Challenges in Sensor NetworksA Virtual Infrastructure for Mitigating Typical Challenges in Sensor Networks
A Virtual Infrastructure for Mitigating Typical Challenges in Sensor NetworksMichele Weigle
 
Wireless sensor network applications
Wireless sensor network applicationsWireless sensor network applications
Wireless sensor network applicationsDeepshika Reddy
 
Network_Intrusion_Detection_System_Team1
Network_Intrusion_Detection_System_Team1Network_Intrusion_Detection_System_Team1
Network_Intrusion_Detection_System_Team1Saksham Agrawal
 
Network_Intrusion_Detection_System_Team1
Network_Intrusion_Detection_System_Team1Network_Intrusion_Detection_System_Team1
Network_Intrusion_Detection_System_Team1Saksham Agrawal
 
Real Time Monitoring and Electro Magnetic Interference causing Data corruption
Real Time Monitoring and Electro Magnetic Interference causing Data corruptionReal Time Monitoring and Electro Magnetic Interference causing Data corruption
Real Time Monitoring and Electro Magnetic Interference causing Data corruptionRekaNext Capital
 
( KEVIN SONI )DATA ACQUISITION SYSTEM
( KEVIN SONI )DATA ACQUISITION SYSTEM ( KEVIN SONI )DATA ACQUISITION SYSTEM
( KEVIN SONI )DATA ACQUISITION SYSTEM Kevin Soni
 

Ähnlich wie Mannasim for NS2 (20)

Query optimization for_sensor_networks
Query optimization for_sensor_networksQuery optimization for_sensor_networks
Query optimization for_sensor_networks
 
Topic 4 Data Processing.pptx
Topic 4 Data Processing.pptxTopic 4 Data Processing.pptx
Topic 4 Data Processing.pptx
 
Masters Thesis
Masters ThesisMasters Thesis
Masters Thesis
 
Application of machine learning and cognitive computing in intrusion detectio...
Application of machine learning and cognitive computing in intrusion detectio...Application of machine learning and cognitive computing in intrusion detectio...
Application of machine learning and cognitive computing in intrusion detectio...
 
Internet of things - 3/4. Solving the problems
Internet of things - 3/4. Solving the problemsInternet of things - 3/4. Solving the problems
Internet of things - 3/4. Solving the problems
 
Cyclone DDS Unleashed: Scalability in DDS and Dealing with Large Systems
Cyclone DDS Unleashed: Scalability in DDS and Dealing with Large SystemsCyclone DDS Unleashed: Scalability in DDS and Dealing with Large Systems
Cyclone DDS Unleashed: Scalability in DDS and Dealing with Large Systems
 
Simulation of Heterogeneous Cloud Infrastructures
Simulation of Heterogeneous Cloud InfrastructuresSimulation of Heterogeneous Cloud Infrastructures
Simulation of Heterogeneous Cloud Infrastructures
 
Daamen r 2010scwr-cpaper
Daamen r 2010scwr-cpaperDaamen r 2010scwr-cpaper
Daamen r 2010scwr-cpaper
 
Multilin™ Intelligent Line Monitoring System
Multilin™ Intelligent Line Monitoring SystemMultilin™ Intelligent Line Monitoring System
Multilin™ Intelligent Line Monitoring System
 
Primary mirror edge sensor project for the Southern African Large Telescope
Primary mirror edge sensor project for the Southern African Large TelescopePrimary mirror edge sensor project for the Southern African Large Telescope
Primary mirror edge sensor project for the Southern African Large Telescope
 
EP-4221 -Chapter5.I(1).pptx
EP-4221 -Chapter5.I(1).pptxEP-4221 -Chapter5.I(1).pptx
EP-4221 -Chapter5.I(1).pptx
 
Using Apache Pulsar to Provide Real-Time IoT Analytics on the Edge
Using Apache Pulsar to Provide Real-Time IoT Analytics on the EdgeUsing Apache Pulsar to Provide Real-Time IoT Analytics on the Edge
Using Apache Pulsar to Provide Real-Time IoT Analytics on the Edge
 
Using Apache Pulsar to Provide Real-Time IoT Analytics on the Edge_David
Using Apache Pulsar to Provide Real-Time IoT Analytics on the Edge_DavidUsing Apache Pulsar to Provide Real-Time IoT Analytics on the Edge_David
Using Apache Pulsar to Provide Real-Time IoT Analytics on the Edge_David
 
Surge 2013: Maximizing Scalability, Resiliency, and Engineering Velocity in t...
Surge 2013: Maximizing Scalability, Resiliency, and Engineering Velocity in t...Surge 2013: Maximizing Scalability, Resiliency, and Engineering Velocity in t...
Surge 2013: Maximizing Scalability, Resiliency, and Engineering Velocity in t...
 
A Virtual Infrastructure for Mitigating Typical Challenges in Sensor Networks
A Virtual Infrastructure for Mitigating Typical Challenges in Sensor NetworksA Virtual Infrastructure for Mitigating Typical Challenges in Sensor Networks
A Virtual Infrastructure for Mitigating Typical Challenges in Sensor Networks
 
Wireless sensor network applications
Wireless sensor network applicationsWireless sensor network applications
Wireless sensor network applications
 
Network_Intrusion_Detection_System_Team1
Network_Intrusion_Detection_System_Team1Network_Intrusion_Detection_System_Team1
Network_Intrusion_Detection_System_Team1
 
Network_Intrusion_Detection_System_Team1
Network_Intrusion_Detection_System_Team1Network_Intrusion_Detection_System_Team1
Network_Intrusion_Detection_System_Team1
 
Real Time Monitoring and Electro Magnetic Interference causing Data corruption
Real Time Monitoring and Electro Magnetic Interference causing Data corruptionReal Time Monitoring and Electro Magnetic Interference causing Data corruption
Real Time Monitoring and Electro Magnetic Interference causing Data corruption
 
( KEVIN SONI )DATA ACQUISITION SYSTEM
( KEVIN SONI )DATA ACQUISITION SYSTEM ( KEVIN SONI )DATA ACQUISITION SYSTEM
( KEVIN SONI )DATA ACQUISITION SYSTEM
 

Mehr von Pradeep Kumar TS

Digital Portfolio and Footprint
Digital Portfolio and FootprintDigital Portfolio and Footprint
Digital Portfolio and FootprintPradeep Kumar TS
 
Software Define Networking (SDN)
Software Define Networking (SDN)Software Define Networking (SDN)
Software Define Networking (SDN)Pradeep Kumar TS
 
What next - Career Enhancement of Graduates
What next - Career Enhancement of GraduatesWhat next - Career Enhancement of Graduates
What next - Career Enhancement of GraduatesPradeep Kumar TS
 
Higher Order Thinking - Question paper setting
Higher Order Thinking - Question paper settingHigher Order Thinking - Question paper setting
Higher Order Thinking - Question paper settingPradeep Kumar TS
 
IoT Communication Protocols
IoT Communication ProtocolsIoT Communication Protocols
IoT Communication ProtocolsPradeep Kumar TS
 
RPL - Routing Protocol for Low Power and Lossy Networks
RPL - Routing Protocol for Low Power and Lossy NetworksRPL - Routing Protocol for Low Power and Lossy Networks
RPL - Routing Protocol for Low Power and Lossy NetworksPradeep Kumar TS
 
Recompiling network simulator 2
Recompiling network simulator 2Recompiling network simulator 2
Recompiling network simulator 2Pradeep Kumar TS
 
OTcl and C++ linkages in NS2
OTcl and C++ linkages in NS2OTcl and C++ linkages in NS2
OTcl and C++ linkages in NS2Pradeep Kumar TS
 
Wired and Wireless Examples in ns2
Wired and Wireless Examples in ns2Wired and Wireless Examples in ns2
Wired and Wireless Examples in ns2Pradeep Kumar TS
 
Software Defined Networking - 1
Software Defined Networking - 1Software Defined Networking - 1
Software Defined Networking - 1Pradeep Kumar TS
 
Software Defined Networking - 2
Software Defined Networking - 2Software Defined Networking - 2
Software Defined Networking - 2Pradeep Kumar TS
 
Software Defined Networking - 3
Software Defined Networking - 3Software Defined Networking - 3
Software Defined Networking - 3Pradeep Kumar TS
 

Mehr von Pradeep Kumar TS (20)

Digital Portfolio and Footprint
Digital Portfolio and FootprintDigital Portfolio and Footprint
Digital Portfolio and Footprint
 
Open book Examination
Open book ExaminationOpen book Examination
Open book Examination
 
Software Define Networking (SDN)
Software Define Networking (SDN)Software Define Networking (SDN)
Software Define Networking (SDN)
 
What next - Career Enhancement of Graduates
What next - Career Enhancement of GraduatesWhat next - Career Enhancement of Graduates
What next - Career Enhancement of Graduates
 
Protothreads
ProtothreadsProtothreads
Protothreads
 
6LoWPAN
6LoWPAN 6LoWPAN
6LoWPAN
 
Software Defined Networks
Software Defined NetworksSoftware Defined Networks
Software Defined Networks
 
Higher Order Thinking - Question paper setting
Higher Order Thinking - Question paper settingHigher Order Thinking - Question paper setting
Higher Order Thinking - Question paper setting
 
IoT Communication Protocols
IoT Communication ProtocolsIoT Communication Protocols
IoT Communication Protocols
 
IoT Applications
IoT ApplicationsIoT Applications
IoT Applications
 
RPL - Routing Protocol for Low Power and Lossy Networks
RPL - Routing Protocol for Low Power and Lossy NetworksRPL - Routing Protocol for Low Power and Lossy Networks
RPL - Routing Protocol for Low Power and Lossy Networks
 
Recompiling network simulator 2
Recompiling network simulator 2Recompiling network simulator 2
Recompiling network simulator 2
 
OTcl and C++ linkages in NS2
OTcl and C++ linkages in NS2OTcl and C++ linkages in NS2
OTcl and C++ linkages in NS2
 
Wired and Wireless Examples in ns2
Wired and Wireless Examples in ns2Wired and Wireless Examples in ns2
Wired and Wireless Examples in ns2
 
Installation of ns2
Installation of ns2Installation of ns2
Installation of ns2
 
Introduction to ns2
Introduction to ns2Introduction to ns2
Introduction to ns2
 
Software Defined Networking - 1
Software Defined Networking - 1Software Defined Networking - 1
Software Defined Networking - 1
 
Software Defined Networking - 2
Software Defined Networking - 2Software Defined Networking - 2
Software Defined Networking - 2
 
Software Defined Networking - 3
Software Defined Networking - 3Software Defined Networking - 3
Software Defined Networking - 3
 
Tracing and awk in ns2
Tracing and awk in ns2Tracing and awk in ns2
Tracing and awk in ns2
 

Kürzlich hochgeladen

Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Matt Ray
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationBradBedford3
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentationvaddepallysandeep122
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Natan Silnitsky
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Developmentvyaparkranti
 

Kürzlich hochgeladen (20)

Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion Application
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentation
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 
Odoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting ServiceOdoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting Service
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Development
 

Mannasim for NS2

  • 1. Mannasim - a Sensor network simulator T S Pradeep Kumar, VIT Chennai http://www.nsnam.com
  • 2. 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
  • 3. 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
  • 4. 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
  • 5. 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.
  • 6. TCL Parameters • 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)
  • 7. TCL - Access point details • 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.
  • 8. TCL - Cluster Head Configuration • 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.
  • 9. 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).
  • 10. Common Node configuration • 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.
  • 11. Common Node configuration • 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
  • 12. 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)
  • 13. 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
  • 14. 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
  • 15. 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