Add RRC.ConnMean metric
Implement RRC.ConnMean (3GPP TS 28.552 §5.1.1.4.1): mean number of UEs in
RRC-CONNECTED state over the granularity period, computed as a time-average
of periodic samples.
- ran_func_kpm.c: append RRC.ConnMean to kpm_node_meas_cu[] and
kpm_node_meas_gnb[].
- ran_func_kpm_subs.h: add rrc_conn_count_sum and rrc_conn_count_samples to
e2_node_level_stats_t for per-report start/end snapshots.
- ran_func_kpm_subs.c: add fill_RRC_ConnMean(); snapshots the live RRC
counters into node_stats[1], computes the mean as Δsum/Δsamples over the
granularity window, returns a real-valued record (noLabel); extend
cp_node_level_stats() to copy the two new fields; add dispatch entry to
lst_measure[].
- nr_rrc_defs.h: add rrc_conn_count_sum and rrc_conn_count_samples to
gNB_RRC_INST.
- rrc_gNB.c: add nr_rrc_sample_conn_count(); it samples the connected-UE
count and accumulates it into the cumulative counters, invoked from the
existing stats timer in the RRC task loop. It is always compiled: counting
is harmless when the E2 agent is disabled, and it leaves the timer setup
and write_rrc_stats() untouched.
Advertised by CU and monolithic gNB node types.
Signed-off-by:
Noemi Giustini <giustini.n@northeastern.edu>
Showing
Please register or sign in to comment