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)
| Parameter | Default | Unit | Description |
|---|---|---|---|
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 | 53 | deg | Inclination (deg) |
Alt Km --altKm | 550 | km | Altitude (km) |
Star --star | false | - | Walker-Star (planes over 180 deg) instead of Walker-Delta |
Ground station A latitude --latA | 51.5 | deg | Ground station A latitude (deg) |
Ground station A longitude --lonA | -0.13 | deg | Ground station A longitude (deg) |
Ground station B latitude --latB | 40.7 | deg | Ground station B latitude (deg) |
Ground station B longitude --lonB | -74 | deg | Ground station B longitude (deg) |
Ground-link elevation mask --minElev | 25 | deg | Ground-link elevation mask (deg) |
Elevation policy --trigger | 25 | deg | Elevation policy: switch when an end satellite sinks below this elevation (deg) |
Simulated time --duration | 600 | s | Simulated time (s) |
Contact sampling interval --tick | 0.1 | s | Contact sampling interval (s) |
Contact transitions bisected to this resolution and fired at... --transitionResMs | 1 | ms | contact 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 | 0 | s | Start time after the element epoch (s) |
ISL range cap --islCapKm | 5000 | km | ISL range cap (km) |
Routing policy --policy | life | - | Routing policy: snap, ondemand, asr or life |
Snapshot policy --period | 0.1 | s | Snapshot policy: recomputation period (s) |
On-demand policy: failure detection delay --detect | 0.05 | s | On-demand policy: failure detection delay (s) |
On-demand policy: route setup delay --setup | 0.1 | s | On-demand policy: route setup delay (s) |
Merged-snapshot policy --window | 30 | s | Merged-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 | 1 | s | Lifetime policy: switch this long before the predicted expiry (s) |
Acquisition time of a new ground link, all policies --tAcq | 0 | s | Acquisition 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 |
Along-track error of the predictor's ephemeris, 1 sigma --predSigmaKm | 0 | km | Along-track error of the predictor's ephemeris, 1 sigma (km) |
Turn cross-plane ISLs off above this latitude --crossLatDeg | 0 | deg | Turn 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) |
Old ground link stops when acquisition starts --bbm | false | - | one terminal per gateway: old ground link stops when acquisition starts |
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 | 30 | s | track: 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 |
Start the switch before the known end of the route --proactive | true | - | alpr: start the switch before the known end of the route |
Standard deviation of measured elevation per reading --elevNoiseDeg | 0 | deg | standard 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 | 5 | deg | elevb: grid of the elevation floor (deg) |
Print decisions, installs and breaks to stderr --logEvents | false | - | print decisions, installs and breaks to stderr |
Refresh interval of inter-satellite ranges --islRefresh | 0.1 | s | refresh 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 | 0 | mm/h | satlink: ITU-R P.618 point rain rate R0.01 at both stations (mm/h), 0 = clear sky |
Line rate of every link --linkMbps | 100 | Mbit/s | line 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:
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:
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"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.
@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}
}