5G-LENA nr-v3.3-81-g75c7590d
The 5G/NR module for the ns-3 simulator
|
The class implements Component Carrier Manager (CCM) that operates using the Component Carrier Manager SAP interfaces. More...
#include "nr-gnb-component-carrier-manager.h"
Classes | |
struct | NrUeInfo |
Structure to represent UE info. More... | |
Public Member Functions | |
virtual NrCcmMacSapUser * | GetNrCcmMacSapUser () |
This function returns a pointer to the NrCcmMacSapUser interface, which is used by MAC to communicate to CCM when e.g. UL buffer status report is received, or to notify CCM about PRB occupancy, and similar. Functions that are specific for the communication between MAC and CCM. | |
virtual NrCcmRrcSapProvider * | GetNrCcmRrcSapProvider () |
Export the "provider" part of the NrComponentCarrier Management SAP interface. | |
virtual NrMacSapProvider * | GetNrMacSapProvider () |
Returns the pointer to the NrMacSapProvider interface, the provider of MAC, which is this new architecture served by NrGnbComponentCarrierManager object which will behave as a proxy, and will forward calls between to MAC objects of component carriers based on the logic implemented in the specific component carrier manager. | |
virtual bool | SetCcmMacSapProviders (uint8_t componentCarrierId, NrCcmMacSapProvider *sap) |
Set NrCcmMacSapProvider interface for the MAC object of the specified component carrier. Through this interface CCM communicates with MAC, e.g. it notifies MAC of the specific carrier when to scheduler UL BSR. | |
virtual bool | SetMacSapProvider (uint8_t componentCarrierId, NrMacSapProvider *sap) |
Set NrMacSapProvider interface for the MAC object of the specified component carrier. | |
virtual void | SetNrCcmRrcSapUser (NrCcmRrcSapUser *s) |
Set the "user" part of the NrComponentCarrier Management SAP interface that this NrComponentCarrier algorithm instance will interact with. | |
virtual void | SetNumberOfComponentCarriers (uint16_t noOfComponentCarriers) |
Sets the total number of component carriers. | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. | |
Protected Member Functions | |
void | DoDispose () override |
virtual void | DoReportUeMeas (uint16_t rnti, NrRrcSap::MeasResults measResults)=0 |
Implementation of ReportUeMeas. | |
Protected Attributes | |
std::map< uint8_t, NrCcmMacSapProvider * > | m_ccmMacSapProviderMap |
NrCcmMacSapUser * | m_ccmMacSapUser |
NrCcmRrcSapProvider * | m_ccmRrcSapProvider |
NrCcmRrcSapUser * | m_ccmRrcSapUser |
NrMacSapProvider * | m_macSapProvider |
std::map< uint8_t, NrMacSapProvider * > | m_macSapProvidersMap |
A map of pointers to real SAP interfaces of MAC instances. | |
uint16_t | m_noOfComponentCarriers |
Ptr< NrGnbRrc > | m_rrc |
A pointer to the RRC instance of this eNb. | |
std::map< uint16_t, NrUeInfo > | m_ueInfo |
The map from RNTI to UE information. | |
The class implements Component Carrier Manager (CCM) that operates using the Component Carrier Manager SAP interfaces.
CCM receives measurement reports from an eNode RRC instance and is forwarding calls from RLC to MAC layer, and from MAC to RLC.
This class is an abstract class intended to be inherited by subclasses that will implement its virtual methods. The subclasses are compatible with the NrGnbNetDevice class, and are accessible using namespace-based access through ns-3 Config subsystem, and can be installed and configured by NrHelper class.
The communication with the eNodeB RRC instance is done through the Component Carrier Manager SAP interface. The NrGnbComponentCarrierManager instance corresponds to the "provider" part of this interface, while the eNodeB RRC instance takes the role of the "user" part. The following code skeleton establishes the connection between both instances:
Ptr<NrGnbRrc> rrc = ...; Ptr<NrComponentCarrierManager> ccmGnb = ...; rrc->SetNrCcmRrcSapProvider (ccmGnb->GetNrCcmRrcSapProvider ()); ccmGnb->SetNrCcmRrcSapUser (rrc->GetNrCcmRrcSapUser ())
Similarly, NrGnbComponentCarrierManager instance communicates with MAC, and it takes the role of the "user".
However, user rarely needs to use the above code, since it has already been taken care by NrHelper::InstallGnbDevice.
ns3::NrGnbComponentCarrierManager is accessible through the following paths with Config::Set and Config::Connect:
/NodeList/[i]/DeviceList/[i]/$ns3::NrGnbNetDevice/NrGnbComponentCarrierManager
/NodeList/[i]/DeviceList/[i]/$ns3::NrNetDevice/$ns3::NrGnbNetDevice/NrGnbComponentCarrierManager
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 248 bytes (on a 64-bit architecture).
Definition at line 65 of file nr-gnb-component-carrier-manager.h.
ns3::NrGnbComponentCarrierManager::NrGnbComponentCarrierManager | ( | ) |
Definition at line 19 of file nr-gnb-component-carrier-manager.cc.
|
override |
Definition at line 23 of file nr-gnb-component-carrier-manager.cc.
|
overrideprotected |
Definition at line 36 of file nr-gnb-component-carrier-manager.cc.
|
protectedpure virtual |
Implementation of ReportUeMeas.
rnti | Radio Network Temporary Identity, an integer identifying the UE where the report originates from |
measResults | a single report of one measurement identity |
Implemented in ns3::NrNoOpComponentCarrierManager.
|
virtual |
This function returns a pointer to the NrCcmMacSapUser interface, which is used by MAC to communicate to CCM when e.g. UL buffer status report is received, or to notify CCM about PRB occupancy, and similar. Functions that are specific for the communication between MAC and CCM.
Definition at line 62 of file nr-gnb-component-carrier-manager.cc.
References m_ccmMacSapUser.
|
virtual |
Export the "provider" part of the NrComponentCarrier Management SAP interface.
Definition at line 48 of file nr-gnb-component-carrier-manager.cc.
References m_ccmRrcSapProvider.
|
virtual |
Returns the pointer to the NrMacSapProvider interface, the provider of MAC, which is this new architecture served by NrGnbComponentCarrierManager object which will behave as a proxy, and will forward calls between to MAC objects of component carriers based on the logic implemented in the specific component carrier manager.
Definition at line 55 of file nr-gnb-component-carrier-manager.cc.
References m_macSapProvider.
|
static |
Get the type ID.
Definition at line 28 of file nr-gnb-component-carrier-manager.cc.
|
virtual |
Set NrCcmMacSapProvider interface for the MAC object of the specified component carrier. Through this interface CCM communicates with MAC, e.g. it notifies MAC of the specific carrier when to scheduler UL BSR.
componentCarrierId | component carrier ID |
sap | the MAC SAP provider |
Definition at line 92 of file nr-gnb-component-carrier-manager.cc.
References m_ccmMacSapProviderMap.
|
virtual |
Set NrMacSapProvider interface for the MAC object of the specified component carrier.
componentCarrierId | component carrier ID |
sap | the MAC SAP provider |
Definition at line 69 of file nr-gnb-component-carrier-manager.cc.
References m_macSapProvidersMap, and m_noOfComponentCarriers.
|
virtual |
Set the "user" part of the NrComponentCarrier Management SAP interface that this NrComponentCarrier algorithm instance will interact with.
s | a reference to the "user" part of the interface, typically a member of an NrGnbRrc instance |
Definition at line 41 of file nr-gnb-component-carrier-manager.cc.
References m_ccmRrcSapUser.
|
virtual |
Sets the total number of component carriers.
noOfComponentCarriers | number of component carriers |
Definition at line 110 of file nr-gnb-component-carrier-manager.cc.
References m_ccmRrcSapUser, m_noOfComponentCarriers, and ns3::NrCcmRrcSapUser::SetNumberOfComponentCarriers().
|
protected |
A map of pointers to the SAP interfaces of CCM instance that provides the CCM specific functionalities to MAC, i.e. ReportMacCeToScheduler.
Definition at line 199 of file nr-gnb-component-carrier-manager.h.
Referenced by ns3::NrNoOpComponentCarrierManager::DoUlReceiveMacCe(), ns3::NrRrComponentCarrierManager::DoUlReceiveMacCe(), ns3::NrNoOpComponentCarrierManager::DoUlReceiveSr(), ns3::NrRrComponentCarrierManager::DoUlReceiveSr(), and SetCcmMacSapProviders().
|
protected |
NrCcmMacSapUser is extended version of NrMacSapUser interface. Contains functions that allow reporting of UL BSR from MAC to CCM.
Definition at line 203 of file nr-gnb-component-carrier-manager.h.
Referenced by ns3::NrNoOpComponentCarrierManager::DoConfigureSignalBearer(), ns3::NrNoOpComponentCarrierManager::DoSetupDataRadioBearer(), and GetNrCcmMacSapUser().
|
protected |
A pointer to the SAP interface of the CCM instance to receive API calls from the eNodeB RRC instance.
Definition at line 208 of file nr-gnb-component-carrier-manager.h.
Referenced by GetNrCcmRrcSapProvider().
|
protected |
A pointer to SAP interface of RRC instance, i.e. to configure measurements reporting for CCM.
Definition at line 205 of file nr-gnb-component-carrier-manager.h.
Referenced by ns3::NrNoOpComponentCarrierManager::DoReportBufferStatus(), ns3::NrRrComponentCarrierManager::DoReportBufferStatus(), ns3::NrRrComponentCarrierManager::DoUlReceiveMacCe(), SetNrCcmRrcSapUser(), and SetNumberOfComponentCarriers().
|
protected |
A pointer to main SAP interface of the MAC instance, which is in this case handled by CCM.
Definition at line 184 of file nr-gnb-component-carrier-manager.h.
Referenced by GetNrMacSapProvider().
|
protected |
A map of pointers to real SAP interfaces of MAC instances.
Definition at line 190 of file nr-gnb-component-carrier-manager.h.
Referenced by ns3::NrNoOpComponentCarrierManager::DoReportBufferStatus(), ns3::NrRrComponentCarrierManager::DoReportBufferStatus(), ns3::NrNoOpComponentCarrierManager::DoTransmitPdu(), and SetMacSapProvider().
|
protected |
The number component of carriers that are supported by this eNb.
Definition at line 166 of file nr-gnb-component-carrier-manager.h.
Referenced by ns3::NrNoOpComponentCarrierManager::DoSetupDataRadioBearer(), SetMacSapProvider(), and SetNumberOfComponentCarriers().
|
protected |
A pointer to the RRC instance of this eNb.
Definition at line 170 of file nr-gnb-component-carrier-manager.h.
|
protected |
The map from RNTI to UE information.
Definition at line 165 of file nr-gnb-component-carrier-manager.h.
Referenced by ns3::NrNoOpComponentCarrierManager::DoAddLc(), ns3::NrNoOpComponentCarrierManager::DoAddUe(), ns3::NrNoOpComponentCarrierManager::DoConfigureSignalBearer(), ns3::NrNoOpComponentCarrierManager::DoNotifyTxOpportunity(), ns3::NrNoOpComponentCarrierManager::DoReceivePdu(), ns3::NrNoOpComponentCarrierManager::DoReleaseDataRadioBearer(), ns3::NrNoOpComponentCarrierManager::DoRemoveUe(), ns3::NrRrComponentCarrierManager::DoReportBufferStatus(), ns3::NrNoOpComponentCarrierManager::DoSetupDataRadioBearer(), ns3::NrRrComponentCarrierManager::DoUlReceiveMacCe(), and ns3::NrRrComponentCarrierManager::DoUlReceiveSr().