Skip to content
Example · SAGIN

Router-steered multi-hop path

UDP traffic from ground through a UAV and a HAPS to one of two LEO satellites and a gateway. The router's choice switches the live path, so throughput moves between satellites.

sagin-multihop-traffic about 60 s on the server

Parameters (13)

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

ParameterDefaultUnitDescription
Simulation duration
--simSeconds
120sSimulation duration (s)
Carrier frequency
--freqGHz
2.185GHzCarrier frequency (GHz)
Allowed: 0.5 to 100
Offered end-to-end load
--dataRateMbps
5Mbit/sOffered end-to-end load (Mbps)
UDP payload size
--packetBytes
1200bytesUDP payload size (bytes)
UAV altitude AGL
--uavAltM
120mUAV altitude AGL (m)
HAPS altitude
--hapsAltKm
20kmHAPS altitude (km)
LEO altitude
--leoAltKm
550kmLEO altitude (km)
Ground-track phasing between LEO-A and LEO-B
--leadSeconds
45sGround-track phasing between LEO-A and LEO-B (s)
Orbital inclination
--inclDeg
53degOrbital inclination (deg)
Router min elevation for a feasible LEO
--minElevDeg
5degRouter min elevation for a feasible LEO (deg)
Per-hop P2P capacity
--linkCapacityMbps
50Mbit/sPer-hop P2P capacity (Mbps)
EIRP of each space hop
--eirpDbm
70dBmEIRP of each space hop (dBm)
Decode threshold of the binary link budget
--minSnrDb
3dBDecode threshold of the binary link budget (dB)

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-multihop-traffic"

With the same parameters the browser run form starts from:

shell
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "sagin-multihop-traffic --simSeconds=120 --freqGHz=2.185 --dataRateMbps=5 --packetBytes=1200 --uavAltM=120 --hapsAltKm=20 --leoAltKm=550 --leadSeconds=45 --inclDeg=53 --minElevDeg=5 --linkCapacityMbps=50 --eirpDbm=70 --minSnrDb=3"

List every argument with ./ns3 run "sagin-multihop-traffic --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}
}