Skip to content
Example · SAGIN

Shortest-path routing on the contact graph

Ground, UAV, HAPS and two SGP4 satellites joined by an ISL. Each hop has a graded BLER from live geometry on a declared Set-1, VSAT and ISL payload (linkModel=gate for the old binary budget), and ns-3 global routing reroutes the UDP flow on contact events. Reports loss, one-way delay p95 and route changes.

sagin-sgp4-routed-traffic about 60 s on the server

Parameters (11)

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
360sSimulation duration (s)
LEO altitude
--altKm
550kmLEO altitude (km)
Orbital inclination
--inclDeg
53degOrbital inclination (deg)
Ground-track lead between the two ground stations
--leadSeconds
180sGround-track lead between the two ground stations (s)
GSL minimum elevation
--minElevDeg
20degGSL minimum elevation (deg)
Offered UDP load
--dataRateMbps
4Mbit/sOffered UDP load (Mbps)
UDP payload
--packetBytes
1200bytesUDP payload (bytes)
Space-link capacity
--spaceCapMbps
50Mbit/sSpace-link capacity (Mbps)
Space-link EIRP
--eirpDbm
95dBmSpace-link EIRP (dBm, tx power + antenna gain)
Decode threshold of the binary link budget
--minSnrDb
6dBDecode threshold of the binary link budget (dB)
Link Model
--linkModel
satlink-satlink (per-hop graded BLER on a declared Set-1, VSAT and ISL budget, default) or gate (earlier binary budget with eirpDbm and minSnrDb)

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-sgp4-routed-traffic"

With the same parameters the browser run form starts from:

shell
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "sagin-sgp4-routed-traffic --simSeconds=360 --altKm=550 --inclDeg=53 --leadSeconds=180 --minElevDeg=20 --dataRateMbps=4 --packetBytes=1200 --spaceCapMbps=50 --eirpDbm=95 --minSnrDb=6 --linkModel=satlink"

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