#include "lte-ue-mac.h"
Classes | |
struct | LcInfo |
LcInfo structure. More... | |
Public Types | |
typedef void(* | RaResponseTimeoutTracedCallback) (uint64_t imsi, bool contention, uint8_t preambleTxCounter, uint8_t maxPreambleTxLimit) |
TracedCallback signature for RA response timeout events exporting IMSI, contention flag, preamble transmission counter and the max limit of preamble transmission. More... | |
Public Member Functions | |
LteUeMac () | |
~LteUeMac () override | |
int64_t | AssignStreams (int64_t stream) |
Assign a fixed random variable stream number to the random variables used by this model. More... | |
void | DoDispose () override |
Destructor implementation. More... | |
void | DoSubframeIndication (uint32_t frameNo, uint32_t subframeNo) |
Forwarded from LteUePhySapUser: trigger the start from a new frame. More... | |
LteMacSapProvider * | GetLteMacSapProvider () |
Get the LTE MAC SAP provider. More... | |
LteUeCmacSapProvider * | GetLteUeCmacSapProvider () |
Get the LTE CMAC SAP provider. More... | |
LteUePhySapUser * | GetLteUePhySapUser () |
Get the PHY SAP user. More... | |
void | SetComponentCarrierId (uint8_t index) |
Set the component carried ID. More... | |
void | SetLteUeCmacSapUser (LteUeCmacSapUser *s) |
Set the LTE UE CMAC SAP user. More... | |
void | SetLteUePhySapProvider (LteUePhySapProvider *s) |
Set the PHY SAP Provider. More... | |
Public Member Functions inherited from ns3::Object | |
Object () | |
Constructor. More... | |
~Object () override | |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose () |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator () const |
Get an iterator to the Objects aggregated to this one. More... | |
TypeId | GetInstanceTypeId () const override |
Get the most derived TypeId for this Object. More... | |
template<typename T > | |
Ptr< T > | GetObject () const |
Get a pointer to the requested aggregated Object. More... | |
template<> | |
Ptr< Object > | GetObject () const |
Specialization of () for objects of type ns3::Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
template<> | |
Ptr< Object > | GetObject (TypeId tid) const |
Specialization of (TypeId tid) for objects of type ns3::Object. More... | |
void | Initialize () |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized () 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[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () 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 errors. 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 () |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId () |
Register this type. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Private Member Functions | |
void | DoAddLc (uint8_t lcId, LteUeCmacSapProvider::LogicalChannelConfig lcConfig, LteMacSapUser *msu) |
Add LC function. More... | |
void | DoConfigureRach (LteUeCmacSapProvider::RachConfig rc) |
Configure RACH function. More... | |
void | DoNotifyConnectionSuccessful () |
Notify MAC about the successful RRC connection establishment. More... | |
void | DoReceiveLteControlMessage (Ptr< LteControlMessage > msg) |
Receive LTE control message function. More... | |
void | DoReceivePhyPdu (Ptr< Packet > p) |
Receive Phy PDU function. More... | |
void | DoRemoveLc (uint8_t lcId) |
Remove LC function. More... | |
void | DoReportBufferStatus (LteMacSapProvider::ReportBufferStatusParameters params) |
Report buffers status function. More... | |
void | DoReset () |
Reset function. More... | |
void | DoSetImsi (uint64_t imsi) |
Set IMSI. More... | |
void | DoSetRnti (uint16_t rnti) |
Set RNTI. More... | |
void | DoStartContentionBasedRandomAccessProcedure () |
Start contention based random access procedure function. More... | |
void | DoStartNonContentionBasedRandomAccessProcedure (uint16_t rnti, uint8_t rapId, uint8_t prachMask) |
Start non contention based random access procedure function. More... | |
void | DoTransmitPdu (LteMacSapProvider::TransmitPduParameters params) |
Transmit PDU function. More... | |
void | RandomlySelectAndSendRaPreamble () |
Randomly select and send RA preamble function. More... | |
void | RaResponseTimeout (bool contention) |
RA response timeout function. More... | |
void | RecvRaResponse (BuildRarListElement_s raResponse) |
Receive the RA response function. More... | |
void | RefreshHarqProcessesPacketBuffer () |
Refresh HARQ processes packet buffer function. More... | |
void | SendRaPreamble (bool contention) |
Send RA preamble function. More... | |
void | SendReportBufferStatus () |
Send report buffer status. More... | |
void | StartWaitingForRaResponse () |
Start waiting for RA response function. More... | |
Private Attributes | |
uint16_t | m_backoffParameter |
backoff parameter More... | |
Time | m_bsrLast |
BSR last. More... | |
Time | m_bsrPeriodicity |
BSR periodicity. More... | |
LteUeCmacSapProvider * | m_cmacSapProvider |
CMAC SAP provider. More... | |
LteUeCmacSapUser * | m_cmacSapUser |
CMAC SAP user. More... | |
uint8_t | m_componentCarrierId |
component carrier Id --> used to address sap More... | |
uint32_t | m_frameNo |
frame number More... | |
bool | m_freshUlBsr |
true when a BSR has been received in the last TTI More... | |
uint8_t | m_harqProcessId |
HARQ process ID. More... | |
uint16_t | m_imsi |
IMSI. More... | |
std::map< uint8_t, LcInfo > | m_lcInfoMap |
logical channel info map More... | |
LteMacSapProvider * | m_macSapProvider |
MAC SAP provider. More... | |
std::vector< Ptr< PacketBurst > > | m_miUlHarqProcessesPacket |
Packets under transmission of the UL HARQ processes. More... | |
std::vector< uint8_t > | m_miUlHarqProcessesPacketTimer |
timer for packet life in the buffer More... | |
EventId | m_noRaResponseReceivedEvent |
no RA response received event ID More... | |
uint8_t | m_preambleTransmissionCounter |
preamble tranamission counter More... | |
LteUeCmacSapProvider::RachConfig | m_rachConfig |
RACH configuration. More... | |
bool | m_rachConfigured |
is RACH configured? More... | |
uint8_t | m_raPreambleId |
RA preamble ID. More... | |
Ptr< UniformRandomVariable > | m_raPreambleUniformVariable |
RA preamble random variable. More... | |
TracedCallback< uint64_t, bool, uint8_t, uint8_t > | m_raResponseTimeoutTrace |
The RaResponseTimeout trace source. More... | |
uint8_t | m_raRnti |
RA RNTI. More... | |
uint16_t | m_rnti |
RNTI. More... | |
uint32_t | m_subframeNo |
subframe number More... | |
LteUePhySapProvider * | m_uePhySapProvider |
UE Phy SAP provider. More... | |
LteUePhySapUser * | m_uePhySapUser |
UE Phy SAP user. More... | |
std::map< uint8_t, LteMacSapProvider::ReportBufferStatusParameters > | m_ulBsrReceived |
BSR received from RLC (the last one) More... | |
bool | m_waitingForRaResponse |
waiting for RA response More... | |
Friends | |
class | UeMemberLteMacSapProvider |
allow UeMemberLteMacSapProvider class friend access More... | |
class | UeMemberLteUeCmacSapProvider |
allow UeMemberLteUeCmacSapProvider class friend access More... | |
class | UeMemberLteUePhySapUser |
allow UeMemberLteUePhySapUser class friend access More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | DoInitialize () |
Initialize() implementation. More... | |
virtual void | NotifyNewAggregate () |
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 () |
Notifier called once the ObjectBase is fully constructed. More... | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Definition at line 43 of file lte-ue-mac.h.
typedef void(* ns3::LteUeMac::RaResponseTimeoutTracedCallback) (uint64_t imsi, bool contention, uint8_t preambleTxCounter, uint8_t maxPreambleTxLimit) |
TracedCallback signature for RA response timeout events exporting IMSI, contention flag, preamble transmission counter and the max limit of preamble transmission.
[in] | imsi | |
[in] | contention | |
[in] | preambleTxCounter | |
[in] | maxPreambleTxLimit |
Definition at line 73 of file lte-ue-mac.h.
ns3::LteUeMac::LteUeMac | ( | ) |
Definition at line 239 of file lte-ue-mac.cc.
References HARQ_PERIOD, m_cmacSapProvider, m_componentCarrierId, m_macSapProvider, m_miUlHarqProcessesPacket, m_miUlHarqProcessesPacketTimer, m_raPreambleUniformVariable, m_uePhySapUser, NS_LOG_FUNCTION, UeMemberLteMacSapProvider, UeMemberLteUeCmacSapProvider, and UeMemberLteUePhySapUser.
|
override |
Definition at line 266 of file lte-ue-mac.cc.
References NS_LOG_FUNCTION.
int64_t ns3::LteUeMac::AssignStreams | ( | int64_t | stream | ) |
Assign a fixed random variable stream number to the random variables used by this model.
Return the number of streams (possibly zero) that have been assigned.
stream | first stream index to use |
Definition at line 927 of file lte-ue-mac.cc.
References m_raPreambleUniformVariable, NS_LOG_FUNCTION, and ns3::RandomVariableStream::SetStream().
|
private |
Add LC function.
lcId | the LCID |
lcConfig | the logical channel config |
msu | the MSU |
Definition at line 567 of file lte-ue-mac.cc.
References ns3::LteUeMac::LcInfo::lcConfig, m_lcInfoMap, ns3::LteUeMac::LcInfo::macSapUser, NS_ASSERT_MSG, and NS_LOG_FUNCTION.
Referenced by ns3::UeMemberLteUeCmacSapProvider::AddLc().
|
private |
Configure RACH function.
rc | LteUeCmacSapProvider::RachConfig |
Definition at line 517 of file lte-ue-mac.cc.
References m_rachConfig, m_rachConfigured, NS_LOG_FUNCTION, and two-ray-to-three-gpp-ch-calibration::rc.
Referenced by ns3::UeMemberLteUeCmacSapProvider::ConfigureRach().
|
overridevirtual |
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::Object.
Definition at line 272 of file lte-ue-mac.cc.
References ns3::Object::DoDispose(), m_cmacSapProvider, m_macSapProvider, m_miUlHarqProcessesPacket, m_uePhySapUser, and NS_LOG_FUNCTION.
|
private |
Notify MAC about the successful RRC connection establishment.
Definition at line 617 of file lte-ue-mac.cc.
References m_uePhySapProvider, ns3::LteUePhySapProvider::NotifyConnectionSuccessful(), and NS_LOG_FUNCTION.
Referenced by ns3::UeMemberLteUeCmacSapProvider::NotifyConnectionSuccessful().
|
private |
Receive LTE control message function.
msg | the LTE control message |
Definition at line 648 of file lte-ue-mac.cc.
References ns3::LteMacSapUser::TxOpportunityParameters::bytes, ns3::LteMacSapUser::TxOpportunityParameters::componentCarrierId, ns3::Packet::Copy(), HARQ_PERIOD, ns3::LteMacSapUser::TxOpportunityParameters::harqId, ns3::LteMacSapUser::TxOpportunityParameters::layer, ns3::LteMacSapUser::TxOpportunityParameters::lcid, m_componentCarrierId, m_freshUlBsr, m_harqProcessId, m_lcInfoMap, m_miUlHarqProcessesPacket, m_miUlHarqProcessesPacketTimer, ns3::UlDciListElement_s::m_ndi, m_raPreambleId, m_raRnti, m_rnti, ns3::UlDciListElement_s::m_tbSize, m_uePhySapProvider, m_ulBsrReceived, m_waitingForRaResponse, NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_ERROR, NS_LOG_FUNCTION, NS_LOG_LOGIC, NS_LOG_WARN, ns3::LteControlMessage::RAR, RecvRaResponse(), ns3::LteMacSapUser::TxOpportunityParameters::rnti, ns3::LteUePhySapProvider::SendMacPdu(), and ns3::LteControlMessage::UL_DCI.
Referenced by ns3::UeMemberLteUePhySapUser::ReceiveLteControlMessage().
Receive Phy PDU function.
p | the packet |
Definition at line 624 of file lte-ue-mac.cc.
References ns3::LteRadioBearerTag::GetLcid(), ns3::LteRadioBearerTag::GetRnti(), ns3::LteMacSapUser::ReceivePduParameters::lcid, m_lcInfoMap, m_rnti, NS_LOG_WARN, ns3::LteMacSapUser::ReceivePduParameters::p, ns3::Packet::RemovePacketTag(), and ns3::LteMacSapUser::ReceivePduParameters::rnti.
Referenced by ns3::UeMemberLteUePhySapUser::ReceivePhyPdu().
|
private |
Remove LC function.
lcId | the LCID |
Definition at line 582 of file lte-ue-mac.cc.
References m_lcInfoMap, m_ulBsrReceived, NS_ASSERT_MSG, and NS_LOG_FUNCTION.
Referenced by ns3::UeMemberLteUeCmacSapProvider::RemoveLc().
|
private |
Report buffers status function.
params | LteMacSapProvider::ReportBufferStatusParameters |
Definition at line 332 of file lte-ue-mac.cc.
References m_freshUlBsr, m_ulBsrReceived, NS_LOG_FUNCTION, and two-ray-to-three-gpp-ch-calibration::params.
Referenced by ns3::UeMemberLteMacSapProvider::ReportBufferStatus().
|
private |
Reset function.
Definition at line 591 of file lte-ue-mac.cc.
References ns3::EventId::Cancel(), m_freshUlBsr, m_lcInfoMap, m_noRaResponseReceivedEvent, m_rachConfigured, m_rnti, m_ulBsrReceived, and NS_LOG_FUNCTION.
Referenced by ns3::UeMemberLteUeCmacSapProvider::Reset().
|
private |
Set IMSI.
imsi | the IMSI of the UE |
Definition at line 544 of file lte-ue-mac.cc.
References m_imsi, and NS_LOG_FUNCTION.
Referenced by ns3::UeMemberLteUeCmacSapProvider::SetImsi().
|
private |
Set RNTI.
rnti | the RNTI |
Definition at line 537 of file lte-ue-mac.cc.
References m_rnti, and NS_LOG_FUNCTION.
Referenced by ns3::UeMemberLteUeCmacSapProvider::SetRnti().
|
private |
Start contention based random access procedure function.
Definition at line 525 of file lte-ue-mac.cc.
References m_backoffParameter, m_preambleTransmissionCounter, m_rachConfigured, NS_ASSERT_MSG, NS_LOG_FUNCTION, and RandomlySelectAndSendRaPreamble().
Referenced by ns3::UeMemberLteUeCmacSapProvider::StartContentionBasedRandomAccessProcedure().
|
private |
Start non contention based random access procedure function.
rnti | the RNTI |
rapId | the RAPID |
prachMask | the PRACH mask |
Definition at line 551 of file lte-ue-mac.cc.
References m_preambleTransmissionCounter, m_raPreambleId, m_rnti, NS_ASSERT_MSG, NS_LOG_FUNCTION, and SendRaPreamble().
Referenced by ns3::UeMemberLteUeCmacSapProvider::StartNonContentionBasedRandomAccessProcedure().
void ns3::LteUeMac::DoSubframeIndication | ( | uint32_t | frameNo, |
uint32_t | subframeNo | ||
) |
Forwarded from LteUePhySapUser: trigger the start from a new frame.
frameNo | frame number |
subframeNo | subframe number |
Definition at line 907 of file lte-ue-mac.cc.
References HARQ_PERIOD, m_bsrLast, m_bsrPeriodicity, m_componentCarrierId, m_frameNo, m_freshUlBsr, m_harqProcessId, m_subframeNo, ns3::Simulator::Now(), NS_LOG_FUNCTION, RefreshHarqProcessesPacketBuffer(), and SendReportBufferStatus().
Referenced by ns3::UeMemberLteUePhySapUser::SubframeIndication().
|
private |
Transmit PDU function.
params | LteMacSapProvider::TransmitPduParameters |
Definition at line 319 of file lte-ue-mac.cc.
References HARQ_PERIOD, m_harqProcessId, m_miUlHarqProcessesPacket, m_miUlHarqProcessesPacketTimer, m_rnti, m_uePhySapProvider, NS_ASSERT_MSG, NS_LOG_FUNCTION, two-ray-to-three-gpp-ch-calibration::params, and ns3::LteUePhySapProvider::SendMacPdu().
Referenced by ns3::UeMemberLteMacSapProvider::TransmitPdu().
LteMacSapProvider * ns3::LteUeMac::GetLteMacSapProvider | ( | ) |
Get the LTE MAC SAP provider.
Definition at line 295 of file lte-ue-mac.cc.
References m_macSapProvider.
LteUeCmacSapProvider * ns3::LteUeMac::GetLteUeCmacSapProvider | ( | ) |
Get the LTE CMAC SAP provider.
Definition at line 307 of file lte-ue-mac.cc.
References m_cmacSapProvider.
LteUePhySapUser * ns3::LteUeMac::GetLteUePhySapUser | ( | ) |
Get the PHY SAP user.
Definition at line 283 of file lte-ue-mac.cc.
References m_uePhySapUser.
|
static |
Get the type ID.
Definition at line 223 of file lte-ue-mac.cc.
References m_raResponseTimeoutTrace, ns3::MakeTraceSourceAccessor(), and ns3::TypeId::SetParent().
|
private |
Randomly select and send RA preamble function.
Definition at line 400 of file lte-ue-mac.cc.
References ns3::UniformRandomVariable::GetInteger(), m_rachConfig, m_rachConfigured, m_raPreambleId, m_raPreambleUniformVariable, NS_ASSERT_MSG, NS_LOG_FUNCTION, ns3::LteUeCmacSapProvider::RachConfig::numberOfRaPreambles, and SendRaPreamble().
Referenced by DoStartContentionBasedRandomAccessProcedure(), and RaResponseTimeout().
|
private |
RA response timeout function.
contention | if true randomly select and send the RA preamble |
Definition at line 486 of file lte-ue-mac.cc.
References m_cmacSapUser, m_imsi, m_preambleTransmissionCounter, m_rachConfig, m_raResponseTimeoutTrace, m_waitingForRaResponse, ns3::LteUeCmacSapUser::NotifyRandomAccessFailed(), NS_LOG_FUNCTION, NS_LOG_INFO, ns3::LteUeCmacSapProvider::RachConfig::preambleTransMax, RandomlySelectAndSendRaPreamble(), and SendRaPreamble().
Referenced by SendRaPreamble().
|
private |
Receive the RA response function.
raResponse | RA response received |
Definition at line 444 of file lte-ue-mac.cc.
References ns3::LteMacSapUser::TxOpportunityParameters::bytes, ns3::EventId::Cancel(), ns3::LteMacSapUser::TxOpportunityParameters::componentCarrierId, ns3::LteMacSapUser::TxOpportunityParameters::harqId, ns3::LteMacSapUser::TxOpportunityParameters::layer, ns3::LteMacSapUser::TxOpportunityParameters::lcid, m_cmacSapUser, m_componentCarrierId, ns3::BuildRarListElement_s::m_grant, m_lcInfoMap, m_noRaResponseReceivedEvent, m_raPreambleId, ns3::BuildRarListElement_s::m_rnti, m_rnti, ns3::UlGrant_s::m_tbSize, m_ulBsrReceived, m_waitingForRaResponse, ns3::LteUeCmacSapUser::NotifyRandomAccessSuccessful(), NS_ASSERT, NS_ASSERT_MSG, NS_FATAL_ERROR, NS_LOG_FUNCTION, NS_LOG_INFO, ns3::LteMacSapUser::TxOpportunityParameters::rnti, and ns3::LteUeCmacSapUser::SetTemporaryCellRnti().
Referenced by DoReceiveLteControlMessage().
|
private |
Refresh HARQ processes packet buffer function.
Definition at line 883 of file lte-ue-mac.cc.
References m_miUlHarqProcessesPacket, m_miUlHarqProcessesPacketTimer, NS_LOG_FUNCTION, and NS_LOG_INFO.
Referenced by DoSubframeIndication().
|
private |
Send RA preamble function.
contention | if true randomly select and send the RA preamble |
Definition at line 413 of file lte-ue-mac.cc.
References m_noRaResponseReceivedEvent, m_rachConfig, m_raPreambleId, m_raRnti, m_subframeNo, m_uePhySapProvider, ns3::MilliSeconds(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, RaResponseTimeout(), ns3::LteUeCmacSapProvider::RachConfig::raResponseWindowSize, ns3::Simulator::Schedule(), ns3::LteUePhySapProvider::SendRachPreamble(), and StartWaitingForRaResponse().
Referenced by DoStartNonContentionBasedRandomAccessProcedure(), RandomlySelectAndSendRaPreamble(), and RaResponseTimeout().
|
private |
Send report buffer status.
Definition at line 352 of file lte-ue-mac.cc.
References ns3::MacCeListElement_s::BSR, ns3::BufferSizeLevelBsr::BufferSize2BsrId(), ns3::MacCeValue_u::m_bufferStatus, m_lcInfoMap, ns3::MacCeListElement_s::m_macCeValue, ns3::MacCeListElement_s::m_rnti, m_rnti, m_uePhySapProvider, m_ulBsrReceived, NS_ASSERT, NS_ASSERT_MSG, NS_LOG_FUNCTION, NS_LOG_INFO, and ns3::LteUePhySapProvider::SendLteControlMessage().
Referenced by DoSubframeIndication().
void ns3::LteUeMac::SetComponentCarrierId | ( | uint8_t | index | ) |
Set the component carried ID.
index | the component carrier ID |
Definition at line 313 of file lte-ue-mac.cc.
References m_componentCarrierId.
void ns3::LteUeMac::SetLteUeCmacSapUser | ( | LteUeCmacSapUser * | s | ) |
Set the LTE UE CMAC SAP user.
s | the LTE UE CMAC SAP User |
Definition at line 301 of file lte-ue-mac.cc.
References m_cmacSapUser.
void ns3::LteUeMac::SetLteUePhySapProvider | ( | LteUePhySapProvider * | s | ) |
Set the PHY SAP Provider.
s | a pointer to the PHY SAP Provider |
Definition at line 289 of file lte-ue-mac.cc.
References m_uePhySapProvider.
|
private |
Start waiting for RA response function.
Definition at line 437 of file lte-ue-mac.cc.
References m_waitingForRaResponse, and NS_LOG_FUNCTION.
Referenced by SendRaPreamble().
|
friend |
allow UeMemberLteMacSapProvider class friend access
Definition at line 48 of file lte-ue-mac.h.
Referenced by LteUeMac().
|
friend |
allow UeMemberLteUeCmacSapProvider class friend access
Definition at line 46 of file lte-ue-mac.h.
Referenced by LteUeMac().
|
friend |
allow UeMemberLteUePhySapUser class friend access
Definition at line 50 of file lte-ue-mac.h.
Referenced by LteUeMac().
|
private |
backoff parameter
Definition at line 287 of file lte-ue-mac.h.
Referenced by DoStartContentionBasedRandomAccessProcedure().
|
private |
|
private |
|
private |
CMAC SAP provider.
Definition at line 262 of file lte-ue-mac.h.
Referenced by LteUeMac(), DoDispose(), and GetLteUeCmacSapProvider().
|
private |
CMAC SAP user.
Definition at line 261 of file lte-ue-mac.h.
Referenced by RaResponseTimeout(), RecvRaResponse(), and SetLteUeCmacSapUser().
|
private |
component carrier Id --> used to address sap
Definition at line 247 of file lte-ue-mac.h.
Referenced by LteUeMac(), DoReceiveLteControlMessage(), DoSubframeIndication(), RecvRaResponse(), and SetComponentCarrierId().
|
private |
|
private |
true when a BSR has been received in the last TTI
Definition at line 273 of file lte-ue-mac.h.
Referenced by DoReceiveLteControlMessage(), DoReportBufferStatus(), DoReset(), and DoSubframeIndication().
|
private |
HARQ process ID.
Definition at line 275 of file lte-ue-mac.h.
Referenced by DoReceiveLteControlMessage(), DoSubframeIndication(), and DoTransmitPdu().
|
private |
IMSI.
Definition at line 281 of file lte-ue-mac.h.
Referenced by DoSetImsi(), and RaResponseTimeout().
|
private |
logical channel info map
Definition at line 257 of file lte-ue-mac.h.
Referenced by DoAddLc(), DoReceiveLteControlMessage(), DoReceivePhyPdu(), DoRemoveLc(), DoReset(), RecvRaResponse(), and SendReportBufferStatus().
|
private |
MAC SAP provider.
Definition at line 259 of file lte-ue-mac.h.
Referenced by LteUeMac(), DoDispose(), and GetLteMacSapProvider().
|
private |
Packets under transmission of the UL HARQ processes.
Definition at line 277 of file lte-ue-mac.h.
Referenced by LteUeMac(), DoDispose(), DoReceiveLteControlMessage(), DoTransmitPdu(), and RefreshHarqProcessesPacketBuffer().
|
private |
timer for packet life in the buffer
Definition at line 278 of file lte-ue-mac.h.
Referenced by LteUeMac(), DoReceiveLteControlMessage(), DoTransmitPdu(), and RefreshHarqProcessesPacketBuffer().
|
private |
no RA response received event ID
Definition at line 288 of file lte-ue-mac.h.
Referenced by DoReset(), RecvRaResponse(), and SendRaPreamble().
|
private |
preamble tranamission counter
Definition at line 286 of file lte-ue-mac.h.
Referenced by DoStartContentionBasedRandomAccessProcedure(), DoStartNonContentionBasedRandomAccessProcedure(), and RaResponseTimeout().
|
private |
RACH configuration.
Definition at line 284 of file lte-ue-mac.h.
Referenced by DoConfigureRach(), RandomlySelectAndSendRaPreamble(), RaResponseTimeout(), and SendRaPreamble().
|
private |
is RACH configured?
Definition at line 283 of file lte-ue-mac.h.
Referenced by DoConfigureRach(), DoReset(), DoStartContentionBasedRandomAccessProcedure(), and RandomlySelectAndSendRaPreamble().
|
private |
RA preamble ID.
Definition at line 285 of file lte-ue-mac.h.
Referenced by DoReceiveLteControlMessage(), DoStartNonContentionBasedRandomAccessProcedure(), RandomlySelectAndSendRaPreamble(), RecvRaResponse(), and SendRaPreamble().
|
private |
RA preamble random variable.
Definition at line 289 of file lte-ue-mac.h.
Referenced by LteUeMac(), AssignStreams(), and RandomlySelectAndSendRaPreamble().
|
private |
The RaResponseTimeout
trace source.
Fired RA response timeout. Exporting IMSI, contention flag, preamble transmission counter and the max limit of preamble transmission.
Definition at line 301 of file lte-ue-mac.h.
Referenced by GetTypeId(), and RaResponseTimeout().
|
private |
RA RNTI.
Definition at line 293 of file lte-ue-mac.h.
Referenced by DoReceiveLteControlMessage(), and SendRaPreamble().
|
private |
RNTI.
Definition at line 280 of file lte-ue-mac.h.
Referenced by DoReceiveLteControlMessage(), DoReceivePhyPdu(), DoReset(), DoSetRnti(), DoStartNonContentionBasedRandomAccessProcedure(), DoTransmitPdu(), RecvRaResponse(), and SendReportBufferStatus().
|
private |
subframe number
Definition at line 292 of file lte-ue-mac.h.
Referenced by DoSubframeIndication(), and SendRaPreamble().
|
private |
UE Phy SAP provider.
Definition at line 264 of file lte-ue-mac.h.
Referenced by DoNotifyConnectionSuccessful(), DoReceiveLteControlMessage(), DoTransmitPdu(), SendRaPreamble(), SendReportBufferStatus(), and SetLteUePhySapProvider().
|
private |
UE Phy SAP user.
Definition at line 265 of file lte-ue-mac.h.
Referenced by LteUeMac(), DoDispose(), and GetLteUePhySapUser().
|
private |
BSR received from RLC (the last one)
Definition at line 268 of file lte-ue-mac.h.
Referenced by DoReceiveLteControlMessage(), DoRemoveLc(), DoReportBufferStatus(), DoReset(), RecvRaResponse(), and SendReportBufferStatus().
|
private |
waiting for RA response
Definition at line 294 of file lte-ue-mac.h.
Referenced by DoReceiveLteControlMessage(), RaResponseTimeout(), RecvRaResponse(), and StartWaitingForRaResponse().