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

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

ParameterDefaultUnitDescription
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
450sTime of closest approach after the start (s)
UE cross-track offset
--crossTrackKm
0kmUE cross-track offset (km)
Gateway cross-track offset
--gwCrossTrackKm
300kmgateway cross-track offset (km)
Gateway along-track offset
--gwAlongTrackKm
0kmgateway along-track offset (km)
UE ground speed along the track
--ueSpeed
0m/sUE ground speed along the track (m/s)
SIB19 refresh period
--sibPeriod
1sSIB19 refresh period (s)
UE SIB19 re-read period
--readPeriod
5sUE SIB19 re-read period (s)
Simulated time
--simTime
900sSimulated time (s)
Elevation mask
--mask
25degElevation mask (deg)
UE GNSS horizontal 1-sigma error
--gnssSigma
0mUE GNSS horizontal 1-sigma error (m)
UE GNSS fix period
--gnssPeriod
1sUE 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
10sFit 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.15nsUplink timing error limit Te_NTN (ns)
Network orbit position error, along track, 1 sigma
--odPos
0mNetwork orbit position error, along track, 1 sigma (m)
Network orbit velocity error, 1 sigma
--odVel
0m/sNetwork orbit velocity error, 1 sigma (m/s)
Network orbit determination period
--odPeriod
60sNetwork orbit determination period (s)
Validity rule budgets the orbit error
--odBudget
true-Validity rule budgets the orbit error
Allowed: true, false
UE projects its GNSS fix with the measured velocity
--ueProject
false-UE projects its GNSS fix with the measured velocity
Allowed: true, false
Part of Te reserved for UE position error and motion
--ueAllowanceNs
0nsPart 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
Allowed: true, false

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-rrc-ul-timing"

With the same parameters the browser run form starts from:

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

List every argument with ./ns3 run "ntn-rrc-ul-timing --PrintHelp".

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.

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