Mobility Network Mastery Plan (4G + 5G)
Mobility Network Mastery Plan (4G + 5G)
BLUF
A single step-by-step path that fuses three things you already have — theory docs, CellScope (passive/real-world observation), and the Open5GS/srsRAN mobility lab (controlled full-chain) — into one learning journey. Follow it stage by stage: each stage says what to learn, what to do with CellScope, what to do in the lab, the 4G vs 5G differences, and the evidence that proves you understood it. Aligned to 0. Methodology.md Phases 0–4B.
Guiding principle (from the methodology): lab first, passive before active, authorization defines scope. Real networks = passive only. Full-chain traffic understanding happens in your lab where you own the keys.
Equipment baseline (annotated 2026-07-01)
| Item | Status | Role in this plan |
|---|---|---|
| Laptop (Linux, UHD + SoapySDR installed) | ✅ Have | Lab host, captures, CellScope |
| Open5GS + UERANSIM software lab | ✅ Built | Stages 1, 6 — full core chain, no RF |
| srsRAN_Project source | ⚠️ On box, build it | Stage 5 — real RAN over LibreSDR |
| Pixel 9 (rooted) | ✅ Have | Stage 2 — app-layer UE (Frida/Burp), CellScope packetflow |
| LibreSDR B210mini (AD9361, 70 MHz–6 GHz) | ✅ Have | Stages 3, 5 — passive RX + active lab gNB/eNB |
| FlipperZero5G | ✅ Have | Stage 3 — portable cell recon |
| Faraday enclosure | ✅ Built | Stage 5 — mandatory before any TX |
| USB 3.0 hub + SDR cable | ✅ Have | SDR stability |
| Band antennas (700 MHz / 1.9 / 3.5 GHz) | ✅ Have | Stage 5 RF |
| Attenuators + SMA cabling | ✅ Have | Stage 5 conducted-mode RF |
| Programmable lab SIMs (sysmoISIM) + reader | 🔜 Incoming | Stage 5 — real UE attach to own core |
| Quectel RM500Q-GL (SDX55/X55) + M.2→USB3 carrier + antennas + heatsink | 🛒 Decided — buy | Stage 4 — clean DIAG protocol source (chosen over Pixel 5) |
| USRP X410 (mmWave) | ⏭️ Skip | Out of scope (Sub-6 only) |
Equipment decision: RM500Q-GL over Pixel 5
Chosen as the modem-side DIAG source because it beats a phone for protocol research:
- Qualcomm DIAG exposed directly over USB serial — no bootloader/root fight.
- AT-command band/mode locking (
AT+QNWPREFCFG,AT+QCFG) — pin band/ARFCN/NSA-vs-SA for controlled tests (huge for MBX-13/14 mobility & fallback). - Dual-role UE: real AT&T SIM → live passive DIAG (AL1); lab SIM → attach to own srsRAN cell (AL4).
- X55 = more NR bands than Pixel 5's X52. Covers AT&T n5 / n77 + LTE B2/B4/B5/B12/B14/B66.
- Feeds CellScope's existing
nasdiag_parsepipeline (QCSuper/SCAT → GSMTAP → tshark) identically to a phone. - Loses only the Android app layer — but the Pixel 9 already covers that. Clean division of labor.
- Caveats: mmWave n260 not supported (fine, Sub-6 only); AT&T may gate VoLTE/IMS to allowlisted IMEIs (data + protocol observation is fine). Confirm exact
RM500Q-GLsupport string in QCSuper + SCAT device lists before buying.
Add-ons to buy with the module: M.2 Key-B→USB 3.0 carrier (with nano-SIM slot), 4× MHF4/u.FL→SMA pigtails + Sub-6 antennas, small heatsink/fan. ~$185–290 all-in.
The three-layer model
Everything in this plan sits in one of three layers. Understanding the network = being able to move a single event across all three.
LEARN OBSERVE (real, passive) CONTROL (lab, full visibility)
theory docs → CellScope + Pixel + LibreSDR → Open5GS + srsRAN + LibreSDR + Faraday
(why) (what a real network exposes) (see every hop, own the keys)
| Layer | Tooling | Access level | What you can see |
|---|---|---|---|
| Learn | Theory docs, CellScope source code | — | Concepts, PHY/protocol structure |
| Observe | CellScope, Pixel 9, RM500Q-GL DIAG, LibreSDR (RX) | AL0–AL1 | Broadcast RF (MIB/SIB), app traffic, modem NAS/RRC view |
| Control | Open5GS, UERANSIM, srsRAN, LibreSDR (TX) | AL4 | The entire UE→RAN→transport→core→DN chain |
Training requirements (skills matrix)
Acquire these across the stages — not all upfront. ✅ = a CellScope module teaches it by example.
| Skill area | 4G | 5G | Where you learn it |
|---|---|---|---|
| SDR/IQ basics, spectrum, sample rates | — | — | Stage 3; CellScope usrp.py/soapy.py |
| Downlink PHY acquisition (PSS/SSS) | ✅ cellsearch.py | ✅ nrcellsearch.py | Stage 3 (read the code) |
| Broadcast decode (MIB → SIB1) | ✅ sib1.py, pbch/pdcch/pdsch/turbo | SSB/MIB | Stage 3 |
| Identity (IMSI/GUTI vs SUPI/SUCI/5G-GUTI) | Theory P1 | Theory P3 | Stages 1, 4 |
| Authentication (EPS-AKA vs 5G-AKA) | Phase3_RRC_NAS | Phase4_5G | Stages 1, 4, 5 |
| Ciphering/integrity (EEA/EIA vs NEA/NIA) | " | " | Stages 4, 5 |
| RRC states + mobility (handover/reselection) | 01_4g_lte_fundamentals | 03_5g_sa_architecture | Stages 4, 5 |
| Control plane: S1AP/NGAP, NAS | ✅ nasdiag* | ✅ nasdiag* | Stages 1, 4 |
| Core: EPC vs 5GC NFs | 04_lab_4g_epc | 06_lab_5g_sa | Stage 1 |
| User plane: GTP-U, PFCP | Phase4_Core_GTP, TP-04 | " | Stages 1, 6 |
| 5G SBI (HTTP2/JSON), NRF, slicing | — | 03, TP-03/06 | Stage 6 |
| Wireshark telecom filters | ✅ | ✅ | every stage |
The step-by-step journey
Each stage: Learn → Observe (CellScope) → Control (lab) → Evidence. Do 4G and 5G tracks in parallel within each stage.
Stage 0 — Orientation (no hardware)
- Learn:
0. Methodology.md,Theory_Macro_Overall.md,Theory_Threat_Model.md. Skimopen5gs_lab/01_4g_lte_fundamentals+03_5g_sa_architecture. - Output: you can draw the UE→RAN→transport→core→DN chain and name the interfaces (4G: Uu, S1-MME, S1-U, S6a, S5/S8, SGi; 5G: Uu, N2, N3, N4, N6, N11/N12/N13, SBI).
- Evidence: one-page hand-drawn architecture for 4G and 5G with trust boundaries marked.
Stage 1 — Software core lab (Methodology Phase 1) — start here, $0
Goal: see the entire chain in Wireshark with zero RF, both generations.
- Learn:
04_lab_4g_epc_docker(EPC),06_lab_5g_sa_docker(5GC),TP-00_resources_and_setup. - Control (4G): Open5GS EPC + a 4G UE/RAN sim → clean attach. Capture S1AP + NAS-EPS + GTP-U.
- Control (5G): Open5GS 5GC + UERANSIM (SA only) → clean registration + PDU session. Capture NGAP + NAS-5GS + SBI + GTP-U.
- Wireshark filters:
s1ap,nas-eps,gtp(4G);ngap,nas-5gs,pfcp,http2,gtp(5G). - Evidence: MBX-09 (5G) + MBX-10 (4G) known-good traces. You can point to attach → auth → security mode → session in the pcap.
- Milestone: "I can trace one UE from registration to a data packet leaving the UPF/PGW."
Stage 2 — Subscriber edge (Methodology Phase 2)
Goal: what the handset exposes, app-layer trust.
- Learn:
Phase2_UE_Android_SIM,MBX-02_08_App_Interception_Toolkit. - Observe: Pixel 9 baseline (MBX-01); CellScope
packetflowfor live IP-flow/destinations; Frida+Burp app MITM (MBX-02/08); CellScopephonemodemfor the network's-eye cell view. - Evidence: app exposure map, cert-pinning status per app, IP-flow capture.
Stage 3 — Passive RF & broadcast decode (Methodology Phase 3A)
Goal: read the air interface the way a real network lets you — and learn the PHY from CellScope's code.
- Learn (by reading code):
cellsearch.py(LTE PSS/SSS),nrcellsearch.py(5G SSB), then the LTE broadcast chainpbch.py → pdcch.py → pdsch.py → turbo.py → sib1.py. This is the DL PHY curriculum. - Observe: LibreSDR RX + CellScope multi-band sweep → detect real cells, decode SIB1 (PLMN/TAC/CellID) passively. FlipperZero5G for quick field recon. NetMonster/CellMapper for ground-truth (MBX-04/05).
- 4G vs 5G: LTE SIB1 fully decoded by CellScope; 5G = SSB/MIB detection + identity.
- Evidence: serving + neighbor cell inventory (PCI/TAC/band/PLMN) that matches NetMonster; a passively decoded SIB1.
- Milestone: "I can identify any cell around me and read its broadcast identity without transmitting."
Stage 4 — Signaling deep-dive: the modem's own view (Methodology Phase 3B)
Goal: NAS/RRC identity, auth, ciphering — from inside the modem. This is where the RM500Q-GL comes in.
- Learn:
Phase3_RRC_NAS_Signaling,Research_NAS_Fuzzing, CellScopenasdiag.py+nasdiag_parse.py. - Observe: RM500Q-GL (or Pixel via SCAT) DIAG → QCSuper → GSMTAP → CellScope
nasdiag. Watch registration/attach, identity exposure, auth vectors, security-mode. - 4G vs 5G: compare EPS-AKA/EEA-EIA vs 5G-AKA/NEA-NIA; IMSI/GUTI vs SUCI/5G-GUTI (SUPI concealment).
- Evidence: MBX-06 privacy baseline by type/frequency; annotated NAS ladder for a full registration, 4G and 5G.
- Milestone: "I can read a registration handshake message-by-message and say which identities and ciphers were used."
Stage 5 — Controlled RF full-chain lab (Methodology bring-together, Waves 3) — needs lab SIMs + built srsRAN
Goal: real UE over your own cell, every hop visible at once.
- Learn:
Phase3_RF_Air_Interface,Support_Hardware_Lab_Equipment,05_lab_5g_nsaif doing NSA. - Control: In the Faraday cage — srsRAN eNB (4G) / gNB (5G) on LibreSDR + Open5GS core + lab SIM in the RM500Q-GL/Pixel. Prefer cabled + attenuators first, then radiated.
- MBX-12 controlled attach → MBX-15 identity/auth/ciphering → MBX-16 user plane → MBX-13/14 fallback & mobility (use RM500Q band-lock to force transitions).
- The payoff capture: one attach, simultaneously visible at three layers — srsRAN log (RAN), Wireshark on core interfaces (N2/N3/S1/GTP), and RM500Q DIAG via CellScope
nasdiag(modem). Correlate one event across all three (MBX-17). - Evidence: the three-layer correlated capture for both a 4G attach and a 5G registration.
- Milestone: "I can follow one UE event from the modem, across the air, through the RAN, into the core — in one synchronized capture."
Stage 6 — 5G-specific + core/interconnect (Methodology Phase 4A/4B)
Goal: the parts unique to 5G and the core trust boundaries.
- Learn:
Phase4_5G_Specific,Phase4_Core_Network_GTP,TP-03_sbi_security,TP-04_gtp_userplane,TP-06_slice_isolation. - Control: in the Open5GS lab — inspect SBI (HTTP2/JSON) between NFs, NRF discovery, network slicing isolation (S-NSSAI), PFCP (N4) session mgmt, GTP-U (N3) user plane. Compare 4G Diameter/GTP boundaries.
- Evidence: SBI call flow capture, slice-isolation test, GTP/PFCP trust-boundary notes.
- Milestone: "I understand what 5G SA adds over 4G at the core and can inspect each new interface."
Suggested cadence
| Week | Focus | Hardware needed |
|---|---|---|
| 1 | Stage 0 + Stage 1 (4G) | none |
| 2 | Stage 1 (5G) + Stage 2 | Pixel 9 |
| 3 | Stage 3 (read CellScope code + passive RX) | LibreSDR |
| 4 | Stage 4 (DIAG signaling) | RM500Q-GL arrives |
| 5 | Stage 5 (controlled RF, 4G then 5G) | lab SIMs + built srsRAN + Faraday |
| 6 | Stage 6 (5G core/interconnect) + review | none |
Definition of "I understand the mobility network"
You can take one subscriber event (e.g. a 5G registration) and:
- Explain why each step happens (theory),
- Observe it passively on a real network as far as encryption allows (CellScope + DIAG),
- Reproduce it in your lab and read every hop end-to-end (Open5GS + srsRAN),
- Compare the 4G and 5G versions of that same event.
Cross-references
- 0. Methodology · Master_Blackbox_UE_to_Node_Test_Plan · Support_Hardware_Lab_Equipment
- open5gs_lab/TP-00_resources_and_setup · open5gs_lab/17_test_plan_4g_5g_holistic · open5gs_lab/18_test_plan_mobility_site_to_core
- CellScope repo:
~/cellscope(backend/sources: cellsearch, nrcellsearch, sib1, nasdiag, packetflow, phonemodem)