5G SA Registration and PDU Session Call Flow with SBI and PFCP
How a UE registers on a 5G Standalone core (SUCI, 5G AKA, UDM, PCF) and gets a PDU session (SMF, PCF, PFCP to the UPF), with the HTTP/2 calls between network functions.
Browse all articles
Two procedures carry almost everything in a 5G Standalone core: registration - getting the UE onto the network - and PDU session establishment - giving it a data connection. This Solex Network Solutions guide walks through both, with the NAS messages, the HTTP/2 service calls between network functions, and PFCP towards the UPF.
The service-based core
In 5G SA the core is a set of network functions (NFs) that expose services over HTTP/2 with JSON - the Service-Based Interface (SBI):
- AMF - access and mobility: terminates NAS from the UE (N1) and NGAP from the gNB (N2).
- SMF - session management: creates PDU sessions, allocates IP addresses and controls the UPF over N4 (PFCP). Roughly SGW-C + PGW-C.
- UPF - the user plane: forwards packets between the gNB (N3) and the data network (N6).
- AUSF - runs 5G authentication.
- UDM / UDR - subscription data and authentication credentials; the UDM's SIDF de-conceals the SUCI.
- PCF - policy for access and mobility, and for sessions.
- NRF - the registry: every NF registers its profile, and NFs discover each other through it.
- NSSF - network slice selection.
Every NF registers with the NRF at start-up (NFRegister, an HTTP PUT with its profile) and sends heartbeats. When the AMF needs an AUSF or an SMF, it asks the NRF (NFDiscover, HTTP GET with query parameters such as target-nf-type, S-NSSAI and DNN).
Part 1 - Registration
1. Registration Request
After RRC setup, the UE sends Registration Request (type: initial registration) in NAS over N1, carried by the gNB in an NGAP Initial UE Message. It contains:
- SUCI - the concealed subscription identifier. The SUPI (IMSI) is encrypted with the home network's public key, so it never goes over the air in clear text. On a re-registration the UE uses its 5G-GUTI instead.
- 5GMM capability and UE security capability.
- Requested NSSAI - the slices the UE wants.
2-5. Authentication vectors
The AMF selects an AUSF and calls Nausf_UEAuthentication_Authenticate (POST /nausf-auth/v1/ue-authentications) with the SUCI and the serving network name. The AUSF calls the UDM (Nudm_UEAuthentication_Get, POST .../generate-auth-data). The UDM's SIDF de-conceals the SUCI to the SUPI, chooses 5G AKA (or EAP-AKA') and returns a home environment vector: RAND, AUTN, XRES* and KAUSF. The AUSF keeps XRES* and gives the AMF a serving vector with HXRES (a hash), so the visited network can check the response without ever holding XRES.
6-9. 5G AKA
The AMF sends Authentication Request with RAND, AUTN, ngKSI and ABBA. The UE verifies AUTN and returns RES. The AMF checks it against HXRES and passes it to the AUSF (PUT .../5g-aka-confirmation). The AUSF compares RES* with XRES*, returns AUTHENTICATION_SUCCESS with the SUPI and the anchor key KSEAF.
10. NAS security
Security Mode Command / Complete sets up NAS integrity and ciphering. From here on NAS is protected.
11-13. Register with the UDM and fetch subscription and policy
- Nudm_UECM_Registration (PUT .../registrations/amf-3gpp-access) records the AMF as the serving AMF.
- Nudm_SDM_Get fetches access and mobility data (am-data), SMF selection data and UE context in SMF data, and Nudm_SDM_Subscribe subscribes to changes.
- The AMF may create an AM policy association with the PCF (Npcf_AMPolicyControl_Create) for access and mobility policy.
14-15. Registration Accept
The AMF sends Registration Accept with the 5G-GUTI, the TAI list (registration area), the Allowed NSSAI (and any Rejected NSSAI with causes), and network feature support flags such as IMS voice over PS. The UE answers Registration Complete.
Part 2 - PDU session establishment
1. PDU Session Establishment Request
The UE sends PDU Session Establishment Request inside UL NAS Transport, with the PDU session ID, the S-NSSAI and the DNN (the 5G equivalent of the APN), and the session type (IPv4, IPv6, IPv4v6 or Ethernet).
2-4. SMF selection and SM context
The AMF discovers an SMF for that S-NSSAI and DNN through the NRF and calls Nsmf_PDUSession_CreateSMContext (POST /nsmf-pdusession/v1/sm-contexts). The SMF fetches the session management subscription data from the UDM (Nudm_SDM_Get .../sm-data) and answers 201 Created.
5-6. Session policy
The SMF creates an SM policy association with the PCF (Npcf_SMPolicyControl_Create). The PCF returns session rules and PCC rules: the default 5QI, session AMBR, and any rules for specific traffic.
7-8. N4 session establishment
The SMF selects a UPF and sends PFCP Session Establishment Request. It carries the rules that tell the UPF what to do with every packet:
- PDR (Packet Detection Rule) - which packets match (uplink by TEID, downlink by UE IP).
- FAR (Forwarding Action Rule) - where to send them.
- QER (QoS Enforcement Rule) - rate limits and QoS marking.
- URR (Usage Reporting Rule) - what to measure and report for charging.
The UPF answers with its N3 F-TEID (the uplink tunnel endpoint for the gNB).
9-12. Radio resources
The SMF sends N1 and N2 information to the AMF (Namf_Communication_N1N2MessageTransfer): the N1 part is the PDU Session Establishment Accept for the UE (IP address, QoS rules, session AMBR); the N2 part is for the gNB (QoS flow profile, UPF tunnel). The AMF sends NGAP PDU Session Resource Setup Request; the gNB sets up the data radio bearer with RRC Reconfiguration, delivers the NAS Accept, and answers with its own N3 tunnel endpoint.
13-15. Completing the path
The AMF passes the gNB tunnel information to the SMF (Nsmf_PDUSession_UpdateSMContext), and the SMF sends PFCP Session Modification so the downlink FAR points to the gNB. Uplink and downlink now work.
QoS in one paragraph
A PDU session carries one or more QoS flows, each identified by a QFI and characterised by a 5QI (5QI 9 for default internet traffic, 5QI 5 for IMS signalling, 5QI 1 for voice). QoS rules on the UE and PDRs and QERs on the UPF map packets to flows; the gNB maps flows to radio bearers.
Where these procedures fail
- Registration Reject with 5GMM cause #3 Illegal UE - authentication failed (wrong keys or a SUCI the UDM cannot de-conceal).
- #7 5GS services not allowed or #62 No network slices available - subscription or slice problems.
- SBI 404 / 403 with ProblemDetails - read the JSON "cause" field first, for example USER_NOT_FOUND or DNN_NOT_SUPPORTED.
- PDU Session Establishment Reject with 5GSM cause #27 Missing or unknown DNN or #69 Insufficient resources for specific slice.
- PFCP cause other than Request accepted - the UPF rejected the rules; the cause value is specific.
For a field-by-field reading guide, see reading a PDU session establishment trace. Both procedures are run live on our own 5G core in the Solex Network Solutions 5G Core (SA) course.
Learn this hands-on
5G Core (SA) - Architecture, SBI and Call Flows
The service-based 5G core end to end: AMF, SMF, UPF, NRF, AUSF, UDM and PCF, the HTTP/2 interfaces that join them, and every procedure from registration to session release.


Discussion
No comments yet. Start the discussion - questions are welcome.
Leave a comment