Skip to content
Example · Constellation

Route recomputation policies

Ground-to-ground routing over a Walker shell with +Grid ISLs on a real IPv4 plane. Compare snapshot, on-demand, merged-snapshot and lifetime-aware policies on loss and delay.

ntn-constellation-route-lifetime about 12 s on the server

Parameters (52)

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

ParameterDefaultUnitDescription
Walker number of planes P
--planes
72-Walker number of planes P
Satellites per plane S
--perPlane
22-Satellites per plane S
Walker phasing factor F
--phasing
39-Walker phasing factor F
Inc
--inc
53degInclination (deg)
Alt Km
--altKm
550kmAltitude (km)
Star
--star
false-Walker-Star (planes over 180 deg) instead of Walker-Delta
Allowed: true, false
Ground station A latitude
--latA
51.5degGround station A latitude (deg)
Ground station A longitude
--lonA
-0.13degGround station A longitude (deg)
Ground station B latitude
--latB
40.7degGround station B latitude (deg)
Ground station B longitude
--lonB
-74degGround station B longitude (deg)
Ground-link elevation mask
--minElev
25degGround-link elevation mask (deg)
Elevation policy
--trigger
25degElevation policy: switch when an end satellite sinks below this elevation (deg)
Simulated time
--duration
600sSimulated time (s)
Contact sampling interval
--tick
0.1sContact sampling interval (s)
Contact transitions bisected to this resolution and fired at...
--transitionResMs
1mscontact transitions bisected to this resolution and fired at their instant (ms); 0 = on the sampling grid (pre-Wave-6B)
UDP packet rate
--rate
20-UDP packet rate (packets/s)
Start time after the element epoch
--startOffset
0sStart time after the element epoch (s)
ISL range cap
--islCapKm
5000kmISL range cap (km)
Routing policy
--policy
life-Routing policy: snap, ondemand, asr or life
Snapshot policy
--period
0.1sSnapshot policy: recomputation period (s)
On-demand policy: failure detection delay
--detect
0.05sOn-demand policy: failure detection delay (s)
On-demand policy: route setup delay
--setup
0.1sOn-demand policy: route setup delay (s)
Merged-snapshot policy
--window
30sMerged-snapshot policy: window (s)
Lifetime policy: allowed delay stretch over the shortest path
--eps
0.05-Lifetime policy: allowed delay stretch over the shortest path (fraction)
Lifetime policy: switch this long before the predicted expiry
--guard
1sLifetime policy: switch this long before the predicted expiry (s)
Acquisition time of a new ground link, all policies
--tAcq
0sAcquisition time of a new ground link, all policies (s)
Lifetime policy: also switch when the held route's stretch exceeds eps
--hold
false-Lifetime policy: also switch when the held route's stretch exceeds eps
Allowed: true, false
Along-track error of the predictor's ephemeris, 1 sigma
--predSigmaKm
0kmAlong-track error of the predictor's ephemeris, 1 sigma (km)
Turn cross-plane ISLs off above this latitude
--crossLatDeg
0degTurn cross-plane ISLs off above this latitude (deg, 0 = never)
CSV file for the longest admissible lifetime every second
--reachOut
(empty)-CSV file for the longest admissible lifetime every second (empty = off)
No IP stack, no packets
--noData
false-control plane only: no IP stack, no packets (same decisions, loss not measured)
Allowed: true, false
Old ground link stops when acquisition starts
--bbm
false-one terminal per gateway: old ground link stops when acquisition starts
Allowed: true, false
Stretch bound of the longest-lived fallback route
--fallbackEps
0.1-asr, asrk: stretch bound of the longest-lived fallback route
Keep a route only while its stretch is within this
--keepEps
1000000000-asrk: keep a route only while its stretch is within this
Arc of the elevation track
--trackArc
30strack: arc of the elevation track (s)
Gamma of eq
--gamma
1-isasr: gamma of eq. (14), dimensionless
Activeness cost on inter-satellite links too, as in Algorithm 3
--isasrIslAct
false-isasr: activeness cost on inter-satellite links too, as in Algorithm 3
Allowed: true, false
Start the switch before the known end of the route
--proactive
true-alpr: start the switch before the known end of the route
Allowed: true, false
Standard deviation of measured elevation per reading
--elevNoiseDeg
0degstandard deviation of measured elevation per reading (deg)
Readings over the arc, fitted by least squares
--trackSamples
3-track: readings over the arc, fitted by least squares
Grid of the elevation floor
--floorGrid
5degelevb: grid of the elevation floor (deg)
Print decisions, installs and breaks to stderr
--logEvents
false-print decisions, installs and breaks to stderr
Allowed: true, false
Refresh interval of inter-satellite ranges
--islRefresh
0.1srefresh interval of inter-satellite ranges (s), 0 = every tick
TLE file
--tle
(empty)-real shell: TLE file (3-line sets), propagated with Vallado SGP4
+Grid candidates, lines 'a b cross'
--edges
(empty)-real shell: +Grid candidates, lines 'a b cross'
Unix time of simulation start before startOffset
--epochUnix
1792800000-Unix time of simulation start before startOffset
Per-packet light-time delay on the exact SGP4 state
--delayModel
exact-exact: per-packet light-time delay on the exact SGP4 state (NtnRangeDelayChannel); fixed: channel Delay set from the contact updates (pre-Wave-7B staircase)
Ground links carry the contact gate and a TR 38.821 Set-1 Ka...
--linkModel
satlink-satlink: ground links carry the contact gate and a TR 38.821 Set-1 Ka C/N0 -> BLER error model (P.676 gas, P.618 scintillation, DVB-S2 8PSK 3/4); gate: gate only (pre-Wave-7B)
ITU-R P.618 point rain rate R0.01 at both stations
--rainRate
0mm/hsatlink: ITU-R P.618 point rain rate R0.01 at both stations (mm/h), 0 = clear sky
Line rate of every link
--linkMbps
100Mbit/sline rate of every link (Mb/s); sets the GSL noise bandwidth
Write a CZML scene of the ground stations and the path...
--czml
(empty)-ntn-observability: write a CZML scene of the ground stations and the path satellites
Write a NetSimulyzer scene
--netSimOut
(empty)-ntn-observability: write a NetSimulyzer scene

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 "ntn-constellation-route-lifetime"

With the same parameters the browser run form starts from:

shell
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "ntn-constellation-route-lifetime --planes=72 --perPlane=22 --phasing=39 --inc=53 --altKm=550 --star=false --latA=51.5 --lonA=-0.13 --latB=40.7 --lonB=-74 --minElev=25 --trigger=25 --duration=600 --tick=0.1 --transitionResMs=1 --rate=20 --startOffset=0 --islCapKm=5000 --policy=life --period=0.1 --detect=0.05 --setup=0.1 --window=30 --eps=0.05 --guard=1 --tAcq=0 --hold=false --predSigmaKm=0 --crossLatDeg=0 --noData=false --bbm=false --fallbackEps=0.1 --keepEps=1000000000 --trackArc=30 --gamma=1 --isasrIslAct=false --proactive=true --elevNoiseDeg=0 --trackSamples=3 --floorGrid=5 --logEvents=false --islRefresh=0.1 --epochUnix=1792800000 --delayModel=exact --linkModel=satlink --rainRate=0 --linkMbps=100"

List every argument with ./ns3 run "ntn-constellation-route-lifetime --PrintHelp".

More Constellation 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}
}