You are on page 1of 5

2009 Fifth International Conference on Networking and Services

Survey of Wireless Sensor Networks Simulation Tools for Demanding


Applications

Marko Korkalainen, Mikko Sallinen, Niilo Kärkkäinen, Pirkka Tukeva


VTT – Technical Research Centre of Finland, Kaitoväylä 1, FI-90570 Oulu, Finland,
Marko.Korkalainen@vtt.fi

Abstract We selected the tools based on the information


obtained from the references about the properties of
Requirements for Wireless Sensor networks will the tools for simulations, popularity of the tool among
increase in the future. Requirements are demanding, research communities, the possible extensions for
especially in industrial real time networks which WSN and the active maintenance or support available.
require high reliability and performance. Network
simulation tools are often needed in the network 2. Requirements of the Modeling
design phase before actual implementation. In this
paper, we selected 5 common wireless sensor networks Simulation of wireless control systems needs
simulation tools and estimated their suitability for detailed modeling of real time properties of the nodes
high-performance network planning and verification. and detailed environment and radio models to obtain
According to the study, some tools managed the realistic enough results. Figure 1 illustrates the sensor
requirements for demanding simulation but needed node features that we require the simulation tool to
some extension. model.

Keywords: simulation, sensor networks, real-time, (node1 OS) (node2 OS)


modeling latency 1 ttotal latency 2
Application Application

1. Introduction t1 Routing Routing t4

MAC MAC
Wireless sensor networks (WSN) are one of the t2 t3
most actively developing areas in network research PHY PHY

communities. As the technologies for wireless nodes


t medium
improve, the requirements for networking are
increasing. That enables possibilities for new
Wireless
applications. To reduce costs and time of the Medium
deployment process, simulation of the network is a
preferred task before testing with real hardware. ttotal = t 1 t2 t medium t3 t 4 + latency 1 + latency 2
In this paper, we review 5 WSN simulation tools to
Figure 1. Wireless network layer model
find out how suitable they are for demanding
modeling and simulation. Modeling task includes real-
In figure 1, sensor node 1 sends a message to
time, energy efficiency and routing protocol
sensor node 2 which receives and processes it after a
simulation and accurate radio modeling with 3D
time delay ttotal. ttotal is the most important quantity
definition of the indoor or outdoor environment. The
since it determines the response time of the network.
simulator should allow dynamic environment changes
The latencies between possible node operating
with moving sensor nodes or obstacles. To simplify
systems, e.g., TinyOS [1] and application layers, are
simulation of the software development code, it should
built up by software execution in the nodes.
be interchangeable between the sensor node platform
Modeling of the routing layer is needed to evaluate
and the simulator. The target applications are wireless
the effect of different routing protocols and network
indoor and outdoor control systems and data
topologies on network operation and delay.
acquisition networks.
MAC and physical layer model a specific radio
system including the delays they produce. An example

978-0-7695-3586-9/09 $25.00 © 2009 IEEE 102


DOI 10.1109/ICNS.2009.75

Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY ROURKELA. Downloaded on June 04,2010 at 12:08:24 UTC from IEEE Xplore. Restrictions apply.
of this is 802.15.4 type MAC, commonly used for kernel simulations but it is not included in NS-2
sensor networks, that also defines the physical layer. release [4].
The physical layer handles data transmission and NS-2 does not have good scalability for large
reception. It is usually interfaced with a wireless sensor networks since exponential simulation time
medium model that estimates the radio signal slowdown. The simulator lacks an application model
strength, quality and delay between the transmitter and is provided with protocols, hardware models and
and receiver unit. sensing support that are quite different from those
used in sensor nodes. There are a great number of
3. Reviewed modeling tools public extensions available and the active development
process of the simulator raises the risk of bugs and
We made the reviews based on published or inaccurate or faulty results in simulations. To avoid
publicly available information about the simulation this, NS-2 maintains a list of verified simulation
tools. A summary table will be shown at the end of the models on its homepage. [2, 5]
section.
3.2 OMNeT++
3.1 NS-2
OMNeT++ is a public source component-based
NS-2 is a very popular general purpose discrete discrete event network simulator [6]. The simulator
event simulation tool for sensor networks [2]. mainly supports standard wired and wireless IP
Currently, NS-2 is actively maintained and used in communication networks, but some extensions for
academic research since it is easily extendable and WSN exist. Like NS-2, OMNeT++ is popular,
based on open source. extensible and actively maintained by its user
For mobile sensor networks, the simulator has community in the Academia who has also produced
support for 802.11 and 802.15.4 type wireless MAC. extensions for WSN simulation.
The latter is more suitable for sensor networks since it OMNeT++ uses C++ language for simulation
includes some basic energy modeling and is more models. Simulation models (modules) are assembled
close to those used in common sensor nodes. with high-level language NED into larger components
Sensor node routing algorithm support covers to represent greater systems. The simulator has
standard wireless IP network ad hoc protocols. The graphical tools for simulation building and evaluating
simulator can arrange simple mobility to simulations. results in real time [7].
More complex mobility can be imported from external OMNeT++ is capable of running most TinyOS
applications like BonnMotion and Bonntraffic [3]. simulations by NesCT application that converts
NS-2 simulations are written with C++/C and TinyOS source to simulator compatible C++ code [8].
OTCL languages. Protocols and simulation library are NesC simulation code interchange between sensor
written in C++/C, while OTCl works as the control platforms is possible but only in a restricted sense,
language to create the simulation environment. because the protocol and hardware implementation in
Simulations can be observed graphically by Network the simulator is simplified, and not all hardware is
AniMator (NAM). After compiling the simulation supported. The simulator scales well for very large
source to executable and running it to generate trace scale network topologies being limited by memory
files, simulation results can be observed graphically by capacity of the computer used [9]. OMNet++ can not
using Network AniMator (NAM). model OS-application layer execution time delays.
Simulations, wireless channel models and Delays for lower layers, e.g., MAC and wireless
omnidirectional antennas are defined in two channel, are definable. Without the proper simulation
dimensional free space that excludes detailed model or framework extensions, the simulator lacks
environment modeling taking into account the effect suitable protocols and proper energy modeling for
of obstacles and structures. Basic sensor node energy sensor networks, since basic support is mainly for IP
modeling is simplified to radio receive, send and idle networks.
states. NS-2 has no capability to model real-time OS EYES framework for OMNeT++ is written for self-
or application code execution delays. Delays in MAC organizing and collaborative energy-efficient sensor
and wireless channel level can be defined. RT-sim networks. EYES enables two-dimensional definition
extension for NS-2 implements support for real-time of the simulation map with different failing and error

103

Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY ROURKELA. Downloaded on June 04,2010 at 12:08:24 UTC from IEEE Xplore. Restrictions apply.
probabilities on different regions of the map caused Prowler has been used for WSN routing protocol
e.g. by obstacles and fading. [10] energy cost analysis, delivery rate and packet delay
Castalia [11] is the most recent general purpose analysis [14]. Suitable application areas for Prowler
simulation environment for sensor networks and built are communication and routing protocol development,
on OMNeT++ platform. Castalia is modular and debugging, optimization, parameter tuning and
extensible. Its strongest features are accurate wireless arbitrary application prototyping.
channel and radio modeling, including MAC.
3.4 TOSSIM
3.3 Prowler
TinyOS [1] is an open-source operating system
Prowler is an event-driven wireless network specially developed for the wireless embedded sensor
simulator designed to run in Matlab environment. The networks. There are few hardware platforms available
simulator, written originally to simulate Berkeley for TinyOS, some commercial and some non-
MICA motes, is extendable also for more general commercial. TinyOS release includes a simulator
platforms. Prowler is implemented in Matlab language called TOSSIM. It is built especially for Berkeley
(m-file) which makes direct simulation code, e.g., Mica Mote platform.
routing protocol or application, interchange between Developers had set four requirements for TOSSIM:
simulator and sensor platforms impossible. Benefits scalability, completeness, fidelity and bridging. To be
gained from Matlab environment are easy prototyping scalable, a simulator should manage networks of
of applications, integration of different optimization thousands of nodes in a wide variety of configurations.
algorithms, GUI interface and good visualization To achieve this, each node in TOSSIM is connected in
capabilities [12]. a directed graph where each edge has a probabilistic
The simulator has a deterministic mode that can be bit error. For completeness, a simulator must capture
used for e.g., application code testing and probabilistic behavior and interactions of a system at a wide variety
mode for wireless communication channel and sensor of levels. And for fidelity, a simulator must capture
node low-level protocol simulations. Prowler scales behavior of a network with a subtle timing of
well to simulate an arbitrary number of sensor nodes interactions on a mote and between motes.
with any kind of application, and dynamic topology Requirement for bridging is met as the simulated code
changes are possible. Prowler is capable of simulating runs directly in a real mote. [15]
the radio transmission, propagation, reception TOSSIM is an emulator rather than a simulator, as
including collisions in ad hoc radio networks, and the it runs actual application code. Simulated application
operation of the MAC-layer. The radio models are code can be transferred directly to the platform, but it
based on specific signal strength calculations might not run in a mote as it runs in a simulation due
combined with random errors [12]. Modeling support to the simplifying assumptions in TOSSIM. One
for simulation e.g., application, and radio propagation inaccuracy source in simulation is TOSSIM’s
is provided by m-file plug-ins. probabilistic bit error model for the wireless medium.
Prowler is well suited for protocol and algorithm This makes TOSSIM efficient and scalable but on the
development, and it also can provide e.g., QoS metrics other hand, makes TOSSIM unusable in evaluating
on the performance of the tested application. Prowler low-level protocols. Another simplifying limitation is
does not have sensor node energy modeling and needs that every node must run the exact code. While
an extension for that. Also, only one TinyOS MAC TOSSIM simulates a mote’s hardware, including
protocol has been implemented by default [13]. A digital I/O, ADC and sensors, it does not model the
publicly available simulator user guide and physical phenomena that are sensed. One drawback in
documentation is unavailable currently. Prowler does TOSSIM is a lack of energy consumption modeling
not provide several radio propagation models, only which is quite important in wireless sensor networks.
two have been implemented. The transceiver wireless [15, 5, 16]
channel error models are defined in 2D space, so no When considering high performance real time
3D enclosed space simulations can be made without simulations, one source of error is zero assumed
modifications. No detailed antenna modeling is execution time of application code. Only the time
included in the Prowler package. instants of events that trigger code execution have
Prowler has good extensibility via plug-ins. After been tied to the clock frequency of a sensor node [15].
creating modifications to existing simulation models,

104

Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY ROURKELA. Downloaded on June 04,2010 at 12:08:24 UTC from IEEE Xplore. Restrictions apply.
Also, interrupt handling is simplified (overlapped Recent versions also include wide possibilities for
interrupts are not registered if one is pending). wireless network simulations including support for
There are few extensions for TOSSIM. The most Zigbee compatible 802.15.4 MAC. Strength of
important of those are TinyViz, a visualization tool OPNET in wireless network simulations is the
and PowerTOSSIM, an energy consumption modeling accurate modeling of the radio transmission. Different
add-on [16]. A wireless propagation model and RF characteristics of physical-link transceivers, antennas
physical stack better suitable for IEEE 802.15.4 and antenna patterns are modeled in detail. With
standard is introduced to increase the accuracy of Wireless suite for Defence extension OPNET can
wireless simulation results [17]. Also, TOSSIM model 3D outdoor scenarios and take into account
provides communication services for interacting with different kinds of obstacles like terrain shape and
other applications. External programs can connect to buildings [19]. OPNET can also be used to define
TOSSIM via TCP socket to monitor and actuate to a custom packet formats. A weak point is that there
running simulation [15]. exists only a few ready models for recent wireless
systems. [18, 20].
3.5 OPNET OPNET uses a hierarchical model to define each
aspect of the system. Hierarchical structure is divided
OPNET Modeler is a discrete event, object into three levels. The top level consists of the project
oriented, general purpose network simulator. Modeler editor, where network topology is designed. The next
was introduced in 1987 as the first commercial level is the node level, where individual network
network simulator [18]. Originally, the software was nodes and data flow models are defined. A third level
developed for military purposes, but it has grown to be is the process editor, which uses a finite state machine
the world’s leading commercial network simulation approach to support specification of protocols,
and modeling tool. [18] OPNET is a large and resources, applications and queuing policies. Finally, a
powerful software with a wide variety of possibilities. simulation tool is included to support the three higher
OPNET can be used as a research tool and also as a levels. OPNET also has so-called ESD (External
network design/analysis tool. System Domain) for communicating with external
OPNET was originally built for the simulation of software and systems. Via ESD external software can
fixed networks, and therefore, it contains extensive exchange data and influence running simulation in
libraries of accurate models from commercially OPNET. [18, 20]
available fixed network hardware and protocols.

Table 1. Summary about reviewed simulation tools


NS-2 OMNeT++ Prowler OPNET TOSSIM
License GPL academic,commercial academic commercial open source
TinyOS (Berkeley Mica
Sensor platform support universal universal, (TinyOS) universal, TinyOS universal
Mote)
Simulation code support C++,C C++,C,(nesC) m-file C, C++ C,C++,nesC
Simulation code exportable (protocols, etc.) limited limited, (NesC yes) no limited yes
fair (some
Scalability to large networks (n>100) good excellent excellent excellent
cases)
Protocol design/opimization possible possible possible possible possible
Mobile network simulation yes yes yes yes no
Dynamic network topotology change
yes yes yes yes no
possible
Real-time OS/SW execution time modelling no no no no limited
Needs extensions for proper WSN simulation yes yes yes yes yes
Custom extensions can be written yes yes yes yes yes
3D radio modelling no no no yes no
Mobile network simulation yes yes yes yes no
802.11, 802.11, 802.16, UMTS,
802.15.4, 802.11, fair (ad hoc 802.15.4, fair (ad SMART MAC, 802.15.4.
Standard MAC and routing support CSMA, primitive
DSDV, DSR, routing) hoc routing) AODV, DSR, GRP,
TORA, AODV OLSR, OSPFv3, TORA
primitive / TX, primitive / TX, RX,
Standard energy modelling (battery/radio) primitive primitive / TX, idle, sleep none
RX, idle sleep
energy
energy models,
models, Plugins for energy
Publicly available extensions for WSN protocols, SensorSim, Several under license TinyViz, PowerTOSSIM
protocols, models, protocols
EWSNSIM, Castalia
SensorSim
shadowing, free space, 2-ray free space, CCIR, Hata,
probabilistic,
Implemented radio models 2-ray ground, ground (experimental, Longley-Rice, TIREM, probabilistic bit error
deterministic
free space Castalia) Walfish-Ikegami

105

Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY ROURKELA. Downloaded on June 04,2010 at 12:08:24 UTC from IEEE Xplore. Restrictions apply.
4. Analysis and conclusions [3] BonnMotion mobility framework, Available from:
http://web.informatik.uni-
bonn.de/IV/Mitarbeiter/dewaal/BonnMotion/
Five commonly used WSN modeling tools were [4] Pagano P, Prashant Batra, Lipari G, “ A Framework
presented and a summary table about their features for Modeling Operating System Mechanisms in the
was shown, see table 1. Simulation of Network Protocols for Real-Time
We found that the presented WSN simulators, Distributed Systems”, Parallel and Distributed
e.g., NS-2 and OMNeT++, need to be extended or Processing Symposium, 2007.
modified for more accurate WSN simulation. [5] David Curren, “A Survey of Simulation in Sensor
Default-supplied protocols, energy models, physical Networks”, Univ. of Binghamton,
bj92489@binghamton.edu
layer and environment models are too simplified or
[6] C. Mallanda, A. Suri, V. Kunchakarra, S.S. Iyengar,
of the wrong type. Also many of the simulators are R. Kannan, and A. Durresi, ”Simulating Wireless
developed for a specific modelling task in which they Sensor Networks with OMNeT++”
are accurate and appropriate (e.g., only a certain type [7] Omnest network simulation, Available
of routing protocol, MAC, energy or physical model http://www.omnest.com/network-simulation.php
has been implemented). [8] [Omnet++ Discrete event simulation system,
All reviewed simulators allow custom extensions Available from: http://www.omnetpp.org/,
to be written or downloaded from Internet for better [9] http://ctieware.eng.monash.edu.au/twiki/bin/view/Sim
WSN modeling. Commercial simulator OPNET, ulation/OMNeTppComparison
[10] EYES WSN Simulation Framework, Available from:
offers better support, maintenance and proven
http:// www.ses.cs.utwente.nl/ewsnsim
simulation models. [11] Castalia: A Simulator, Available from:
Very high performance real time simulations that http://castalia.npc.nicta.com.au/
include operating system and application layer code [12] Prowler network simulator, Available from:
execution delays are impossible with the presented http://www.isis.vanderbilt.edu/Projects/nest/prowler
simulators without extensions or use of external [13] Thomas W. Carley, “Sidh: A Wireless Sensor
software. Network Simulator”, University of Maryland at
Mobile network simulations and dynamic College Park
topology changes are possible in all of the simulators [14] Guoliang Xing, Chenyang Lu, Robert Pless ,
“Minimum Power Configuration in Wireless Sensor
excluding TOSSIM. When considering scalability to
Networks”
large networks NS-2 lags behind the other reviewed [15] Levis P., Lee N., “TOSSIM: A Simulator for TinyOS
simulators. Networks”, pal@cs.berkeley.edu, September 17, 2003
Simulation code exportation, e.g., C/C++ or [16] Shnayder V., Hempstead M., Bor-rong C., Allen
TinyOS routing algorithm or application, to sensor G.W., Welsh M. (2004), “Simulating the Power
node is easiest from commercial platform dependent Consumption of Large-Scale Sensor Network
TinyOS emulators, e.g., TOSSIM since they run Applications”, SenSys ’04, November 3-5, 2004,
most application code used on sensor nodes. In Baltimore, Maryland, USA.
general purpose platform independent simulators, [17] Suh C., Joung J-E., Ko Y-B. (2007), “New RF
Models of the TinyOS Simulator for IEEE 802.15.4
e.g., NS-2 C/C++, source code interchange is
Standard”, IEEE Communications Society, WCNC
possible when required interfaces and libraries are 2007 proceedings.
implemented on the target platform and the [18] http://www.opnet.com/solutions/brochures/Modeler.p
simulator. df (Read 5.2.2008)
All presented modeling tools lack detailed [19]http://www.opnet.com/solutions/network_rd/modeler_
environment modeling. Excluding the OPNET radio wi reless_defense.html (Read 10.2.2008)
models are defined in two-dimensional space. None [20] Prokkola, J.(2006), “OPNET – Network simulator”,
of the presented simulators is capable of 3D indoor VTT Technical Research Center of Finland
simulation without modifications.

5. References
[1] TinyOS, Available from: http://www.tinyos.net
[2] The Network Simulator – ns-2, Available from:
http://www.isi.edu/nsnam/ns

106

Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY ROURKELA. Downloaded on June 04,2010 at 12:08:24 UTC from IEEE Xplore. Restrictions apply.

You might also like