Connecting the World of Embedded Mobiles: The RIOT Approach to Ubiquitous Networking for the Internet of Things

Martine Lenders, Peter Kietzmann, Oliver Hahm, Hauke Petersen, Cenk Gündogan, Emmanuel Baccelli, Kaspar Schleiser, Thomas C. Schmidt, Matthias WählischarXiv 2018

TL;DR

This paper introduces RIOT's networking subsystem, a modular and flexible architecture designed for resource-constrained IoT devices. It demonstrates that a cleanly layered, full-featured network stack can achieve performance comparable to established, more monolithic systems like Contiki and TinyOS, paving the way for more robust and interoperable IoT deployments.

What Problem Does This Paper Address?

The Internet of Things (IoT) promises to connect a vast array of embedded devices, from simple sensors to actuators. While early IoT systems proved the feasibility of networking these constrained devices, they often relied on highly specialized, "cross-layered" designs with minimal features. This approach hinders professional use and large-scale deployment due to a lack of flexibility, maintainability, and full protocol support. The challenge is to build a networking stack for these low-power, low-resource devices that is not only performant but also modular, extensible, and capable of handling diverse network interfaces and protocols, bridging the gap between the constrained embedded world and the broader Internet.

Methods

The core of the paper is the introduction of RIOT's networking subsystem, built around three key components:

  • Modular Architecture with Generic Interfaces: RIOT employs a layered approach with generic interfaces (netdev for device drivers, netapi for protocol communication, and sock for application interfaces) that allow for easy plugging, exchanging, or co-existence of drivers, protocols, and entire network stacks. This promotes flexibility and extensibility.
  • Support for Multiple Heterogeneous Interfaces: The system is designed to concurrently operate on multiple network interfaces (e.g., 802.15.4, LoRa, Ethernet) and support multiple network stacks simultaneously, enabling complex scenarios like border routing and adaptive forwarding.
  • GNRC (Generic Network Stack): This is RIOT's default, cleanly layered, and recursively composed network stack. It leverages RIOT's multi-threading capabilities for efficient inter-process communication (IPC) and protocol separation. GNRC uses a flexible packet buffer (pktbuf) with "snips" for efficient data handling and a registry (netreg) for dynamic protocol routing.

The authors also conducted extensive micro-benchmarking and comparative evaluations on real hardware, comparing GNRC against established IoT stacks like Contiki and TinyOS, as well as Linux for scalability.

Datasets

The paper does not introduce new datasets. Instead, it relies on:

  • Real-world IoT hardware: Specifically, iotlab-m3 nodes (ARM Cortex M3, 32-bits, 72 MHz, 64kB RAM) and Zolertia Z1 nodes (msp430 16-bit MCU, 16 MHz, 92 KB Flash, 8 KB RAM).
  • Existing network stacks: lwIP, emb6, TinyOS, Contiki (with uIP and Rime), and CCN-lite were used for comparison.
  • Benchmarking scenarios: The authors developed test applications to measure throughput, goodput, packet processing rates, processing times, memory consumption, and energy usage under various conditions, including loopback tests, L2 reflection, and wireless transmission.

Key Insights and Ideas

  • Modularity Doesn't Sacrifice Performance: A significant finding is that a strictly modular, layered network stack (like GNRC) on resource-constrained devices can achieve performance comparable to highly optimized, monolithic stacks. This challenges the notion that modularity inherently leads to performance degradation in embedded systems.
  • Clean APIs are Crucial for IoT: The paper emphasizes the importance of clean, technology-agnostic APIs (like netdev and netapi) for enabling flexibility and extensibility in the diverse IoT landscape. This contrasts with older stacks that often bind APIs to specific technologies.
  • Multi-interface Support is Feasible and Beneficial: RIOT's ability to handle multiple network interfaces concurrently is shown to be negligibly overhead-intensive and crucial for advanced IoT scenarios, such as seamless technology handovers.
  • GNRC's Design Choices Pay Off: The use of a flexible packet buffer (pktbuf) and a thread-based IPC model in GNRC contributes to efficient memory usage and good performance, even when compared to stacks with different design philosophies.
  • Information-Centric Networking (ICN) is Promising but Costly: While ICN stacks like CCN-lite show potential for reduced complexity and memory footprint, their current processing times are significantly higher than IP stacks, posing a challenge for real-time IoT applications.

Key Results

  • Performance Equivalence: RIOT's GNRC network stack achieves performance equivalent to established IoT platforms like Contiki and TinyOS, as demonstrated by micro-benchmarking and comparative evaluations.
  • Throughput: RIOT can support unidirectional communication of up to 10 Mbit/s at the IPv6 layer, with 6LoWPAN fragmentation reducing this to a few Mbit/s. Wireless transmission goodput approaches theoretical bounds when MAC layer coordination is disabled.
  • Processing Overhead: While GNRC has some overhead compared to highly optimized stacks, its processing times are competitive. For instance, IPv6 and UDP layers require around 200 µs and 50 µs respectively for processing a 1000-byte packet.
  • Memory Efficiency: GNRC's memory consumption is comparable to or slightly higher than other stacks, but its flexible buffer management avoids the waste associated with fixed-size chunks.
  • Scalability: RIOT native, when run on a PC, shows excellent scalability, achieving performance within a factor of six of native Linux IP stacks.
  • Energy Consumption: Wireless transmission dominates energy consumption, with the Atmel transceiver accounting for about half the system's power. RIOT's stack performance is efficient, with energy consumption per packet being comparable to other stacks.

Limitations and Future Work

  • GNRC's Maturity: As a relatively young stack, GNRC's code size is slightly larger than some mature stacks like emb6 and lwIP. The authors expect future optimizations, particularly for IPv6 and 6LoWPAN, to reduce this.
  • ICN Performance Gap: The current processing overhead of ICN stacks like CCN-lite is a significant downside for IoT applications, though future optimizations are anticipated.
  • Future Work: The authors plan to integrate additional upcoming standards (e.g., IP over lpWAN), leverage multi-interface support for adaptive multi-path forwarding, and explore in-network caching for improved robustness and data delivery. They also emphasize the availability of their source code for improved IoT deployment and experiment reproducibility.

Summary updated

BibTeX
@misc{lenders2018connecting,
  author = {Martine Lenders and Peter Kietzmann and Oliver Hahm and Hauke Petersen and Cenk Gündogan and Emmanuel Baccelli and Kaspar Schleiser and Thomas C. Schmidt and Matthias Wählisch},
  title = {{Connecting the World of Embedded Mobiles: The RIOT Approach to Ubiquitous Networking for the Internet of Things}},
  year = {2018},
  eprint = {1801.02833},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.02833},
}

Loading related content...

Figure