5G-LENA  nr-v3.0-29-g83cc959
The 5G/NR module for the ns-3 simulator
ns3::NrBearerStatsConnector Class Reference

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

Public Member Functions

 NrBearerStatsConnector ()
 Constructor.
 
void EnablePdcpStats (Ptr< NrBearerStatsBase > pdcpStats)
 
void EnableRlcStats (Ptr< NrBearerStatsBase > rlcStats)
 
void EnsureConnected ()
 
Ptr< NrBearerStatsBaseGetPdcpStats ()
 
Ptr< NrBearerStatsBaseGetRlcStats ()
 

Static Public Member Functions

static void NotifyConnectionReconfigurationEnb (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti)
 
static void NotifyConnectionReconfigurationUe (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti)
 
static void NotifyConnectionSetupUe (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti)
 
static void NotifyHandoverEndOkEnb (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti)
 
static void NotifyHandoverEndOkUe (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti)
 
static void NotifyHandoverStartEnb (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti, uint16_t targetCellId)
 
static void NotifyHandoverStartUe (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti, uint16_t targetCellId)
 
static void NotifyNewUeContextEnb (NrBearerStatsConnector *c, std::string context, uint16_t cellid, uint16_t rnti)
 
static void NotifyRandomAccessSuccessfulUe (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti)
 

Friends

bool operator< (const CellIdRnti &a, const CellIdRnti &b)
 

Detailed Description

This class is very useful when user needs to collect statistics from PDCD and RLC. It automatically connects NrBearerStatsCalculator to appropriate trace sinks. Usually user do not use this class. All he/she needs to to do is to call: LteHelper::EnablePdcpTraces() and/or LteHelper::EnableRlcTraces().

Definition at line 33 of file nr-bearer-stats-connector.h.

Member Function Documentation

◆ EnablePdcpStats()

void ns3::NrBearerStatsConnector::EnablePdcpStats ( Ptr< NrBearerStatsBase pdcpStats)

Enables trace sinks for PDCP layer.

Parameters
pdcpStatsstatistics calculator for PDCP layer

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

References EnsureConnected().

Referenced by ns3::NrHelper::EnablePdcpE2eTraces(), and ns3::NrHelper::EnablePdcpSimpleTraces().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EnableRlcStats()

void ns3::NrBearerStatsConnector::EnableRlcStats ( Ptr< NrBearerStatsBase rlcStats)

Enables trace sinks for RLC layer.

Parameters
rlcStatsstatistics calculator for RLC layer

Definition at line 131 of file nr-bearer-stats-connector.cc.

References EnsureConnected().

Referenced by ns3::NrHelper::EnableRlcE2eTraces(), and ns3::NrHelper::EnableRlcSimpleTraces().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EnsureConnected()

void ns3::NrBearerStatsConnector::EnsureConnected ( )

Connects trace sinks to appropriate trace sources

Definition at line 145 of file nr-bearer-stats-connector.cc.

References NotifyConnectionReconfigurationEnb(), NotifyConnectionReconfigurationUe(), NotifyHandoverEndOkEnb(), NotifyHandoverEndOkUe(), NotifyHandoverStartEnb(), NotifyHandoverStartUe(), NotifyNewUeContextEnb(), and NotifyRandomAccessSuccessfulUe().

Referenced by EnablePdcpStats(), and EnableRlcStats().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPdcpStats()

Ptr< NrBearerStatsBase > ns3::NrBearerStatsConnector::GetPdcpStats ( )
Returns
PDCP stats

Definition at line 504 of file nr-bearer-stats-connector.cc.

Referenced by ns3::NrHelper::GetPdcpStatsCalculator().

+ Here is the caller graph for this function:

◆ GetRlcStats()

Ptr< NrBearerStatsBase > ns3::NrBearerStatsConnector::GetRlcStats ( )
Returns
RLC stats

Definition at line 498 of file nr-bearer-stats-connector.cc.

Referenced by ns3::NrHelper::GetRlcStatsCalculator().

+ Here is the caller graph for this function:

◆ NotifyConnectionReconfigurationEnb()

void ns3::NrBearerStatsConnector::NotifyConnectionReconfigurationEnb ( NrBearerStatsConnector c,
std::string  context,
uint64_t  imsi,
uint16_t  cellid,
uint16_t  rnti 
)
static

Function hooked to ConnectionReconfiguration trace source at eNB RRC, which is fired upon RRC connection reconfiguration

Parameters
c
context
imsi
cellid
rnti

Definition at line 234 of file nr-bearer-stats-connector.cc.

Referenced by EnsureConnected().

+ Here is the caller graph for this function:

◆ NotifyConnectionReconfigurationUe()

void ns3::NrBearerStatsConnector::NotifyConnectionReconfigurationUe ( NrBearerStatsConnector c,
std::string  context,
uint64_t  imsi,
uint16_t  cellid,
uint16_t  rnti 
)
static

Function hooked to ConnectionReconfiguration trace source at UE RRC, which is fired upon RRC connection reconfiguration

Parameters
c
context
imsi
cellid
rnti

Definition at line 194 of file nr-bearer-stats-connector.cc.

Referenced by EnsureConnected().

+ Here is the caller graph for this function:

◆ NotifyConnectionSetupUe()

void ns3::NrBearerStatsConnector::NotifyConnectionSetupUe ( NrBearerStatsConnector c,
std::string  context,
uint64_t  imsi,
uint16_t  cellid,
uint16_t  rnti 
)
static

Sink connected source of UE Connection Setup trace. Not used.

Parameters
c
context
imsi
cellid
rnti

Definition at line 184 of file nr-bearer-stats-connector.cc.

◆ NotifyHandoverEndOkEnb()

void ns3::NrBearerStatsConnector::NotifyHandoverEndOkEnb ( NrBearerStatsConnector c,
std::string  context,
uint64_t  imsi,
uint16_t  cellid,
uint16_t  rnti 
)
static

Function hooked to HandoverEndOk trace source at eNB RRC, which is fired upon successful termination of a handover procedure

Parameters
c
context
imsi
cellid
rnti

Definition at line 255 of file nr-bearer-stats-connector.cc.

Referenced by EnsureConnected().

+ Here is the caller graph for this function:

◆ NotifyHandoverEndOkUe()

void ns3::NrBearerStatsConnector::NotifyHandoverEndOkUe ( NrBearerStatsConnector c,
std::string  context,
uint64_t  imsi,
uint16_t  cellid,
uint16_t  rnti 
)
static

Function hooked to HandoverStart trace source at UE RRC, which is fired upon successful termination of a handover procedure

Parameters
c
context
imsi
cellid
rnti

Definition at line 215 of file nr-bearer-stats-connector.cc.

Referenced by EnsureConnected().

+ Here is the caller graph for this function:

◆ NotifyHandoverStartEnb()

void ns3::NrBearerStatsConnector::NotifyHandoverStartEnb ( NrBearerStatsConnector c,
std::string  context,
uint64_t  imsi,
uint16_t  cellid,
uint16_t  rnti,
uint16_t  targetCellId 
)
static

Function hooked to HandoverStart trace source at eNB RRC, which is fired upon start of a handover procedure

Parameters
c
context
imsi
cellid
rnti
targetCellId

Definition at line 244 of file nr-bearer-stats-connector.cc.

Referenced by EnsureConnected().

+ Here is the caller graph for this function:

◆ NotifyHandoverStartUe()

void ns3::NrBearerStatsConnector::NotifyHandoverStartUe ( NrBearerStatsConnector c,
std::string  context,
uint64_t  imsi,
uint16_t  cellid,
uint16_t  rnti,
uint16_t  targetCellId 
)
static

Function hooked to HandoverStart trace source at UE RRC, which is fired upon start of a handover procedure

Parameters
c
context
imsi
cellid
rnti
targetCellId

Definition at line 204 of file nr-bearer-stats-connector.cc.

Referenced by EnsureConnected().

+ Here is the caller graph for this function:

◆ NotifyNewUeContextEnb()

void ns3::NrBearerStatsConnector::NotifyNewUeContextEnb ( NrBearerStatsConnector c,
std::string  context,
uint16_t  cellid,
uint16_t  rnti 
)
static

Function hooked to NewUeContext trace source at eNB RRC, which is fired upon creation of a new UE context

Parameters
c
context
cellid
rnti

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

Referenced by EnsureConnected().

+ Here is the caller graph for this function:

◆ NotifyRandomAccessSuccessfulUe()

void ns3::NrBearerStatsConnector::NotifyRandomAccessSuccessfulUe ( NrBearerStatsConnector c,
std::string  context,
uint64_t  imsi,
uint16_t  cellid,
uint16_t  rnti 
)
static

Function hooked to RandomAccessSuccessful trace source at UE RRC, which is fired upon successful completion of the random access procedure

Parameters
c
context
imsi
cellid
rnti

Definition at line 174 of file nr-bearer-stats-connector.cc.

Referenced by EnsureConnected().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<

bool operator< ( const CellIdRnti &  a,
const CellIdRnti &  b 
)
friend

Less than operator for CellIdRnti, because it is used as key in map

Definition at line 23 of file nr-bearer-stats-connector.cc.


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