BEGINNERCHAPTER 01

What a mobile network is: radio, core and everything behind them

A phone sees one thing called the network. An engineer sees radio, a core and the systems behind it, and every cell can be healthy while the core is down

40 MINHOW MOBILE NETWORKS WORKUPDATED 2026-11-12
PREDICT

Every cell in a region shows green in the monitoring system, and the call-centre queue is full of customers with full signal bars and no service. What is the most likely place to look first?

A mobile network is three things stacked together. The radio access network is the cells that talk to phones over the air. The core network is the computers that decide who a phone is, whether it may connect, which address it gets and where its packets go. The systems behind are the subscriber database, the policy rules, charging and the tools the operator’s staff use to run it all. A subscriber meets only the first one, and calls the whole stack “the network”.

This chapter takes the three apart, using the 5G core in the course lab, and then shows the one idea that organises everything else: signalling and traffic travel on two separate paths. By the end you can name every one of the lab’s 14 services and say what its job is.

What “the network” means to two people

To a subscriber, the network is signal bars and whether the page loads. If the bars are full and the page does not load, the network is broken, and nobody asks which part.

To an engineer, “the network” is a chain of parts with different owners, different failure modes and different dashboards. Cells are measured by whether they are on air and how many phones they carry. The core is measured by how many registrations and sessions succeed. The systems behind are measured by whether a subscriber record can be read in a few milliseconds. A fault in any link looks the same to the subscriber: no service.

That gap is the first lesson. A mobile network reports health by part, and the customer reports it as a whole. Most of the work in this course is learning to map one onto the other.

Part one: the radio access network

The radio access network (RAN) is the cells. In 5G, a base station is called a gNB (the g is for next generation). It has antennas on a mast, radio equipment, and a link back to the core. A phone, which the standards call the user equipment (UE), searches for a cell, reads the network’s identity from what the cell broadcasts, and asks to connect over radio.

The RAN has two jobs. It carries bits between phone and core over a shared, unreliable radio channel. And it forwards the phone’s signalling messages to the core without understanding most of them. The next chapter covers cells and coverage in detail. For now, hold on to one point: the cell does not decide who may connect. It relays. The decisions are made in the core.

In the lab, the RAN is one service, gnb, a simulated cell from UERANSIM 3.2.6. The phone is a second simulated program, ue, that you start on demand. Radio between them is simulated over UDP on the air network (10.32.0.0/24). Nothing in the lab uses real spectrum.

The gNB’s first act after it starts is to introduce itself to the core. It opens an SCTP connection (a transport protocol built for signalling) to the AMF on port 38412 and sends an NG Setup Request. When the AMF answers, the gNB logs this line, which you will see in the lab:

[ngap] [info] NG Setup procedure is successful

Until that line appears, the cell is up and cannot carry any phone.

Part two: the core network

The core network is a set of programs. In a 5G standalone core each program is a network function (NF), and each has one job. The standard that defines them is 3GPP TS 23.501, the 5G system architecture. The lab runs Open5GS 2.7.2, an open-source implementation, with these functions:

Function Lab address What it does
AMF, access and mobility management function 10.33.0.5 Terminates the phone’s signalling (registration, authentication, where the phone is). Talks to the cell.
SMF, session management function 10.33.0.4 Sets up and tears down data sessions. Gives the phone its IP address and tells the UPF what to do.
UPF, user plane function 10.33.0.7 and 10.34.0.7 Carries the phone’s packets between the cell and the data network. The only core function in the traffic path.
AUSF, authentication server function 10.33.0.11 Checks the phone’s answer to the network’s authentication challenge, which proves the SIM holds the right key.
NSSF, network slice selection function 10.33.0.14 Chooses which network slice (a logically separate set of resources) serves the phone.
NRF, network repository function 10.33.0.10 The directory where functions register and find each other.
SCP, service communication proxy 10.33.0.200 The proxy every function-to-function request passes through.

Two kinds of connection tie these together. Between the cell and the core, 3GPP names the signalling link N2 (cell to AMF) and the traffic link N3 (cell to UPF). Between functions inside the core, requests are ordinary HTTP/2 calls over the lab’s core network (10.33.0.0/24) on port 7777. This arrangement is the service-based architecture: functions offer services to each other, rather than being wired together one pair at a time as in older generations. Chapter five of this module shows what each function replaced.

One function stands apart. The UPF talks to the SMF over a different protocol, PFCP (Packet Forwarding Control Protocol), and its packets to the cell travel inside GTP-U tunnels, which the lab’s SMF log shows on UDP port 2152. The UPF is where signalling stops and traffic starts.

Part three: the systems behind

The radio and the core are not enough. A network must know who its subscribers are, what each may do, what it costs, and whether it is working. Four groups of systems do that.

Subscriber data. The record for each SIM: its identity, its secret key, the number, the plan’s speed cap and which slices it may use. In the lab it lives in MongoDB (mongo, 10.33.0.2). The UDR (unified data repository, 10.33.0.20) is its front end, and the UDM (unified data management, 10.33.0.12) is the function other functions ask for subscriber data and for authentication material. Run scripts/subscriber.sh show 999700000000001 in the lab, after step 4, and you see the record, including a speed cap of 100 Mbit/s down and 50 Mbit/s up.

Policy. Rules about a session: speed limits, quality of service, what traffic may do. The PCF (policy control function, 10.33.0.13) holds them. The BSF (binding support function, 10.33.0.15) remembers which PCF serves which session, so a later request reaches the right one.

Charging. A live network meters what each subscriber uses and decides whether a prepaid balance still allows a session. The 5G standard has a charging function for this. The lab has none, so no balance is ever checked and nothing is billed. Treat that as a gap in the lab, not a feature of networks. A later chapter in module two covers charging.

Operations. The tools staff use to configure functions, collect alarms, count registrations and handle faults, and the business systems for billing and customer care. In the lab these are logs you read with docker compose logs and traces you open with Wireshark.

Together, the lab’s 14 default services map like this:

Part Services
Radio access gnb
Core, control (signalling) amf, smf, ausf, nssf, nrf, scp
Core, user plane (traffic) upf
Subscriber data udm, udr, mongo
Policy pcf, bsf
Not part of the network internet, a web server at 10.34.0.80 standing in for everything beyond the core

The phone, ue, is a fifteenth program and starts only when you ask. It is the subscriber’s device, outside the network.

Two paths: the control plane and the user plane

This is the idea that organises everything else. A phone does two different things with the network.

Signalling is conversation with the network: “I am here, this is my identity, prove it, here is the key check, you may register, open me a data session, here is your address.” These messages are small, they are rare compared with traffic, and the network must understand every one. This is the control plane.

Traffic is the subscriber’s own data: the web page, the video, the voice packets. The network does not read it. It moves it. This is the user plane.

TS 23.501 states the separation as a design principle. The two planes run on different functions, scale differently (a few signalling messages per session, millions of traffic packets), and fail differently. The figure draws both for the lab.

PhoneueCellgnbCore networkAMFSMFUPFNRF + SCPdirectory and proxyBehind the coreAUSF, UDM, UDR, mongoPCF, BSF, NSSFsubscriber data and policyInternet10.34.0.80radio(simulated)N2N3N4 (PFCP)N6control plane: signallinguser plane: traffic

Three things to read from the figure.

  1. The signalling goes to the AMF and the traffic goes to the UPF, from the same cell. The cell splits what it receives from the phone: signalling up the dashed path, data down the solid one. The phone’s registration messages (the standards call this signalling between phone and AMF N1) ride inside the cell’s N2 link; the cell relays them without decoding them.
  2. The AMF never sees the web page. If the AMF fails, traffic on an already-open session may not stop at once, because the packets do not pass through it, but no phone can register, move or open a session. If the UPF fails, signalling is perfect and no data flows.
  3. The SMF connects the planes. It is the control-plane function that tells the UPF, over N4, which tunnel belongs to which phone. A session is the agreement between them.

You will see both paths in a real capture in the lab, and again in the chapter on a call, a text and a data session.

Functions that find each other

Fourteen programs cannot work together by magic. Each must know where the others are, and addresses change when you scale or restart. The 5G core solves this with a directory, the NRF.

When a function starts, it sends the NRF a registration: its type, the services it offers and its address. After that it sends a heartbeat, a small update, at an interval the NRF sets. In the lab the interval is 10 seconds; the NRF log says [Heartbeat:10s]. If heartbeats stop, the NRF can mark the function unavailable.

When a function needs another, it does not carry a list of addresses. It asks. In the lab it asks through the SCP: the AMF sends a request to the SCP, the SCP asks the NRF which function offers the service, and then the SCP forwards the request. Your capture will show this: the AMF posts to /nausf-auth/v1/ue-authentications, and a moment later the SCP asks the NRF GET /nnrf-disc/v1/nf-instances?target-nf-type=AUSF&.... The name nausf-auth is the service the AUSF offers, and the NRF answers with the AUSF’s address.

Not every function registers. Of the lab’s 14 services, nine do: scp, ausf, udm, udr, pcf, nssf, bsf, amf and smf. The nrf is the directory itself, mongo is a database, internet is outside the network, gnb talks to the AMF over its own link, and the upf is known to the SMF through PFCP, with its own heartbeat. You count the nine in the lab.

The benefit is that functions can be added, replaced or restarted without editing everyone else’s configuration. The price is a new place to fail: if the directory or the proxy is down, functions that are individually healthy cannot find each other.

How it goes wrong

Because the network is a chain of parts, it fails by part, and each failure has its own symptom.

What fails What the subscriber sees What still works
A cell Signal drops in that area Every other cell and the whole core
The AMF (or the link to it) Full signal, no registration, no calls, no data on a new attach The cell’s radio; sessions already open may carry on for a while
The UPF Registered and connected, but nothing loads All signalling
The NRF or the SCP New requests fail between functions that are each healthy Existing sessions, until something needs a lookup
The subscriber database Registration fails for everyone, or only for those whose records cannot be read Radio and traffic for phones already registered

The Optus outage in the Why box has the same shape as the second and fourth rows at scale: a fault in the core, not at the cells. (Optus’s fault was in the routers of its IP core, not in 5G functions like these, but a customer saw the same thing.) The tools that catch it are not cell dashboards. They are registration success rate, session setup success rate and function heartbeats, read together with the radio view. That is what a shift lead like Ibukun checks first, and it is what Adaobi, a core engineer at Lumora Mobile, builds the dashboards for.

A further trap is waiting on the customer. A phone that cannot register tries again, and again. A core that has only recovered a moment ago can then receive every phone’s retry at once, which can knock it over a second time. Operators plan for this when they bring a core back.

What you do in the lab

The lab starts the 14 services, lists them against the table above, reads the directory’s registrations and the AMF’s view of them, switches the phone on and fetches a web page. Then, for everyone who cannot run the live core, it reads the same story from a recorded trace. The break stops the AMF while the cell is up and shows you a network with full signal and no service.

LAB Start a mobile network on one machine and break its core ~40 MIN
YOU NEEDDocker with Compose v2, about 2 GB of free disk and 2 GB of free memorySteps 1 to 6 and the break need a Linux kernel with SCTP (Linux distributions and Docker Desktop have it; some cloud sandboxes do not). Steps 7 to 9 need only Docker.The telecoms lab folder: clone the atlas-labs repository and cd into labs/telecoms, or use the GET THE LAB links

Run every command from labs/telecoms. Steps 1 to 6 use the live core. Steps 7 to 9 read traces/attach-and-browse.pcapng, a recording of the same run, and work on any machine with Docker. If your machine has no SCTP, go straight to step 7.

1. Start the network (live core).

docker compose up -d
sleep 30
docker compose logs gnb | grep "NG Setup"

The 20 to 30 seconds matter: the functions need that long to register with each other.

The last command prints [ngap] [debug] Sending NG Setup Request, then [ngap] [debug] NG Setup Response received and [ngap] [info] NG Setup procedure is successful, each with a timestamp that differs on your machine. That is the cell introducing itself to the AMF. If instead the gNB or the AMF restarts in a loop with “SCTP socket could not be created”, your kernel has no SCTP: use steps 7 to 9.

2. Map the services (live core).

docker compose ps --format 'table {{.Service}}\t{{.Image}}\t{{.Status}}'

On paper, write each of the 14 services next to one of: radio access, core control plane, user plane, subscriber data, policy, not part of the network. Use the table in “The systems behind”.

14 rows, all Up: amf ausf bsf gnb internet mongo nrf nssf pcf scp smf udm udr upf. The images are gradiant/open5gs:2.7.2 for the core functions, gradiant/ueransim:3.2.6 for gnb, mongo:6.0 and busybox:1.36. The “Up 39 seconds” times differ. Your mapping should match the table: gnb radio; amf smf ausf nssf nrf scp control; upf user plane; udm udr mongo subscriber data; pcf bsf policy; internet outside the network. There is no phone yet.

3. Watch the functions register (live core).

docker compose logs --no-log-prefix nrf | grep "NF registered"
Nine lines, one per function that registers, each ending [Heartbeat:10s]. For example [nrf] INFO: [afe3b3ca-de35-41f1-948e-5f5ac8bb5728] NF registered [Heartbeat:10s]. The timestamps and the ids in brackets are generated each run, so yours differ. Count them. Nine of the 14 services register; work out which five do not and why (answers in “Functions that find each other”). Leave the ids in a note: step 6 matches them to functions.

4. Switch the phone on (live core).

scripts/subscriber.sh add 999700000000001 465B5CE8B199B49FAA5F0A2EE238A6BC E8ED289DEBA952E4283B54E88E6183CA 2340000000001
docker compose --profile phone up -d ue
sleep 5
docker compose logs --no-log-prefix ue | grep -E "Registration is successful|TUN interface"

The first command stores the SIM’s identity and keys in the subscriber database. The chapter on the SIM explains them. If the phone starts before the functions have found each other, docker compose stop ue and start it again.

provisioned: 999700000000001, then two lines: [nas] [info] Initial Registration is successful and [app] [info] Connection setup for PDU session[1] is successful, TUN interface[uesimtun0, 10.45.0.2] is up. Timestamps differ. The address the core gave the phone is 10.45.0.2, the first in 10.45.0.0/16, and its data interface is uesimtun0.

5. Fetch a page through the network (live core).

docker compose exec ue curl --interface uesimtun0 http://10.34.0.80/
docker compose exec ue nr-cli imsi-999700000000001 -e ps-list
docker compose exec ue ping -I uesimtun0 -c 3 10.34.0.80
Hello from the data network. Your packets came through the UPF. Then the session listing, which reads state: PS-ACTIVE, session-type: IPv4, apn: internet, address: 10.45.0.2 and ambr: up[50000Kb/s] down[100000Kb/s]. That is the 50 and 100 Mbit/s cap from the subscriber record, enforced on the session. The ping shows three replies at roughly 9 to 10 ms and 0% packet loss; the times differ per run. Those packets went phone, cell, UPF, internet and back, and the AMF saw none of them.

6. See what the AMF found (live core).

docker compose logs --no-log-prefix amf | grep -E "SUCI|NF Instance setup|NF registered"
The AMF names the phone by its SUCI (the lab’s phone sends it with the null scheme, so the IMSI is readable in it; a live SIM conceals it), then lists the functions it discovered, each with an id. From the recorded run: [gmm] INFO: [suci-0-999-70-0000-0-0-0000000001] SUCI, then NF Instance setup [type:AUSF ...], NF registered [...] and NF Instance setup [type:UDM ...], NF Instance setup [type:PCF ...], NF Instance setup [type:NSSF ...], then NF registered [...] and NF Instance setup [type:SMF ...]. The UDM and SMF may repeat, and the AMF’s log may hold more matching lines than this (for example its own registration), so match the ids rather than counting lines. Ids and times differ, but each id the AMF names should be one of the nine you noted in step 3. The AMF learned about the AUSF, UDM, PCF, NSSF and SMF when it needed them, by asking, not from its own configuration.

7. Read the signalling as a ladder (everyone).

scripts/ladder.sh traces/attach-and-browse.pcapng

This prints one line per signalling message, with function names in place of addresses. A * after a destination means the request travelled through the SCP. The first column is seconds from the start of the recording.

51 lines, in order. The first ones: 8.058 gNB -> AMF NGAP/NAS-5GS InitialUEMessage, Registration request; 8.073 AMF -> AUSF* HTTP2 POST /nausf-auth/v1/ue-authentications; 8.108 AUSF -> UDM* ... generate-auth-data; 8.135 UDM -> UDR* ... authentication-subscription; 8.245 AMF -> gNB ... Authentication request; 8.659 AMF -> gNB ... InitialContextSetupRequest, Registration accept. Then 8.898 AMF -> SMF* POST /nsmf-pdusession/v1/sm-contexts, 9.127 SMF -> UPF PFCP PFCP Session Establishment Request, 9.186 AMF -> gNB ... PDUSessionResourceSetupRequest, DL NAS transport, PDU session establishment accept, and at 28.428 the deregistration that ends the session. Registration request to Registration accept takes 8.058 s to 8.659 s, about 0.6 s, mostly requests between functions on one machine. Mark each line control plane: everything here is signalling. The web page itself is not in this list.

8. Watch the directory at work (everyone).

scripts/ladder.sh traces/attach-and-browse.pcapng --all | grep -E "nnrf-disc|PATCH /nnrf-nfm" | cut -c1-150
Two kinds of line, all SCP -> NRF. Lookups, such as 8.079 SCP -> NRF HTTP2 GET /nnrf-disc/v1/nf-instances?target-nf-type=AUSF&requester-features=20&requester-nf-type=AMF&service-names=nausf-auth: eight in the recording, the first at 8.079 s, right after the AMF’s request to the AUSF at 8.073 s. And heartbeats, PATCH /nnrf-nfm/v1/nf-instances/<id>: 26 in the recording, nine different ids, each repeating about every 10 seconds (for example 5.464 s, 15.465 s). Those nine ids are the nine functions of step 3. The ladder in step 7 shows nearly 30 function-to-function requests, yet there are only eight lookups, so earlier answers are evidently reused.

9. See the user plane, inside and outside the tunnel (everyone).

scripts/ladder.sh traces/attach-and-browse.pcapng --filter 'icmp || http'
The web request and the pings appear twice each. At 22.146 s gNB -> UPF GTP <HTTP> GET / HTTP/1.1 is the packet inside the tunnel between cell and UPF; at 22.147 s phone 10.45.0.2 -> internet HTTP GET / HTTP/1.1 is the same request after the UPF removed the tunnel header, now with the phone’s own address. The reply returns at 22.165 s and 22.166 s. The pings follow at 24.337 s onward, each request answered 1 to 3 ms later in the recording. The ttl falls from 64 to 63 across the UPF, which routes the packet. None of the AMF, SMF or NRF appears: the user plane does not touch them.

Break the core while the cell stays up (live core). First note what works: from the phone, docker compose exec ue ping -I uesimtun0 -c 2 10.34.0.80 replies. Then stop the AMF and switch the phone off and on again, the way a customer would after losing service.

docker compose stop amf
docker compose ps gnb
docker compose --profile phone restart ue
sleep 10
docker compose logs --no-log-prefix --since 20s ue | grep -E "Initial Registration is successful|TUN interface"
docker compose exec ue curl --interface uesimtun0 --max-time 5 http://10.34.0.80/

Look for three things. The gnb container stays Up. The grep prints nothing: no registration succeeded. And curl fails at once with exit code 45, because the phone never got a data session, so its uesimtun0 interface does not exist. Now read why. The whole ue log (docker compose logs --no-log-prefix --since 30s ue) shows the phone sending its Initial Registration, waiting, and giving up when its registration timer runs out:

[nas] [debug] NAS timer[3510] expired [1]
[nas] [info] UE switches to state [MM-DEREGISTERED/ATTEMPTING-REGISTRATION]

The cell’s log (docker compose logs --no-log-prefix gnb | tail -4) says where the request died: [ngap] [error] AMF selection for UE[2] failed. Could not find a suitable AMF. The radio worked, the cell received the phone’s message, and there was no core to hand it to. The container is up and the core is not: the same shape as the Optus failure in miniature. (Timestamps and the UE numbers in brackets change from run to run.)

Now start the AMF again with docker compose start amf and watch docker compose logs gnb | grep "NG Setup" for 30 seconds. In this lab no second NG Setup line appears: the simulated cell (UERANSIM 3.2.6) does not reconnect to an AMF that went away, and keeps answering “Could not find a suitable AMF”. Restart the cell with docker compose restart gnb, see NG Setup procedure is successful, then restart the phone with docker compose --profile phone restart ue. It registers, and curl works again. Its address may differ from before (10.45.0.3 or later instead of 10.45.0.2): the SMF hands out a fresh one. A real base station retries its link to the core by itself; noticing that a piece of equipment does not is exactly what an operations team’s monitoring is for. Clean up with docker compose --profile phone down.

DECIDE

Lumora Mobile's monitoring shows every cell on air. The call-centre queue is filling with customers who have full signal and cannot call or load a page. Ibukun's shift has about ten minutes before the first complaints reach social media. You can start only one investigation at a time. Which do you start with?

READING
  1. DOC
    Review into the Optus outage of 8 November 2023 Australian Government, Department of Infrastructure, Transport, Regional Development, Communications and the Arts, 2024

    The government's page for the Bean review, with the final report of 21 March 2024. Read the executive summary for what failed and the 18 recommendations; skip the legal background. It is a real core failure behind working cells.

  2. DOC
    3GPP TS 23.501: System architecture for the 5G System (5GS) 3GPP

    The specification that defines the functions this chapter names. Read clause 4.2 for the architecture and the figures with the N1 to N6 reference points; skip the procedures until you need them. Read: clause 4.2 (architecture model and concepts).

  3. DOC
    Open5GS quickstart Open5GS project

    The core the lab runs, and how its functions are configured and started. Read it to see the same 5G functions installed as separate services, and what a minimal subscriber record needs.

  4. BOOK
    From GSM to LTE-Advanced Pro and 5G: An Introduction to Mobile Networks and Mobile Broadband Martin Sauter, 2021

    The standard plain-language textbook on how the radio and the core fit together across every generation. Read the opening overview of the network and the 5G chapter's account of the core; skip the radio detail until module two. Read: the introduction and the 5G chapter overview.

  5. DOC
    The Mobile Economy Africa 2026 GSMA, 2026

    The industry's yearly view of the region: subscribers, connections, coverage and investment. It tells you how large the networks you are learning about are. Take the latest edition's headline figures and skip the forecasts until you have a use for them.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Cells, towers and coverage →