6G NTN
ns3-ntn-toolkit module

oran-ntn

Space O-RAN: E2 and A1 control loops for NTN in ns-3

ns-3 module for O-RAN over satellites: E2 and A1 control loops on a measured NR NTN radio, with the RIC on board, at a HAPS, gateway or cloud.

Fig. 1 of the accompanying study: the system model. Click to zoom.
Fig. 1 of the accompanying study: the system model. Click to zoom.

What oran-ntn does

oran-ntn is an ns-3 module that brings an O-RAN control plane to non-terrestrial network simulations, with E2 and A1 control loops running over a measured NR NTN cell. RIC placement (on board a satellite, on a HAPS, at a ground gateway or in the cloud) is an experiment variable whose E2 latency follows the live slant geometry.

Accompanying studySizing Intent Leases and Placing Near-Real-Time Control for O-RAN on LEO Satellites With Intermittent Feeder Links. Code and data are in this repository.

What it 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.

Measured numbers

71,967 actions

RC actions recorded by five concurrent xApps (7,738 decisions; 71 E2 nodes, 0 conflicts, 0 policy violations)

One run of oran-ntn-full-scenario --duration=600 --numUes=20, seed 1; the RC path records actions without actuating the radio in this scenario
0.080 ms

p95 decision latency of the Doppler compensation xApp (4,272 decisions, 68,489 actions); xApp computation only, not the end-to-end loop

Same oran-ntn-full-scenario run as above
58 test cases

Size of the core oran-ntn test suite (RIC, service models, A1, Space RIC)

./test.py -s oran-ntn

Each number states the run it comes from; the README of the module lists the command that reproduces it.

Standards it follows

O-RAN E2APE2 setup, indications and control between E2 nodes and the RIC
O-RAN E2SM-KPMKPI 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-CCCService model behind the service model registry
O-RAN A1 policyPolicy types with versioning, acknowledgement and intent leasing
O-RAN WG2 and WG3 architectureNon-RT and Near-RT RIC architecture and conflict mitigation
O-RAN WG4Fronthaul split options (with 3GPP TR 38.801)
3GPP TS 28.552KPM measurement names
3GPP TS 38.331Reconfiguration with sync
3GPP TS 38.413 and TS 38.423Named among the RAN interface specifications the module follows
3GPP TR 38.821Transparent and regenerative payloads
3GPP TS 38.214Named among the physical-layer procedures the module follows
ETSI EN 302 307-1DVB-S2 MODCOD

New on 6g-ntn.live

The toolkit now runs in the browser at 6g-ntn.live: pick an example of oran-ntn or any other module, change its parameters, and the real ns-3 binary runs on the server.

Watch

Watch on YouTube: the NTN Control Center running and visualizing the toolkit examples, in five minutes.

Install

Every module ships in the ready-built container image of the toolkit (version 3.0.1):

docker pull uzairdocker69/ns3-ntn-toolkit:latest
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest bash

To build from source, clone ns3-ntn-toolkit, which vendors this module under contrib/, or follow the README of this repository (branch oran-ntn-v4).

Cite

If you use oran-ntn, please cite the toolkit article (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}
}

Links