several simulation tools (Nayyar and Singh, 2015) are
proposed to test and analyse the performance of the
proposed techniques, protocols, and solutions. They
have many advantages like low cost, easy develop-
ment, giving real-time results, and detecting the posi-
tive and negative effects on the entire network.
There are two types of simulations surround-
ing WSNs and RWSNs: trace-driven simulation and
discrete-event simulation. Trace-driven simulation is
an important approach in many simulation applica-
tions, especially in real-time applications. It enables
fast design evaluation by considering system models
which are derived from a sequence of observations
made on a real system. It allows users to get in-depth
details of the simulation model. But it contains sev-
eral drawbacks like increasing the complexity of the
simulation. On the other hand, discrete-event simu-
lation is used to model real-world systems that can
be divided into several logically separate processes
that autonomously progress through time. This type
of simulation is mostly used in WSNs and RWSNs
due to its ease in simulating various tasks running on
different sensor nodes, sinks, and agents (Nayyar and
Singh, 2015), (Rouainia et al., 2022).
We can evaluate and compare the simulators of
WSNs and RWSNs using a set of parameters includ-
ing the following: the type of simulator which is clas-
sified into three categories: generic, code level, and
firmware simulator, the license which can be commer-
cial or open-source, the platform which is the operat-
ing system on which the simulator operates such as
Windows, Linux, or both, and WSN platforms which
are defined in terms of sensors types and platforms
which can be simulated by the simulator (Nayyar and
Singh, 2015).
In this paper, we propose a new simulator
RWSNSim to construct WSNs and RWSNs, save them
in a database, use two routing protocol (LEACH
and WBM-TEEN), plot the simulation graph, present
an execution report for each monitoring time, draw
the resulting line charts after the simulation, and
compare between the different networks and simu-
lations (RWSNSim, 2022). It permits also to apply
the methodology proposed in (Rouainia et al., 2022)
which is a new energy efficient and fault tolerant
methodology based on a multi-agent architecture in
RWSNs using mobile sink nodes, mobility, resizing,
and test packet technique. The proposed simulator is
considered as a discrete-event simulator.
The rest of the paper is organized as follows. Sec-
tion 2 presents the related works. The new simulator
is developed in Section 3. Section 4 exposes a case
study executed by RWSNSim. Finally, the conclusion
is drawn in Section 5.
2 RELATED WORKS
Several WSNs simulation tools have been proposed
by academic and commercial communities (Nayyar
and Singh, 2015), (Rajan et al., 2015). In this section,
we will discuss some of the most important work in
this field.
RWiN-Environment (RWiN, 2016) is a graphical
tool developed to evaluate the services of the RWiN-
Methodology which is proposed to analyse, construct,
develop, and verify an RWSN system in order to re-
duce the consumed energy by the network (Grichi
et al., 2016a), (Grichi et al., 2016b).
Network Simulator-3 (NS-3) (NS3, 2022) is a
discrete-event simulator for Internet systems. It was
launched in June 2008 as an open-source project.
It is free, targeted primarily at research and educa-
tional uses, licensed under the GNU GPLv2 license,
and maintained by a worldwide community. Net-
work Simulator-3 is written in C++ language and
python. The simulations executed in NS-3 can be im-
plemented using pure C++ with optional python bind-
ings. It can work in various operating system plat-
forms like Linux and Windows via Cygwin. The lat-
est version of NS-3 is NS-3.35 which is released in
October 1, 2021. It provides several improvements
compared to previous versions like IPv6 support for
NixVectorRouting and a group mobility helper.
OMNet++ (OMNeTPP, 2019) is a powerful
object-oriented discrete-event simulator. It can be
used for the simulation of computer networks, dis-
tributed and parallel systems, modeling of multipro-
cessors, and performance evaluation of complex soft-
ware systems. It was launched in September 1997
and has a large number of users in academic, ed-
ucational, and research-oriented commercial institu-
tions. Indeed, OMNeT++ is not a simulator, but
it permits writing simulation scenarios using several
frameworks and tools. It is considered as an extensi-
ble, modular, and component-based open-architecture
simulation framework implemented using C++ pro-
gramming language. It provides an extensive graph-
ical user interface (GUI) and intelligence support.
OMNET++ distributions are available for different
operating systems like Windows, Linux, and MAC
OS X. The latest version of OMNeT++ is 5.7 which
is released in October 6, 2021 and is intended to be
the last release of the 5.x series.
JavaSim (J-Sim) simulator (JSim, 2022) is
an object-oriented simulation package based upon
C++SIM started in year 1997. It is considered as a
general purpose simulator used by many commercial
and academic organizations. J-Sim is a platform open
source, free, extensible, neutral, and reusable because
ICSOFT 2022 - 17th International Conference on Software Technologies
350