What this module models
Where a RAN Intelligent Controller sits decides how stale its view is when a decision lands, and whether a satellite can still act when its feeder link is down. oran-ntn makes this measurable. An NR NTN cell on an SGP4 orbit, built by the ntn-traffic helper, supplies per-UE SINR and TBLER that are packed into E2SM-KPM indications under 3GPP TS 28.552 names, each row tagged with its provenance. The E2 node sends each indication one feeder delay up to the Near-RT RIC, optionally aligned to the 100 ms RIC tick, and buffers indications during a feeder outage while a Space RIC on the satellite takes over in autonomous mode. xApps decide, a conflict manager resolves contention, and E2SM-RC actions travel back to registered actuators such as a handover trigger or a beam loss model on the live channel. The next KPM report shows whether the action changed the radio.
The module has a real-time RIC tier on the satellite that refuses loop periods of 10 ms or more, A1 policy management with intent leases that fall back to a safe intent, a contact plan, cross-domain SMO analytics (NWDAF, transport path controller), and O-RAN WG4 fronthaul split options 2, 7.2a, 7.2b and 8 checked against the measured feeder delay. Platform classes (UAV, HAP, LEO, MEO, GEO), functional role switching from RU to full gNB, transparent and regenerative payloads after 3GPP TR 38.821, and ONNX-based inference xApps with a heuristic fallback are included. In simulation, E2 is a delay-modeled ns-3 header rather than ASN.1 APER over SCTP, and O1 is not modeled.
Outputs
- kpm_feed.csv with a provenance column (phy-trace or geometry-budget) and kpm_canonical.csv
- action_log.csv and conflict_log.csv
- xapp_metrics.csv and space_ric_metrics.csv
- ric_metrics.txt
- sim_health.csv
Standards
| Specification | What the module takes from it |
|---|---|
| O-RAN E2AP | E2 setup, indications and control between E2 nodes and the RIC |
| O-RAN E2SM-KPM | KPI indications built from measured per-UE SINR and TBLER |
| O-RAN E2SM-RC (including Style 3) | Control actions such as BEAM_SWITCH and HANDOVER_TRIGGER |
| O-RAN E2SM-CCC | Service model behind the service model registry |
| O-RAN A1 policy | Policy types with versioning, acknowledgement and intent leasing |
| O-RAN WG2 and WG3 architecture | Non-RT and Near-RT RIC architecture and conflict mitigation |
| O-RAN WG4 | Fronthaul split options (with 3GPP TR 38.801) |
| 3GPP TS 28.552 | KPM measurement names |
| 3GPP TS 38.331 | Reconfiguration with sync |
| 3GPP TS 38.413 and TS 38.423 | Named among the RAN interface specifications the module follows |
| 3GPP TR 38.821 | Transparent and regenerative payloads |
| 3GPP TS 38.214 | Named among the physical-layer procedures the module follows |
| ETSI EN 302 307-1 | DVB-S2 MODCOD |
Key numbers
Stated in the module documentation, each with the conditions it was measured under.
- RC actions recorded by five concurrent xApps (7,738 decisions; 71 E2 nodes, 0 conflicts, 0 policy violations)
- 71,967 actions
- p95 decision latency of the Doppler compensation xApp (4,272 decisions, 68,489 actions); xApp computation only, not the end-to-end loop
- 0.080 ms
- Size of the core oran-ntn test suite (RIC, service models, A1, Space RIC)
- 58 test cases
Examples (12)
- RIC, slicing and KPIs on one cellTwo SGP4 NR cells with measured KPM. Admitted xApps actuate handover and MAC slice quotas through the actuator registry (routed and actuated actions are counted separately), next to a slice monitor on the same data plane. e2Transport=packet carries E2 as datagrams over the feeder (feederOutageAt=8 shows an outage).
- Latency by platform classUAV, HAPS, LEO, MEO and GEO platform classes on the measured NR stack with a gateway feeder; one-way delay is measured in band and checked against the per-class RTT bands. The measured RAN share is 3 to 4 ms, so UAV and HAPS miss the ~1 ms band and the run exits 1 by design. GEO at the 10 deg default is not run (RRC T300 limit); mode=transport keeps the propagation-only check.
- Cross-domain closed loopThree slices over two SGP4 satellites. When URLLC delay rises, an xApp and the SMO act on RAN quota, transport path and edge compute, moving the route to the rising satellite.
- E2 exchange over SCTPA Near-RT RIC and an E2 agent exchange E2SM-KPM indications and an E2SM-RC control request over a real SCTP or TCP association, using toolkit framing rather than E2AP.
- Post-disaster emergency sliceThe terrestrial gateway fails, the satellite becomes an on-board gNB and responders join on a dedicated emergency slice. Measures recovery time and per-slice delay and loss.
- Control over intermittent feeder linksE2, A1, heartbeat and lease messages as real UDP packets over gateway feeder links with rain fades and handoffs. Compare ground, on-board and predictive control strategies.
- Constellation-scale RIC scenario66-satellite Walker shell, terrestrial gNBs and mixed UEs under a Near-RT RIC with several xApps; on-board Space RICs take over handovers during a regional feeder outage.
- RL handover environment (Gym)RL handover environment on the measured NR stack: observations from measured KPM (RRC RSRP margin to the best neighbor, SINR, PRB use), a goodput reward, and handover actions actuated through the RIC. The dashboard runs it with gym=1 and a paired Python agent (greedy A3-margin policy); gym=0 steps an in-process policy instead.
- Satellite payload options comparedTransparent, O-RU, O-DU and full gNB payloads on the same LEO cell. Measures one-way delay for each option and checks fronthaul split feasibility over the feeder.
- Near-RT RIC on a measured LEO cellKPM from a measured NR NTN cell, enriched with SGP4 elevation, Doppler and time-to-exit, feeds a Near-RT RIC and xApps; candidate satellites act as handover targets.
- mMIMO beam xApp closed loopAn xApp switches mMIMO beams through E2SM-RC when KPM SINR drops, with feeder delay on both legs of the loop; measured SINR and goodput recover. Optional latency probe.
- RIC placement comparisonA beam-restoration xApp reacts to periodic deep fades with E2 latency set by RIC placement (on-board, HAPS, gateway, cloud). Compares reaction and PHY recovery times.
Run it
In the browser
Pick an example in the run panel above, set its parameters and press Run. The console streams live and the result opens with KPI charts.
In the ns-3 console
The browser console accepts ns-3 style commands, for example
ns3 run "ntn-e2e-full-stack --PrintHelp".Locally with Docker
The public image has the whole toolkit prebuilt. This runs
ntn-e2e-full-stackwith its built-in defaults.docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "ntn-e2e-full-stack"
Cite this
If you use this module, please cite the article that describes the toolkit: doi:10.1109/OJCOMS.2026.3745010.
M. Uzair, B. G. Aldahlan, A. A. Albar, H. Althumali and A. Alghammas, "ns3-ntn-toolkit: An integrated ns-3 platform for 6G non-terrestrial networks," IEEE Open Journal of the Communications Society, vol. 7, pp. 13440-13467, 2026, doi: 10.1109/OJCOMS.2026.3745010.
@article{uzair2026ns3ntntoolkit,
author = {Uzair, Muhammad and Aldahlan, Bassma G. and Albar, Ali A. and
Althumali, Huda and Alghammas, Adnan},
title = {ns3-ntn-toolkit: An Integrated ns-3 Platform for 6G
Non-Terrestrial Networks},
journal = {IEEE Open Journal of the Communications Society},
volume = {7},
pages = {13440--13467},
year = {2026},
doi = {10.1109/OJCOMS.2026.3745010}
}