Section: 4.3.4.2 UE or network requested PDU Session Release for Non-Roaming and Roaming with Local Breakout
Content: Figure 4.3.4.2-1 captures both the UE Requested PDU Session Release procedure and the network requested PDU Session Release procedure. The procedure allows the UE to request the release of one PDU Session. The procedure also allows the AMF, the SMF or the PCF to initiate the release of a PDU Session. In the case of LBO, the procedure is as in the case of non-roaming with the difference that the AMF, the SMF, the UPF and the PCF are located in the visited network. Figure 4.3.4.2-1: UE or network requested PDU Session Release for non-roaming and roaming with local breakout 1. The procedure is triggered by one of the following events: 1a. (UE requested) The UE initiates the UE Requested PDU Session Release procedure by the transmission of an NAS message (N1 SM container (PDU Session Release Request (PDU session ID)), PDU Session ID) message. The NAS message is forwarded by the (R)AN to the AMF with an indication of User Location Information. This message is relayed to the SMF corresponding to the PDU Session ID via N2 and the AMF. The AMF invokes the Nsmf_PDUSession_UpdateSMContext service operation and provides the N1 SM container to the SMF together with User Location Information (ULI) received from the (R)AN. NOTE 1: Depending on the Access Type, when the UE is in CM-IDLE state, the UE can trigger a Service Request procedure before being able to release the PDU Session. 1b. (PDU Session Release initiated by the PCF) The PCF may invoke an SM Policy Association Termination procedure as defined in clause 4.16.6 to request the release of the PDU Session. 1c. The AMF may invoke the Nsmf_PDUSession_ReleaseSMContext service operation to request the release of the PDU Session in the case of mismatch of PDU Session status between UE and AMF or other cases where neither N1 nor N2 SM signalling is needed before the releasing of SM context. 1d. (R)AN may decide to indicate to the SMF that the PDU Session related resource is released, e.g. when all the QoS Flow(s) of the PDU Session are released. NOTE 2: In this case, it's up to SMF to decide whether to keep the PDU Session with user plane connection deactivated or release the PDU Session. 1e. (PDU Session Release initiated by the SMF). The SMF may decide to release a PDU Session under the following scenarios: - Based on a request from the DN (cancelling the UE authorization to access to the DN); - Based on a request from the UDM (subscription change) or from the CHF; - If the SMF received an event notification from the AMF that the UE is out of LADN service area; - Based on locally configured policy (e.g. the release procedure may be related with the UPF re-allocation for SSC mode 2 / mode 3); - If the SMF is notified by the (R)AN that the PDU Session resource establishment has failed during mobility procedure; - The SMF initiates release of an emergency PDU Session when the UPF reports detection of PDU Session inactivity for a specified period as specified in clause 4.4.2.2; - Based on PDU Session inactivity report from the UPF if the S-NSSAI of a PDU Session for non-roaming subscribers is subject to usage control as described in clause 5.15.15 of TS 23.501[ System architecture for the 5G System (5GS) ]  [2]; or - If the SMF is notified by the AMF that the S-NSSAI of the PDU Session with SSC mode 1 or SSC mode 2 is to be replaced with Alternative S-NSSAI, and if the SMF determines that a new PDU Session is to be established on the Alternative S-NSSAI, the SMF initiates release of the PDU Session, as described in clause 5.15.19 of TS 23.501[ System architecture for the 5G System (5GS) ]  [2]. 1f. The AMF may invoke the Nsmf_PDUSession_UpdateSMContext service operation with a release indication to request the release of the PDU Session where N1 or N2 SM signalling may be needed before releasing the SM context with appropriate cause value (e.g. due to a change of the set of network slices for a UE where a network slice instance is no longer available as described in clause 5.15.5.2.2 of TS 23.501[ System architecture for the 5G System (5GS) ]  [2] or the AAA Server triggered Network Slice-Specific Re-authentication and Re-authorization procedure fails as specified in clause 4.2.9.2 or the AAA Server triggered Slice-Specific Authorization Revocation takes place as specified in clause 4.2.9.4 or AMF determines that Control Plane Only indication associated with PDU Session is not applicable any longer as described in clause 5.31.4.1 of TS 23.501[ System architecture for the 5G System (5GS) ]  [2]) or the MBSR authorization state is changed from "authorized" to "not authorized" as described in clause 5.35A.4 of TS 23.501[ System architecture for the 5G System (5GS) ]  [2] or the Network Slice instance is congested or not available as described in clause 5.15.5.3 of TS 23.501[ System architecture for the 5G System (5GS) ]  [2]. If the SMF receives one of the triggers in step 1a, 1b, 1c, 1e, or 1f, the SMF starts PDU Session Release procedure. If the cause value in step 1f indicates the Network Slice instance is congested or not available, the SMF triggers the impacted UE(s) to establish new PDU session(s) associated with the same S-NSSAI by using the procedures for PDU Session(s) of SSC mode 2 or SSC mode 3 as defined in clause 4.3.5. If interworking with TSN deployed in the transport network is supported the SMF/CUC shall initiate the release of TN streams via UNI. 2. The SMF releases the IP address / Prefix(es) that were allocated to the PDU Session and releases the corresponding User Plane resources: 2a. The SMF sends an 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. If interworking with TSN deployed in the transport network is supported and the UPF supports CN-TL and TN streams are associated with the PDU session, the SMF/CUC shall initiate to the CN-TL the deletion of TN stream configurations. 2b. The UPF(s) acknowledges the N4 Session Release Request by the transmission of an N4 Session Release Response (N4 Session ID, [Small Data Rate Control Status], [APN Rate Control Status]) message to the SMF. If UPF/CN-TL has performed the deletion of TN stream based on the request received from the SMF/CUC in step 2a, the UPF/CN-TL shall confirm the deletion of TN stream configurations. The UPF includes Small Data Rate Control Status if the PDU Session used Small Data Rate Control. If a NEF has been selected as anchor of the Control Plane CIoT 5GS Optimisation enabled PDU session which is Unstructured PDU Session Type as described in clause 4.3.2.2 and the SMF-NEF Connection is released for this PDU Session. If interworking with TSN deployed in the transport network is supported and the NG-RAN supports AN-TL and TN streams are associated with the released PDU session, the SMF/CUC shall initiate to the AN-TL the deletion of TN stream configurations. NOTE 3: If there are multiple UPFs associated with the PDU Session (e.g. due to the insertion of UL CL or Branching Point, or redundant I-UPFs if the redundant I-UPFs are used for URLLC), the Session Release Request procedure (steps 2a and 2b) is done for each UPF. In order to avoid charging of PDUs that later get dropped, the SMF performs the N4 Session Release first with the UPF(s) performing usage reporting, before releasing the other UPF(s) that forward traffic for the same user plane resources. 3 If the PDU Session Release is initiated by the PCF and SMF and the SMF has been notified by the AMF that UE is unreachable, e.g. due to the UE is in MICO mode or periodical registration failure, the procedure continues in step 11 by SMF notifying the AMF that the PDU Session is released by invoking the Nsmf_PDUSession_SMContextStatusNotify. The rest of step 3 and the steps 4-10 are skipped. If the PDU Session Release procedure was triggered by steps 1a, 1b, 1d or 1e above, the SMF creates an N1 SM including PDU Session Release Command message (PDU Session ID, Cause, Alternative S-NSSAI). The Cause may indicate a trigger to establish a new PDU Session with the same characteristics (e.g. when procedures related with SSC mode 2 are invoked). .If the cause value indicates that a PDU Session re-establishment on the Alternative S-NSSAI is required the PDU Session Release Command message also includes the Alternative S-NSSAI. The UE establishes a new PDU Session on the Alternative S-NSSAI, as described in clause 5.15.19 of TS 23.501[ System architecture for the 5G System (5GS) ]  [2]. If the User Plane connection of the PDU Session is activated, the message sent by the SMF to the AMF shall include N2 SM Resource Release request. If the User Plane connection of the PDU Session is not activated, the message sent by the SMF to the AMF shall not include N2 SM Resource Release request. NOTE 4: SSC modes are defined in clause 5.6.9 of TS 23.501[ System architecture for the 5G System (5GS) ]  [2]. 3a. (If the PDU Session Release is initiated by the UE in step 1a or has been triggered by (R)AN in step 1d) The SMF responds to the AMF with the Nsmf_PDUSession_UpdateSMContext response (N2 SM Resource Release request, N1 SM container (PDU Session Release Command)). N2 SM Resource Release request is included if the PDU Session Release is initiated by the UE and if the UP connection of the PDU Session is active. Neither N2 SM Resource Release request nor N1 SM container is included if the PDU Session Release is triggered by (R)AN and the SMF decides to keep the PDU session with user plane connection deactivated and the subsequent steps are skipped. 3b. If the PDU Session Release is initiated by the SMF or the PCF, the SMF invokes the Namf_Communication_N1N2MessageTransfer service operation (N1 SM container (PDU Session Release Command), skip indicator). If the UP connection of the PDU Session is active, the SMF shall also include the N2 Resource Release request (PDU Session ID) in the Namf_Communication_N1N2MessageTransfer, to release the (R)AN resources associated with the PDU Session. The "skip indicator" tells the AMF whether it may skip sending the N1 SM container to the UE (e.g. when the UE is in CM-IDLE state). SMF includes the "skip indicator" in the Namf_Communication_N1N2MessageTransfer except when the procedure is triggered to change PDU Session Anchor of a PDU Session with SSC mode 2. If the UE is in CM-IDLE state and "skip indicator" is included in the Namf_Communication_N1N2MessageTransfer service operation or if the UE is in CM-IDLE state and "skip indicator" is not included in the Namf_Communication_N1N2MessageTransfer service operation but the AMF detects that the UE context contains Paging Restriction Information indicating that all paging is restricted, the AMF acknowledges the step 3b by sending an Namf_Communication_N1N2MessageTransfer Response message ("N1 SM Message Not Transferred") to SMF and steps 4 to 10 are skipped. 3c. If the PDU Session Release is initiated by the AMF in step 1c, i.e. the SMF received the Nsmf_PDUSession_ReleaseSMContext Request from the AMF, the SMF responds to the AMF with the Nsmf_PDUSession_ReleaseSMContext response, optionally including the Small Data Rate Control Status and APN Rate Control Status. If the UPF included APN Rate Control Status and/or Small Data Rate Control Status in step 2 then the SMF includes APN Rate Control and/or Small Data Rate Control Status and the AMF stores the Small Data Rate Control Status and/or the APN Rate Control Status in the UE context in AMF. The AMF and SMF shall remove all contexts (including the PDU Session ID) associated with the PDU Session which are indicated as released at the UE. The SMF shall remove any event subscriptions on the AMF by the SMF that becomes no more needed due to the PDU Session Release. The steps 4 to 11 are skipped. 3d. If the PDU Session Release is initiated by the AMF in step 1f, i.e. the SMF received the Nsmf_PDUSession_UpdateSMContext Request from the AMF with a release indication to request the release of the PDU Session, the SMF responds to the AMF with the Nsmf_PDUSession_UpdateSMContext Response which may contain the N1 SM container (PDU Session Release Command) to release the PDU session at the UE. If the UP connection of the PDU Session is active, the Nsmf_PDUSession_UpdateSMContext Response shall also include the N2 Resource Release request (PDU Session ID) to release the (R)AN resources associated with the PDU Session. 4. If the UE is in CM-IDLE state and "N1 SM delivery can be skipped" is not indicated, the AMF initiates the network triggered Service Request procedure to transmit the NAS message (PDU Session ID, N1 SM container) to the UE and the steps 6, 7 are skipped. If the message received from the SMF in step 3 does not include N2 SM Resource Release request, the AMF transmits the NAS message (PDU Session ID, N1 SM container) to the UE and the steps 6, 7 are skipped. If the PDU Session is Control Plane CIoT 5GS Optimisation enabled, the SMF shall not include N2 SM Resource Release request in the message sent to the AMF, the AMF transmits the NAS message (PDU Session ID, N1 SM container) to the UE and the steps 6, 7 are skipped. If the UE is in CM-CONNECTED state and the received message from the SMF in step 3 includes N2 SM Resource Release request, the AMF transfers the SM information received from the SMF in step 4 (N2 SM Resource Release request, N1 SM container) to the (R)AN. If the message from the SMF includes Small Data Rate Control Status then the AMF stores it in the UE Context in AMF. 5. When the (R)AN has received an N2 SM request to release the AN resources associated with the PDU Session it issues AN specific signalling exchange(s) with the UE to release the corresponding AN resources. In the case of a NG-RAN, the NAS message is sent to the UE in an RRC message which may take place with the UE releasing the NG-RAN resources related to the PDU Session. If NG-RAN resources do not need to be released (i.e. the User Plane of the PDU Session is deactivated), the NAS message is sent to the UE in an RRC message which does not release the NG-RAN resources related to the PDU Session. During this procedure, the (R)AN sends any NAS message (N1 SM container (PDU Session Release Command)) received from the AMF in step 5. For PDU Session for non-roaming subscribers, if the S-NSSAI of the released PDU Session is subject to network slice usage control as described in clause 5.15.15 of TS 23.501[ System architecture for the 5G System (5GS) ]  [2] and there is no other PDU Session using the S-NSSAI, the UE starts slice deregistration inactivity timer for the S-NSSAI. 6. [Conditional] If the (R)AN had received a N2 SM request to release the AN resources, the (R)AN acknowledges the N2 SM Resource Release Request by sending an N2 SM Resource Release Ack (User Location Information, Secondary RAT usage data) Message to the AMF. If the PLMN has configured secondary RAT usage reporting, the NG-RAN node may provide RAN Usage Data Report. If NG-RAN/AN-TL has performed the deletion of TN stream based on the request received from the SMF/CUC in step 3, the NG-RAN/AN-TL shall confirm the deletion of TN stream configurations. 7a. The AMF invokes the Nsmf_PDUSession_UpdateSMContext (N2 SM Resource Release Ack (Secondary RAT usage data), User Location Information) to the SMF. 7b. The SMF responds to the AMF with an Nsmf_PDUSession_UpdateSMContext response. 8. The UE acknowledges the PDU Session Release Command by sending a NAS message (PDU Session ID, N1 SM container (PDU Session Release Ack)) message over the (R)AN. 9. [Conditional] The (R)AN forwards the NAS message from the UE by sending a N2 NAS uplink transport (NAS message (PDU Session ID, N1 SM container (PDU Session Release Ack)), User Location Information) to the AMF. 10a. The AMF invokes the Nsmf_PDUSession_UpdateSMContext (N1 SM container (PDU Session Release Ack, User Location Information) to the SMF. 10b. The SMF responds to the AMF with an Nsmf_PDUSession_UpdateSMContext response. Steps 8-10 may happen before steps 6-7. 11. If steps 3a, 3b or 3d were performed, the SMF waits until it has received replies to the N1 and N2 information provided in step 3, as needed. The SMF invokes Nsmf_PDUSession_SMContextStatusNotify to notify AMF that the SM context for this PDU Session is released. If the UPF included Small Data Rate Control Status and/or APN Rate Control Status in step 2 then the SMF includes Small Data Rate Control Status and/or APN Rate Control Status in its request to the AMF in this step. The AMF releases the association between the SMF ID and the PDU Session ID, DNN, as well as S-NSSAI and stores the Small Data Rate Control Status and/or the APN Rate Control Status in the UE context in AMF. The SMF shall remove any event subscriptions on the AMF that becomes no more needed due to the PDU Session Release. NOTE 5: The UE and the 5GC will get synchronized about the status of the (released) PDU Session at the next Service Request or Registration procedure. For PDU Session for non-roaming subscribers, if the S-NSSAI of the released PDU Session is subject to network slice usage control and if the SMF indicates cause of slice inactivity and there is no other PDU Session using the S-NSSAI, then AMF may remove the S-NSSAI from the Allowed NSSAI or start slice deregistration inactivity timer for the S-NSSAI as described in clause 5.15.15.3 of TS 23.501[ System architecture for the 5G System (5GS) ]  [2]. 12. If Dynamic PCC applied to this session the SMF invokes an SM Policy Association Termination procedure as defined in clause 4.16.6 to delete the PDU Session. 13. SMF notifies any entity that has subscribed to User Location Information related with PDU Session change. 14. 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 (SUPI, DNN, S-NSSAI) service operation. The UDM may unsubscribe the subscription notification from UDR by Nudr_DM_Unsubscribe (SUPI, Subscription Data, Session Management Subscription data, DNN, S-NSSAI). 15. The SMF invokes the Nudm_UECM_Deregistration service operation including the DNN and the PDU Session Id. The UDM removes the association it had stored between the SMF identity and the associated DNN and PDU Session Id. The UDM may update this information by Nudr_DM_Update (SUPI, Subscription Data, UE context in SMF data).