Skip to content
Example · SAGIN

UAV, HAPS and LEO relay path

Ground UE to UAV relay access on a measured NR cell with the TR 36.777 channel, while a multi-layer router logs the UAV, HAPS and LEO path geometry each second.

sagin-haps-leo-relay about 60 s on the server

Parameters (6)

Defaults are the values the browser run form starts from. Pass any of them on the command line as --name=value.

ParameterDefaultUnitDescription
Simulation duration
--simTime
30sSimulation duration (s)
Number of ground UEs
--numUes
1-Number of ground UEs
UAV relay altitude above ground
--uavAlt
100mUAV relay altitude above ground (m)
UAV relay gNB conducted transmit power
--gnbTxDbm
24dBmUAV relay gNB conducted transmit power (dBm); 24 is the TS 38.104 Local Area BS class
Output CSV of the router geometry
--csv
sagin-haps-leo-relay.csv-Output CSV of the router geometry
Radio backend
--radio
nr-Radio backend: nr (FR1) or mmwave

Reproduce it locally

With the example's built-in defaults, in the public Docker image:

shell
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "sagin-haps-leo-relay"

With the same parameters the browser run form starts from:

shell
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "sagin-haps-leo-relay --simTime=30 --numUes=1 --uavAlt=100 --gnbTxDbm=24 --csv=sagin-haps-leo-relay.csv --radio=nr"

List every argument with ./ns3 run "sagin-haps-leo-relay --PrintHelp".

More SAGIN examples

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