What this module models
NtnRealStackHelper assembles an NR cell on either the mmWave backend or 5G-LENA nr at FR1, with a SpectrumPhy, an LDPC error model, RLC and PDCP with timers relaxed to the slant round trip, RRC, and an EPC with GTP tunneling. Satellite and ground nodes must already carry mobility (SGP4, 3GPP TR 38.811 terminal classes, or HAPS). Four payload options (transparent, regenerative RU, regenerative RU plus DU, full gNB) add processing delay on top of slant range over the speed of light, and the feeder delay is re-evaluated every second from live geometry. On the nr backend, opt-in K_offset consumption programs ceil(RTT / slot) + 1 into the UL DCI to PUSCH gap following 3GPP TS 38.213. Losses chain onto the live channel: TR 38.811 excess loss with the scenario shadow-fading tables, the TR 38.811 Section 6.4.1 circular-aperture (Airy) beam pattern, and a tapped delay line whose tap table is a documented stand-in rather than TR 38.811 Table 6.9.2.
Traffic comes from NtnOranApplication profiles tied to TS 23.501 5QI values: conversational voice (5QI 1), eMBB video (5QI 2), URLLC periodic (5QI 82), Poisson background (5QI 9), mMTC periodic and saturating CBR, plus platform command-and-control telemetry at 5QI 69. A 24-byte header with sequence number, transmit timestamp, 5QI, S-NSSAI and QFI rides inside the GTP tunnel, so NtnOranSink derives one-way delay, RFC 3550 jitter and sequence-gap loss per QoS flow. NtnOranAiFlowMonitor keys ns-3 FlowMonitor flows by QoS identity and publishes KPM series under TS 28.552 names. Every scenario writes a sim_health.csv record that tags each KPI as measured, modeled or configured. Classic 3GPP HTTP, NRTV and CBR generators remain available.
Outputs
- sim_health.csv with provenance gates (transport blocks decoded, SINR from the PHY trace, active error model) and a measured/modeled/configured tag per KPI
- <prefix>_kpm_series.csv and .lp per-flow KPM series under TS 28.552 names
- FlowMonitor XML, CSV, InfluxDB line protocol and E2SM-KPM-shaped exports
- Per-QoS-flow one-way delay, RFC 3550 jitter, loss and throughput from NtnOranSink
- array_gain_calibration.csv and array_gain_summary.csv from the beam-pattern calibration
- scalability_regimes.csv rows with offered load, wall clock and peak RSS
Standards
| Specification | What the module takes from it |
|---|---|
| 3GPP TR 38.811 | NTN excess loss and shadow-fading tables, Section 6.4.1 Airy beam pattern, terminal classes |
| 3GPP TR 38.821 | Set-1 LEO-600 link budget for SINR calibration; transparent-payload feeder delay (Table 4.2-2) |
| 3GPP TS 38.101-5 | NTN FR1 bands n255 and n256 |
| 3GPP TS 38.213 | K_offset for the UL DCI to PUSCH gap (Section 4.2) |
| 3GPP TS 38.104 | frequency ranges behind the air_interface health tag |
| 3GPP TS 23.501 | 5QI, QFI and S-NSSAI identities of the traffic profiles |
| 3GPP TS 28.552 | KPM measurement names such as DRB.UEThpDl and DRB.RlcSduDelayDl |
| O-RAN E2SM-KPM | KPM series names and E2-indication-shaped exporter |
| IETF RFC 3550 | interarrival jitter computed per QoS flow |
| 3GPP TR 25.892 | basis of the inherited HTTP and NRTV traffic models |
Key numbers
Stated in the module documentation, each with the conditions it was measured under.
- offset of measured SINR over the TR 38.821 closed-form CNR
- 4.06 ± 0.22 dB
- within-run spread (standard deviation) of the SINR offset
- 2.47 dB
- SINR decay from zenith to 10 deg elevation, measured against the TR free-space prediction
- 10.47 ± 1.30 dB measured vs 9.97 dB predicted
- RMS error of the recovered beam pattern against the TR 38.811 Airy pattern, fixed ground point, angles 1.90 to 5.73 deg
- 2.85 ± 0.24 dB
- RMS error of the recovered beam pattern, nadir-fixed boresight, angles 1.27 to 50.5 deg
- 2.71 ± 0.21 dB
Examples (11)
- NRTV video over a point-to-point linkNear-real-time video streaming between a server and a client over one point-to-point link. Writes a gnuplot trace of the traffic the client receives.
- NRTV traffic model distributionsSamples the NRTV traffic model distributions (slice size, encoding delay) and writes histograms; optionally runs a short TCP NRTV session to report QoE.
- CBR traffic over a LEO-600 linkConstant-bit-rate traffic over a point-to-point link with a fixed LEO-600 worst-case delay (25.77 ms RTD) and a packet error model; no orbit and no radio. Measures delivered bytes, throughput, delay and jitter (FlowMonitor mean IPDV, RFC 3393).
- Native NR features over NTNExercises 5G-LENA features on a LEO cell: handover on cell-level SS-RSRP (none at the 10 s defaults, as the neighbor recedes), per-slice BWPs with QoS scheduling, native NR statistics and MIMO rank adaptation, all measured.
- 5G-LENA FR1 link in S-bandA 600 km LEO gNB serves a few ground UEs on an S-band FR1 carrier (15 or 30 kHz SCS) with the TR 38.821 Set-1 terminal and payload and a feeder from a gateway 500 km north. Reports measured SINR, TBLER and throughput.
- NR A3 handover between two satellitesTwo SGP4 satellites; the A3 event runs on cell-level SS-RSRP from an SSB on an Earth-fixed cell beam (TS 38.215), with a TR 38.821 Set-1 handheld UE and a feeder from a gateway 500 km away. At defaults one X2 handover and no ping-pong (near 56 s with fading, 88 s with fading=0).
- Four 5QI QoS flows on one LEO cellVoice, video, URLLC and IoT flows with their own 5QI and S-NSSAI share one measured LEO cell (Set-1, gateway feeder), plus satellite telemetry uplink. Per-flow delay, jitter and loss are measured; KPM comes from RAN counters (RLC SDU delay, TB counts, PRB usage).
- Measured NR NTN cell quick testOne LEO gNB serves a few ground UEs over a measured NR air interface with UDP traffic, using the TR 38.821 Set-1 terminal and payload (77 dBm EIRP over 20 MHz) and a real gateway feeder. Reports SINR, TBLER and throughput; channel=ns3ntn, fading=0 and excessLoss=0 help with link-budget checks.
- Scalability envelope by load regimeOffered load, wall clock and peak memory of a Walker shell in telemetry, CBR, eMBB, URLLC and voice regimes, with and without the measured radio.
- Satellite array gain against angleThe same LEO-600 pass (Kepler orbit with J2) with a steered and a fixed beam, showing that the satellite array gain depends on the off-boresight angle. Measured CNR against the TR 38.821 closed form.
- TR 38.821 link budget calibrationMeasured SINR over a LEO-600 S-band pass (Kepler orbit with J2) compared with the TR 38.821 closed-form CNR; checks that the offset stays constant and the elevation slope matches.
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 "nrtv-p2p-example --PrintHelp".Locally with Docker
The public image has the whole toolkit prebuilt. This runs
nrtv-p2p-examplewith its built-in defaults.docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "nrtv-p2p-example"
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}
}