Example · NR-NTN RRC
Uplink timing pre-compensation
SIB19 ephemeris and common-delay polynomial against the true two-way delay over an SGP4 pass, every 100 ms. Compare UE propagators, fits and validity rules against Te.
ntn-rrc-ul-timing about 3 s on the server
Parameters (30)
| Parameter | Default | Unit | Description |
|---|---|---|---|
TLE line 1 --tleLine1 | 1 | - | TLE line 1 (spaces may be written as _) |
TLE line 2 --tleLine2 | 2 | - | TLE line 2 (spaces may be written as _) |
Time of closest approach after the start --closestApproachS | 450 | s | Time of closest approach after the start (s) |
UE cross-track offset --crossTrackKm | 0 | km | UE cross-track offset (km) |
Gateway cross-track offset --gwCrossTrackKm | 300 | km | gateway cross-track offset (km) |
Gateway along-track offset --gwAlongTrackKm | 0 | km | gateway along-track offset (km) |
UE ground speed along the track --ueSpeed | 0 | m/s | UE ground speed along the track (m/s) |
SIB19 refresh period --sibPeriod | 1 | s | SIB19 refresh period (s) |
UE SIB19 re-read period --readPeriod | 5 | s | UE SIB19 re-read period (s) |
Simulated time --simTime | 900 | s | Simulated time (s) |
Elevation mask --mask | 25 | deg | Elevation mask (deg) |
UE GNSS horizontal 1-sigma error --gnssSigma | 0 | m | UE GNSS horizontal 1-sigma error (m) |
UE GNSS fix period --gnssPeriod | 1 | s | UE GNSS fix period (s) |
UE propagator --model | kepler-j2 | - | UE propagator: linear, gravity-ecef, kepler or kepler-j2 |
Uplink synchronization reference point --ref | gateway | - | Uplink synchronization reference point: gateway or satellite |
SIB19 coefficient fit --fit | taylor | - | SIB19 coefficient fit: taylor, econ or window |
Ul-SyncValidity rule --validity | budget | - | ul-SyncValidity rule: slot, budget or fixed (fixed uses fitWindow) |
Fit window when validity is slot or fixed --fitWindow | 10 | s | Fit window when validity is slot or fixed (s) |
Output CSV file --out | ul_timing.csv | - | Output CSV file |
RNG run number --seed | 1 | - | RNG run number |
Uplink timing error limit Te_NTN --teNs | 716.15 | ns | Uplink timing error limit Te_NTN (ns) |
Network orbit position error, along track, 1 sigma --odPos | 0 | m | Network orbit position error, along track, 1 sigma (m) |
Network orbit velocity error, 1 sigma --odVel | 0 | m/s | Network orbit velocity error, 1 sigma (m/s) |
Network orbit determination period --odPeriod | 60 | s | Network orbit determination period (s) |
Validity rule budgets the orbit error --odBudget | true | - | Validity rule budgets the orbit error |
UE projects its GNSS fix with the measured velocity --ueProject | false | - | UE projects its GNSS fix with the measured velocity |
Part of Te reserved for UE position error and motion --ueAllowanceNs | 0 | ns | Part of Te reserved for UE position error and motion (ns) |
Share of Te given to the common-delay polynomial --commonShare | 0.5 | - | Share of Te given to the common-delay polynomial (0 to 1) |
Wave 7A --dataPlaneS | 10 | - | Wave 7A: seconds of packet-level NR-NTN data plane centred on the closest approach, with SIB19 delivered over the radio (0 = study run only) |
The nr scheduler consumes the broadcast cellSpecificKoffset --kOffset | false | - | data plane: the nr scheduler consumes the broadcast cellSpecificKoffset |
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-rrc-ul-timing"With the same parameters the browser run form starts from:
docker run --rm -it uzairdocker69/ns3-ntn-toolkit:latest ./ns3 run "ntn-rrc-ul-timing --tleLine1=1 --tleLine2=2 --closestApproachS=450 --crossTrackKm=0 --gwCrossTrackKm=300 --gwAlongTrackKm=0 --ueSpeed=0 --sibPeriod=1 --readPeriod=5 --simTime=900 --mask=25 --gnssSigma=0 --gnssPeriod=1 --model=kepler-j2 --ref=gateway --fit=taylor --validity=budget --fitWindow=10 --out=ul_timing.csv --seed=1 --teNs=716.15 --odPos=0 --odVel=0 --odPeriod=60 --odBudget=true --ueProject=false --ueAllowanceNs=0 --commonShare=0.5 --dataPlaneS=10 --kOffset=false"More NR-NTN RRC 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}
}