Simulation is heavily used in WSN research, but results are only as realistic as the models that they are built around. To ensure a close correlation between simulation and practical results, this research has developed communication, sensing, energy and timing models. WSNsim (a simulator for WSNs) has been developed as a model-centric simulator built around a structured âunifiedâ stack for communications, energy management and intelligent sensing.
WSNsim: A Simulator for WSNs
WSNsim (Wireless Sensor Network Simulator) was developed to debug, evaluate and improve algorithms developed at the University. WSNsim is an in-house object orientated discrete-event simulator for WSNs, developed using Microsoft Visual Studio .net 2005 (due to limited support and documentation, it is not currently available as open-source).
As shown above, WSNsim gives considerable emphasis to the range of environmental and physical models that it encompasses. Furthermore, the use of a âunifiedâ stack for communications, energy management and intelligent sensing further increase the attention that WSNsim gives to these areas, while also allowing the simulation of code designed using a structured layered process.
Environmental and Physical Modelling
To support WSNsim, a range of environmental and physical models were investigated, encompassing communication, energy, sensing and timing.
The communication model considers both path loss (using an empirical path loss model) and packet reception (by considering BERs at a per-byte level). Energy models are proposed for energy stores (batteries and supercapacitors), energy sources (photovoltaics and vibration energy harvesters), and energy consumers (radio transceivers, microcontrollers, and peripherals).
Sensor models account for errors and inaccuracies in sensed data by modelling the sensor hardware. Timing models consider the differences between the âtrueâ time, and the nodesâ perceptions of time.