What is the 5G Session Management Function (SMF)?
Published Dec 29 2022 09:00 AM 32.7K Views

The 5G Session Management Function (SMF) is a critical 5G core component that performs a fundamental role in the 5G Service-Based Architecture (SBA). The SMF is primarily responsible for interacting with the decoupled data plane, creating, updating and removing Protocol Data Unit (PDU) sessions and managing session context with the User Plane Function (UPF). 

Screenshot 2022-12-09 085653.png


Both the UE and the gNB employs the Next Generation Application Protocol (NGAP) to carry Non-Access Stratum (NAS) messages across the N1 or N2 reference interfaces in order to request a new session. The Access and Mobility Management Function (AMF) receives these requests and handles anything to do with connection or mobility management, while forwarding session management requirements over the N11 interface to the SMF. The AMF determines which SMF is best suited to handle the connection request by querying the Network Repository Function (NRF). That interface and the N11 interface between the AMF and the specific SMF assigned by the NRF use the Service Based Interface (SBI) message bus, to which all Service-Base Application elements are connected. The SBI message bus employs RESTful API principles over HTTP/2 -- web technologies that dramatically simplify and accelerate service deployments. 

Screenshot 2022-12-09 085709.png

Messages received over the N11 interface represent a trigger to add, modify or delete a PDU session across the user plane. The SMF sends messages to the UPF over the N4 reference interface using the Packet Forwarding Control Protocol (PFCP). Similar to OpenFlow in nature, PFCP employs a well-known UDP port (8805) and was originally defined in 3GPP release 14 specifications to support Control and User Plane Separation (CUPS). 


During session establishment or modification, the SMF also interacts with the Policy Control Function (PCF) over the N7 interface, and the subscriber profile information stored within the Unified Data Management (UDM) function (N10). The UDM assumes a role previously performed by the HSS and AAA server. Employing the SBI Message Bus, the PCF provides the foundation of a policy framework which, along with the more typical QoS and charging rules, includes network slice selection, which is regulated by the Network Slice Selection Function (NSSF). 


Decoupling other control plane functions from the user plane, while (together with the AMF) assuming some of the functionality previously undertaken by the MME, the SMF performs the role of DHCP server and IP Address Management (IPAM) system. Together with the UPF, the SMF maintains a record of PDU session state by means of a 24bit PDU Session ID. The SMF sets configuration parameters in the UPF that define traffic steering parameters and ensure the appropriate routing of packets. It also guarantees the delivery of incoming packets though a Downlink (DL) data notification. In 4G EPC architectures, this is a SGW to MME message. The SMF is responsible for checking whether the UE requests are compliant with the user subscription and for connectivity charging, which is achieved by interacting with a Charging Function (CHF) defined within 3GPP TS 32.255. 


To meet the architectural requirements of 5G, the SMF must be entirely designed and delivered as a cloud native network function that can be dynamically deployed and scaled-up on demand in a completely automated manner. This is a particularly complex proposition when it comes to high-availability control components with asynchronous call flows across geo-diverse infrastructures requiring long and short-lived state maintenance for sessions traversing elements that might quiesce without notice. These functions must therefore employ established design patterns for building and deploying massively scalable web applications, but must also fit the constraints of real-time communications networks. REST is inherently stateless and the 3GPP has defined a Structured and Unstructured Data Storage Functions (UDSF), which can be used by any Network Function to achieve stateless reliability and load distribution. However, a strong background in these design principles will ultimately be required to deliver on a truly cloud native 5G Session Management Function. 


To learn about Microsoft’s mobile core offerings for public and private 5G network infrastructures, visit aka.ms/operators 

1 Comment
Version history
Last update:
‎Feb 26 2023 03:39 PM
Updated by: