28 #include <ns3/lte-common.h>
29 #include <ns3/lte-mac-sap.h>
30 #include <ns3/lte-enb-cmac-sap.h>
31 #include <ns3/ff-mac-csched-sap.h>
32 #include <ns3/ff-mac-sched-sap.h>
33 #include <ns3/lte-enb-phy-sap.h>
34 #include "ns3/traced-value.h"
35 #include "ns3/trace-source-accessor.h"
36 #include <ns3/packet.h>
37 #include <ns3/packet-burst.h>
41 class DlCqiLteControlMessage;
42 class UlCqiLteControlMessage;
43 class PdcchMapLteControlMessage;
135 (
const uint32_t
frame,
const uint32_t subframe,
const uint16_t rnti,
136 const uint8_t mcs0,
const uint16_t tbs0Size,
137 const uint8_t mcs1,
const uint16_t tbs1Size);
149 (
const uint32_t
frame,
const uint32_t subframe,
const uint16_t rnti,
150 const uint8_t mcs,
const uint16_t tbsSize);
void DoConfigureMac(uint8_t ulBandwidth, uint8_t dlBandwidth)
void DoReconfigureLc(LteEnbCmacSapProvider::LcInfo lcinfo)
FfMacSchedSapUser * m_schedSapUser
Parameters of the CSCHED_LC_CONFIG_CNF primitive.
void(* UlSchedulingTracedCallback)(const uint32_t frame, const uint32_t subframe, const uint16_t rnti, const uint8_t mcs, const uint16_t tbsSize)
TracedCallback signature for UL scheduling events.
Simulation virtual time values and global simulation resolution.
void DoDlInfoListElementHarqFeeback(DlInfoListElement_s params)
Smart pointer class similar to boost::intrusive_ptr.
std::vector< FfMacSchedSapProvider::SchedUlCqiInfoReqParameters > m_ulCqiReceived
Parameters of the CSCHED_UE_CONFIG_CNF primitive.
void(* DlSchedulingTracedCallback)(const uint32_t frame, const uint32_t subframe, const uint16_t rnti, const uint8_t mcs0, const uint16_t tbs0Size, const uint8_t mcs1, const uint16_t tbs1Size)
TracedCallback signature for DL scheduling events.
void DoReceivePhyPdu(Ptr< Packet > p)
Parameters of the CSCHED_CELL_CONFIG_UPDATE_IND primitive.
void DoUlInfoListElementHarqFeeback(UlInfoListElement_s params)
LteEnbCmacSapProvider * m_cmacSapProvider
std::map< uint16_t, std::map< uint8_t, LteMacSapUser * > > m_rlcAttached
void DoAddLc(LteEnbCmacSapProvider::LcInfo lcinfo, LteMacSapUser *msu)
LteEnbCmacSapProvider::RachConfig DoGetRachConfig()
void DoCschedCellConfigUpdateInd(FfMacCschedSapUser::CschedCellConfigUpdateIndParameters params)
void DoReleaseLc(uint16_t rnti, uint8_t lcid)
void SetLteEnbCmacSapUser(LteEnbCmacSapUser *s)
Set the control MAC SAP user.
void DoSchedUlConfigInd(FfMacSchedSapUser::SchedUlConfigIndParameters params)
uint8_t m_preambleTransMax
TracedCallback< uint32_t, uint32_t, uint16_t, uint8_t, uint16_t > m_ulScheduling
Trace information regarding UL scheduling Frame number, Subframe number, RNTI, MCS of TB...
Parameters of the CSCHED_UE_CONFIG_UPDATE_IND primitive.
void DoTransmitPdu(LteMacSapProvider::TransmitPduParameters)
Service Access Point (SAP) offered by the eNB-PHY to the eNB-MAC.
See section 4.3.12 ulInfoListElement.
void DoAddUe(uint16_t rnti)
Service Access Point (SAP) offered by the eNB-PHY to the eNB-MAC.
FfMacCschedSapUser * GetFfMacCschedSapUser(void)
Get the control scheduler SAP user.
LteMacSapProvider * GetLteMacSapProvider(void)
Get the MAC SAP provider.
Parameters for LteMacSapProvider::ReportBufferStatus.
std::map< uint8_t, uint32_t > m_receivedRachPreambleCount
FfMacCschedSapUser * m_cschedSapUser
Service Access Point (SAP) offered by the MAC to the RRC See Femto Forum MAC Scheduler Interface Spec...
void SetFfMacCschedSapProvider(FfMacCschedSapProvider *s)
Set the control scheduler SAP provider.
Parameters of the CSCHED_LC_RELEASE_CNF primitive.
LteEnbPhySapProvider * m_enbPhySapProvider
LteEnbPhySapUser * m_enbPhySapUser
FfMacSchedSapUser * GetFfMacSchedSapUser(void)
Get the scheduler SAP user.
void DoCschedUeConfigCnf(FfMacCschedSapUser::CschedUeConfigCnfParameters params)
void DoUeUpdateConfigurationReq(LteEnbCmacSapProvider::UeConfig params)
Logical Channel information to be passed to CmacSapProvider::ConfigureLc.
std::map< uint8_t, uint32_t > m_rapIdRntiMap
uint16_t rnti
rnti previously allocated for this non-contention based RA procedure
void DoCschedLcReleaseCnf(FfMacCschedSapUser::CschedLcReleaseCnfParameters params)
Parameters of the API primitives.
static TypeId GetTypeId(void)
void DoUlCqiReport(FfMacSchedSapProvider::SchedUlCqiInfoReqParameters ulcqi)
virtual void DoDispose(void)
Destructor implementation.
void ReceiveBsrMessage(MacCeListElement_s bsr)
Receive a CE element containing the buffer status report.
uint8_t m_raResponseWindowSize
See section 4.3.23 dlInfoListElement.
void DoReceiveRachPreamble(uint8_t prachId)
void DoRemoveUe(uint16_t rnti)
See section 4.3.14 macCEListElement.
Parameters for [re]configuring the UE.
LteEnbCmacSapProvider::AllocateNcRaPreambleReturnValue DoAllocateNcRaPreamble(uint16_t rnti)
uint8_t m_numberOfRaPreambles
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void DoReportBufferStatus(LteMacSapProvider::ReportBufferStatusParameters)
LteEnbCmacSapProvider * GetLteEnbCmacSapProvider(void)
Get the control MAC SAP provider.
std::vector< UlInfoListElement_s > m_ulInfoListReceived
LteMacSapProvider * m_macSapProvider
std::vector< CqiListElement_s > m_dlCqiReceived
std::vector< MacCeListElement_s > m_ulCeReceived
Parameters of the API primitives.
std::vector< std::vector< Ptr< PacketBurst > > > DlHarqProcessesBuffer_t
void DoCschedUeReleaseCnf(FfMacCschedSapUser::CschedUeReleaseCnfParameters params)
std::vector< DlInfoListElement_s > m_dlInfoListReceived
void SetLteEnbPhySapProvider(LteEnbPhySapProvider *s)
Set the PHY SAP Provider.
LteEnbCmacSapUser * m_cmacSapUser
Parameters of the SCHED_UL_CQI_INFO_REQ primitive.
LteEnbPhySapUser * GetLteEnbPhySapUser()
Get the eNB-PHY SAP User.
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
struct defining the RACH configuration of the MAC
FfMacSchedSapProvider * m_schedSapProvider
void DoCschedUeConfigUpdateInd(FfMacCschedSapUser::CschedUeConfigUpdateIndParameters params)
LteMacSapUser * m_macSapUser
void DoSchedDlConfigInd(FfMacSchedSapUser::SchedDlConfigIndParameters ind)
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
void SetLteMacSapUser(LteMacSapUser *s)
Set the MAC SAP user.
void DoCschedLcConfigCnf(FfMacCschedSapUser::CschedLcConfigCnfParameters params)
Parameters of the SCHED_UL_CONFIG_IND primitive.
void DoReceiveLteControlMessage(Ptr< LteControlMessage > msg)
A base class which provides memory management and object aggregation.
std::map< uint8_t, NcRaPreambleInfo > m_allocatedNcRaPreambleMap
map storing as key the random acccess preamble IDs allocated for non-contention based access...
Service Access Point (SAP) offered by the eNB MAC to the eNB RRC See Femto Forum MAC Scheduler Interf...
TracedCallback< uint32_t, uint32_t, uint16_t, uint8_t, uint16_t, uint8_t, uint16_t > m_dlScheduling
Trace information regarding DL scheduling Frame number, Subframe number, RNTI, MCS of TB1...
std::map< uint16_t, DlHarqProcessesBuffer_t > m_miDlHarqProcessesPackets
info associated with a preamble allocated for non-contention based RA
a unique identifier for an interface.
void DoSubframeIndication(uint32_t frameNo, uint32_t subframeNo)
This class implements the MAC layer of the eNodeB device.
Parameters of the CSCHED_UE_RELEASE_CNF primitive.
void SetFfMacSchedSapProvider(FfMacSchedSapProvider *s)
Set the scheduler SAP provider.
FfMacCschedSapProvider * m_cschedSapProvider
Time expiryTime
value the expiration time of this allocation (so that stale preambles can be reused) ...
void ReceiveDlCqiLteControlMessage(Ptr< DlCqiLteControlMessage > msg)
Receive a DL CQI ideal control message.
void DoCschedCellConfigCnf(FfMacCschedSapUser::CschedCellConfigCnfParameters params)
Parameters for LteMacSapProvider::TransmitPdu.