5G-LENA nr-v3.1-14-g738b08bc
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:
Introspection did not find any typical Config paths.
No TraceSources are defined for this type.
Size of this type is 2008 bytes (on a 64-bit architecture).
Definition at line 55 of file nr-bearer-stats-calculator.h.
ns3::NrBearerStatsCalculator::NrBearerStatsCalculator | ( | ) |
Class constructor
Definition at line 22 of file nr-bearer-stats-calculator.cc.
ns3::NrBearerStatsCalculator::NrBearerStatsCalculator | ( | std::string | protocolType | ) |
Class constructor
Definition at line 30 of file nr-bearer-stats-calculator.cc.
|
override |
Class destructor
Definition at line 38 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 194 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 143 of file nr-bearer-stats-calculator.cc.
|
override |
Definition at line 87 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 545 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 553 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 567 of file nr-bearer-stats-calculator.cc.
std::string ns3::NrBearerStatsCalculator::GetDlOutputFilename | ( | ) |
return DL output file name
Definition at line 624 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 589 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 529 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 513 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 521 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 505 of file nr-bearer-stats-calculator.cc.
Time ns3::NrBearerStatsCalculator::GetEpoch | ( | ) | const |
Definition at line 117 of file nr-bearer-stats-calculator.cc.
Referenced by GetTypeId().
Time ns3::NrBearerStatsCalculator::GetStartTime | ( | ) | const |
Definition at line 104 of file nr-bearer-stats-calculator.cc.
Referenced by GetTypeId().
|
static |
Register this type.
Definition at line 44 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 537 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 447 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 461 of file nr-bearer-stats-calculator.cc.
std::string ns3::NrBearerStatsCalculator::GetUlOutputFilename | ( | ) |
Definition at line 611 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 483 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 439 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 423 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 431 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 415 of file nr-bearer-stats-calculator.cc.
void ns3::NrBearerStatsCalculator::SetEpoch | ( | Time | e | ) |
e | the epoch duration |
Definition at line 110 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 97 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 163 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 123 of file nr-bearer-stats-calculator.cc.