From 5395073fff9870e82358721126062d501ea4ad31 Mon Sep 17 00:00:00 2001 From: sivasankari Date: Thu, 8 Dec 2016 17:15:17 +0530 Subject: Add statistics in the ms and tbf level. Adds DL throughput in show ms imsi . Adds the number of coding schemes counter and rlc nacked counter at TBf level. Change-Id: Ia95b0404989b00db0e7ba416bc40d09ef41fde1c --- src/tbf.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'src/tbf.h') diff --git a/src/tbf.h b/src/tbf.h index 1e98a24b..5017d3e8 100644 --- a/src/tbf.h +++ b/src/tbf.h @@ -79,6 +79,29 @@ enum gprs_rlcmac_tbf_direction { GPRS_RLCMAC_UL_TBF }; +enum tbf_counters { + TBF_CTR_RLC_NACKED, +}; + +enum tbf_gprs_counters { + TBF_CTR_GPRS_DL_CS1, + TBF_CTR_GPRS_DL_CS2, + TBF_CTR_GPRS_DL_CS3, + TBF_CTR_GPRS_DL_CS4, +}; + +enum tbf_egprs_counters { + TBF_CTR_EGPRS_DL_MCS1, + TBF_CTR_EGPRS_DL_MCS2, + TBF_CTR_EGPRS_DL_MCS3, + TBF_CTR_EGPRS_DL_MCS4, + TBF_CTR_EGPRS_DL_MCS5, + TBF_CTR_EGPRS_DL_MCS6, + TBF_CTR_EGPRS_DL_MCS7, + TBF_CTR_EGPRS_DL_MCS8, + TBF_CTR_EGPRS_DL_MCS9, +}; + #define GPRS_RLCMAC_FLAG_CCCH 0 /* assignment on CCCH */ #define GPRS_RLCMAC_FLAG_PACCH 1 /* assignment on PACCH */ #define GPRS_RLCMAC_FLAG_UL_DATA 2 /* uplink data received */ @@ -225,6 +248,8 @@ struct gprs_rlcmac_tbf { uint8_t m_tfi; time_t m_created_ts; + struct rate_ctr_group *m_ctrs; + protected: gprs_rlcmac_bts *bts_data() const; @@ -399,6 +424,7 @@ struct gprs_rlcmac_dl_tbf : public gprs_rlcmac_tbf { struct BandWidth { struct timeval dl_bw_tv; /* timestamp for dl bw calculation */ uint32_t dl_bw_octets; /* number of octets since bw_tv */ + uint32_t dl_throughput; /* throughput to be displayed in stats */ struct timeval dl_loss_tv; /* timestamp for loss calculation */ uint16_t dl_loss_lost; /* sum of lost packets */ @@ -407,6 +433,9 @@ struct gprs_rlcmac_dl_tbf : public gprs_rlcmac_tbf { BandWidth(); } m_bw; + struct rate_ctr_group *m_dl_gprs_ctrs; + struct rate_ctr_group *m_dl_egprs_ctrs; + protected: struct ana_result { unsigned received_packets; -- cgit v1.2.3