How finlater/5g-lena works
5G-LENA is an ns-3 plug-in for simulating 3GPP NR non-standalone cellular networks. A user configures a scenario and spectrum, installs and attaches UE/gNB devices, and runs the simulation; the model represents radio access, QoS and carrier management, channel behavior, and EPC connectivity. Helpers also expose traffic generation, radio-environment maps, and trace/statistics collection. The graph uses the README and supplied source index/excerpts; unsampled runtime relationships are omitted or marked unverified rather than inferred.
Main entry points: nr-helper.cc NR setup helper · nr-gnb-net-device.cc gNB device and PHY · nr-channel-helper.cc Channel configuration · nr-ue-net-device.cc UE device and PHY
Components 21
Scenario setup
- NR setup helper
helper/nr-helper.cc - Carrier and BWP setup
helper/cc-bwp-helper.h - Node scenarios
helper/grid-scenario-helper.cc
NR radio access
- gNB device and PHY
model/nr-gnb-net-device.cc - UE device and PHY
model/nr-ue-net-device.cc - MAC scheduling
model/nr-mac-scheduler.cc - Beamforming
model/realistic-beamforming-algorithm.cc - Handover
model/nr-handover-algorithm.cc
QoS and core
- RRC control
model/nr-gnb-rrc.cc - Carrier management
model/nr-gnb-component-carrier-manager.h - BWP selection
model/bwp-manager-algorithm.cc - QoS flows
model/nr-qos-flow.cc - EPC connectivity
helper/nr-epc-helper.h
Radio channel
- Channel configuration
helper/nr-channel-helper.cc - NYU channel model
utils/channels/nyu/nyu-channel-model.cc - Propagation loss
utils/channels/nyu/nyu-propagation-loss-model.cc
Traffic and observation
- Traffic generators
utils/traffic-generators/model/traffic-generator.cc - Radio environment map
helper/nr-radio-environment-map-helper.cc - Trace and statistics
helper/nr-phy-rx-trace.cc
Other components
- Simulation user
- ns-3 simulator
Connections 21
- Simulation user → NR setup helper: configures
- NR setup helper → ns-3 simulator: plugs into
README.md - NR setup helper → Carrier and BWP setup: uses setup
- NR setup helper → gNB device and PHY: installs
helper/nr-helper.cc - NR setup helper → UE device and PHY: installs
helper/nr-helper.cc - NR setup helper → EPC connectivity: uses helper
helper/nr-helper.cc - NR setup helper → Channel configuration: uses helper
helper/nr-helper.cc - NR setup helper → Trace and statistics: enables traces
helper/nr-helper.cc - Node scenarios → NR setup helper: supplies scenario
- gNB device and PHY → MAC scheduling: dispatches scheduling
- UE device and PHY → gNB device and PHY: attaches
- gNB device and PHY → RRC control: uses control
- RRC control → Carrier management: configures carriers
- Carrier management → BWP selection: selects BWP
- BWP selection → QoS flows: maps flow class
- Channel configuration → Carrier and BWP setup: reads setup
- Channel configuration → NYU channel model: configures model
- NYU channel model → Propagation loss: combines with
- Traffic generators → UE device and PHY: generates offered load
- Radio environment map → gNB device and PHY: measures radio field
- Trace and statistics → Simulation user: reports results