LEO path delay through the Gym interface
A Starlink-like shell (SGP4) serves a terminal in Toulouse through a gateway in Madrid. Each step, ns-3 sends the up-link and feeder one-way delays to a Python agent over the Gym bridge, and the agent returns the end-to-end delay. Altitude, inclination and minimum elevation change the delays, the handovers and the satellites on the globe.
Parameters (5)
| Parameter | Default | Unit | Description |
|---|---|---|---|
Walker shell altitude --altKm | 550 | km | Walker shell altitude (km) |
Walker shell inclination --inclinationDeg | 53 | deg | Walker shell inclination (deg) |
Minimum elevation at both ground ends --minElevationDeg | 25 | deg | Minimum elevation at both ground ends (deg) |
Exchanges with the Python agent --steps | 10000 | - | Exchanges with the Python agent |
Time between samples of the pass --dtS | 0.1 | s | Time between samples of the pass (s) |
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 "ns3ai_apb_gym"With the same parameters the browser run form starts from:
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "ns3ai_apb_gym --altKm=550 --inclinationDeg=53 --minElevationDeg=25 --steps=10000 --dtS=0.1"More AI / MARL 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.
@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}
}