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.