OMNeT++ Overview
OMNeT++ is a simulation framework that operates in a bottom-up, per-node model โ each simulated host is an individual module that independently handles its own traffic. Because of this, when using NSB with OMNeT++, you should configure NSB in Per-Node simulator mode (simulator_mode: 1).
What the Integration Looks Likeโ
In this integration:
- Each simulated OMNeT++ node module has its own
NSBSimClientinstance, identified to match the correspondingNSBAppClient - When the OMNeT++ module receives a message, it calls
post()to notify NSB; when it needs to inject traffic, it callsfetch()
Two Example Setupsโ
| Setup | Covers |
|---|---|
nsb_omnet_basic | Pure OMNeT++ (no INET) โ a minimal NSBHost module wired into a NED network |
nsb_omnet_inet | OMNeT++ with the INET framework โ realistic wireless/wired simulation using UDP transport |
Go Deeperโ
- Tutorials โ OMNeT++ Basic Integration โ full step-by-step setup for the pure OMNeT++ example
- Tutorials โ OMNeT++ with INET โ full step-by-step setup for the INET-based example
- System-Wide vs Per-Node โ why Per-Node fits OMNeT++'s architecture
- Configuration โ Simulator Modes โ the
simulator_mode: 1field