Example · SAGIN
Slice steering across HAPS, LEO and GEO
URLLC, eMBB and mMTC flows are steered each second to HAPS, LEO or GEO by a slice router on live geometry. Per-slice delay, jitter and loss are measured.
sagin-slice-traffic about 60 s on the server
Parameters (6)
| Parameter | Default | Unit | Description |
|---|---|---|---|
Simulation duration --simSeconds | 60 | s | Simulation duration (s) |
Per-slice offered load --dataRateMbps | 5 | Mbit/s | Per-slice offered load (Mbps) |
UDP payload size --packetBytes | 1000 | bytes | UDP payload size (bytes) |
HAPS altitude --hapsAltKm | 20 | km | HAPS altitude (km) |
LEO altitude --leoAltKm | 550 | km | LEO altitude (km) |
GEO altitude --geoAltKm | 35786 | km | GEO altitude (km) |
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-slice-traffic"With the same parameters the browser run form starts from:
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "sagin-slice-traffic --simSeconds=60 --dataRateMbps=5 --packetBytes=1000 --hapsAltKm=20 --leoAltKm=550 --geoAltKm=35786"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
- Shortest-path routing on the contact graph
- 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}
}