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
| Specification | What the module takes from it |
|---|---|
| ITU-R P.676-13 | Annex 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-6 | Reference atmospheres for the slant-path integration |
| ITU-R P.838-3 | Rain specific attenuation coefficients |
| ITU-R P.840 | Cloud and fog attenuation |
| ITU-R P.618-13 | Earth-space propagation and amplitude and phase scintillation |
| ITU-R P.681-11 | Land mobile satellite reference model |
| 3GPP TR 38.811 | NTN geometry |
| 3GPP TR 38.821 | NTN geometry |
| 3GPP TR 38.901 | Terrestrial 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 dB
Examples (19)
- Gaseous absorption sweepSlant-path gaseous absorption over carrier frequency, elevation and water-vapor column (ITU-R P.676 line by line or lookup table), written to CSV.
- Absorption avoided by a raised relayHow much THz absorption a relay avoids by lifting the lower endpoint: ground, aircraft and HAPS altitudes to a LEO satellite (ITU-R P.676 over the P.835 atmosphere).
- EKF beam tracking over an SGP4 passAn EKF or position-based tracker steers the beam during an SGP4 pass. Pointing error becomes a live loss on a measured link, so the two modes can be compared on SINR and goodput.
- D-band constellation accessGround terminals pick the highest-elevation satellite among several Walker satellites at 140 GHz and compute link quality. Link budget only, no packets.
- THz scenario collection and datasetsRuns eight analytic THz scenarios (LEO-ground, ISL, D-band, RIS, ISAC, UM-MIMO, atmospheric windows, beam tracking) and writes CSV datasets. Pick one with example=N. In the RIS scenario the gain column is the array factor; the link improvement is the cascaded-law value beside it.
- Integrated THz system demoTwo LEO satellites with a 225 GHz downlink and 300 GHz ISL, a ground RIS, ISAC debris sensing, EKF tracking and DAMC resource allocation on SGP4 geometry. Analytic, no packets. The RIS gain column is the array factor over one element; the link improvement is the cascaded-law value beside it.
- THz ISAC space-debris detectionRadar-equation analysis of 300 GHz space-debris sensing (resolution, detection probability and Cramer-Rao bounds over range and debris size), then real packets over an SGP4 pass show the goodput left to communication when 30 % of the beam goes to sensing.
- ISAC sensing and communication sharingA scheduler splits the beam between communication and sensing across ISAC modes. Measured goodput on an NR LEO link drops in proportion to the communication share.
- THz ISL link budget300 GHz inter-satellite link: a distance sweep comparing Shannon and hardware-limited capacity, plus a time series between two SGP4 cross-plane neighbors. Analytic, no packets.
- Sub-THz ISL with real packetsMeasured NR ISL at 100 GHz between two SGP4 satellites: 1 W behind 0.3 m dishes, free-space LOS with no fading or Earth-space terms. SINR stays within 0.2 dB of the free-space budget. No 3GPP ISL air interface exists, so the numerology is extrapolated.
- LEO-to-ground link budget at 225 GHzLink budget of a 225 GHz LEO downlink across elevation and along an SGP4 pass, including molecular absorption. Analytic, no packets.
- Sub-THz LEO downlink with real packetsMeasured NR at 100 GHz (mu 3 over 100 MHz, an extrapolation beyond FR2-2) over an SGP4 pass on a declared payload: 10 W into a 0.5 m dish (EIRP 92.2 dBm) and a 0.6 m ground dish. Per-RB P.676 absorption and P.618 scintillation on a LOS path; SINR within 0.2 dB of the printed independent budget.
- Packets at 300 GHzReal IP packets over a 300 GHz LEO link whose delivery follows the THz propagation chain (gaseous, weather, scintillation, pointing). No NR PHY; a link-level transport result.
- THz atmospheric loss on a measured cellDeclared payload and dishes (10 W, 0.5 m satellite and 0.3 m terminal reflectors) on a measured NR LEO cell with per-RB P.676 absorption and P.618 rain, applied in the second half of the run so its effect on measured SINR is visible. Optional 3D export.
- RIS control xApp under blockageAn xApp engages a ground RIS when KPM SINR falls below a threshold. Goodput collapses under an urban blockage, recovers when the RIS engages and holds when it clears.
- RIS gain analysisDirect against RIS-assisted THz satellite downlink at a chosen elevation. Analytic, no packets. The RIS gain column is the array factor over one element (the N squared law); the link improvement is the cascaded-law value printed beside it.
- RIS recovery of a blocked sub-THz linkA truck blocks the line of sight by geometry (TR 38.901 blockage model B on the radio). A 64x64 RIS adds a coherent second ray per the cascaded aperture law, engaged by a measured-SINR controller. Blocked goodput is about 5 % of LOS without the RIS and 55 % with it.
- UM-MIMO array characterizationGain, beamwidth, near-field distance and size of ultra-massive MIMO arrays at 300 GHz, compared with a Cassegrain reflector. Analytic, no scenario geometry.
- Rain cell over a sub-THz passA rain cell drifts over the ground station during a sub-THz pass. Per-RB P.838 rain attenuation is integrated along the live slant path, so nothing is scripted (scripted=1 restores the old timed front). Measured SINR and goodput follow the rain.
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-sweepwith its built-in defaults.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.
@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}
}