Skip to content
Module · thz-ntn

thz-ntn: sub-THz and THz satellite links in ns-3

thz-ntn is an ns-3 module for sub-terahertz and terahertz non-terrestrial links from 100 GHz to 1 THz, with atmospheric loss built from ITU-R P.676-13 Annex 1 line-by-line absorption over P.835-6 reference atmospheres plus P.838-3 rain, P.840 cloud and fog, and P.618-13 scintillation. It adds ultra-massive MIMO arrays with beam squint, reconfigurable intelligent surfaces, EKF beam tracking, ISAC and inter-satellite links, and exposes the losses as ns-3 PropagationLossModels that attenuate real packets.

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.

Gaseous absorption sweep

Slant-path gaseous absorption over carrier frequency, elevation and water-vapor column (ITU-R P.676 line by line or lookup table), written to CSV.

~25 sthz-ntn-absorption-sweep
Parameters
Absorption engine: inproc (line by line), lut (bundled table) or lutfile
Absorption table used by lut and lutfile modes
Reference atmosphere (humidity profile)
Output CSV file
Elevations, comma separated (deg)
Water-vapor columns, comma separated (mm); none = profile as published
First carrier frequency (GHz)
Last carrier frequency (GHz)
Carrier frequency step (GHz) (dashboard default 2 GHz so a public run ends in about 20 s; 0.5 GHz takes about 5 min)
Satellite altitude (km)
Integration sub-steps per atmospheric layer
Run the measured packet companion after the sweep
Companion carrier (GHz)
Companion run length (s)
Companion offered 5QI 2 load (Mb/s)
Scene: Terahertz link
The interactive 3D globe loads here.

What this module models

The absorption engine, ThzNtnMolecularAbsorption, implements ITU-R P.676-13 Annex 1 with 44 oxygen and 35 water-vapor lines, integrated along a straight ray over the six P.835-6 reference atmospheres; a WaterVapourScale attribute scales the humidity profile for column sweeps. Weather terms follow P.838-3 for rain, P.840 for cloud and fog, and P.618-13 for amplitude and phase scintillation, with P.681-11 land mobile satellite and other per-recommendation reference classes unit-tested against ITU-R values. Free-space loss, pointing error and a composite cascade (ThzNtnChannelModel) complete the analytic channel.

Above the channel, the module provides UPA, UCA and Cassegrain arrays with a DFT codebook and wideband beam-squint loss, a RIS with 20 log10(N) gain under perfect CSI and phase-quantization loss, EKF or ephemeris-based beam tracking with vibration, refraction and latency pointing terms, ISAC debris ranging, inter-satellite link budgets, and alpha-mu fading. ThzNtnPropagationLossModel carries the atmospheric excess loss onto the mmwave NR spectrum channel, where the 3GPP model caps the carrier at 100 GHz; above that, ThzNtnLinkErrorModel decodes IP packets at 300 GHz on a point-to-point link without NR PHY, MAC or HARQ. A RIS can be switched by an xApp through oran-ntn. Geometry comes from SGP4 orbits in ntn-constellation, with 3GPP TR 38.811 and TR 38.821 cited for NTN geometry and TR 38.901 for the terrestrial baseline. The hardware-impairment stage is registered but not yet applied in the cascade.

Outputs

  • CSV sweeps of slant gaseous loss over frequency, elevation and PWV (thz-ntn-absorption-sweep)
  • pass_timeseries.csv with the LEO-to-ground sub-THz budget over an SGP4 pass (thz-ntn-leo-ground)
  • Measured SINR, TBLER and goodput on the mmwave NR cell, with sim_health.csv per run
  • KPM flow series to oran-ntn in the RIC-controlled RIS example

Standards

SpecificationWhat the module takes from it
ITU-R P.676-13Annex 1 line-by-line gaseous absorption (44 O2 and 35 H2O lines); Annex 2 and P.676-12 used as comparison forms
ITU-R P.835-6Reference atmospheres for the slant-path integration
ITU-R P.838-3Rain specific attenuation coefficients
ITU-R P.840Cloud and fog attenuation
ITU-R P.618-13Earth-space propagation and amplitude and phase scintillation
ITU-R P.681-11Land mobile satellite reference model
3GPP TR 38.811NTN geometry
3GPP TR 38.821NTN geometry
3GPP TR 38.901Terrestrial baseline

Key numbers

Stated in the module documentation, each with the conditions it was measured under.

Free-space path loss reported by the demo, matching 20 log10(4 pi d f / c)
194.30 dB225 GHz, 550 km, zenith (90 degrees)

Examples (19)

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 "thz-ntn-absorption-sweep --PrintHelp".

  • Locally with Docker

    The public image has the whole toolkit prebuilt. This runs thz-ntn-absorption-sweep with its built-in defaults.

    shell
    docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "thz-ntn-absorption-sweep"

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