5G System Architecture (NG-RAN + 5GC) in 5G NR
The 5G System: NG-RAN of gNBs plus the service-based 5G Core, and the reference points between them.
Zoom out from the radio and you see the shape of the whole 5G System: a handful of radio nodes on one side, a cloud of software network functions on the other, and a small set of named interfaces stitching them together. This page is the architecture in full detail โ the boxes, what each one does, the two very different naming schemes for the lines between them, and why the 5G core looks nothing like the box-and-cable core that came before it.
Introduction
The 5G System (5GS), defined at the top level in TS 23.501, is two halves bolted together: the NG-RAN (Next-Generation Radio Access Network) that owns the air interface, and the 5GC (5G Core) that owns authentication, sessions, policy and the path out to the internet. This page is the map of that system โ the nodes, the network functions, and the interfaces between them.
You meet this architecture the moment a UE does anything beyond the radio: after random access and RRC setup, the device registers with the core, is authenticated, gets a PDU session with an IP address, and its traffic is steered to a data network. Every one of those steps rides an interface named on this page. Knowing the boxes and lines is what lets you read a call flow, place a fault, or reason about where latency and policy actually live.
It matters because the 5GC is not a re-skinned EPC. It is a Service-Based Architecture โ control-plane functions are software microservices that publish REST-style APIs on a shared bus and discover each other at runtime โ and that shift is what unlocks native network slicing, edge user planes, and independent scaling. Get the two naming schemes (service-based interfaces vs reference points) and the control/user-plane split straight, and the rest of 5G signalling falls into place.
On this page
Why the 5GC is built this way
In plain words: the LTE core was like a building wired with fixed intercoms โ the MME had a dedicated cable to the S-GW, another to the HSS, and adding a new conversation meant pulling a new cable. The 5G core is more like a company where everyone is on one messaging platform: any function can look up any other in a directory and call its published API. Need more capacity for one job? Spin up another copy of that function; it registers itself and everyone can reach it. That is the difference between a cabled core and a software one.
Concretely, the 5GC is built as a Service-Based Architecture (SBA) so that the core can be operated like modern cloud software: functions are independently deployable, horizontally scalable, and swappable between vendors, and they find each other dynamically through a registry (the NRF) rather than through static configuration. This is also the precondition for network slicing โ because functions are software services, the same physical core can present several logical networks (an eMBB slice, a URLLC slice, an IoT slice), each a curated set of network-function instances selected by the NSSF.
Two halves: NG-RAN (radio nodes: gNB, ng-eNB) and the 5GC (a set of software network functions). They meet at the NG interface.
A cloud-native, service-based core can scale, upgrade and slice per service โ things the point-to-point EPC could not do cleanly. Separating control from user plane lets the data path sit at the edge.
Control-plane NFs expose services over HTTP/2+JSON on a shared bus and register with the NRF; classic point-to-point reference points (N1–N11) describe the same system for call flows.
NG-RAN: the radio side of the 5G System
The 5G System (5GS) is, at the highest level, exactly two things bolted together: the NG-RAN (Next-Generation Radio Access Network) that owns the air interface, and the 5GC (5G Core) that owns everything behind it โ authentication, sessions, policy and the path out to the internet. Get that top-level split straight and every other acronym on this page slots into one side or the other.
The NG-RAN is the set of base stations that hold the radio. It has two kinds of node, and the distinction matters because it is what lets an operator run 5G without ripping out 4G on day one.
A gNB provides the NR (5G New Radio) air interface to the UE. An ng-eNB provides the LTE (4G) air interface but connects to the 5G core โ so existing LTE spectrum and LTE cell sites can serve a 5G core network.
Operators rarely rebuild everything at once. Admitting an evolved-LTE radio node into the NG-RAN lets a single 5GC serve both NR coverage and evolved-LTE coverage through the long migration, instead of running two full core networks in parallel.
NG-RAN nodes talk to each other over the Xn interface (for handover and dual connectivity) and up to the 5GC over the NG interface. Every NG-RAN node โ whether gNB or ng-eNB โ speaks both.
Those two interface names are the first thing to fix in your head, because they run in different directions and are easy to swap. Xn is horizontal: RAN node to RAN node, the path a UE's context travels during an Xn-based handover. NG is vertical: RAN node up to the core. And NG itself is not one link but two logical ones โ NG-C (the control plane, carrying NGAP signalling to the AMF) and NG-U (the user plane, carrying GTP-U tunnelled data to the UPF). That control/user split at the very edge of the core is a preview of the theme that runs through this whole architecture.
The protocols on these interfaces are exact. NG-C carries the NGAP application protocol (TS 38.413) over SCTP, the same reliable, message-oriented transport LTE's S1AP used โ it handles UE-associated signalling (registration, PDU-session resource setup, handover) and non-UE-associated signalling (NG Setup). NG-U carries user data in GTP-U tunnels over UDP/IP, where each tunnel is identified by a TEID (Tunnel Endpoint Identifier) so the UPF and gNB can map packets to the right UE and QoS flow. Xn mirrors this: Xn-C runs XnAP over SCTP, Xn-U runs GTP-U.
Two interfaces, two directions: Xn is horizontal (RAN node to RAN node); NG is vertical (RAN node up to the core). NG splits into NG-C to the AMF and NG-U to the UPF. The single radio link from UE to gNB is the Uu interface.
5GC is a Service-Based Architecture
The biggest change in the 5G core is philosophical, not just a rename. In LTE the EPC was a set of dedicated boxes wired together with fixed point-to-point interfaces โ the MME talked to the S-GW over S11, to the HSS over S6a, and if you wanted a new conversation you defined a new interface and a new protocol. The 5GC replaces that with a Service-Based Architecture (SBA): each control-plane function is a network function (NF) that exposes services on a common bus, and any authorized NF can consume them. Functions register themselves in a directory and discover each other dynamically, exactly the way microservices do in a modern data centre.
Concretely, control-plane NFs talk to one another over service-based interfaces (SBIs). These are named with an N prefixed to the producer's name: Namf is the set of services the AMF offers, Nsmf the SMF's services, Nudm the UDM's, Npcf the PCF's, Nnrf the NRF's, and so on. Crucially these SBIs ride on HTTP/2 with JSON payloads โ ordinary REST-style APIs โ rather than the bespoke telecom protocols of the EPC era. A producer advertises operations; a consumer calls them; both sides speak the same web transport.
These are real, versioned web APIs. Each service exposes resources under a URI of the form /<service>/<version>/… โ for example the AMF's communication service is Namf_Communication and the SMF's session service is Nsmf_PDUSession โ using ordinary HTTP methods (POST/GET/PUT/PATCH/DELETE) and, for the many event-driven flows, an explicit subscribe/notify pattern where a consumer registers a callback URI and the producer POSTs notifications back. HTTP/2 is chosen for multiplexed streams over one TCP connection; TLS secures the hop, and OAuth 2.0 access tokens (issued via the NRF) authorize one NF to call another.
Don't confuse the two naming schemes. Namf / Nsmf / Npcf (one word, producer name) are service-based interfaces among control-plane NFs. N1 / N2 / N3 / N4 / N6 (letter plus number) are the classic point-to-point reference points out to the UE, the RAN, the UPF and the data network. Same architecture, two styles, and interviewers love the difference.
Why go service-based at all? Because it turns the core into something you can operate like modern software. An NF can be upgraded, scaled out horizontally, or swapped for a different vendor's implementation without rewiring fixed cables to every peer โ it simply re-registers its services and its consumers rediscover it through the NRF. It also underpins network slicing: the same physical core can present multiple logical networks โ a low-latency URLLC slice, a massive-IoT slice, a mobile-broadband slice โ each a curated set of NF instances, precisely because functions are software services rather than dedicated boxes. Each slice is identified by an S-NSSAI (an 8-bit SST plus optional 24-bit SD), and the NSSF then steers each UE to the right slice.
N… service interface; the UDR backs the UDM/PCF, and the UPF sits on the user plane, reached from the SMF over N4.The network functions and what they do
The 5GC has more functions than you will touch day to day, but each has a crisp, single job. Learn the role, not just the acronym โ every one of these answers a "who is responsible for X?" question. Note that most rows are control-plane SBA functions; the UPF is the odd one out, and the N3IWF is a gateway for devices that arrive over Wi-Fi rather than 3GPP radio.
| NF | Role |
|---|---|
AMF | Access and Mobility Management Function โ terminates NAS signalling (the N1 mobility-management 5GMM messages), handles registration, connection management, reachability, paging and mobility. The UE's single anchor point in the core. |
SMF | Session Management Function โ establishes, modifies and releases PDU sessions (the 5GSM NAS messages), allocates the UE IP address, selects the UPF, and programs it over N4. |
UPF | User Plane Function โ the data-plane workhorse and PDU session anchor; forwards packets, enforces QoS and gating, does usage reporting, and connects to the data network. Not an SBA NF โ it is user plane. |
AUSF | Authentication Server Function โ runs UE authentication (5G-AKA / EAP-AKA') together with the UDM. |
UDM | Unified Data Management โ owns subscription data, identity and key material (the ARPF/SIDF functions, including de-concealing the SUCI to a SUPI); the 5G successor to the LTE HSS. Stateless: keeps its data in the UDR. |
UDR | Unified Data Repository โ the actual database behind the UDM, PCF and NEF, holding subscription, policy and exposure data. Separating storage (UDR) from logic (UDM) is what makes those NFs stateless and scalable. |
PCF | Policy Control Function โ supplies QoS, charging and access/mobility policy rules (PCC rules) to the SMF and AMF. The 5G successor to the PCRF. |
NRF | NF Repository Function โ the service registry and discovery service. NFs register their profiles and services here, query it to find one another, and obtain OAuth 2.0 tokens to authorize service calls; the beating heart of SBA. |
NSSF | Network Slice Selection Function โ selects the set of network slice instances (S-NSSAIs) and the serving AMF set for a UE at registration. |
NEF | Network Exposure Function โ the secure front door that exposes selected 5GC capabilities and events to external application functions, and translates their requests inward. |
N3IWF | Non-3GPP Inter-Working Function โ the gateway that lets a UE reach the 5GC over untrusted non-3GPP access (e.g. Wi-Fi), terminating N2/N3 on behalf of that access so the core sees a consistent UE. |
A useful grouping: think of the NFs in three clusters โ subscriber & security (UDM, UDR, AUSF), session & policy (SMF, UPF, PCF), and access, discovery & exposure (AMF, NRF, NSSF, NEF, N3IWF). Every acronym then has a home.
Reference points: the N-numbered links
Alongside the service bus, the 5GS still defines a set of classic reference points โ point-to-point links, each with a specific job and often a specific protocol. These are the links you draw when you sketch the end-to-end path of a packet or a piece of signalling, and they are the ones that show up in call-flow diagrams. Here are the ones you must know.
| Reference point | Between | Carries |
|---|---|---|
N1 | UE ↔ AMF | NAS signalling (5GMM registration/mobility, 5GSM session requests). Logical โ physically relayed by the RAN inside N2. |
N2 | NG-RAN ↔ AMF | Control plane between radio and core: NGAP over SCTP. This is NG-C. |
N3 | NG-RAN ↔ UPF | User-plane data, GTP-U tunnels (per-flow TEID). This is NG-U. |
N4 | SMF ↔ UPF | The PFCP control link (over UDP) by which the SMF programs forwarding, QoS and reporting rules (PDR/FAR/QER/URR) into the UPF. |
N6 | UPF ↔ DN | The link out to the data network (the internet or an operator/enterprise service). Plain IP. |
N9 | UPF ↔ UPF | User-plane tunnel (GTP-U) between two UPFs โ used with an intermediate I-UPF and the anchor PSA-UPF, e.g. for mobility or local breakout. |
N11 | AMF ↔ SMF | The AMF-to-SMF link that triggers PDU-session setup. In SBA terms it is realized via Namf/Nsmf services. |
Xn | NG-RAN ↔ NG-RAN | Inter-node RAN interface: handover signalling and dual connectivity (Xn-C = XnAP/SCTP, Xn-U = GTP-U). |
NG | NG-RAN ↔ 5GC | The umbrella RAN-to-core interface, splitting into NG-C (=N2) and NG-U (=N3). |
Two subtleties are worth calling out. First, N1 is a logical reference point: there is no direct radio-independent pipe from the UE to the AMF. The UE's NAS messages are carried transparently by RRC over the air and then by N2/NGAP across the RAN โ the RAN does not read them, it just relays. Second, the reference points and the service-based interfaces are two views of the same core, not two different cores: N11 is the reference-point name for a conversation that, in an SBA deployment, actually happens as Namf and Nsmf service calls. 3GPP maintains both representations on purpose.
N1 (UE–AMF, relayed), N2 (gNB–AMF), N11 (AMF–SMF), N4 (SMF–UPF). Bearer: Uu → N3 → N9 → N6 out to the DN.Control plane vs user plane: CUPS and the data path
The single most important design idea in the 5GC is the clean separation of mobility, sessions and data into three different functions, and more broadly the separation of the control plane from the user plane. This is CUPS โ Control and User Plane Separation โ and it is what lets the packet-forwarding boxes sit close to the user for low latency while the control logic stays centralized.
Everything about the device: is it registered, is it reachable, where is it, which slice does it belong to. One AMF serves a UE regardless of how many sessions the UE has open.
Everything about a session: set it up, hand out an IP address, choose which UPF anchors it, and push forwarding and QoS rules down over N4. A UE can hold several PDU sessions, each managed by an SMF.
The only function that actually touches user packets. It receives GTP-U from the gNB over N3, applies the rules the SMF programmed, forwards to the next UPF over N9 if needed, and exits to the data network over N6.
So the end-to-end user-plane path is short and named at every hop: UE → gNB → UPF → DN. The UE's packets cross the air on Uu, ride N3 as GTP-U from the gNB to the UPF, possibly traverse N9 to an anchor UPF, and leave via N6 to the data network. Not one control-plane NF sits on that path โ the AMF, SMF and PCF only ever set it up and steer it; the bytes never flow through them.
The rules the SMF programs into the UPF over N4 use the PFCP protocol and a small, exact vocabulary: Packet Detection Rules (PDR) match incoming packets, Forwarding Action Rules (FAR) say where to send them, QoS Enforcement Rules (QER) police rate and marking per QoS flow (keyed by the QFI), and Usage Reporting Rules (URR) drive charging counters. That is the concrete meaning of "the SMF programs the UPF."
Why separate them? Mobility events (handover, paging) happen far more often than session changes, and neither should stall the data path. Splitting mobility, session and forwarding lets each scale on its own axis โ and lets user-plane UPFs sit right at the network edge.
The payoff is concrete. Because the SMF and UPF are decoupled, an operator can drop a UPF next to a factory or a stadium so that traffic for a local application never traverses the whole network โ a pattern called local breakout or edge computing, realized with an intermediate UPF and N9. The centralized SMF still owns the decision of which UPF anchors each PDU session, but the packets take the short path. Meanwhile the AMF keeps tracking the UE's location and reachability no matter how many sessions it has open or where their UPFs sit, so mobility and data placement are optimized independently.
5GC (SBA) compared to the EPC
LTE ↔ NR: the EPC's MME is deliberately split into an AMF (mobility) and an SMF (sessions); the combined S-GW/P-GW user plane collapses into a single, relocatable UPF; the HSS becomes a stateless UDM backed by a UDR; the PCRF becomes the PCF; and bespoke protocols (Diameter, GTP-C) give way to HTTP/2+JSON APIs discovered through the NRF. Same problems, cloud-native re-expression.
If you already know 4G, the fastest way to internalize the 5GC is by contrast. The EPC and the 5GC solve the same problems โ authenticate the device, manage its mobility, set up bearers, forward its data, apply policy โ but the 5GC redistributes those jobs across more, smaller, software-native functions and connects them with a service bus instead of fixed interfaces.
| Concern | EPC (4G) | 5GC (5G, SBA) |
|---|---|---|
| Architecture style | Fixed point-to-point interfaces between dedicated nodes | Service-Based Architecture: NFs expose services on a shared bus |
| Transport between core functions | Bespoke protocols (Diameter, GTP-C) per interface | HTTP/2 + JSON REST APIs (SBIs) |
| Mobility management | MME | AMF |
| Session management | MME + control parts of S-GW / P-GW | SMF |
| User-plane forwarding | S-GW-U + P-GW-U | UPF (single, edge-deployable anchor) |
| Subscriber data | HSS | UDM + UDR (logic separated from storage) |
| Policy | PCRF | PCF |
| Discovery | Static configuration / DNS | NRF registration and discovery |
| QoS granularity | EPS bearer (per-bearer TFTs) | QoS flow (QFI), mapped to DRBs by SDAP |
| Slicing | Limited (DECOR/eDECOR) | Native, via NSSF and S-NSSAI |
Notice the pattern: LTE's MME is deliberately split into an AMF (mobility) and an SMF (sessions), and the combined S-GW/P-GW user plane collapses into a single, relocatable UPF. The HSS becomes a stateless UDM backed by a UDR database. And the whole thing gains an NRF so functions can find each other at runtime instead of being wired together in configuration. The 5GC is, in short, the EPC's responsibilities re-expressed as cloud-native microservices.
⚠ Common pitfalls / gotchas
- Calling
Namf/Nsmf"reference points." They are service-based interfaces (one word, producer-named); the reference points areN1–N11. The same conversation (e.g.N11) exists in both views. - Thinking user data flows through the
AMForSMF. Only theUPFtouches user packets; control-plane NFs set up and steer the path but are never on it. - Treating
N1as a physical link. It is logical โNASis relayed inside RRC over the air and insideNGAP/N2across the RAN. - Confusing the
SUPIandSUCI. TheSUPIis the permanent identity; theSUCIis its concealed form sent over the air, de-concealed by theUDM/SIDF. - Assuming one
UPFper session always. A session can chain an intermediateI-UPFto an anchorPSA-UPFoverN9for edge breakout or mobility.
Quick Q&A
These are the questions that separate memorizing acronyms from truly understanding the architecture.
Q. What is the difference between a service-based interface and a reference point?
A. Service-based interfaces (Namf, Nsmf, Nudm, …) are HTTP/2 APIs among control-plane NFs inside the 5GC. Reference points (N1–N11, plus Xn and NG) are point-to-point links out to the UE, RAN, UPF and data network. Both describe the same core โ SBIs are the intra-core view, reference points the end-to-end view.
Q. Which NF does a gNB signal to, and over what?
A. The AMF, over N2 (NG-C) using NGAP over SCTP. User data instead goes gNB → UPF over N3 (NG-U) as GTP-U. A gNB never talks directly to the SMF.
Q. What role does the NRF play, and why is it central to SBA?
A. It is the service registry and discovery function. NFs register their profiles and services with the NRF, query it to find peers, and get OAuth 2.0 tokens from it to authorize calls โ so functions can be scaled or swapped without static wiring. That runtime discovery is exactly what makes the architecture "service-based."
Q. Trace the user-plane path of a UE's packet and name each hop.
A. UE → gNB over Uu; gNB → UPF over N3 (GTP-U); optionally UPF → UPF over N9; anchor UPF → DN over N6. No control-plane NF is on that path.
Q. How does a device on Wi-Fi reach the 5GC?
A. Through the N3IWF (Non-3GPP Inter-Working Function) for untrusted non-3GPP access. It terminates N2 and N3 toward the core so the 5GC treats the Wi-Fi-attached UE much like a UE on 3GPP radio.
Q. Name three things the 5GC does that the EPC could not do cleanly.
A. (1) Discover and scale NFs dynamically via the NRF instead of static config; (2) place the user plane (UPF) at the edge independently of the control plane, thanks to CUPS and N4/PFCP; (3) run native network slicing selected by the NSSF using S-NSSAI.
Summary
The 5G System is two halves: NG-RAN (the gNB and ng-eNB, meeting the UE over Uu) and the 5GC (a catalogue of software network functions). They join at NG, which splits into NG-C (N2, NGAP/SCTP to the AMF) and NG-U (N3, GTP-U to the UPF); RAN nodes talk sideways over Xn.
The core is a Service-Based Architecture: control-plane NFs publish HTTP/2+JSON services (named Namf, Nsmf, Nnrf, …), register with and are discovered through the NRF, and are also describable as classic reference points (N1–N11) for call flows. Keep those two naming schemes separate โ they are two views of one core.
The organising principle is CUPS: the AMF owns the device, the SMF owns the session and programs the UPF over N4/PFCP, and only the UPF touches user packets โ which is why it can sit at the edge for local breakout. Compared with the EPC, the MME splits into AMF+SMF, the S-GW/P-GW user plane collapses into the UPF, the HSS becomes UDM+UDR, and everything is discovered at runtime rather than wired in configuration.
Where to go next
You have seen the system from above โ the two RAN nodes, the catalogue of 5GC functions, the two naming schemes, and the CUPS split that keeps the data path short. Now go inside a single radio node, or follow the signalling that rides the interfaces you just learned: