5G NR Uplink Timing Control and Timing Advance

5g nr
uplink timing
timing advance
mac layer
random access

This page describes the 5G NR Uplink Timing Control Procedure based on the timing advance provided by the gNB to the UE.

The uplink timing control based on the timing advance command is applied to PUSCH, PUCCH, and SRS in 5G NR.

This page mentions the messages in which the timing advance value is conveyed to the UE by the gNB (i.e., 5G NR Base Station).

Introduction

In wireless cellular systems, it’s crucial to adjust the timing of the uplink frame to align it with the downlink frame on a time scale. As we know, the uplink frame is transmitted by the UE towards the gNB, while the downlink frame is transmitted by the gNB towards the UE.

gNB is the 5G NR base station. The timing control procedure is initiated by the MAC layer and conveyed to the PHY layer for time adjustment.

5G NR uplink downlink frame

The uplink timing control is similar to LTE. The UE transmits a random access preamble to the gNB.

The gNB estimates the transmission timing correction needed for the UE and conveys this information to the UE using a “Random Access Response (RAR)” message. This message contains a “timing advance command,” which the UE uses to adjust its transmit timing. Both RAR messages are RRC messages.

5G NR Timing Advance

As shown in Figure 1, a set of uplink frames and a set of downlink frames are transmitted on an RF carrier. The start of uplink frame number i for transmission from the UE shall occur TTA=(NTA+NTAoffset)TcT_{TA} = (N_{TA} + N_{TAoffset}) * T_c before the start of the corresponding downlink frame at the UE, where NTAoffsetN_{TAoffset} depends on the frequency band, as mentioned in the table below.

Here, Tc=[1/(ΔFmaxNf)]T_c = [1/(\Delta F_{max} * N_f)], where ΔFmax\Delta F_{max} is the subcarrier spacing and NfN_f is the FFT size.

TcT_c is known as the basic time unit for the 5G NR system.

  • TcT_c = 0.509 ns for ΔFmax\Delta F_{max} = 480 KHz and NfN_f = 4096.

The table below mentions NTAoffsetN_{TAoffset} for different frequency ranges (FR1/FR2) and topologies (TDD/FDD).

5G NR TA offset

  • A value of 39936 implies 20.327 µs, and 25600 implies 13.030 µs.
  • A value of 13792 implies 7.020 µs.

When and How Timing Advance Information Reaches the UE

  • During the physical random access procedure, the PRACH is transmitted by the UE to the gNB. The Random Access Response (RAR) message is sent back to the UE from the gNB. This RAR message contains a TPC command, which has the following meanings.

Contention based RA vs Contention free RA

The following MAC RAR message is the response from the gNB to the PRACH message transmitted by the UE. The MAC RAR message has a fixed size.

The “Timing advance command” field indicates the index value of TAT_A, which is used to control the amount of timing adjustment that the MAC needs to apply. The size of the “Timing Advance Command” is 12 bits. This message contains the “timing advance command” field.

5G NR MAC RAR Message

The MAC subheader for the RAR message is as follows:

MAC subheader BI

The BI (Backoff Index) parameter is 4 bits in size and has the following mapping (index to ms):

table_start

IndexBackoff parameter value (ms)
05
110
220
330
440
560
680
7120
8160
9240
10320
11480
12960
131920
14Reserved
15Reserved
table_end

Timing Advance Command MAC CE

  • This message is identified by the MAC PDU subheader with LCID as specified in Table 6.2.1-1.
  • It has a fixed size and consists of a single octet defined as follows.
  • TAG Identity (TAG ID): This field indicates the TAG Identity of the addressed TAG. The TAG containing the SpCell has the TAG Identity 0. The length of the field is 2 bits.
  • Timing Advance Command: This field indicates the index value TAT_A (0, 1, 2, …, 63) used to control the amount of timing adjustment that the MAC entity has to apply. The length of the field is 6 bits.

Timing advance command MAC CE

The following are the contents of the random access response grant field.

5G NR Random Access Response Grant Fields

The following table mentions the meaning of the TPC command field in dB value. This field is used for uplink power control in 5G NR.

table_start

TPC command value(in dB)
0-6
1-4
2-2
30
42
54
66
78
table_end

References

  • 3GPP TS 38.211
  • 3GPP TS 38.213
  • 3GPP TS 38.321
  • 3GPP TS 38.133
5G NR Initial Access Procedure Explained

5G NR Initial Access Procedure Explained

Understand the 5G NR initial access (random access) procedure between UE and gNB, including beam management, messages exchanged, and key steps.

5g nr
random access
beam management

5G NR Zadoff-Chu Sequence Overview

Explore the 5G NR Zadoff-Chu sequence, its unique properties, applications in random access preambles, and MATLAB simulation resources.

5g nr
zadoff chu
random access