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, and Channel.
  • 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

Popular posts from this blog

From DSRC to 5G NR-V2X: The Road Ahead for Connected Vehicles

CTE 311: ENGINEER IN SOCIETY: CURRICULUM (20/21 SESSION)