![]() |
5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
|
Implementation of the strongest cell handover algorithm, based on RSRP measurements and Event A3. More...
#include "nr-a3-rsrp-handover-algorithm.h"
Public Member Functions | |
NrA3RsrpHandoverAlgorithm () | |
Creates a strongest cell handover algorithm instance. | |
NrHandoverManagementSapProvider * | GetNrHandoverManagementSapProvider () override |
Export the "provider" part of the Handover Management SAP interface. | |
void | SetNrHandoverManagementSapUser (NrHandoverManagementSapUser *s) override |
Set the "user" part of the Handover Management SAP interface that this handover algorithm instance will interact with. | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. | |
![]() | |
static TypeId | GetTypeId () |
Get the type ID. | |
Protected Member Functions | |
void | DoDispose () override |
void | DoInitialize () override |
void | DoReportUeMeas (uint16_t rnti, NrRrcSap::MeasResults measResults) override |
Implementation of NrHandoverManagementSapProvider::ReportUeMeas. | |
![]() | |
void | DoDispose () override |
Friends | |
class | MemberNrHandoverManagementSapProvider< NrA3RsrpHandoverAlgorithm > |
let the forwarder class access the protected and private members | |
Implementation of the strongest cell handover algorithm, based on RSRP measurements and Event A3.
The algorithm utilizes Event A3 (Section 5.5.4.4 of 3GPP TS 36.331) UE measurements and the Reference Signal Reference Power (RSRP). It is defined as the event when the UE perceives that a neighbour cell's RSRP is better than the serving cell's RSRP.
Handover margin (a.k.a. hysteresis) and time-to-trigger (TTT) can be configured to delay the event triggering. The values of these parameters apply to all attached UEs.
The following code snippet is an example of using and configuring the handover algorithm in a simulation program:
Ptr<NrHelper> nrHelper = CreateObject<NrHelper> (); NodeContainer gnbNodes; // configure the nodes here... nrHelper->SetHandoverAlgorithmType ("ns3::NrA3RsrpHandoverAlgorithm"); nrHelper->SetHandoverAlgorithmAttribute ("Hysteresis", DoubleValue (3.0)); nrHelper->SetHandoverAlgorithmAttribute ("TimeToTrigger", TimeValue (MilliSeconds (256))); NetDeviceContainer nrGnbDevs = nrHelper->InstallGnbDevice (gnbNodes);
Introspection did not find any typical Config paths.
No TraceSources are defined for this type.
Size of this type is 112 bytes (on a 64-bit architecture).
Definition at line 51 of file nr-a3-rsrp-handover-algorithm.h.
ns3::NrA3RsrpHandoverAlgorithm::NrA3RsrpHandoverAlgorithm | ( | ) |
Creates a strongest cell handover algorithm instance.
Definition at line 24 of file nr-a3-rsrp-handover-algorithm.cc.
References MemberNrHandoverManagementSapProvider< NrA3RsrpHandoverAlgorithm >.
|
override |
Definition at line 32 of file nr-a3-rsrp-handover-algorithm.cc.
|
overrideprotected |
Definition at line 103 of file nr-a3-rsrp-handover-algorithm.cc.
|
overrideprotected |
Definition at line 79 of file nr-a3-rsrp-handover-algorithm.cc.
|
overrideprotectedvirtual |
Implementation of NrHandoverManagementSapProvider::ReportUeMeas.
rnti | Radio Network Temporary Identity, an integer identifying the UE where the report originates from |
measResults | a single report of one measurement identity |
Implements ns3::NrHandoverAlgorithm.
Definition at line 110 of file nr-a3-rsrp-handover-algorithm.cc.
References ns3::NrRrcSap::MeasResults::haveMeasResultNeighCells, ns3::NrRrcSap::MeasResults::measId, ns3::NrRrcSap::MeasResults::measResultListEutra, ns3::NrRrcSap::MeasResults::measResultPCell, ns3::NrRrcSap::MeasResultPCell::rsrpResult, and ns3::NrHandoverManagementSapUser::TriggerHandover().
|
overridevirtual |
Export the "provider" part of the Handover Management SAP interface.
Implements ns3::NrHandoverAlgorithm.
Definition at line 72 of file nr-a3-rsrp-handover-algorithm.cc.
|
static |
Get the type ID.
Definition at line 38 of file nr-a3-rsrp-handover-algorithm.cc.
|
overridevirtual |
Set the "user" part of the Handover Management SAP interface that this handover algorithm instance will interact with.
s | a reference to the "user" part of the interface, typically a member of an NrGnbRrc instance |
Implements ns3::NrHandoverAlgorithm.
Definition at line 65 of file nr-a3-rsrp-handover-algorithm.cc.
|
friend |
let the forwarder class access the protected and private members
Definition at line 67 of file nr-a3-rsrp-handover-algorithm.h.
Referenced by NrA3RsrpHandoverAlgorithm().