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.
Parameters (11)
| Parameter | Default | Unit | Description |
|---|---|---|---|
Simulation duration --simSeconds | 360 | s | Simulation duration (s) |
LEO altitude --altKm | 550 | km | LEO altitude (km) |
Orbital inclination --inclDeg | 53 | deg | Orbital inclination (deg) |
Ground-track lead between the two ground stations --leadSeconds | 180 | s | Ground-track lead between the two ground stations (s) |
GSL minimum elevation --minElevDeg | 20 | deg | GSL minimum elevation (deg) |
Offered UDP load --dataRateMbps | 4 | Mbit/s | Offered UDP load (Mbps) |
UDP payload --packetBytes | 1200 | bytes | UDP payload (bytes) |
Space-link capacity --spaceCapMbps | 50 | Mbit/s | Space-link capacity (Mbps) |
Space-link EIRP --eirpDbm | 95 | dBm | Space-link EIRP (dBm, tx power + antenna gain) |
Decode threshold of the binary link budget --minSnrDb | 6 | dB | Decode 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:
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:
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"More SAGIN examples
- HAPS, vessel and train mobility
- Remote coverage with shared infrastructure
- UAV air-to-ground link (TR 36.777)
- Aircraft replayed from an ADS-B trace
- Passenger broadband on a flight
- Flight with E2 KPM reporting
- UAV, HAPS and LEO relay path
- High-speed train under a LEO pass
- Vessel replayed from an AIS trace
- Router-steered multi-hop path
- Slice steering across HAPS, LEO and GEO
- Store-and-forward IoT over sparse LEO
- UAV swarm served by a ground gNB
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}
}