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
| Specification | What the module takes from it |
|---|---|
| 3GPP TS 38.331 | Conditional reconfiguration and CondEvent A3, A4, D1, D2, T1; SIB19 |
| 3GPP TS 38.300 | Handover procedure |
| 3GPP TS 38.133 | Measurement |
| 3GPP TS 38.321 | Random access |
| 3GPP TR 38.821 | NTN mobility, interruption budget, Set-1; elevation and timing-advance mechanisms as study items |
| 3GPP TR 38.811 | UE 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 run
- Handover success of the TTE-aware policy, with 0.00 % ping-pong
- 83.14 ± 4.59 %
- Handover success of location-based (D1) CHO, with 57.07 ± 3.26 % ping-pong
- 98.69 ± 0.48 %
- Handover success of the A3 RSRP baseline, with 50.23 ± 2.51 % ping-pong
- 69.16 ± 3.06 %
- Firing times of D2 and TA / D1 / A3 / T1 / elevation triggers
- 8 s / 69 s / 81 s / 125 s / 248 s
- Slant range at 10 deg elevation checked by the ntn-standards-validation suite
- about 1932 km
Examples (6)
- CHO over a Walker constellationWalker 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.
- Data continuity across a CHOUDP downlink to TR 38.811 UEs on a measured NR cell while the serving LEO recedes and its neighbor rises. Only the CHO decides, on measured RRC reports: the default TTE-aware trigger admits no handover (D1), trigger=pcho hands over near 38 s, and fallback=1 adds the example's baseline rule, reported separately.
- CHO quick startShort smoke test: a few UEs on one measured NR cell, with the CHO evaluated every 200 ms on measured reports. A fired condition is executed as a real handover (execute=1) and logged in handover_events.csv.
- CHO triggers on a measured NR cellSGP4 Walker pair, TR 38.821 Set-1 handheld UEs and a gateway feeder on a measured NR cell. The CHO (default PCHO with RACH-less execution) decides on measured inputs only: serving SINR at the UE PHY and candidates from the UE's TS 38.331 SS-RSRP reports, then executes a real X2 handover (one near 38 s at defaults). Measured interruption, ping-pong, RLF and time of stay go to handover_events.csv.
- Constellation-scale CHO campaignEvery 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.
- TR 38.811 UE mobility classesOne UE per TR 38.811 mobility class moves under a LEO cell with a measured UDP downlink. Writes each UE's sampled trajectory so the motion of every class can be inspected; there is no handover in this scenario.
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-constellationwith its built-in defaults.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.
@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}
}