Skip to content
Module · ntn-sionna

ntn-sionna: Sionna RT ray tracing bridged into ns-3

ntn-sionna is an ns-3 module that bridges NVIDIA Sionna RT ray tracing into ns-3 through an opt-in PropagationLossModel, which sends transmitter, receiver and frequency queries to a Sionna RT server holding the scene on a GPU. Traced and fallback evaluations are counted separately, and caching and replay transports let a simulation run without a GPU.

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.

Four-UE city block with query caching

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

~60 scity-block-4ue-cache
Parameters
Sionna RT server host
Sionna server UDP port
Carrier frequency (Hz)
Satellite altitude (km)
Rain rate (mm/h)
Number of geometry steps along the pass
Per-query timeout (ms)
Cache spatial grid size (m)
Cache time bucket (us)
1 = when no Sionna server answers, run free space and label it "free space (no ray tracing)"; 0 aborts the run (RequireLiveTransport) (dashboard default 1, so public runs complete; the binary default 0 aborts)
Scene: Sionna RT
The interactive 3D globe loads here.

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

SpecificationWhat the module takes from it
3GPP TR 38.811NTN reference channel; the default model and the calibration baseline
3GPP TR 38.901Cited reference channel; model-B screen used for facade blockage in the RIS relay example
ITU-R P.676Gaseous absorption in the atmospheric cascade
ITU-R P.618Rain attenuation in the cascade
ITU-R P.838Rain specific attenuation
ITU-R P.681Land mobile satellite shadowing

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 "city-block-4ue-cache --PrintHelp".

  • Locally with Docker

    The public image has the whole toolkit prebuilt. This runs city-block-4ue-cache with its built-in defaults.

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

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