Implements the SCHED SAP and CSCHED SAP for a Frequency Domain Token Bank Fair Queue scheduler. More...
#include "fdtbfq-ff-mac-scheduler.h"
Public Member Functions | |
FdTbfqFfMacScheduler () | |
Constructor. More... | |
virtual | ~FdTbfqFfMacScheduler () |
Destructor. More... | |
virtual void | DoDispose (void) |
Destructor implementation. More... | |
virtual FfMacCschedSapProvider * | GetFfMacCschedSapProvider () |
Get FF MAC CSched SAP provider function. More... | |
virtual FfMacSchedSapProvider * | GetFfMacSchedSapProvider () |
Get FF MAC sched SAP provider function. More... | |
virtual LteFfrSapUser * | GetLteFfrSapUser () |
Get FFR SAP user function. More... | |
virtual void | SetFfMacCschedSapUser (FfMacCschedSapUser *s) |
Set FF MAC Csched SAP user function. More... | |
virtual void | SetFfMacSchedSapUser (FfMacSchedSapUser *s) |
Set FF MAC sched SAP user function. More... | |
virtual void | SetLteFfrSapProvider (LteFfrSapProvider *s) |
Set FFR SAP provider function. More... | |
void | TransmissionModeConfigurationUpdate (uint16_t rnti, uint8_t txMode) |
Transmisson mode config update function. More... | |
Public Member Functions inherited from ns3::FfMacScheduler | |
FfMacScheduler () | |
constructor More... | |
virtual | ~FfMacScheduler () |
destructor More... | |
Public Member Functions inherited from ns3::Object | |
Object () | |
Constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose (void) |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator (void) const |
Get an iterator to the Objects aggregated to this one. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Get the most derived TypeId for this Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (void) const |
Get a pointer to the requested aggregated Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
void | Initialize (void) |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized (void) const |
Check if the object has been initialized. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising erros. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::FfMacScheduler | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Member Functions | |
void | DoCschedCellConfigReq (const struct FfMacCschedSapProvider::CschedCellConfigReqParameters ¶ms) |
Csched cell config request function. More... | |
void | DoCschedLcConfigReq (const struct FfMacCschedSapProvider::CschedLcConfigReqParameters ¶ms) |
CSched LC config request function. More... | |
void | DoCschedLcReleaseReq (const struct FfMacCschedSapProvider::CschedLcReleaseReqParameters ¶ms) |
CSched LC release request function. More... | |
void | DoCschedUeConfigReq (const struct FfMacCschedSapProvider::CschedUeConfigReqParameters ¶ms) |
CSched UE config request function. More... | |
void | DoCschedUeReleaseReq (const struct FfMacCschedSapProvider::CschedUeReleaseReqParameters ¶ms) |
CSched UE release request function. More... | |
void | DoSchedDlCqiInfoReq (const struct FfMacSchedSapProvider::SchedDlCqiInfoReqParameters ¶ms) |
Sched DL CQI info request function. More... | |
void | DoSchedDlMacBufferReq (const struct FfMacSchedSapProvider::SchedDlMacBufferReqParameters ¶ms) |
Sched DL MAC buffer request function. More... | |
void | DoSchedDlPagingBufferReq (const struct FfMacSchedSapProvider::SchedDlPagingBufferReqParameters ¶ms) |
Sched DL paging buffer request function. More... | |
void | DoSchedDlRachInfoReq (const struct FfMacSchedSapProvider::SchedDlRachInfoReqParameters ¶ms) |
Sched DL RACH info request function. More... | |
void | DoSchedDlRlcBufferReq (const struct FfMacSchedSapProvider::SchedDlRlcBufferReqParameters ¶ms) |
Sched DL RLC buffer request function. More... | |
void | DoSchedDlTriggerReq (const struct FfMacSchedSapProvider::SchedDlTriggerReqParameters ¶ms) |
Sched DL trigger request function. More... | |
void | DoSchedUlCqiInfoReq (const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters ¶ms) |
Sched UL CQI info request function. More... | |
void | DoSchedUlMacCtrlInfoReq (const struct FfMacSchedSapProvider::SchedUlMacCtrlInfoReqParameters ¶ms) |
Sched UL MAC control info request function. More... | |
void | DoSchedUlNoiseInterferenceReq (const struct FfMacSchedSapProvider::SchedUlNoiseInterferenceReqParameters ¶ms) |
Sched UL noise interference request function. More... | |
void | DoSchedUlSrInfoReq (const struct FfMacSchedSapProvider::SchedUlSrInfoReqParameters ¶ms) |
Sched UL SR info request function. More... | |
void | DoSchedUlTriggerReq (const struct FfMacSchedSapProvider::SchedUlTriggerReqParameters ¶ms) |
Sched UL trigger request function. More... | |
double | EstimateUlSinr (uint16_t rnti, uint16_t rb) |
Estimate UL SNR function. More... | |
int | GetRbgSize (int dlbandwidth) |
Get RBG size function. More... | |
uint8_t | HarqProcessAvailability (uint16_t rnti) |
Return the availability of free process for the RNTI specified. More... | |
unsigned int | LcActivePerFlow (uint16_t rnti) |
LC Active per flow function. More... | |
void | RefreshDlCqiMaps (void) |
Refresh DL CQI maps function. More... | |
void | RefreshHarqProcesses () |
Refresh HARQ processes according to the timers. More... | |
void | RefreshUlCqiMaps (void) |
Refresh UL CQI maps function. More... | |
void | UpdateDlRlcBufferInfo (uint16_t rnti, uint8_t lcid, uint16_t size) |
Update DL RLC buffer info function. More... | |
uint8_t | UpdateHarqProcessId (uint16_t rnti) |
Update and return a new process Id for the RNTI specified. More... | |
void | UpdateUlRlcBufferInfo (uint16_t rnti, uint16_t size) |
Update UL RLC buffer info function. More... | |
Private Attributes | |
uint64_t | bankSize |
the number of bytes in token bank More... | |
std::map< uint16_t, SbMeasResult_s > | m_a30CqiRxed |
Map of UE's DL CQI A30 received. More... | |
std::map< uint16_t, uint32_t > | m_a30CqiTimers |
Map of UE's timers on DL CQI A30 received. More... | |
std::map< uint16_t, std::vector< uint16_t > > | m_allocationMaps |
Map of previous allocated UE per RBG (used to retrieve info from UL-CQI) More... | |
Ptr< LteAmc > | m_amc |
amc More... | |
std::map< uint16_t, uint32_t > | m_ceBsrRxed |
Map of UE's buffer status reports received. More... | |
uint32_t | m_cqiTimersThreshold |
of TTIs for which a CQI can be considered validMore... | |
uint32_t | m_creditableThreshold |
threshold of flow credit More... | |
uint32_t | m_creditLimit |
flow credit limit (byte) More... | |
FfMacCschedSapProvider::CschedCellConfigReqParameters | m_cschedCellConfig |
Csched cell config. More... | |
FfMacCschedSapProvider * | m_cschedSapProvider |
CSched SAP provider. More... | |
FfMacCschedSapUser * | m_cschedSapUser |
Csched SAP user. More... | |
int | m_debtLimit |
flow debt limit (byte) More... | |
std::map< uint16_t, uint8_t > | m_dlHarqCurrentProcessId |
DL HARQ current process ID. More... | |
std::map< uint16_t, DlHarqProcessesDciBuffer_t > | m_dlHarqProcessesDciBuffer |
DL HARQ process DCI buffer. More... | |
std::map< uint16_t, DlHarqRlcPduListBuffer_t > | m_dlHarqProcessesRlcPduListBuffer |
DL HARQ process RLC PDU list buffer. More... | |
std::map< uint16_t, DlHarqProcessesStatus_t > | m_dlHarqProcessesStatus |
DL HARQ process status. More... | |
std::map< uint16_t, DlHarqProcessesTimer_t > | m_dlHarqProcessesTimer |
DL HARQ process timer. More... | |
std::vector< DlInfoListElement_s > | m_dlInfoListBuffered |
HARQ retx buffered. More... | |
LteFfrSapProvider * | m_ffrSapProvider |
FFR SAP provider. More... | |
LteFfrSapUser * | m_ffrSapUser |
FFR SAP user. More... | |
std::map< uint16_t, fdtbfqsFlowPerf_t > | m_flowStatsDl |
Map of UE statistics (per RNTI basis) in downlink. More... | |
std::map< uint16_t, fdtbfqsFlowPerf_t > | m_flowStatsUl |
Map of UE statistics (per RNTI basis) More... | |
bool | m_harqOn |
m_harqOn when false inhibit the HARQ mechanisms (by default active) More... | |
uint16_t | m_nextRntiUl |
RNTI of the next user to be served next scheduling in UL. More... | |
std::map< uint16_t, uint8_t > | m_p10CqiRxed |
Map of UE's DL CQI P01 received. More... | |
std::map< uint16_t, uint32_t > | m_p10CqiTimers |
Map of UE's timers on DL CQI P01 received. More... | |
std::vector< uint16_t > | m_rachAllocationMap |
RACH allocation map. More... | |
std::vector< struct RachListElement_s > | m_rachList |
RACH list. More... | |
std::map< LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters > | m_rlcBufferReq |
Vectors of UE's LC info. More... | |
FfMacSchedSapProvider * | m_schedSapProvider |
sched SAP provider More... | |
FfMacSchedSapUser * | m_schedSapUser |
sched SAP user More... | |
uint32_t | m_tokenPoolSize |
maximum size of token pool (byte) More... | |
std::map< uint16_t, std::vector< double > > | m_ueCqi |
Map of UEs' UL-CQI per RBG. More... | |
std::map< uint16_t, uint32_t > | m_ueCqiTimers |
Map of UEs' timers on UL-CQI per RBG. More... | |
std::map< uint16_t, uint8_t > | m_uesTxMode |
txMode of the UEs More... | |
uint8_t | m_ulGrantMcs |
MCS for UL grant (default 0) More... | |
std::map< uint16_t, uint8_t > | m_ulHarqCurrentProcessId |
UL HARQ current process ID. More... | |
std::map< uint16_t, UlHarqProcessesDciBuffer_t > | m_ulHarqProcessesDciBuffer |
UL HARQ process DCI buffer. More... | |
std::map< uint16_t, UlHarqProcessesStatus_t > | m_ulHarqProcessesStatus |
UL HARQ process status. More... | |
Friends | |
class | MemberCschedSapProvider< FdTbfqFfMacScheduler > |
allow MemberCschedSapProvider<FdTbfqFfMacScheduler> class friend access More... | |
class | MemberSchedSapProvider< FdTbfqFfMacScheduler > |
allow MemberSchedSapProvider<FdTbfqFfMacScheduler> claass friend access More... | |
Additional Inherited Members | |
Public Types inherited from ns3::FfMacScheduler | |
enum | UlCqiFilter_t { SRS_UL_CQI, PUSCH_UL_CQI, ALL_UL_CQI } |
The type of UL CQI to be filtered (ALL means accept all the CQI, where a new CQI of any type overwrite the old one, even of another type) More... | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | DoInitialize (void) |
Initialize() implementation. More... | |
virtual void | NotifyNewAggregate (void) |
Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
Protected Attributes inherited from ns3::FfMacScheduler | |
UlCqiFilter_t | m_ulCqiFilter |
UL CQI filter. More... | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Implements the SCHED SAP and CSCHED SAP for a Frequency Domain Token Bank Fair Queue scheduler.
This class implements the interface defined by the FfMacScheduler abstract class
ns3::FdTbfqFfMacScheduler is accessible through the following paths with Config::Set and Config::Connect:
No TraceSources are defined for this type.
Size of this type is 888 bytes (on a 64-bit architecture).
Definition at line 83 of file fdtbfq-ff-mac-scheduler.h.
ns3::FdTbfqFfMacScheduler::FdTbfqFfMacScheduler | ( | ) |
Constructor.
Creates the MAC Scheduler interface implementation
Definition at line 52 of file fdtbfq-ff-mac-scheduler.cc.
References m_amc, m_cschedSapProvider, m_ffrSapProvider, m_ffrSapUser, and m_schedSapProvider.
|
virtual |
|
private |
Csched cell config request function.
params | the CSched cell config request parameters |
Definition at line 172 of file fdtbfq-ff-mac-scheduler.cc.
References ns3::FfMacCschedSapUser::CschedUeConfigCnf(), m_cschedCellConfig, m_cschedSapUser, m_rachAllocationMap, ns3::FfMacCschedSapUser::CschedUeConfigCnfParameters::m_result, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_ulBandwidth, NS_LOG_FUNCTION, and ns3::SUCCESS.
|
private |
CSched LC config request function.
params | the CSched LC config request parameters |
Definition at line 224 of file fdtbfq-ff-mac-scheduler.cc.
References ns3::fdtbfqsFlowPerf_t::burstCredit, ns3::fdtbfqsFlowPerf_t::counter, ns3::fdtbfqsFlowPerf_t::creditableThreshold, ns3::fdtbfqsFlowPerf_t::debtLimit, ns3::fdtbfqsFlowPerf_t::flowStart, m_creditableThreshold, m_creditLimit, m_debtLimit, m_flowStatsDl, m_flowStatsUl, ns3::FfMacCschedSapProvider::CschedLcConfigReqParameters::m_logicalChannelConfigList, ns3::FfMacCschedSapProvider::CschedLcConfigReqParameters::m_rnti, m_tokenPoolSize, ns3::fdtbfqsFlowPerf_t::maxTokenPoolSize, ns3::Simulator::Now(), NS_LOG_FUNCTION, ns3::fdtbfqsFlowPerf_t::packetArrivalRate, ns3::fdtbfqsFlowPerf_t::tokenGenerationRate, and ns3::fdtbfqsFlowPerf_t::tokenPoolSize.
|
private |
CSched LC release request function.
params | the CSChed LC releease request parameters |
Definition at line 276 of file fdtbfq-ff-mac-scheduler.cc.
References ns3::FfMacCschedSapProvider::CschedLcReleaseReqParameters::m_logicalChannelIdentity, m_rlcBufferReq, ns3::FfMacCschedSapProvider::CschedLcReleaseReqParameters::m_rnti, and NS_LOG_FUNCTION.
|
private |
CSched UE config request function.
params | CSChed UE config request parameters |
Definition at line 185 of file fdtbfq-ff-mac-scheduler.cc.
References m_dlHarqCurrentProcessId, m_dlHarqProcessesDciBuffer, m_dlHarqProcessesRlcPduListBuffer, m_dlHarqProcessesStatus, m_dlHarqProcessesTimer, ns3::FfMacCschedSapProvider::CschedUeConfigReqParameters::m_rnti, ns3::FfMacCschedSapProvider::CschedUeConfigReqParameters::m_transmissionMode, m_uesTxMode, m_ulHarqCurrentProcessId, m_ulHarqProcessesDciBuffer, m_ulHarqProcessesStatus, and NS_LOG_FUNCTION.
|
private |
CSched UE release request function.
params | the CSched UE release request parameters |
Definition at line 301 of file fdtbfq-ff-mac-scheduler.cc.
References m_ceBsrRxed, m_dlHarqCurrentProcessId, m_dlHarqProcessesDciBuffer, m_dlHarqProcessesRlcPduListBuffer, m_dlHarqProcessesStatus, m_dlHarqProcessesTimer, m_flowStatsDl, m_flowStatsUl, m_nextRntiUl, m_rlcBufferReq, ns3::FfMacCschedSapProvider::CschedUeReleaseReqParameters::m_rnti, m_uesTxMode, m_ulHarqCurrentProcessId, m_ulHarqProcessesDciBuffer, m_ulHarqProcessesStatus, and NS_LOG_FUNCTION.
|
virtual |
Destructor implementation.
This method is called by Dispose() or by the Object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overridden 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 71 of file fdtbfq-ff-mac-scheduler.cc.
References m_cschedSapProvider, m_dlHarqProcessesDciBuffer, m_dlHarqProcessesRlcPduListBuffer, m_dlHarqProcessesTimer, m_dlInfoListBuffered, m_ffrSapUser, m_schedSapProvider, m_ulHarqCurrentProcessId, m_ulHarqProcessesDciBuffer, m_ulHarqProcessesStatus, and NS_LOG_FUNCTION.
|
private |
Sched DL CQI info request function.
params | the Sched DL CQI info request parameters |
Definition at line 1491 of file fdtbfq-ff-mac-scheduler.cc.
References ns3::CqiListElement_s::A30, m_a30CqiRxed, m_a30CqiTimers, ns3::FfMacSchedSapProvider::SchedDlCqiInfoReqParameters::m_cqiList, m_cqiTimersThreshold, m_ffrSapProvider, m_p10CqiRxed, m_p10CqiTimers, NS_LOG_ERROR, NS_LOG_FUNCTION, NS_LOG_LOGIC(), ns3::CqiListElement_s::P10, and ns3::LteFfrSapProvider::ReportDlCqiInfo().
|
private |
Sched DL MAC buffer request function.
params | Sched DL MAC buffer request parameters |
Definition at line 374 of file fdtbfq-ff-mac-scheduler.cc.
References NS_FATAL_ERROR, and NS_LOG_FUNCTION.
|
private |
Sched DL paging buffer request function.
params | the Sched DL paging buffer request parameters |
Definition at line 366 of file fdtbfq-ff-mac-scheduler.cc.
References NS_FATAL_ERROR, and NS_LOG_FUNCTION.
|
private |
Sched DL RACH info request function.
params | the Sched DL RACH info request parameters |
Definition at line 1481 of file fdtbfq-ff-mac-scheduler.cc.
References ns3::FfMacSchedSapProvider::SchedDlRachInfoReqParameters::m_rachList, m_rachList, and NS_LOG_FUNCTION.
|
private |
Sched DL RLC buffer request function.
params | the Sched DL RLC buffer request parameters |
Definition at line 342 of file fdtbfq-ff-mac-scheduler.cc.
References ns3::FfMacSchedSapProvider::SchedDlRlcBufferReqParameters::m_logicalChannelIdentity, m_rlcBufferReq, ns3::FfMacSchedSapProvider::SchedDlRlcBufferReqParameters::m_rnti, and NS_LOG_FUNCTION.
|
private |
Sched DL trigger request function.
params | struct FfMacSchedSapProvider::SchedDlTriggerReqParameters& |
Definition at line 527 of file fdtbfq-ff-mac-scheduler.cc.
References bankSize, ns3::LteFfrSapProvider::GetAvailableDlRbg(), ns3::LteFfrSapProvider::GetAvailableUlRbg(), GetRbgSize(), ns3::LteFfrSapProvider::GetTpc(), HARQ_PROC_NUM, HarqProcessAvailability(), ns3::if(), ns3::LteFfrSapProvider::IsDlRbgAvailableForUe(), LcActivePerFlow(), m_a30CqiRxed, ns3::UlDciListElement_s::m_aggrLevel, m_amc, ns3::FfMacSchedSapUser::SchedDlConfigIndParameters::m_buildDataList, ns3::FfMacSchedSapUser::SchedDlConfigIndParameters::m_buildRarList, ns3::UlDciListElement_s::m_cceIndex, ns3::UlDciListElement_s::m_cqiRequest, m_cschedCellConfig, ns3::UlDciListElement_s::m_dai, ns3::BuildDataListElement_s::m_dci, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_dlBandwidth, m_dlHarqProcessesDciBuffer, m_dlHarqProcessesRlcPduListBuffer, m_dlHarqProcessesStatus, m_dlHarqProcessesTimer, ns3::FfMacSchedSapProvider::SchedDlTriggerReqParameters::m_dlInfoList, m_dlInfoListBuffered, m_ffrSapProvider, m_flowStatsDl, ns3::UlDciListElement_s::m_freqHopping, m_harqOn, ns3::DlDciListElement_s::m_harqProcess, ns3::UlDciListElement_s::m_hopping, ns3::RlcPduListElement_s::m_logicalChannelIdentity, ns3::DlDciListElement_s::m_mcs, ns3::UlDciListElement_s::m_mcs, ns3::UlDciListElement_s::m_n2Dmrs, ns3::DlDciListElement_s::m_ndi, ns3::UlDciListElement_s::m_ndi, ns3::FfMacSchedSapUser::SchedDlConfigIndParameters::m_nrOfPdcchOfdmSymbols, ns3::UlDciListElement_s::m_pdcchPowerOffset, m_rachAllocationMap, m_rachList, ns3::DlDciListElement_s::m_rbBitmap, ns3::UlDciListElement_s::m_rbLen, ns3::UlDciListElement_s::m_rbStart, ns3::DlDciListElement_s::m_resAlloc, m_rlcBufferReq, ns3::BuildDataListElement_s::m_rlcPduList, ns3::DlDciListElement_s::m_rnti, ns3::UlDciListElement_s::m_rnti, ns3::BuildDataListElement_s::m_rnti, ns3::BuildRarListElement_s::m_rnti, ns3::DlDciListElement_s::m_rv, m_schedSapUser, ns3::FfMacSchedSapProvider::SchedDlTriggerReqParameters::m_sfnSf, ns3::RlcPduListElement_s::m_size, ns3::UlDciListElement_s::m_tbSize, ns3::DlDciListElement_s::m_tbsSize, ns3::DlDciListElement_s::m_tpc, ns3::UlDciListElement_s::m_tpc, m_uesTxMode, ns3::UlDciListElement_s::m_ueTxAntennaSelection, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_ulBandwidth, m_ulGrantMcs, m_ulHarqCurrentProcessId, m_ulHarqProcessesDciBuffer, ns3::UlDciListElement_s::m_ulIndex, ns3::DlInfoListElement_s::NACK, NS_ASSERT_MSG(), NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_ERROR, NS_LOG_FUNCTION, NS_LOG_INFO, RefreshDlCqiMaps(), RefreshHarqProcesses(), ns3::FfMacSchedSapUser::SchedDlConfigInd(), ns3::TransmissionModesLayers::TxMode2LayerNum(), UpdateDlRlcBufferInfo(), and UpdateHarqProcessId().
|
private |
Sched UL CQI info request function.
params | the Sched UL CQI info request parameters |
Definition at line 2027 of file fdtbfq-ff-mac-scheduler.cc.
References ns3::FfMacScheduler::ALL_UL_CQI, ns3::LteFfConverter::fpS11dot3toDouble(), m_allocationMaps, m_cqiTimersThreshold, m_cschedCellConfig, ns3::FfMacSchedSapProvider::SchedUlCqiInfoReqParameters::m_sfnSf, ns3::UlCqi_s::m_sinr, ns3::UlCqi_s::m_type, m_ueCqi, m_ueCqiTimers, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_ulBandwidth, ns3::FfMacSchedSapProvider::SchedUlCqiInfoReqParameters::m_ulCqi, ns3::FfMacScheduler::m_ulCqiFilter, ns3::FfMacSchedSapProvider::SchedUlCqiInfoReqParameters::m_vendorSpecificList, NO_SINR, NS_ASSERT, NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_LOG_INFO, ns3::UlCqi_s::PRACH, ns3::UlCqi_s::PUCCH_1, ns3::UlCqi_s::PUCCH_2, ns3::UlCqi_s::PUSCH, ns3::FfMacScheduler::PUSCH_UL_CQI, ns3::UlCqi_s::SRS, SRS_CQI_RNTI_VSP, and ns3::FfMacScheduler::SRS_UL_CQI.
|
private |
Sched UL MAC control info request function.
params | the Sched UL MAC control info request parameters |
Definition at line 1983 of file fdtbfq-ff-mac-scheduler.cc.
References ns3::MacCeListElement_s::BSR, ns3::BufferSizeLevelBsr::BsrId2BufferSize(), m_ceBsrRxed, ns3::FfMacSchedSapProvider::SchedUlMacCtrlInfoReqParameters::m_macCeList, NS_LOG_FUNCTION, and NS_LOG_LOGIC().
|
private |
Sched UL noise interference request function.
params | the Sched UL noise interference request parameters |
Definition at line 1969 of file fdtbfq-ff-mac-scheduler.cc.
References NS_LOG_FUNCTION.
|
private |
Sched UL SR info request function.
params | the Sched UL SR info request parameters |
Definition at line 1976 of file fdtbfq-ff-mac-scheduler.cc.
References NS_LOG_FUNCTION.
|
private |
Sched UL trigger request function.
params | the Sched UL trigger request parameters |
Definition at line 1584 of file fdtbfq-ff-mac-scheduler.cc.
References EstimateUlSinr(), ns3::LteFfrSapProvider::GetAvailableUlRbg(), ns3::LteFfrSapProvider::GetMinContinuousUlBandwidth(), HARQ_PERIOD, HARQ_PROC_NUM, ns3::LteFfrSapProvider::IsUlRbgAvailableForUe(), ns3::UlDciListElement_s::m_aggrLevel, m_allocationMaps, m_amc, ns3::UlDciListElement_s::m_cceIndex, m_ceBsrRxed, ns3::UlDciListElement_s::m_cqiRequest, m_cschedCellConfig, ns3::UlDciListElement_s::m_dai, ns3::FfMacSchedSapUser::SchedUlConfigIndParameters::m_dciList, m_ffrSapProvider, ns3::UlDciListElement_s::m_freqHopping, m_harqOn, ns3::UlDciListElement_s::m_hopping, ns3::UlDciListElement_s::m_mcs, ns3::UlDciListElement_s::m_n2Dmrs, ns3::UlDciListElement_s::m_ndi, m_nextRntiUl, ns3::UlDciListElement_s::m_pdcchPowerOffset, m_rachAllocationMap, ns3::UlDciListElement_s::m_rbLen, ns3::UlDciListElement_s::m_rbStart, ns3::UlDciListElement_s::m_rnti, m_schedSapUser, ns3::FfMacSchedSapProvider::SchedUlTriggerReqParameters::m_sfnSf, ns3::UlDciListElement_s::m_tbSize, ns3::UlDciListElement_s::m_tpc, m_ueCqi, ns3::UlDciListElement_s::m_ueTxAntennaSelection, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_ulBandwidth, m_ulHarqCurrentProcessId, m_ulHarqProcessesDciBuffer, m_ulHarqProcessesStatus, ns3::UlDciListElement_s::m_ulIndex, ns3::FfMacSchedSapProvider::SchedUlTriggerReqParameters::m_ulInfoList, NO_SINR, ns3::UlInfoListElement_s::NotOk, NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_ERROR, NS_LOG_FUNCTION, NS_LOG_INFO, RefreshUlCqiMaps(), ns3::LteFfrSapProvider::ReportUlCqiInfo(), ns3::FfMacSchedSapUser::SchedUlConfigInd(), and UpdateUlRlcBufferInfo().
|
private |
Estimate UL SNR function.
rnti | the RNTI |
rb | the RB |
Definition at line 1553 of file fdtbfq-ff-mac-scheduler.cc.
References m_cschedCellConfig, m_ueCqi, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_ulBandwidth, and NO_SINR.
Referenced by DoSchedUlTriggerReq().
|
virtual |
Get FF MAC CSched SAP provider function.
Implements ns3::FfMacScheduler.
Definition at line 148 of file fdtbfq-ff-mac-scheduler.cc.
References m_cschedSapProvider.
|
virtual |
Get FF MAC sched SAP provider function.
Implements ns3::FfMacScheduler.
Definition at line 154 of file fdtbfq-ff-mac-scheduler.cc.
References m_schedSapProvider.
|
virtual |
Get FFR SAP user function.
Implements ns3::FfMacScheduler.
Definition at line 166 of file fdtbfq-ff-mac-scheduler.cc.
References m_ffrSapUser.
|
private |
Get RBG size function.
dlbandwidth | the DL bandwidth |
Definition at line 382 of file fdtbfq-ff-mac-scheduler.cc.
References ns3::FdTbfqType0AllocationRbg.
Referenced by DoSchedDlTriggerReq().
|
static |
Get the type ID.
Definition at line 87 of file fdtbfq-ff-mac-scheduler.cc.
References m_cqiTimersThreshold, m_creditableThreshold, m_creditLimit, m_debtLimit, m_harqOn, m_tokenPoolSize, m_ulGrantMcs, ns3::MakeBooleanAccessor(), ns3::MakeBooleanChecker(), ns3::MakeIntegerAccessor(), ns3::MakeUintegerAccessor(), and ns3::TypeId::SetParent().
|
private |
Return the availability of free process for the RNTI specified.
rnti | the RNTI of the UE to be updated |
Definition at line 420 of file fdtbfq-ff-mac-scheduler.cc.
References HARQ_PROC_NUM, m_dlHarqCurrentProcessId, m_dlHarqProcessesStatus, NS_FATAL_ERROR, and NS_LOG_FUNCTION.
Referenced by DoSchedDlTriggerReq().
|
private |
LC Active per flow function.
rnti | the RNTI |
Definition at line 397 of file fdtbfq-ff-mac-scheduler.cc.
References m_rlcBufferReq.
Referenced by DoSchedDlTriggerReq().
|
private |
Refresh DL CQI maps function.
Definition at line 2175 of file fdtbfq-ff-mac-scheduler.cc.
References m_a30CqiRxed, m_a30CqiTimers, m_cqiTimersThreshold, m_p10CqiRxed, m_p10CqiTimers, NS_ASSERT_MSG(), and NS_LOG_INFO.
Referenced by DoSchedDlTriggerReq().
|
private |
Refresh HARQ processes according to the timers.
Definition at line 494 of file fdtbfq-ff-mac-scheduler.cc.
References HARQ_DL_TIMEOUT, HARQ_PROC_NUM, m_dlHarqProcessesStatus, m_dlHarqProcessesTimer, NS_FATAL_ERROR, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by DoSchedDlTriggerReq().
|
private |
Refresh UL CQI maps function.
Definition at line 2228 of file fdtbfq-ff-mac-scheduler.cc.
References m_cqiTimersThreshold, m_ueCqi, m_ueCqiTimers, NS_ASSERT_MSG(), and NS_LOG_INFO.
Referenced by DoSchedUlTriggerReq().
|
virtual |
Set FF MAC Csched SAP user function.
s | the FF MAC Csched SAP user |
Implements ns3::FfMacScheduler.
Definition at line 136 of file fdtbfq-ff-mac-scheduler.cc.
References m_cschedSapUser.
|
virtual |
Set FF MAC sched SAP user function.
s | the FF MAC sched SAP user |
Implements ns3::FfMacScheduler.
Definition at line 142 of file fdtbfq-ff-mac-scheduler.cc.
References m_schedSapUser.
|
virtual |
Set FFR SAP provider function.
s | the FFR SAP provider |
Implements ns3::FfMacScheduler.
Definition at line 160 of file fdtbfq-ff-mac-scheduler.cc.
References m_ffrSapProvider.
void ns3::FdTbfqFfMacScheduler::TransmissionModeConfigurationUpdate | ( | uint16_t | rnti, |
uint8_t | txMode | ||
) |
Transmisson mode config update function.
rnti | the RNTI |
txMode | the transmit mode |
Definition at line 2335 of file fdtbfq-ff-mac-scheduler.cc.
References ns3::FfMacCschedSapUser::CschedUeConfigUpdateInd(), m_cschedSapUser, ns3::FfMacCschedSapUser::CschedUeConfigUpdateIndParameters::m_rnti, ns3::FfMacCschedSapUser::CschedUeConfigUpdateIndParameters::m_transmissionMode, and NS_LOG_FUNCTION.
|
private |
Update DL RLC buffer info function.
rnti | the RNTI |
lcid | the LCID |
size | the size |
Definition at line 2258 of file fdtbfq-ff-mac-scheduler.cc.
References m_rlcBufferReq, NS_LOG_ERROR, and NS_LOG_INFO.
Referenced by DoSchedDlTriggerReq().
|
private |
Update and return a new process Id for the RNTI specified.
rnti | the RNTI of the UE to be updated |
Definition at line 453 of file fdtbfq-ff-mac-scheduler.cc.
References HARQ_PROC_NUM, m_dlHarqCurrentProcessId, m_dlHarqProcessesStatus, m_harqOn, NS_FATAL_ERROR, and NS_LOG_FUNCTION.
Referenced by DoSchedDlTriggerReq().
|
private |
Update UL RLC buffer info function.
rnti | the RNTI |
size | the size |
Definition at line 2310 of file fdtbfq-ff-mac-scheduler.cc.
References m_ceBsrRxed, NS_LOG_ERROR, and NS_LOG_INFO.
Referenced by DoSchedUlTriggerReq().
|
friend |
allow MemberCschedSapProvider<FdTbfqFfMacScheduler> class friend access
Definition at line 141 of file fdtbfq-ff-mac-scheduler.h.
|
friend |
allow MemberSchedSapProvider<FdTbfqFfMacScheduler> claass friend access
Definition at line 143 of file fdtbfq-ff-mac-scheduler.h.
|
private |
the number of bytes in token bank
Definition at line 403 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedDlTriggerReq().
|
private |
Map of UE's DL CQI A30 received.
Definition at line 355 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedDlCqiInfoReq(), DoSchedDlTriggerReq(), and RefreshDlCqiMaps().
|
private |
Map of UE's timers on DL CQI A30 received.
Definition at line 360 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().
|
private |
Map of previous allocated UE per RBG (used to retrieve info from UL-CQI)
Definition at line 366 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedUlCqiInfoReq(), and DoSchedUlTriggerReq().
amc
Definition at line 324 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedDlTriggerReq(), DoSchedUlTriggerReq(), and FdTbfqFfMacScheduler().
|
private |
Map of UE's buffer status reports received.
Definition at line 381 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedUeReleaseReq(), DoSchedUlMacCtrlInfoReq(), DoSchedUlTriggerReq(), and UpdateUlRlcBufferInfo().
|
private |
Definition at line 399 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedDlCqiInfoReq(), DoSchedUlCqiInfoReq(), GetTypeId(), RefreshDlCqiMaps(), and RefreshUlCqiMaps().
|
private |
threshold of flow credit
Definition at line 411 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedLcConfigReq(), and GetTypeId().
|
private |
flow credit limit (byte)
Definition at line 407 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedLcConfigReq(), and GetTypeId().
|
private |
Csched cell config.
Definition at line 394 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedCellConfigReq(), DoSchedDlTriggerReq(), DoSchedUlCqiInfoReq(), DoSchedUlTriggerReq(), and EstimateUlSinr().
|
private |
CSched SAP provider.
Definition at line 386 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoDispose(), FdTbfqFfMacScheduler(), and GetFfMacCschedSapProvider().
|
private |
Csched SAP user.
Definition at line 384 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedCellConfigReq(), SetFfMacCschedSapUser(), and TransmissionModeConfigurationUpdate().
|
private |
flow debt limit (byte)
Definition at line 405 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedLcConfigReq(), and GetTypeId().
|
private |
DL HARQ current process ID.
Definition at line 415 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), HarqProcessAvailability(), and UpdateHarqProcessId().
|
private |
DL HARQ process DCI buffer.
Definition at line 421 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), and DoSchedDlTriggerReq().
|
private |
DL HARQ process RLC PDU list buffer.
Definition at line 422 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), and DoSchedDlTriggerReq().
|
private |
DL HARQ process status.
Definition at line 419 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoSchedDlTriggerReq(), HarqProcessAvailability(), RefreshHarqProcesses(), and UpdateHarqProcessId().
|
private |
DL HARQ process timer.
Definition at line 420 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), DoSchedDlTriggerReq(), and RefreshHarqProcesses().
|
private |
HARQ retx buffered.
Definition at line 423 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoDispose(), and DoSchedDlTriggerReq().
|
private |
FFR SAP provider.
Definition at line 391 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedDlCqiInfoReq(), DoSchedDlTriggerReq(), DoSchedUlTriggerReq(), FdTbfqFfMacScheduler(), and SetLteFfrSapProvider().
|
private |
FFR SAP user.
Definition at line 390 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoDispose(), FdTbfqFfMacScheduler(), and GetLteFfrSapUser().
|
private |
Map of UE statistics (per RNTI basis) in downlink.
Definition at line 335 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedLcConfigReq(), DoCschedUeReleaseReq(), and DoSchedDlTriggerReq().
|
private |
Map of UE statistics (per RNTI basis)
Definition at line 340 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedLcConfigReq(), and DoCschedUeReleaseReq().
|
private |
m_harqOn when false inhibit the HARQ mechanisms (by default active)
Definition at line 414 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedDlTriggerReq(), DoSchedUlTriggerReq(), GetTypeId(), and UpdateHarqProcessId().
|
private |
RNTI of the next user to be served next scheduling in UL.
Definition at line 397 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedUeReleaseReq(), and DoSchedUlTriggerReq().
|
private |
Map of UE's DL CQI P01 received.
Definition at line 345 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().
|
private |
Map of UE's timers on DL CQI P01 received.
Definition at line 350 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().
|
private |
RACH allocation map.
Definition at line 435 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedCellConfigReq(), DoSchedDlTriggerReq(), and DoSchedUlTriggerReq().
|
private |
RACH list.
Definition at line 434 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedDlRachInfoReq(), and DoSchedDlTriggerReq().
|
private |
Vectors of UE's LC info.
Definition at line 329 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedLcReleaseReq(), DoCschedUeReleaseReq(), DoSchedDlRlcBufferReq(), DoSchedDlTriggerReq(), LcActivePerFlow(), and UpdateDlRlcBufferInfo().
|
private |
sched SAP provider
Definition at line 387 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoDispose(), FdTbfqFfMacScheduler(), and GetFfMacSchedSapProvider().
|
private |
sched SAP user
Definition at line 385 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedDlTriggerReq(), DoSchedUlTriggerReq(), and SetFfMacSchedSapUser().
|
private |
maximum size of token pool (byte)
Definition at line 409 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedLcConfigReq(), and GetTypeId().
|
private |
Map of UEs' UL-CQI per RBG.
Definition at line 371 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedUlCqiInfoReq(), DoSchedUlTriggerReq(), EstimateUlSinr(), and RefreshUlCqiMaps().
|
private |
Map of UEs' timers on UL-CQI per RBG.
Definition at line 376 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedUlCqiInfoReq(), and RefreshUlCqiMaps().
|
private |
txMode of the UEs
Definition at line 401 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), and DoSchedDlTriggerReq().
|
private |
MCS for UL grant (default 0)
Definition at line 436 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoSchedDlTriggerReq(), and GetTypeId().
|
private |
UL HARQ current process ID.
Definition at line 425 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), DoSchedDlTriggerReq(), and DoSchedUlTriggerReq().
|
private |
UL HARQ process DCI buffer.
Definition at line 430 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), DoSchedDlTriggerReq(), and DoSchedUlTriggerReq().
|
private |
UL HARQ process status.
Definition at line 429 of file fdtbfq-ff-mac-scheduler.h.
Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), and DoSchedUlTriggerReq().