Example · Terahertz NTN
Rain cell over a sub-THz pass
A 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.
thz-ntn-weather-traffic about 60 s on the server
Parameters (20)
| Parameter | Default | Unit | Description |
|---|---|---|---|
Simulation duration --simSeconds | 40 | s | Simulation duration (s) |
Carrier frequency --freqGHz | 100 | GHz | Carrier frequency (GHz) |
Satellite EIRP / gNB Tx power --satEirpDbm | 115 | dBm | Satellite EIRP / gNB Tx power (dBm) |
Radio backend --radio | nr | - | Radio backend: nr (FR1) or mmwave |
Rain rate during the rain phase --rainMmH | 25 | mm/h | Rain rate during the rain phase (mm/h) |
Fog liquid water content --fogLwc | 0.5 | - | Fog liquid water content (g/m^3) |
Snow rate during the snow phase --snowMmH | 10 | mm/h | Snow rate during the snow phase (mm/h) |
Scripted --scripted | false | - | 1 = earlier timed weather front (fog, rain, wet snow) |
Satellite transmitter output power --satTxW | 10 | W | Satellite transmitter output power (W) |
Satellite reflector diameter --satDishM | 0.5 | m | Satellite reflector diameter (m) |
Ground reflector diameter --gndDishM | 0.6 | m | Ground reflector diameter (m) |
Ground receiver noise figure --nfDb | 7 | dB | Ground receiver noise figure (dB) |
Channel bandwidth --bandwidthMHz | 100 | MHz | Channel bandwidth (MHz) |
NR numerology --numerology | 3 | - | NR numerology (3 = 120 kHz, extrapolated) |
Rain-cell peak rate --cellPeakMmH | 30 | mm/h | Rain-cell peak rate (mm/h) |
Rain-cell e-folding radius --cellR0Km | 1.5 | km | Rain-cell e-folding radius (km) |
Cell advection speed toward east --windMps | 20 | m/s | Cell advection speed toward east (m/s) |
Rain-cell center east offset at t=0 --cellStartKm | -1.2 | km | Rain-cell center east offset at t=0 (km, negative = west) |
Cloud liquid water content --cloudLwc | 0 | - | Cloud liquid water content (g/m^3) |
Offered downlink CBR --offeredMbps | 5 | Mbit/s | Offered downlink CBR (Mb/s) |
Reproduce it locally
With the example's built-in defaults, in the public Docker image:
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "thz-ntn-weather-traffic"With the same parameters the browser run form starts from:
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "thz-ntn-weather-traffic --simSeconds=40 --freqGHz=100 --satEirpDbm=115 --radio=nr --rainMmH=25 --fogLwc=0.5 --snowMmH=10 --scripted=false --satTxW=10 --satDishM=0.5 --gndDishM=0.6 --nfDb=7 --bandwidthMHz=100 --numerology=3 --cellPeakMmH=30 --cellR0Km=1.5 --windMps=20 --cellStartKm=-1.2 --cloudLwc=0 --offeredMbps=5"More Terahertz NTN examples
- Gaseous absorption sweep
- Absorption avoided by a raised relay
- EKF beam tracking over an SGP4 pass
- D-band constellation access
- THz scenario collection and datasets
- Integrated THz system demo
- THz ISAC space-debris detection
- ISAC sensing and communication sharing
- THz ISL link budget
- Sub-THz ISL with real packets
- LEO-to-ground link budget at 225 GHz
- Sub-THz LEO downlink with real packets
- Packets at 300 GHz
- THz atmospheric loss on a measured cell
- RIS control xApp under blockage
- RIS gain analysis
- RIS recovery of a blocked sub-THz link
- UM-MIMO array characterization
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}
}