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

The LTE Radio Resource Control entity at the eNB. More...

#include <lte-enb-rrc.h>

+ Inheritance diagram for ns3::LteEnbRrc:
+ Collaboration diagram for ns3::LteEnbRrc:

Classes

struct  X2uTeidInfo
 

Public Types

enum  LteEpsBearerToRlcMapping_t { RLC_SM_ALWAYS = 1, RLC_UM_ALWAYS = 2, RLC_AM_ALWAYS = 3, PER_BASED = 4 }
 Identifies how EPS Bearer parameters are mapped to different RLC types. More...
 

Public Member Functions

 LteEnbRrc ()
 create an RRC instance for use within an eNB More...
 
virtual ~LteEnbRrc ()
 Destructor. More...
 
uint8_t AddUeMeasReportConfig (LteRrcSap::ReportConfigEutra config)
 Add a new UE measurement reporting configuration. More...
 
void AddX2Neighbour (uint16_t cellId)
 Add a neighbour with an X2 interface. More...
 
void ConfigureCell (uint8_t ulBandwidth, uint8_t dlBandwidth, uint16_t ulEarfcn, uint16_t dlEarfcn, uint16_t cellId)
 Configure cell-specific parameters. More...
 
void ConnectionRejectedTimeout (uint16_t rnti)
 Method triggered a while after sending RRC Connection Rejected. More...
 
void ConnectionTimeout (uint16_t rnti)
 Method triggered when a UE is expected to get connected but does not do so in a reasonable time. More...
 
EpcX2SapUserGetEpcX2SapUser ()
 Get the X2 SAP offered by this RRC. More...
 
LteAnrSapUserGetLteAnrSapUser ()
 Get the ANR SAP offered by this RRC. More...
 
LteEnbCmacSapUserGetLteEnbCmacSapUser ()
 Get the CMAC SAP offered by this RRC. More...
 
LteEnbCphySapUserGetLteEnbCphySapUser ()
 
LteEnbRrcSapProviderGetLteEnbRrcSapProvider ()
 
LteHandoverManagementSapUserGetLteHandoverManagementSapUser ()
 Get the Handover Management SAP offered by this RRC. More...
 
EpcEnbS1SapUserGetS1SapUser ()
 
uint32_t GetSrsPeriodicity () const
 
Ptr< UeManagerGetUeManager (uint16_t rnti)
 
void HandoverJoiningTimeout (uint16_t rnti)
 Method triggered when a UE is expected to join the cell for a handover but does not do so in a reasonable time. More...
 
void HandoverLeavingTimeout (uint16_t rnti)
 Method triggered when a UE is expected to leave a cell for a handover but no feedback is received in a reasonable time. More...
 
bool SendData (Ptr< Packet > p)
 Enqueue an IP data packet on the proper bearer for downlink transmission. More...
 
void SendHandoverRequest (uint16_t rnti, uint16_t cellId)
 Send a HandoverRequest through the X2 SAP interface. More...
 
void SetCellId (uint16_t m_cellId)
 set the cell id of this eNB More...
 
void SetCsgId (uint32_t csgId, bool csgIndication)
 Associate this RRC entity with a particular CSG information. More...
 
void SetEpcX2SapProvider (EpcX2SapProvider *s)
 Set the X2 SAP this RRC should interact with. More...
 
void SetForwardUpCallback (Callback< void, Ptr< Packet > > cb)
 set the callback used to forward data packets up the stack More...
 
void SetLteAnrSapProvider (LteAnrSapProvider *s)
 set the ANR SAP this RRC should interact with More...
 
void SetLteEnbCmacSapProvider (LteEnbCmacSapProvider *s)
 set the CMAC SAP this RRC should interact with More...
 
void SetLteEnbCphySapProvider (LteEnbCphySapProvider *s)
 set the CPHY SAP this RRC should use to interact with the PHY More...
 
void SetLteEnbRrcSapUser (LteEnbRrcSapUser *s)
 set the RRC SAP this RRC should interact with More...
 
void SetLteHandoverManagementSapProvider (LteHandoverManagementSapProvider *s)
 set the Handover Management SAP this RRC should interact with More...
 
void SetLteMacSapProvider (LteMacSapProvider *s)
 set the MAC SAP provider. More...
 
void SetS1SapProvider (EpcEnbS1SapProvider *s)
 Set the S1 SAP Provider. More...
 
void SetSrsPeriodicity (uint32_t p)
 
- Public Member Functions inherited from ns3::Object
 Object ()
 
virtual ~Object ()
 
void AggregateObject (Ptr< Object > other)
 
void Dispose (void)
 Run the DoDispose methods of this object and all the objects aggregated to it. More...
 
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 Initialize (void)
 This method calls the virtual DoInitialize method on all the objects aggregated to this object. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 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. 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
 
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)
 
- Static Public Member Functions inherited from ns3::Object
static TypeId GetTypeId (void)
 Register this type. More...
 
- Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
static void Cleanup (void)
 Noop. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 

Protected Member Functions

virtual void DoDispose (void)
 This method is called by Object::Dispose or by the object's destructor, whichever comes first. More...
 
- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 
virtual void DoInitialize (void)
 This method is called only once by Object::Initialize. More...
 
virtual void NotifyNewAggregate (void)
 This method is invoked whenever two sets of objects are aggregated together. More...
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 This method is invoked once all member attributes have been initialized. More...
 

Private Member Functions

uint16_t AddUe (UeManager::State state)
 Allocate a new RNTI for a new UE. More...
 
uint8_t DoAddUeMeasReportConfigForAnr (LteRrcSap::ReportConfigEutra reportConfig)
 
uint8_t DoAddUeMeasReportConfigForHandover (LteRrcSap::ReportConfigEutra reportConfig)
 
uint16_t DoAllocateTemporaryCellRnti ()
 
void DoCompleteSetupUe (uint16_t rnti, LteEnbRrcSapProvider::CompleteSetupUeParameters params)
 Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::CompleteSetupUe interface to UeManager::CompleteSetupUe. More...
 
void DoDataRadioBearerSetupRequest (EpcEnbS1SapUser::DataRadioBearerSetupRequestParameters params)
 
void DoNotifyLcConfigResult (uint16_t rnti, uint8_t lcid, bool success)
 
void DoPathSwitchRequestAcknowledge (EpcEnbS1SapUser::PathSwitchRequestAcknowledgeParameters params)
 
void DoRecvHandoverPreparationFailure (EpcX2SapUser::HandoverPreparationFailureParams params)
 
void DoRecvHandoverRequest (EpcX2SapUser::HandoverRequestParams params)
 
void DoRecvHandoverRequestAck (EpcX2SapUser::HandoverRequestAckParams params)
 
void DoRecvLoadInformation (EpcX2SapUser::LoadInformationParams params)
 
void DoRecvMeasurementReport (uint16_t rnti, LteRrcSap::MeasurementReport msg)
 Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvMeasurementReport interface to UeManager::RecvMeasurementReport. More...
 
void DoRecvResourceStatusUpdate (EpcX2SapUser::ResourceStatusUpdateParams params)
 
void DoRecvRrcConnectionReconfigurationCompleted (uint16_t rnti, LteRrcSap::RrcConnectionReconfigurationCompleted msg)
 Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionReconfigurationCompleted interface to UeManager::RecvRrcConnectionReconfigurationCompleted. More...
 
void DoRecvRrcConnectionReestablishmentComplete (uint16_t rnti, LteRrcSap::RrcConnectionReestablishmentComplete msg)
 Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionReestablishmentComplete interface to UeManager::RecvRrcConnectionReestablishmentComplete. More...
 
void DoRecvRrcConnectionReestablishmentRequest (uint16_t rnti, LteRrcSap::RrcConnectionReestablishmentRequest msg)
 Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionReestablishmentRequest interface to UeManager::RecvRrcConnectionReestablishmentRequest. More...
 
void DoRecvRrcConnectionRequest (uint16_t rnti, LteRrcSap::RrcConnectionRequest msg)
 Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionRequest interface to UeManager::RecvRrcConnectionRequest. More...
 
void DoRecvRrcConnectionSetupCompleted (uint16_t rnti, LteRrcSap::RrcConnectionSetupCompleted msg)
 Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionSetupCompleted interface to UeManager::RecvRrcConnectionSetupCompleted. More...
 
void DoRecvSnStatusTransfer (EpcX2SapUser::SnStatusTransferParams params)
 
void DoRecvUeContextRelease (EpcX2SapUser::UeContextReleaseParams params)
 
void DoRecvUeData (EpcX2SapUser::UeDataParams params)
 
void DoRrcConfigurationUpdateInd (LteEnbCmacSapUser::UeConfig params)
 
void DoTriggerHandover (uint16_t rnti, uint16_t targetCellId)
 
uint8_t GetLogicalChannelGroup (EpsBearer bearer)
 
uint8_t GetLogicalChannelPriority (EpsBearer bearer)
 
uint16_t GetNewSrsConfigurationIndex (void)
 Allocate a new SRS configuration index for a new UE. More...
 
TypeId GetRlcType (EpsBearer bearer)
 
void RemoveSrsConfigurationIndex (uint16_t srcCi)
 remove a previously allocated SRS configuration index More...
 
void RemoveUe (uint16_t rnti)
 remove a UE from the cell More...
 
void SendSystemInformation ()
 method used to periodically send System Information More...
 

Private Attributes

bool m_admitHandoverRequest
 
bool m_admitRrcConnectionRequest
 
std::set< uint8_t > m_anrMeasIds
 
LteAnrSapProviderm_anrSapProvider
 
LteAnrSapUserm_anrSapUser
 
uint16_t m_cellId
 
LteEnbCmacSapProviderm_cmacSapProvider
 
LteEnbCmacSapUserm_cmacSapUser
 
bool m_configured
 
TracedCallback< uint64_t,
uint16_t, uint16_t > 
m_connectionEstablishedTrace
 
TracedCallback< uint64_t,
uint16_t, uint16_t > 
m_connectionReconfigurationTrace
 
Time m_connectionRejectedTimeoutDuration
 
Time m_connectionTimeoutDuration
 
LteEnbCphySapProviderm_cphySapProvider
 
LteEnbCphySapUserm_cphySapUser
 
uint8_t m_defaultTransmissionMode
 
uint16_t m_dlBandwidth
 
uint16_t m_dlEarfcn
 
enum LteEpsBearerToRlcMapping_t m_epsBearerToRlcMapping
 
Callback< void, Ptr< Packet > > m_forwardUpCallback
 
TracedCallback< uint64_t,
uint16_t, uint16_t > 
m_handoverEndOkTrace
 
Time m_handoverJoiningTimeoutDuration
 
Time m_handoverLeavingTimeoutDuration
 
LteHandoverManagementSapProviderm_handoverManagementSapProvider
 
LteHandoverManagementSapUserm_handoverManagementSapUser
 
std::set< uint8_t > m_handoverMeasIds
 
TracedCallback< uint64_t,
uint16_t, uint16_t, uint16_t > 
m_handoverStartTrace
 
uint16_t m_lastAllocatedConfigurationIndex
 
uint16_t m_lastAllocatedRnti
 
LteMacSapProviderm_macSapProvider
 
TracedCallback< uint16_t,
uint16_t > 
m_newUeContextTrace
 
int8_t m_qRxLevMin
 
bool m_reconfigureUes
 
TracedCallback< uint64_t,
uint16_t, uint16_t,
LteRrcSap::MeasurementReport
m_recvMeasurementReportTrace
 
LteEnbRrcSapProviderm_rrcSapProvider
 
LteEnbRrcSapUserm_rrcSapUser
 
uint8_t m_rsrpFilterCoefficient
 
uint8_t m_rsrqFilterCoefficient
 
EpcEnbS1SapProviderm_s1SapProvider
 
EpcEnbS1SapUserm_s1SapUser
 
LteRrcSap::SystemInformationBlockType1 m_sib1
 the System Information Block Type 1 that is currently broadcasted over BCH More...
 
uint16_t m_srsCurrentPeriodicityId
 
Time m_systemInformationPeriodicity
 
std::map< uint16_t, Ptr
< UeManager > > 
m_ueMap
 
LteRrcSap::MeasConfig m_ueMeasConfig
 List of measurement configuration which are active in every UE attached to this eNodeB instance. More...
 
std::set< uint16_t > m_ueSrsConfigurationIndexSet
 
uint16_t m_ulBandwidth
 
uint16_t m_ulEarfcn
 
EpcX2SapProviderm_x2SapProvider
 
EpcX2SapUserm_x2SapUser
 
std::map< uint32_t, X2uTeidInfom_x2uTeidInfoMap
 

Friends

class EnbRrcMemberLteEnbCmacSapUser
 
class EpcX2SpecificEpcX2SapUser< LteEnbRrc >
 
class MemberEpcEnbS1SapUser< LteEnbRrc >
 
class MemberLteAnrSapUser< LteEnbRrc >
 
class MemberLteEnbRrcSapProvider< LteEnbRrc >
 
class MemberLteHandoverManagementSapUser< LteEnbRrc >
 
class UeManager
 

Detailed Description

The LTE Radio Resource Control entity at the eNB.

Config Paths

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

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

Attributes

  • UeMap: List of UeManager by C-RNTI.
  • DefaultTransmissionMode: The default UEs' transmission mode (0: SISO)
  • EpsBearerToRlcMapping: Specify which type of RLC will be used for each type of EPS bearer.
    • Set with class: ns3::EnumValue
    • Underlying type: RlcSmAlways|RlcUmAlways|RlcAmAlways|PacketErrorRateBased
    • Initial value: RlcSmAlways
    • Flags: construct write read
  • SystemInformationPeriodicity: The interval for sending system information (Time value)
    • Set with class: ns3::TimeValue
    • Underlying type: Time -9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: +80000000.0ns
    • Flags: construct write read
  • SrsPeriodicity: The SRS periodicity in milliseconds
  • ConnectionTimeoutDuration: After a RA attempt, if no RRC Connection Request is received before this time, the UE context is destroyed. Must account for reception of RAR and transmission of RRC CONNECTION REQUEST over UL GRANT.
    • Set with class: ns3::TimeValue
    • Underlying type: Time -9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: +15000000.0ns
    • Flags: construct write read
  • ConnectionRejectedTimeoutDuration: Time to wait between sending a RRC CONNECTION REJECT and destroying the UE context
    • Set with class: ns3::TimeValue
    • Underlying type: Time -9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: +30000000.0ns
    • Flags: construct write read
  • HandoverJoiningTimeoutDuration: After accepting a handover request, if no RRC Connection Reconfiguration Completed is received before this time, the UE context is destroyed. Must account for reception of X2 HO REQ ACK by source eNB, transmission of the Handover Command, non-contention-based random access and reception of the RRC Connection Reconfiguration Completed message.
    • Set with class: ns3::TimeValue
    • Underlying type: Time -9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: +200000000.0ns
    • Flags: construct write read
  • HandoverLeavingTimeoutDuration: After issuing a Handover Command, if neither RRC Connection Reestablishment nor X2 UE Context Release has been previously received, the UE context is destroyed.
    • Set with class: ns3::TimeValue
    • Underlying type: Time -9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: +500000000.0ns
    • Flags: construct write read
  • QRxLevMin: One of information transmitted within the SIB1 message, indicating the required minimum RSRP level that any UE must receive from this cell before it is allowed to camp to this cell. The default value -70 corresponds to -140 dBm and is the lowest possible value as defined by Section 6.3.4 of 3GPP TS 36.133. This restriction, however, only applies to initial cell selection and EPC-enabled simulation.
  • AdmitHandoverRequest: Whether to admit an X2 handover request from another eNB
    • Set with class: BooleanValue
    • Underlying type: bool
    • Initial value: true
    • Flags: construct write read
  • AdmitRrcConnectionRequest: Whether to admit a connection request from a UE
    • Set with class: BooleanValue
    • Underlying type: bool
    • Initial value: true
    • Flags: construct write read
  • RsrpFilterCoefficient: Determines the strength of smoothing effect induced by layer 3 filtering of RSRP in all attached UE; if set to 0, no layer 3 filtering is applicable
  • RsrqFilterCoefficient: Determines the strength of smoothing effect induced by layer 3 filtering of RSRQ in all attached UE; if set to 0, no layer 3 filtering is applicable

TraceSources

  • NewUeContext: trace fired upon creation of a new UE context
  • ConnectionEstablished: trace fired upon successful RRC connection establishment
  • ConnectionReconfiguration: trace fired upon RRC connection reconfiguration
  • HandoverStart: trace fired upon start of a handover procedure
  • HandoverEndOk: trace fired upon successful termination of a handover procedure
  • RecvMeasurementReport: trace fired when measurement report is received

Definition at line 427 of file lte-enb-rrc.h.

Member Enumeration Documentation

Identifies how EPS Bearer parameters are mapped to different RLC types.

Enumerator
RLC_SM_ALWAYS 
RLC_UM_ALWAYS 
RLC_AM_ALWAYS 
PER_BASED 

Definition at line 693 of file lte-enb-rrc.h.

Constructor & Destructor Documentation

ns3::LteEnbRrc::LteEnbRrc ( )
ns3::LteEnbRrc::~LteEnbRrc ( )
virtual

Destructor.

Definition at line 1252 of file lte-enb-rrc.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

uint16_t ns3::LteEnbRrc::AddUe ( UeManager::State  state)
private

Allocate a new RNTI for a new UE.

This is done in the following cases:

  • T-C-RNTI allocation upon contention-based MAC Random Access procedure
  • target cell RNTI allocation upon handover
Parameters
statethe initial state of the UeManager
Returns
the newly allocated RNTI

Definition at line 2099 of file lte-enb-rrc.cc.

References m_cellId, m_lastAllocatedRnti, m_newUeContextTrace, m_ueMap, NS_ASSERT_MSG, NS_LOG_DEBUG, and NS_LOG_FUNCTION.

Referenced by DoAllocateTemporaryCellRnti(), and DoRecvHandoverRequest().

+ Here is the caller graph for this function:

uint8_t ns3::LteEnbRrc::AddUeMeasReportConfig ( LteRrcSap::ReportConfigEutra  config)

Add a new UE measurement reporting configuration.

Parameters
configthe new reporting configuration
Returns
the measurement ID (measId) referring to the newly added reporting configuration

Assuming intra-frequency environment, the new measurement reporting configuration will be automatically associated to the only measurement object (i.e., a new measurement identity will be automatically created).

Can only be called before the start of simulation.

Definition at line 1514 of file lte-enb-rrc.cc.

References ns3::LteRrcSap::ReportConfigEutra::BOTH, ns3::LteRrcSap::ThresholdEutra::choice, ns3::LteRrcSap::ReportConfigEutra::EVENT_A1, ns3::LteRrcSap::ReportConfigEutra::EVENT_A2, ns3::LteRrcSap::ReportConfigEutra::EVENT_A4, ns3::LteRrcSap::ReportConfigEutra::EVENT_A5, ns3::LteRrcSap::ReportConfigEutra::eventId, m_ueMeasConfig, ns3::LteRrcSap::MeasIdToAddMod::measId, ns3::LteRrcSap::MeasConfig::measIdToAddModList, ns3::LteRrcSap::MeasIdToAddMod::measObjectId, ns3::Simulator::Now(), NS_ASSERT_MSG, NS_FATAL_ERROR, NS_LOG_FUNCTION, NS_LOG_WARN, ns3::LteRrcSap::ReportConfigEutra::purpose, ns3::LteRrcSap::ReportConfigEutra::REPORT_STRONGEST_CELLS, ns3::LteRrcSap::ReportConfigToAddMod::reportConfigEutra, ns3::LteRrcSap::ReportConfigToAddMod::reportConfigId, ns3::LteRrcSap::MeasIdToAddMod::reportConfigId, ns3::LteRrcSap::MeasConfig::reportConfigToAddModList, ns3::LteRrcSap::ReportConfigEutra::reportQuantity, ns3::LteRrcSap::ReportConfigEutra::RSRP, ns3::LteRrcSap::ReportConfigEutra::RSRQ, ns3::LteRrcSap::ReportConfigEutra::threshold1, ns3::LteRrcSap::ReportConfigEutra::threshold2, ns3::LteRrcSap::ThresholdEutra::THRESHOLD_RSRP, ns3::LteRrcSap::ThresholdEutra::THRESHOLD_RSRQ, and ns3::LteRrcSap::ReportConfigEutra::triggerQuantity.

Referenced by DoAddUeMeasReportConfigForAnr(), and DoAddUeMeasReportConfigForHandover().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::LteEnbRrc::AddX2Neighbour ( uint16_t  cellId)

Add a neighbour with an X2 interface.

Parameters
cellIdneighbouring cell id

Definition at line 2179 of file lte-enb-rrc.cc.

References ns3::LteAnrSapProvider::AddNeighbourRelation(), m_anrSapProvider, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

void ns3::LteEnbRrc::ConfigureCell ( uint8_t  ulBandwidth,
uint8_t  dlBandwidth,
uint16_t  ulEarfcn,
uint16_t  dlEarfcn,
uint16_t  cellId 
)

Configure cell-specific parameters.

Parameters
ulBandwidththe uplink bandwidth in number of RB
dlBandwidththe downlink bandwidth in number of RB
ulEarfcnthe UL EARFCN
dlEarfcnthe DL EARFCN
cellIdthe ID of the cell

Configure cell-specific parameters and propagate them to lower layers. The parameters include bandwidth, EARFCN (E-UTRA Absolute Radio Frequency Channel Number), and cell ID.

In addition to parameter configuration, this function also performs several other tasks:

  • Initializing UE measurement (i.e. measurement object and quantity configuration), which is expected to be further configured through LteEnbRrc::AddUeMeasReportConfig;
  • Enabling MIB (Master Information Block) broadcast transmission
  • Enabling SIB (System Information Block) broadcast transmission

Typically runs when the eNodeB NetDevice is installed, for instance by LteHelper::InstallEnbDevice (i.e. before the simulation starts).

Warning
Raises an error when executed more than once.

Definition at line 1602 of file lte-enb-rrc.cc.

References ns3::LteRrcSap::MeasObjectEutra::allowedMeasBandwidth, ns3::LteRrcSap::MeasObjectEutra::carrierFreq, ns3::LteRrcSap::SystemInformationBlockType1::cellAccessRelatedInfo, ns3::LteRrcSap::CellAccessRelatedInfo::cellIdentity, ns3::LteRrcSap::SystemInformationBlockType1::cellSelectionInfo, ns3::LteEnbCmacSapProvider::ConfigureMac(), ns3::LteRrcSap::CellAccessRelatedInfo::csgIdentity, ns3::LteRrcSap::CellAccessRelatedInfo::csgIndication, ns3::LteRrcSap::MasterInformationBlock::dlBandwidth, ns3::LteRrcSap::QuantityConfig::filterCoefficientRSRP, ns3::LteRrcSap::QuantityConfig::filterCoefficientRSRQ, ns3::LteRrcSap::MeasObjectEutra::haveCellForWhichToReportCGI, ns3::LteRrcSap::MeasConfig::haveMeasGapConfig, ns3::LteRrcSap::MeasConfig::haveQuantityConfig, ns3::LteRrcSap::MeasConfig::haveSmeasure, ns3::LteRrcSap::MeasConfig::haveSpeedStatePars, m_cellId, m_cmacSapProvider, m_configured, m_cphySapProvider, m_dlBandwidth, m_dlEarfcn, m_qRxLevMin, m_rsrpFilterCoefficient, m_rsrqFilterCoefficient, m_sib1, m_ueMeasConfig, m_ulBandwidth, m_ulEarfcn, ns3::LteRrcSap::MeasObjectToAddMod::measObjectEutra, ns3::LteRrcSap::MeasObjectToAddMod::measObjectId, ns3::LteRrcSap::MeasConfig::measObjectToAddModList, ns3::LteRrcSap::MeasObjectEutra::neighCellConfig, NS_ASSERT, NS_LOG_FUNCTION, ns3::LteRrcSap::MeasObjectEutra::offsetFreq, ns3::LteRrcSap::PlmnIdentityInfo::plmnIdentity, ns3::LteRrcSap::CellAccessRelatedInfo::plmnIdentityInfo, ns3::LteRrcSap::MeasObjectEutra::presenceAntennaPort1, ns3::LteRrcSap::CellSelectionInfo::qQualMin, ns3::LteRrcSap::CellSelectionInfo::qRxLevMin, ns3::LteRrcSap::MeasConfig::quantityConfig, ns3::Simulator::Schedule(), SendSystemInformation(), ns3::LteEnbCphySapProvider::SetBandwidth(), ns3::LteEnbCphySapProvider::SetCellId(), ns3::LteEnbCphySapProvider::SetEarfcn(), ns3::LteEnbCphySapProvider::SetMasterInformationBlock(), and ns3::LteEnbCphySapProvider::SetSystemInformationBlockType1().

+ Here is the call graph for this function:

void ns3::LteEnbRrc::ConnectionRejectedTimeout ( uint16_t  rnti)

Method triggered a while after sending RRC Connection Rejected.

Parameters
rntithe T-C-RNTI whose timeout expired

Definition at line 1708 of file lte-enb-rrc.cc.

References ns3::UeManager::CONNECTION_REJECTED, GetUeManager(), NS_ASSERT_MSG, NS_LOG_FUNCTION, RemoveUe(), and ns3::ToString().

Referenced by ns3::UeManager::RecvRrcConnectionRequest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::LteEnbRrc::ConnectionTimeout ( uint16_t  rnti)

Method triggered when a UE is expected to get connected but does not do so in a reasonable time.

Parameters
rntithe T-C-RNTI whose timeout expired

Definition at line 1699 of file lte-enb-rrc.cc.

References GetUeManager(), ns3::UeManager::INITIAL_RANDOM_ACCESS, NS_ASSERT_MSG, NS_LOG_FUNCTION, RemoveUe(), and ns3::ToString().

Referenced by ns3::UeManager::DoInitialize().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8_t ns3::LteEnbRrc::DoAddUeMeasReportConfigForAnr ( LteRrcSap::ReportConfigEutra  reportConfig)
private

Definition at line 2088 of file lte-enb-rrc.cc.

References AddUeMeasReportConfig(), m_anrMeasIds, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

uint8_t ns3::LteEnbRrc::DoAddUeMeasReportConfigForHandover ( LteRrcSap::ReportConfigEutra  reportConfig)
private

Definition at line 2037 of file lte-enb-rrc.cc.

References AddUeMeasReportConfig(), m_handoverMeasIds, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

uint16_t ns3::LteEnbRrc::DoAllocateTemporaryCellRnti ( )
private

Definition at line 2015 of file lte-enb-rrc.cc.

References AddUe(), ns3::UeManager::INITIAL_RANDOM_ACCESS, and NS_LOG_FUNCTION.

Referenced by ns3::EnbRrcMemberLteEnbCmacSapUser::AllocateTemporaryCellRnti().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::LteEnbRrc::DoCompleteSetupUe ( uint16_t  rnti,
LteEnbRrcSapProvider::CompleteSetupUeParameters  params 
)
private

Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::CompleteSetupUe interface to UeManager::CompleteSetupUe.

Definition at line 1747 of file lte-enb-rrc.cc.

References GetUeManager(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

void ns3::LteEnbRrc::DoDispose ( void  )
protectedvirtual

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::Object.

Definition at line 1259 of file lte-enb-rrc.cc.

References m_anrSapUser, m_cmacSapUser, m_cphySapUser, m_handoverManagementSapUser, m_rrcSapProvider, m_s1SapUser, m_ueMap, m_x2SapUser, and NS_LOG_FUNCTION.

void ns3::LteEnbRrc::DoNotifyLcConfigResult ( uint16_t  rnti,
uint8_t  lcid,
bool  success 
)
private

Definition at line 2029 of file lte-enb-rrc.cc.

References NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Referenced by ns3::EnbRrcMemberLteEnbCmacSapUser::NotifyLcConfigResult().

+ Here is the caller graph for this function:

void ns3::LteEnbRrc::DoPathSwitchRequestAcknowledge ( EpcEnbS1SapUser::PathSwitchRequestAcknowledgeParameters  params)
private

Definition at line 1803 of file lte-enb-rrc.cc.

References GetUeManager(), and ns3::EpcEnbS1SapUser::PathSwitchRequestAcknowledgeParameters::rnti.

+ Here is the call graph for this function:

void ns3::LteEnbRrc::DoRecvHandoverRequest ( EpcX2SapUser::HandoverRequestParams  params)
private

Definition at line 1810 of file lte-enb-rrc.cc.

References AddUe(), ns3::EpcX2Sap::HandoverRequestAckParams::admittedBearers, ns3::LteEnbCmacSapProvider::AllocateNcRaPreamble(), ns3::EpcX2Sap::HandoverRequestParams::bearers, ns3::LteRrcSap::MobilityControlInfo::carrierBandwidth, ns3::LteRrcSap::MobilityControlInfo::carrierFreq, ns3::EpcX2Sap::HandoverPreparationFailureParams::cause, ns3::EpcX2Sap::HandoverPreparationFailureParams::criticalityDiagnostics, ns3::LteRrcSap::CarrierBandwidthEutra::dlBandwidth, ns3::LteRrcSap::CarrierFreqEutra::dlCarrierFreq, ns3::LteEnbRrcSapUser::EncodeHandoverCommand(), ns3::EpcX2Sap::ErabAdmittedItem::erabId, ns3::LteEnbCmacSapProvider::GetRachConfig(), GetUeManager(), ns3::UeManager::HANDOVER_JOINING, ns3::LteRrcSap::MobilityControlInfo::haveCarrierBandwidth, ns3::LteRrcSap::MobilityControlInfo::haveCarrierFreq, ns3::LteRrcSap::RrcConnectionReconfiguration::haveMobilityControlInfo, ns3::LteRrcSap::MobilityControlInfo::haveRachConfigDedicated, m_admitHandoverRequest, m_cellId, m_cmacSapProvider, m_dlBandwidth, m_dlEarfcn, m_rrcSapUser, m_ulBandwidth, m_ulEarfcn, m_x2SapProvider, ns3::EpcX2Sap::HandoverRequestParams::mmeUeS1apId, ns3::LteRrcSap::RrcConnectionReconfiguration::mobilityControlInfo, ns3::EpcX2Sap::HandoverRequestAckParams::newEnbUeX2apId, ns3::LteRrcSap::MobilityControlInfo::newUeIdentity, NS_ASSERT, NS_FATAL_ERROR, NS_LOG_FUNCTION, NS_LOG_INFO, NS_LOG_LOGIC, ns3::LteEnbCmacSapProvider::RachConfig::numberOfRaPreambles, ns3::LteRrcSap::PreambleInfo::numberOfRaPreambles, ns3::EpcX2Sap::HandoverRequestParams::oldEnbUeX2apId, ns3::EpcX2Sap::HandoverRequestAckParams::oldEnbUeX2apId, ns3::EpcX2Sap::HandoverPreparationFailureParams::oldEnbUeX2apId, ns3::LteRrcSap::RachConfigCommon::preambleInfo, ns3::LteEnbCmacSapProvider::RachConfig::preambleTransMax, ns3::LteRrcSap::RaSupervisionInfo::preambleTransMax, ns3::LteRrcSap::RadioResourceConfigCommon::rachConfigCommon, ns3::LteRrcSap::MobilityControlInfo::rachConfigDedicated, ns3::LteRrcSap::MobilityControlInfo::radioResourceConfigCommon, ns3::LteEnbCmacSapProvider::AllocateNcRaPreambleReturnValue::raPrachMaskIndex, ns3::LteRrcSap::RachConfigDedicated::raPrachMaskIndex, ns3::LteEnbCmacSapProvider::AllocateNcRaPreambleReturnValue::raPreambleId, ns3::LteRrcSap::RachConfigDedicated::raPreambleIndex, ns3::LteEnbCmacSapProvider::RachConfig::raResponseWindowSize, ns3::LteRrcSap::RaSupervisionInfo::raResponseWindowSize, ns3::LteRrcSap::RachConfigCommon::raSupervisionInfo, RemoveUe(), ns3::EpcX2Sap::HandoverRequestAckParams::rrcContext, ns3::EpcX2SapProvider::SendHandoverPreparationFailure(), ns3::EpcX2SapProvider::SendHandoverRequestAck(), ns3::EpcX2Sap::HandoverRequestParams::sourceCellId, ns3::EpcX2Sap::HandoverRequestAckParams::sourceCellId, ns3::EpcX2Sap::HandoverPreparationFailureParams::sourceCellId, ns3::EpcX2Sap::HandoverRequestParams::targetCellId, ns3::EpcX2Sap::HandoverRequestAckParams::targetCellId, ns3::EpcX2Sap::HandoverPreparationFailureParams::targetCellId, ns3::LteRrcSap::MobilityControlInfo::targetPhysCellId, ns3::LteRrcSap::CarrierBandwidthEutra::ulBandwidth, ns3::LteRrcSap::CarrierFreqEutra::ulCarrierFreq, and ns3::LteEnbCmacSapProvider::AllocateNcRaPreambleReturnValue::valid.

+ Here is the call graph for this function:

void ns3::LteEnbRrc::DoRecvLoadInformation ( EpcX2SapUser::LoadInformationParams  params)
private
void ns3::LteEnbRrc::DoRecvMeasurementReport ( uint16_t  rnti,
LteRrcSap::MeasurementReport  msg 
)
private

Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvMeasurementReport interface to UeManager::RecvMeasurementReport.

Definition at line 1789 of file lte-enb-rrc.cc.

References GetUeManager(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

void ns3::LteEnbRrc::DoRecvResourceStatusUpdate ( EpcX2SapUser::ResourceStatusUpdateParams  params)
private
void ns3::LteEnbRrc::DoRecvRrcConnectionReconfigurationCompleted ( uint16_t  rnti,
LteRrcSap::RrcConnectionReconfigurationCompleted  msg 
)
private

Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionReconfigurationCompleted interface to UeManager::RecvRrcConnectionReconfigurationCompleted.

Definition at line 1768 of file lte-enb-rrc.cc.

References GetUeManager(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

void ns3::LteEnbRrc::DoRecvRrcConnectionReestablishmentComplete ( uint16_t  rnti,
LteRrcSap::RrcConnectionReestablishmentComplete  msg 
)
private

Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionReestablishmentComplete interface to UeManager::RecvRrcConnectionReestablishmentComplete.

Definition at line 1782 of file lte-enb-rrc.cc.

References GetUeManager(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

void ns3::LteEnbRrc::DoRecvRrcConnectionReestablishmentRequest ( uint16_t  rnti,
LteRrcSap::RrcConnectionReestablishmentRequest  msg 
)
private

Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionReestablishmentRequest interface to UeManager::RecvRrcConnectionReestablishmentRequest.

Definition at line 1775 of file lte-enb-rrc.cc.

References GetUeManager(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

void ns3::LteEnbRrc::DoRecvRrcConnectionRequest ( uint16_t  rnti,
LteRrcSap::RrcConnectionRequest  msg 
)
private

Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionRequest interface to UeManager::RecvRrcConnectionRequest.

Definition at line 1754 of file lte-enb-rrc.cc.

References GetUeManager(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

void ns3::LteEnbRrc::DoRecvRrcConnectionSetupCompleted ( uint16_t  rnti,
LteRrcSap::RrcConnectionSetupCompleted  msg 
)
private

Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionSetupCompleted interface to UeManager::RecvRrcConnectionSetupCompleted.

Definition at line 1761 of file lte-enb-rrc.cc.

References GetUeManager(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

void ns3::LteEnbRrc::DoRecvUeContextRelease ( EpcX2SapUser::UeContextReleaseParams  params)
private
void ns3::LteEnbRrc::DoRrcConfigurationUpdateInd ( LteEnbCmacSapUser::UeConfig  params)
private

Definition at line 2022 of file lte-enb-rrc.cc.

References GetUeManager(), and ns3::LteEnbCmacSapUser::UeConfig::m_rnti.

Referenced by ns3::EnbRrcMemberLteEnbCmacSapUser::RrcConfigurationUpdateInd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::LteEnbRrc::DoTriggerHandover ( uint16_t  rnti,
uint16_t  targetCellId 
)
private
EpcX2SapUser * ns3::LteEnbRrc::GetEpcX2SapUser ( )

Get the X2 SAP offered by this RRC.

Returns
s the X2 SAP User interface offered to the X2 entity by this RRC entity

Definition at line 1407 of file lte-enb-rrc.cc.

References m_x2SapUser, and NS_LOG_FUNCTION.

uint8_t ns3::LteEnbRrc::GetLogicalChannelGroup ( EpsBearer  bearer)
private
Parameters
bearerthe characteristics of the bearer
Returns
the Logical Channel Group in a bearer with these characteristics is put. Used for MAC Buffer Status Reporting purposes.

Definition at line 2300 of file lte-enb-rrc.cc.

References ns3::EpsBearer::IsGbr().

+ Here is the call graph for this function:

uint8_t ns3::LteEnbRrc::GetLogicalChannelPriority ( EpsBearer  bearer)
private
Parameters
bearerthe characteristics of the bearer
Returns
the priority level of a bearer with these characteristics is put. Used for the part of UL MAC Scheduling carried out by the UE

Definition at line 2313 of file lte-enb-rrc.cc.

References ns3::EpsBearer::qci.

LteAnrSapUser * ns3::LteEnbRrc::GetLteAnrSapUser ( )

Get the ANR SAP offered by this RRC.

Returns
s the ANR SAP User interface offered to the ANR instance by this RRC

Definition at line 1449 of file lte-enb-rrc.cc.

References m_anrSapUser, and NS_LOG_FUNCTION.

LteEnbCmacSapUser * ns3::LteEnbRrc::GetLteEnbCmacSapUser ( )

Get the CMAC SAP offered by this RRC.

Returns
s the CMAC SAP User interface offered to the MAC by this RRC

Definition at line 1421 of file lte-enb-rrc.cc.

References m_cmacSapUser, and NS_LOG_FUNCTION.

LteEnbCphySapUser * ns3::LteEnbRrc::GetLteEnbCphySapUser ( )
Returns
s the CPHY SAP User interface offered to the PHY by this RRC

Definition at line 1497 of file lte-enb-rrc.cc.

References m_cphySapUser, and NS_LOG_FUNCTION.

LteEnbRrcSapProvider * ns3::LteEnbRrc::GetLteEnbRrcSapProvider ( )
Returns
s the RRC SAP Provider interface offered to the MAC by this RRC

Definition at line 1463 of file lte-enb-rrc.cc.

References m_rrcSapProvider, and NS_LOG_FUNCTION.

LteHandoverManagementSapUser * ns3::LteEnbRrc::GetLteHandoverManagementSapUser ( )

Get the Handover Management SAP offered by this RRC.

Returns
s the Handover Management SAP User interface offered to the handover algorithm by this RRC

Definition at line 1435 of file lte-enb-rrc.cc.

References m_handoverManagementSapUser, and NS_LOG_FUNCTION.

uint16_t ns3::LteEnbRrc::GetNewSrsConfigurationIndex ( void  )
private

Allocate a new SRS configuration index for a new UE.

Note
this method can have the side effect of updating the SRS configuration index of all UEs
Returns
the newly allocated SRS configuration index

Definition at line 2237 of file lte-enb-rrc.cc.

References ns3::g_srsCiHigh, ns3::g_srsCiLow, ns3::g_srsPeriodicity, m_lastAllocatedConfigurationIndex, m_srsCurrentPeriodicityId, m_ueSrsConfigurationIndexSet, NS_ASSERT, NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::SRS_ENTRIES.

TypeId ns3::LteEnbRrc::GetRlcType ( EpsBearer  bearer)
private
Parameters
bearerthe specification of an EPS bearer
Returns
the type of RLC that is to be created for the given EPS bearer

Definition at line 2144 of file lte-enb-rrc.cc.

References ns3::EpsBearer::GetPacketErrorLossRate(), ns3::LteRlcUm::GetTypeId(), ns3::LteRlcAm::GetTypeId(), ns3::LteRlcSm::GetTypeId(), m_epsBearerToRlcMapping, PER_BASED, RLC_AM_ALWAYS, RLC_SM_ALWAYS, and RLC_UM_ALWAYS.

+ Here is the call graph for this function:

EpcEnbS1SapUser * ns3::LteEnbRrc::GetS1SapUser ( )
Returns
the S1 SAP user

Definition at line 1484 of file lte-enb-rrc.cc.

References m_s1SapUser.

uint32_t ns3::LteEnbRrc::GetSrsPeriodicity ( ) const
Returns
the current SRS periodicity

Definition at line 2227 of file lte-enb-rrc.cc.

References ns3::g_srsPeriodicity, m_srsCurrentPeriodicityId, NS_ASSERT, NS_LOG_FUNCTION, and ns3::SRS_ENTRIES.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

void ns3::LteEnbRrc::HandoverJoiningTimeout ( uint16_t  rnti)

Method triggered when a UE is expected to join the cell for a handover but does not do so in a reasonable time.

Parameters
rntithe C-RNTI whose timeout expired

Definition at line 1717 of file lte-enb-rrc.cc.

References GetUeManager(), ns3::UeManager::HANDOVER_JOINING, NS_ASSERT_MSG, NS_LOG_FUNCTION, RemoveUe(), and ns3::ToString().

Referenced by ns3::UeManager::DoInitialize().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::LteEnbRrc::HandoverLeavingTimeout ( uint16_t  rnti)

Method triggered when a UE is expected to leave a cell for a handover but no feedback is received in a reasonable time.

Parameters
rntithe C-RNTI whose timeout expired

Definition at line 1726 of file lte-enb-rrc.cc.

References GetUeManager(), ns3::UeManager::HANDOVER_LEAVING, NS_ASSERT_MSG, NS_LOG_FUNCTION, RemoveUe(), and ns3::ToString().

Referenced by ns3::UeManager::RecvHandoverRequestAck().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::LteEnbRrc::RemoveSrsConfigurationIndex ( uint16_t  srcCi)
private

remove a previously allocated SRS configuration index

Note
this method can have the side effect of updating the SRS configuration index of all UEs
Parameters
srcCithe indext to be removed

Definition at line 2291 of file lte-enb-rrc.cc.

References m_ueSrsConfigurationIndexSet, NS_ASSERT_MSG, and NS_LOG_FUNCTION.

Referenced by RemoveUe().

+ Here is the caller graph for this function:

void ns3::LteEnbRrc::RemoveUe ( uint16_t  rnti)
private
bool ns3::LteEnbRrc::SendData ( Ptr< Packet p)

Enqueue an IP data packet on the proper bearer for downlink transmission.

Normally expected to be called by the NetDevice forwarding a packet coming from the EpcEnbApplication

Parameters
pthe packet
Returns
true if successful, false if an error occurred

Definition at line 1679 of file lte-enb-rrc.cc.

References ns3::EpsBearerTag::GetBid(), ns3::EpsBearerTag::GetRnti(), GetUeManager(), NS_ASSERT_MSG, NS_LOG_FUNCTION, and ns3::Packet::RemovePacketTag().

+ Here is the call graph for this function:

void ns3::LteEnbRrc::SendHandoverRequest ( uint16_t  rnti,
uint16_t  cellId 
)

Send a HandoverRequest through the X2 SAP interface.

This method will trigger a handover which is started by the RRC by sending a handover request to the target eNB over the X2 interface

Parameters
rntithe ID of the UE to be handed over
cellIdthe ID of the target eNB

Definition at line 1735 of file lte-enb-rrc.cc.

References GetUeManager(), m_configured, NS_ASSERT, NS_LOG_FUNCTION, and NS_LOG_LOGIC.

+ Here is the call graph for this function:

void ns3::LteEnbRrc::SetCellId ( uint16_t  m_cellId)
void ns3::LteEnbRrc::SetCsgId ( uint32_t  csgId,
bool  csgIndication 
)

Associate this RRC entity with a particular CSG information.

Parameters
csgIdthe intended Closed Subscriber Group identity
csgIndicationif TRUE, only CSG members are allowed to access the cell

CSG identity is a number identifying a Closed Subscriber Group which the cell belongs to. eNodeB is associated with a single CSG identity.

The same CSG identity can also be associated to several UEs, which is equivalent as enlisting these UEs as the members of this particular CSG. When the CSG indication field is set to TRUE, only UEs which are members of the CSG (i.e. same CSG ID) can gain access to the eNodeB, therefore enforcing closed access mode. Otherwise, the eNodeB operates as a non-CSG cell and implements open access mode.

This restriction only applies to initial cell selection and EPC-enabled simulation.

Definition at line 2190 of file lte-enb-rrc.cc.

References ns3::LteRrcSap::SystemInformationBlockType1::cellAccessRelatedInfo, ns3::LteRrcSap::CellAccessRelatedInfo::csgIdentity, ns3::LteRrcSap::CellAccessRelatedInfo::csgIndication, m_cphySapProvider, m_sib1, NS_LOG_FUNCTION, and ns3::LteEnbCphySapProvider::SetSystemInformationBlockType1().

+ Here is the call graph for this function:

void ns3::LteEnbRrc::SetEpcX2SapProvider ( EpcX2SapProvider s)

Set the X2 SAP this RRC should interact with.

Parameters
sthe X2 SAP Provider to be used by this RRC entity

Definition at line 1400 of file lte-enb-rrc.cc.

References m_x2SapProvider, NS_LOG_FUNCTION, and s.

void ns3::LteEnbRrc::SetForwardUpCallback ( Callback< void, Ptr< Packet > >  cb)

set the callback used to forward data packets up the stack

Parameters
cb

Definition at line 1693 of file lte-enb-rrc.cc.

References m_forwardUpCallback.

void ns3::LteEnbRrc::SetLteAnrSapProvider ( LteAnrSapProvider s)

set the ANR SAP this RRC should interact with

Parameters
sthe ANR SAP Provider to be used by this RRC

Definition at line 1442 of file lte-enb-rrc.cc.

References m_anrSapProvider, NS_LOG_FUNCTION, and s.

void ns3::LteEnbRrc::SetLteEnbCmacSapProvider ( LteEnbCmacSapProvider s)

set the CMAC SAP this RRC should interact with

Parameters
sthe CMAC SAP Provider to be used by this RRC

Definition at line 1414 of file lte-enb-rrc.cc.

References m_cmacSapProvider, NS_LOG_FUNCTION, and s.

void ns3::LteEnbRrc::SetLteEnbCphySapProvider ( LteEnbCphySapProvider s)

set the CPHY SAP this RRC should use to interact with the PHY

Parameters
sthe CPHY SAP Provider

Definition at line 1490 of file lte-enb-rrc.cc.

References m_cphySapProvider, NS_LOG_FUNCTION, and s.

void ns3::LteEnbRrc::SetLteEnbRrcSapUser ( LteEnbRrcSapUser s)

set the RRC SAP this RRC should interact with

Parameters
sthe RRC SAP User to be used by this RRC

Definition at line 1456 of file lte-enb-rrc.cc.

References m_rrcSapUser, NS_LOG_FUNCTION, and s.

void ns3::LteEnbRrc::SetLteHandoverManagementSapProvider ( LteHandoverManagementSapProvider s)

set the Handover Management SAP this RRC should interact with

Parameters
sthe Handover Management SAP Provider to be used by this RRC

Definition at line 1428 of file lte-enb-rrc.cc.

References m_handoverManagementSapProvider, NS_LOG_FUNCTION, and s.

void ns3::LteEnbRrc::SetLteMacSapProvider ( LteMacSapProvider s)

set the MAC SAP provider.

The eNB RRC does not use this directly, but it needs to provide it to newly created RLC instances.

Parameters
sthe MAC SAP provider that will be used by all newly created RLC instances

Definition at line 1470 of file lte-enb-rrc.cc.

References m_macSapProvider, NS_LOG_FUNCTION, and s.

void ns3::LteEnbRrc::SetS1SapProvider ( EpcEnbS1SapProvider s)

Set the S1 SAP Provider.

Parameters
sthe S1 SAP Provider

Definition at line 1477 of file lte-enb-rrc.cc.

References m_s1SapProvider, and s.

void ns3::LteEnbRrc::SetSrsPeriodicity ( uint32_t  p)
Parameters
pthe SRS periodicity in num TTIs

Definition at line 2206 of file lte-enb-rrc.cc.

References ns3::g_srsPeriodicity, m_srsCurrentPeriodicityId, NS_FATAL_ERROR, NS_LOG_FUNCTION, and ns3::SRS_ENTRIES.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class EnbRrcMemberLteEnbCmacSapUser
friend

Definition at line 430 of file lte-enb-rrc.h.

Referenced by LteEnbRrc().

friend class EpcX2SpecificEpcX2SapUser< LteEnbRrc >
friend

Definition at line 435 of file lte-enb-rrc.h.

friend class MemberEpcEnbS1SapUser< LteEnbRrc >
friend

Definition at line 434 of file lte-enb-rrc.h.

friend class MemberLteAnrSapUser< LteEnbRrc >
friend

Definition at line 432 of file lte-enb-rrc.h.

friend class MemberLteEnbRrcSapProvider< LteEnbRrc >
friend

Definition at line 433 of file lte-enb-rrc.h.

Definition at line 431 of file lte-enb-rrc.h.

friend class UeManager
friend

Definition at line 436 of file lte-enb-rrc.h.

Member Data Documentation

bool ns3::LteEnbRrc::m_admitHandoverRequest
private

Definition at line 945 of file lte-enb-rrc.h.

Referenced by DoRecvHandoverRequest(), and GetTypeId().

bool ns3::LteEnbRrc::m_admitRrcConnectionRequest
private

Definition at line 946 of file lte-enb-rrc.h.

Referenced by GetTypeId().

std::set<uint8_t> ns3::LteEnbRrc::m_anrMeasIds
private

Definition at line 918 of file lte-enb-rrc.h.

Referenced by DoAddUeMeasReportConfigForAnr().

LteAnrSapProvider* ns3::LteEnbRrc::m_anrSapProvider
private

Definition at line 885 of file lte-enb-rrc.h.

Referenced by AddX2Neighbour(), DoTriggerHandover(), and SetLteAnrSapProvider().

LteAnrSapUser* ns3::LteEnbRrc::m_anrSapUser
private

Definition at line 884 of file lte-enb-rrc.h.

Referenced by DoDispose(), GetLteAnrSapUser(), and LteEnbRrc().

uint16_t ns3::LteEnbRrc::m_cellId
private
LteEnbCmacSapProvider* ns3::LteEnbRrc::m_cmacSapProvider
private
LteEnbCmacSapUser* ns3::LteEnbRrc::m_cmacSapUser
private

Definition at line 878 of file lte-enb-rrc.h.

Referenced by DoDispose(), GetLteEnbCmacSapUser(), and LteEnbRrc().

bool ns3::LteEnbRrc::m_configured
private

Definition at line 898 of file lte-enb-rrc.h.

Referenced by ConfigureCell(), and SendHandoverRequest().

TracedCallback<uint64_t, uint16_t, uint16_t> ns3::LteEnbRrc::m_connectionEstablishedTrace
private

Definition at line 961 of file lte-enb-rrc.h.

Referenced by GetTypeId().

TracedCallback<uint64_t, uint16_t, uint16_t> ns3::LteEnbRrc::m_connectionReconfigurationTrace
private

Definition at line 963 of file lte-enb-rrc.h.

Referenced by GetTypeId().

Time ns3::LteEnbRrc::m_connectionRejectedTimeoutDuration
private

Definition at line 954 of file lte-enb-rrc.h.

Referenced by GetTypeId().

Time ns3::LteEnbRrc::m_connectionTimeoutDuration
private

Definition at line 953 of file lte-enb-rrc.h.

Referenced by GetTypeId().

LteEnbCphySapProvider* ns3::LteEnbRrc::m_cphySapProvider
private

Definition at line 896 of file lte-enb-rrc.h.

Referenced by ConfigureCell(), RemoveUe(), SetCellId(), SetCsgId(), and SetLteEnbCphySapProvider().

LteEnbCphySapUser* ns3::LteEnbRrc::m_cphySapUser
private

Definition at line 895 of file lte-enb-rrc.h.

Referenced by DoDispose(), GetLteEnbCphySapUser(), and LteEnbRrc().

uint8_t ns3::LteEnbRrc::m_defaultTransmissionMode
private

Definition at line 929 of file lte-enb-rrc.h.

Referenced by GetTypeId().

uint16_t ns3::LteEnbRrc::m_dlBandwidth
private

Definition at line 902 of file lte-enb-rrc.h.

Referenced by ConfigureCell(), and DoRecvHandoverRequest().

uint16_t ns3::LteEnbRrc::m_dlEarfcn
private

Definition at line 900 of file lte-enb-rrc.h.

Referenced by ConfigureCell(), and DoRecvHandoverRequest().

enum LteEpsBearerToRlcMapping_t ns3::LteEnbRrc::m_epsBearerToRlcMapping
private

Definition at line 931 of file lte-enb-rrc.h.

Referenced by GetRlcType(), and GetTypeId().

Callback<void, Ptr<Packet> > ns3::LteEnbRrc::m_forwardUpCallback
private

Definition at line 873 of file lte-enb-rrc.h.

Referenced by SetForwardUpCallback().

TracedCallback<uint64_t, uint16_t, uint16_t> ns3::LteEnbRrc::m_handoverEndOkTrace
private

Definition at line 967 of file lte-enb-rrc.h.

Referenced by GetTypeId().

Time ns3::LteEnbRrc::m_handoverJoiningTimeoutDuration
private

Definition at line 955 of file lte-enb-rrc.h.

Referenced by GetTypeId().

Time ns3::LteEnbRrc::m_handoverLeavingTimeoutDuration
private

Definition at line 956 of file lte-enb-rrc.h.

Referenced by GetTypeId().

LteHandoverManagementSapProvider* ns3::LteEnbRrc::m_handoverManagementSapProvider
private

Definition at line 882 of file lte-enb-rrc.h.

Referenced by SetLteHandoverManagementSapProvider().

LteHandoverManagementSapUser* ns3::LteEnbRrc::m_handoverManagementSapUser
private

Definition at line 881 of file lte-enb-rrc.h.

Referenced by DoDispose(), GetLteHandoverManagementSapUser(), and LteEnbRrc().

std::set<uint8_t> ns3::LteEnbRrc::m_handoverMeasIds
private

Definition at line 917 of file lte-enb-rrc.h.

Referenced by DoAddUeMeasReportConfigForHandover().

TracedCallback<uint64_t, uint16_t, uint16_t, uint16_t> ns3::LteEnbRrc::m_handoverStartTrace
private

Definition at line 965 of file lte-enb-rrc.h.

Referenced by GetTypeId().

uint16_t ns3::LteEnbRrc::m_lastAllocatedConfigurationIndex
private

Definition at line 938 of file lte-enb-rrc.h.

Referenced by GetNewSrsConfigurationIndex().

uint16_t ns3::LteEnbRrc::m_lastAllocatedRnti
private

Definition at line 904 of file lte-enb-rrc.h.

Referenced by AddUe().

LteMacSapProvider* ns3::LteEnbRrc::m_macSapProvider
private

Definition at line 890 of file lte-enb-rrc.h.

Referenced by SetLteMacSapProvider().

TracedCallback<uint16_t, uint16_t> ns3::LteEnbRrc::m_newUeContextTrace
private

Definition at line 959 of file lte-enb-rrc.h.

Referenced by AddUe(), and GetTypeId().

int8_t ns3::LteEnbRrc::m_qRxLevMin
private

Definition at line 942 of file lte-enb-rrc.h.

Referenced by ConfigureCell(), and GetTypeId().

bool ns3::LteEnbRrc::m_reconfigureUes
private

Definition at line 939 of file lte-enb-rrc.h.

TracedCallback<uint64_t, uint16_t, uint16_t, LteRrcSap::MeasurementReport> ns3::LteEnbRrc::m_recvMeasurementReportTrace
private

Definition at line 970 of file lte-enb-rrc.h.

Referenced by GetTypeId().

LteEnbRrcSapProvider* ns3::LteEnbRrc::m_rrcSapProvider
private

Definition at line 888 of file lte-enb-rrc.h.

Referenced by DoDispose(), GetLteEnbRrcSapProvider(), and LteEnbRrc().

LteEnbRrcSapUser* ns3::LteEnbRrc::m_rrcSapUser
private
uint8_t ns3::LteEnbRrc::m_rsrpFilterCoefficient
private

Definition at line 949 of file lte-enb-rrc.h.

Referenced by ConfigureCell(), and GetTypeId().

uint8_t ns3::LteEnbRrc::m_rsrqFilterCoefficient
private

Definition at line 950 of file lte-enb-rrc.h.

Referenced by ConfigureCell(), and GetTypeId().

EpcEnbS1SapProvider* ns3::LteEnbRrc::m_s1SapProvider
private

Definition at line 892 of file lte-enb-rrc.h.

Referenced by RemoveUe(), and SetS1SapProvider().

EpcEnbS1SapUser* ns3::LteEnbRrc::m_s1SapUser
private

Definition at line 893 of file lte-enb-rrc.h.

Referenced by DoDispose(), GetS1SapUser(), and LteEnbRrc().

LteRrcSap::SystemInformationBlockType1 ns3::LteEnbRrc::m_sib1
private

the System Information Block Type 1 that is currently broadcasted over BCH

Definition at line 907 of file lte-enb-rrc.h.

Referenced by ConfigureCell(), SetCellId(), and SetCsgId().

uint16_t ns3::LteEnbRrc::m_srsCurrentPeriodicityId
private
Time ns3::LteEnbRrc::m_systemInformationPeriodicity
private

Definition at line 933 of file lte-enb-rrc.h.

Referenced by GetTypeId(), and SendSystemInformation().

std::map<uint16_t, Ptr<UeManager> > ns3::LteEnbRrc::m_ueMap
private

Definition at line 909 of file lte-enb-rrc.h.

Referenced by AddUe(), DoDispose(), GetTypeId(), GetUeManager(), and RemoveUe().

LteRrcSap::MeasConfig ns3::LteEnbRrc::m_ueMeasConfig
private

List of measurement configuration which are active in every UE attached to this eNodeB instance.

Definition at line 915 of file lte-enb-rrc.h.

Referenced by AddUeMeasReportConfig(), and ConfigureCell().

std::set<uint16_t> ns3::LteEnbRrc::m_ueSrsConfigurationIndexSet
private

Definition at line 937 of file lte-enb-rrc.h.

Referenced by GetNewSrsConfigurationIndex(), and RemoveSrsConfigurationIndex().

uint16_t ns3::LteEnbRrc::m_ulBandwidth
private

Definition at line 903 of file lte-enb-rrc.h.

Referenced by ConfigureCell(), DoRecvHandoverRequest(), and SendSystemInformation().

uint16_t ns3::LteEnbRrc::m_ulEarfcn
private

Definition at line 901 of file lte-enb-rrc.h.

Referenced by ConfigureCell(), DoRecvHandoverRequest(), and SendSystemInformation().

EpcX2SapProvider* ns3::LteEnbRrc::m_x2SapProvider
private

Definition at line 876 of file lte-enb-rrc.h.

Referenced by DoRecvHandoverRequest(), and SetEpcX2SapProvider().

EpcX2SapUser* ns3::LteEnbRrc::m_x2SapUser
private

Definition at line 875 of file lte-enb-rrc.h.

Referenced by DoDispose(), GetEpcX2SapUser(), and LteEnbRrc().

std::map<uint32_t, X2uTeidInfo> ns3::LteEnbRrc::m_x2uTeidInfoMap
private

Definition at line 927 of file lte-enb-rrc.h.

Referenced by DoRecvUeData().


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