Step 1.
The UE sends NAS message Deregistration Request (5G-GUTI, Deregistration type (e.g. Switch off), Access Type, [Unavailability Period Duration], [NAS message container]) to the AMF.
Access type indicates whether the Deregistration procedure applies to the 3GPP access, to the non-3GPP access, or to both if the 3GPP access and non-3GPP access of the UE are served by the same AMF (refer to
TS 23.501). The AMF shall invoke the Deregistration procedure for the target access indicated by the UE.
If the UE and network support Unavailability Period and an event is triggered in the UE that would make the UE unavailable for a period of time, the UE includes Unavailability Period Duration as described in
clause 5.4.1.4 of TS 23.501.
The NAS message container shall be included if the UE is sending a Deregistration Request message as an Initial NAS message and the UE has a valid 5G NAS security context and the UE needs to send non-cleartext IEs, see
clause 4.4.6 of TS 24.501. If the UE does not need to send non-cleartext IEs, the UE shall send a Deregistration Request message without including the NAS message container.
Step 1a.
[Conditional] If the Deregistration Request message was not sent integrity protected or integrity protection verification failed, the NAS security initiation is performed as described in
TS 33.501, the UE includes the full Deregistration Request message as defined in
TS 24.501.
Step 2.
[Conditional] AMF to SMF (or V-SMF):
Nsmf_PDUSession_ReleaseSMContext (SM Context ID).
If the UE has no established PDU Session over the target access indicated in step 1, then steps 2 to 5 are not executed. All PDU Sessions over the target access(es), which belong to the UE are released by the AMF sending
Nsmf_PDUSession_ReleaseSMContext Request (SM Context ID) message to the SMF (or V-SMF) for each PDU Session. If the AMF determines that the secondary RAT usage reporting is required for the PDU Session, the AMF shall execute step 7 and 8 and then wait for the completion of step 8 to receive the secondary RAT usage data from the NG-RAN. After that, steps 2 to 6 in this procedure are performed to e.g. release the PDU Session(s).
For home routed roaming case, the V-SMF initiates the release of the PDU Session at the H-SMF by invoking the
Nsmf_PDUSession_Release request.
Step 3.
[Conditional] The SMF (or H-SMF) releases all resources e.g. the IP address / Prefix(es) that were allocated to the PDU Session and releases the corresponding User Plane resources:
Step 3a.
[Conditional] The SMF (or H-SMF) sends N4 Session Release Request (N4 Session ID) message to the UPF(s) of the PDU Session. The UPF(s) shall drop any remaining packets of the PDU Session and release all tunnel resource and contexts associated with the N4 Session.
Step 3b.
[Conditional] The UPF(s) acknowledges the N4 Session Release Request by the transmission of an N4 Session Release Response (N4 Session ID) message to the SMF.
Step 4.
[Conditional] The SMF (or V-SMF) responds with
Nsmf_PDUSession_ReleaseSMContext Response message.
For home routed roaming case, the H-SMF responds to the V-SMF with a
Nsmf_PDUSession_Release response. The V-SMF releases the corresponding User Plane resources. The V-SMF responds to AMF with
Nsmf_PDUSession_ReleaseSMContext Response message.
Step 5a.
[Conditional] If dynamic PCC applied to this session the SMF performs an SM Policy Association Termination procedure as defined in
clause 4.16.6.
Step 5b-c.
[Conditional] If it is the last PDU Session the SMF is handling for the UE for the associated (DNN, S-NSSAI), the SMF unsubscribes from Session Management Subscription data changes notification with the UDM by means of the Nudm_SDM_Unsubscribe service operation. The SMF invokes the Nudm_UECM_Deregistration service operation so that the UDM removes the association it had stored between the SMF identity and the associated DNN and PDU Session ID.
Step 6.
[Conditional] If there is any association with the PCF for this UE and the UE is no more registered over any access, the AMF performs a AMF-initiated AM Policy Association Termination procedure as defined in
clause 4.16.3.2 delete the association with the PCF.
Step 6a.
[Conditional] If there is any association with the PCF for this UE and the UE is no more registered over any access, the AMF performs a AMF-initiated UE Policy Association Termination procedure as defined in
clause 4.16.13.1 delete the association with the PCF.
Step 7.
[Conditional] The AMF sends NAS message Deregistration Accept to UE depending on the Deregistration type i.e. if Deregistration type is switch-off, AMF does not send Deregistration Accept message.
Step 7a.
[Conditional] If Unavailability Period Duration is received from the UE and there is "Loss of Connectivity" monitoring event subscription for the UE, the AMF triggers "Loss of Connectivity" monitoring event report and includes the remaining value of the Unavailability Period Duration.
Step 8.
[Conditional] AMF to AN: N2 UE Context Release Request (Cause)
If the target access for Deregistration procedure is 3GPP access or both 3GPP access and non-3GPP access and there is N2 signalling connection to NG-RAN, the AMF sends N2 UE Release command to NG-RAN with Cause set to Deregistration to release N2 signalling connection. The details of this step are covered by steps 2 to 4 in the AN Release procedure, as described in
clause 4.2.6.
If the target access for Deregistration procedure is non-3GPP access or both 3GPP access and non-3GPP access and there is N2 signalling connection to the N3IWF/TNGF/W-AGF, the AMF sends N2 UE Release command to N3IWF/TNGF/W-AGF with Cause set to Deregistration to release N2 signalling connection. The details of this step are covered by steps 2 to 5 in the
"Deregistration procedure for (un)trusted non-3gpp access", as described in
clauses 4.12.3 /
4.12a.3 and in
clause 7.2.1 of TS 23.316 for W-5GAN access.