What is UE Context Release Command in 5G F1AP?

It is the gNB-CU to gNB-DU UE-associated message used to release the UE-associated logical F1 connection and related resources, or to cancel prepared conditional-mobility or LTM cells for that UE.

What is mandatory in UE Context Release Command?

The mandatory IEs are Message Type, gNB-CU UE F1AP ID, gNB-DU UE F1AP ID, and Cause. Everything else depends on the exact release branch.

Can UE Context Release Command carry an RRC message?

Yes. If RRC-Container is present, SRB ID must also be present so the DU can send the final RRC message to the UE on the indicated SRB.

What does CG-SDT Kept Indicator do in release?

It tells the DU, when supported, to send the UE to RRC_INACTIVE with CG-SDT configuration retained and keep the configured CG-SDT resources and related SDT-bearer state while the ordinary UE context is released.

What does the DU return after UE Context Release Command?

The DU returns UE Context Release Complete, which confirms completion of the release handling and can optionally include Recommended SSBs for Paging List for later paging assistance.