Source-Code Analysis of iFogSim for Simulating Distributed IoT Architectures: Coverage, Challenges, and Enhancements
Milliam Maxime Zekeng Ndadji · 2026
Read Source-Code Analysis of iFogSim for Simulating Distributed IoT Architectures: Coverage, Challenges, and Enhancements by Milliam Maxime Zekeng Ndadji (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2604-23122.txt.
Introduction
Ndadji reviews iFogSim, a widely used fog and edge simulator, and tests it on a smart emergency response system for resource-poor cities. He surveys iFogSim and iFogSim2, lists ten scientific goals for IoT simulation, and compares eight simulation tools against those goals. His four-tier emergency system runs on a 25-node road network, with alert latency near 205 ms and path-cache speedups reaching 197 times. He documents seven modelling challenges with root causes and bias notes, and closes with seven developer recommendations for the iFogSim community.
Catalog record
| CREATOR | Milliam Maxime Zekeng Ndadji |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 61251 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2604.23122
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Source-Code Analysis of iFogSim for Simulating Distributed IoT Architectures: Coverage, Challenges, and Enhancements Milliam Maxime Zekeng Ndadji Abstract Simulation is an indispensable tool for validating distributed IoT architectures before physical deployment, and iFogSim has emerged as one of the most widely adopted platform in the fog and edge computing research community. Yet the experience of using iFogSim for non-canonical, application-specific architectures remains incompletely documented, leaving practitioners without guidance on when the tool is appropriate, which scientific objectives it can address, and how to manage the modelling approximations it imposes. This article helps in providing that guidance through two complementary contributions. First, we present a structured state of the art covering iFogSim and iFogSim2, a taxonomy of ten scientific objectives that motivate IoT architecture simulation, and a comparative survey of eight simulation tools assessed against those objectives. Second, we report our experience of simulating a four-tier smart emergency response system for resource-constrained urban environments, covering a 25-node synthetic road topology, four experimental configurations, and quantitative results including end-to-end alert latency ( ≈ \approx 205 ms), FPGA-accelerated Dijkstra path computation ( × 10 \times 10 CPU speedup), concurrent incident conflict rates (75% under dual load), and path-cache acceleration ( × 197 \times 197 ). The analysis is organised around five practitioner questions: whether iFogSim fits the target architecture, which objectives it covers natively versus partially, what modelling challenges arise and how their workarounds bias reported results, what changes to the iFogSim source code would close the identified gaps, and whether tool co-simulation can provide comprehensive coverage. Seven modelling challenges are documented with source-code-grounded root causes and explicit bias assessments; finally, seven developer recommendations are proposed as an actionable improvement roadmap for the iFogSim community. [orcid=0000-0002-0417-5591, [email protected], url=https://zekeng-max.vercel.app, ] keywords iFogSim \sep IoT simulation \sep Fog Computing \sep Edge Computing \sep Distributed Architecture Simulation 1 Introduction The proliferation of the Internet of Things (IoT) has catalysed the emergence of increasingly complex distributed cyber-physical architectures, in which thousands of heterogeneous sensing and actuation devices, geographically dispersed across urban or industrial environments, must cooperate in near-real time with edge, fog, and cloud computing layers [ 26 , 24 ] . The design of such systems poses significant challenges due to the intricate interplay among heterogeneous hardware capabilities, multi-hop communication latencies, competing workloads, and context-specific application requirements. This complexity renders analytical prediction of system behavior practically unfeasible. Consequently, simulation has become an indispensable tool in the IoT system engineer’s repertoire, offering a controlled, reproducible, and cost-effective means to assess architectural choices, tune resource-management policies, and bound performance metrics before committing to physical deployment [ 13 , 10 ] . In the realm of simulators designed for IoT, fog, and edge computing environments, iFogSim [ 13 ] has emerged as a leading platform since its dissemination in 2017, gaining widespread adoption. Designed on the established CloudSim framework [ 5 ] , it offers an event-driven simulation engine that models fog devices, IoT sensors, actuators, network links and application data-flow graphs. The engine also computes quantitative metrics, including latency, energy consumption, network usage, and cloud cost. Its open-source availability, active maintenance, and a growing body of published use cases that span healthcare monitoring [ 13 ] , smart traffic management [ 17 ] , and industrial task scheduling [ 16 ] have made it a standard reference in academic research. A second-generation extension, iFogSim2 [ 16 ] , has been developed to support service migration, dynamic distributed clustering, and microservice orchestration. This extension extends the simulator’s applicability to mobile and dynamic edge scenarios. Notwithstanding the extensive implementation of iFogSim, the utilization of the software for simulating a tangible, application-specific IoT architecture remains inadequately documented in extant literature. Published articles generally present simulation results obtained with iFogSim; however, they rarely discuss the modeling difficulties encountered, the workarounds developed, or the bias those workarounds introduce into the reported results. The implicit knowledge embedded in such experiences is valuable for two distinct audiences: first, researchers planning to use the tool, and second, the simulator’s development community. More crucially, researchers who must select an available IoT simulator are confronted with the absence of a structured framework to guide their decision-making process. This framework would provide a comprehensive overview of iFogSim’s capabilities and limitations in capturing specific aspects of system behavior, as well as the complementary tools that can address its gaps. This article aims to address this gap by proposing a dual contribution, structured around five questions that practitioners should be able to answer before, during, and after an iFogSim simulation study: 1. To what extent is iFogSim suitable for simulating a given IoT architecture? Which structural conditions must be satisfied for iFogSim to constitute an appropriate modelling framework? 2. Which scientific objectives are within the evaluative scope of iFogSim, and which are not? What types of measurements are natively supported, and where do the intrinsic limitations of the simulator emerge? 3. What modelling challenges are likely to arise, how may they be addressed, and to what extent do the adopted solutions introduce bias? Which engineering adjustments are necessary for non-standard architectures, and how should their implications be explicitly reported? 4. What developments are required within iFogSim to bridge the identified gaps? Which specific modifications to the source code would mitigate the most significant limitations? 5. Can the integration of iFogSim with complementary tools ensure comprehensive evaluation? Which objectives lying beyond the native scope of iFogSim can be addressed through co-simulation strategies or post-processing techniques? To rigorously address the second question, we define ten scientific objectives that motivate the simulation of distributed IoT architectures: O1 performance and latency; O2 network reliability; O3 fault tolerance and resilience; O4 data-flow consistency; O5 scalability; O6 energy consumption; O7 security; O8 architectural trade-off analysis; O9 deployment cost; and O10 cyber-physical control loop fidelity. The extent to which iFogSim supports each of these objectives is evaluated through direct inspection of its source code, rather than relying exclusively on claims reported in the literature. The empirical basis for this analysis stems from our own experience in simulating a smart emergency response system for urban environments under resource-constrained conditions, whose architecture is detailed in [ 3 ] and evaluated by experts in [ 2 ] . The system represents a four-tier edge deployment in which IoT sensors, distributed across key urban zones, activate an Edge Server Node (ESN). This node computes shortest-path routes using a Dijkstra algorithm, optionally accelerated via FPGA hardware, dispatches emergency response units, and records coordination outcomes. The simulation incorporates a synthetic road network of 25 nodes and four experimental configurations, yielding quantitative results: an end-to-end alert-to-coordination latency of approximately 205 ms, a \times 10 speedup of FPGA-based computation relative to CPU execution, a 75% unit-conflict rate under concurrent dual-incident scenarios, and a \times 197 acceleration factor due to path caching. Seven modelling challenges were identified, each associated with a specific source-code construct in iFogSim, accompanied by a documented workaround and an explicit assessment of the induced bias. Building on this experience, and complemented by a review of the existing literature on iFogSim-based evaluations, we propose a structured characterisation of the simulator’s capabilities and limitations in the context of distributed IoT architecture simulation. This analysis is further translated into recommendations targeting two audiences: prospective users likely