Skip to content
Example · Digital Twin

Serving-satellite prediction

Predicts which satellite serves a ground terminal (highest elevation above a mask) over the next minutes, from the live TLE twin.

twin-handover-prediction about 15 s on the server

Parameters (5)

Defaults are the values the browser run form starts from. Pass any of them on the command line as --name=value.

ParameterDefaultUnitDescription
Terminal latitude
--ueLatDeg
33.7degTerminal latitude (deg)
Allowed: -90 to 90
Terminal longitude
--ueLonDeg
73degTerminal longitude (deg)
Allowed: -180 to 180
Prediction horizon
--horizonMin
10minPrediction horizon (min)
Allowed: 1 to 60
Prediction time step
--stepSec
10sPrediction time step (s)
Allowed: 1 to 120
Minimum serving elevation
--minElevationDeg
25degMinimum serving elevation (deg)
Allowed: 0 to 80

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 "twin-handover-prediction"

With the same parameters the browser run form starts from:

shell
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "twin-handover-prediction --ueLatDeg=33.7 --ueLonDeg=73 --horizonMin=10 --stepSec=10 --minElevationDeg=25"

List every argument with ./ns3 run "twin-handover-prediction --PrintHelp".

More Digital Twin 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}
}