MUNILS: A Time-Synchronized and Traffic-Isolated Multi-UAV Simulation Platform Based on Integrated Physical and Network Simulators
Highlights
- The study introduces the MUNILS platform, which seamlessly integrates the Gazebo physics engine, the PX4 flight controller, and the ns-3 network simulator via ROS2 middleware, achieving strict traffic isolation for each UAV using Linux network namespaces.
- A precise cross-layer time synchronization mechanism was established across physical, control, and network domains, maintaining synchronization without cumulative clock drift during large-scale swarm operations on a single machine.
- MUNILS enables researchers to accurately evaluate the bidirectional interactions between network conditions and physical flight behaviors in real time, providing a highly reliable verification environment for complex multi-UAV operations.
- By facilitating scalable and synchronized co-simulation, the platform significantly mitigates the substantial costs, safety hazards, and lack of repeatability inherent in real-world physical testing.
Abstract
1. Introduction
- 1.
- Implementation of a highly isolated Network-in-the-Loop platform: We developed MUNILS to guarantee strict traffic isolation between simulated nodes using Linux kernel-level Network Namespaces (NNS). Going beyond simple port mapping, this approach enforces host-level traffic isolation for each UAV, routing all packets exclusively through ns-3. This practically eliminates unintended signal interference, even in dense multi-UAV scenarios.
- 2.
- Cross-layer time synchronization and real-time verification: We established a unified timeline to synchronize physical behavioral data with network communication states across heterogeneous simulators. This synchronized environment allows for the real-time monitoring of how transient communication drops instantly affect physical flight reactions.
- 3.
- Automated orchestration and operational flexibility: We ensured high operational efficiency by employing automated orchestration scripts, allowing multiple UAV instances to be seamlessly instantiated on a single machine. Furthermore, by leveraging ROS2’s Node Remapping features, we present a highly scalable architecture capable of individually identifying and flexibly controlling multiple heterogeneous UAVs using a unified control algorithm.
2. Related Work
2.1. Classification of UAV Simulation Platforms
2.2. Co-Simulation Approaches and Inherent Challenges
2.3. Differentiation of the Proposed Platform
3. System Design
3.1. System Overview
- Integrated Framework (ROS2 Humble) acts as the backbone that integrates distributed components and manages data communication.
- Flight Controller (PX4 Autopilot) executes attitude control and navigation logic for the virtual UAV model within Gazebo.
- Virtual Test Environment (Gazebo Classic) simulates the physical environment of the UAV and ensures simulation stability based on Gazebo 11, which possesses verified compatibility with PX4 Software-In-The-Loop (SITL).
- Network Simulation (ns-3) precisely models the wireless communication environment among multiple UAVs at the packet level.
- Communication Bridge (Micro XRCE-DDS Agent) mediates User Datagram Protocol (UDP)-based communication between the embedded environment (PX4) and the ROS2 system.
3.2. Network Isolation and Traffic Routing
3.3. Time Synchronization
3.3.1. Level 1: PX4 Clock Subordination
3.3.2. Level 2: ROS2 Sim-Time Enforcement
3.3.3. Level 3: ns-3 Soft Synchronization via Shared Memory
3.3.4. Synchronization Rule
3.3.5. Granularity and Packet-Level Fidelity
4. Implementation and Experimental Validation
4.1. Implementation Details
4.1.1. Environment Setup and Legacy Compatibility
4.1.2. Multi-UAV Orchestration and Automation
| Algorithm 1 Automated Multi-UAV Instance Deployment |
| Require: Number of UAVs N, vehicle model , simulation world Ensure: N UAV instances initialized with deterministic communication settings and isolated execution contexts
|
| Algorithm 2 Per-UAV Namespace Configuration and Process Launch |
| Require: UAV index i Ensure: PX4 instance i launched in an isolated namespace with synchronized DDS and ROS2 interfaces
|
| Algorithm 3 Companion Micro XRCE-DDS Agent Orchestration |
| Require: Number of UAVs N, fixed DDS communication port Ensure: One Micro XRCE-DDS agent launched in the background for each namespace, with logs and process IDs recorded
|
4.2. Experimental Evaluation
4.2.1. Experimental Environment and Scenario
4.2.2. Network Isolation and Routing Verification
4.2.3. Flight Control Stability and Trajectory Verification
4.2.4. Time Synchronization Accuracy
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| 2D | 2-Dimensional |
| AMD | Advanced Micro Devices |
| API | Application Programming Interface |
| DDR5 | Double Data Rate 5 |
| DDS | Data Distribution Service |
| DES | Discrete-Event Simulator |
| GHz | Gigahertz |
| GPU | Graphics Processing Unit |
| ICMP | Internet Control Message Protocol |
| LTS | Long-Term Support |
| MAVLink | Micro Air Vehicle Link |
| MUNILS | Multi-UAV Network-in-the-Loop Simulation |
| NNS | Network Namespace |
| RF | Radio Frequency |
| ROS2 | Robot Operating System 2 |
| RTF | Real-Time Factor |
| SDF | Simulation Description Format |
| SITL | Software-In-The-Loop |
| TCP | Transmission Control Protocol |
| UAM | Urban Air Mobility |
| UAV | Unmanned Aerial Vehicle |
| UDP | User Datagram Protocol |
| veth | Virtual Ethernet |
| XRCE-DDS | eXtremely Resource Constrained Environments - Data Distribution Service |
References
- Lee, W. Federated Reinforcement Learning-Based UAV Swarm System for Aerial Remote Sensing. Wirel. Commun. Mob. Comput. 2022, 2022, 4327380. [Google Scholar] [CrossRef] [Scilit]
- Yoo, S.; Lee, W. Federated reinforcement learning based AANs with LEO satellites and UAVs. Sensors 2021, 21, 8111. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lee, W. Enabling reliable UAV control by utilizing multiple protocols and paths for transmitting duplicated control packets. Sensors 2021, 21, 3295. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lee, W.; Lee, J.Y.; Joo, H.; Kim, H. An MPTCP-based transmission scheme for improving the control stability of unmanned aerial vehicles. Sensors 2021, 21, 2791. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Chen, Z.; Yan, J.; Ma, B.; Shi, K.; Yu, Q.; Yuan, W. A survey on open-source simulation platforms for multi-copter UAV swarms. Robotics 2023, 12, 53. [Google Scholar] [CrossRef] [Scilit]
- Dey, E.; Hossain, J.; Roy, N.; Busart, C. Synchrosim: An integrated co-simulation middleware for heterogeneous multi-robot system. In Proceedings of the 2022 18th International Conference on Distributed Computing in Sensor Systems (DCOSS); IEEE: Piscataway, NJ, USA, 2022; pp. 334–341. [Google Scholar]
- Macenski, S.; Foote, T.; Gerkey, B.; Lalancette, C.; Woodall, W. Robot operating system 2: Design, architecture, and uses in the wild. Sci. Robot. 2022, 7, eabm6074. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- eProsima. Micro XRCE-DDS Documentation. 2026. Available online: https://micro-xrce-dds.docs.eprosima.com/ (accessed on 24 March 2026).
- Meier, L.; Honegger, D.; Pollefeys, M. PX4: A node-based multithreaded open source robotics framework for deeply embedded platforms. In Proceedings of the 2015 IEEE International Conference on Robotics and Automation (ICRA); IEEE: Piscataway, NJ, USA, 2015; pp. 6235–6240. [Google Scholar]
- Koenig, N.; Howard, A. Design and use paradigms for gazebo, an open-source multi-robot simulator. In Proceedings of the 2004 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) (IEEE Cat. No. 04CH37566); IEEE: Piscataway, NJ, USA, 2004; Volume 3, pp. 2149–2154. [Google Scholar]
- Riley, G.F.; Henderson, T.R. The ns-3 network simulator. In Modeling and Tools for Network Simulation; Springer: Berlin/Heidelberg, Germany, 2010; pp. 15–34. [Google Scholar]
- Kim, W.; Luong, T.; Ha, Y.; Doh, M.; Yax, J.F.M.; Moon, H. High-fidelity drone simulation with depth camera noise and improved air drag force models. Appl. Sci. 2023, 13, 10631. [Google Scholar] [CrossRef] [Scilit]
- Ma, C.; Zhou, Y.; Li, Z. A new simulation environment based on AirSim, ROS, and PX4 for quadcopter aircrafts. In Proceedings of the 2020 6th International Conference on Control, Automation and Robotics (ICCAR); IEEE: Piscataway, NJ, USA, 2020; pp. 486–490. [Google Scholar]
- Shah, S.; Dey, D.; Lovett, C.; Kapoor, A. Airsim: High-fidelity visual and physical simulation for autonomous vehicles. In Proceedings of the Field and Service Robotics: Results of the 11th International Conference; Springer: Piscataway, NJ, USA, 2017; pp. 621–635. [Google Scholar]
- Su, Y.; Chen, Y.; Yi, S.; Feng, H.; Xu, Y.; Xiang, W.; Hu, B. A Modular and Scalable Simulator for Connected-UAVs Communication in 5G Networks. In Proceedings of the 2025 International Conference on Modeling, Analysis and Simulation of Wireless and Mobile Systems (MSWiM); IEEE: Piscataway, NJ, USA, 2025; pp. 725–729. [Google Scholar]
- Keller, S.; Andre, J.; Wiedner, F. Simulation of wifi mesh networks with mobile nodes. Network 2021, 1, 1–4. [Google Scholar] [CrossRef]
- NPS-ROS2. ns3_gazebo: Simulate ROS2 Network Behavior Using ns-3 and Gazebo. 2026. Available online: https://github.com/nps-ros2/ns3_gazebo (accessed on 27 February 2026).
- Acharya, S.; Bharadwaj, A.; Simmhan, Y.; Gopalan, A.; Parag, P.; Tyagi, H. Cornet: A co-simulation middleware for robot networks. In Proceedings of the 2020 International Conference on COMmunication Systems & NETworkS (COMSNETS); IEEE: Piscataway, NJ, USA, 2020; pp. 245–251. [Google Scholar]
- Quigley, M.; Conley, K.; Gerkey, B.; Faust, J.; Foote, T.; Leibs, J.; Wheeler, R.; Ng, A.Y. ROS: An open-source Robot Operating System. In Proceedings of the ICRA Workshop on Open Source Software, Kobe, Japan; IEEE: Piscataway, NJ, USA, 2009; Volume 3, p. 5. [Google Scholar]
- Ponniah, J.; Dantsker, O.D.; Mancuso, R. Design of Multi-Agent UAV Simulator to Support the Development of the MARSNet Communication Protocol. In Proceedings of the AIAA Aviation 2019 Forum; AIAA: Reston, Virginia, 2019; p. 3114. [Google Scholar]
- Park, S.; La, W.G.; Lee, W.; Kim, H. Devising a distributed co-simulator for a multi-UAV network. Sensors 2020, 20, 6196. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Moon, S.; Bird, J.J.; Borenstein, S.; Frew, E.W. A gazebo/ros-based communication-realistic simulator for networked suas. In Proceedings of the 2020 International Conference on Unmanned Aircraft Systems (ICUAS); IEEE: Piscataway, NJ, USA, 2020; pp. 1819–1827. [Google Scholar]
- Koubâa, A.; Allouch, A.; Alajlan, M.; Javed, Y.; Belghith, A.; Khalgui, M. Micro air vehicle link (mavlink) in a nutshell: A survey. IEEE Access 2019, 7, 87658–87680. [Google Scholar] [CrossRef] [Scilit]
- IEEE Std 1516-2010; IEEE Standard for Modeling and Simulation (M&S) High Level Architecture (HLA)—Framework and Rules. (Revision of IEEE Std 1516-2000). IEEE: Piscataway, NJ, USA, 2010. [CrossRef] [Scilit]
- Open Source Robotics Foundation. Gazebo Classic: Physics Parameters Tutorial. 2026. Available online: https://classic.gazebosim.org/tutorials?tut=physics_params (accessed on 7 May 2026).
- Hayat, S.; Yanmaz, E.; Muzaffar, R. Survey on Unmanned Aerial Vehicle Networks for Civil Applications: A Communications Viewpoint. IEEE Commun. Surv. Tutor. 2016, 18, 2624–2661. [Google Scholar] [CrossRef] [Scilit]
- IEEE Std 802.11-2020; IEEE Standard for Information Technology—Telecommunications and Information Exchange between Systems-Local and Metropolitan Area Networks–Specific Requirements-Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications. (Revision of IEEE Std 802.11-2016). IEEE: Piscataway, NJ, USA, 2021. [CrossRef] [Scilit]





| Feature | ns3_gazebo [17] | CORNET [18] | Ponniah et al. [20] | MUNILS (Ours) |
|---|---|---|---|---|
| ROS2 Support | O | X | X | O |
| PX4 Integration | X | O | X | O |
| Network-in-the-Loop | O | O | O | O |
| Kernel-level Traffic Isolation | X | X | X | O |
| Cross-layer Time Synchronization | X | X | X | O |
| Automated Multi-UAV Orchestration | X | X | X | O |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Lee, S.; Yu, G.; Lee, D.; Lee, W. MUNILS: A Time-Synchronized and Traffic-Isolated Multi-UAV Simulation Platform Based on Integrated Physical and Network Simulators. Drones 2026, 10, 387. https://doi.org/10.3390/drones10050387
Lee S, Yu G, Lee D, Lee W. MUNILS: A Time-Synchronized and Traffic-Isolated Multi-UAV Simulation Platform Based on Integrated Physical and Network Simulators. Drones. 2026; 10(5):387. https://doi.org/10.3390/drones10050387
Chicago/Turabian StyleLee, Sangyoon, Geonwoo Yu, Dongwook Lee, and Woonghee Lee. 2026. "MUNILS: A Time-Synchronized and Traffic-Isolated Multi-UAV Simulation Platform Based on Integrated Physical and Network Simulators" Drones 10, no. 5: 387. https://doi.org/10.3390/drones10050387
APA StyleLee, S., Yu, G., Lee, D., & Lee, W. (2026). MUNILS: A Time-Synchronized and Traffic-Isolated Multi-UAV Simulation Platform Based on Integrated Physical and Network Simulators. Drones, 10(5), 387. https://doi.org/10.3390/drones10050387

