4-Step RACH
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.
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
| Trigger | CBRA/CFRA | Typical Scenario | Latency Tolerance |
|---|---|---|---|
| Initial access | CBRA | UE power-on, cell selection | 100+ ms |
| Handover | CFRA (dedicated preamble) | Mobility between cells | 10-50 ms |
| Beam failure recovery | CFRA or CBRA | mmWave beam blockage | <20 ms |
| Scheduling request | CBRA | UL data after inactivity | 5-20 ms |
| UL timing resync | CBRA | TA timer expiry | 10-50 ms |
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.