A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::PssFfMacScheduler Class Reference

Implements the SCHED SAP and CSCHED SAP for a Priority Set scheduler. More...

#include <pss-ff-mac-scheduler.h>

+ Inheritance diagram for ns3::PssFfMacScheduler:
+ Collaboration diagram for ns3::PssFfMacScheduler:

Public Member Functions

 PssFfMacScheduler ()
 Constructor.
virtual ~PssFfMacScheduler ()
virtual void DoDispose (void)
virtual FfMacCschedSapProviderGetFfMacCschedSapProvider ()
virtual FfMacSchedSapProviderGetFfMacSchedSapProvider ()
virtual void SetFfMacCschedSapUser (FfMacCschedSapUser *s)
virtual void SetFfMacSchedSapUser (FfMacSchedSapUser *s)
void TransmissionModeConfigurationUpdate (uint16_t rnti, uint8_t txMode)
- Public Member Functions inherited from ns3::FfMacScheduler
 FfMacScheduler ()
virtual ~FfMacScheduler ()
- Public Member Functions inherited from ns3::Object
 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)
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 SimpleRefCount (const SimpleRefCount &o)
uint32_t GetReferenceCount (void) const
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const
- Public Member Functions inherited from ns3::ObjectBase
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)

Private Member Functions

void DoCschedCellConfigReq (const struct FfMacCschedSapProvider::CschedCellConfigReqParameters &params)
void DoCschedLcConfigReq (const struct FfMacCschedSapProvider::CschedLcConfigReqParameters &params)
void DoCschedLcReleaseReq (const struct FfMacCschedSapProvider::CschedLcReleaseReqParameters &params)
void DoCschedUeConfigReq (const struct FfMacCschedSapProvider::CschedUeConfigReqParameters &params)
void DoCschedUeReleaseReq (const struct FfMacCschedSapProvider::CschedUeReleaseReqParameters &params)
void DoSchedDlCqiInfoReq (const struct FfMacSchedSapProvider::SchedDlCqiInfoReqParameters &params)
void DoSchedDlMacBufferReq (const struct FfMacSchedSapProvider::SchedDlMacBufferReqParameters &params)
void DoSchedDlPagingBufferReq (const struct FfMacSchedSapProvider::SchedDlPagingBufferReqParameters &params)
void DoSchedDlRachInfoReq (const struct FfMacSchedSapProvider::SchedDlRachInfoReqParameters &params)
void DoSchedDlRlcBufferReq (const struct FfMacSchedSapProvider::SchedDlRlcBufferReqParameters &params)
void DoSchedDlTriggerReq (const struct FfMacSchedSapProvider::SchedDlTriggerReqParameters &params)
void DoSchedUlCqiInfoReq (const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters &params)
void DoSchedUlMacCtrlInfoReq (const struct FfMacSchedSapProvider::SchedUlMacCtrlInfoReqParameters &params)
void DoSchedUlNoiseInterferenceReq (const struct FfMacSchedSapProvider::SchedUlNoiseInterferenceReqParameters &params)
void DoSchedUlSrInfoReq (const struct FfMacSchedSapProvider::SchedUlSrInfoReqParameters &params)
void DoSchedUlTriggerReq (const struct FfMacSchedSapProvider::SchedUlTriggerReqParameters &params)
double EstimateUlSinr (uint16_t rnti, uint16_t rb)
int GetRbgSize (int dlbandwidth)
int LcActivePerFlow (uint16_t rnti)
void RefreshDlCqiMaps (void)
void RefreshUlCqiMaps (void)
void UpdateDlRlcBufferInfo (uint16_t rnti, uint8_t lcid, uint16_t size)
void UpdateUlRlcBufferInfo (uint16_t rnti, uint16_t size)

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< LteAmcm_amc
std::map< uint16_t, uint32_t > m_ceBsrRxed
uint32_t m_cqiTimersThreshold
FfMacCschedSapProvider::CschedCellConfigReqParameters m_cschedCellConfig
FfMacCschedSapProviderm_cschedSapProvider
FfMacCschedSapUserm_cschedSapUser
std::string m_fdSchedulerType
std::map< uint16_t, pssFlowPerf_tm_flowStatsDl
std::map< uint16_t, pssFlowPerf_tm_flowStatsUl
uint16_t m_nextRntiUl
uint32_t m_nMux
std::map< uint16_t, uint8_t > m_p10CqiRxed
std::map< uint16_t, uint32_t > m_p10CqiTimers
std::map< LteFlowId_t,
FfMacSchedSapProvider::SchedDlRlcBufferReqParameters
m_rlcBufferReq
FfMacSchedSapProviderm_schedSapProvider
FfMacSchedSapUserm_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 PssSchedulerMemberCschedSapProvider
class PssSchedulerMemberSchedSapProvider

Additional Inherited Members

- Public Types inherited from ns3::FfMacScheduler
enum  UlCqiFilter_t { SRS_UL_CQI, PUSCH_UL_CQI, ALL_UL_CQI }
- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
virtual void DoStart (void)
virtual void NotifyNewAggregate (void)
- Protected Attributes inherited from ns3::FfMacScheduler
UlCqiFilter_t m_ulCqiFilter

Detailed Description

Implements the SCHED SAP and CSCHED SAP for a Priority Set scheduler.

This class implements the interface defined by the FfMacScheduler abstract class

Config Paths

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

  • /NodeList/[i]/DeviceList/[i]/$ns3::LteEnbNetDevice/FfMacScheduler/$ns3::PssFfMacScheduler
  • /NodeList/[i]/DeviceList/[i]/$ns3::LteNetDevice/$ns3::LteEnbNetDevice/FfMacScheduler/$ns3::PssFfMacScheduler

Attributes

  • CqiTimerThreshold: The number of TTIs a CQI is valid (default 1000 - 1 sec.)
  • PssFdSchedulerType: FD scheduler in PSS (default value is PFsch)
    • Set with class: StringValue
    • Underlying type: std::string
    • Initial value: PFsch
    • Flags: construct write read
  • nMux: The number of UE selected by TD scheduler (default value is 0)

Attributes defined in parent class ns3::FfMacScheduler

  • UlCqiFilter: The filter to apply on UL CQIs received
    • Set with class: ns3::EnumValue
    • Underlying type: SRS_UL_CQI|PUSCH_UL_CQI|ALL_UL_CQI
    • Initial value: ALL_UL_CQI
    • Flags: construct write read

No TraceSources are defined for this type.

Definition at line 58 of file pss-ff-mac-scheduler.h.

Constructor & Destructor Documentation

ns3::PssFfMacScheduler::PssFfMacScheduler ( )

Constructor.

Creates the MAC Scheduler interface implementation

Definition at line 215 of file pss-ff-mac-scheduler.cc.

References m_amc, m_cschedSapProvider, m_schedSapProvider, PssSchedulerMemberCschedSapProvider, and PssSchedulerMemberSchedSapProvider.

ns3::PssFfMacScheduler::~PssFfMacScheduler ( )
virtual

Destructor

Definition at line 226 of file pss-ff-mac-scheduler.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

void ns3::PssFfMacScheduler::DoCschedCellConfigReq ( const struct FfMacCschedSapProvider::CschedCellConfigReqParameters params)
private
void ns3::PssFfMacScheduler::DoCschedLcReleaseReq ( const struct FfMacCschedSapProvider::CschedLcReleaseReqParameters params)
private

Definition at line 361 of file pss-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

Referenced by ns3::PssSchedulerMemberCschedSapProvider::CschedLcReleaseReq().

+ Here is the caller graph for this function:

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

Definition at line 368 of file pss-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

Referenced by ns3::PssSchedulerMemberCschedSapProvider::CschedUeReleaseReq().

+ Here is the caller graph for this function:

void ns3::PssFfMacScheduler::DoDispose ( void  )
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 232 of file pss-ff-mac-scheduler.cc.

References m_cschedSapProvider, m_schedSapProvider, and NS_LOG_FUNCTION.

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

Definition at line 407 of file pss-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

Referenced by ns3::PssSchedulerMemberSchedSapProvider::SchedDlMacBufferReq().

+ Here is the caller graph for this function:

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

Definition at line 400 of file pss-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

Referenced by ns3::PssSchedulerMemberSchedSapProvider::SchedDlPagingBufferReq().

+ Here is the caller graph for this function:

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

Definition at line 991 of file pss-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

Referenced by ns3::PssSchedulerMemberSchedSapProvider::SchedDlRachInfoReq().

+ Here is the caller graph for this function:

void ns3::PssFfMacScheduler::DoSchedDlTriggerReq ( const struct FfMacSchedSapProvider::SchedDlTriggerReqParameters params)
private
void ns3::PssFfMacScheduler::DoSchedUlMacCtrlInfoReq ( const struct FfMacSchedSapProvider::SchedUlMacCtrlInfoReqParameters params)
private
void ns3::PssFfMacScheduler::DoSchedUlNoiseInterferenceReq ( const struct FfMacSchedSapProvider::SchedUlNoiseInterferenceReqParameters params)
private

Definition at line 1246 of file pss-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

Referenced by ns3::PssSchedulerMemberSchedSapProvider::SchedUlNoiseInterferenceReq().

+ Here is the caller graph for this function:

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

Definition at line 1253 of file pss-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

Referenced by ns3::PssSchedulerMemberSchedSapProvider::SchedUlSrInfoReq().

+ Here is the caller graph for this function:

void ns3::PssFfMacScheduler::DoSchedUlTriggerReq ( const struct FfMacSchedSapProvider::SchedUlTriggerReqParameters params)
private
double ns3::PssFfMacScheduler::EstimateUlSinr ( uint16_t  rnti,
uint16_t  rb 
)
private

Definition at line 1059 of file pss-ff-mac-scheduler.cc.

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

Referenced by DoSchedUlTriggerReq().

+ Here is the caller graph for this function:

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

Implements ns3::FfMacScheduler.

Definition at line 279 of file pss-ff-mac-scheduler.cc.

References m_cschedSapProvider.

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

Implements ns3::FfMacScheduler.

Definition at line 285 of file pss-ff-mac-scheduler.cc.

References m_schedSapProvider.

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

Definition at line 414 of file pss-ff-mac-scheduler.cc.

References ns3::PssType0AllocationRbg.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

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

Reimplemented from ns3::FfMacScheduler.

Definition at line 240 of file pss-ff-mac-scheduler.cc.

References m_cqiTimersThreshold, m_fdSchedulerType, m_nMux, and ns3::TypeId::SetParent().

+ Here is the call graph for this function:

int ns3::PssFfMacScheduler::LcActivePerFlow ( uint16_t  rnti)
private

Definition at line 429 of file pss-ff-mac-scheduler.cc.

References m_rlcBufferReq.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

void ns3::PssFfMacScheduler::RefreshDlCqiMaps ( void  )
private

Definition at line 1442 of file pss-ff-mac-scheduler.cc.

References m_a30CqiRxed, m_a30CqiTimers, m_p10CqiRxed, m_p10CqiTimers, NS_ASSERT_MSG, and NS_LOG_INFO.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

void ns3::PssFfMacScheduler::RefreshUlCqiMaps ( void  )
private

Definition at line 1495 of file pss-ff-mac-scheduler.cc.

References m_ueCqi, m_ueCqiTimers, NS_ASSERT_MSG, and NS_LOG_INFO.

Referenced by DoSchedUlTriggerReq().

+ Here is the caller graph for this function:

void ns3::PssFfMacScheduler::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 267 of file pss-ff-mac-scheduler.cc.

References m_cschedSapUser.

void ns3::PssFfMacScheduler::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 273 of file pss-ff-mac-scheduler.cc.

References m_schedSapUser.

void ns3::PssFfMacScheduler::TransmissionModeConfigurationUpdate ( uint16_t  rnti,
uint8_t  txMode 
)
void ns3::PssFfMacScheduler::UpdateDlRlcBufferInfo ( uint16_t  rnti,
uint8_t  lcid,
uint16_t  size 
)
private

Definition at line 1525 of file pss-ff-mac-scheduler.cc.

References m_rlcBufferReq, and NS_LOG_ERROR.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

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

Definition at line 1575 of file pss-ff-mac-scheduler.cc.

References m_ceBsrRxed, and NS_LOG_ERROR.

Referenced by DoSchedUlTriggerReq().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

Definition at line 83 of file pss-ff-mac-scheduler.h.

Referenced by PssFfMacScheduler().

Definition at line 84 of file pss-ff-mac-scheduler.h.

Referenced by PssFfMacScheduler().

Member Data Documentation

std::map<uint16_t,SbMeasResult_s> ns3::PssFfMacScheduler::m_a30CqiRxed
private
std::map<uint16_t,uint32_t> ns3::PssFfMacScheduler::m_a30CqiTimers
private

Definition at line 177 of file pss-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().

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

Definition at line 183 of file pss-ff-mac-scheduler.h.

Referenced by DoSchedUlCqiInfoReq(), and DoSchedUlTriggerReq().

Ptr<LteAmc> ns3::PssFfMacScheduler::m_amc
private
std::map<uint16_t,uint32_t> ns3::PssFfMacScheduler::m_ceBsrRxed
private
uint32_t ns3::PssFfMacScheduler::m_cqiTimersThreshold
private

Definition at line 213 of file pss-ff-mac-scheduler.h.

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

FfMacCschedSapProvider* ns3::PssFfMacScheduler::m_cschedSapProvider
private

Definition at line 202 of file pss-ff-mac-scheduler.h.

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

FfMacCschedSapUser* ns3::PssFfMacScheduler::m_cschedSapUser
private
std::string ns3::PssFfMacScheduler::m_fdSchedulerType
private

Definition at line 217 of file pss-ff-mac-scheduler.h.

Referenced by DoSchedDlTriggerReq(), and GetTypeId().

std::map<uint16_t, pssFlowPerf_t> ns3::PssFfMacScheduler::m_flowStatsDl
private

Definition at line 154 of file pss-ff-mac-scheduler.h.

Referenced by DoCschedLcConfigReq(), and DoSchedDlTriggerReq().

std::map<uint16_t, pssFlowPerf_t> ns3::PssFfMacScheduler::m_flowStatsUl
private

Definition at line 159 of file pss-ff-mac-scheduler.h.

Referenced by DoCschedLcConfigReq().

uint16_t ns3::PssFfMacScheduler::m_nextRntiUl
private

Definition at line 211 of file pss-ff-mac-scheduler.h.

Referenced by DoSchedUlTriggerReq().

uint32_t ns3::PssFfMacScheduler::m_nMux
private

Definition at line 219 of file pss-ff-mac-scheduler.h.

Referenced by DoSchedDlTriggerReq(), and GetTypeId().

std::map<uint16_t,uint8_t> ns3::PssFfMacScheduler::m_p10CqiRxed
private
std::map<uint16_t,uint32_t> ns3::PssFfMacScheduler::m_p10CqiTimers
private

Definition at line 168 of file pss-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().

std::map<LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters> ns3::PssFfMacScheduler::m_rlcBufferReq
private
FfMacSchedSapProvider* ns3::PssFfMacScheduler::m_schedSapProvider
private

Definition at line 203 of file pss-ff-mac-scheduler.h.

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

FfMacSchedSapUser* ns3::PssFfMacScheduler::m_schedSapUser
private
double ns3::PssFfMacScheduler::m_timeWindow
private

Definition at line 209 of file pss-ff-mac-scheduler.h.

Referenced by DoSchedDlTriggerReq().

std::map<uint16_t, std::vector <double> > ns3::PssFfMacScheduler::m_ueCqi
private
std::map<uint16_t, uint32_t> ns3::PssFfMacScheduler::m_ueCqiTimers
private

Definition at line 192 of file pss-ff-mac-scheduler.h.

Referenced by DoSchedUlCqiInfoReq(), and RefreshUlCqiMaps().

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

Definition at line 215 of file pss-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), and DoSchedDlTriggerReq().


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