Understanding ns-3 Headers
When writing ns-3 simulation scripts, we include different modules using #include. Each header unlocks a set of features:
- core-module.h
Provides the simulation engine:Simulator,Time, logging, and configuration system. - network-module.h
Defines basic networking primitives:Node,NetDevice,Packet, andChannel. - mobility-module.h
Lets you assign positions and movement patterns to nodes using mobility models (e.g., constant position, random walk). - internet-module.h
Implements the Internet stack: IPv4/IPv6, TCP, UDP, and routing protocols. This is needed if you want to run applications over IP. - nr-module.h
The 5G New Radio (NR) module. Provides helpers, PHY/MAC models, Bandwidth Parts (BWPs), and propagation models for simulating 5G networks.
Together, these headers give you the building blocks to create complex scenarios — from basic node placement to full 5G IoV simulations.
Comments
Post a Comment