Skip to content

5G System Architecture Overview

Before building a private 5G network, let's understand the overall architecture and basic concepts of 5G systems. This knowledge will help you understand the role of each component and the purpose of our subsequent configurations.

5G Network Overall Architecture

A 5G network consists of three main parts:

┌─────────────────────────────────────────────────────────────────────────┐
│                        5G Network Architecture                          │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│   ┌─────────┐        ┌──────────────────┐        ┌─────────────────┐   │
│   │   UE    │◄──────►│   RAN (gNB)      │◄──────►│   5G Core (5GC) │   │
│   │Terminal │ Radio  │ Radio Access Net │Backhaul│   Core Network  │   │
│   └─────────┘        └──────────────────┘        └─────────────────┘   │
│                                                           │             │
│                                                           ▼             │
│                                                    ┌─────────────┐     │
│                                                    │   Internet  │     │
│                                                    │   / DN      │     │
│                                                    └─────────────┘     │
└─────────────────────────────────────────────────────────────────────────┘
ComponentFull NameDescription
UEUser EquipmentEnd-user devices such as phones, CPE, IoT devices
RANRadio Access NetworkHandles wireless signal transmission and reception
gNBgNodeB5G base station, the core device of RAN
5GC5G Core5G core network for authentication, session management, etc.
DNData NetworkUsually refers to the Internet or enterprise networks

Radio Access Network (RAN) Architecture

Traditional vs Modern Base Stations

Traditional 4G base stations (eNodeB) are integrated devices, while 5G base stations (gNB) adopt a more flexible disaggregated architecture.

gNB Functional Decomposition

A 5G base station can be decomposed into the following logical units:

┌─────────────────────────────────────────────────────────────────┐
│                     gNB Functional Split                        │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│   ┌───────────┐     ┌───────────┐     ┌───────────┐            │
│   │    RU     │◄───►│    DU     │◄───►│    CU     │            │
│   │Radio Unit │     │Distributed│     │Centralized│            │
│   └───────────┘     │   Unit    │     │   Unit    │            │
│        │            └───────────┘     └───────────┘            │
│        ▼                 │                  │                   │
│   ┌─────────────────────────────────────────────────────────┐  │
│   │  • RF transmission     • Physical layer   • RRC protocol│  │
│   │  • ADC/DAC conversion  • MAC layer        • PDCP layer  │  │
│   │  • Power amp/filter    • Real-time sched  • UP/CP       │  │
│   └─────────────────────────────────────────────────────────┘  │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘
UnitFull NameFunction
RURadio UnitAlso called RRU/AAU, handles RF signal Tx/Rx, includes antennas, power amplifiers, filters
DUDistributed UnitProcesses time-critical physical layer and MAC layer functions
CUCentralized UnitHandles non-real-time higher layer protocols, can be split into CU-CP (Control Plane) and CU-UP (User Plane)

Why Disaggregate?

Functional separation allows:

  • Flexible deployment: CU can be centralized while DU/RU are distributed
  • Resource sharing: Multiple DUs can share one CU
  • Cost optimization: Choose different deployment options based on needs

Common Deployment Scenarios

Option 1: Traditional Integrated Deployment
┌─────────────────────────────────┐
│  RU + DU + CU (Integrated gNB)  │
└─────────────────────────────────┘

Option 2: RU Separation (Common for DAS)
┌──────┐      ┌──────────────┐
│  RU  │◄────►│   DU + CU    │
└──────┘      └──────────────┘

Option 3: Full Disaggregation (Large Networks)
┌──────┐      ┌──────┐      ┌──────┐
│  RU  │◄────►│  DU  │◄────►│  CU  │
└──────┘      └──────┘      └──────┘

5G Core (5GC) Architecture

The 5G core network adopts a Service-Based Architecture (SBA), where each network function provides services as microservices.

┌─────────────────────────────────────────────────────────────────────────┐
│                        5G Core Network Architecture                     │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│   ┌──────┐  ┌──────┐  ┌──────┐  ┌──────┐  ┌──────┐  ┌──────┐          │
│   │ NSSF │  │ AUSF │  │ UDM  │  │ PCF  │  │ NEF  │  │ NRF  │          │
│   └──┬───┘  └──┬───┘  └──┬───┘  └──┬───┘  └──┬───┘  └──┬───┘          │
│      │         │         │         │         │         │              │
│   ───┴─────────┴─────────┴─────────┴─────────┴─────────┴───────────   │
│                        Service Bus (SBI)                               │
│   ───┬─────────────────────────────────────────────────────┬───────   │
│      │                                                     │          │
│   ┌──┴───┐                                             ┌───┴──┐       │
│   │ AMF  │◄───────────────────────────────────────────►│ SMF  │       │
│   └──┬───┘                                             └───┬──┘       │
│      │  N2                                                 │ N4       │
│      ▼                                                     ▼          │
│   ┌──────┐                                             ┌──────┐       │
│   │ gNB  │◄───────────────────N3──────────────────────►│ UPF  │──►DN  │
│   └──────┘                                             └──────┘       │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

Core Network Functions

NFFull NameFunction
AMFAccess and Mobility Management FunctionAccess and mobility management, handles UE registration, authentication, mobility
SMFSession Management FunctionSession management, handles PDU session establishment, modification, release
UPFUser Plane FunctionUser plane function, responsible for packet forwarding, QoS handling
AUSFAuthentication Server FunctionAuthentication service, handles UE security authentication
UDMUnified Data ManagementUnified data management, stores user subscription data
PCFPolicy Control FunctionPolicy control, defines QoS and charging policies
NRFNetwork Repository FunctionNetwork repository function, service discovery and registration
NSSFNetwork Slice Selection FunctionNetwork slice selection
NEFNetwork Exposure FunctionNetwork capability exposure

Open5GS Implementation

In our lab, Open5GS implements most of the core network functions and can be used as a complete 5G SA core network.

5G Base Station Physical Forms

In the real world, you may have seen various forms of base station equipment. Understanding them helps you understand how 5G networks are deployed.

Macro Cell

Macro cells are the largest coverage base station type, usually installed on towers or building rooftops.

5G Macro Cell Tower
5G Macro Cell Tower - A typical 5G base station in Malta (Image: Wikimedia Commons, CC BY-SA 4.0)

Characteristics:

  • Coverage radius: 1-10 km
  • Transmit power: 20-40W (per antenna)
  • Application: Outdoor wide-area coverage
Deutsche Telekom 5G Site
Deutsche Telekom 5G AAU antenna close-up - Note the square Active Antenna Unit (Image: Wikimedia Commons, CC BY-SA 4.0)

Visual identification:

           ▲ Antenna
          /│\
         / │ \      ← Large antenna array (AAU)
        /  │  \
       /   │   \
      ─────┴─────

           │        ← Feeder/Fiber

      ┌────┴────┐
      │  BBU    │   ← Baseband Unit (usually in cabinet)
      └─────────┘

Common antenna forms:

  • Traditional antenna + RRU: Separate antenna and radio unit
  • AAU (Active Antenna Unit): Integrated antenna and radio unit, supports Massive MIMO

Small Cells

Small cells supplement macro cell coverage in hard-to-reach areas or add capacity in hotspot areas.

5G Small Cell Antennas
5G Small Cell antennas installed on a rooftop - Pittsburgh, USA (Image: Wikimedia Commons, CC BY 2.0)

Micro Cell

  • Coverage radius: 200m - 2km
  • Common in streets, commercial areas

Pico Cell

  • Coverage radius: 100-200m
  • Common in large indoor venues

Femto Cell

  • Coverage radius: 10-50m
  • For homes or small offices

Distributed Antenna System (DAS)

Large buildings often use indoor distributed antenna systems:

DAS System Architecture
Distributed Antenna System (DAS) architecture diagram - Multiple antenna nodes connected to a common source (Image: Wikimedia Commons, CC BY-SA 4.0)
                    ┌─────────┐
                    │ Source  │  ← Macro signal or small cell
                    └────┬────┘

                    ┌────┴────┐
                    │ Master  │
                    │  Unit   │
                    └────┬────┘

         ┌───────────────┼───────────────┐
         │               │               │
    ┌────┴────┐    ┌────┴────┐    ┌────┴────┐
    │ Remote  │    │ Remote  │    │ Remote  │
    │  Unit   │    │  Unit   │    │  Unit   │
    └────┬────┘    └────┬────┘    └────┬────┘
         │               │               │
        ⊕               ⊕               ⊕
     Antenna         Antenna         Antenna
Indoor DAS Antenna
Indoor DAS antenna mounted on ceiling - Samsung KX, London (Image: Wikimedia Commons, CC BY 2.0)

How to Identify 5G Base Stations

Visual characteristics:

  1. Antenna size: 5G antennas are usually larger than 4G due to Massive MIMO support
  2. AAU form factor: 5G AAUs are typically square or rectangular integrated devices
  3. Quantity: A single site may have multiple AAUs covering different sectors

Typical 5G AAU Size Comparison:

TypeTypical SizeFeatures
4G AntennaSmaller/lighterUsually passive antenna
Sub-6G 5G AAU~50×50×15 cmSupports 64T64R MIMO
mmWave 5G AAUSmallerHighly integrated, beamforming

5G Frequency Bands

Global 5G Spectrum Allocation

5G uses two main frequency ranges:

Frequency RangeSpectrumCharacteristics
FR1 (Sub-6GHz)410 MHz - 7125 MHzGood coverage, strong penetration, currently mainstream
FR2 (mmWave)24.25 GHz - 52.6 GHzLarge bandwidth, high speed, limited coverage

China 5G Spectrum Allocation

The spectrum allocation for China's three major operators:

OperatorBandFrequency RangeBandwidth
China Mobilen412515-2675 MHz160 MHz
China Mobilen794800-4900 MHz100 MHz
China Telecomn783400-3500 MHz100 MHz
China Unicomn783500-3600 MHz100 MHz
China Broadnetn28703-733 / 758-788 MHz30+30 MHz
China Broadnetn794900-4960 MHz60 MHz

Spectrum Usage Notice

These bands are allocated to operators by national radio management authorities. When conducting private 5G experiments, you must:

  1. Use a shielded box or extremely low power to avoid interfering with public networks
  2. Or apply for experimental frequency license
  3. Understand and comply with local radio regulations

Frequency Bands for Our Lab

In this lab environment, we typically use the following configuration:

ParameterRecommended ValueDescription
Bandn783.5 GHz band, widely supported by devices
Center Frequency3750 MHzCan be adjusted based on actual conditions
Bandwidth20 MHzRecommended for beginners, reduces hardware requirements

5G Network Types

SA vs NSA

There are two main 5G deployment modes:

NSA (Non-Standalone)

┌──────┐        ┌─────────┐
│  UE  │◄──────►│ 4G eNB  │◄──────►┌─────────┐
└──────┘        └─────────┘        │ 4G EPC  │
    ▲                              └─────────┘
    │           ┌─────────┐             ▲
    └──────────►│ 5G gNB  │◄────────────┘
                └─────────┘
  • Uses 4G core network (EPC)
  • 4G handles control plane, 5G assists user plane
  • Transitional solution, commonly used in early deployments

SA (Standalone)

┌──────┐        ┌─────────┐        ┌─────────┐
│  UE  │◄──────►│ 5G gNB  │◄──────►│ 5GC     │
└──────┘        └─────────┘        └─────────┘
  • Uses 5G core network (5GC)
  • Completely independent 5G network
  • Supports full 5G features, the ultimate goal

Our Lab Environment

This project builds a 5G SA network, including a complete 5G core network (Open5GS) and 5G base station (srsRAN gNB).

Public vs Private Networks

TypeCharacteristicsUse Cases
PublicOperator-deployed, public-facingPersonal communication, public Internet
PrivateEnterprise/organization-builtFactories, campuses, ports
HybridPublic-private coordinationScenarios requiring high security and reliability

Mapping to Our Lab

After understanding the above concepts, let's see how they map to our lab environment:

Real ComponentLab EquivalentDescription
5G UE (Phone)5G-capable phone / srsUECommercial phones need 5G SA mode enabled
RU/AAUSDR device (USRP B210)Handles RF signal Tx/Rx
DU + CUsrsRAN gNB softwareSoftware base station running on PC
5GCOpen5GSCore network running on PC/server
┌─────────────────── Our Lab Environment ──────────────────┐
│                                                          │
│   ┌───────┐     ┌──────────────────────────────┐        │
│   │ Phone │◄───►│ USRP B210 ──► srsRAN gNB     │        │
│   │ srsUE │     │   (RU)         (DU+CU)       │        │
│   └───────┘     └────────────────┬─────────────┘        │
│                                  │                       │
│                                  ▼                       │
│                          ┌─────────────┐                │
│                          │  Open5GS    │                │
│                          │   (5GC)     │                │
│                          └──────┬──────┘                │
│                                 │                        │
│                                 ▼                        │
│                          ┌─────────────┐                │
│                          │  Internet   │                │
│                          └─────────────┘                │
│                                                          │
└──────────────────────────────────────────────────────────┘

Next Steps

Now that you understand the basic architecture of 5G systems, you can start building:

Further Reading

If you want to dive deeper into 5G technical details, you can refer to:

  • 3GPP TS 23.501 - 5G System Architecture
  • 3GPP TS 38.300 - NR Overall Description
  • O-RAN Alliance Specifications - Open RAN standards

Released under the MIT License.