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)
| Parameter | Default | Unit | Description |
|---|---|---|---|
Simulation duration --simSeconds | 120 | s | Simulation duration (s) |
Carrier frequency --freqGHz | 2.185 | GHz | Carrier frequency (GHz) |
Offered end-to-end load --dataRateMbps | 5 | Mbit/s | Offered end-to-end load (Mbps) |
UDP payload size --packetBytes | 1200 | bytes | UDP payload size (bytes) |
UAV altitude AGL --uavAltM | 120 | m | UAV altitude AGL (m) |
HAPS altitude --hapsAltKm | 20 | km | HAPS altitude (km) |
LEO altitude --leoAltKm | 550 | km | LEO altitude (km) |
Ground-track phasing between LEO-A and LEO-B --leadSeconds | 45 | s | Ground-track phasing between LEO-A and LEO-B (s) |
Orbital inclination --inclDeg | 53 | deg | Orbital inclination (deg) |
Router min elevation for a feasible LEO --minElevDeg | 5 | deg | Router min elevation for a feasible LEO (deg) |
Per-hop P2P capacity --linkCapacityMbps | 50 | Mbit/s | Per-hop P2P capacity (Mbps) |
EIRP of each space hop --eirpDbm | 70 | dBm | EIRP of each space hop (dBm) |
Decode threshold of the binary link budget --minSnrDb | 3 | dB | Decode threshold of the binary link budget (dB) |
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-multihop-traffic"With the same parameters the browser run form starts from:
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"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
- Shortest-path routing on the contact graph
- 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}
}