NSB2: An Open-Source Modular Pipeline for Application-Network Co-Simulation
Harikrishna Kuttivelil, Lakshmi Krishnaswamy, Srikar Rani, Psi Padhya, Alex Woelkers, Vasavi Doddamani, Nayan Bhatia, Katia Obraczka
Abstract
As connected applications -- from intelligence-enabled assistants and the smart homes to autonomous vehicles and large-scale Internet-of-Things deployments -- become increasingly pervasive, their performance, safety, and reliability depend more than ever on the underlying network. Designing and validating such systems therefore requires development environments that holistically account for both application and network behavior. While network simulators and emulators provide high-fidelity models of network behavior, connecting full-fledged applications to them remains difficult due to platform constraints, simulator-specific interfaces, and narrow single-purpose integrations. To address this gap, we present NSB2 (Network Simulation Bridge 2), an open-source network co-simulation middleware that relays payloads between application processes through a network simulator. NSB2 is composed of a central daemon and thin, embedded application- and simulator-side libraries for flexible integration, disentangled communication channels for unencumbered inter-process communications, and in-memory key-value storage for efficient payload caching and retrieval. NSB2 is designed to be lightweight, accessible, and extensible: it exposes streamlined interfaces supported in Python and C++, modular internal abstractions that let users swap or extend network simulation/emulation backends, flexible and configurable deployment modes, and integration helpers for the widely-used ns-3 and OMNeT++ network simulators. Our evaluation across multiple co-simulation scenarios shows that NSB2 introduces negligible memory and latency overhead, enabling researchers and developers to achieve richer, more realistic modeling of connected systems with minimum overhead.
Create a lesson
Metadata
- Comments
- Submitted to ACM Middleware 2026 for publication
Related papers
Benchmarking Open-Source O-RAN and 5G NTN Stacks on Embedded ARM Platforms for Space Payloads
Shared title terminologycs.NIEsteban Municio, Oscar Baselga, Oscar Lasierra et al.
A Lightweight, Open-Source Network Digital Twin Blueprint for IoT-Edge Environments
Shared title terminologycs.NIJosevany do Amaral, Rute C. Sofia
A Modular O-RAN Testbed Based on SRS Open Source O-CU/O-DU and Massive Beams Modular O-RU
Shared title terminologycs.NIFabian Göttsch, Oriol Font-Bach, Andreas Benzin et al.
An open-source implementation and validation of 5G NR Configured Grant for URLLC in ns-3 5G LENA: a scheduling case study in Industry 4.0 scenarios
Shared title terminologycs.NIAna Larrañaga, M. Carmen Lucas-Estañ, Sandra Lagén et al.
5G-NetBotSim: A Synchronized Co-Simulation Framework for Connected Robots over ROS and srsRAN-based 5G Network
Shared title terminologycs.NINarges Golmohammadi, Bhaskara Venkata Raju Garuda, Ayan Joshi et al.
Revolutionizing Wireless Communications with Space Data Centers: Applications and Open Challenges
Shared title terminologycs.NIMinghao Sun, Zehui Chen, Jinbo Hou et al.