Skip to content
Module · ntn-cho

LEO conditional handover with time to exit in ns-3

ntn-cho is an ns-3 module for conditional handover (CHO) in LEO non-terrestrial networks that estimates each candidate satellite's time to exit from propagated orbits and conditions the handover decision on it. It also implements the 3GPP TS 38.331 CondEvent A3, D1, T1 and Rel-18 D2 triggers, plus elevation and timing-advance mechanisms from TR 38.821, each evaluated against live geometry.

Run it in the browser

Choose an example, set its parameters and run the real ns-3 binary on this server. The scene shows the configured geometry before the run and the results after it.

CHO over a Walker constellation

Walker shell of multi-beam LEO satellites over a measured NR cell. Pick a CHO trigger (TTE-aware, A3, location, D2, time, elevation) and compare handovers, failures and throughput. measSource=rrc feeds the CHO from UE 0's own RRC reports; measuredHoKpi=1 adds handover KPIs measured from RRC traces and packet arrivals.

~75 s 10 output filesntn-cho-full-constellation
Parameters
Simulation time (s) (short dashboard default; full-scale value 60.0)
Number of TR 38.811 UEs on the serving cell
NTN scenario label, written to the outputs only (does not change the channel)
tte-aware | a3 | location | d2 | time | elevation | a3-baseline | location-baseline
D1 distance threshold (m)
SINR quality threshold (dB)
Minimum TTE for admission (s)
Minimum TTE for CHO config (s)
Carrier frequency (GHz)
Satellite conducted Tx power at the array input (dBm); -1 = backend default (nr 70, mmwave 55; legacy, not TR 38.821 Set-1 calibrated) Leave at -1 for the TR 38.821 Set-1 S-band EIRP density (34 dBW/MHz, about 77 dBm EIRP over 20 MHz; the conducted power is derived from it and the array gain). Any other value is the conducted power at the array input in dBm (the array adds about 18 dB); values below about 40 dBm leave the link without usable throughput.
Constellation altitude (km)
Radio backend: nr (5G-LENA FR1, 30 kHz SCS) | mmwave (FR2)
Number of candidate satellite cells
Satellites in the whole Walker shell (T in T/P/F), despite the name; must be a multiple of numPlanes. With the default single plane it is the in-plane count
Walker orbital planes
Walker inclination (deg)
RNG run number
NetSimulyzer 3D JSON trace output path (empty = off)
Cesium CZML 3D trace output path (empty = off)
candidate input: friis (paper default: cell-mean SINR, cell-keyed RSRP, then Friis) | rrc (UE 0's own TS 38.331 reports; vendored A3 off so the CHO is the only decision maker)
write handover KPIs measured from the UE RRC traces and packet arrivals (handover_events_measured.csv, ho_kpm_measured.csv)
count the RRCReconfigurationComplete leg (slant/c) in the modeled RACH-less interruption (TS 38.300 9.2.3.2); paper default off
success rate printed at 0 attempts: legacy (paper default, prints 100) | na
Scene: Conditional handover
The interactive 3D globe loads here.

What this module models

A LEO cell moves away from its users, so the neighbor that looks best now may be about to set. ntn-cho estimates time to exit (TTE), how long a candidate remains serviceable, by a coarse forward scan over the propagated orbit followed by a binary search for the beam-exit instant. With a line-of-sight probability table it also returns the expected usable time to exit, and it propagates an injected RTN ephemeris error into a first-order sigma of the exit time. The Rel-17 CHO state machine runs from idle through preparation, condition monitoring and execution to completion. Its trigger classes are 3GPP TS 38.331 CondEvent A3, D1 on a fixed reference location, T1 on an absolute window, Rel-18 D2 on a moving ephemeris reference (Section 5.5.4.15a), elevation and timing advance as studied in 3GPP TR 38.821, TTE-aware selection, Rel-19 conditional LTM and trajectory-predictive CHO, with optional RACH-less execution from timing-advance pre-compensation.

UEs move according to the 3GPP TR 38.811 Section 6.1.1.1 classes (handheld, pedestrian, vehicular, HST, maritime, aviation, fixed IoT) in ECEF, and a measurement model gives TR 38.811 RSRP, SINR and signed Doppler. In the real-stack examples the algorithm decides on the measured SINR of an NR NTN cell. CHO is modeled at the decision and timing level: there is no over-the-air conditional reconfiguration PDU, and the RACH interruption is priced as slant round trip plus processing. Trigger-decided and fallback-decided handovers are counted separately, so the CHO layer is not credited with a cell change the radio would have made anyway.

Outputs

  • handover_events.csv, measurements.csv, tte_computations.csv from ntn-cho-full-constellation
  • satellite_tracks.csv, ue_tracks.csv, kpi_timeseries.csv and matching GeoJSON layers
  • kpi_summary.txt with handovers, success and ping-pong per run
  • sim_health.csv from the real-stack examples, with SINR and TBLER from the PHY trace
  • mobility_trace.csv with one UE per TR 38.811 class

Standards

SpecificationWhat the module takes from it
3GPP TS 38.331Conditional reconfiguration and CondEvent A3, A4, D1, D2, T1; SIB19
3GPP TS 38.300Handover procedure
3GPP TS 38.133Measurement
3GPP TS 38.321Random access
3GPP TR 38.821NTN mobility, interruption budget, Set-1; elevation and timing-advance mechanisms as study items
3GPP TR 38.811UE mobility classes (Section 6.1.1.1) and NTN channel scenarios for RSRP and SINR

Key numbers

Stated in the module documentation, each with the conditions it was measured under.

Handovers per run of the TTE-aware policy (A3 RSRP baseline: 463.3 ± 47.8)
134.6 ± 11.6 handovers per runntn-cho-full-constellation, ten seeds per policy, 66 satellites (6 planes x 11) at 780 km and 86.4 deg, 30 UEs, 600 s, suburban; Student-t 95 % half-width; runs from April 2026 that predate later fixes to the module
Handover success of the TTE-aware policy, with 0.00 % ping-pong
83.14 ± 4.59 %Same ten-seed ntn-cho-full-constellation runs as above
Handover success of location-based (D1) CHO, with 57.07 ± 3.26 % ping-pong
98.69 ± 0.48 %Same ten-seed ntn-cho-full-constellation runs as above
Handover success of the A3 RSRP baseline, with 50.23 ± 2.51 % ping-pong
69.16 ± 3.06 %Same ten-seed ntn-cho-full-constellation runs as above
Firing times of D2 and TA / D1 / A3 / T1 / elevation triggers
8 s / 69 s / 81 s / 125 s / 248 sShipped two-cell pass; elevation fired when the serving satellite reached the 10 degree floor
Slant range at 10 deg elevation checked by the ntn-standards-validation suite
about 1932 kmLEO-600 (TR 38.821 reference), spherical-Earth elevation and slant relation

Examples (6)

Run it

  • In the browser

    Pick an example in the run panel above, set its parameters and press Run. The console streams live and the result opens with KPI charts.

  • In the ns-3 console

    The browser console accepts ns-3 style commands, for example ns3 run "ntn-cho-full-constellation --PrintHelp".

  • Locally with Docker

    The public image has the whole toolkit prebuilt. This runs ntn-cho-full-constellation with its built-in defaults.

    shell
    docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "ntn-cho-full-constellation"

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