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

Implements the SCHED SAP and CSCHED SAP for a Throughput to Average scheduler. More...

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

+ Inheritance diagram for ns3::TtaFfMacScheduler:
+ Collaboration diagram for ns3::TtaFfMacScheduler:

Public Member Functions

 TtaFfMacScheduler ()
 Constructor.
virtual ~TtaFfMacScheduler ()
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::set< uint16_t > m_flowStatsDl
std::set< uint16_t > m_flowStatsUl
uint16_t m_nextRntiUl
std::map< uint16_t, uint8_t > m_p10CqiRxed
std::map< uint16_t, uint32_t > m_p10CqiTimers
std::map< LteFlowId_t,
FfMacSchedSapProvider::SchedDlRlcBufferReqParameters
m_rlcBufferReq
FfMacSchedSapProviderm_schedSapProvider
FfMacSchedSapUserm_schedSapUser
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 TtaSchedulerMemberCschedSapProvider
class TtaSchedulerMemberSchedSapProvider

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 Throughput to Average scheduler.

This class implements the interface defined by the FfMacScheduler abstract class

Config Paths

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

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

Attributes

  • CqiTimerThreshold: The number of TTIs a CQI is valid (default 1000 - 1 sec.)

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 45 of file tta-ff-mac-scheduler.h.

Constructor & Destructor Documentation

ns3::TtaFfMacScheduler::TtaFfMacScheduler ( )

Constructor.

Creates the MAC Scheduler interface implementation

Definition at line 217 of file tta-ff-mac-scheduler.cc.

References m_amc, m_cschedSapProvider, m_schedSapProvider, TtaSchedulerMemberCschedSapProvider, and TtaSchedulerMemberSchedSapProvider.

ns3::TtaFfMacScheduler::~TtaFfMacScheduler ( )
virtual

Destructor

Definition at line 227 of file tta-ff-mac-scheduler.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

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

Definition at line 337 of file tta-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

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

+ Here is the caller graph for this function:

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

Definition at line 344 of file tta-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

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

+ Here is the caller graph for this function:

void ns3::TtaFfMacScheduler::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 233 of file tta-ff-mac-scheduler.cc.

References m_cschedSapProvider, m_schedSapProvider, and NS_LOG_FUNCTION.

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

Definition at line 383 of file tta-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

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

+ Here is the caller graph for this function:

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

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

References NS_FATAL_ERROR.

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

+ Here is the caller graph for this function:

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

Definition at line 674 of file tta-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

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

+ Here is the caller graph for this function:

void ns3::TtaFfMacScheduler::DoSchedUlMacCtrlInfoReq ( const struct FfMacSchedSapProvider::SchedUlMacCtrlInfoReqParameters params)
private
void ns3::TtaFfMacScheduler::DoSchedUlNoiseInterferenceReq ( const struct FfMacSchedSapProvider::SchedUlNoiseInterferenceReqParameters params)
private

Definition at line 931 of file tta-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

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

+ Here is the caller graph for this function:

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

Definition at line 938 of file tta-ff-mac-scheduler.cc.

References NS_FATAL_ERROR.

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

+ Here is the caller graph for this function:

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

Definition at line 742 of file tta-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::TtaFfMacScheduler::GetFfMacCschedSapProvider ( )
virtual
Returns
the Provider part of the FfMacCschedSap provided by the Scheduler

Implements ns3::FfMacScheduler.

Definition at line 270 of file tta-ff-mac-scheduler.cc.

References m_cschedSapProvider.

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

Implements ns3::FfMacScheduler.

Definition at line 276 of file tta-ff-mac-scheduler.cc.

References m_schedSapProvider.

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

Definition at line 390 of file tta-ff-mac-scheduler.cc.

References ns3::TtaType0AllocationRbg.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

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

Reimplemented from ns3::FfMacScheduler.

Definition at line 241 of file tta-ff-mac-scheduler.cc.

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

+ Here is the call graph for this function:

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

Definition at line 405 of file tta-ff-mac-scheduler.cc.

References m_rlcBufferReq.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

void ns3::TtaFfMacScheduler::RefreshDlCqiMaps ( void  )
private

Definition at line 1127 of file tta-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::TtaFfMacScheduler::RefreshUlCqiMaps ( void  )
private

Definition at line 1180 of file tta-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::TtaFfMacScheduler::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 258 of file tta-ff-mac-scheduler.cc.

References m_cschedSapUser.

void ns3::TtaFfMacScheduler::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 264 of file tta-ff-mac-scheduler.cc.

References m_schedSapUser.

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

Definition at line 1210 of file tta-ff-mac-scheduler.cc.

References m_rlcBufferReq, and NS_LOG_ERROR.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

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

Definition at line 1260 of file tta-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 70 of file tta-ff-mac-scheduler.h.

Referenced by TtaFfMacScheduler().

Definition at line 71 of file tta-ff-mac-scheduler.h.

Referenced by TtaFfMacScheduler().

Member Data Documentation

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

Definition at line 164 of file tta-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().

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

Definition at line 170 of file tta-ff-mac-scheduler.h.

Referenced by DoSchedUlCqiInfoReq(), and DoSchedUlTriggerReq().

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

Definition at line 198 of file tta-ff-mac-scheduler.h.

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

FfMacCschedSapProvider* ns3::TtaFfMacScheduler::m_cschedSapProvider
private

Definition at line 189 of file tta-ff-mac-scheduler.h.

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

FfMacCschedSapUser* ns3::TtaFfMacScheduler::m_cschedSapUser
private
std::set<uint16_t> ns3::TtaFfMacScheduler::m_flowStatsDl
private

Definition at line 141 of file tta-ff-mac-scheduler.h.

Referenced by DoCschedLcConfigReq(), and DoSchedDlTriggerReq().

std::set<uint16_t> ns3::TtaFfMacScheduler::m_flowStatsUl
private

Definition at line 146 of file tta-ff-mac-scheduler.h.

Referenced by DoCschedLcConfigReq().

uint16_t ns3::TtaFfMacScheduler::m_nextRntiUl
private

Definition at line 196 of file tta-ff-mac-scheduler.h.

Referenced by DoSchedUlTriggerReq().

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

Definition at line 155 of file tta-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().

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

Definition at line 190 of file tta-ff-mac-scheduler.h.

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

FfMacSchedSapUser* ns3::TtaFfMacScheduler::m_schedSapUser
private
std::map<uint16_t, std::vector <double> > ns3::TtaFfMacScheduler::m_ueCqi
private
std::map<uint16_t, uint32_t> ns3::TtaFfMacScheduler::m_ueCqiTimers
private

Definition at line 179 of file tta-ff-mac-scheduler.h.

Referenced by DoSchedUlCqiInfoReq(), and RefreshUlCqiMaps().

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

Definition at line 200 of file tta-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), and DoSchedDlTriggerReq().


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