2021-02-15 04:45:29 -08:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* \section COPYRIGHT
|
|
|
|
*
|
2021-03-19 03:45:56 -07:00
|
|
|
* Copyright 2013-2021 Software Radio Systems Limited
|
2021-02-15 04:45:29 -08:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-03-19 03:45:56 -07:00
|
|
|
#ifndef SRSRAN_PDCP_METRICS_H
|
|
|
|
#define SRSRAN_PDCP_METRICS_H
|
2021-02-15 04:45:29 -08:00
|
|
|
|
2021-03-19 03:45:56 -07:00
|
|
|
#include "srsran/common/common.h"
|
2021-02-15 04:45:29 -08:00
|
|
|
#include <iostream>
|
|
|
|
|
2021-03-19 03:45:56 -07:00
|
|
|
namespace srsran {
|
2021-02-15 04:45:29 -08:00
|
|
|
|
|
|
|
typedef struct {
|
2021-02-15 05:20:44 -08:00
|
|
|
// PDU metrics
|
|
|
|
uint32_t num_tx_pdus;
|
|
|
|
uint32_t num_rx_pdus;
|
|
|
|
uint64_t num_tx_pdu_bytes;
|
|
|
|
uint64_t num_rx_pdu_bytes;
|
|
|
|
|
2021-02-15 04:45:29 -08:00
|
|
|
// 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 {
|
2021-03-19 03:45:56 -07:00
|
|
|
pdcp_bearer_metrics_t bearer[SRSRAN_N_RADIO_BEARERS];
|
2021-02-15 04:45:29 -08:00
|
|
|
} pdcp_metrics_t;
|
|
|
|
|
2021-03-19 03:45:56 -07:00
|
|
|
} // namespace srsran
|
2021-02-15 04:45:29 -08:00
|
|
|
|
2021-03-19 03:45:56 -07:00
|
|
|
#endif // SRSRAN_RLC_METRICS_H
|