mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
4 years ago
|
/**
|
||
8 years ago
|
*
|
||
4 years ago
|
* \section COPYRIGHT
|
||
8 years ago
|
*
|
||
4 years ago
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
8 years ago
|
*
|
||
4 years ago
|
* By using this file, you agree to the terms and conditions set
|
||
|
* forth in the LICENSE file which can be found at the top level of
|
||
|
* the distribution.
|
||
8 years ago
|
*
|
||
|
*/
|
||
|
|
||
4 years ago
|
#ifndef SRSRAN_RLC_METRICS_H
|
||
|
#define SRSRAN_RLC_METRICS_H
|
||
8 years ago
|
|
||
4 years ago
|
#include "srsran/common/common.h"
|
||
4 years ago
|
#include <iostream>
|
||
8 years ago
|
|
||
4 years ago
|
namespace srsran {
|
||
8 years ago
|
|
||
5 years ago
|
typedef struct {
|
||
4 years ago
|
// SDU metrics
|
||
5 years ago
|
uint32_t num_tx_sdus;
|
||
|
uint32_t num_rx_sdus;
|
||
4 years ago
|
uint64_t num_tx_sdu_bytes;
|
||
|
uint64_t num_rx_sdu_bytes;
|
||
|
uint32_t num_lost_sdus; //< Count dropped SDUs at Tx due to bearer inactivity or empty buffer
|
||
4 years ago
|
uint64_t rx_latency_ms; //< Average time in ms from first RLC segment to full SDU
|
||
4 years ago
|
|
||
|
// PDU metrics
|
||
5 years ago
|
uint32_t num_tx_pdus;
|
||
|
uint32_t num_rx_pdus;
|
||
4 years ago
|
uint64_t num_tx_pdu_bytes;
|
||
|
uint64_t num_rx_pdu_bytes;
|
||
4 years ago
|
uint32_t num_lost_pdus; //< Lost PDUs registered at Rx
|
||
4 years ago
|
|
||
|
// misc metrics
|
||
|
uint32_t rx_buffered_bytes; //< sum of payload of PDUs buffered in rx_window
|
||
5 years ago
|
} rlc_bearer_metrics_t;
|
||
|
|
||
|
typedef struct {
|
||
4 years ago
|
rlc_bearer_metrics_t bearer[SRSRAN_N_RADIO_BEARERS];
|
||
|
rlc_bearer_metrics_t mrb_bearer[SRSRAN_N_MCH_LCIDS];
|
||
5 years ago
|
} rlc_metrics_t;
|
||
8 years ago
|
|
||
4 years ago
|
} // namespace srsran
|
||
8 years ago
|
|
||
4 years ago
|
#endif // SRSRAN_RLC_METRICS_H
|