5G-LENA nr-v3.1-69-g2dd513a7
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
ns3::NrBearerStatsSimple Class Reference

This class writes RLC or PDC statistics to separate files: More...

#include "nr-bearer-stats-simple.h"

+ Inheritance diagram for ns3::NrBearerStatsSimple:
+ Collaboration diagram for ns3::NrBearerStatsSimple:

Public Member Functions

 NrBearerStatsSimple ()
 
 NrBearerStatsSimple (std::string protocolType)
 
 ~NrBearerStatsSimple () 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
 
std::string GetDlRxOutputFilename ()
 
std::string GetDlTxOutputFilename ()
 
std::string GetUlRxOutputFilename ()
 
std::string GetUlTxOutputFilename ()
 
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 ()
 

Detailed Description

This class writes RLC or PDC statistics to separate files:

  • DL TX statistics
  • DL RX statistics
  • UL TX statistics
  • UL RX statistics

Introspection did not find any typical Config paths.

Attributes

  • DlRlcTxOutputFilename: Name of the file where the RLC downlink TX results will be saved.
    • Set with class: ns3::StringValue
    • Underlying type:
    • Initial value: NrDlTxRlcStats.txt
    • Flags: construct write read
  • DlRlcRxOutputFilename: Name of the file where the RLC downlink RX results will be saved.
    • Set with class: ns3::StringValue
    • Underlying type:
    • Initial value: NrDlRxRlcStats.txt
    • Flags: construct write read
  • UlRlcTxOutputFilename: Name of the file where the RLC uplink RX results will be saved.
    • Set with class: ns3::StringValue
    • Underlying type:
    • Initial value: NrUlRlcTxStats.txt
    • Flags: construct write read
  • UlRlcRxOutputFilename: Name of the file where the RLC uplink TX results will be saved.
    • Set with class: ns3::StringValue
    • Underlying type:
    • Initial value: NrUlRlcRxStats.txt
    • Flags: construct write read
  • DlPdcpTxOutputFilename: Name of the file where the downlink PDCP TX results will be saved.
    • Set with class: ns3::StringValue
    • Underlying type:
    • Initial value: NrDlPdcpTxStats.txt
    • Flags: construct write read
  • DlPdcpRxOutputFilename: Name of the file where the downlink PDCP RX results will be saved.
    • Set with class: ns3::StringValue
    • Underlying type:
    • Initial value: NrDlPdcpRxStats.txt
    • Flags: construct write read
  • UlPdcpTxOutputFilename: Name of the file where the uplink PDCP TX results will be saved.
    • Set with class: ns3::StringValue
    • Underlying type:
    • Initial value: NrUlPdcpTxStats.txt
    • Flags: construct write read
  • UlPdcpRxOutputFilename: Name of the file where the uplink PDCP RX results will be saved.
    • Set with class: ns3::StringValue
    • Underlying type:
    • Initial value: NrUlPdcpRxStats.txt
    • Flags: construct write read

No TraceSources are defined for this type.
Size of this type is 2392 bytes (on a 64-bit architecture).

Definition at line 106 of file nr-bearer-stats-simple.h.

Constructor & Destructor Documentation

◆ NrBearerStatsSimple() [1/2]

ns3::NrBearerStatsSimple::NrBearerStatsSimple ( )

Class constructor

Definition at line 32 of file nr-bearer-stats-simple.cc.

◆ NrBearerStatsSimple() [2/2]

ns3::NrBearerStatsSimple::NrBearerStatsSimple ( std::string  protocolType)

Class constructor

Definition at line 38 of file nr-bearer-stats-simple.cc.

◆ ~NrBearerStatsSimple()

ns3::NrBearerStatsSimple::~NrBearerStatsSimple ( )
override

Class destructor

Definition at line 44 of file nr-bearer-stats-simple.cc.

Member Function Documentation

◆ DlRxPdu()

void ns3::NrBearerStatsSimple::DlRxPdu ( uint16_t  cellId,
uint64_t  imsi,
uint16_t  rnti,
uint8_t  lcid,
uint32_t  packetSize,
uint64_t  delay 
)
overridevirtual

Notifies the stats calculator that an downlink reception has occurred.

Parameters
cellIdCellId of the attached Gnb
imsiIMSI of the UE who received the PDU
rntiC-RNTI of the UE who received the PDU
lcidLCID through which the PDU has been transmitted
packetSizesize of the PDU in bytes
delayRLC to RLC delay in nanoseconds

Implements ns3::NrBearerStatsBase.

Definition at line 195 of file nr-bearer-stats-simple.cc.

References GetDlRxOutputFilename().

+ Here is the call graph for this function:

◆ DlTxPdu()

void ns3::NrBearerStatsSimple::DlTxPdu ( uint16_t  cellId,
uint64_t  imsi,
uint16_t  rnti,
uint8_t  lcid,
uint32_t  packetSize 
)
overridevirtual

Notifies the stats calculator that an downlink transmission has occurred.

Parameters
cellIdCellId of the attached Gnb
imsiIMSI of the UE who is receiving the PDU
rntiC-RNTI of the UE who is receiving the PDU
lcidLCID through which the PDU has been transmitted
packetSizesize of the PDU in bytes

Implements ns3::NrBearerStatsBase.

Definition at line 138 of file nr-bearer-stats-simple.cc.

References GetDlTxOutputFilename().

+ Here is the call graph for this function:

◆ DoDispose()

void ns3::NrBearerStatsSimple::DoDispose ( )
override

< Output file stream to which DL RLC TX stats will be written

< Output file stream to which DL RLC RX stats will be written

< Output file stream to which UL RLC TX stats will be written

< Output file stream to which UL RLC RX stats will be written

Definition at line 101 of file nr-bearer-stats-simple.cc.

◆ GetDlRxOutputFilename()

std::string ns3::NrBearerStatsSimple::GetDlRxOutputFilename ( )

Get the name of the file where the DL RX (RLC or PDCP) statistics will be stored.

Returns
the name of the file where the downlink statistics will be stored

Definition at line 264 of file nr-bearer-stats-simple.cc.

Referenced by DlRxPdu().

+ Here is the caller graph for this function:

◆ GetDlTxOutputFilename()

std::string ns3::NrBearerStatsSimple::GetDlTxOutputFilename ( )

Get the name of the file where the DL TX (RLC or PDCP) statistics will be stored.

Returns
the name of the file where the downlink statistics will be stored

Definition at line 251 of file nr-bearer-stats-simple.cc.

Referenced by DlTxPdu().

+ Here is the caller graph for this function:

◆ GetTypeId()

TypeId ns3::NrBearerStatsSimple::GetTypeId ( )
static

Register this type.

Returns
The object TypeId.

Definition at line 50 of file nr-bearer-stats-simple.cc.

◆ GetUlRxOutputFilename()

std::string ns3::NrBearerStatsSimple::GetUlRxOutputFilename ( )

Get the name of the file where the UL RX (RLC or PDCP) statistics will be stored.

Returns
the name of the file where the uplink statistics will be stored

Definition at line 238 of file nr-bearer-stats-simple.cc.

Referenced by UlRxPdu().

+ Here is the caller graph for this function:

◆ GetUlTxOutputFilename()

std::string ns3::NrBearerStatsSimple::GetUlTxOutputFilename ( )

Get the name of the file where the UL TX (RLC or PDCP) statistics will be stored.

Returns
the name of the file where the uplink statistics will be stored

Definition at line 225 of file nr-bearer-stats-simple.cc.

Referenced by UlTxPdu().

+ Here is the caller graph for this function:

◆ UlRxPdu()

void ns3::NrBearerStatsSimple::UlRxPdu ( uint16_t  cellId,
uint64_t  imsi,
uint16_t  rnti,
uint8_t  lcid,
uint32_t  packetSize,
uint64_t  delay 
)
overridevirtual

Notifies the stats calculator that an uplink reception has occurred.

Parameters
cellIdCellId of the attached Gnb
imsiIMSI of the UE who received the PDU
rntiC-RNTI of the UE who received the PDU
lcidLCID through which the PDU has been received
packetSizesize of the PDU in bytes
delayRLC to RLC delay in nanoseconds

Implements ns3::NrBearerStatsBase.

Definition at line 165 of file nr-bearer-stats-simple.cc.

References GetUlRxOutputFilename().

+ Here is the call graph for this function:

◆ UlTxPdu()

void ns3::NrBearerStatsSimple::UlTxPdu ( uint16_t  cellId,
uint64_t  imsi,
uint16_t  rnti,
uint8_t  lcid,
uint32_t  packetSize 
)
overridevirtual

Notifies the stats calculator that an uplink transmission has occurred.

Parameters
cellIdCellId of the attached Gnb
imsiIMSI of the UE who transmitted the PDU
rntiC-RNTI of the UE who transmitted the PDU
lcidLCID through which the PDU has been transmitted
packetSizesize of the PDU in bytes

Implements ns3::NrBearerStatsBase.

Definition at line 112 of file nr-bearer-stats-simple.cc.

References GetUlTxOutputFilename().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: