Skip to content
Module · oran-ntn

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

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.

Run it in the browser

Choose an example, set its parameters and run the real ns-3 binary on this server. The scene shows the configured geometry before the run and the results after it.

RIC, slicing and KPIs on one cell

Two 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).

~60 sntn-e2e-full-stack
Parameters
Simulation duration (s)
UEs (MixedBouquet: u%3 = 0 mMTC, 1 eMBB, 2 URLLC)
Shell altitude (km)
Run the admitted xApps (0 = same radio, no RIC control)
event (E2 messages as delayed events, default) or packet (E2AP datagrams over the feeder link; with feederOutageAt=8 the run shows an outage)
packet transport: feeder outage start on E2 node 1 (s, <0 off)
packet transport: feeder outage duration (s)
packet transport: E2 control bearer rate (Mb/s)
packet transport: udp (datagrams) or tcp (one reliable connection per E2 node, SCTP stand-in)
packet transport: feeder packet error rate (both ways)
Gateway ground distance north of the UE site (km)
UE site as a fraction of the way from the serving to the neighbor satellite sub-point (0.5 = midway, interference limited)
ho-predict measured-RSRP A3 offset (dB)
initial MAC slice quotas eMBB,URLLC,mMTC
Scene: O-RAN / RIC
The interactive 3D globe loads here.

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

SpecificationWhat the module takes from it
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

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 actionsOne run of oran-ntn-full-scenario --duration=600 --numUes=20, seed 1; the RC path records actions without actuating the radio in this scenario
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 msSame oran-ntn-full-scenario run as above
Size of the core oran-ntn test suite (RIC, service models, A1, Space RIC)
58 test cases./test.py -s oran-ntn

Examples (12)

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-stack with its built-in defaults.

    shell
    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.

BibTeX
@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}
}