ArticlePDF Available

Demo Abstract: Realistic Simulation of Radio Interference in COOJA

Authors:

Abstract and Figures

Radio interference drastically affects the reliability and robustness of wireless communications. As wireless sensor network protocols are frequently designed and tested in simula-tion environments first, it is important to have simulation tools that provide means to study the impact of radio interference. Radio propagation models available in simulation environ-ments are however often too simplistic, and can hardly capture the complexity of the real world. To increase the realism of simulations, we incorporate recorded interference traces into existing simulation models. We extend the COOJA simulator with the generation of realistic interference sources in the simulation environment. We add new features, such as an interference-aware propagation model and loading of interference traces, which can be captured and recorded through a mote-based application. In our interactive demo, we show the generation of interference patterns produced by devices operating in the 2.4 GHz band such as microwave ovens, Bluetooth, and Wi-Fi. We will monitor, capture, and record the ongoing interference at runtime, and load the recorded traces in our extended COOJA version. We then show how to use the captured patterns to simulate and study the impact of radio interference on sensornet communications and routing trees.
Content may be subject to copyright.
Demo Abstract: Realistic Simulation of
Radio Interference in COOJA
Carlo Alberto Boano and Kay R¨
omer
Universit¨
at zu L¨
ubeck
L¨
ubeck, Germany
{cboano, roemer}@iti.uni-luebeck.de
Fredrik ¨
Osterlind and Thiemo Voigt
Swedish Institute of Computer Science
Kista, Stockholm, Sweden
{fros, thiemo}@sics.se
Abstract—Radio interference drastically affects the reliability
and robustness of wireless communications. As wireless sensor
network protocols are frequently designed and tested in simula-
tion environments first, it is important to have simulation tools
that provide means to study the impact of radio interference.
Radio propagation models available in simulation environ-
ments are however often too simplistic, and can hardly capture
the complexity of the real world. To increase the realism of
simulations, we incorporate recorded interference traces into
existing simulation models.
We extend the COOJA simulator with the generation of
realistic interference sources in the simulation environment. We
add new features, such as an interference-aware propagation
model and loading of interference traces, which can be captured
and recorded through a mote-based application.
In our interactive demo, we show the generation of
interference patterns produced by devices operating in the 2.4
GHz band such as microwave ovens, Bluetooth, and Wi-Fi. We
will monitor, capture, and record the ongoing interference at
runtime, and load the recorded traces in our extended COOJA
version. We then show how to use the captured patterns to
simulate and study the impact of radio interference on sensornet
communications and routing trees.
I. INT RODUCTION AND MOTI VATION
Radio interference considerably affects the reliability and
robustness of wireless communications, hence representing
a major problem in wireless sensor networks. The strong
growth of the number of devices operating in the ISM bands
increases the congestion in the radio spectrum, leading to poor
performance, packet loss, and reduced energy-efficiency [1].
As wireless sensor networks also operate on these crowded
ISM bands, it is necessary to design and develop protocols that
are robust to radio interference. Sensornet protocols are fre-
quently designed and tested in simulation environments first,
and it is therefore important to provide simulation tools that
offer accurate means to study the impact of radio interference.
Modeling radio propagation and interference is complex due
to the large number of variables involved, ranging from the
device(s) operating concurrently on the frequency of interest,
their position, modulation, and transmission scheme, to the
characteristics of the environment and the presence of moving
objects or static obstacles. In certain scenarios with an exces-
sive number of such unknown parameters, e.g. in a crowded
shopping center or lively street, the creation of models that
accurately reflect reality is therefore almost impossible.
-100
-80
-60
-40
-20
0
0 20 40 60 80 100
RSSI Noise floor [dBm]
Time [ms]
Distance 1.0 m
Distance 7.5 m
Fig. 1. Interference recorded from a sensor mote scanning channel 23
in presence of an active Lunik 200 Microwave Oven. Ovens typically emit
frequencies with a periodic pattern, and for this particular model, the period
is approximately 20 ms.
Instead of attempting to create more precise and realistic
radio models, we augment existing simulation tools with the
playback of realistic interference traces. We use off-the-shelf
sensor motes to scan the radio channel and record the
interference patterns, and we then play back the recorded
traces directly in the simulation environment. Such traces
can be added on top of any existing radio model, improving
significantly the level of realism when simulating the impact of
radio interference on sensornet protocols and communications.
II. COOJA EXTENSIONS FOR REA LI ST IC
INT ER FE RE NC E SIM UL ATION
We enrich the COOJA simulator [2] with the generation of
realistic interference sources in the simulation environment.
We upgrade the Multi-path Ray-tracer Medium (MRM)
to correctly implement co-channel rejection according to the
results of Dutta et al. [3]. Co-channel rejection is a measure
of the capability of the receiver to demodulate a wanted
modulated signal without exceeding a given degradation due
to the presence of an unwanted modulated signal. Proper
handling of co-channel rejection enables us to simulate the
correct reception of a packet in presence of interference.
Unwanted signals are represented by (pre-)recorded inter-
ference traces in COOJA. Such traces are used to improve
the realism of sensornet simulations. Using, for example,
Fig. 2. Screenshot of COOJA with the proposed application.
pre-recorded interference traces that resemble the patterns
generated by typical appliances operating in the crowded 2.4
GHz ISM band, the user can arbitrarily place a number of Wi-
Fi and Bluetooth devices as well as microwave ovens inside
the simulation environment. We assume the signal propagation
can be modeled with the widely used log-normal model [4].
III. DEM O DES CR IP TI ON
In this demo, we monitor, capture, record, and play back
the ongoing interference at runtime.
We first show how to capture interference using a high
sampling rate. We use off-the-shelf sensor nodes and measure
the RSSI noise floor, i.e., the RSSI in absence of packet
transmissions in both time and frequency.
As we are interested in detecting also short transmissions
such as Wi-Fi beacons, we boost the CPU speed, optimize the
SPI operations, and compress the RSSI noise floor readings.
We achieve a sampling frequency of approximately 60 kHz
(3.5 kHz) when scanning one (all) 802.15.4 channels. Figure 1
shows a sample interference trace recorded from a sensor mote
scanning channel 23 in presence of an active microwave oven
in the neighborhood.
To collect the RSSI noise floor readings, we attach two
sensor motes to the laptop running COOJA. We use Max-
for MTM-CM5000MSP nodes, widely used sensor motes
equipped with the CC2420 radio transceiver. The two nodes
run Contiki [5]: the first node is used to scan the channel
of interest and record the interference traces at runtime; the
second node is used to give the user a snapshot of the ongoing
interference in the whole 2.4 GHz spectrum as in [6].
We also pre-record several interference traces and build an
object library of interfering devices available as new disturber
mote types, including different models of microwave ovens as
well as Bluetooth and Wi-Fi devices.
Finally, we create several simulation environments and
show the impact of realistic radio interference on sensornet
communications and routing trees. Figure 2 shows a screenshot
of the COOJA simulation.
IV. CONCLUSIONS
In this demo we show how to monitor, capture, and record
the ongoing interference in real time using COOJA. We then
use the captured patterns to simulate and study the impact of
realistic radio interference on sensornet communications and
routing trees.
ACK NOWLEDGMEN TS
This work has been supported by the European Commission
under the contract No. FP7-2007-2-224053 (CONET, the
Cooperating Objects Network of Excellence.
This research has been also partially financed by VIN-
NOVA, the Swedish Agency for Innovation Systems, and by
the Cluster of Excellence 306/1 ”Inflammation at Interfaces”
(Excellence Initiative, Germany, since 2006).
REF ER EN CE S
[1] Axel Sikora and Voicu F. Groza. Coexistence of IEEE 802.15.4 with
other systems in the 2.4 GHz-ISM-Band. In IEEE Instrumentation and
Measurement Technology, pages 1786–1791, Ottawa, Canada, May 2005.
[2] Fredrik ¨
Osterlind, Adam Dunkels, Joakim Eriksson, Niclas Finne, and
Thiemo Voigt. Cross-level Simulation in COOJA. In Proceedings of the
4th European Conference on Wireless Sensor Networks (EWSN), Delft,
The Netherlands, January 2007.
[3] Prabal Dutta, Stephen Dawson-Haggerty, Yin Chen, Chieh-Jan Mike
Liang, and Andreas Terzis. Design and Evaluation of a Versatile and
Efficient Receiver-Initiated Link Layer for Low-Power Wireless. In
Proceedings of the 8th Conference on Embedded Networked Sensor
Systems (SenSys), Zurich, Switzerland, November 2010.
[4] Dimitrios Lymberopoulos, Quentin Lindsey, and Andreas Savvides. An
Empirical Characterization of Radio Signal Strength Variability in 3-D
IEEE 802.15.4 Networks Using Monopole Antennas. In Proceedings
of the 3rd European Conference on Wireless Sensor Networks (EWSN),
pages 326–341, Zurich, Switzerland, February 2006.
[5] Adam Dunkels, Bj ¨
orn Gr¨
onvall, and Thiemo Voigt. Contiki - a
Lightweight and Flexible Operating System for Tiny Networked Sensors.
In 1st Workshop on Embedded Networked Sensors (EmNetS), Tampa,
Florida, USA, November 2004.
[6] Carlo Alberto Boano, Kay R ¨
omer, Zhitao He, Thiemo Voigt, Marco Zu-
niga, and Andreas Willig. Generation of Controllable Radio Interference
for Protocol Testing in Wireless Sensor Networks. In Proceedings of the
7th Conference on Embedded Networked Sensor Systems (SenSys), demo
session, pages 301–302, Berkeley, California, USA, November 2009.
ACM Press.
... For a realistic simulation of wireless links, Cooja can be used with the Multipath Raytracing Model plugin, which uses a ray-tracing approach to calculate signal strengths and PRRs for the links in a network. This radio medium is widely adopted in applications aiming for realistic link simulations [17][18][19] Nowadays WSNs tend to real-world applications with much more complex dependencies on environmental conditions and individual hardware characteristics, so that factors like the influences on wireless links and possible improvements in performance or efficiency by using techniques like energy-aware scheduling or Forward Error Correction (FEC) become more and more relevant. To make use of the benefits of simulations in such scenarios, the simulation framework needs to support modelling of the factors of interest. ...
... In [17], radio interference present in the real world is implemented in Cooja, allowing the analysis of these effects on simulated networks. The authors used prerecorded signal traces from various devices which can be placed in the virtual network as source of interference, allowing an analysis of interference on communication in WSNs. ...
Article
Simulation is a common technique for the evaluation of new approaches and protocols in networked systems and provides many benefits. However, it is also well known that the relevance of the simulation results for real-world applications depends on the various models which are used within the simulation, e.g., for the characteristics of the radio communication. In this paper, we introduce the Extended Multipath Raytracing Model, an extension to the ray-tracing radio medium available in Cooja, to improve the modelling of wireless links in simulated Wireless Sensor Networks. Our extension allows the simulation of environmental influences onto links on a per node basis, allowing the analysis of various effects observed in experiments in a virtual environment. Furthermore, the packet-based modelling of transmission errors is extended to provide the simulation of bit errors, allowing new usage scenarios, like the simulation of error detection and Forward Error Correction codes in Cooja.
... Two mechanisms, Loop Avoidance (LA) and Neighbor Life Time Refresh (NLTR) are proposed respectively for above problems. In particular, using the Contiki COOJA simulator [4] available at [5][6], we evaluated the protocol reliabilities of RPL via counting packets delivery rate. The remainder of this paper is organized as follows. ...
Conference Paper
Full-text available
In this paper, we investigate the problem of reliability of RPL (IPv6 Routing Protocol for Low power and Lossy Networks) when applied to route traffic in Wireless Sensor Networks (WSNs). RPL is a routing protocol adapted for information routing with low power, low storage and processing sensor devices. However, there are two problems when RPL runs with ND (Neighbor Discovery) and uses the link metric such as ETX. First, loops may occur in some situation. Second, lack a mechanism to refresh the life time of a neighbor. In this paper, two mechanisms, Loop Avoidance (LA) and Neighbor Life Time Refresh (NLTR) are proposed to resolve these problems. The simulation results show that Loop Avoidance mechanism and the Neighbor Life Time Refresh mechanism can enhance the performance of the entire network significantly. Especially using these two mechanisms together, the performance of entire network is the best. These two mechanisms can effectively improve the reliability of RPL.
... We selected this platform because it is very similar to the well-known Tmote-Sky [17] that is used as reference in many research works, but it has more ROM memory that has allowed us to compile more complex applications. As radio medium, we used Multi-path Ray-tracer Medium (MRM) [18] and configured its parameters in order to obtain a link quality of 95% between neighbor nodes. This value was chosen in order to obtain a good link [19]. ...
Conference Paper
Full-text available
This paper presents a simple but still powerful approach for the analysis of the average power consumption of a sensor node using the IPv6 over Low power and Lossy Networks (LLN) stack, which is one of the most widely adopted and promising communication stacks. Power consumption is broken down according to the node states (i.e. CPU, IRQ, LPM, Tx, Rx) and according to the network protocols (e.g. CoAP, RPL, 6LoWPAN, Contiki MAC), identifying the relative weight of each protocol in the total energy consumption for several configurations. Results show that the Low Power Listening (LPL) mechanism of the radio duty cycling layer and RPL control messages have the highest impact on the total energy consumption, while the application's report rate has a very low impact for periods over 60 seconds.
... Both types of nodes can be used at the same time in an experiment, thus giving the possibility to run a heterogeneous network. COOJA has also support for radio link simulation, with recently added support for a more complex radio interference simulation from Wi-Fi, Bluetooth and microwaves [7]. ...
Conference Paper
Full-text available
Internet of Things (IoT) is increasingly used in a plethora of fields to enable radically new ways for various purposes, ranging from monitoring the environment to enhancing the wellbeing of human life. With the ever-increasing size of such networks, it is fundamental to understand the issues that come with scaling on different networking layers. A cost-efficient approach to examine large-scale networks is to use simulators or emulators to test the infrastructure and its ability to support the desired applications. In this paper, we investigate and compare the currently available simulation/emulation software. We found out that the current solutions are mostly appropriate for small- and medium-scale emulation, however they are not suitable for large-scale testing that reaches millions of node running concurrently. We then propose a large-scale IoT emulator called MAMMotH and present a brief overview of its design. Finally we discuss some of the current issues and future directions, e.g. radio link simulation.
... CC2420 radio chip. Furthermore, to simulate realistic interference we have used the Multipath Ray-tracer Medium (MRM) model supported by COOJA, which utilizes ray-tracing techniques to model various radio propagation effects (e.g., multi-path, refraction, diffraction, etc.) [3]. The transmitted power of each RPL node is set to the minimum value that ensures successful transmissions within a distance of 150 m if there is no interference or channel noise. ...
Conference Paper
Full-text available
To allow pervasive and distributed monitoring and control of grid devices and resources, the next-generation electricity grid needs a scalable and reliable two-way communication infrastructure, known as Advanced Metering Infrastructure (AMI). In such communication system, characterized by the interconnection of thousands of resource-constrained embedded devices, such as smart meters and intelligent electric devices (IEDs), the routing protocol plays an essential role to guarantee a timely and reliable communication service. In this paper we investigate the performance of RPL, the IPv6 routing protocol recently standardized by IETF to meet the requirements of such networks. Special emphasis is given to the analysis of route-level attributes, such as path stretch, route lifetimes, dominance, and flapping, which are used to estimate the quality and stability of the RPL routes. Our results show that RPL nodes may suffer from severe unreliability problems, mainly because RPL often selects sub-optimal paths with low quality links. Furthermore, RPL routes are strongly dominated by a single route, and this may prevent RPL from quickly adapt to link quality variations. We believe that the findings of this study may facilitate the design of new mechanisms to improve the reliability and adaptability of RPL.
... There is no classification of sources of interference. Boano et al. are using RSSI readings to improve the channel simulation [4] and to recreate interference [5]. Especially [5] gives a good overview of the possibilities of RSSI readings and the sources of interference (as in this work, WLAN, BT and MWO are researched). ...
... In the distribution, a unit disk graph model is included. There are also extensions for ray-tracing based radio medium model [67], in order to model obstacles, and a radio interference simulation model [68]. ...
Article
Full-text available
Modern design of wireless devices requires the designers to have a special focus on power consumption to prolong the battery life of the final system. The designer therefore needs power consumption information very early in the process to be able to decide on system parameters, design methods, communication protocols, functionality restrictions. Typically, this is done by running simulations of the system to be developed and performing design space exploration. However, there is a tradeoff between speed and accuracy of simulation, therefore the designer has to be aware of available tools and simulation methods he can choose from to achieve the best possible solution for his case.
Chapter
An important factor contributing to the degradation and variability of the link quality is radio interference. The increasingly crowded radio spectrum has triggered a vast array of research activities on interference mitigation techniques and on enhancing coexistence among electronic devices sharing the same or overlapping frequencies. This chapter gives an overview of the interference problem in low-power wireless sensor networks and provides a comprehensive survey on related literature, which covers experimentation, measurement, modelling, and mitigation of external radio interference. The aim is not to be exhaustive, but rather to accurately group and summarize existing solutions and their limitations, as well as to analyse the yet open challenges.
Conference Paper
This paper gives an overview of the channel access methods of three wireless technologies that are likely to be used in the environment of vehicle networks: IEEE 802.15.4, IEEE 802.11 and Bluetooth. Researching the coexistence of IEEE 802.15.4 with IEEE 802.11 and Bluetooth, results of experiments conducted in a radio frequency anechoic chamber are presented. The power densities of the technologies on a single IEEE 802.15.4 channel are compared. It is shown that the pure existence of an IEEE 802.11 access point leads to collisions due to different timing scales. Furthermore, the packet drop rate caused by Bluetooth is analyzed and an estimation formula for it is given.
Article
Full-text available
Radio interference plays a central role for the perfor- mance of Wireless Sensor Networks (WSN). Interference not only leads to packet loss, but it also affects the function of MAC and routing protocols. Hitherto, testing the impact of interference on WSN experimentally has been difficult be- cause of the unavailability of low-cost tools to create repro- ducible and well-controlled interference patterns. In this demo, we present a simple method to generate tunable and repeatable interference patterns for 802.15.4 de- vices in an inexpensive way. The demo is presented as a game, where a user is required to achieve a given interfer- ence level.
Conference Paper
Full-text available
Radio interference plays a central role for the performance of Wireless Sensor Networks (WSN). Interference not only leads to packet loss, but it also affects the function of MAC and routing protocols. Hitherto, testing the impact of interference on WSN experimentally has been difficult because of the unavailability of low-cost tools to create reproducible and well-controlled interference patterns. In this demo we present a simple and inexpensive method to generate controllable and repeatable interference patterns for 802.15.4 devices. The demo is presented as a game, where a user is required to achieve a given interference level.
Conference Paper
Full-text available
Wireless sensor networks are composed of large numbers of tiny networked devices that communicate untethered. For large scale networks, it is important to be able to download code into the network dynamically. We present Contiki, a lightweight operating system with support for dynamic loading and replacement of individual programs and services. Contiki is built around an event-driven kernel but provides optional preemptive multithreading that can be applied to individual processes. We show that dynamic loading and unloading is feasible in a resource constrained environment, while keeping the base system lightweight and compact.
Article
Traditional WSN simulators are limited to simu- lating nodes at one single abstraction level. This makes system development and evolution difficult since developers canno t use the same simulator for both high-level algorithm development and low-level development such as device-driver implementations. The Contiki simulator COOJA allows for cross-level simula- tion, a novel type of wireless sensor network simulation that enables holistic simultaneous simulation at different levels. In COOJA one simulation can contain nodes from several different abstraction levels. These are the network level, the operating system level, and the machine code level. We demonstrate a few different cross-level simulation scenarios using the COOJA simulator. I. COOJA Code development for wireless sensor networks is difficult and tedious (1), (2). Network simulators can be used to simplify these development phases. Traditional sensor network simulators perform simulation at one fixed abstraction leve l such as the application, operating system or hardware level. The level at which the simulation is performed affects both the level at which software development can occur and the execu- tion efficiency of the simulator. A simulator that simulates a particular sensor node platform at the hardware level enables the development of low-level software such as device drivers but at the price of longer simulation times and higher code complexity since low-level programming languages must be used. Conversely, a high-level simulator that does not model node hardware may provide short simulation times but only allows for development of high-level algorithms. Since the need of abstraction in a heterogeneous simulated network may differ between the different simulated nodes, there are advantages in combining several different abstraction level in one simulation. For example, in a large simulated network a few nodes can be simulated at the hardware level while the rest are simulated at the application level. Using this approach combines the advantages of the different levels. The simulation is faster compared to when emulating all nodes, but at the same time enables a user to receive fine-grained execution details from the few emulated nodes. Examples of traditional simulators include NS-2 at the network level, TOSSIM (3) for TinyOS at the operating system level and Avrora (4) at the machine code instruction level as shown in Figure 1. In contrast, our novel simulator for the Contiki operating system (5) COOJA enables cross-level simulation (6): simultaneous simulation at many levels of the system. COOJA combines low-level simulation of sensor node hardware and simulation of high-level behavior in a single simulation. Furthermore, COOJA is flexible and extensible i n
Conference Paper
The wide availability of radio signal strength attenuation information on wireless radios has received considerable attention as a convenient means of deriving positioning information. Although some schemes have been shown to work in some scenarios, many agree that the robustness of such schemes can be easily compromised when low power IEEE 802.15.4 radios are used. Leveraging a recently installed sensor network testbed, we provide a detailed characterization of signal strength properties and link asymmetries for the CC2420 IEEE 802.15.4 compliant radio using a monopole antenna. To quantify the several factors of signal unpredictability due to the hardware, we have collected several thousands of measurements to study the antenna orientation and calibration effects. Our results show that the often overlooked antenna orientation effects are the dominant factor of the signal strength sensitivity, especially in the case of 3-D network deployments. This suggests that the antenna effects need to be carefully considered in signal strength schemes.
Conference Paper
We present A-MAC, a receiver-initiated link layer for low-power wireless networks that supports several services under a unified architecture, and does so more efficiently and scalably than prior approaches. A-MAC's versatility stems from layering unicast, broadcast, wakeup, pollcast, and discovery above a single, flexible synchronization primitive. A-MAC's efficiency stems from optimizing this primitive and with it the most consequential decision that a low-power link makes: whether to stay awake or go to sleep after probing the channel. Today's receiver-initiated protocols require more time and energy to make this decision, and they exhibit worse judgment as well, leading to many false positives and negatives, and lower packet delivery ratios. A-MAC begins to make this decision quickly, and decides more conclusively and correctly in both the negative and affirmative. A-MAC's scalability comes from reserving one channel for the initial handshake and different channels for data transfer. Our results show that: (i) a unified implementation is possible; (ii) A-MAC's idle listening power increases by just 1.12x under interference, compared to 17.3x for LPL and 54.7x for RI-MAC; (iii) A-MAC offers high single-hop delivery ratios, even with multiple contending senders; (iv) network wakeup is faster and far more channel efficient than LPL; and (v) collection routing performance exceeds the state-of-the-art.
Conference Paper
Wireless systems continue to rapidly gain popularity. This is extremely true for data networks in the local and personal area, which are called WLAN and WPAN, respectively. However, most of those systems are working in the license-free industrial scientific medical (ISM) frequency bands, where neither resource planning nor bandwidth allocation can be guaranteed. To date, the most widespread systems in the 2.4 GHz ISM band are IEEE802.11 as stated in IEEE Std. 802-11 (1997) and Bluetooth, with ZigBee based in IEEE Std. 802.15.4 (2003) and IEEE802.15.4 as upcoming standards for short range wireless networks. In this paper we examine the mutual effects of these different communication standards. Measurements are performed with real-life equipment, in order to quantify coexistence issues
Cross-level Simulation in COOJA
  • Adam Fredrikösterlind
  • Joakim Dunkels
  • Niclas Eriksson
  • Thiemo Finne
  • Voigt
FredrikÖsterlind, Adam Dunkels, Joakim Eriksson, Niclas Finne, and Thiemo Voigt. Cross-level Simulation in COOJA. In Proceedings of the 4th European Conference on Wireless Sensor Networks (EWSN), Delft, The Netherlands, January 2007.