How srsran/srsran_4g works
srsRAN is a software-radio suite for 4G, comprising a UE, an eNodeB, and a lightweight EPC; the README also notes prototype 5G features in the UE. The tree shows the UE, eNodeB, shared protocol/PHY libraries, and some gNB code, but not an EPC implementation. The graph summarizes the principal radio-access stages and major documented products. Wiring is conservative: source excerpts support UE startup, UE PHY control, eNodeB MAC configuration, and gNB cell configuration; other subsystem links reflect the exposed architecture, not inspected call sites.
Main entry points: main.cc srsUE · phy_controller.cc UE RRC · pdu.h MAC scheduler · rrc.h Protocol encoding
Components 19
Radio access stack
- UE RRC
srsue/src/stack/rrc/phy_controller.cc - eNB RRC
srsenb/src/stack/rrc/mac_controller.cc - MAC scheduler
lib/include/srsran/mac/pdu.h - RLC
lib/include/srsran/rlc/rlc.h - PDCP
lib/include/srsran/upper/pdcp.h - NAS and RRC
lib/include/srsran/interfaces/ue_nas_interfaces.h - gNB DU config
srsgnb/src/stack/rrc/rrc_nr_du_manager.cc - NGAP sessions
srsgnb/src/stack/ngap/ngap_ue_bearer_manager.cc
Shared libraries
- UE PHY
lib/include/srsran/phy/ue/ue_phy.h - UE radio
lib/include/srsran/radio/radio.h - PHY processing
lib/include/srsran/phy/gnb/gnb_dl.h - Protocol encoding
lib/include/srsran/asn1/rrc.h - Bearer mapping
lib/src/common/bearer_manager.cc - GTP-U
lib/src/gtpu/gtpu.cc - RF interface
lib/include/srsran/radio/radio.h
Core network
- srsEPC
Other components
- Operator
Connections 18
- Operator → srsUE: starts
- Operator → srsENB: starts
- srsUE → UE RRC: configures
- UE RRC → UE PHY: configures
- UE PHY → UE radio: uses
- eNB RRC → MAC scheduler: updates
- UE RRC → Protocol encoding: encodes signaling
- eNB RRC → Protocol encoding: encodes signaling
- srsUE → NAS and RRC: runs protocol stack
- NAS and RRC → PDCP: uses
- PDCP → RLC: transfers data
- RLC → MAC scheduler: transfers data
- MAC scheduler → PHY processing: passes transport data
- PHY processing → RF interface: sends and receives
- srsENB → Bearer mapping: manages bearers
- NGAP sessions → GTP-U: adds tunnels
- srsEPC → GTP-U: exchanges user data
- gNB DU config → Protocol encoding: packs cell signaling