Implements the SCHED SAP and CSCHED SAP for a Proportional Fair scheduler. More...
#include <pf-ff-mac-scheduler.h>
Public Member Functions | |
PfFfMacScheduler () | |
Constructor. | |
virtual | ~PfFfMacScheduler () |
virtual void | DoDispose (void) |
virtual FfMacCschedSapProvider * | GetFfMacCschedSapProvider () |
virtual FfMacSchedSapProvider * | GetFfMacSchedSapProvider () |
virtual void | SetFfMacCschedSapUser (FfMacCschedSapUser *s) |
virtual void | SetFfMacSchedSapUser (FfMacSchedSapUser *s) |
void | TransmissionModeConfigurationUpdate (uint16_t rnti, uint8_t txMode) |
![]() | |
virtual | ~FfMacScheduler () |
![]() | |
Object () | |
virtual | ~Object () |
void | AggregateObject (Ptr< Object > other) |
void | Dispose (void) |
AggregateIterator | GetAggregateIterator (void) const |
virtual TypeId | GetInstanceTypeId (void) const |
template<typename T > | |
Ptr< T > | GetObject (void) const |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
void | Start (void) |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
![]() | |
virtual | ~ObjectBase () |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::PfFfMacScheduler. |
Private Attributes | |
std::map< uint16_t, SbMeasResult_s > | m_a30CqiRxed |
std::map< uint16_t, uint32_t > | m_a30CqiTimers |
std::map< uint16_t, std::vector< uint16_t > > | m_allocationMaps |
Ptr< LteAmc > | m_amc |
std::map< uint16_t, uint32_t > | m_ceBsrRxed |
uint32_t | m_cqiTimersThreshold |
FfMacCschedSapProvider::CschedCellConfigReqParameters | m_cschedCellConfig |
FfMacCschedSapProvider * | m_cschedSapProvider |
FfMacCschedSapUser * | m_cschedSapUser |
std::map< uint16_t, pfsFlowPerf_t > | m_flowStatsDl |
std::map< uint16_t, pfsFlowPerf_t > | m_flowStatsUl |
uint16_t | m_nextRntiUl |
std::map< uint16_t, uint8_t > | m_p10CqiRxed |
std::map< uint16_t, uint32_t > | m_p10CqiTimers |
std::map< LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters > | m_rlcBufferReq |
FfMacSchedSapProvider * | m_schedSapProvider |
FfMacSchedSapUser * | m_schedSapUser |
double | m_timeWindow |
std::map< uint16_t, std::vector< double > > | m_ueCqi |
std::map< uint16_t, uint32_t > | m_ueCqiTimers |
std::map< uint16_t, uint8_t > | m_uesTxMode |
Friends | |
class | PfSchedulerMemberCschedSapProvider |
class | PfSchedulerMemberSchedSapProvider |
Additional Inherited Members | |
![]() | |
Object (const Object &o) | |
virtual void | DoStart (void) |
virtual void | NotifyNewAggregate (void) |
Implements the SCHED SAP and CSCHED SAP for a Proportional Fair scheduler.
This class implements the interface defined by the FfMacScheduler abstract class
Definition at line 61 of file pf-ff-mac-scheduler.h.
ns3::PfFfMacScheduler::PfFfMacScheduler | ( | ) |
Constructor.
Creates the MAC Scheduler interface implementation
Definition at line 214 of file pf-ff-mac-scheduler.cc.
References m_amc, m_cschedSapProvider, m_schedSapProvider, PfSchedulerMemberCschedSapProvider, and PfSchedulerMemberSchedSapProvider.
|
virtual |
|
private |
Definition at line 280 of file pf-ff-mac-scheduler.cc.
References ns3::FfMacCschedSapUser::CschedUeConfigCnf(), m_cschedCellConfig, m_cschedSapUser, ns3::FfMacCschedSapUser::CschedUeConfigCnfParameters::m_result, NS_LOG_FUNCTION, and SUCCESS.
Referenced by ns3::PfSchedulerMemberCschedSapProvider::CschedCellConfigReq().
|
private |
Definition at line 309 of file pf-ff-mac-scheduler.cc.
References ns3::pfsFlowPerf_t::flowStart, ns3::pfsFlowPerf_t::lastAveragedThroughput, ns3::pfsFlowPerf_t::lastTtiBytesTrasmitted, m_flowStatsDl, m_flowStatsUl, ns3::FfMacCschedSapProvider::CschedLcConfigReqParameters::m_logicalChannelConfigList, ns3::FfMacCschedSapProvider::CschedLcConfigReqParameters::m_rnti, ns3::Now(), NS_LOG_ERROR, NS_LOG_FUNCTION, and ns3::pfsFlowPerf_t::totalBytesTransmitted.
Referenced by ns3::PfSchedulerMemberCschedSapProvider::CschedLcConfigReq().
|
private |
Definition at line 343 of file pf-ff-mac-scheduler.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::PfSchedulerMemberCschedSapProvider::CschedLcReleaseReq().
|
private |
Definition at line 292 of file pf-ff-mac-scheduler.cc.
References ns3::FfMacCschedSapProvider::CschedUeConfigReqParameters::m_rnti, ns3::FfMacCschedSapProvider::CschedUeConfigReqParameters::m_transmissionMode, m_uesTxMode, and NS_LOG_FUNCTION.
Referenced by ns3::PfSchedulerMemberCschedSapProvider::CschedUeConfigReq().
|
private |
Definition at line 351 of file pf-ff-mac-scheduler.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::PfSchedulerMemberCschedSapProvider::CschedUeReleaseReq().
|
virtual |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
It is safe to call GetObject from within this method.
Reimplemented from ns3::FfMacScheduler.
Definition at line 231 of file pf-ff-mac-scheduler.cc.
References m_cschedSapProvider, m_schedSapProvider, and NS_LOG_FUNCTION.
|
private |
Definition at line 722 of file pf-ff-mac-scheduler.cc.
References CqiListElement_s::A30, m_a30CqiRxed, m_a30CqiTimers, ns3::FfMacSchedSapProvider::SchedDlCqiInfoReqParameters::m_cqiList, m_cqiTimersThreshold, m_p10CqiRxed, m_p10CqiTimers, NS_LOG_ERROR, NS_LOG_FUNCTION, and CqiListElement_s::P10.
Referenced by ns3::PfSchedulerMemberSchedSapProvider::SchedDlCqiInfoReq().
|
private |
Definition at line 392 of file pf-ff-mac-scheduler.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::PfSchedulerMemberSchedSapProvider::SchedDlMacBufferReq().
|
private |
Definition at line 384 of file pf-ff-mac-scheduler.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::PfSchedulerMemberSchedSapProvider::SchedDlPagingBufferReq().
|
private |
Definition at line 714 of file pf-ff-mac-scheduler.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::PfSchedulerMemberSchedSapProvider::SchedDlRachInfoReq().
|
private |
Definition at line 360 of file pf-ff-mac-scheduler.cc.
References ns3::FfMacSchedSapProvider::SchedDlRlcBufferReqParameters::m_logicalChannelIdentity, m_rlcBufferReq, ns3::FfMacSchedSapProvider::SchedDlRlcBufferReqParameters::m_rnti, and NS_LOG_FUNCTION.
Referenced by ns3::PfSchedulerMemberSchedSapProvider::SchedDlRlcBufferReq().
|
private |
Definition at line 438 of file pf-ff-mac-scheduler.cc.
References ns3::LteAmc::GetMcsFromCqi(), GetRbgSize(), ns3::LteAmc::GetTbSizeFromMcs(), LcActivePerFlow(), m_a30CqiRxed, m_amc, ns3::FfMacSchedSapUser::SchedDlConfigIndParameters::m_buildDataList, m_cschedCellConfig, BuildDataListElement_s::m_dci, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_dlBandwidth, m_flowStatsDl, RlcPduListElement_s::m_logicalChannelIdentity, DlDciListElement_s::m_mcs, DlDciListElement_s::m_ndi, ns3::FfMacSchedSapUser::SchedDlConfigIndParameters::m_nrOfPdcchOfdmSymbols, DlDciListElement_s::m_rbBitmap, DlDciListElement_s::m_resAlloc, m_rlcBufferReq, BuildDataListElement_s::m_rlcPduList, DlDciListElement_s::m_rnti, BuildDataListElement_s::m_rnti, DlDciListElement_s::m_rv, m_schedSapUser, ns3::FfMacSchedSapProvider::SchedDlTriggerReqParameters::m_sfnSf, RlcPduListElement_s::m_size, DlDciListElement_s::m_tbsSize, m_timeWindow, m_uesTxMode, NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_FUNCTION, RefreshDlCqiMaps(), ns3::FfMacSchedSapUser::SchedDlConfigInd(), ns3::TransmissionModesLayers::TxMode2LayerNum(), and UpdateDlRlcBufferInfo().
Referenced by ns3::PfSchedulerMemberSchedSapProvider::SchedDlTriggerReq().
|
private |
Definition at line 1051 of file pf-ff-mac-scheduler.cc.
References ns3::LteFfConverter::fpS11dot3toDouble(), m_allocationMaps, m_cqiTimersThreshold, m_cschedCellConfig, ns3::FfMacSchedSapProvider::SchedUlCqiInfoReqParameters::m_sfnSf, UlCqi_s::m_sinr, m_ueCqi, m_ueCqiTimers, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_ulBandwidth, ns3::FfMacSchedSapProvider::SchedUlCqiInfoReqParameters::m_ulCqi, NO_SINR, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by ns3::PfSchedulerMemberSchedSapProvider::SchedUlCqiInfoReq().
|
private |
Definition at line 1017 of file pf-ff-mac-scheduler.cc.
References MacCeListElement_s::BSR, ns3::BufferSizeLevelBsr::BsrId2BufferSize(), m_ceBsrRxed, ns3::FfMacSchedSapProvider::SchedUlMacCtrlInfoReqParameters::m_macCeList, and NS_LOG_FUNCTION.
Referenced by ns3::PfSchedulerMemberSchedSapProvider::SchedUlMacCtrlInfoReq().
|
private |
Definition at line 1001 of file pf-ff-mac-scheduler.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::PfSchedulerMemberSchedSapProvider::SchedUlNoiseInterferenceReq().
|
private |
Definition at line 1009 of file pf-ff-mac-scheduler.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::PfSchedulerMemberSchedSapProvider::SchedUlSrInfoReq().
|
private |
Definition at line 814 of file pf-ff-mac-scheduler.cc.
References EstimateUlSinr(), ns3::LteAmc::GetCqiFromSpectralEfficiency(), ns3::LteAmc::GetMcsFromCqi(), ns3::LteAmc::GetTbSizeFromMcs(), UlDciListElement_s::m_aggrLevel, m_allocationMaps, m_amc, UlDciListElement_s::m_cceIndex, m_ceBsrRxed, UlDciListElement_s::m_cqiRequest, m_cschedCellConfig, UlDciListElement_s::m_dai, ns3::FfMacSchedSapUser::SchedUlConfigIndParameters::m_dciList, m_flowStatsUl, UlDciListElement_s::m_freqHopping, UlDciListElement_s::m_hopping, UlDciListElement_s::m_mcs, UlDciListElement_s::m_n2Dmrs, UlDciListElement_s::m_ndi, m_nextRntiUl, UlDciListElement_s::m_pdcchPowerOffset, UlDciListElement_s::m_rbLen, UlDciListElement_s::m_rbStart, UlDciListElement_s::m_rnti, m_schedSapUser, ns3::FfMacSchedSapProvider::SchedUlTriggerReqParameters::m_sfnSf, UlDciListElement_s::m_tbSize, m_timeWindow, UlDciListElement_s::m_tpc, m_ueCqi, UlDciListElement_s::m_ueTxAntennaSelection, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_ulBandwidth, UlDciListElement_s::m_ulIndex, NO_SINR, NS_LOG_DEBUG, NS_LOG_ERROR, NS_LOG_FUNCTION, RefreshUlCqiMaps(), ns3::FfMacSchedSapUser::SchedUlConfigInd(), and UpdateUlRlcBufferInfo().
Referenced by ns3::PfSchedulerMemberSchedSapProvider::SchedUlTriggerReq().
|
private |
Definition at line 783 of file pf-ff-mac-scheduler.cc.
References m_cschedCellConfig, m_ueCqi, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_ulBandwidth, and NO_SINR.
Referenced by DoSchedUlTriggerReq().
|
virtual |
Implements ns3::FfMacScheduler.
Definition at line 268 of file pf-ff-mac-scheduler.cc.
References m_cschedSapProvider.
|
virtual |
Implements ns3::FfMacScheduler.
Definition at line 274 of file pf-ff-mac-scheduler.cc.
References m_schedSapProvider.
|
private |
Definition at line 400 of file pf-ff-mac-scheduler.cc.
References ns3::PfType0AllocationRbg.
Referenced by DoSchedDlTriggerReq().
|
static |
This method returns the TypeId associated to ns3::PfFfMacScheduler.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::FfMacScheduler.
Definition at line 239 of file pf-ff-mac-scheduler.cc.
References m_cqiTimersThreshold, and ns3::TypeId::SetParent().
|
private |
Definition at line 415 of file pf-ff-mac-scheduler.cc.
References m_rlcBufferReq.
Referenced by DoSchedDlTriggerReq().
|
private |
Definition at line 1111 of file pf-ff-mac-scheduler.cc.
References m_a30CqiRxed, m_a30CqiTimers, m_p10CqiRxed, m_p10CqiTimers, NS_ASSERT_MSG, and NS_LOG_INFO.
Referenced by DoSchedDlTriggerReq().
|
private |
Definition at line 1164 of file pf-ff-mac-scheduler.cc.
References m_ueCqi, m_ueCqiTimers, NS_ASSERT_MSG, and NS_LOG_INFO.
Referenced by DoSchedUlTriggerReq().
|
virtual |
set the user part of the FfMacCschedSap that this Scheduler will interact with. Normally this part of the SAP is exported by the MAC.
s |
Implements ns3::FfMacScheduler.
Definition at line 256 of file pf-ff-mac-scheduler.cc.
References m_cschedSapUser.
|
virtual |
set the user part of the FfMacSchedSap that this Scheduler will interact with. Normally this part of the SAP is exported by the MAC.
s |
Implements ns3::FfMacScheduler.
Definition at line 262 of file pf-ff-mac-scheduler.cc.
References m_schedSapUser.
void ns3::PfFfMacScheduler::TransmissionModeConfigurationUpdate | ( | uint16_t | rnti, |
uint8_t | txMode | ||
) |
Definition at line 1270 of file pf-ff-mac-scheduler.cc.
References ns3::FfMacCschedSapUser::CschedUeConfigUpdateInd(), m_cschedSapUser, ns3::FfMacCschedSapUser::CschedUeConfigUpdateIndParameters::m_rnti, ns3::FfMacCschedSapUser::CschedUeConfigUpdateIndParameters::m_transmissionMode, and NS_LOG_FUNCTION.
Referenced by ns3::LenaMimoTestCase::DoRun().
|
private |
Definition at line 1194 of file pf-ff-mac-scheduler.cc.
References m_rlcBufferReq, and NS_LOG_ERROR.
Referenced by DoSchedDlTriggerReq().
|
private |
Definition at line 1245 of file pf-ff-mac-scheduler.cc.
References m_ceBsrRxed, and NS_LOG_ERROR.
Referenced by DoSchedUlTriggerReq().
|
friend |
Definition at line 86 of file pf-ff-mac-scheduler.h.
Referenced by PfFfMacScheduler().
|
friend |
Definition at line 87 of file pf-ff-mac-scheduler.h.
Referenced by PfFfMacScheduler().
|
private |
Definition at line 177 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedDlCqiInfoReq(), DoSchedDlTriggerReq(), and RefreshDlCqiMaps().
|
private |
Definition at line 181 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().
|
private |
Definition at line 187 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedUlCqiInfoReq(), and DoSchedUlTriggerReq().
Definition at line 146 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedDlTriggerReq(), DoSchedUlTriggerReq(), and PfFfMacScheduler().
|
private |
Definition at line 201 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedUlMacCtrlInfoReq(), DoSchedUlTriggerReq(), and UpdateUlRlcBufferInfo().
|
private |
Definition at line 218 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedDlCqiInfoReq(), DoSchedUlCqiInfoReq(), and GetTypeId().
|
private |
Definition at line 211 of file pf-ff-mac-scheduler.h.
Referenced by DoCschedCellConfigReq(), DoSchedDlTriggerReq(), DoSchedUlCqiInfoReq(), DoSchedUlTriggerReq(), and EstimateUlSinr().
|
private |
Definition at line 206 of file pf-ff-mac-scheduler.h.
Referenced by DoDispose(), GetFfMacCschedSapProvider(), and PfFfMacScheduler().
|
private |
Definition at line 204 of file pf-ff-mac-scheduler.h.
Referenced by DoCschedCellConfigReq(), SetFfMacCschedSapUser(), and TransmissionModeConfigurationUpdate().
|
private |
Definition at line 157 of file pf-ff-mac-scheduler.h.
Referenced by DoCschedLcConfigReq(), and DoSchedDlTriggerReq().
|
private |
Definition at line 162 of file pf-ff-mac-scheduler.h.
Referenced by DoCschedLcConfigReq(), and DoSchedUlTriggerReq().
|
private |
Definition at line 216 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedUlTriggerReq().
|
private |
Definition at line 168 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().
|
private |
Definition at line 172 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().
|
private |
Definition at line 151 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedDlRlcBufferReq(), DoSchedDlTriggerReq(), LcActivePerFlow(), and UpdateDlRlcBufferInfo().
|
private |
Definition at line 207 of file pf-ff-mac-scheduler.h.
Referenced by DoDispose(), GetFfMacSchedSapProvider(), and PfFfMacScheduler().
|
private |
Definition at line 205 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedDlTriggerReq(), DoSchedUlTriggerReq(), and SetFfMacSchedSapUser().
|
private |
Definition at line 214 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedDlTriggerReq(), and DoSchedUlTriggerReq().
|
private |
Definition at line 192 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedUlCqiInfoReq(), DoSchedUlTriggerReq(), EstimateUlSinr(), and RefreshUlCqiMaps().
|
private |
Definition at line 196 of file pf-ff-mac-scheduler.h.
Referenced by DoSchedUlCqiInfoReq(), and RefreshUlCqiMaps().
|
private |
Definition at line 220 of file pf-ff-mac-scheduler.h.
Referenced by DoCschedUeConfigReq(), and DoSchedDlTriggerReq().