![]() |
5G-LENA nr-v3.3-120-gdac69c56
The 5G/NR module for the ns-3 simulator
|
#include "nr-bearer-stats-connector.h"
Public Member Functions | |
NrBearerStatsConnector () | |
Constructor. | |
void | EnablePdcpStats (Ptr< NrBearerStatsBase > pdcpStats) |
void | EnableRlcStats (Ptr< NrBearerStatsBase > rlcStats) |
void | EnsureConnected () |
Ptr< NrBearerStatsBase > | GetPdcpStats () |
Ptr< NrBearerStatsBase > | GetRlcStats () |
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) |
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.
ns3::NrBearerStatsConnector::NrBearerStatsConnector | ( | ) |
Constructor.
Definition at line 123 of file nr-bearer-stats-connector.cc.
void ns3::NrBearerStatsConnector::EnablePdcpStats | ( | Ptr< NrBearerStatsBase > | pdcpStats | ) |
Enables trace sinks for PDCP layer.
pdcpStats | statistics 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().
void ns3::NrBearerStatsConnector::EnableRlcStats | ( | Ptr< NrBearerStatsBase > | rlcStats | ) |
Enables trace sinks for RLC layer.
rlcStats | statistics 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().
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().
Ptr< NrBearerStatsBase > ns3::NrBearerStatsConnector::GetPdcpStats | ( | ) |
Definition at line 500 of file nr-bearer-stats-connector.cc.
Referenced by ns3::NrHelper::GetPdcpStatsCalculator().
Ptr< NrBearerStatsBase > ns3::NrBearerStatsConnector::GetRlcStats | ( | ) |
Definition at line 494 of file nr-bearer-stats-connector.cc.
Referenced by ns3::NrHelper::GetRlcStatsCalculator().
|
static |
Function hooked to ConnectionReconfiguration trace source at gNB RRC, which is fired upon RRC connection reconfiguration
c | |
context | |
imsi | |
cellid | |
rnti |
Definition at line 232 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Function hooked to ConnectionReconfiguration trace source at UE RRC, which is fired upon RRC connection reconfiguration
c | |
context | |
imsi | |
cellid | |
rnti |
Definition at line 192 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Sink connected source of UE Connection Setup trace. Not used.
c | |
context | |
imsi | |
cellid | |
rnti |
Definition at line 182 of file nr-bearer-stats-connector.cc.
|
static |
Function hooked to HandoverEndOk trace source at gNB RRC, which is fired upon successful termination of a handover procedure
c | |
context | |
imsi | |
cellid | |
rnti |
Definition at line 253 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Function hooked to HandoverStart trace source at UE RRC, which is fired upon successful termination of a handover procedure
c | |
context | |
imsi | |
cellid | |
rnti |
Definition at line 213 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Function hooked to HandoverStart trace source at gNB RRC, which is fired upon start of a handover procedure
c | |
context | |
imsi | |
cellid | |
rnti | |
targetCellId |
Definition at line 242 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Function hooked to HandoverStart trace source at UE RRC, which is fired upon start of a handover procedure
c | |
context | |
imsi | |
cellid | |
rnti | |
targetCellId |
Definition at line 202 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Function hooked to NewUeContext trace source at gNB RRC, which is fired upon creation of a new UE context
c | |
context | |
cellid | |
rnti |
Definition at line 223 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Function hooked to RandomAccessSuccessful trace source at UE RRC, which is fired upon successful completion of the random access procedure
c | |
context | |
imsi | |
cellid | |
rnti |
Definition at line 172 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
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.