Introduction
Internet of Things (IoT) systems are inherently complex, characterized by a hierarchical structure of diverse components ranging from low-power sensors to high-capacity cloud data centers. These components are interconnected via a variety of networking protocols such as LoRa, Zigbee, 3G, and WiFi. Testing large-scale IoT architectures is often prohibitively expensive or logistically impossible due to the need for thousands of physical devices.
Existing simulation tools are frequently siloed, focusing either on network dynamics (e.g., NS-3) or cloud infrastructure (e.g., CloudSim). IoTNetSim addresses this gap by providing a comprehensive, multi-layered simulation platform that models the entire data journey—from a mobile sensor through edge and fog nodes to final cloud processing.
The IoTNetSim Architecture
IoTNetSim is designed as a self-contained, extendable platform with a modular architecture built on the CloudSim event-based engine. This foundation allows it to inherit robust capabilities for simulating virtual machines (VMs) and cloudlets while adding specialized layers for Fog, Edge, and IoT environments.
The platform enables fine-grained modeling of:
- Nodes: Detailed profiles for sensors, actuators, and gateways, including battery vs. continuous power models and spatial mobility (x, y, z coordinates).
- Networking: Expressive definitions for signal types, range, capacity, and connectivity loss.
- Extensibility: A "bespoke" design that allows researchers to integrate custom node placement algorithms and application logic.
Validation and Case Studies
The authors validated IoTNetSim using two real-world scenarios:
- Environmental Monitoring: A case study based on a flood and pollution monitoring deployment in Conwy, North Wales, utilizing historical data from the UK Centre for Environmental Data Analysis (CEDA).
- JOSE Testbed: A large-scale simulation of the Japan-wide Orchestrated Smart/Sensor Environment, involving 5 cities, 1,200 physical machines, and up to 1,000,000 simulated sensors.
Key Insights: The End-to-End Advantage
A primary strength of IoTNetSim is its ability to capture cross-layer impacts. Researchers can analyze how low-level changes, such as sensor reading intervals, propagate through the system to affect cloud storage costs and processing loads.
The simulation overhead scales linearly with the number of nodes and duration, enabling the simulation of years of operation in minutes. This provides a massive benefit-cost ratio; for instance, simulating the JOSE testbed avoids the estimated $3 million cost of physical deployment.
Results and Performance
Validation in the environmental case study confirmed that the simulator accurately replicates data flows and battery depletion patterns over a 30-day period. Performance testing on a standard consumer PC demonstrated that the platform can handle 25,000 sensors across 5 cities with reasonable overhead. Furthermore, stress tests with varying reading intervals (3 to 24 hours) showed that the platform remains stable even under high-frequency event workloads.
Conclusion and Future Work
IoTNetSim offers a powerful tool for early-stage architectural design in IoT. While the platform's behavior matches expectations, future work will focus on more systematic validation of timing accuracy against real hardware. Additionally, the authors plan to explore more complex "what-if" scenarios, such as massive network failures, and automate node placement to optimize coverage and energy efficiency. To support the research community, IoTNetSim has been released as open-source software.
Summary updated