WirelessBrewTools

Main Navigation

  • Home
  • Calculators & Tools
  • Technical Articles
  • Cheatsheets

Tool Categories

  • 5G NR
    • 5G NR & 4G LTE Frequency Bands
    • 5G NR & LTE Measurement Gap
    • 5G NR ARFCN Calculator
    • 5G NR GSCN to Frequency Calculator
    • 5G NR PRACH Configuration Calculator
    • 5G NR RRC Timers
    • 5G NR RSRP Measurements
    • 5G NR Throughput Calculator
    • 5QI/QoS Reference
    • Beam Failure Recovery Sandbox
    • BWP Calculator
    • Cell Selection Criterion
    • MAC CE Parser
    • MCS Table Reference
    • Measurement Events Simulator
    • Paging & Wake-Up Calculator
    • Resource Grid Explorer
    • RSRP Mapper
    • SCS & Numerology
    • SLIV/RIV/FDRA Calculator
    • SSB Configuration
    • TBS Calculator
    • Timing Advance Calculator
  • 4G LTE
    • 4G LTE EARFCN Calculator
    • LTE CQI Calculator
    • LTE PRACH Configuration Calculator
    • LTE RRC Timers
    • LTE Throughput Calculator
    • TDD Configuration
  • RF Tools
    • Antenna Downtilt Calculator
    • Antenna Gain Calculator
    • Cable Loss Calculator
    • Cell Range Calculator
    • EIRP Calculator
    • Fresnel Zone Calculator
    • Idle Mode Reselection
    • Link Budget Calculator
    • Path Loss Calculator
    • PCI Calculator
    • PIM Calculator
    • RSRP/RSRQ/SINR Calculator
  • Common RF
    • dB Calculator
    • dBm to Watt Converter
    • Free Space Path Loss Calculator
    • Thermal Noise Calculator
    • VSWR Calculator
  • Reference Tools
    • 3GPP Specs Reference
    • 3GPP Timeline
    • IMSI/IMEI Analyzer
    • Technology Comparison
    • UE Category Reference
  • Beta Releases
    • 3GPP NTN Satellite Planner
    • CORESET/PDCCH Calculator
Contact UsSettings
WirelessBrew
HomeCalculatorsCheatsheetsTechnical Articles
Tool Categories
5G NR
5G NR & 4G LTE Frequency Bands5G NR & LTE Measurement Gap5G NR ARFCN Calculator5G NR GSCN to Frequency Calculator5G NR PRACH Configuration Calculator5G NR RRC Timers5G NR RSRP Measurements5G NR Throughput Calculator5QI/QoS ReferenceBeam Failure Recovery SandboxBWP CalculatorCell Selection CriterionMAC CE ParserMCS Table ReferenceMeasurement Events SimulatorPaging & Wake-Up CalculatorResource Grid ExplorerRSRP MapperSCS & NumerologySLIV/RIV/FDRA CalculatorSSB ConfigurationTBS CalculatorTiming Advance Calculator
4G LTE
4G LTE EARFCN CalculatorLTE CQI CalculatorLTE PRACH Configuration CalculatorLTE RRC TimersLTE Throughput CalculatorTDD Configuration
RF Tools
Antenna Downtilt CalculatorAntenna Gain CalculatorCable Loss CalculatorCell Range CalculatorEIRP CalculatorFresnel Zone CalculatorIdle Mode ReselectionLink Budget CalculatorPath Loss CalculatorPCI CalculatorPIM CalculatorRSRP/RSRQ/SINR Calculator
Common RF
dB CalculatordBm to Watt ConverterFree Space Path Loss CalculatorThermal Noise CalculatorVSWR Calculator
Reference Tools
3GPP Specs Reference3GPP TimelineIMSI/IMEI AnalyzerTechnology ComparisonUE Category Reference
Beta Releases
3GPP NTN Satellite PlannerCORESET/PDCCH Calculator
Preferences
Back to 5g nr
#5G#NR#RACH#ContentionResolution#MSG4#MAC

Contention Resolution Identity (MSG4) in 5G NR RACH

WirelessBrew Team
February 15, 2026
5 min read
  • Contention Resolution Identity (MSG4) in 5G NR RACH
  • Contention Resolution Identity (MSG4) in 5G NR RACH
  • What is Contention Resolution in 5G NR RACH?
  • The Role of MSG3 and MSG4
  • Contention Resolution Identity
  • Successful Contention Resolution
  • Unsuccessful Contention Resolution
  • UE Contention Resolution Identity MAC CE
  • MSG4 and UE Contention Resolution Identity Process
  • References
  • Further Reading

Contention Resolution Identity (MSG4) in 5G NR RACH

Contention Resolution Identity (MSG4) in 5G NR RACH

What is Contention Resolution in 5G NR RACH?

The Contention Resolution Identity (MSG4) is a crucial part of the Random Access procedure in 5G NR. Contention resolution in 5G occurs when multiple UEs attempt to access the network simultaneously, causing potential conflicts in the allocation of resources. To prevent these conflicts, a mechanism is in place to identify and resolve contention between UEs. The process relies heavily on the MAC Control Element (MAC CE) within the Random Access procedure.

During this process, the UE continuously monitors the CORESET (Control Resource Set) within the Type 1 Common Search Space, as defined by the ra-SearchSpace, while the ra-ContentionResolutionTimer is running. This timer is a crucial part of the process, and the UE must manage it carefully to successfully complete the procedure.

The Role of MSG3 and MSG4

The MSG3 transmission is a pivotal part of the contention resolution process. If the UE used MSG3 to transfer a CCCH message (Common Control Channel), the UE will then attempt to decode a PDCCH (Physical Downlink Control Channel) transmission, with the CRC (Cyclic Redundancy Check) bits scrambled by the Temporary C-RNTI (C-Radio Network Temporary Identifier). This scrambling process ensures that the communication is secure and specific to the UE.

In response, the UE may receive one of two possible DCI (Downlink Control Information) formats:

  • DCI Format 0_0: Allocates PUSCH (Physical Uplink Shared Channel) resources for the retransmission of MSG3.
  • DCI Format 1_0: Allocates PDSCH (Physical Downlink Shared Channel) resources for MSG4.

The MSG4 transmission contains the UE Contention Resolution Identity MAC CE, a critical component in determining whether the Random Access procedure has been successful.

Contention Resolution Identity

The UE Contention Resolution Identity MAC CE plays a vital role in ensuring the success of the Random Access procedure. This MAC CE includes the first 48 bits of the uplink CCCH SDU (Service Data Unit) within MSG3, allowing the UE to compare the content of the MAC CE with the original CCCH SDU it transmitted.

Successful Contention Resolution

If the content of the MAC CE matches the original CCCH SDU sent by the UE, the Random Access procedure is considered successful. The Temporary C-RNTI becomes the allocated C-RNTI, and the UE proceeds to transmit a HARQ (Hybrid Automatic Repeat Request) acknowledgment for MSG4.

Unsuccessful Contention Resolution

If the content does not match, it indicates that contention has occurred. The MAC CE is intended for a different UE, and the current UE must revert to transmitting PRACH (Physical Random Access Channel) preambles to attempt a new connection.

Once the contention resolution is successful, the UE uses the PUCCH (Physical Uplink Control Channel) to transmit a HARQ acknowledgment for MSG4. However, at this stage, the UE does not have dedicated PUCCH resources. Instead, it relies on common resources defined by PUCCH-ConfigCommon, which are provided either via SIB1 (System Information Block 1) or through dedicated signaling.

The process of contention resolution can vary depending on the type of message transmitted in MSG3. For example:

  • If MSG3 contains a DCCH (Dedicated Control Channel) or DTCH (Dedicated Traffic Channel) message, the UE will attempt to decode a PDCCH transmission scrambled by the C-RNTI included in MSG3. In this case, contention resolution is successful if the UE receives a PDCCH transmission scrambled by the correct C-RNTI.

Once MSG3 is transmitted, the MAC entity on the UE side initiates the ra-ContentionResolutionTimer. This timer is restarted after each HARQ retransmission in the first symbol following the end of the MSG3 transmission. The MAC entity must carefully manage the timer to ensure the correct handling of retransmissions and avoid contention.

UE Contention Resolution Identity MAC CE

The UE Contention Resolution Identity MAC CE is identified by a MAC subheader with LCID: 62.

It has a fixed 48-bit size and consists of a single field:

  • UE Contention Resolution Identity: This field contains the UL CCCH SDU. If the UL CCCH SDU is longer than 48 bits, this field contains the first 48 bits of the UL CCCH SDU.

MSG4 and UE Contention Resolution Identity Process

General Process after Msg3 Transmission:

  1. Start and restart the ra-ContentionResolutionTimer with each HARQ retransmission after Msg3.
  2. Monitor the PDCCH while the timer is running, even during measurement gaps.

If PDCCH Transmission is Received:

  • If C-RNTI MAC CE was included in Msg3:

    • Check specific cases (e.g., SpCell beam failure recovery, PDCCH order, new UL grant).
    • If conditions are met:
      • Mark contention resolution as successful.
      • Stop the timer and discard TEMPORARY_C-RNTI.
      • Consider Random Access procedure complete.
  • If CCCH SDU was included in Msg3:

    • If PDCCH is addressed to TEMPORARY_C-RNTI and MAC PDU is decoded:
      • Stop the timer.
      • Verify UE Contention Resolution Identity.
      • If match: Successful contention resolution and Random Access completion.
      • If mismatch: Discard TEMPORARY_C-RNTI and consider resolution unsuccessful.

If ra-ContentionResolutionTimer Expires:

  • Discard TEMPORARY_C-RNTI.
  • Mark contention resolution as unsuccessful.

If Contention Resolution is Unsuccessful:

  1. Flush HARQ buffer for Msg3.
  2. Increment PREAMBLE_TRANSMISSION_COUNTER.
  3. If counter exceeds preambleTransMax, report Random Access problem.
  4. Handle unfinished Random Access procedures:
    • For 4-step RA: Select backoff time and perform resource selection.
    • For 2-step RA: Handle msgA-TransMax or select resources post-backoff.
Engineering Tool

5G NR PRACH Configuration Calculator

Interactive tool to calculate the PRACH configuration parameters based on the given inputs.

References

  • 3GPP TS 38.213: 5G NR; Physical layer procedures for control

Further Reading

  • 5G NR RACH Process
  • RNTI Values and Usage
  • 2-Step RACH in Release 16

W
Written by

WirelessBrew Team

Technical expert at WirelessBrew, specializing in 5G NR, LTE, and wireless system optimization. Committed to providing accurate, 3GPP-compliant engineering tools.

Up Next

More 5g nr Articles →

Related Technical Articles & Tools

post5g nr

PDCCH order in 5G NR

post5g nr

Msg2-Random Access Response (RAR) Process in 5G NR RACH

post5g nr

RNTI Values and Usage in 5G NR

post5g nr

2-Step RACH MsgB Reception (Part 2)

post5g nr

2-Step RACH in Release 16 of 5G NR