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.
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
4 years ago
|
/**
|
||
|
*
|
||
|
* \section COPYRIGHT
|
||
|
*
|
||
4 years ago
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
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.
|
||
|
*
|
||
|
*/
|
||
|
|
||
4 years ago
|
#ifndef SRSRAN_PDCP_METRICS_H
|
||
|
#define SRSRAN_PDCP_METRICS_H
|
||
4 years ago
|
|
||
4 years ago
|
#include "srsran/common/common.h"
|
||
4 years ago
|
#include <iostream>
|
||
|
|
||
4 years ago
|
namespace srsran {
|
||
4 years ago
|
|
||
|
typedef struct {
|
||
4 years ago
|
// PDU metrics
|
||
|
uint32_t num_tx_pdus;
|
||
|
uint32_t num_rx_pdus;
|
||
|
uint64_t num_tx_pdu_bytes;
|
||
|
uint64_t num_rx_pdu_bytes;
|
||
|
|
||
4 years ago
|
// ACK specific metrics (requires RLC AM)
|
||
|
uint64_t num_tx_acked_bytes; //< Cumulative number of bytes that the PDCP knows to be acknowledged
|
||
|
uint64_t tx_notification_latency_ms; //< Average time in ms from PDU delivery to RLC to ACK notification from RLC
|
||
|
uint32_t num_tx_buffered_pdus; //< Number of PDUs waiting for ACK
|
||
|
uint32_t num_tx_buffered_pdus_bytes; //< Number of bytes of PDUs waiting for ACK
|
||
|
} pdcp_bearer_metrics_t;
|
||
|
|
||
|
typedef struct {
|
||
4 years ago
|
pdcp_bearer_metrics_t bearer[SRSRAN_N_RADIO_BEARERS];
|
||
4 years ago
|
} pdcp_metrics_t;
|
||
|
|
||
4 years ago
|
} // namespace srsran
|
||
4 years ago
|
|
||
4 years ago
|
#endif // SRSRAN_RLC_METRICS_H
|