What this module models
NtnSionnaChannel is an opt-in PropagationLossModel that streams {tx, rx, freq_hz} queries to sionna-server.py, which keeps a scene resident on a GPU and answers with a scalar path loss and a path count over UDP (default port 8765); the GPU need not be on the machine running ns-3. Transports are pluggable: UDP, an in-process pybind build, a 4-D LRU caching decorator whose key includes array, RIS and LOS-only settings, and a record-and-replay transport that runs without a GPU. If the server times out, the model falls back to free-space loss, counts the fallback separately, and with SetRequireLiveTransport(true) makes a missing server fatal. The closed-form 3GPP TR 38.811 channel stays the default.
Because Sionna RT does not model the atmosphere, NtnSionnaCascadeChannel adds an ITU-R chain on top of the traced loss: P.676 gaseous absorption, P.618 and P.838 rain, and P.681 land mobile satellite shadowing. The same chain is available as an excess-only loss model that can be added to any spectrum channel without counting FSPL twice. SionnaCirPropagationLossModel applies multipath taps with per-tap Doppler from the endpoints' live velocity, but the taps are supplied by the caller and are not ray traced. SionnaCalibrator reports the residual of traced loss against the TR 38.811 reference with a declared LOS mode and gate. Python tools convert OpenStreetMap and LiDAR data into scenes. Measured-radio examples run the loss on an NR or mmwave NTN cell from ntn-traffic with SGP4 Walker mobility, and TR 38.901 is cited alongside TR 38.811.
Outputs
- Per-run counts of traced and fallback evaluations and a raytrace_live flag naming the path that produced the numbers
- Replay files written by leo-pass-sionna-vs-tr38811 for GPU-free reruns
- Cache hit, miss and eviction counts (city-block-4ue-cache)
- Calibration residual against TR 38.811 with its gate (sionna-calibration-harness)
- Measured SINR, TBLER and goodput, per-step path-loss tables, KPM series and sim_health.csv from the measured-radio examples
Standards
| Specification | What the module takes from it |
|---|---|
| 3GPP TR 38.811 | NTN reference channel; the default model and the calibration baseline |
| 3GPP TR 38.901 | Cited reference channel; model-B screen used for facade blockage in the RIS relay example |
| ITU-R P.676 | Gaseous absorption in the atmospheric cascade |
| ITU-R P.618 | Rain attenuation in the cascade |
| ITU-R P.838 | Rain specific attenuation |
| ITU-R P.681 | Land mobile satellite shadowing |
Examples (12)
- Four-UE city block with query cachingFour UEs on a city block query a Sionna RT server through a caching transport, with ITU-R atmospheric loss on top; shows how many queries the cache absorbs. Ray traced only with a live server: the dashboard sets allowFallback=1, so without one the run is free space (no ray tracing).
- LEO pass against TR 38.811 free spaceMeasured SINR, TBLER and goodput of a LEO downlink with multipath fading, printed next to the TR 38.811 free-space reference each tick. Optional live Sionna RT server.
- SISO against massive MIMO over a LEO passThe same LEO pass with a SISO and a planar mMIMO satellite array through a Sionna RT server, with gaseous and rain loss; the MIMO gain is the summed per-port power, not a beamforming gain. Ray traced only with a live server: the dashboard sets allowFallback=1, so without one the run is free space (no ray tracing).
- Multipath fading on a measured linkA synthetic multipath profile with per-tap Doppler applied per RB as a frequency-selective H(f) on a measured NR LEO link (flatCir=1 for the old flat collapse). Reports the measured SINR and its spread.
- Composed atmospheric and fading channelFree space, ITU-R gaseous and rain loss chained in one ns-3 loss pipeline on a measured NR cell, with the 3GPP spatial channel as the only small-scale process (extraFading=nakagami adds the old second draw) and the TR 38.811 model printed alongside.
- Best-link selection across satellitesA ground UE is served by successive same-plane satellites of a Walker shell. The best predicted link is chosen with hysteresis while measured traffic flows; handovers are logged.
- LEO downlink with ITU-R atmosphereMeasured NR downlink over an SGP4 pass on declared Ku apertures (10 W, 0.7 m satellite dish, 0.6 m gateway dish), within 0.03 dB of the link budget, with ITU-R gaseous and rain loss and optional P.681 land-mobile shadowing.
- SISO and MIMO terminals side by sideTwo UEs on the same LEO cell, one SISO and one with an NxN array. The array gain is applied in the packet path, so the SINR and throughput gap is measured.
- Rain cell crossing the gatewayAn EXCELL rain cell drifts toward the station during a Ka-band pass on the TR 38.821 Set-1 payload; its P.838 attenuation enters per RB along the live slant path. Measured SINR, TBLER and goodput fall as path rain rises (scripted=1 restores the old timeline).
- RIS recovery of a blocked LEO linkDeclared Ku payload (10 W, 0.7 m dish). As the satellite descends a facade blocks the direct path by geometry, and an RIS on the opposite facade engages when the measured SINR falls below 10 dB. Compare measured SINR and goodput with risMode auto, on and off.
- RIS-assisted LEO ground linkMeasured NR LEO link with ITU-R atmospheric loss. The RIS reflection gain from a Sionna cascade is an analytic column printed per tick, not applied to packets. Ray traced only with a live server: the dashboard sets allowFallback=1, so without one the run is free space (no ray tracing).
- Sionna RT calibration checkCompares an ns-3 propagation loss model (Friis by default) with a Sionna RT server and reports residual statistics against a 1 dB LOS-only gate. Needs a live server: without one the binary exits non-zero, and the dashboard default (allowFallback=1) exits 0 with an empty calibration.
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 "city-block-4ue-cache --PrintHelp".Locally with Docker
The public image has the whole toolkit prebuilt. This runs
city-block-4ue-cachewith its built-in defaults.docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "city-block-4ue-cache"
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}
}