5GC Telco System Intro

Jackcuii Lv1

Still under construction

3GPP 5G Core Arch

"./images/Pasted image 20251013122756.png"
2
Two Open-source implementations: OpenAir(EU), free5gc
Features - free5GC

  • The squares on the diagram are NF (network function). They are individual function modules of the 5G network. The NFs shown on the diagram above is a subset of 3GPP Spec

    Whole NF list is at: TS 123.501 $4.2.2 Network Functions and entities

  • The links on the figure above is Reference Point. It is an abstract concept. It means the logical interaction between two NFs. It specifies what information will be exchanged between the two ends, what function do their behaviors want to achieve and what protocol they will use. RP is different from Protocol, since RP is about what and why, while protocol is about how. So you can approximately analogize it to API. It is commonly implemented by HTTP/2.

    Notice: There is not a corresponding physical impl of RFs, it is a logical conception.

  • Signaling is the control message exchanged by the 5GC.
  • Network Slicing means implementing several logical separated end-to-end network instance with different QoS guarantee in a shared network infrastructure.

AMF (Access and Mobility Management function)

TS 123.501 $6.2.1

AMF controls the UEs’ network access and handle the location change of the UE.

AUSF (Authentication Server Function)

AUSF is used to authenticate the access of the UE.

UDM (Unified Data Management)

UDM serves as a memory controller to the UDR

UDR (Unified Data Management)

UDR is the abstract interface of the database to store user data.

NSSF (Network Slice Selection Function)

NSSF is used to manage and select the QoS (S-NSSAIs).

SMF (Session Management Function)

SMF is used to manage the PDU sessions of the nework.
Each SMF can manage a certain amount of sessions. A SMF may support a set of DNN and S-NSSAI combination。
And can be dynamically scale up/down.
When a new SMF instance is deployed, it is registered to the NRF.
The arch is designed with the C-U separation philosophy.
When the channel is established, the AMF handle the control to SMF, its design is actually like the Control plane of the control plane.

NRF (Network Repository Function)

NRF is the base of SBA. It is like a DNS server in 5G network. It enable the scalability of the network functions. NFs use the NRF to indirectly discover each other. When new NF instance is created, it is registered onto NRF.

AMF-ASUF-UDM is not through NRF, the communication between them are pre-defined and static. for performance concern and their roles seldom change. (TBD)

Significant Procedures

Initial Access and Registration

This means the UE wants to connect to the 5g core network and get a permission from the core network to use the service.
It’s is a challenge/response procedure (AKA agreement).
3
4

PDU Setup

5
6

AMF can also be in the Edge Data Center.

Mobility Management

Please refer to session Mobility Management & Area Architecture (partly inherited from 4G(LTE)).

Mobility Management & Area Architecture (partly inherited from 4G(LTE))

Architecture

TS 123.501 $5.3.2.3
As the former generation of the cellular network, 5G also has Cell, which means a region that a device of gNB covers. Several Cell constitute a TA(Tracking Area).
When an AMF is registered to the NRF, it will claim a set of TAs that it will manage and the slice. (TS 29.510) There are always several AMFs serving as a ReplicaSet(handle the same TA Set+Slice) and there are several AMF Sets covering different TASet+Slice.

However, the AMF instances are still registered NRF by instance but not by set. That is because the load-balance among the AMFs is not transparent. (TBD: What about that in Kubernetes?)

When a UE is connected to 5gc, it will assigned a TA list by the AMF, which is called RA(Registration Area) (according to its moving pattern, service level…). Note that RA is dynamic and UE-specific, but not a static division.

Management Procedure

When a UE moves to its neighbor cell within the TA in the RA

  • if UE is CM-IDLE (no active PDU, and), then cause Cell-Reselection. The UE connects to the new gNB.
  • if UE is CM-CONNECTED, then cause Xn Handover. The network tries to hand the old gNB’s work to a new gNB, with data in flight.
    • Brief Procedure: The gNB contact the neighbor gNB with Xn-C (C means Control-Plane) to inform it the config info to reserve resource. Then gNB use Xn-U (U means User-Plane) to transmit the leftover data to the new gNB.
    • Xn is the interface between the gNBs Xn allow the gNBs managed by the same AMF to exchange data and config, without bothering the AMF. (TS 138.420)

CM-IDLE means UE - AMF do not have N1 channel, but context is still in SMF. The AMF do not know the exact position of the UE, but know if it is still alive, it must be with in the TA list.
CM-CONNECTED means UE - AMF have N1 channel, which means there must be a gNB in between. Thus the AMF know the precise location (in which cell) of the UE.

A problem: why TA?
When the UE move between the TAs both in the TA list, it does not need to report the position (and thus ), then the problem is AMF actually do not have TA-level position, why is TA needed.
I do not find the explanation. One possible explanation is that TA list instead of Cell list can reduce the memory overhead of AMF.

When a UE move into a cell within a TA out of the RA

UE try to do Cell-reselection when it keeps hearing from the nearby gNB and decide to connect to a new cell. Then if it finds the the TA ID is not in its TA list, it knows it is going to move into a cell within a TA out of the RA.

if UE is in CM-IDLE
  1. if the new cell’s TA is also in the old AMF’s TA Set:
    1. if the old AMF can not handle the network slice:
      triggers AMF Re-allocation (TS 123.502), go to 2.
    2. else:
      The AMF assigns a new TA list as the RA for the UE.
  2. if the new cell’s TA is not in the old AMF’s TA Set:
    triggers AMF Re-allocation, UE establish link with new gNB. The new gNB find a proper AMF which can support the service. The new AMF will find the UE used to be managed by another AMF. The new AMF will request the context from the old AMF, try to do authentication and inform SMF to update the AMF information.

Note: Re-allocation is not necessarily trigger by moving into a TA. It can also be triggered when UE wants to connect from IDLE state + gNB decide to change AMF due to load balance or AMF is exhausted and actively ask for re-allocation.

if UE is in CM-CONNECTED
  1. if the new cell’s TA is also in the old AMF’s TA Set:
    1. if the old AMF can not handle the network slice:
      go to 2.
    2. else:
      trigger Xn Handover and assign new TA list to UE
  2. if the new cell’s TA is not in the old AMF’s TA Set:
    Trigger N2 Handover: The old gNB tell the new gNB to the old AMF, old AMF choose a new AMF according to the new gNB and tell the new AMF create a context. Then new AMF tell the new gNB to reserve resource and tell the SMF that it will take over. New gNB tell the new AMF it is ready, new AMF tell the old AMF it is ready, old AMF tell the old gNB it is ready. Old gNB forwards leftover to new gNB, UE establish connection with new gNB. Then UE contact the new AMF through new path, new AMF tell the old AMF to release (and later old AMF will tell old gNB to release) and tell the UE new TA list. (really complicated…)
    The key path in this handover is the Transparent Container, it supports the information exchange between the new gNB and old gNB through new gNB - new AMF - old AMF - old gNB
  • Title: 5GC Telco System Intro
  • Author: Jackcuii
  • Created at : 2025-10-13 12:14:10
  • Updated at : 2026-11-29 15:48:01
  • Link: https://jackcuii.observer/2025/10/13/telco/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments