5G-LENA
nr-v3.0-29-g83cc959
The 5G/NR module for the ns-3 simulator
|
#include "nr-bearer-stats-calculator.h"
Public Member Functions | |
NrBearerStatsCalculator () | |
NrBearerStatsCalculator (std::string protocolType) | |
~NrBearerStatsCalculator () override | |
void | DlRxPdu (uint16_t cellId, uint64_t imsi, uint16_t rnti, uint8_t lcid, uint32_t packetSize, uint64_t delay) override |
void | DlTxPdu (uint16_t cellId, uint64_t imsi, uint16_t rnti, uint8_t lcid, uint32_t packetSize) override |
void | DoDispose () override |
uint32_t | GetDlCellId (uint64_t imsi, uint8_t lcid) |
double | GetDlDelay (uint64_t imsi, uint8_t lcid) |
std::vector< double > | GetDlDelayStats (uint64_t imsi, uint8_t lcid) |
std::string | GetDlOutputFilename () |
std::vector< double > | GetDlPduSizeStats (uint64_t imsi, uint8_t lcid) |
uint64_t | GetDlRxData (uint64_t imsi, uint8_t lcid) |
uint32_t | GetDlRxPackets (uint64_t imsi, uint8_t lcid) |
uint64_t | GetDlTxData (uint64_t imsi, uint8_t lcid) |
uint32_t | GetDlTxPackets (uint64_t imsi, uint8_t lcid) |
Time | GetEpoch () const |
Time | GetStartTime () const |
uint32_t | GetUlCellId (uint64_t imsi, uint8_t lcid) |
double | GetUlDelay (uint64_t imsi, uint8_t lcid) |
std::vector< double > | GetUlDelayStats (uint64_t imsi, uint8_t lcid) |
std::string | GetUlOutputFilename () |
std::vector< double > | GetUlPduSizeStats (uint64_t imsi, uint8_t lcid) |
uint64_t | GetUlRxData (uint64_t imsi, uint8_t lcid) |
uint32_t | GetUlRxPackets (uint64_t imsi, uint8_t lcid) |
uint64_t | GetUlTxData (uint64_t imsi, uint8_t lcid) |
uint32_t | GetUlTxPackets (uint64_t imsi, uint8_t lcid) |
void | SetEpoch (Time e) |
void | SetStartTime (Time t) |
void | UlRxPdu (uint16_t cellId, uint64_t imsi, uint16_t rnti, uint8_t lcid, uint32_t packetSize, uint64_t delay) override |
void | UlTxPdu (uint16_t cellId, uint64_t imsi, uint16_t rnti, uint8_t lcid, uint32_t packetSize) override |
Public Member Functions inherited from ns3::NrBearerStatsBase | |
void | DoDispose () override |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Static Public Member Functions inherited from ns3::NrBearerStatsBase | |
static TypeId | GetTypeId () |
This class is an ns-3 trace sink that performs the calculation of RLC and PDCP statistics for uplink and downlink.
Statistics are generated on a per radio bearer basis.
The statistics are calculated at consecutive time windows and periodically written to a file. The calculated statistics are:
Definition at line 57 of file nr-bearer-stats-calculator.h.
ns3::NrBearerStatsCalculator::NrBearerStatsCalculator | ( | ) |
Class constructor
Definition at line 24 of file nr-bearer-stats-calculator.cc.
ns3::NrBearerStatsCalculator::NrBearerStatsCalculator | ( | std::string | protocolType | ) |
Class constructor
Definition at line 32 of file nr-bearer-stats-calculator.cc.
|
override |
Class destructor
Definition at line 40 of file nr-bearer-stats-calculator.cc.
|
overridevirtual |
Notifies the stats calculator that an downlink reception has occurred.
cellId | CellId of the attached Enb |
imsi | IMSI of the UE who received the PDU |
rnti | C-RNTI of the UE who received the PDU |
lcid | LCID through which the PDU has been transmitted |
packetSize | size of the PDU in bytes |
delay | RLC to RLC delay in nanoseconds |
Implements ns3::NrBearerStatsBase.
Definition at line 196 of file nr-bearer-stats-calculator.cc.
|
overridevirtual |
Notifies the stats calculator that an downlink transmission has occurred.
cellId | CellId of the attached Enb |
imsi | IMSI of the UE who is receiving the PDU |
rnti | C-RNTI of the UE who is receiving the PDU |
lcid | LCID through which the PDU has been transmitted |
packetSize | size of the PDU in bytes |
Implements ns3::NrBearerStatsBase.
Definition at line 145 of file nr-bearer-stats-calculator.cc.
uint32_t ns3::NrBearerStatsCalculator::GetDlCellId | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the attached Enb cellId.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 547 of file nr-bearer-stats-calculator.cc.
double ns3::NrBearerStatsCalculator::GetDlDelay | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the downlink RLC to RLC delay
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 555 of file nr-bearer-stats-calculator.cc.
std::vector< double > ns3::NrBearerStatsCalculator::GetDlDelayStats | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the downlink RLC to RLC statistics: average, min, max and standard deviation.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 569 of file nr-bearer-stats-calculator.cc.
std::string ns3::NrBearerStatsCalculator::GetDlOutputFilename | ( | ) |
return DL output file name
Definition at line 626 of file nr-bearer-stats-calculator.cc.
std::vector< double > ns3::NrBearerStatsCalculator::GetDlPduSizeStats | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the downlink PDU size statistics: average, min, max and standard deviation.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 591 of file nr-bearer-stats-calculator.cc.
uint64_t ns3::NrBearerStatsCalculator::GetDlRxData | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the number of received downlink data bytes.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 531 of file nr-bearer-stats-calculator.cc.
uint32_t ns3::NrBearerStatsCalculator::GetDlRxPackets | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the number of received downlink data bytes.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 515 of file nr-bearer-stats-calculator.cc.
uint64_t ns3::NrBearerStatsCalculator::GetDlTxData | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the number of transmitted downlink data bytes.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 523 of file nr-bearer-stats-calculator.cc.
uint32_t ns3::NrBearerStatsCalculator::GetDlTxPackets | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the number of transmitted downlink data bytes.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 507 of file nr-bearer-stats-calculator.cc.
Time ns3::NrBearerStatsCalculator::GetEpoch | ( | ) | const |
Definition at line 119 of file nr-bearer-stats-calculator.cc.
Referenced by GetTypeId().
Time ns3::NrBearerStatsCalculator::GetStartTime | ( | ) | const |
Definition at line 106 of file nr-bearer-stats-calculator.cc.
Referenced by GetTypeId().
|
static |
Register this type.
Definition at line 46 of file nr-bearer-stats-calculator.cc.
References GetEpoch(), GetStartTime(), SetEpoch(), and SetStartTime().
uint32_t ns3::NrBearerStatsCalculator::GetUlCellId | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the attached Enb cellId.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 539 of file nr-bearer-stats-calculator.cc.
double ns3::NrBearerStatsCalculator::GetUlDelay | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the uplink RLC to RLC delay
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 449 of file nr-bearer-stats-calculator.cc.
std::vector< double > ns3::NrBearerStatsCalculator::GetUlDelayStats | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the uplink RLC to RLC statistics: average, min, max and standard deviation.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 463 of file nr-bearer-stats-calculator.cc.
std::string ns3::NrBearerStatsCalculator::GetUlOutputFilename | ( | ) |
Definition at line 613 of file nr-bearer-stats-calculator.cc.
std::vector< double > ns3::NrBearerStatsCalculator::GetUlPduSizeStats | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the uplink PDU size statistics: average, min, max and standard deviation.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 485 of file nr-bearer-stats-calculator.cc.
uint64_t ns3::NrBearerStatsCalculator::GetUlRxData | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the number of received uplink data bytes.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 441 of file nr-bearer-stats-calculator.cc.
uint32_t ns3::NrBearerStatsCalculator::GetUlRxPackets | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the number of received uplink packets.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 425 of file nr-bearer-stats-calculator.cc.
uint64_t ns3::NrBearerStatsCalculator::GetUlTxData | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the number of transmitted uplink data bytes.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 433 of file nr-bearer-stats-calculator.cc.
uint32_t ns3::NrBearerStatsCalculator::GetUlTxPackets | ( | uint64_t | imsi, |
uint8_t | lcid | ||
) |
Gets the number of transmitted uplink packets.
imsi | IMSI of the UE |
lcid | LCID |
Definition at line 417 of file nr-bearer-stats-calculator.cc.
void ns3::NrBearerStatsCalculator::SetEpoch | ( | Time | e | ) |
e | the epoch duration |
Definition at line 112 of file nr-bearer-stats-calculator.cc.
Referenced by GetTypeId().
void ns3::NrBearerStatsCalculator::SetStartTime | ( | Time | t | ) |
t | the value of the StartTime attribute |
Definition at line 99 of file nr-bearer-stats-calculator.cc.
Referenced by GetTypeId().
|
overridevirtual |
Notifies the stats calculator that an uplink reception has occurred.
cellId | CellId of the attached Enb |
imsi | IMSI of the UE who received the PDU |
rnti | C-RNTI of the UE who received the PDU |
lcid | LCID through which the PDU has been received |
packetSize | size of the PDU in bytes |
delay | RLC to RLC delay in nanoseconds |
Implements ns3::NrBearerStatsBase.
Definition at line 165 of file nr-bearer-stats-calculator.cc.
|
overridevirtual |
Notifies the stats calculator that an uplink transmission has occurred.
cellId | CellId of the attached Enb |
imsi | IMSI of the UE who transmitted the PDU |
rnti | C-RNTI of the UE who transmitted the PDU |
lcid | LCID through which the PDU has been transmitted |
packetSize | size of the PDU in bytes |
Implements ns3::NrBearerStatsBase.
Definition at line 125 of file nr-bearer-stats-calculator.cc.