Access and Mobility Management Function [1]

Alternative text

AMF(Access and Mobility Management Function) is a Control Plane(CU) function in the 5G Core Network(CN). gNodeB first needs to connect with AMF to access any 5G services. AMF is the only Network Function(NF) through which gNB communicates with the 5G Core(excluding interaction with the UPF(User Plane Function) during the PDU Session Establishment).

Protocols

NAS [2]

The 5G NAS(Non-Access Stratum) is a control plane protocol that is present at the radio interface(N1 interface) between UE and AMF. This manages the mobility and session-related context within 5GS(5G System).

NGAP [3]

The Next-Generation Application Protocol(NGAP) is a Control Plane(CP) protocol signaling between gNB and the AMF. It handles the UE-associated and non-UE-associated services.

SBI [4]

A service-Based Interface is an API-based communication between network functions.

Call Flow

Registration

  • When UE wants to access 5G services, it undergoes a registration process. gNB sends registration requests along with an initial UE message to AMF. AMF uses this information to identify UE in the network. Then, it checks for the last AMF with which the UE is registered, and if it succeeds to find the old AMF address, the new AMF request for the UE context procedure.

  • AMF authenticates UE and also at the same, the network initiates the deregistration process against the old AMF. AMF also requests for a UE radio capability check from the UE to be aware of all the details of its capabilities. It stores this information for future requirements. It also retrieves all the subscriber-related data from UDM and session-related subscriber data from SMF.

  • It also creates Access Management Policies with PCF and after retrieving all the necessary information, it creates UE context. It allocates UE with an id known as AMF UE NGAP ID to identify it from a pool of UEs. Then, it sends a registration confirmation message with an initial context setup message.

Alternative text
  • [9] Handle Initial Registration

  • [9] Handle Registration Request

  • [1] Set RAN ID

  • [7] Build registration reject

  • [8] Send Registration Reject

  • [37] Handle UE Context Transfer Request

  • [23] UE Context Transfer Request

  • [37] [9] UE Context Transfer Procedure

  • [15] HTTP UE Context Transfer

  • [15] HTTP Registration Status Update

  • [23] Registration Status Update/Registration Complete Notify

  • [37] Handle Registration Status Update Request

  • [37] Registration Status Update Procedure

  • [12] Build UE Radio Capability Check Request

  • [13] Send UE Radio Capability Check Request

  • [2] Copy data from the UE Context model

  • [5] Set User Location

  • [3] Add AMF UE to the UE pool

  • [9] store Last Visited Registered TAI

  • [5] Set PLMN ID

  • [5] Set SNSSAI

  • [9] Handle Requested NSSAI

  • [25] NS Selection Get For Registration

  • [38] SDM Get Slice Selection Subscription Data

  • [28] UE CM Registration

  • [38] SDM Get AM Data

  • [38] SDM Subscribe

  • [38] SDM Get SMF Select Data

  • [2] Store SM context

  • [22] AM Policy Control Create

  • [23] Build AM Policy Request Triggers

  • [36] Build UE Context

  • [15] HTTP creates UE Context

  • [23] Create UE Context Request

  • [37] Handle Create UE Context Request

  • [37] Create UE Context Procedure

  • [3] Allocate AMF UE NGAP ID

  • [12] Build Initial Context Setup Request

  • [13] Send Initial Context Setup Request

  • [7] Build Registration accept

  • [8] Send Registration Accept

Deregistration

  • 2 types of deregistration processes occur, first when UE does not want to access the 5GS any longer and second when the network informs UE that it cannot access 5GS any longer. In this flow chart, the UE-initiated deregistration process is initiated. At first, AMF requests for the release of SM context along with resource release messages to the SMF. Then it deregisters with UDM, unsubscribes SDM notification, and also terminates the AM policies, it is created in the context of UE.

  • After deregistration confirmation by the AMF, it unsubscribes the N1N2 message notification and releases the UE context. Then, it removes the UE from the AMF UE pool.

Alternative text
  • [28] UE CM Deregistration

  • [7] Build Deregistration Request

  • [9] Handle Deregistration Request

  • [8] Send Deregistration Request

  • [26] Build Release SM Context Request

  • [26] Send Release SM Context Request

  • [12] Build PDU Session Release Command

  • [13] Send PDU Session Resource Release Command

  • [28] SDM Unsubscribe

  • [6] Purge Subscriber Data

  • [29] HTTP AM Policy Control Update Notify Terminate

  • [34] Handle Am Policy Control Update Notify Terminate

  • [34] Am Policy Control Update Notify Terminate Procedure

  • [2] Remove AM Policy Association

  • [7] Build Deregistration Accept

  • [9] Handle Deregistration Accept

  • [8] Send Deregistration Accept

  • [35] Handle N1N2 Message Unsubscribe Request

  • [16] HTTP N1N2 Message UnSubscribe

  • [35] N1N2 Message UnSubscribe Procedure

  • [12] Build UE Context Release Command

  • [13] Send UE Context Release Command

  • [37] Release UE Context Procedure

  • [37] Handle Release UE Context Request

  • [15] HTTP Release UE Context

  • [23] Release UE Context Request

  • [6] Remove AMF UE

Authorization & Authentication

  • After UE context transfer between AMFs, AMF initiates authorization and authentication procedure with the UE. It handles the identification process and asks for the authentication-related parameters from the AUSF. Then, it sends an authentication request to the UE to setup security keys and select security algorithms in the channels to make them secure for the transfer of the data. AMF builds protected NAS UL and DL transport channels before any type of communication between UE, gNB, and AMF.

Alternative text
  • [7] Build Identity Request

  • [8] Send Identity Request

  • [7] [12] Build DL NAS Transport

  • [8] [13] Send DL NAS Transport

  • [9] Handle Identity Response

  • [9] Handle UL NAS Transport

  • [5] Store/Delete UL NAS Transport

  • [7] Build Authentication Request

  • [8] [27] Send Authentication Request

  • [7] Build Authentication Reject

  • [8] Send Authentication Reject

  • [9] Handle Authentication Error

  • [9] Handle Authentication Failure

  • [8] Send Authentication Accept

  • [3] Allocate GUTI to UE

  • [2] Derive algorithm key

  • [2] Derive NH(Next Hop)

  • [2] Derive Kamf

  • [27] Send AUTH 5G AKA Confirm Request

  • [27] Send EAP AUTH Confirm Request

  • [7] Build Authentication Result

  • [9] Handle Authentication Response

  • [11] Encode/Decode NAS message

  • [9] Authentication Procedure

  • [7] Build Security Mode Command

  • [8] Send SMC

  • [2] Selecting Security Algorithm(Integrity & encryption)

  • [10] Get Integrity and Encryption Algorithm Order

  • [9] Handle Security Mode Reject

  • [9] Handle Security Mode Complete

PDU Session Establishment/ Modification

  • During UE undergoes the registration procedure, it set up a user plane for UE to access 5G data services. It selects the best SMF which can serve the best possible session services to the UE. It requests the creation of SM context to the SMF and also subscribes to the SDM.

  • When UE wants to access 5G data, it sends a service request to the AMF, AMF then sends the modification request of SM context to the SMF which further sends the PDU session modification request to the UPF. AMF accordingly updates the UE context and passes the updated parameters and information to the gNB and UE to reconfigure its base.

Alternative text
  • [26] Select SMF

  • [5] Set SMF URI

  • [5] Set SMF ID

  • [26] Build Create SM Context Request

  • [26] Send Create SM Context Request

  • [34] Handle SM Context Status Notify

  • [31] HTTP SM Context Status Notify

  • [34] SM Context Status Notify Procedure

  • [12] Build PDU Session Resource Setup Request

  • [13] Send PDU Session Resource Setup Request

  • [38] SDM Get AM Data

  • [38] SDM Subscribe

  • [9] Handle Service Request

  • [9] Forward 5G SM Message To SMF

  • [9] Transport 5G SM Message

  • [9] Forward 5G SM Message To SMF

  • [9] Transport 5G SM Message

  • [7] Build Service Reject

  • [8] Send Service Reject

  • [25] NS Selection Get For PDU Session

  • [29] HTTP AM Policy Control Update Notify Update

  • [34] Handle AM Policy Control Update Notify Update

  • [34] AM Policy Control Update Notify Update Procedure

  • [26] Send Update SM Context Request

  • [12] Build PDU Session Resource Modify Request

  • [13] Send PDU Session Resource Modify Request

  • [5] Set PDU Session ID

  • [12] Build PDU Session Resource Modify Confirm

  • [13] Send PDU Session Resource Modify Confirm

  • [12] Build UE Context Modification Request

  • [13] Send UE Context Modification Request

  • [32] Send N1N2 Transfer Failure Notification

  • [35] Handle N1N2 Message Transfer Request

  • [17] HTTP N1N2 Message Transfer

  • [35] N1 N2 Message Transfer Procedure

  • [35] Handle N1N2 Message Transfer Status Request

  • [17] N1N2 Message Transfer status

  • [35] N1N2 Message Transfer Status Procedure

  • [7] Build Service Accept

  • [8] [9] Send Service Accept

  • [35] Handle N1N2 Message Subscribe Request

  • [35] N1N2 Message Subscribe Procedure

  • [18] [19] [20] HTTP N1N2 Message Subscribe

Registration with AMF Re-allocation

  • When an AMF receives a registration request, it may reroute the request to another AMF because of many reasons. For example, maybe the initial AMF is not the right AMF to serve the UE. The registration with AMF re-allocation procedure is used to reroute the NAS message of the UE to the target AMF during the registration procedure.

Alternative text
  • [9] Handle Initial Registration

  • [24] Send Search NF Instances

  • [24] Search UDM SDM Instance

  • [24] Search NSSF NS Selection Instance

  • [24] Search AMF Communication Instance

  • [15] HTTP Registration Status Update

  • [23] Registration Status Update/Registration Complete Notify

  • [37] Handle Registration Status Update Request

  • [37] Registration Status Update Procedure

  • [39] Handle NF Discovery Request

  • [39] NF Discovery Procedure

  • [32] Send N1 Message Notify At AMF ReAllocation

  • [30] HTTP N1 Message Notify

  • [12] Build Reroute Nas Request

  • [13] Send Reroute Nas Request

Xn-based Inter NG-RAN Handover

  • When UE moves to other regions, based on the UE measurement report, the Source gNB sends the handover request to the Target gNB. Then, S-RAN forwards DL data to the T-RAN. T-RAN sends path switch requests to the AMF and continues to send UL data to the UPF. AMF then sends an SM modification request to the SMF to initiate a session handover procedure at the UPF. To avoid the delay in the forwarding of data, UPF continues to forward end-marker data packets to the S-RAN which transfers the packets towards T-RAN. After, a successful handover, T-RAN initiates the UE context release procedure in the S-RAN.

Alternative text
  • [12] Build Path Switch Request Failure

  • [13] Send Path Switch Request Failure

  • [26] Send Update SM Context Xn Handover

  • [26] Send Update SM Context Xn Handover Failed

  • [26] Send Update SM Context N2 Handover Preparing

  • [26] Send Update SM Context N2 Handover Canceled

  • [26] Send Update SM Context N2 Handover Complete

  • [12] Build Path Switch Request Acknowledge

  • [13] Send Path Switch Request Acknowledge

Inter NG RAN Node N2-based Handover

  • Due to the relocation of UE, along with the change in the serving RAN, there may be a handover of AMF. The serving AMF selects the appropriate AMF to serve the UE in that region. Then, it transfers the UE context to the T-AMF(Target AMF) for registration. T-AMF sends an update SM Context Handover message to the SMF to update the serving AMF context.

  • T-AMF then sends a handover request to the T-RAN(Target RAN) and also notifies the S-RAN(Source RAN) about the N2 Handover.

Alternative text
  • [36] Build UE Context

  • [15] HTTP creates UE Context

  • [23] Create UE Context Request

  • [37] Handle Create UE Context Request

  • [37] Create UE Context Procedure

  • [26] Send Update SM Context Handover Between AMF

  • [26] Send Update SM Context Handover Between Access Type

  • [12] Build Handover Request

  • [13] Send Handover Request

  • [12] Build Handover Command

  • [13] Send Handover Command

  • [12] Build Handover Preparation Failure

  • [13] Send Handover Preparation Failure

  • [12] Build Handover Cancel Acknowledge

  • [13] Send Handover Cancel Acknowledge

  • [4] Update Location

  • [12] Build Location Reporting Control

  • [13] Send Location Reporting Control

  • [9] Handle Mobility And Periodic Registration Updating

  • [7] Build Status 5G MM

  • [9] Handle Status 5G MM

  • [8] Send Status 5G MM

  • [33] Send N2 Info Notify N2 Handover

Configuration Update

  • Based on the changes, AMF decides whether UE needs reconfiguration or it should re-register with the AMF again. Then, the AMF initiates the Configuration Update procedure when it observes a change in the configuration that was previously sent to a UE. As a response, UE acknowledges the request and sends the completion of the configuration updates to the AMF.

Alternative text
  • [12] Build Downlink RAN Configuration Transfer

  • [13] Send Downlink RAN Configuration Transfer

  • [12] Build Downlink RAN Status Transfer

  • [13] Send Downlink RAN Status Transfer

  • [12] Build RAN Configuration Update Failure

  • [13] Send RAN Configuration Update Failure

  • [12] Build RAN Configuration Update Acknowledge

  • [13] Send RAN Configuration Update Acknowledge

  • [7] Build Configuration Update Command

  • [8] Send Configuration Update Command

  • [12] Build Downlink UE Associated NRPPa Transport

  • [13] Send Downlink UE Associated NRPPa Transport

  • [12] Build Downlink Non-UE Associated NRPPA Transport

  • [13] Send Downlink Non-UE Associated NRPPA Transport

  • [9] Handle Configuration Update Complete

  • [12] Build AMF Configuration Update

  • [13] Send AMF Configuration Update