Skip to main content

Tutorials

Step-by-step guides to mastering NSB — from basics to advanced simulator integration.

01Beginner
 15 min
Run Your First Co-Simulation
No prior knowledge needed. Modify the pre-built mock simulator from Quickstart — add delays, change payload sizes, and switch PULL/PUSH and System-Wide/Per-Node modes.
PythonPULL Mode
Start Tutorial
02Beginner
 25 min
Build a Mock Simulator
Build a simulator client from scratch using NSBSimClient. Learn fetch(), post(), MessageEntry, and the simulator lifecycle step by step.
PythonNSBSimClient
Start Tutorial
03Intermediate
 45 min
NetworkX Graph Simulator
Use NetworkX to model a graph topology and simulate shortest-path routing with realistic per-hop delays.
PythonNetworkX
Start Tutorial
04Advanced
 60 min
ns-3 Integration
Connect NSB to ns-3 in System-Wide mode. Link via CMake and inject payloads into ns-3 topologies.
C++ns-3System-Wide
Start Tutorial
05Advanced
 60 min
OMNeT++ Basic Integration
Per-Node mode with OMNeT++. Build an NSBHost module, wire it into a NED network, and run the simulation.
C++OMNeT++Per-Node
Start Tutorial
06Advanced
 90 min
OMNeT++ with INET
Per-Node mode with UDP integration in OMNeT++ and the INET framework, for realistic wireless and wired simulation.
C++OMNeT++INETWireless
Start Tutorial
Learning Stages
Stage 1: Foundation
Understand the daemon, clients, and basic message flow by experimenting with and then building a mock simulator.
Stage 2: Real Topologies
Create custom network topologies and handle realistic shortest-path routing scenarios with NetworkX.
Stage 3: Advanced Integrations
Connect to production-grade network simulators — ns-3 in System-Wide mode, and OMNeT++ (basic and with INET) in Per-Node mode.