A Discrete-Event Network Simulator
API
ns3::LteUeMac Class Reference

#include "lte-ue-mac.h"

+ Inheritance diagram for ns3::LteUeMac:
+ Collaboration diagram for ns3::LteUeMac:

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 ()
 
virtual ~LteUeMac ()
 
int64_t AssignStreams (int64_t stream)
 Assign a fixed random variable stream number to the random variables used by this model. More...
 
virtual void DoDispose (void)
 Destructor implementation. More...
 
void DoSubframeIndication (uint32_t frameNo, uint32_t subframeNo)
 Forwarded from LteUePhySapUser: trigger the start from a new frame. More...
 
LteMacSapProviderGetLteMacSapProvider (void)
 Get the LTE MAC SAP provider. More...
 
LteUeCmacSapProviderGetLteUeCmacSapProvider (void)
 Get the LTE CMAC SAP provider. More...
 
LteUePhySapUserGetLteUePhySapUser ()
 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...
 
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<>
Ptr< ObjectGetObject () 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< ObjectGetObject (TypeId tid) const
 Specialization of (TypeId tid) for objects of type ns3::Object. More...
 
template<typename T >
Ptr< T > GetObject (void) const
 Get a pointer to the requested aggregated Object. 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...
 
virtual TypeId GetInstanceTypeId (void) const =0
 Get the most derived TypeId for this Object. 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::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 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 (void)
 Refresh HARQ processes packet buffer function. More...
 
void SendRaPreamble (bool contention)
 Send RA preamble function. More...
 
void SendReportBufferStatus (void)
 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...
 
LteUeCmacSapProviderm_cmacSapProvider
 CMAC SAP provider. More...
 
LteUeCmacSapUserm_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, LcInfom_lcInfoMap
 logical channel info map More...
 
LteMacSapProviderm_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< UniformRandomVariablem_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...
 
LteUePhySapProviderm_uePhySapProvider
 UE Phy SAP provider. More...
 
LteUePhySapUserm_uePhySapUser
 UE Phy SAP user. More...
 
std::map< uint8_t, LteMacSapProvider::ReportBufferStatusParametersm_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 DoDispose (void)
 Destructor implementation. 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...
 

Detailed Description

Config Paths

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

  • "/NodeList/[i]/DeviceList/[i]/$ns3::LteNetDevice/$ns3::LteUeNetDevice/ComponentCarrierMapUe/[i]/LteUeMac"
  • "/NodeList/[i]/DeviceList/[i]/$ns3::LteUeNetDevice/ComponentCarrierMapUe/[i]/LteUeMac"

No Attributes are defined for this type.

TraceSources

Size of this type is 320 bytes (on a 64-bit architecture).

Definition at line 44 of file lte-ue-mac.h.

Member Typedef Documentation

◆ RaResponseTimeoutTracedCallback

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.

Parameters
[in]imsi
[in]contention
[in]preambleTxCounter
[in]maxPreambleTxLimit

Definition at line 74 of file lte-ue-mac.h.

Constructor & Destructor Documentation

◆ LteUeMac()

◆ ~LteUeMac()

ns3::LteUeMac::~LteUeMac ( )
virtual

Definition at line 277 of file lte-ue-mac.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

◆ AssignStreams()

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.

Parameters
streamfirst stream index to use
Returns
the number of stream indices assigned by this model

Definition at line 919 of file lte-ue-mac.cc.

References m_raPreambleUniformVariable, NS_LOG_FUNCTION, and ns3::RandomVariableStream::SetStream().

+ Here is the call graph for this function:

◆ DoAddLc()

void ns3::LteUeMac::DoAddLc ( uint8_t  lcId,
LteUeCmacSapProvider::LogicalChannelConfig  lcConfig,
LteMacSapUser msu 
)
private

Add LC function.

Parameters
lcIdthe LCID
lcConfigthe logical channel config
msuthe MSU

Definition at line 577 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().

+ Here is the caller graph for this function:

◆ DoConfigureRach()

void ns3::LteUeMac::DoConfigureRach ( LteUeCmacSapProvider::RachConfig  rc)
private

Configure RACH function.

Parameters
rcLteUeCmacSapProvider::RachConfig

Definition at line 530 of file lte-ue-mac.cc.

References m_rachConfig, m_rachConfigured, and NS_LOG_FUNCTION.

Referenced by ns3::UeMemberLteUeCmacSapProvider::ConfigureRach().

+ Here is the caller graph for this function:

◆ DoDispose()

void ns3::LteUeMac::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::Object.

Definition at line 283 of file lte-ue-mac.cc.

References ns3::Object::DoDispose(), m_cmacSapProvider, m_macSapProvider, m_miUlHarqProcessesPacket, m_uePhySapUser, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ DoNotifyConnectionSuccessful()

void ns3::LteUeMac::DoNotifyConnectionSuccessful ( )
private

Notify MAC about the successful RRC connection establishment.

Definition at line 624 of file lte-ue-mac.cc.

References m_uePhySapProvider, ns3::LteUePhySapProvider::NotifyConnectionSuccessful(), and NS_LOG_FUNCTION.

Referenced by ns3::UeMemberLteUeCmacSapProvider::NotifyConnectionSuccessful().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoReceiveLteControlMessage()

◆ DoReceivePhyPdu()

void ns3::LteUeMac::DoReceivePhyPdu ( Ptr< Packet p)
private

Receive Phy PDU function.

Parameters
pthe packet

Definition at line 631 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoRemoveLc()

void ns3::LteUeMac::DoRemoveLc ( uint8_t  lcId)
private

Remove LC function.

Parameters
lcIdthe LCID

Definition at line 589 of file lte-ue-mac.cc.

References m_lcInfoMap, m_ulBsrReceived, NS_ASSERT_MSG, and NS_LOG_FUNCTION.

Referenced by ns3::UeMemberLteUeCmacSapProvider::RemoveLc().

+ Here is the caller graph for this function:

◆ DoReportBufferStatus()

void ns3::LteUeMac::DoReportBufferStatus ( LteMacSapProvider::ReportBufferStatusParameters  params)
private

Report buffers status function.

Parameters
paramsLteMacSapProvider::ReportBufferStatusParameters

Definition at line 345 of file lte-ue-mac.cc.

References ns3::LteMacSapProvider::ReportBufferStatusParameters::lcid, m_freshUlBsr, m_ulBsrReceived, and NS_LOG_FUNCTION.

Referenced by ns3::UeMemberLteMacSapProvider::ReportBufferStatus().

+ Here is the caller graph for this function:

◆ DoReset()

void ns3::LteUeMac::DoReset ( void  )
private

Reset function.

Definition at line 598 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoSetImsi()

void ns3::LteUeMac::DoSetImsi ( uint64_t  imsi)
private

Set IMSI.

Parameters
imsithe IMSI of the UE

Definition at line 557 of file lte-ue-mac.cc.

References m_imsi, and NS_LOG_FUNCTION.

Referenced by ns3::UeMemberLteUeCmacSapProvider::SetImsi().

+ Here is the caller graph for this function:

◆ DoSetRnti()

void ns3::LteUeMac::DoSetRnti ( uint16_t  rnti)
private

Set RNTI.

Parameters
rntithe RNTI

Definition at line 550 of file lte-ue-mac.cc.

References m_rnti, and NS_LOG_FUNCTION.

Referenced by ns3::UeMemberLteUeCmacSapProvider::SetRnti().

+ Here is the caller graph for this function:

◆ DoStartContentionBasedRandomAccessProcedure()

void ns3::LteUeMac::DoStartContentionBasedRandomAccessProcedure ( )
private

Start contention based random access procedure function.

Definition at line 538 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoStartNonContentionBasedRandomAccessProcedure()

void ns3::LteUeMac::DoStartNonContentionBasedRandomAccessProcedure ( uint16_t  rnti,
uint8_t  rapId,
uint8_t  prachMask 
)
private

Start non contention based random access procedure function.

Parameters
rntithe RNTI
rapIdthe RAPID
prachMaskthe PRACH mask

Definition at line 565 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoSubframeIndication()

void ns3::LteUeMac::DoSubframeIndication ( uint32_t  frameNo,
uint32_t  subframeNo 
)

Forwarded from LteUePhySapUser: trigger the start from a new frame.

Parameters
frameNoframe number
subframeNosubframe number

Definition at line 898 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoTransmitPdu()

◆ GetLteMacSapProvider()

LteMacSapProvider * ns3::LteUeMac::GetLteMacSapProvider ( void  )

Get the LTE MAC SAP provider.

Returns
a pointer to the LTE MAC SAP provider

Definition at line 308 of file lte-ue-mac.cc.

References m_macSapProvider.

◆ GetLteUeCmacSapProvider()

LteUeCmacSapProvider * ns3::LteUeMac::GetLteUeCmacSapProvider ( void  )

Get the LTE CMAC SAP provider.

Returns
a pointer to the LTE CMAC SAP provider

Definition at line 320 of file lte-ue-mac.cc.

References m_cmacSapProvider.

◆ GetLteUePhySapUser()

LteUePhySapUser * ns3::LteUeMac::GetLteUePhySapUser ( void  )

Get the PHY SAP user.

Returns
a pointer to the SAP user of the PHY

Definition at line 295 of file lte-ue-mac.cc.

References m_uePhySapUser.

◆ GetTypeId()

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

Get the type ID.

Returns
the object TypeId

Definition at line 233 of file lte-ue-mac.cc.

References m_raResponseTimeoutTrace, ns3::MakeTraceSourceAccessor(), and ns3::TypeId::SetParent().

+ Here is the call graph for this function:

◆ RandomlySelectAndSendRaPreamble()

void ns3::LteUeMac::RandomlySelectAndSendRaPreamble ( )
private

Randomly select and send RA preamble function.

Definition at line 417 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RaResponseTimeout()

void ns3::LteUeMac::RaResponseTimeout ( bool  contention)
private

RA response timeout function.

Parameters
contentionif true randomly select and send the RA preamble

Definition at line 501 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RecvRaResponse()

◆ RefreshHarqProcessesPacketBuffer()

void ns3::LteUeMac::RefreshHarqProcessesPacketBuffer ( void  )
private

Refresh HARQ processes packet buffer function.

Definition at line 873 of file lte-ue-mac.cc.

References m_miUlHarqProcessesPacket, m_miUlHarqProcessesPacketTimer, NS_LOG_FUNCTION, and NS_LOG_INFO.

Referenced by DoSubframeIndication().

+ Here is the caller graph for this function:

◆ SendRaPreamble()

void ns3::LteUeMac::SendRaPreamble ( bool  contention)
private

◆ SendReportBufferStatus()

void ns3::LteUeMac::SendReportBufferStatus ( void  )
private

◆ SetComponentCarrierId()

void ns3::LteUeMac::SetComponentCarrierId ( uint8_t  index)

Set the component carried ID.

Parameters
indexthe component carrier ID

Definition at line 326 of file lte-ue-mac.cc.

References m_componentCarrierId.

◆ SetLteUeCmacSapUser()

void ns3::LteUeMac::SetLteUeCmacSapUser ( LteUeCmacSapUser s)

Set the LTE UE CMAC SAP user.

Parameters
sthe LTE UE CMAC SAP User

Definition at line 314 of file lte-ue-mac.cc.

References m_cmacSapUser.

◆ SetLteUePhySapProvider()

void ns3::LteUeMac::SetLteUePhySapProvider ( LteUePhySapProvider s)

Set the PHY SAP Provider.

Parameters
sa pointer to the PHY SAP Provider

Definition at line 301 of file lte-ue-mac.cc.

References m_uePhySapProvider.

◆ StartWaitingForRaResponse()

void ns3::LteUeMac::StartWaitingForRaResponse ( )
private

Start waiting for RA response function.

Definition at line 451 of file lte-ue-mac.cc.

References m_waitingForRaResponse, and NS_LOG_FUNCTION.

Referenced by SendRaPreamble().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ UeMemberLteMacSapProvider

friend class UeMemberLteMacSapProvider
friend

allow UeMemberLteMacSapProvider class friend access

Definition at line 49 of file lte-ue-mac.h.

Referenced by LteUeMac().

◆ UeMemberLteUeCmacSapProvider

friend class UeMemberLteUeCmacSapProvider
friend

allow UeMemberLteUeCmacSapProvider class friend access

Definition at line 47 of file lte-ue-mac.h.

Referenced by LteUeMac().

◆ UeMemberLteUePhySapUser

friend class UeMemberLteUePhySapUser
friend

allow UeMemberLteUePhySapUser class friend access

Definition at line 51 of file lte-ue-mac.h.

Referenced by LteUeMac().

Member Data Documentation

◆ m_backoffParameter

uint16_t ns3::LteUeMac::m_backoffParameter
private

backoff parameter

Definition at line 282 of file lte-ue-mac.h.

Referenced by DoStartContentionBasedRandomAccessProcedure().

◆ m_bsrLast

Time ns3::LteUeMac::m_bsrLast
private

BSR last.

Definition at line 267 of file lte-ue-mac.h.

Referenced by DoSubframeIndication().

◆ m_bsrPeriodicity

Time ns3::LteUeMac::m_bsrPeriodicity
private

BSR periodicity.

Definition at line 266 of file lte-ue-mac.h.

Referenced by DoSubframeIndication().

◆ m_cmacSapProvider

LteUeCmacSapProvider* ns3::LteUeMac::m_cmacSapProvider
private

CMAC SAP provider.

Definition at line 258 of file lte-ue-mac.h.

Referenced by LteUeMac(), DoDispose(), and GetLteUeCmacSapProvider().

◆ m_cmacSapUser

LteUeCmacSapUser* ns3::LteUeMac::m_cmacSapUser
private

CMAC SAP user.

Definition at line 257 of file lte-ue-mac.h.

Referenced by RaResponseTimeout(), RecvRaResponse(), and SetLteUeCmacSapUser().

◆ m_componentCarrierId

uint8_t ns3::LteUeMac::m_componentCarrierId
private

component carrier Id --> used to address sap

Definition at line 242 of file lte-ue-mac.h.

Referenced by LteUeMac(), DoReceiveLteControlMessage(), DoSubframeIndication(), RecvRaResponse(), and SetComponentCarrierId().

◆ m_frameNo

uint32_t ns3::LteUeMac::m_frameNo
private

frame number

Definition at line 286 of file lte-ue-mac.h.

Referenced by DoSubframeIndication().

◆ m_freshUlBsr

bool ns3::LteUeMac::m_freshUlBsr
private

true when a BSR has been received in the last TTI

Definition at line 269 of file lte-ue-mac.h.

Referenced by DoReceiveLteControlMessage(), DoReportBufferStatus(), DoReset(), and DoSubframeIndication().

◆ m_harqProcessId

uint8_t ns3::LteUeMac::m_harqProcessId
private

HARQ process ID.

Definition at line 271 of file lte-ue-mac.h.

Referenced by DoReceiveLteControlMessage(), DoSubframeIndication(), and DoTransmitPdu().

◆ m_imsi

uint16_t ns3::LteUeMac::m_imsi
private

IMSI.

Definition at line 276 of file lte-ue-mac.h.

Referenced by DoSetImsi(), and RaResponseTimeout().

◆ m_lcInfoMap

std::map<uint8_t, LcInfo> ns3::LteUeMac::m_lcInfoMap
private

logical channel info map

Definition at line 253 of file lte-ue-mac.h.

Referenced by DoAddLc(), DoReceiveLteControlMessage(), DoReceivePhyPdu(), DoRemoveLc(), DoReset(), RecvRaResponse(), and SendReportBufferStatus().

◆ m_macSapProvider

LteMacSapProvider* ns3::LteUeMac::m_macSapProvider
private

MAC SAP provider.

Definition at line 255 of file lte-ue-mac.h.

Referenced by LteUeMac(), DoDispose(), and GetLteMacSapProvider().

◆ m_miUlHarqProcessesPacket

std::vector< Ptr<PacketBurst> > ns3::LteUeMac::m_miUlHarqProcessesPacket
private

Packets under transmission of the UL HARQ processes.

Definition at line 272 of file lte-ue-mac.h.

Referenced by LteUeMac(), DoDispose(), DoReceiveLteControlMessage(), DoTransmitPdu(), and RefreshHarqProcessesPacketBuffer().

◆ m_miUlHarqProcessesPacketTimer

std::vector< uint8_t > ns3::LteUeMac::m_miUlHarqProcessesPacketTimer
private

timer for packet life in the buffer

Definition at line 273 of file lte-ue-mac.h.

Referenced by LteUeMac(), DoReceiveLteControlMessage(), DoTransmitPdu(), and RefreshHarqProcessesPacketBuffer().

◆ m_noRaResponseReceivedEvent

EventId ns3::LteUeMac::m_noRaResponseReceivedEvent
private

no RA response received event ID

Definition at line 283 of file lte-ue-mac.h.

Referenced by DoReset(), RecvRaResponse(), and SendRaPreamble().

◆ m_preambleTransmissionCounter

uint8_t ns3::LteUeMac::m_preambleTransmissionCounter
private

preamble tranamission counter

Definition at line 281 of file lte-ue-mac.h.

Referenced by DoStartContentionBasedRandomAccessProcedure(), DoStartNonContentionBasedRandomAccessProcedure(), and RaResponseTimeout().

◆ m_rachConfig

LteUeCmacSapProvider::RachConfig ns3::LteUeMac::m_rachConfig
private

RACH configuration.

Definition at line 279 of file lte-ue-mac.h.

Referenced by DoConfigureRach(), RandomlySelectAndSendRaPreamble(), RaResponseTimeout(), and SendRaPreamble().

◆ m_rachConfigured

bool ns3::LteUeMac::m_rachConfigured
private

◆ m_raPreambleId

uint8_t ns3::LteUeMac::m_raPreambleId
private

◆ m_raPreambleUniformVariable

Ptr<UniformRandomVariable> ns3::LteUeMac::m_raPreambleUniformVariable
private

RA preamble random variable.

Definition at line 284 of file lte-ue-mac.h.

Referenced by LteUeMac(), AssignStreams(), and RandomlySelectAndSendRaPreamble().

◆ m_raResponseTimeoutTrace

TracedCallback<uint64_t, bool, uint8_t, uint8_t> ns3::LteUeMac::m_raResponseTimeoutTrace
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 296 of file lte-ue-mac.h.

Referenced by GetTypeId(), and RaResponseTimeout().

◆ m_raRnti

uint8_t ns3::LteUeMac::m_raRnti
private

RA RNTI.

Definition at line 288 of file lte-ue-mac.h.

Referenced by DoReceiveLteControlMessage(), and SendRaPreamble().

◆ m_rnti

◆ m_subframeNo

uint32_t ns3::LteUeMac::m_subframeNo
private

subframe number

Definition at line 287 of file lte-ue-mac.h.

Referenced by DoSubframeIndication(), and SendRaPreamble().

◆ m_uePhySapProvider

LteUePhySapProvider* ns3::LteUeMac::m_uePhySapProvider
private

◆ m_uePhySapUser

LteUePhySapUser* ns3::LteUeMac::m_uePhySapUser
private

UE Phy SAP user.

Definition at line 261 of file lte-ue-mac.h.

Referenced by LteUeMac(), DoDispose(), and GetLteUePhySapUser().

◆ m_ulBsrReceived

std::map<uint8_t, LteMacSapProvider::ReportBufferStatusParameters> ns3::LteUeMac::m_ulBsrReceived
private

BSR received from RLC (the last one)

Definition at line 263 of file lte-ue-mac.h.

Referenced by DoReceiveLteControlMessage(), DoRemoveLc(), DoReportBufferStatus(), DoReset(), RecvRaResponse(), and SendReportBufferStatus().

◆ m_waitingForRaResponse

bool ns3::LteUeMac::m_waitingForRaResponse
private

waiting for RA response

Definition at line 289 of file lte-ue-mac.h.

Referenced by DoReceiveLteControlMessage(), RaResponseTimeout(), RecvRaResponse(), and StartWaitingForRaResponse().


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