Hello ns-developers,
I'm Nipuna Dulara, working this GSoC on an energy consumption framework for the 5G-LENA NR module, mentored by the CTTC OpenSim team (Biljana, Katerina and Joao). I'd like to ask for review of the first merge request, which is now ready.
About the project
5G-LENA models NR throughput and latency in detail, but until now it had no way to answer "how much power does this cost?". The project adds a standards-based energy layer so users can do per-device energy accounting and 3GPP power-saving evaluation directly in ns-3:
ns3::energy framework as DeviceEnergyModels.The models are validated against real hardware power traces (base-station and UE), matching measured shape and averages closely.
What to review now
SlotEnergyStats trace source on NrGnbPhy (~15 lines in GenerateAllocationStatistics) reporting the slot's used symbols split by direction (DL/UL data and control, with DL REG counts). The existing SlotDataStats/SlotCtrlStats traces are untouched; this is what lets the gNB charge UL reception at P_UL and PDCCH at P_DL rather than billing everything as DL/idle. https://gitlab.com/cttc-lena/nr/-/merge_requests/408The remaining two MRs are still in draft and i'd like to invite you all to review them as well:
NrEnergyHelper, a one-call installer, plus a self-contained example. https://gitlab.com/cttc-lena/nr/-/merge_requests/417Thanks very much for your time. Feedback on the design (especially the core-PHY trace and the 3GPP mapping) is very welcome.
Best regards, Nipuna Dulara University of Moratuwa GSoC 2026 - ns-3 / 5G-LENA (CTTC)