5G NR - SecurityModeComplete Message Explained

The SecurityModeComplete message is the UE’s positive response to SecurityModeCommand in 5G NR. It confirms that the UE successfully accepted and applied the selected AS security configuration.

In simple terms, this is the UE saying: the requested RRC security settings were understood, activated, and the connection can now continue with protected connected-mode signaling.

This page covers the NR RRC SecurityModeComplete from 3GPP TS 38.331. It is part of the NR RRC security activation procedure, not NAS security signaling.

Why SecurityModeComplete matters

SecurityModeComplete is one of the clearest confirmation points in the NR RRC security procedure.

It matters because it tells you:

  • the UE accepted the network’s AS security configuration
  • the transaction reached a successful UE-side confirmation
  • later RRC signaling can now continue under the activated protection context
  • the failure, if any, may now be in later protected signaling rather than in the security command itself

If this message is missing after SecurityModeCommand, the security activation path did not complete cleanly.

Where SecurityModeComplete appears in the call flow

A common success path is:

  1. RRC Setup from gNB to UE
  2. RRCSetupComplete from UE to gNB
  3. SecurityModeCommand from gNB to UE
  4. SecurityModeComplete from UE to gNB
  5. RRC Reconfiguration or other later protected RRC signaling

This means SecurityModeComplete is not the start of security activation. It is the successful completion checkpoint from the UE side.

Call flow position

A compact NR signaling view is:

UE                              gNB
|                               |
|----- RRCSetupComplete ------->|
|                               |
|<---- SecurityModeCommand -----|
|                               |
|---- SecurityModeComplete ---->|
|                               |
|<----- RRCReconfiguration -----|
|                               |

This sequence shows the normal success path:

  • SecurityModeCommand selects and activates AS security from the network side
  • SecurityModeComplete confirms the UE accepted and applied that configuration
  • RRC Reconfiguration and later protected signaling continue afterward

For the full procedure walkthrough, see:

Transport characteristics

For trace analysis, the transport profile is:

  • Direction: UE to gNB
  • Bearer: SRB1
  • Logical channel: UL-DCCH
  • RLC mode: AM
  • Protocol layer: NR RRC

By the time this message is sent, the UE is already operating in the connected-mode control path where AS security activation has just succeeded.

What engineers should inspect first

When SecurityModeComplete appears, inspect in this order:

  1. Did it follow the expected SecurityModeCommand?
  2. Does the transaction identifier match?
  3. Did the UE send it on SRB1 / UL-DCCH?
  4. Does later protected RRC signaling continue cleanly?
  5. If it is missing, did the UE send a failure or simply stop responding?

Practical troubleshooting guidance

This message is most useful when read together with:

If the security procedure is unhealthy, the main engineering questions are:

  • did the UE actually accept the commanded security configuration?
  • is the SecurityModeComplete missing, delayed, or mismatched?
  • did later protected signaling continue correctly after this point?
  • is the real failure in security activation or in the first protected follow-up procedure?

Summary

SecurityModeComplete is the UE-side confirmation that NR RRC AS security activation succeeded.

The key engineering points are:

  • it confirms successful handling of SecurityModeCommand
  • it is a small confirmation message, not the main algorithm container
  • it is sent on SRB1 / UL-DCCH
  • it is a strong checkpoint that later protected RRC signaling should now work
  • troubleshooting usually depends on pairing it with the preceding command and the first later protected message

FAQ

What does SecurityModeComplete do in 5G NR?

It confirms that the UE successfully applied the AS security configuration requested by SecurityModeCommand.

Who sends SecurityModeComplete?

The UE sends SecurityModeComplete to the gNB.

What comes before SecurityModeComplete?

SecurityModeCommand comes immediately before it in the normal success path.

What comes after SecurityModeComplete?

Later protected connected-mode RRC signaling such as RRCReconfiguration usually follows.

Does SecurityModeComplete contain the algorithm list?

No. The selected security algorithms are carried in SecurityModeCommand, not repeated in detail here.

Why is SecurityModeComplete important in traces?

It shows that the UE accepted the commanded AS security activation and that later protected RRC signaling can proceed.

Summary

Uplink NR RRC message used by the UE to confirm successful activation of the selected AS security configuration.