Skip to main content
Stage 2 ยท First Simulation

Quickstart

Launch the daemon, connect a simulator, send a message, and watch it travel through NSB โ€” all in under 10 minutes.

Estimated time: ~10 minutes
Python ยท C++
Message Round-Trip
Application Client
NSBAppClient
NSB Daemon
Routes & queues
Mock Simulator
NSBSimClient

Prerequisite: Completed Get Started โ€” NSB installed and verified. Complete that guide first if you haven't already.

What You Will Build

A complete message round-trip through NSB โ€” from your application, through the daemon, through a mock simulator, and back.

Application Client
NSBAppClient โ€” sends payload
NSB Daemon
Routes and queues messages
Mock Simulator
NSBSimClient โ€” fetches, posts back
NSB Daemon
Delivers to destination
Application Client
NSBAppClient โ€” receives payload
Prerequisites
  • NSB installed & verified
  • Python 3.7+ or C++17
  • config.yaml ready
  • 3 terminal windows
Need help?

Stuck? See the Troubleshooting Guide for common issues and solutions.

Troubleshooting Guide
You completed your first NSB co-simulation!
Here's what happened under the hood.
1
Application called send() โ€” NSB created a SEND message and transmitted it to the daemon. The daemon queued the payload, ready for the simulator to pick up.
2
Simulator called fetch() โ€” the daemon responded with the queued payload. In a real integration, this is where ns-3 or OMNeT++ would route the payload through a simulated network topology with configurable latency, loss, and bandwidth.
3
Simulator called post() โ€” NSB marked the payload as delivered. The daemon queued it for the destination application client.
4
Application called receive() โ€” NSB returned the delivered payload. That complete loop โ€” send โ†’ fetch โ†’ post โ†’ receive โ€” is one NSB message round-trip.

Continue Learning

Explore the full NSB documentation and tutorials.

Learn NSB Fundamentals
Understand the core concepts, architecture, and how NSB components work together.
Explore Fundamentals
Configure NSB
Learn how to configure NSB to fit your simulation requirements and environment.
Explore Configuration
Develop with NSB
Use NSB APIs and libraries to build applications and simulators.
Explore Development
Integrate Simulators
Integrate NSB with popular network simulators and frameworks.
Explore Integrations
Tutorials & Examples
Step-by-step tutorials to help you get hands-on with NSB.
Explore Tutorials
Advanced Topics
Deep dive into advanced features and backend implementations.
Explore Advanced

Need Help?

Get assistance and find answers to common questions.

Troubleshooting Guide
Common issues, error messages, and step-by-step solutions.
View Troubleshooting
Frequently Asked Questions
Answers to frequently asked questions about NSB concepts and usage.
View FAQ
You're all set
Explore the full documentation
Dive deeper into architecture, configuration, API references, and real simulator integrations.