A Discrete-Event Network Simulator
API
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
ns3::PfFfMacScheduler Class Reference

Implements the SCHED SAP and CSCHED SAP for a Proportional Fair scheduler. More...

#include "pf-ff-mac-scheduler.h"

+ Inheritance diagram for ns3::PfFfMacScheduler:

Public Member Functions

 PfFfMacScheduler ()
 Constructor. More...
 
virtual ~PfFfMacScheduler ()
 Destructor. More...
 
virtual void DoDispose (void)
 Destructor implementation. More...
 
virtual FfMacCschedSapProviderGetFfMacCschedSapProvider ()
 
virtual FfMacSchedSapProviderGetFfMacSchedSapProvider ()
 
virtual LteFfrSapUserGetLteFfrSapUser ()
 
virtual void SetFfMacCschedSapUser (FfMacCschedSapUser *s)
 set the user part of the FfMacCschedSap that this Scheduler will interact with. More...
 
virtual void SetFfMacSchedSapUser (FfMacSchedSapUser *s)
 set the user part of the FfMacSchedSap that this Scheduler will interact with. More...
 
virtual void SetLteFfrSapProvider (LteFfrSapProvider *s)
 Set the Provider part of the LteFfrSap that this Scheduler will interact with. More...
 
void TransmissionModeConfigurationUpdate (uint16_t rnti, uint8_t txMode)
 transmission mode configuration update 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...
 
SimpleRefCountoperator= (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 &params)
 CSched cell config request. More...
 
void DoCschedLcConfigReq (const struct FfMacCschedSapProvider::CschedLcConfigReqParameters &params)
 CSched LC config request. More...
 
void DoCschedLcReleaseReq (const struct FfMacCschedSapProvider::CschedLcReleaseReqParameters &params)
 CSched LC release request. More...
 
void DoCschedUeConfigReq (const struct FfMacCschedSapProvider::CschedUeConfigReqParameters &params)
 CSched UE config request. More...
 
void DoCschedUeReleaseReq (const struct FfMacCschedSapProvider::CschedUeReleaseReqParameters &params)
 CSched UE release request. More...
 
void DoSchedDlCqiInfoReq (const struct FfMacSchedSapProvider::SchedDlCqiInfoReqParameters &params)
 Sched DL CQI info request. More...
 
void DoSchedDlMacBufferReq (const struct FfMacSchedSapProvider::SchedDlMacBufferReqParameters &params)
 Sched DL MAC buffer request. More...
 
void DoSchedDlPagingBufferReq (const struct FfMacSchedSapProvider::SchedDlPagingBufferReqParameters &params)
 Sched DL paging buffer request. More...
 
void DoSchedDlRachInfoReq (const struct FfMacSchedSapProvider::SchedDlRachInfoReqParameters &params)
 Sched DL RACH info request. More...
 
void DoSchedDlRlcBufferReq (const struct FfMacSchedSapProvider::SchedDlRlcBufferReqParameters &params)
 Sched DL RLC buffer request. More...
 
void DoSchedDlTriggerReq (const struct FfMacSchedSapProvider::SchedDlTriggerReqParameters &params)
 Sched DL trigger request. More...
 
void DoSchedUlCqiInfoReq (const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters &params)
 Sched UL CQI info request. More...
 
void DoSchedUlMacCtrlInfoReq (const struct FfMacSchedSapProvider::SchedUlMacCtrlInfoReqParameters &params)
 Sched UL MAC control info request. More...
 
void DoSchedUlNoiseInterferenceReq (const struct FfMacSchedSapProvider::SchedUlNoiseInterferenceReqParameters &params)
 Sched UL noise interference request. More...
 
void DoSchedUlSrInfoReq (const struct FfMacSchedSapProvider::SchedUlSrInfoReqParameters &params)
 Sched UL SR info request. More...
 
void DoSchedUlTriggerReq (const struct FfMacSchedSapProvider::SchedUlTriggerReqParameters &params)
 Sched UL trigger request. More...
 
double EstimateUlSinr (uint16_t rnti, uint16_t rb)
 Estimate UL SINR. More...
 
int GetRbgSize (int dlbandwidth)
 Get RBG size. 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. More...
 
void RefreshDlCqiMaps (void)
 Refresh DL CQI maps. More...
 
void RefreshHarqProcesses ()
 Refresh HARQ processes according to the timers. More...
 
void RefreshUlCqiMaps (void)
 Refresh UL CQI maps. More...
 
void UpdateDlRlcBufferInfo (uint16_t rnti, uint8_t lcid, uint16_t size)
 Update DL RCL buffer info. 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 RCL buffer info. More...
 

Private Attributes

std::map< uint16_t, SbMeasResult_sm_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< LteAmcm_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 valid

More...
 
FfMacCschedSapProvider::CschedCellConfigReqParameters m_cschedCellConfig
 CSched cell config. More...
 
FfMacCschedSapProviderm_cschedSapProvider
 CSched SAP provider. More...
 
FfMacCschedSapUserm_cschedSapUser
 CSched SAP user. More...
 
std::map< uint16_t, uint8_t > m_dlHarqCurrentProcessId
 DL HARQ current process ID. More...
 
std::map< uint16_t, DlHarqProcessesDciBuffer_tm_dlHarqProcessesDciBuffer
 DL HARQ process DCI buffer. More...
 
std::map< uint16_t, DlHarqRlcPduListBuffer_tm_dlHarqProcessesRlcPduListBuffer
 DL HARQ process RLC PDU list buffer. More...
 
std::map< uint16_t, DlHarqProcessesStatus_tm_dlHarqProcessesStatus
 DL HARQ process status. More...
 
std::map< uint16_t, DlHarqProcessesTimer_tm_dlHarqProcessesTimer
 DL HARQ process timer. More...
 
std::vector< DlInfoListElement_sm_dlInfoListBuffered
 HARQ retx buffered. More...
 
LteFfrSapProviderm_ffrSapProvider
 FFR SAP provider. More...
 
LteFfrSapUserm_ffrSapUser
 FFR SAP user. More...
 
std::map< uint16_t, pfsFlowPerf_tm_flowStatsDl
 Map of UE statistics (per RNTI basis) in downlink. More...
 
std::map< uint16_t, pfsFlowPerf_tm_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_sm_rachList
 RACH list. More...
 
std::map< LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParametersm_rlcBufferReq
 Vectors of UE's LC info. More...
 
FfMacSchedSapProviderm_schedSapProvider
 Sched SAP provider. More...
 
FfMacSchedSapUserm_schedSapUser
 Sched SAP user. More...
 
double m_timeWindow
 time window 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_tm_ulHarqProcessesDciBuffer
 UL HARQ process DCI buffer. More...
 
std::map< uint16_t, UlHarqProcessesStatus_tm_ulHarqProcessesStatus
 UL HARQ process status. More...
 

Friends

class MemberCschedSapProvider< PfFfMacScheduler >
 allow MemberCschedSapProvider<PfFfMacScheduler> class friend access More...
 
class MemberSchedSapProvider< PfFfMacScheduler >
 allow MemberSchedSapProvider<PfFfMacScheduler> class 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...
 

Detailed Description

Implements the SCHED SAP and CSCHED SAP for a Proportional Fair scheduler.


This class implements the interface defined by the FfMacScheduler abstract class

Config Paths

ns3::PfFfMacScheduler is accessible through the following paths with Config::Set and Config::Connect:

Attributes

Attributes defined in parent class ns3::FfMacScheduler

No TraceSources are defined for this type.
Size of this type is 872 bytes (on a 64-bit architecture).

Definition at line 72 of file pf-ff-mac-scheduler.h.

Constructor & Destructor Documentation

◆ PfFfMacScheduler()

ns3::PfFfMacScheduler::PfFfMacScheduler ( )

Constructor.

Creates the MAC Scheduler interface implementation

Definition at line 51 of file pf-ff-mac-scheduler.cc.

References m_amc, m_cschedSapProvider, m_ffrSapProvider, m_ffrSapUser, and m_schedSapProvider.

◆ ~PfFfMacScheduler()

ns3::PfFfMacScheduler::~PfFfMacScheduler ( )
virtual

Destructor.

Definition at line 64 of file pf-ff-mac-scheduler.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

◆ DoCschedCellConfigReq()

void ns3::PfFfMacScheduler::DoCschedCellConfigReq ( const struct FfMacCschedSapProvider::CschedCellConfigReqParameters params)
private

◆ DoCschedLcConfigReq()

void ns3::PfFfMacScheduler::DoCschedLcConfigReq ( const struct FfMacCschedSapProvider::CschedLcConfigReqParameters params)
private

◆ DoCschedLcReleaseReq()

void ns3::PfFfMacScheduler::DoCschedLcReleaseReq ( const struct FfMacCschedSapProvider::CschedLcReleaseReqParameters params)
private

◆ DoCschedUeConfigReq()

void ns3::PfFfMacScheduler::DoCschedUeConfigReq ( const struct FfMacCschedSapProvider::CschedUeConfigReqParameters params)
private

◆ DoCschedUeReleaseReq()

void ns3::PfFfMacScheduler::DoCschedUeReleaseReq ( const struct FfMacCschedSapProvider::CschedUeReleaseReqParameters params)
private

◆ DoDispose()

void ns3::PfFfMacScheduler::DoDispose ( void  )
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 70 of file pf-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.

◆ DoSchedDlCqiInfoReq()

void ns3::PfFfMacScheduler::DoSchedDlCqiInfoReq ( const struct FfMacSchedSapProvider::SchedDlCqiInfoReqParameters params)
private

◆ DoSchedDlMacBufferReq()

void ns3::PfFfMacScheduler::DoSchedDlMacBufferReq ( const struct FfMacSchedSapProvider::SchedDlMacBufferReqParameters params)
private

Sched DL MAC buffer request.

Parameters
paramsFfMacSchedSapProvider::SchedDlMacBufferReqParameters

Definition at line 330 of file pf-ff-mac-scheduler.cc.

References NS_FATAL_ERROR, and NS_LOG_FUNCTION.

◆ DoSchedDlPagingBufferReq()

void ns3::PfFfMacScheduler::DoSchedDlPagingBufferReq ( const struct FfMacSchedSapProvider::SchedDlPagingBufferReqParameters params)
private

Sched DL paging buffer request.

Parameters
paramsFfMacSchedSapProvider::SchedDlPagingBufferReqParameters

Definition at line 322 of file pf-ff-mac-scheduler.cc.

References NS_FATAL_ERROR, and NS_LOG_FUNCTION.

◆ DoSchedDlRachInfoReq()

void ns3::PfFfMacScheduler::DoSchedDlRachInfoReq ( const struct FfMacSchedSapProvider::SchedDlRachInfoReqParameters params)
private

◆ DoSchedDlRlcBufferReq()

void ns3::PfFfMacScheduler::DoSchedDlRlcBufferReq ( const struct FfMacSchedSapProvider::SchedDlRlcBufferReqParameters params)
private

◆ DoSchedDlTriggerReq()

void ns3::PfFfMacScheduler::DoSchedDlTriggerReq ( const struct FfMacSchedSapProvider::SchedDlTriggerReqParameters params)
private

Sched DL trigger request.

Parameters
paramsFfMacSchedSapProvider::SchedDlTriggerReqParameters
Todo:
check correct value according the DCIs txed

Definition at line 483 of file pf-ff-mac-scheduler.cc.

References ns3::LteFfrSapProvider::GetAvailableDlRbg(), ns3::LteFfrSapProvider::GetAvailableUlRbg(), GetRbgSize(), ns3::LteFfrSapProvider::GetTpc(), HARQ_PROC_NUM, HarqProcessAvailability(), 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, m_timeWindow, 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().

◆ DoSchedUlCqiInfoReq()

void ns3::PfFfMacScheduler::DoSchedUlCqiInfoReq ( const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters params)
private

◆ DoSchedUlMacCtrlInfoReq()

void ns3::PfFfMacScheduler::DoSchedUlMacCtrlInfoReq ( const struct FfMacSchedSapProvider::SchedUlMacCtrlInfoReqParameters params)
private

◆ DoSchedUlNoiseInterferenceReq()

void ns3::PfFfMacScheduler::DoSchedUlNoiseInterferenceReq ( const struct FfMacSchedSapProvider::SchedUlNoiseInterferenceReqParameters params)
private

Sched UL noise interference request.

Parameters
paramsFfMacSchedSapProvider::SchedUlNoiseInterferenceReqParameters

Definition at line 1756 of file pf-ff-mac-scheduler.cc.

References NS_LOG_FUNCTION.

◆ DoSchedUlSrInfoReq()

void ns3::PfFfMacScheduler::DoSchedUlSrInfoReq ( const struct FfMacSchedSapProvider::SchedUlSrInfoReqParameters params)
private

Sched UL SR info request.

Parameters
paramsFfMacSchedSapProvider::SchedUlSrInfoReqParameters

Definition at line 1763 of file pf-ff-mac-scheduler.cc.

References NS_LOG_FUNCTION.

◆ DoSchedUlTriggerReq()

void ns3::PfFfMacScheduler::DoSchedUlTriggerReq ( const struct FfMacSchedSapProvider::SchedUlTriggerReqParameters params)
private

Sched UL trigger request.

Parameters
paramsFfMacSchedSapProvider::SchedUlTriggerReqParameters

Definition at line 1347 of file pf-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, m_flowStatsUl, 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, m_timeWindow, 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().

◆ EstimateUlSinr()

double ns3::PfFfMacScheduler::EstimateUlSinr ( uint16_t  rnti,
uint16_t  rb 
)
private

Estimate UL SINR.

Parameters
rntithe RNTI
rbthe RB
Returns
the SINR

Definition at line 1316 of file pf-ff-mac-scheduler.cc.

References m_cschedCellConfig, m_ueCqi, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_ulBandwidth, and NO_SINR.

Referenced by DoSchedUlTriggerReq().

◆ GetFfMacCschedSapProvider()

FfMacCschedSapProvider * ns3::PfFfMacScheduler::GetFfMacCschedSapProvider ( )
virtual
Returns
the Provider part of the FfMacCschedSap provided by the Scheduler

Implements ns3::FfMacScheduler.

Definition at line 126 of file pf-ff-mac-scheduler.cc.

References m_cschedSapProvider.

◆ GetFfMacSchedSapProvider()

FfMacSchedSapProvider * ns3::PfFfMacScheduler::GetFfMacSchedSapProvider ( )
virtual
Returns
the Provider part of the FfMacSchedSap provided by the Scheduler

Implements ns3::FfMacScheduler.

Definition at line 132 of file pf-ff-mac-scheduler.cc.

References m_schedSapProvider.

◆ GetLteFfrSapUser()

LteFfrSapUser * ns3::PfFfMacScheduler::GetLteFfrSapUser ( )
virtual
Returns
the User part of the LteFfrSap provided by the FfrAlgorithm

Implements ns3::FfMacScheduler.

Definition at line 144 of file pf-ff-mac-scheduler.cc.

References m_ffrSapUser.

◆ GetRbgSize()

int ns3::PfFfMacScheduler::GetRbgSize ( int  dlbandwidth)
private

Get RBG size.

Parameters
dlbandwidthdDL bandwidth
Returns
the RBG size

Definition at line 338 of file pf-ff-mac-scheduler.cc.

References ns3::PfType0AllocationRbg.

Referenced by DoSchedDlTriggerReq().

◆ GetTypeId()

TypeId ns3::PfFfMacScheduler::GetTypeId ( void  )
static

◆ HarqProcessAvailability()

uint8_t ns3::PfFfMacScheduler::HarqProcessAvailability ( uint16_t  rnti)
private

Return the availability of free process for the RNTI specified.

Parameters
rntithe RNTI of the UE to be updated
Returns
the process id value

Definition at line 376 of file pf-ff-mac-scheduler.cc.

References HARQ_PROC_NUM, m_dlHarqCurrentProcessId, m_dlHarqProcessesStatus, NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Referenced by DoSchedDlTriggerReq().

◆ LcActivePerFlow()

unsigned int ns3::PfFfMacScheduler::LcActivePerFlow ( uint16_t  rnti)
private

LC active per flow.

Parameters
rntithe RNTI
Returns
the LC active per flow

Definition at line 353 of file pf-ff-mac-scheduler.cc.

References m_rlcBufferReq.

Referenced by DoSchedDlTriggerReq().

◆ RefreshDlCqiMaps()

void ns3::PfFfMacScheduler::RefreshDlCqiMaps ( void  )
private

Refresh DL CQI maps.

Definition at line 1965 of file pf-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().

◆ RefreshHarqProcesses()

void ns3::PfFfMacScheduler::RefreshHarqProcesses ( )
private

Refresh HARQ processes according to the timers.

Definition at line 450 of file pf-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().

◆ RefreshUlCqiMaps()

void ns3::PfFfMacScheduler::RefreshUlCqiMaps ( void  )
private

Refresh UL CQI maps.

Definition at line 2018 of file pf-ff-mac-scheduler.cc.

References m_cqiTimersThreshold, m_ueCqi, m_ueCqiTimers, NS_ASSERT_MSG(), and NS_LOG_INFO.

Referenced by DoSchedUlTriggerReq().

◆ SetFfMacCschedSapUser()

void ns3::PfFfMacScheduler::SetFfMacCschedSapUser ( FfMacCschedSapUser s)
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.

Parameters
s

Implements ns3::FfMacScheduler.

Definition at line 114 of file pf-ff-mac-scheduler.cc.

References m_cschedSapUser.

◆ SetFfMacSchedSapUser()

void ns3::PfFfMacScheduler::SetFfMacSchedSapUser ( FfMacSchedSapUser s)
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.

Parameters
s

Implements ns3::FfMacScheduler.

Definition at line 120 of file pf-ff-mac-scheduler.cc.

References m_schedSapUser.

◆ SetLteFfrSapProvider()

void ns3::PfFfMacScheduler::SetLteFfrSapProvider ( LteFfrSapProvider s)
virtual

Set the Provider part of the LteFfrSap that this Scheduler will interact with.

Parameters
s

Implements ns3::FfMacScheduler.

Definition at line 138 of file pf-ff-mac-scheduler.cc.

References m_ffrSapProvider.

◆ TransmissionModeConfigurationUpdate()

void ns3::PfFfMacScheduler::TransmissionModeConfigurationUpdate ( uint16_t  rnti,
uint8_t  txMode 
)

◆ UpdateDlRlcBufferInfo()

void ns3::PfFfMacScheduler::UpdateDlRlcBufferInfo ( uint16_t  rnti,
uint8_t  lcid,
uint16_t  size 
)
private

Update DL RCL buffer info.

Parameters
rntithe RNTI
lcidthe LCID
sizethe size

Definition at line 2048 of file pf-ff-mac-scheduler.cc.

References m_rlcBufferReq, NS_LOG_ERROR, and NS_LOG_INFO.

Referenced by DoSchedDlTriggerReq().

◆ UpdateHarqProcessId()

uint8_t ns3::PfFfMacScheduler::UpdateHarqProcessId ( uint16_t  rnti)
private

Update and return a new process Id for the RNTI specified.

Parameters
rntithe RNTI of the UE to be updated
Returns
the process id value

Definition at line 409 of file pf-ff-mac-scheduler.cc.

References HARQ_PROC_NUM, m_dlHarqCurrentProcessId, m_dlHarqProcessesStatus, m_harqOn, NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Referenced by DoSchedDlTriggerReq().

◆ UpdateUlRlcBufferInfo()

void ns3::PfFfMacScheduler::UpdateUlRlcBufferInfo ( uint16_t  rnti,
uint16_t  size 
)
private

Update UL RCL buffer info.

Parameters
rntithe RNTI
sizethe size

Definition at line 2100 of file pf-ff-mac-scheduler.cc.

References m_ceBsrRxed, NS_LOG_ERROR, and NS_LOG_INFO.

Referenced by DoSchedUlTriggerReq().

Friends And Related Function Documentation

◆ MemberCschedSapProvider< PfFfMacScheduler >

friend class MemberCschedSapProvider< PfFfMacScheduler >
friend

allow MemberCschedSapProvider<PfFfMacScheduler> class friend access

Definition at line 106 of file pf-ff-mac-scheduler.h.

◆ MemberSchedSapProvider< PfFfMacScheduler >

friend class MemberSchedSapProvider< PfFfMacScheduler >
friend

allow MemberSchedSapProvider<PfFfMacScheduler> class friend access

Definition at line 108 of file pf-ff-mac-scheduler.h.

Member Data Documentation

◆ m_a30CqiRxed

std::map<uint16_t,SbMeasResult_s> ns3::PfFfMacScheduler::m_a30CqiRxed
private

Map of UE's DL CQI A30 received.

Definition at line 340 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), DoSchedDlTriggerReq(), and RefreshDlCqiMaps().

◆ m_a30CqiTimers

std::map<uint16_t,uint32_t> ns3::PfFfMacScheduler::m_a30CqiTimers
private

Map of UE's timers on DL CQI A30 received.

Definition at line 344 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().

◆ m_allocationMaps

std::map<uint16_t, std::vector <uint16_t> > ns3::PfFfMacScheduler::m_allocationMaps
private

Map of previous allocated UE per RBG (used to retrieve info from UL-CQI)

Definition at line 350 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedUlCqiInfoReq(), and DoSchedUlTriggerReq().

◆ m_amc

Ptr<LteAmc> ns3::PfFfMacScheduler::m_amc
private

AMC.

Definition at line 309 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedDlTriggerReq(), DoSchedUlTriggerReq(), and PfFfMacScheduler().

◆ m_ceBsrRxed

std::map<uint16_t,uint32_t> ns3::PfFfMacScheduler::m_ceBsrRxed
private

Map of UE's buffer status reports received.

Definition at line 364 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedUeReleaseReq(), DoSchedUlMacCtrlInfoReq(), DoSchedUlTriggerReq(), and UpdateUlRlcBufferInfo().

◆ m_cqiTimersThreshold

uint32_t ns3::PfFfMacScheduler::m_cqiTimersThreshold
private

of TTIs for which a CQI can be considered valid

Definition at line 384 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), DoSchedUlCqiInfoReq(), GetTypeId(), RefreshDlCqiMaps(), and RefreshUlCqiMaps().

◆ m_cschedCellConfig

FfMacCschedSapProvider::CschedCellConfigReqParameters ns3::PfFfMacScheduler::m_cschedCellConfig
private

◆ m_cschedSapProvider

FfMacCschedSapProvider* ns3::PfFfMacScheduler::m_cschedSapProvider
private

CSched SAP provider.

Definition at line 369 of file pf-ff-mac-scheduler.h.

Referenced by DoDispose(), GetFfMacCschedSapProvider(), and PfFfMacScheduler().

◆ m_cschedSapUser

FfMacCschedSapUser* ns3::PfFfMacScheduler::m_cschedSapUser
private

CSched SAP user.

Definition at line 367 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedCellConfigReq(), SetFfMacCschedSapUser(), and TransmissionModeConfigurationUpdate().

◆ m_dlHarqCurrentProcessId

std::map<uint16_t, uint8_t> ns3::PfFfMacScheduler::m_dlHarqCurrentProcessId
private

DL HARQ current process ID.

Definition at line 393 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), HarqProcessAvailability(), and UpdateHarqProcessId().

◆ m_dlHarqProcessesDciBuffer

std::map<uint16_t, DlHarqProcessesDciBuffer_t> ns3::PfFfMacScheduler::m_dlHarqProcessesDciBuffer
private

DL HARQ process DCI buffer.

Definition at line 399 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), and DoSchedDlTriggerReq().

◆ m_dlHarqProcessesRlcPduListBuffer

std::map<uint16_t, DlHarqRlcPduListBuffer_t> ns3::PfFfMacScheduler::m_dlHarqProcessesRlcPduListBuffer
private

DL HARQ process RLC PDU list buffer.

Definition at line 400 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), and DoSchedDlTriggerReq().

◆ m_dlHarqProcessesStatus

std::map<uint16_t, DlHarqProcessesStatus_t> ns3::PfFfMacScheduler::m_dlHarqProcessesStatus
private

◆ m_dlHarqProcessesTimer

std::map<uint16_t, DlHarqProcessesTimer_t> ns3::PfFfMacScheduler::m_dlHarqProcessesTimer
private

DL HARQ process timer.

Definition at line 398 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), DoSchedDlTriggerReq(), and RefreshHarqProcesses().

◆ m_dlInfoListBuffered

std::vector<DlInfoListElement_s> ns3::PfFfMacScheduler::m_dlInfoListBuffered
private

HARQ retx buffered.

Definition at line 401 of file pf-ff-mac-scheduler.h.

Referenced by DoDispose(), and DoSchedDlTriggerReq().

◆ m_ffrSapProvider

LteFfrSapProvider* ns3::PfFfMacScheduler::m_ffrSapProvider
private

◆ m_ffrSapUser

LteFfrSapUser* ns3::PfFfMacScheduler::m_ffrSapUser
private

FFR SAP user.

Definition at line 373 of file pf-ff-mac-scheduler.h.

Referenced by DoDispose(), GetLteFfrSapUser(), and PfFfMacScheduler().

◆ m_flowStatsDl

std::map<uint16_t, pfsFlowPerf_t> ns3::PfFfMacScheduler::m_flowStatsDl
private

Map of UE statistics (per RNTI basis) in downlink.

Definition at line 320 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedLcConfigReq(), DoCschedUeReleaseReq(), and DoSchedDlTriggerReq().

◆ m_flowStatsUl

std::map<uint16_t, pfsFlowPerf_t> ns3::PfFfMacScheduler::m_flowStatsUl
private

Map of UE statistics (per RNTI basis)

Definition at line 325 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedLcConfigReq(), DoCschedUeReleaseReq(), and DoSchedUlTriggerReq().

◆ m_harqOn

bool ns3::PfFfMacScheduler::m_harqOn
private

m_harqOn when false inhibit the HARQ mechanisms (by default active)

Definition at line 392 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedDlTriggerReq(), DoSchedUlTriggerReq(), GetTypeId(), and UpdateHarqProcessId().

◆ m_nextRntiUl

uint16_t ns3::PfFfMacScheduler::m_nextRntiUl
private

RNTI of the next user to be served next scheduling in UL.

Definition at line 382 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedUeReleaseReq(), and DoSchedUlTriggerReq().

◆ m_p10CqiRxed

std::map<uint16_t,uint8_t> ns3::PfFfMacScheduler::m_p10CqiRxed
private

Map of UE's DL CQI P01 received.

Definition at line 331 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().

◆ m_p10CqiTimers

std::map<uint16_t,uint32_t> ns3::PfFfMacScheduler::m_p10CqiTimers
private

Map of UE's timers on DL CQI P01 received.

Definition at line 335 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().

◆ m_rachAllocationMap

std::vector<uint16_t> ns3::PfFfMacScheduler::m_rachAllocationMap
private

RACH allocation map.

Definition at line 413 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedCellConfigReq(), DoSchedDlTriggerReq(), and DoSchedUlTriggerReq().

◆ m_rachList

std::vector<struct RachListElement_s> ns3::PfFfMacScheduler::m_rachList
private

RACH list.

Definition at line 412 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedDlRachInfoReq(), and DoSchedDlTriggerReq().

◆ m_rlcBufferReq

std::map<LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters> ns3::PfFfMacScheduler::m_rlcBufferReq
private

◆ m_schedSapProvider

FfMacSchedSapProvider* ns3::PfFfMacScheduler::m_schedSapProvider
private

Sched SAP provider.

Definition at line 370 of file pf-ff-mac-scheduler.h.

Referenced by DoDispose(), GetFfMacSchedSapProvider(), and PfFfMacScheduler().

◆ m_schedSapUser

FfMacSchedSapUser* ns3::PfFfMacScheduler::m_schedSapUser
private

Sched SAP user.

Definition at line 368 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedDlTriggerReq(), DoSchedUlTriggerReq(), and SetFfMacSchedSapUser().

◆ m_timeWindow

double ns3::PfFfMacScheduler::m_timeWindow
private

time window

Definition at line 380 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedDlTriggerReq(), and DoSchedUlTriggerReq().

◆ m_ueCqi

std::map<uint16_t, std::vector <double> > ns3::PfFfMacScheduler::m_ueCqi
private

Map of UEs' UL-CQI per RBG.

Definition at line 355 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedUlCqiInfoReq(), DoSchedUlTriggerReq(), EstimateUlSinr(), and RefreshUlCqiMaps().

◆ m_ueCqiTimers

std::map<uint16_t, uint32_t> ns3::PfFfMacScheduler::m_ueCqiTimers
private

Map of UEs' timers on UL-CQI per RBG.

Definition at line 359 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedUlCqiInfoReq(), and RefreshUlCqiMaps().

◆ m_uesTxMode

std::map<uint16_t,uint8_t> ns3::PfFfMacScheduler::m_uesTxMode
private

txMode of the UEs

Definition at line 386 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), and DoSchedDlTriggerReq().

◆ m_ulGrantMcs

uint8_t ns3::PfFfMacScheduler::m_ulGrantMcs
private

MCS for UL grant (default 0)

Definition at line 414 of file pf-ff-mac-scheduler.h.

Referenced by DoSchedDlTriggerReq(), and GetTypeId().

◆ m_ulHarqCurrentProcessId

std::map<uint16_t, uint8_t> ns3::PfFfMacScheduler::m_ulHarqCurrentProcessId
private

UL HARQ current process ID.

Definition at line 403 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), DoSchedDlTriggerReq(), and DoSchedUlTriggerReq().

◆ m_ulHarqProcessesDciBuffer

std::map<uint16_t, UlHarqProcessesDciBuffer_t> ns3::PfFfMacScheduler::m_ulHarqProcessesDciBuffer
private

UL HARQ process DCI buffer.

Definition at line 408 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), DoSchedDlTriggerReq(), and DoSchedUlTriggerReq().

◆ m_ulHarqProcessesStatus

std::map<uint16_t, UlHarqProcessesStatus_t> ns3::PfFfMacScheduler::m_ulHarqProcessesStatus
private

UL HARQ process status.

Definition at line 407 of file pf-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), and DoSchedUlTriggerReq().


The documentation for this class was generated from the following files: