How nsnam/ns-3-dev-git works
ns-3 is a discrete-event network simulator for research and education. A user writes a C++ or Python simulation, configures the simulator and selected model libraries, and runs it to produce simulation traces or other results. The graph highlights the runtime layers and major modeling capabilities evident in the tree, including internet routing, Wi-Fi, applications, and optional MPI and real-device emulation. Source excerpts are limited, so most cross-library relationships are included only where the README or SOURCE INDEX documents them.
Main entry points: simulator.cc Core runtime · ipv4-l3-protocol.h Internet stack · he-frame-exchange-manager.cc Wi-Fi MAC and PHY · global-route-manager-impl.cc Global routing
Components 23
Simulation authoring
- C++ program
- Python program
- Python bindings
bindings/python/ns__init__.py
Simulation runtime
- Core runtime
src/core/model/simulator.cc - Event scheduling
src/core/model/default-simulator-impl.cc - Random streams
src/core/model/rng-seed-manager.cc
Network stack
- Internet stack
src/internet/model/ipv4-l3-protocol.h - IPv6 stack
src/internet/model/ipv6-l3-protocol.h - Global routing
src/internet/model/global-route-manager-impl.cc - AODV routing
src/aodv/model/aodv-routing-protocol.cc - DSR routing
src/dsr/model/dsr-routing.cc - OLSR routing
src/olsr/model/olsr-routing-protocol.cc
Network models
- Wi-Fi MAC and PHY
src/wifi/model/he/he-frame-exchange-manager.cc - Wi-Fi station control
src/wifi/model/wifi-remote-station-manager.cc - Traffic applications
src/applications/model/three-gpp-http-client.cc - Antenna models
src/antenna/model/antenna-model.cc - Building propagation
src/buildings/model/buildings-propagation-loss-model.cc
Extensions and observation
- MPI coordination
src/mpi/model/remote-channel-bundle-manager.cc - Real-device emulation
src/fd-net-device/model/fd-net-device.cc - Flow monitoring
src/flow-monitor/model/flow-monitor.cc - Network visualization
src/visualizer/visualizer/plugins/ipv4_routing_table.py
Other components
- Simulation author
- Simulation output
Connections 20
- Simulation author → C++ program: writes
README.md - Simulation author → Python program: writes
README.md - Python program → Python bindings: uses
README.md - C++ program → Core runtime: links
README.md - Python program → Core runtime: imports
README.md - C++ program → Internet stack: selects models
README.md - C++ program → Wi-Fi MAC and PHY: selects models
README.md - Core runtime → Event scheduling: schedules events
- Core runtime → Random streams: uses streams
- Global routing → Internet stack: reads routes
src/internet/model/global-route-manager-impl.cc - AODV routing → Internet stack: implements routing
- DSR routing → Internet stack: implements routing
- OLSR routing → Internet stack: implements routing
- Wi-Fi station control → Wi-Fi MAC and PHY: provides station state
src/wifi/model/wifi-remote-station-manager.cc - Traffic applications → Core runtime: uses simulator
- MPI coordination → Core runtime: coordinates simulation
README.md - Real-device emulation → Internet stack: connects host packets
README.md - Flow monitoring → Simulation output: reports flows
- Network visualization → Simulation output: displays topology
- Core runtime → Simulation output: produces traces
README.md