mmWave & 5G

4-Step RACH

The standard random access channel procedure in 5G NR, consisting of four message exchanges between the UE and gNB: Msg1 (PRACH preamble), Msg2 (Random Access Response with timing advance), Msg3 (RRC connection request), and Msg4 (contention resolution). 4-Step RACH is used for initial cell access, handover, scheduling request, beam failure recovery, and uplink synchronization. It provides robust operation across all coverage scenarios but takes 10-15 ms, which led to the development of the 2-Step RACH simplification in Release 16.
Category: mmWave & 5G
Messages: Msg1, Msg2, Msg3, Msg4
Latency: 10-15 ms typical

Understanding 4-Step RACH

Before a UE can communicate with a 5G cell, it must establish uplink timing synchronization and obtain a unique identity (C-RNTI). The RACH procedure achieves this. The UE sends a preamble, the gNB estimates the round-trip delay and responds with a timing advance command, the UE sends its connection request with corrected timing, and the gNB confirms the connection.

In 5G NR, the RACH procedure adds beam management: the UE selects the best downlink beam via SSB measurements and transmits the preamble on the RACH occasion associated with that beam. The gNB uses the preamble's beam association to determine the optimal DL and UL beam pair for the connection.

4-Step RACH Message Flow
Msg1 (UE → gNB): PRACH Preamble
Zadoff-Chu sequence (L=839 long, L=139 short)
gNB extracts: timing estimate, preamble index, beam

Msg2 (gNB → UE): Random Access Response
Contains: TA command, TC-RNTI, UL grant for Msg3
RAR window: 10-40 ms configurable

Msg3 (UE → gNB): RRC Request on PUSCH
UE identity (S-TMSI or random value), BSR, PHR
Transmitted with corrected timing advance

Msg4 (gNB → UE): Contention Resolution
Echoes UE identity. TC-RNTI promoted to C-RNTI.

Total: 10-15 ms (4 exchanges + processing delays).

RACH Trigger Events

TriggerCBRA/CFRATypical ScenarioLatency Tolerance
Initial accessCBRAUE power-on, cell selection100+ ms
HandoverCFRA (dedicated preamble)Mobility between cells10-50 ms
Beam failure recoveryCFRA or CBRAmmWave beam blockage<20 ms
Scheduling requestCBRAUL data after inactivity5-20 ms
UL timing resyncCBRATA timer expiry10-50 ms
Common Questions

Frequently Asked Questions

What are the four steps?

Msg1: PRACH preamble (Zadoff-Chu sequence). Msg2: RAR (timing advance, UL grant, TC-RNTI). Msg3: RRC request on PUSCH with UE identity. Msg4: Contention resolution confirming connection. Total: 10-15 ms.

Contention-based vs. contention-free?

CBRA: UE picks random preamble, collision possible, resolved in Msg4. Used for initial access. CFRA: gNB pre-assigns a dedicated preamble, no collision, only Msg1+Msg2 needed. Used for handover and beam recovery.

What PRACH formats?

Long (L=839, 1.25/5 kHz SCS, cells up to 100 km) and short (L=139, 15/30/60/120 kHz SCS, small cells and mmWave). FR2 uses short formats with 60/120 kHz SCS for higher Doppler tolerance.

5G Solutions

Request a Quote

Need 5G NR protocol analyzers, gNB components, or PRACH test solutions? Contact our engineering team.

Get in Touch