Modules
ns3-ntn-toolkit ships fourteen integrated ns-3 contrib modules plus the vendored SNS3 satellite stack. Together they simulate a 5G/6G non-terrestrial network from orbit to application. Every module builds from one ./ns3 build, ships its own examples and tests, and twelve of them are also published as standalone repositories that drop into an existing ns-3.49 tree. ntn-traffic and ntn-fapi live only in the toolkit repository.
How to read this page. Modules are grouped by the layer of the stack they model, following the architecture. Each module page has a system design figure, measured results with their data source, the classes, examples, tests and an honest scope section.
Orbital and mobility
| Module |
What it simulates |
Repository |
| ntn-constellation |
SGP4 from real TLEs, Kepler + J2 for generated Walker-Delta and Walker-Star shells, ISL contact-graph routing, constellation presets |
ntn-constellation |
| ntn-sagin |
ground, UAV, HAPS and LEO layers, TR 36.777 air-to-ground channel, multi-layer routing, store and forward |
ntn-sagin |
| ntn-v2x |
NR sidelink PC5 Mode 2, SAE J2735 basic safety messages, SUMO traces, direct-versus-relay selection on measured SINR |
ntn-v2x |
Protocol, L1 to L3
| Module |
What it simulates |
Repository |
| ntn-traffic |
NtnRealStackHelper, the measured NR NTN data plane (SpectrumPhy, HARQ, RLC, PDCP, RRC, EPC) the other modules build on |
toolkit only |
| ntn-cho |
conditional handover with time-to-exit and the TS 38.331 NTN trigger set (A3, D1, D2, T1, timing advance, elevation) |
ntn-cho-framework |
| ntn-rrc |
SIB19 ephemeris with cellSpecificKoffset consumed by the scheduler, payload-aware timing advance, GNSS location reports, NTN DRX |
ntn-rrc |
| ntn-fapi |
SCF-222 FAPI MAC-PHY adapter on a live NR SAP, per-UE HARQ state, latency gate |
toolkit only |
| ntn-slice |
eMBB, URLLC and mMTC sharing a real NR cell, per-5QI bearers, SLA percentiles from a delay histogram |
ntn-slice |
Physical layer
| Module |
What it simulates |
Repository |
| thz-ntn |
100 GHz to 1 THz links: ITU-R P.676-13 absorption with the P.618, P.838 and P.840 cascade, pointing error, RIS, EKF beam tracking |
ns3-thz-ntn |
| ntn-sionna |
NVIDIA Sionna RT ray-traced channels bridged into ns-3 with per-query provenance and a TR 38.811 calibrator |
ntn-sionna |
Control and learning
| Module |
What it simulates |
Repository |
| oran-ntn |
Near-RT RIC, RT RIC and on-board Space RIC with xApps; E2 (KPM, RC) and A1 loops on a measured radio; RIC placement from live slant geometry; A1 intent leases; a FlexRIC bridge (in-simulation E2 is an ns-3 header, not ASN.1 over SCTP) |
oran-ntn |
| ns3-ai-ntn |
ns3-ai fork for ns-3.49: Gymnasium 1.0 over versioned shared memory, an AI-RAN inference contract, NTN RL tooling |
ns3-ai |
Operations
Vendored upstream
| Module |
What it simulates |
Repository |
| satellite (SNS3) |
the SNS3 base: SatSGP4 mobility, satellite channel, DVB-S2, S2X and RCS2 link results, antenna patterns |
sns3-satellite |
Start with the getting-started guide to build the whole toolkit, then open the layer you research. To cite the toolkit, see Cite.