Timing Advance (TA) Maintenance

MAC CE-driven TA updates, TAGs, timeAlignmentTimer, and why UEs get de-synced

← MAC Overview Scheduling → RACH (Initial TA) → SR & RA → SPS & CG → DL Assignment → Power Control → PHR → DRX → ☆ NTN MAC

1. Why TA Matters

UEs at different distances from gNB have different propagation delays. Without TA correction, their uplink signals arrive at different times, causing inter-symbol interference (ISI). TA advances each UE's TX timing by 2 × propagation delay so all UL signals arrive aligned at the gNB.

📡 TA Alignment — UE Distance vs Timing

Move the UE slider to change distance. Watch how TA adjusts TX timing to keep UL arrivals aligned at gNB.

1000

Near UE (100m)

RTT = 0.67 μs → Small TA. UE transmits almost on time.

Mid UE (1 km)

RTT = 6.67 μs → Medium TA. UE transmits 6.67 μs early.

Far UE (5 km)

RTT = 33.3 μs → Large TA. UE transmits 33.3 μs early.

2. TA Calculation

ParameterRAR (Initial)MAC CE (Maintenance)
Field size12 bits6 bits
TypeAbsolute valueRelative adjustment
Range0–3846−31 to +32
Resolution32 × Tc = 16.28 ns16 × Tc = 8.14 ns
Max TA~31 μs (4.7 km)±260 ns per update
Formula: T_TA = (N_TA + N_TA,offset) × Tc where Tc = 1/(480000 × 4096) ≈ 0.509 ns. The RAR provides absolute N_TA, while MAC CE adjusts it relatively.

3. TA Maintenance — MAC CE Updates

After initial TA from RACH Msg2, the gNB continuously monitors UL timing and sends TA Command MAC CEs (1 byte: 4-bit TAG ID + 6-bit relative adjustment). These fine-tune the TA to track UE mobility.

🔄 TA Maintenance Loop — gNB Measures → MAC CE → UE Adjusts

Animated feedback loop: gNB measures UL timing drift, sends TA MAC CE, UE adjusts. Watch the TA value converge.

4. Timing Advance Groups (TAGs)

SCells at different physical locations need different TA values. TAGs allow the UE to maintain up to 4 independent TA values — one pTAG (PCell) and up to 3 sTAGs (SCell groups).

🗂️ TAG Visualization — pTAG + sTAGs

See how cells are grouped into TAGs with independent TA values. Toggle sTAGs to see the configuration change.

2

5. timeAlignmentTimer — When UE Gets De-Synced

The timeAlignmentTimer tracks how long since the last TA update. When it expires, the UE considers itself not time-aligned — it flushes all HARQ buffers, releases PUCCH/SRS/CG, and must perform RACH to re-acquire TA.

⏱️ timeAlignmentTimer — Countdown & Expiry

Watch the timer count down. TA MAC CEs reset the timer. If it expires, UE de-syncs and must RACH.

Timer Running

UE is time-aligned. Can transmit on UL. TA updates restart the timer.

Timer Expired

UE NOT time-aligned. All UL resources released. Must RACH to re-acquire TA.

After RACH

New TA from RAR Msg2. Timer restarted. CG/SPS must be re-activated by gNB.

6. Practical Field Considerations

ScenariotimeAlignTimerTA Update RateTAG Config
Stationary IoTms10240Very rarepTAG only
Pedestrianms2560Every ~200 mspTAG only
Urban vehiclems1280Every ~50 mspTAG + sTAG
High-speed trainms500Every ~4 mspTAG + sTAG
NTN (satellite)infinityContinuouspTAG + sTAG
Common pitfall: timeAlignmentTimer too short for UE speed → timer expires frequently → UL blocked → throughput drops → UE must RACH repeatedly → battery drain. Match timer to expected UE mobility.

LTE vs 5G NR

AspectLTE5G NR
TA resolution (RAR)11 bits, 16×Ts12 bits, 32×Tc
TA resolution (CE)6 bits, 16×Ts6 bits, 16×Tc
Max TAGs44
NTN supportNoneExtended TA (Rel-17)

7. 6G Evolution — Autonomous TA, AI-Predicted, NTN-Native

Autonomous TA

UE adjusts TA from DL timing measurements without waiting for MAC CE. Near-zero TA maintenance latency. Critical for 500 km/h rail.

AI-Predicted TA

AI at gNB predicts TA from UE trajectory. Pre-sends correction before drift occurs. 60-80% fewer TA MAC CEs.

NTN-Native TA

18-bit TA (vs 12-bit). UE ephemeris-aware TA prediction. Dual TA: common (cell-level) + UE-specific (fine).

🚀 TA Evolution — 4G to 6G

Compare TA capabilities across generations.

Dimension4G (LTE)5G NR6G (Target)
TA resolution11 bits12 bits18 bits
Max range~100 μs~31 μs26+ ms (NTN)
TAGs448+
UpdatesgNB-drivengNB-drivenUE autonomous + AI
Update latency2-4 ms2-4 ms< 1 ms
← MAC Overview Scheduling → RACH (Initial TA) → SR & RA → SPS & CG → DL Assignment → Power Control → PHR → DRX → ☆ NTN MAC