A Simulation Template For Wireless Sensor Networks: Stefan Dulman, Paul Havinga
A Simulation Template For Wireless Sensor Networks: Stefan Dulman, Paul Havinga
A Simulation Template For Wireless Sensor Networks: Stefan Dulman, Paul Havinga
Networks
Stefan Dulman, Paul Havinga
EEMCS Faculty, University of Twente, the Netherlands
Emails: {dulman,havinga}@cs.utwente.nl
Abstract— In this paper we introduce a new simulation tem- II. T EMPLATE DESCRIPTION
plate for wireless mobile sensor networks. It is built upon the
OMNeT++ networks simulator and it contains the main features
In this section we will briefly introduce the OMNeT++
needed for simulating large ad-hoc networks of autonomous simulator and then the main characteristics of the template
mobile nodes with sensing capabilities. Simulations can be per- we are developing.
formed both for the networking issues and for various distributed
algorithms. A. OMNeT++ simulator
The template provides besides the easy integration of new code, The OMNeT++ simulator is a simulator originally designed
a graphical interface useful for debugging or illustration purposes for fixed, wired, distributed systems (such as: computer net-
and a collection of tools that help modifying or implementing new
features in an easy fashion.
works, multiprocessor systems,etc.). Its main features are:
The code is still under development. This paper gives an outline • it is a discrete time simulator. The simulated objects
of what the template presently offers and on what features are communicate with each-other by exchanging messages
planned to be added to it. at discrete moments of time;
• it is written in C++ and Tcl/Tk. One of the main advan-
I. I NTRODUCTION tages is the code portability: it runs on DOS, UNIX and
WINDOWS without requesting the user to perform any
In this paper we introduce a new simulation template for changes;
wireless mobile sensor networks [2]. It is built upon the • several graphical interfaces allows easy debugging and
OMNeT++ networks simulator [3] and it contains the main variables inspection. It also offers support for recording
features needed for simulating large ad-hoc networks of au- data vectors and scalars in output files;
tonomous mobile nodes with sensing capabilities. The wireless • it offers support for parallel execution;
sensor networks are a particular example of autonomous • simulated objects are represented by modules. The mod-
decentralized systems. They are made up of hundreds of sensor ules can be simple or composed (depth of module nesting
nodes (having limited resources) that organize themselves into is not limited). The modules communicate by messages
an ad-hoc network. There is no central server to control this (sent directly or via gates). Each module description
network. consists of: an interface description and a behavior de-
We have designed our template because the OMNeT++ scription;
simulator does not include support for mobile networks that • several random number generators (also from several
communicate using radios. We chose to design this framework distributions) with different starting seeds;
in such a way that allows easy modifications of the main • simulations are easy to configure using .ini file. Batch
parameters and, at the same time, the implementation details execution of the same simulation for different parameters
are transparent to the user. is also included.
The template provides besides the easy integration of new All the simulated objects (modules, gates and links) can be
code a graphical interface useful for debugging or illustration created either statically (at the beginning of the simulation,
purposes and a collection of tools that help modifying or from the configuration files), or dynamically (during the sim-
implementing new features in an easy fashion. The code is ulation).
still under development. This paper gives an outline of what
the template presently offers and on what features are planned B. Wireless Sensor Network Simulation Template
to be added to it. Our template is, in fact, a fully working project consisting of
This work is performed as a part of the European EYES a network of mobile nodes that can communicate by wireless
project (IST-2001-34734) on self-organizing and collaborative means.
energy-efficient sensor networks. It addresses the convergence The user has to write the code for his own protocols and to
of distributed information processing, wireless communication integrate it into the template (we provide tools that generate
and mobile computing [1]. Part of the code was developed empty modules where this code should reside). Then the
while visiting the Telecommunication Networks Group from user has to specify the general network parameters and the
the Technical University of Berlin. simulations can start.
Fig. 2. Sensor Node Description
Fig. 1. Simulation Example