Abstract
The rise of battery-free Internet of Things (IoT) devices necessitates new networking paradigms to handle intermittent power availability. This paper introduces a modular architectural framework for the INET/OMNeT++ simulation environment, specifically designed for intermittently-powered wireless sensor networks (WSNs). By standardizing interfaces between the Data Link Layer (DLL) and Network Layer (NET), the framework allows for the seamless integration and comparison of various opportunistic routing (OR) protocols. We demonstrate the utility of this approach by implementing two prominent protocols, ORW and ORPL, within the proposed modular structure.
Introduction
Traditional wireless sensor networks are typically battery-constrained, but emerging IoT applications are shifting toward energy-harvesting (e.g., solar, thermal) "battery-free" devices. These devices operate intermittently, waking up to perform tasks only when sufficient energy is harvested. This "on-off" behavior disrupts standard point-to-point networking: if a node shuts down while a packet is en route, communication fails.
Opportunistic Routing (OR) mitigates this by allowing a sender to broadcast packets to any available neighbor that meets specific criteria, rather than a fixed next-hop. However, research in this area is hindered by simulation tools that lack modularity, often embedding routing logic directly into radio code. This paper addresses the need for a "power-in-the-loop" simulation framework that supports modular protocol development and "like-for-like" comparisons.
Modular Architecture and Methods
The authors propose a set of C++ module interfaces for the INET Framework that decouple forwarding logic from link-layer transmission. This cross-layer design is essential for the tight timing requirements of intermittent nodes, where the "receive window" is extremely brief.
Key interfaces introduced in this framework include:
IOpportunisticLinkLayer: A MAC-layer interface that enables the system to evaluate whether a packet should be accepted based on routing criteria before committing energy to full reception.IForwardingJudge: Implemented at the routing table level, this interface makes real-time decisions on whether a node is a suitable forwarder for a broadcast packet.- Overhearing Interfaces (
ILinkOverhearingSource&IRoutingOverhearingSource): These facilitate neighbor discovery by extracting information from passing traffic. This "energy-aware overhearing" avoids the overhead of dedicated heartbeat packets.
Results and Validation
The framework was validated by modularizing two existing protocols: Opportunistic Routing for WSN (ORW) and Opportunistic RPL (ORPL). Simulations in OMNeT++ modeled realistic energy harvesting profiles and harvest-transmit cycles to create realistic intermittency scenarios.
The results demonstrate that the proposed interfaces can support diverse OR protocols without requiring monolithic code rewrites. Visual analysis of the simulations confirms that multi-hop routes successfully form even as nodes frequently toggle between active and inactive states. Furthermore, the framework allows researchers to observe the direct impact of energy harvesting profiles on network performance. The implementation is available as an open-source resource on GitHub.
Conclusion and Future Work
This work provides a standardized "testbed" for the WSN research community, enabling rigorous comparison of opportunistic routing protocols under varying energy-harvesting conditions. By separating forwarding logic from link logic, researchers can optimize specific components—such as neighbor discovery or energy prediction—independently.
Future work will focus on refining the API for "deferred transmissions," where nodes wait for optimal neighbors to wake up, and integrating advanced predictive models to estimate neighbor availability based on harvesting trends.
Summary updated