![]() |
5G-LENA nr-v3.3-159-ga6832aa7
The 5G/NR module for the ns-3 simulator
|
The default component carrier manager that forwards all traffic, the uplink and the downlink, over the primary carrier, and will not use secondary carriers. To enable carrier aggregation feature, select another component carrier manager class, i.e., some of child classes of NrGnbComponentCarrierManager of NrNoOpComponentCarrierManager. More...
#include "nr-no-op-component-carrier-manager.h"
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. | |
![]() | |
static TypeId | GetTypeId () |
Get the type ID. | |
Protected Member Functions | |
virtual void | DoAddLc (NrGnbCmacSapProvider::LcInfo lcInfo, NrMacSapUser *msu) |
Add LC. | |
virtual void | DoAddUe (uint16_t rnti, uint8_t state) |
Add UE. | |
virtual NrMacSapUser * | DoConfigureSignalBearer (NrGnbCmacSapProvider::LcInfo lcinfo, NrMacSapUser *msu) |
Configure the signal bearer. | |
void | DoDispose () override |
void | DoInitialize () override |
virtual void | DoNotifyHarqDeliveryFailure () |
Notify HARQ delivery failure. | |
virtual void | DoNotifyPrbOccupancy (double prbOccupancy, uint8_t componentCarrierId) |
Function implements the function of the SAP interface of CCM instance which is used by MAC to notify the PRB occupancy reported by scheduler. | |
virtual void | DoNotifyTxOpportunity (NrMacSapUser::TxOpportunityParameters txOpParams) |
Notify transmit opportunity. | |
virtual void | DoReceivePdu (NrMacSapUser::ReceivePduParameters rxPduParams) |
Receive PDU. | |
virtual std::vector< uint8_t > | DoReleaseDataRadioBearer (uint16_t rnti, uint8_t lcid) |
Release data radio bearer. | |
virtual void | DoRemoveUe (uint16_t rnti) |
Remove UE. | |
void | DoReportUeMeas (uint16_t rnti, NrRrcSap::MeasResults measResults) override |
Implementation of ReportUeMeas. | |
virtual std::vector< NrCcmRrcSapProvider::LcsConfig > | DoSetupDataRadioBearer (NrEpsBearer bearer, uint8_t bearerId, uint16_t rnti, uint8_t lcid, uint8_t lcGroup, NrMacSapUser *msu) |
Setup data radio bearer. | |
virtual void | DoTransmitBufferStatusReport (NrMacSapProvider::BufferStatusReportParameters params) |
Buffer status report. | |
virtual void | DoTransmitPdu (NrMacSapProvider::TransmitPduParameters params) |
Transmit PDU. | |
virtual void | DoUlReceiveMacCe (nr::MacCeListElement_s bsr, uint8_t componentCarrierId) |
Forwards uplink BSR to CCM, called by MAC through CCM SAP interface. | |
virtual void | DoUlReceiveSr (uint16_t rnti, uint8_t componentCarrierId) |
Forward uplink SR to CCM, called by MAC through CCM SAP interface. | |
![]() | |
void | DoDispose () override |
Protected Attributes | |
std::map< uint8_t, double > | m_ccPrbOccupancy |
The physical resource block occupancy per carrier. | |
![]() | |
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. | |
Friends | |
class | GnbMacMemberNrMacSapProvider< NrNoOpComponentCarrierManager > |
allow GnbMacMemberNrMacSapProvider<NrNoOpComponentCarrierManager> class friend access | |
class | MemberNrCcmMacSapUser< NrNoOpComponentCarrierManager > |
allow MemberNrCcmMacSapUser<NrNoOpComponentCarrierManager> class friend access | |
class | MemberNrCcmRrcSapProvider< NrNoOpComponentCarrierManager > |
allow MemberNrCcmRrcSapProvider<NrNoOpComponentCarrierManager> class friend access | |
class | MemberNrCcmRrcSapUser< NrNoOpComponentCarrierManager > |
allow MemberNrCcmRrcSapUser<NrNoOpComponentCarrierManager> class friend access | |
Additional Inherited Members | |
![]() | |
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. | |
The default component carrier manager that forwards all traffic, the uplink and the downlink, over the primary carrier, and will not use secondary carriers. To enable carrier aggregation feature, select another component carrier manager class, i.e., some of child classes of NrGnbComponentCarrierManager of NrNoOpComponentCarrierManager.
ns3::NrNoOpComponentCarrierManager is accessible through the following paths with Config::Set and Config::Connect:
/NodeList/[i]/DeviceList/[i]/$ns3::NrGnbNetDevice/NrGnbComponentCarrierManager/$ns3::NrNoOpComponentCarrierManager
/NodeList/[i]/DeviceList/[i]/$ns3::NrNetDevice/$ns3::NrGnbNetDevice/NrGnbComponentCarrierManager/$ns3::NrNoOpComponentCarrierManager
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 296 bytes (on a 64-bit architecture).
Definition at line 32 of file nr-no-op-component-carrier-manager.h.
ns3::NrNoOpComponentCarrierManager::NrNoOpComponentCarrierManager | ( | ) |
Definition at line 24 of file nr-no-op-component-carrier-manager.cc.
|
override |
Definition at line 33 of file nr-no-op-component-carrier-manager.cc.
|
protectedvirtual |
Add LC.
lcInfo | the LC info |
msu | the MSU |
Definition at line 151 of file nr-no-op-component-carrier-manager.cc.
References ns3::NrGnbCmacSapProvider::LcInfo::lcId, ns3::NrGnbComponentCarrierManager::m_ueInfo, and ns3::NrGnbCmacSapProvider::LcInfo::rnti.
|
protectedvirtual |
Add UE.
rnti | the RNTI |
state | the state |
Definition at line 124 of file nr-no-op-component-carrier-manager.cc.
References ns3::NrGnbComponentCarrierManager::NrUeInfo::m_enabledComponentCarrier, ns3::NrGnbComponentCarrierManager::m_ueInfo, and ns3::NrGnbComponentCarrierManager::NrUeInfo::m_ueState.
|
protectedvirtual |
Configure the signal bearer.
lcinfo | the NrGnbCmacSapProvider::LcInfo |
msu | the MSU |
Definition at line 270 of file nr-no-op-component-carrier-manager.cc.
References ns3::NrGnbCmacSapProvider::LcInfo::lcId, ns3::NrGnbComponentCarrierManager::m_ccmMacSapUser, ns3::NrGnbComponentCarrierManager::m_ueInfo, and ns3::NrGnbCmacSapProvider::LcInfo::rnti.
|
overrideprotected |
Definition at line 39 of file nr-no-op-component-carrier-manager.cc.
|
overrideprotected |
Definition at line 58 of file nr-no-op-component-carrier-manager.cc.
|
protectedvirtual |
Notify HARQ delivery failure.
Definition at line 112 of file nr-no-op-component-carrier-manager.cc.
|
protectedvirtual |
Function implements the function of the SAP interface of CCM instance which is used by MAC to notify the PRB occupancy reported by scheduler.
prbOccupancy | the PRB occupancy |
componentCarrierId | the component carrier ID |
Definition at line 293 of file nr-no-op-component-carrier-manager.cc.
References m_ccPrbOccupancy.
|
protectedvirtual |
Notify transmit opportunity.
txOpParams | the NrMacSapUser::TxOpportunityParameters |
Reimplemented in ns3::BwpManagerGnb.
Definition at line 91 of file nr-no-op-component-carrier-manager.cc.
References ns3::NrMacSapUser::TxOpportunityParameters::componentCarrierId, ns3::NrMacSapUser::TxOpportunityParameters::layer, ns3::NrMacSapUser::TxOpportunityParameters::lcid, ns3::NrGnbComponentCarrierManager::m_ueInfo, and ns3::NrMacSapUser::TxOpportunityParameters::rnti.
|
protectedvirtual |
Receive PDU.
rxPduParams | the NrMacSapUser::ReceivePduParameters |
Definition at line 101 of file nr-no-op-component-carrier-manager.cc.
References ns3::NrMacSapUser::ReceivePduParameters::lcid, ns3::NrGnbComponentCarrierManager::m_ueInfo, and ns3::NrMacSapUser::ReceivePduParameters::rnti.
|
protectedvirtual |
Release data radio bearer.
rnti | the RNTI |
lcid | the LCID |
Definition at line 240 of file nr-no-op-component-carrier-manager.cc.
References ns3::NrGnbComponentCarrierManager::m_ueInfo.
|
protectedvirtual |
Remove UE.
rnti | the RNTI |
Definition at line 158 of file nr-no-op-component-carrier-manager.cc.
References ns3::NrGnbComponentCarrierManager::m_ueInfo.
|
overrideprotectedvirtual |
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 |
Implements ns3::NrGnbComponentCarrierManager.
Definition at line 118 of file nr-no-op-component-carrier-manager.cc.
References ns3::NrRrcSap::MeasResults::measId.
|
protectedvirtual |
Setup data radio bearer.
bearer | the radio bearer |
bearerId | the bearerID |
rnti | the RNTI |
lcid | the LCID |
lcGroup | the LC group |
msu | the MSU |
Reimplemented in ns3::BwpManagerGnb.
Definition at line 167 of file nr-no-op-component-carrier-manager.cc.
References ns3::NrCcmRrcSapProvider::LcsConfig::componentCarrierId, ns3::NrGbrQosInformation::gbrDl, ns3::NrGnbCmacSapProvider::LcInfo::gbrDl, ns3::NrEpsBearer::gbrQosInfo, ns3::NrGbrQosInformation::gbrUl, ns3::NrGnbCmacSapProvider::LcInfo::gbrUl, ns3::NrEpsBearer::GetResourceType(), ns3::NrCcmRrcSapProvider::LcsConfig::lc, ns3::NrGnbCmacSapProvider::LcInfo::lcGroup, ns3::NrGnbCmacSapProvider::LcInfo::lcId, ns3::NrGnbComponentCarrierManager::m_ccmMacSapUser, ns3::NrGnbComponentCarrierManager::m_noOfComponentCarriers, ns3::NrGnbComponentCarrierManager::m_ueInfo, ns3::NrGbrQosInformation::mbrDl, ns3::NrGnbCmacSapProvider::LcInfo::mbrDl, ns3::NrGbrQosInformation::mbrUl, ns3::NrGnbCmacSapProvider::LcInfo::mbrUl, ns3::NrCcmRrcSapProvider::LcsConfig::msu, ns3::NrEpsBearer::qci, ns3::NrGnbCmacSapProvider::LcInfo::qci, ns3::NrGnbCmacSapProvider::LcInfo::resourceType, and ns3::NrGnbCmacSapProvider::LcInfo::rnti.
|
protectedvirtual |
Buffer status report.
params | the buffer status report parameters |
Reimplemented in ns3::BwpManagerGnb, and ns3::NrRrComponentCarrierManager.
Definition at line 80 of file nr-no-op-component-carrier-manager.cc.
References ns3::NrCcmRrcSapUser::GetUeManager(), ns3::NrGnbComponentCarrierManager::m_ccmRrcSapUser, ns3::NrGnbComponentCarrierManager::m_macSapProvidersMap, and ns3::NrMacSapProvider::BufferStatusReportParameters::rnti.
|
protectedvirtual |
Transmit PDU.
params | the transmit PDU parameters |
Definition at line 69 of file nr-no-op-component-carrier-manager.cc.
References ns3::NrMacSapProvider::TransmitPduParameters::componentCarrierId, and ns3::NrGnbComponentCarrierManager::m_macSapProvidersMap.
|
protectedvirtual |
Forwards uplink BSR to CCM, called by MAC through CCM SAP interface.
bsr | the BSR |
componentCarrierId | the component carrier ID |
Reimplemented in ns3::BwpManagerGnb, and ns3::NrRrComponentCarrierManager.
Definition at line 302 of file nr-no-op-component-carrier-manager.cc.
References ns3::nr::BufferSizeLevelBsr::BsrId2BufferSize(), ns3::nr::BufferSizeLevelBsr::BufferSize2BsrId(), ns3::nr::MacCeValue_u::m_bufferStatus, ns3::NrGnbComponentCarrierManager::m_ccmMacSapProviderMap, ns3::nr::MacCeValue_u::m_crnti, ns3::nr::MacCeListElement_s::m_macCeValue, ns3::nr::MacCeValue_u::m_phr, and ns3::nr::MacCeListElement_s::m_rnti.
|
protectedvirtual |
Forward uplink SR to CCM, called by MAC through CCM SAP interface.
rnti | RNTI of the UE that requested SR |
componentCarrierId | the component carrier ID that forwarded the SR |
Reimplemented in ns3::BwpManagerGnb, and ns3::NrRrComponentCarrierManager.
Definition at line 351 of file nr-no-op-component-carrier-manager.cc.
References ns3::NrGnbComponentCarrierManager::m_ccmMacSapProviderMap.
|
static |
Get the type ID.
Definition at line 48 of file nr-no-op-component-carrier-manager.cc.
|
friend |
allow GnbMacMemberNrMacSapProvider<NrNoOpComponentCarrierManager> class friend access
Definition at line 1 of file nr-no-op-component-carrier-manager.h.
|
friend |
allow MemberNrCcmMacSapUser<NrNoOpComponentCarrierManager> class friend access
Definition at line 1 of file nr-no-op-component-carrier-manager.h.
|
friend |
allow MemberNrCcmRrcSapProvider<NrNoOpComponentCarrierManager> class friend access
Definition at line 1 of file nr-no-op-component-carrier-manager.h.
|
friend |
allow MemberNrCcmRrcSapUser<NrNoOpComponentCarrierManager> class friend access
Definition at line 1 of file nr-no-op-component-carrier-manager.h.
|
protected |
The physical resource block occupancy per carrier.
Definition at line 152 of file nr-no-op-component-carrier-manager.h.
Referenced by DoNotifyPrbOccupancy().