5G-LENA nr-v3.3-120-gdac69c56
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
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 NotifyConnectionReconfigurationGnb (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 NotifyHandoverEndOkGnb (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 NotifyHandoverStartGnb (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 NotifyNewUeContextGnb (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: NrHelper::EnablePdcpTraces() and/or NrHelper::EnableRlcTraces().

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

Constructor & Destructor Documentation

◆ NrBearerStatsConnector()

ns3::NrBearerStatsConnector::NrBearerStatsConnector ( )

Constructor.

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

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 136 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 129 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 143 of file nr-bearer-stats-connector.cc.

References NotifyConnectionReconfigurationGnb(), NotifyConnectionReconfigurationUe(), NotifyHandoverEndOkGnb(), NotifyHandoverEndOkUe(), NotifyHandoverStartGnb(), NotifyHandoverStartUe(), NotifyNewUeContextGnb(), 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 500 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 494 of file nr-bearer-stats-connector.cc.

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

+ Here is the caller graph for this function:

◆ NotifyConnectionReconfigurationGnb()

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

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

Parameters
c
context
imsi
cellid
rnti

Definition at line 232 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 192 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 182 of file nr-bearer-stats-connector.cc.

◆ NotifyHandoverEndOkGnb()

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

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

Parameters
c
context
imsi
cellid
rnti

Definition at line 253 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 213 of file nr-bearer-stats-connector.cc.

Referenced by EnsureConnected().

+ Here is the caller graph for this function:

◆ NotifyHandoverStartGnb()

void ns3::NrBearerStatsConnector::NotifyHandoverStartGnb ( 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 gNB RRC, which is fired upon start of a handover procedure

Parameters
c
context
imsi
cellid
rnti
targetCellId

Definition at line 242 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 202 of file nr-bearer-stats-connector.cc.

Referenced by EnsureConnected().

+ Here is the caller graph for this function:

◆ NotifyNewUeContextGnb()

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

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

Parameters
c
context
cellid
rnti

Definition at line 223 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 172 of file nr-bearer-stats-connector.cc.

Referenced by EnsureConnected().

+ Here is the caller graph for this function:

Friends And Related Symbol 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 21 of file nr-bearer-stats-connector.cc.


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