aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorsivasankari <Sivasankari.Theerthagiri@radisys.com>2016-12-08 17:15:17 +0530
committerHarald Welte <laforge@gnumonks.org>2016-12-09 12:05:43 +0000
commit5395073fff9870e82358721126062d501ea4ad31 (patch)
tree94d7f2feabef3140eb9179b1b3b8c7d2fd06692e /src/tbf.h
parentcc4214a4290a1d764d511b90beb48d55332b2bd1 (diff)
Add statistics in the ms and tbf level.
Adds DL throughput in show ms imsi <imsi_value>. Adds the number of coding schemes counter and rlc nacked counter at TBf level. Change-Id: Ia95b0404989b00db0e7ba416bc40d09ef41fde1c
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tbf.h b/src/tbf.h
index 1e98a24..5017d3e 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;