5G Core Architecture

The Problem with 4G

In 4G (LTE), the core network was designed like a chain.

Each component had fixed connections to specific other components. Want to add a new feature? You’d have to rewire everything.

This made 4G inflexible and hard to upgrade.


The 5G Solution: Service-Based Architecture

5G redesigns the core as a service marketplace.

Instead of fixed connections, components offer services on a common bus. Anyone who needs a service can request it.


Why is this better?

4G Approach5G Approach
Fixed point-to-point linksFlexible service bus
Hard to add featuresEasy to extend
Monolithic designCloud-native, containerized
Hardware-dependentSoftware-defined

Think of it like going from dedicated phone lines to the internet.


The Three Main Components

The 5G core has many components, but three do the heavy lifting:

ComponentNameOne-Line Summary
AMFAccess and Mobility Management“Who are you and where are you?”
SMFSession Management Function“Set up your data connection”
UPFUser Plane Function“Actually move your data”

AMF: The Gatekeeper

AMF handles everything about you connecting to the network.

When you turn on your phone:

  1. Phone says “Hello, I’m here” → AMF receives it
  2. AMF checks your identity → Are you a valid subscriber?
  3. AMF registers your location → Which cell are you in?

AMF’s responsibilities:

TaskWhat It Means
RegistrationPhone joins the network
AuthenticationVerify you’re legitimate
MobilityTrack which cell you’re in
SecurityEncryption setup

AMF is like a receptionist - handles check-in and knows where everyone is.


SMF: The Planner

SMF sets up the path for your data.

When you want to browse the web:

  1. AMF tells SMF “this user wants data”
  2. SMF creates a PDU session (data pipe)
  3. SMF assigns you an IP address
  4. SMF tells UPF how to route your traffic

SMF’s responsibilities:

TaskWhat It Means
Session setupCreate the data connection
IP allocationGive you an address
QoS controlSet speed/priority rules
UPF selectionChoose which UPF to use

SMF is like a network planner - designs the pipes for your data to flow.


UPF: The Workhorse

UPF is where your data actually flows.

AMF and SMF just make decisions. UPF moves packets.


When you load a webpage:

  1. Your phone sends a request → UPF receives it
  2. UPF checks the rules → Where should this go?
  3. UPF forwards to internet → Packet leaves the network
  4. Response comes back → UPF sends it to your phone

UPF’s responsibilities:

TaskWhat It Means
Packet forwardingMove data in/out
Traffic inspectionCheck what’s flowing
QoS enforcementApply speed limits
Usage reportingTrack how much you use

UPF is like the postal service - doesn’t make decisions, just delivers packages.


How They Work Together

The flow when you connect:

StepWhat HappensComponent
1Phone requests connectionAMF
2AMF authenticates youAMF
3AMF requests session setupAMF → SMF
4SMF configures UPFSMF → UPF
5Data starts flowingPhone ↔ UPF ↔ Internet

Control plane (AMF, SMF) makes decisions. User plane (UPF) moves data.


Control Plane vs User Plane

5G separates these two planes completely.

PlanePurposeComponentsTraffic
ControlDecisions, signalingAMF, SMF, etc.Small, occasional
UserActual dataUPFLarge, constant

Why separate them?

  • Scale independently - Need more data capacity? Add UPFs. More users connecting? Add AMFs.
  • Place differently - UPF can be at network edge (low latency). Control plane can be centralized.
  • Secure differently - Control plane is highly protected. User plane is optimized for speed.

The Other Components

The core has more functions for specific tasks:

ComponentFull NameWhat It Does
UDMUnified Data ManagementStores subscriber info
AUSFAuthentication ServerSecurity verification
PCFPolicy Control FunctionRules and policies
NRFNetwork Repository FunctionService discovery
NSSFNetwork Slice SelectionPicks the right slice
NEFNetwork Exposure FunctionAPIs for external apps

Service-Based Interfaces

In SBA, components communicate using HTTP/REST APIs.

Each component exposes services that others can call:

ComponentService NameWhat It Offers
AMFNamfMobility, registration
SMFNsmfSession management
UDMNudmSubscriber data
PCFNpcfPolicy decisions
NRFNnrfService discovery

The “N” prefix means “Network function”. Namf = AMF’s network services.


Network Slicing

One powerful feature of SBA: network slicing.

The same physical network can be divided into virtual networks, each optimized for different uses.

SliceOptimized ForExample Use
eMBB sliceHigh bandwidthVideo streaming
URLLC sliceLow latencyRemote surgery
mMTC sliceMany devicesIoT sensors

Each slice gets its own AMF, SMF, UPF instances. Same hardware, different virtual networks.