Example · Conditional Handover (CHO)
Constellation-scale CHO campaign
Every terminal runs its own CHO policy (A3, D2, T1, elevation, TTE) against a 1584-satellite Walker shell with configurable ephemeris error, on the same orbits and random draws.
ntn-cho-tte-campaign about 5 s on the server
Parameters (80)
| Parameter | Default | Unit | Description |
|---|---|---|---|
CHO policy --policy | tte-cho | - | CHO policy: a3, d2, t1, elev, tte-eager, mst or tte-cho |
Mode --mode | campaign | - | campaign (policy comparison) or tte-accuracy (TTE prediction accuracy) |
Number of terminals --numUes | 20 | - | Number of terminals (short dashboard default; full-scale value 100) |
Simulated time --simTime | 60 | s | Simulated time (s) (short dashboard default; full-scale value 600.0) |
RNG run number --rngRun | 1 | - | RNG run number |
Wave 7A --nrCheckS | 30 | - | Wave 7A: seconds of terminal 0's serving timeline replayed on a packet-level NR-NTN data plane after the campaign (campaign mode; 0 = off) |
Walker total number of satellites T --totalSats | 1584 | - | Walker total number of satellites T |
Walker number of planes P --numPlanes | 72 | - | Walker number of planes P |
Walker phasing factor F --phasing | 17 | - | Walker phasing factor F |
Shell altitude --altitudeKm | 550 | km | Shell altitude (km) |
Shell inclination --inclinationDeg | 53 | deg | Shell inclination (deg) |
Service-area center latitude --centerLat | 30 | deg | Service-area center latitude (deg) |
Service-area center longitude --centerLon | 70 | deg | Service-area center longitude (deg) |
Service-area half span --halfSpanDeg | 1 | deg | Service-area half span (deg) |
Terminal profile --ueProfile | mixed | - | Terminal profile: mixed or static |
TR 38.811 channel environment --channel | los | - | TR 38.811 channel environment: los, suburban, urban or denseurban |
Minimum service elevation --minElevDeg | 25 | deg | Minimum service elevation (deg) |
L1 measurement error, 1 sigma --measErrDb | 1 | dB | L1 measurement error, 1 sigma (dB) |
Candidate quality floor --qualityThDb | -3 | dB | Candidate quality floor (dB) |
Number of prepared candidates --maxCandidates | 8 | - | Number of prepared candidates |
A3 offset --a3OffsetDb | 3 | dB | A3 offset (dB) |
A3 time-to-trigger --a3TttMs | 160 | ms | A3 time-to-trigger (ms) |
D2 threshold 1, given as the serving elevation it corresponds to --d2ServElevDeg | 35 | deg | D2 threshold 1, given as the serving elevation it corresponds to (deg) |
D2 threshold 2, given as the candidate elevation it... --d2CandElevDeg | 45 | deg | D2 threshold 2, given as the candidate elevation it corresponds to (deg) |
T1 window duration --t1DurationS | 10 | s | T1 window duration (s) |
Elevation trigger floor --elevFloorDeg | 30 | deg | Elevation trigger floor (deg) |
Minimum candidate time to exit --tteMinS | 10 | s | Minimum candidate time to exit (s) |
Serving-loss safety-net threshold --tteFloorDb | -6 | dB | Serving-loss safety-net threshold (dB) |
Time-to-trigger of the safety net --tteFloorTttMs | 160 | ms | Time-to-trigger of the safety net (ms) |
Elevation at which a cell stops meeting the planned quality --tteExitElevDeg | -1 | deg | Elevation at which a cell stops meeting the planned quality (deg, -1 = coverage limit) |
Exit margin for execution latency --execMarginS | 0.2 | s | Exit margin for execution latency (s) |
Sigma multiplier on the exit-time margin --marginZ | 2 | - | Sigma multiplier on the exit-time margin |
TTE coarse search step --predStepS | 2 | s | TTE coarse search step (s) |
TTE prediction horizon --horizonS | 900 | s | TTE prediction horizon (s) |
True ephemeris error, radial, 1 sigma --ephSigmaRadialM | 0 | m | True ephemeris error, radial, 1 sigma (m) |
True ephemeris error, along-track, 1 sigma --ephSigmaAlongM | 0 | m | True ephemeris error, along-track, 1 sigma (m) |
True ephemeris error, cross-track, 1 sigma --ephSigmaCrossM | 0 | m | True ephemeris error, cross-track, 1 sigma (m) |
Network-assumed radial error, 1 sigma --assumedSigmaRadialM | -1 | m | Network-assumed radial error, 1 sigma (m, -1 = true value) |
Network-assumed along-track error, 1 sigma --assumedSigmaAlongM | -1 | m | Network-assumed along-track error, 1 sigma (m, -1 = true value) |
Network-assumed cross-track error, 1 sigma --assumedSigmaCrossM | -1 | m | Network-assumed cross-track error, 1 sigma (m, -1 = true value) |
Number of samples in tte-accuracy mode --accuracySamples | 2000 | - | Number of samples in tte-accuracy mode |
Terminal index to trace every 1 s --traceUe | -1 | - | Terminal index to trace every 1 s (-1 = none) |
Serving-floor fallback for the standardized conditions --measFallback | false | - | Serving-floor fallback for the standardized conditions |
Rank admitted candidates by predicted time to exit --tteRank | false | - | Rank admitted candidates by predicted time to exit |
Rank admitted candidates by entropy-weighted SINR and... --rankEntropy | false | - | Rank admitted candidates by entropy-weighted SINR and service time |
Hysteresis of the geodesic-distance condition --geoHysM | 10000 | m | Hysteresis of the geodesic-distance condition (m) |
Decision period --decisionPeriodS | 0.1 | s | Decision period (s); default is the 100 ms measurement period |
Candidate prediction cache refresh --tteCacheS | 1 | s | Candidate prediction cache refresh (s, 0 = recompute every time) |
Rank targets by expected usable time to exit --rankByUsable | false | - | Rank targets by expected usable time to exit |
Prepared slots reserved for the strongest satellites --prepStrongest | 0 | - | Prepared slots reserved for the strongest satellites (with prepareByTte) |
Escape target within this margin of the strongest candidate --escapeNearBestDb | -1 | dB | Escape target within this margin of the strongest candidate (dB, -1 = off) |
Prepare candidates by predicted score instead of by L3... --prepareByTte | false | - | Prepare candidates by predicted score instead of by L3 measurement |
Hold-off of the cell left through the safety net --escapeHoldoffS | 0 | s | Hold-off of the cell left through the safety net (s) |
Write per-tick link realizations of this terminal --dumpLinksUe | -1 | - | Write per-tick link realizations of this terminal (-1 = off) |
Write every LOS-state draw to los_draws.csv --dumpLosDraws | false | - | Write every LOS-state draw to los_draws.csv |
CSV of measured RTN ephemeris errors --ephErrorFile | (empty) | - | CSV of measured RTN ephemeris errors (catnr,name,alt_km,age_h,dt_min,err_r_m,err_a_m,err_c_m); replaces the Gaussian draw |
Minimum element-set age of the drawn samples --ephAgeMinH | 0 | h | Minimum element-set age of the drawn samples (h) |
Maximum element-set age of the drawn samples --ephAgeMaxH | 1000000000 | h | Maximum element-set age of the drawn samples (h, exclusive) |
CSV of 1-sigma RTN error by element-set age bin --ageSigmaTable | (empty) | - | CSV of 1-sigma RTN error by element-set age bin |
Budget each satellite's margin by its age bin --marginByAge | false | - | Budget each satellite's margin by its age bin (needs ageSigmaTable) |
Gaussian ephemeris error with the sigmas of a drawn age bin --ephGaussByAge | false | - | Gaussian ephemeris error with the sigmas of a drawn age bin (needs ageSigmaTable) |
Re-establishment base time before the RACH over the slant --reestBaseMs | 200 | ms | Re-establishment base time before the RACH over the slant (ms) |
Per-class environment --classEnv | true | - | Per-class environment (aircraft and ship LOS, train rural) |
LOS-state process --losModel | redraw | - | LOS-state process: redraw or markov |
LOS-state correlation distance --losCorrM | 50 | m | LOS-state correlation distance (m) |
Markov LOS angular decorrelation --losCorrDeg | 10 | deg | Markov LOS angular decorrelation (deg) |
Co-channel interference --interfReuse | 0 | - | Co-channel interference: number of carriers K (0 = none, SNR only) |
Attenuation of co-channel satellites below their main lobe --interfCouplingDb | 17.6 | dB | Attenuation of co-channel satellites below their main lobe (dB) |
Activity factor of the interfering satellites --interfLoad | 1 | - | Activity factor of the interfering satellites (0 to 1) |
Network ephemeris copy --ephModel | propagated | - | Network ephemeris copy: propagated or offset |
Safety-net escape to the strongest candidate better than serving --escapeByQuality | false | - | Safety-net escape to the strongest candidate better than serving |
Prepare only candidates predicted to stay above the quality... --prepAboveContour | false | - | Prepare only candidates predicted to stay above the quality contour for the minimum TTE |
Alias of prepStrongest, kept for scripts --prepStrongestStd | 0 | - | Alias of prepStrongest, kept for scripts |
TLE file of the true element sets --tleTruthFile | (empty) | - | TLE file of the true element sets (real constellation) |
TLE file of the element sets the network uses --tleNetFile | (empty) | - | TLE file of the element sets the network uses |
TLE shell filter: minimum inclination --tleInclMinDeg | 52.5 | deg | TLE shell filter: minimum inclination (deg) |
TLE shell filter: maximum inclination --tleInclMaxDeg | 53.5 | deg | TLE shell filter: maximum inclination (deg) |
TLE shell filter: minimum mean altitude --tleAltMinKm | 455 | km | TLE shell filter: minimum mean altitude (km) |
TLE shell filter: maximum mean altitude --tleAltMaxKm | 485 | km | TLE shell filter: maximum mean altitude (km) |
Start time spread around the median truth epoch --tleStartSpreadH | 1 | h | Start time spread around the median truth epoch (h, plus or minus) |
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-cho-tte-campaign"With the same parameters the browser run form starts from:
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "ntn-cho-tte-campaign --policy=tte-cho --mode=campaign --numUes=20 --simTime=60 --rngRun=1 --nrCheckS=30 --totalSats=1584 --numPlanes=72 --phasing=17 --altitudeKm=550 --inclinationDeg=53 --centerLat=30 --centerLon=70 --halfSpanDeg=1 --ueProfile=mixed --channel=los --minElevDeg=25 --measErrDb=1 --qualityThDb=-3 --maxCandidates=8 --a3OffsetDb=3 --a3TttMs=160 --d2ServElevDeg=35 --d2CandElevDeg=45 --t1DurationS=10 --elevFloorDeg=30 --tteMinS=10 --tteFloorDb=-6 --tteFloorTttMs=160 --tteExitElevDeg=-1 --execMarginS=0.2 --marginZ=2 --predStepS=2 --horizonS=900 --ephSigmaRadialM=0 --ephSigmaAlongM=0 --ephSigmaCrossM=0 --assumedSigmaRadialM=-1 --assumedSigmaAlongM=-1 --assumedSigmaCrossM=-1 --accuracySamples=2000 --traceUe=-1 --measFallback=false --tteRank=false --rankEntropy=false --geoHysM=10000 --decisionPeriodS=0.1 --tteCacheS=1 --rankByUsable=false --prepStrongest=0 --escapeNearBestDb=-1 --prepareByTte=false --escapeHoldoffS=0 --dumpLinksUe=-1 --dumpLosDraws=false --ephAgeMinH=0 --ephAgeMaxH=1000000000 --marginByAge=false --ephGaussByAge=false --reestBaseMs=200 --classEnv=true --losModel=redraw --losCorrM=50 --losCorrDeg=10 --interfReuse=0 --interfCouplingDb=17.6 --interfLoad=1 --ephModel=propagated --escapeByQuality=false --prepAboveContour=false --prepStrongestStd=0 --tleInclMinDeg=52.5 --tleInclMaxDeg=53.5 --tleAltMinKm=455 --tleAltMaxKm=485 --tleStartSpreadH=1"More Conditional Handover (CHO) 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}
}