Skip to content
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)

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

ParameterDefaultUnitDescription
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
60sSimulated 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
550kmShell altitude (km)
Shell inclination
--inclinationDeg
53degShell inclination (deg)
Service-area center latitude
--centerLat
30degService-area center latitude (deg)
Service-area center longitude
--centerLon
70degService-area center longitude (deg)
Service-area half span
--halfSpanDeg
1degService-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
25degMinimum service elevation (deg)
L1 measurement error, 1 sigma
--measErrDb
1dBL1 measurement error, 1 sigma (dB)
Candidate quality floor
--qualityThDb
-3dBCandidate quality floor (dB)
Number of prepared candidates
--maxCandidates
8-Number of prepared candidates
A3 offset
--a3OffsetDb
3dBA3 offset (dB)
A3 time-to-trigger
--a3TttMs
160msA3 time-to-trigger (ms)
D2 threshold 1, given as the serving elevation it corresponds to
--d2ServElevDeg
35degD2 threshold 1, given as the serving elevation it corresponds to (deg)
D2 threshold 2, given as the candidate elevation it...
--d2CandElevDeg
45degD2 threshold 2, given as the candidate elevation it corresponds to (deg)
T1 window duration
--t1DurationS
10sT1 window duration (s)
Elevation trigger floor
--elevFloorDeg
30degElevation trigger floor (deg)
Minimum candidate time to exit
--tteMinS
10sMinimum candidate time to exit (s)
Serving-loss safety-net threshold
--tteFloorDb
-6dBServing-loss safety-net threshold (dB)
Time-to-trigger of the safety net
--tteFloorTttMs
160msTime-to-trigger of the safety net (ms)
Elevation at which a cell stops meeting the planned quality
--tteExitElevDeg
-1degElevation at which a cell stops meeting the planned quality (deg, -1 = coverage limit)
Exit margin for execution latency
--execMarginS
0.2sExit 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
2sTTE coarse search step (s)
TTE prediction horizon
--horizonS
900sTTE prediction horizon (s)
True ephemeris error, radial, 1 sigma
--ephSigmaRadialM
0mTrue ephemeris error, radial, 1 sigma (m)
True ephemeris error, along-track, 1 sigma
--ephSigmaAlongM
0mTrue ephemeris error, along-track, 1 sigma (m)
True ephemeris error, cross-track, 1 sigma
--ephSigmaCrossM
0mTrue ephemeris error, cross-track, 1 sigma (m)
Network-assumed radial error, 1 sigma
--assumedSigmaRadialM
-1mNetwork-assumed radial error, 1 sigma (m, -1 = true value)
Network-assumed along-track error, 1 sigma
--assumedSigmaAlongM
-1mNetwork-assumed along-track error, 1 sigma (m, -1 = true value)
Network-assumed cross-track error, 1 sigma
--assumedSigmaCrossM
-1mNetwork-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
Allowed: true, false
Rank admitted candidates by predicted time to exit
--tteRank
false-Rank admitted candidates by predicted time to exit
Allowed: true, false
Rank admitted candidates by entropy-weighted SINR and...
--rankEntropy
false-Rank admitted candidates by entropy-weighted SINR and service time
Allowed: true, false
Hysteresis of the geodesic-distance condition
--geoHysM
10000mHysteresis of the geodesic-distance condition (m)
Decision period
--decisionPeriodS
0.1sDecision period (s); default is the 100 ms measurement period
Candidate prediction cache refresh
--tteCacheS
1sCandidate 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
Allowed: true, false
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
-1dBEscape 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
Allowed: true, false
Hold-off of the cell left through the safety net
--escapeHoldoffS
0sHold-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
Allowed: true, false
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
0hMinimum element-set age of the drawn samples (h)
Maximum element-set age of the drawn samples
--ephAgeMaxH
1000000000hMaximum 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)
Allowed: true, false
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)
Allowed: true, false
Re-establishment base time before the RACH over the slant
--reestBaseMs
200msRe-establishment base time before the RACH over the slant (ms)
Per-class environment
--classEnv
true-Per-class environment (aircraft and ship LOS, train rural)
Allowed: true, false
LOS-state process
--losModel
redraw-LOS-state process: redraw or markov
LOS-state correlation distance
--losCorrM
50mLOS-state correlation distance (m)
Markov LOS angular decorrelation
--losCorrDeg
10degMarkov 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.6dBAttenuation 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
Allowed: true, false
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
Allowed: true, false
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.5degTLE shell filter: minimum inclination (deg)
TLE shell filter: maximum inclination
--tleInclMaxDeg
53.5degTLE shell filter: maximum inclination (deg)
TLE shell filter: minimum mean altitude
--tleAltMinKm
455kmTLE shell filter: minimum mean altitude (km)
TLE shell filter: maximum mean altitude
--tleAltMaxKm
485kmTLE shell filter: maximum mean altitude (km)
Start time spread around the median truth epoch
--tleStartSpreadH
1hStart 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:

shell
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:

shell
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"

List every argument with ./ns3 run "ntn-cho-tte-campaign --PrintHelp".

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.

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