How souhailbourhim/openairinterface5g works
Duranta OpenAirInterface is a 4G/5G RAN software stack for simulation, prototyping, and COTS deployments. The principal runtime path starts at a gNB/eNB or UE executable, configures a radio node, and processes radio traffic through PHY and cellular control/user-plane layers toward peer network functions. Separate branches provide radio/fronthaul and MAC-PHY interfaces, simulation, and operational utilities. The tree and README establish these major subsystems, while sampled source shows selected interfaces and handlers; many runtime links are therefore marked unverified rather than asserted as direct calls.
Main entry points: nr-gnb.c RAN executables · PHY LTE/NR PHY · NR_MAC_gNB MAC and scheduling · nr_rlc_ue_manager.c RLC
Components 23
RAN entry points
- RAN executables
executables/nr-gnb.c - Configuration
common/config/config_userapi.c
Radio and PHY
- LTE/NR PHY
openair1/PHY - Channel pipeline
openair1/SIMULATION/TOOLS/channel_pipeline.c - Radio drivers
radio - 7.2x fronthaul
fronthaul/oru/oru_fh.c
Cellular protocols
- MAC and scheduling
openair2/LAYER2/NR_MAC_gNB - RLC
openair2/LAYER2/nr_rlc/nr_rlc_ue_manager.c - PDCP
openair2/LAYER2/nr_pdcp/nr_pdcp_ue_manager.c - RRC
openair2/RRC/NR - NAS
openair3/NAS
Network interfaces
- NGAP
openair3/NGAP/ngap_gNB_handlers.c - S1AP
openair3/S1AP/s1ap_eNB_handlers.c - X2AP
openair2/X2AP/x2ap_eNB_handler.c - F1AP
openair2/F1AP/f1ap_handlers.c - FAPI / nFAPI
nfapi/oai_integration/nfapi.c
Runtime utilities
- Intertask messaging
common/utils/ocp_itti/intertask_interface.cpp - Tracing and logs
common/utils/T/tracer - Web control
common/utils/websrv/websrv.c - Traffic generator
openair2/UTIL/OTG/main.c - Simulation
openair1/SIMULATION/TOOLS
Other components
- Operator
- AMF / core
Connections 24
- Operator → RAN executables: starts
- Operator → Configuration: configures
- RAN executables → Configuration: loads settings
- RAN executables → LTE/NR PHY: initializes
- RAN executables → MAC and scheduling: initializes
- LTE/NR PHY → MAC and scheduling: exchanges radio data
- LTE/NR PHY → Radio drivers: uses radio
- LTE/NR PHY → 7.2x fronthaul: uses fronthaul
- LTE/NR PHY → Channel pipeline: processes channel
openair1/SIMULATION/TOOLS/channel_pipeline.c - MAC and scheduling → RLC: passes traffic
- RLC → PDCP: passes traffic
- PDCP → RRC: serves control plane
- RRC → NAS: supports registration
- RAN executables → NGAP: hosts interface
- NGAP → AMF / core: signals
- RAN executables → S1AP: hosts interface
- RAN executables → X2AP: hosts interface
- RAN executables → F1AP: hosts interface
- MAC and scheduling → FAPI / nFAPI: uses MAC-PHY interface
- RAN executables → Intertask messaging: coordinates tasks
- RAN executables → Tracing and logs: emits traces
- Operator → Web control: controls
- Operator → Traffic generator: generates traffic
openair2/UTIL/OTG/main.c - Operator → Simulation: runs simulation