25 #include <ns3/fatal-error.h>
27 #include <ns3/abort.h>
29 #include <ns3/pointer.h>
30 #include <ns3/object-map.h>
31 #include <ns3/object-factory.h>
32 #include <ns3/simulator.h>
34 #include <ns3/lte-radio-bearer-info.h>
35 #include <ns3/eps-bearer-tag.h>
36 #include <ns3/packet.h>
38 #include <ns3/lte-rlc.h>
39 #include <ns3/lte-rlc-tm.h>
40 #include <ns3/lte-rlc-um.h>
41 #include <ns3/lte-rlc-am.h>
42 #include <ns3/lte-pdcp.h>
105 "INITIAL_RANDOM_ACCESS",
107 "CONNECTION_REJECTED",
108 "CONNECTED_NORMALLY",
109 "CONNECTION_RECONFIGURATION",
110 "CONNECTION_REESTABLISHMENT",
111 "HANDOVER_PREPARATION",
113 "HANDOVER_PATH_SWITCH",
133 : m_lastAllocatedDrbid (0),
136 m_lastRrcTransactionIdentifier (0),
139 m_pendingRrcConnectionReconfiguration (false),
142 m_needPhyMacConfiguration (false)
169 Ptr<LteRlc> rlc = CreateObject<LteRlcTm> ()->GetObject<LteRlc> ();
174 m_srb0 = CreateObject<LteSignalingRadioBearerInfo> ();
176 m_srb0->m_srbIdentity = 0;
191 Ptr<LteRlc> rlc = CreateObject<LteRlcAm> ()->GetObject<LteRlc> ();
198 pdcp->SetLcId (lcid);
203 m_srb1 = CreateObject<LteSignalingRadioBearerInfo> ();
206 m_srb1->m_srbIdentity = 1;
207 m_srb1->m_logicalChannelConfig.priority = 0;
208 m_srb1->m_logicalChannelConfig.prioritizedBitRateKbps = 100;
209 m_srb1->m_logicalChannelConfig.bucketSizeDurationMs = 100;
210 m_srb1->m_logicalChannelConfig.logicalChannelGroup = 0;
234 m_rrc->m_cmacSapProvider->UeUpdateConfigurationReq (req);
241 Time maxConnectionDelay;
277 m_rrc->m_x2uTeidInfoMap.erase (it->second->m_gtpTeid);
286 .AddConstructor<UeManager> ()
287 .AddAttribute (
"DataRadioBearerMap",
"List of UE DataRadioBearerInfo by DRBID.",
290 MakeObjectMapChecker<LteDataRadioBearerInfo> ())
291 .AddAttribute (
"Srb0",
"SignalingRadioBearerInfo for SRB0",
294 MakePointerChecker<LteSignalingRadioBearerInfo> ())
295 .AddAttribute (
"Srb1",
"SignalingRadioBearerInfo for SRB1",
298 MakePointerChecker<LteSignalingRadioBearerInfo> ())
299 .AddAttribute (
"C-RNTI",
300 "Cell Radio Network Temporary Identifier",
304 MakeUintegerChecker<uint16_t> ())
305 .AddTraceSource (
"StateTransition",
306 "fired upon every UE state transition seen by the UeManager at the eNB RRC",
334 NS_ASSERT_MSG ( bearerId == 0 || bid == bearerId,
"bearer ID mismatch (" << (uint32_t) bid <<
" != " << (uint32_t) bearerId <<
", the assumption that ID are allocated in the same way by MME and RRC is not valid any more");
335 drbInfo->m_epsBearerIdentity = bid;
336 drbInfo->m_drbIdentity = drbid;
337 drbInfo->m_logicalChannelIdentity = lcid;
338 drbInfo->m_gtpTeid = gtpTeid;
339 drbInfo->m_transportLayerAddress = transportLayerAddress;
346 x2uTeidInfo.
drbid = drbid;
347 std::pair<std::map<uint32_t, LteEnbRrc::X2uTeidInfo>::iterator,
bool>
348 ret =
m_rrc->m_x2uTeidInfoMap.insert (std::pair<uint32_t, LteEnbRrc::X2uTeidInfo> (gtpTeid, x2uTeidInfo));
349 NS_ASSERT_MSG (ret.second ==
true,
"overwriting a pre-existing entry in m_x2uTeidInfoMap");
360 drbInfo->m_rlc = rlc;
369 pdcp->SetRnti (m_rnti);
370 pdcp->SetLcId (lcid);
374 drbInfo->m_pdcp = pdcp;
380 lcinfo.
lcGroup =
m_rrc->GetLogicalChannelGroup (bearer);
398 drbInfo->m_logicalChannelIdentity = lcid;
399 drbInfo->m_logicalChannelConfig.priority =
m_rrc->GetLogicalChannelPriority (bearer);
400 drbInfo->m_logicalChannelConfig.logicalChannelGroup =
m_rrc->GetLogicalChannelGroup (bearer);
403 drbInfo->m_logicalChannelConfig.prioritizedBitRateKbps = bearer.
gbrQosInfo.
gbrUl;
407 drbInfo->m_logicalChannelConfig.prioritizedBitRateKbps = 0;
409 drbInfo->m_logicalChannelConfig.bucketSizeDurationMs = 1000;
434 std::map <uint8_t, Ptr<LteDataRadioBearerInfo> >::iterator drbIt =
m_drbMap.find (*drbIdIt);
436 drbIt->second->m_rlc->Initialize ();
437 if (drbIt->second->m_pdcp)
439 drbIt->second->m_pdcp->Initialize ();
451 std::map <uint8_t, Ptr<LteDataRadioBearerInfo> >::iterator it =
m_drbMap.find (drbid);
452 NS_ASSERT_MSG (it !=
m_drbMap.end (),
"request to remove radio bearer with unknown drbid " << drbid);
455 m_rrc->m_x2uTeidInfoMap.erase (it->second->m_gtpTeid);
458 m_rrc->m_cmacSapProvider->ReleaseLc (
m_rnti, lcid);
468 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration (
m_rnti, msg);
493 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration (
m_rnti, msg);
541 params.
rrcContext =
m_rrc->m_rrcSapUser->EncodeHandoverPreparationInformation (hpi);
549 m_rrc->m_x2SapProvider->SendHandoverRequest (params);
577 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration (
m_rnti, handoverCommand);
595 if (0 != drbIt->second->m_rlc->GetObject<
LteRlcAm> ())
604 m_rrc->m_x2SapProvider->SendSnStatusTransfer (sst);
641 NS_LOG_LOGIC (
"queueing data on PDCP for transmission over the air");
654 NS_LOG_LOGIC (
"forwarding data to target eNB over X2-U");
661 m_rrc->m_x2SapProvider->SendUeData (params);
671 std::vector<EpcX2Sap::ErabToBeSetupItem>
675 std::vector<EpcX2Sap::ErabToBeSetupItem> ret;
681 etbsi.
erabId = it->second->m_epsBearerIdentity;
685 etbsi.
gtpTeid = it->second->m_gtpTeid;
686 ret.push_back (etbsi);
698 NS_LOG_INFO (
"Send UE CONTEXT RELEASE from target eNB to source eNB");
703 m_rrc->m_x2SapProvider->SendUeContextRelease (ueCtxReleaseParams);
722 NS_LOG_INFO (
"target eNB sent HO preparation failure, aborting HO");
736 for (std::vector<EpcX2Sap::ErabsSubjectToStatusTransferItem>::iterator erabIt
780 if (
m_rrc->m_admitRrcConnectionRequest ==
true)
783 if (
m_rrc->m_s1SapProvider != 0)
792 m_rrc->m_rrcSapUser->SendRrcConnectionSetup (
m_rnti, msg2);
796 m_rrc->m_connectionSetupTimeoutDuration,
807 m_rrc->m_rrcSapUser->SendRrcConnectionReject (
m_rnti, rejectMsg);
810 m_rrc->m_connectionRejectedTimeoutDuration,
856 m_rrc->m_cmacSapProvider->UeUpdateConfigurationReq (req);
862 m_rrc->m_cphySapProvider->SetPa (
m_rnti, paDouble);
877 NS_LOG_INFO (
"Send PATH SWITCH REQUEST to the MME");
889 b.
teid = it->second->m_gtpTeid;
892 m_rrc->m_s1SapProvider->PathSwitchRequest (params);
923 m_rrc->m_rrcSapUser->SendRrcConnectionReestablishment (
m_rnti, msg2);
951 <<
" RSRP " << (it->haveRsrpResult ? (uint16_t) it->rsrpResult : 255)
952 <<
" RSRQ " << (it->haveRsrqResult ? (uint16_t) it->rsrqResult : 255));
955 if ((
m_rrc->m_handoverManagementSapProvider != 0)
956 && (
m_rrc->m_handoverMeasIds.find (measId) !=
m_rrc->m_handoverMeasIds.end ()))
959 m_rrc->m_handoverManagementSapProvider->ReportUeMeas (
m_rnti,
963 if ((
m_rrc->m_anrSapProvider != 0)
964 && (
m_rrc->m_anrMeasIds.find (measId) !=
m_rrc->m_anrMeasIds.end ()))
970 if ((
m_rrc->m_ffrRrcSapProvider != 0)
971 && (
m_rrc->m_ffrMeasIds.find (measId) !=
m_rrc->m_ffrMeasIds.end ()))
1006 if (params.
lcid > 2)
1041 m_rrc->m_cphySapProvider->SetSrsConfigurationIndex (
m_rnti, srsConfIndex);
1077 const uint8_t MAX_DRB_ID = 32;
1080 drbid = (drbid + 1) % MAX_DRB_ID)
1087 drbInfo->m_drbIdentity = drbid;
1102 std::map<uint8_t, Ptr<LteDataRadioBearerInfo> >::iterator it =
m_drbMap.find (drbid);
1112 std::map <uint8_t, Ptr<LteDataRadioBearerInfo> >::iterator it =
m_drbMap.find (drbid);
1113 NS_ASSERT_MSG (it !=
m_drbMap.end (),
"request to remove radio bearer with unknown drbid " << drbid);
1152 dtam.
rlcConfig = it->second->m_rlcConfig;
1259 : m_x2SapProvider (0),
1260 m_cmacSapProvider (0),
1261 m_handoverManagementSapProvider (0),
1262 m_anrSapProvider (0),
1263 m_ffrRrcSapProvider (0),
1265 m_macSapProvider (0),
1266 m_s1SapProvider (0),
1267 m_cphySapProvider (0),
1268 m_configured (false),
1269 m_lastAllocatedRnti (0),
1270 m_srsCurrentPeriodicityId (0),
1271 m_lastAllocatedConfigurationIndex (0),
1272 m_reconfigureUes (false)
1313 .AddConstructor<LteEnbRrc> ()
1314 .AddAttribute (
"UeMap",
"List of UeManager by C-RNTI.",
1317 MakeObjectMapChecker<UeManager> ())
1318 .AddAttribute (
"DefaultTransmissionMode",
1319 "The default UEs' transmission mode (0: SISO)",
1322 MakeUintegerChecker<uint8_t> ())
1323 .AddAttribute (
"EpsBearerToRlcMapping",
1324 "Specify which type of RLC will be used for each type of EPS bearer. ",
1331 .AddAttribute (
"SystemInformationPeriodicity",
1332 "The interval for sending system information (Time value)",
1338 .AddAttribute (
"SrsPeriodicity",
1339 "The SRS periodicity in milliseconds",
1343 MakeUintegerChecker<uint32_t> ())
1346 .AddAttribute (
"ConnectionRequestTimeoutDuration",
1347 "After a RA attempt, if no RRC CONNECTION REQUEST is "
1348 "received before this time, the UE context is destroyed. "
1349 "Must account for reception of RAR and transmission of "
1350 "RRC CONNECTION REQUEST over UL GRANT.",
1354 .AddAttribute (
"ConnectionSetupTimeoutDuration",
1355 "After accepting connection request, if no RRC CONNECTION "
1356 "SETUP COMPLETE is received before this time, the UE "
1357 "context is destroyed. Must account for the UE's reception "
1358 "of RRC CONNECTION SETUP and transmission of RRC CONNECTION "
1363 .AddAttribute (
"ConnectionRejectedTimeoutDuration",
1364 "Time to wait between sending a RRC CONNECTION REJECT and "
1365 "destroying the UE context",
1369 .AddAttribute (
"HandoverJoiningTimeoutDuration",
1370 "After accepting a handover request, if no RRC CONNECTION "
1371 "RECONFIGURATION COMPLETE is received before this time, the "
1372 "UE context is destroyed. Must account for reception of "
1373 "X2 HO REQ ACK by source eNB, transmission of the Handover "
1374 "Command, non-contention-based random access and reception "
1375 "of the RRC CONNECTION RECONFIGURATION COMPLETE message.",
1379 .AddAttribute (
"HandoverLeavingTimeoutDuration",
1380 "After issuing a Handover Command, if neither RRC "
1381 "CONNECTION RE-ESTABLISHMENT nor X2 UE Context Release has "
1382 "been previously received, the UE context is destroyed.",
1388 .AddAttribute (
"QRxLevMin",
1389 "One of information transmitted within the SIB1 message, "
1390 "indicating the required minimum RSRP level that any UE must "
1391 "receive from this cell before it is allowed to camp to this "
1392 "cell. The default value -70 corresponds to -140 dBm and is "
1393 "the lowest possible value as defined by Section 6.3.4 of "
1394 "3GPP TS 36.133. This restriction, however, only applies to "
1395 "initial cell selection and EPC-enabled simulation.",
1399 MakeIntegerChecker<int8_t> (-70, -22))
1402 .AddAttribute (
"AdmitHandoverRequest",
1403 "Whether to admit an X2 handover request from another eNB",
1406 MakeBooleanChecker ())
1407 .AddAttribute (
"AdmitRrcConnectionRequest",
1408 "Whether to admit a connection request from a UE",
1411 MakeBooleanChecker ())
1414 .AddAttribute (
"RsrpFilterCoefficient",
1415 "Determines the strength of smoothing effect induced by "
1416 "layer 3 filtering of RSRP in all attached UE; "
1417 "if set to 0, no layer 3 filtering is applicable",
1421 MakeUintegerChecker<uint8_t> (0))
1422 .AddAttribute (
"RsrqFilterCoefficient",
1423 "Determines the strength of smoothing effect induced by "
1424 "layer 3 filtering of RSRQ in all attached UE; "
1425 "if set to 0, no layer 3 filtering is applicable",
1429 MakeUintegerChecker<uint8_t> (0))
1432 .AddTraceSource (
"NewUeContext",
1433 "trace fired upon creation of a new UE context",
1435 .AddTraceSource (
"ConnectionEstablished",
1436 "trace fired upon successful RRC connection establishment",
1438 .AddTraceSource (
"ConnectionReconfiguration",
1439 "trace fired upon RRC connection reconfiguration",
1441 .AddTraceSource (
"HandoverStart",
1442 "trace fired upon start of a handover procedure",
1444 .AddTraceSource (
"HandoverEndOk",
1445 "trace fired upon successful termination of a handover procedure",
1447 .AddTraceSource (
"RecvMeasurementReport",
1448 "trace fired when measurement report is received",
1576 std::map<uint16_t, Ptr<UeManager> >::const_iterator it =
m_ueMap.find (rnti);
1577 return (it !=
m_ueMap.end ());
1585 std::map<uint16_t, Ptr<UeManager> >::iterator it =
m_ueMap.find (rnti);
1598 "Measurement identities and reporting configuration should not have different quantity");
1602 NS_FATAL_ERROR (
"AddUeMeasReportConfig may not be called after the simulation has run");
1613 NS_FATAL_ERROR (
"The given triggerQuantity (RSRP) does not match with the given threshold2.choice");
1622 NS_FATAL_ERROR (
"The given triggerQuantity (RSRP) does not match with the given threshold1.choice");
1630 NS_FATAL_ERROR (
"The given triggerQuantity (RSRQ) does not match with the given threshold2.choice");
1639 NS_FATAL_ERROR (
"The given triggerQuantity (RSRQ) does not match with the given threshold1.choice");
1650 NS_FATAL_ERROR (
"Only REPORT_STRONGEST_CELLS purpose is supported");
1655 NS_LOG_WARN (
"reportQuantity = BOTH will be used instead of the given reportQuantity");
1680 uint16_t ulEarfcn, uint16_t dlEarfcn, uint16_t cellId)
1682 NS_LOG_FUNCTION (
this << (uint16_t) ulBandwidth << (uint16_t) dlBandwidth
1683 << ulEarfcn << dlEarfcn << cellId);
1764 NS_ASSERT_MSG (found,
"no EpsBearerTag found in packet to be sent");
1766 ueManager->SendData (tag.
GetBid (), packet);
1782 "ConnectionRequestTimeout in unexpected state " <<
ToString (
GetUeManager (rnti)->GetState ()));
1800 "ConnectionRejectedTimeout in unexpected state " <<
ToString (
GetUeManager (rnti)->GetState ()));
1830 ueManager->PrepareHandover (cellId);
1852 GetUeManager (rnti)->RecvRrcConnectionSetupCompleted (msg);
1859 GetUeManager (rnti)->RecvRrcConnectionReconfigurationCompleted (msg);
1866 GetUeManager (rnti)->RecvRrcConnectionReestablishmentRequest (msg);
1873 GetUeManager (rnti)->RecvRrcConnectionReestablishmentComplete (msg);
1894 ueManager->SendUeContextRelease ();
1926 if (anrcrv.
valid ==
false)
1928 NS_LOG_INFO (
this <<
" failed to allocate a preamble for non-contention based RA => cannot accept HO");
1930 NS_FATAL_ERROR (
"should trigger HO Preparation Failure, but it is not implemented");
1944 for (std::vector <EpcX2Sap::ErabToBeSetupItem>::iterator it = req.
bearers.begin ();
1948 ueManager->SetupDataRadioBearer (it->erabLevelQosParameters, it->erabId, it->gtpTeid, it->transportLayerAddress);
1975 ackParams.
rrcContext = encodedHandoverCommand;
1977 NS_LOG_LOGIC (
"Send X2 message: HANDOVER REQUEST ACK");
1992 NS_LOG_LOGIC (
"Recv X2 message: HANDOVER REQUEST ACK");
2001 ueManager->RecvHandoverRequestAck (params);
2009 NS_LOG_LOGIC (
"Recv X2 message: HANDOVER PREPARATION FAILURE");
2019 ueManager->RecvHandoverPreparationFailure (params.
targetCellId);
2035 ueManager->RecvSnStatusTransfer (params);
2070 NS_LOG_LOGIC (
"Recv X2 message: RESOURCE STATUS UPDATE");
2074 NS_ASSERT (
"Processing of RESOURCE STATUS UPDATE X2 message IS NOT IMPLEMENTED");
2082 NS_LOG_LOGIC (
"Recv UE DATA FORWARDING through X2 interface");
2089 std::map<uint32_t, X2uTeidInfo>::iterator
2093 GetUeManager (teidInfoIt->second.rnti)->SendData (teidInfoIt->second.drbid, params.
ueData);
2113 ueManager->CmacUeConfigUpdateInd (cmacParams);
2138 bool isHandoverAllowed =
true;
2146 <<
" targetCellId=" << targetCellId
2147 <<
" NRT.NoHo=" << noHo <<
" NRT.NoX2=" << noX2);
2151 isHandoverAllowed =
false;
2152 NS_LOG_LOGIC (
this <<
" handover to cell " << targetCellId
2153 <<
" is not allowed by ANR");
2158 NS_ASSERT_MSG (ueManager != 0,
"Cannot find UE context with RNTI " << rnti);
2162 isHandoverAllowed =
false;
2163 NS_LOG_LOGIC (
this <<
" handover is not allowed because the UE"
2164 <<
" rnti=" << rnti <<
" is in "
2165 <<
ToString (ueManager->GetState ()) <<
" state");
2168 if (isHandoverAllowed)
2171 ueManager->PrepareHandover (targetCellId);
2198 ueManager->SetPdschConfigDedicated (pdschConfigDedicated);
2226 NS_ASSERT_MSG (found,
"no more RNTIs available (do you have more than 65535 UEs in a cell?)");
2228 Ptr<UeManager> ueManager = CreateObject<UeManager> (
this, rnti, state);
2230 ueManager->Initialize ();
2231 NS_LOG_DEBUG (
this <<
" New UE RNTI " << rnti <<
" cellId " <<
m_cellId <<
" srs CI " << ueManager->GetSrsConfigurationIndex ());
2240 std::map <uint16_t, Ptr<UeManager> >::iterator it =
m_ueMap.find (rnti);
2242 uint16_t srsCi = (*it).second->GetSrsConfigurationIndex ();
2329 std::ostringstream allowedValues;
2334 NS_FATAL_ERROR (
"illecit SRS periodicity value " << p <<
". Allowed values: " << allowedValues.str ());
2358 <<
") for current SRS periodicity "
2360 <<
", consider increasing the value of ns3::LteEnbRrc::SrsPeriodicity");
2375 if ((*rit) <
g_srsCiHigh[m_srsCurrentPeriodicityId])
2413 if (bearer.
IsGbr ())
virtual void AddNeighbourRelation(uint16_t cellId)=0
Add a new Neighbour Relation entry.
Callback< void, Ptr< Packet > > m_forwardUpCallback
Ipv4Address transportLayerAddress
IP Address of the SGW, see 36.423 9.2.1.
static const uint8_t SRS_ENTRIES
virtual void SetMasterInformationBlock(LteRrcSap::MasterInformationBlock mib)=0
TracedCallback< uint64_t, uint16_t, uint16_t, State, State > m_stateTransitionTrace
TracedCallback< uint64_t, uint16_t, uint16_t > m_handoverEndOkTrace
RSRQ is used for the threshold.
void ConnectionRequestTimeout(uint16_t rnti)
Method triggered when a UE is expected to request for connection but does not do so in a reasonable t...
bool HasUeManager(uint16_t rnti) const
SystemInformationBlockType2 sourceSystemInformationBlockType2
Parameters passed to DataRadioBearerSetupRequest ()
void ConnectionSetupTimeout(uint16_t rnti)
Method triggered when a UE is expected to complete a connection setup procedure but does not do so in...
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the eNodeB RRC instan...
void SetEpcX2SapProvider(EpcX2SapProvider *s)
Set the X2 SAP this RRC should interact with.
Template for the implementation of the EpcEnbS1SapUser as a member of an owner class of type C to whi...
This class implements the Service Access Point (SAP) between the LteEnbRrc and the EpcEnbApplication...
Simulation virtual time values and global simulation resolution.
Ptr< LteSignalingRadioBearerInfo > m_srb1
void SendHandoverRequest(uint16_t rnti, uint16_t cellId)
Send a HandoverRequest through the X2 SAP interface.
void SendSystemInformation()
method used to periodically send System Information
LteRrcSap::RadioResourceConfigDedicated GetRadioResourceConfigForHandoverPreparationInfo()
CarrierFreqEutra carrierFreq
smart pointer class similar to boost::intrusive_ptr
These service primitives of this part of the X2 SAP are provided by the X2 entity and issued by RRC e...
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
E-RABs admitted item as it is used in the HANDOVER REQUEST ACKNOWLEDGE message.
LteEnbRrc()
create an RRC instance for use within an eNB
uint16_t AddUe(UeManager::State state)
Allocate a new RNTI for a new UE.
PdschConfigDedicated pdschConfigDedicated
Ptr< const AttributeChecker > MakeEnumChecker(int v1, std::string n1, int v2, std::string n2, int v3, std::string n3, int v4, std::string n4, int v5, std::string n5, int v6, std::string n6, int v7, std::string n7, int v8, std::string n8, int v9, std::string n9, int v10, std::string n10, int v11, std::string n11, int v12, std::string n12, int v13, std::string n13, int v14, std::string n14, int v15, std::string n15, int v16, std::string n16, int v17, std::string n17, int v18, std::string n18, int v19, std::string n19, int v20, std::string n20, int v21, std::string n21, int v22, std::string n22)
State
The state of the UeManager at the eNB RRC.
void RecordDataRadioBearersToBeStarted()
Start all configured data radio bearers.
virtual void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
MeasConfig sourceMeasConfig
void RecvUeContextRelease(EpcX2SapUser::UeContextReleaseParams params)
Take the necessary actions in response to the reception of an X2 UE CONTEXT RELEASE message...
This class implements the Service Access Point (SAP) between the LteEnbRrc and the EpcEnbApplication...
void SetSource(uint16_t sourceCellId, uint16_t sourceX2apId)
Set the identifiers of the source eNB for the case where a UE joins the current eNB as part of a hand...
std::list< MeasObjectToAddMod > measObjectToAddModList
void RecvHandoverPreparationFailure(uint16_t cellId)
Take the necessary actions in response to the reception of an X2 HO preparation failure message...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register the class in the ns-3 factory.
void DoNotifyLcConfigResult(uint16_t rnti, uint8_t lcid, bool success)
enum ns3::LteRrcSap::ReportConfigEutra::@74 purpose
uint8_t numberOfRaPreambles
uint8_t bearerId
the EPS Bearer Identifier
uint16_t m_rnti
UE id within this cell.
static double ConvertPdschConfigDedicated2Double(PdschConfigDedicated pdschConfigDedicated)
SoundingRsUlConfigDedicated soundingRsUlConfigDedicated
bool presenceAntennaPort1
LteFfrRrcSapProvider * m_ffrRrcSapProvider
virtual void SetEarfcn(uint16_t ulEarfcn, uint16_t dlEarfcn)=0
static TypeId GetTypeId(void)
void SetCellId(uint16_t m_cellId)
set the cell id of this eNB
LteFfrRrcSapUser * m_ffrRrcSapUser
uint8_t GetLogicalChannelGroup(EpsBearer bearer)
uint8_t m_transmissionMode
Transmission mode 1..7
void AddX2Neighbour(uint16_t cellId)
Add a neighbour with an X2 interface.
QuantityConfig quantityConfig
uint8_t Drbid2Bid(uint8_t drbid)
uint16_t txSn
TX sequence number.
uint16_t rnti
the RNTI identifying the UE for which the DataRadioBearer is to be created
bool m_admitHandoverRequest
std::vector< CellMeasurementResultItem > cellMeasurementResultList
friend class EnbRrcMemberLteEnbCmacSapUser
std::list< MeasResultEutra > measResultListEutra
Parameters of the HANDOVER REQUEST message.
int8_t qRxLevMin
INTEGER (-70..-22), actual value = IE value * 2 [dBm].
Part of the RRC protocol.
ThresholdEutra threshold1
Threshold for event A1, A2, A4, and A5.
void DoRecvRrcConnectionReconfigurationCompleted(uint16_t rnti, LteRrcSap::RrcConnectionReconfigurationCompleted msg)
Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionReconfigurationCompleted ...
Template for the implementation of the LteHandoverManagementSapUser as a member of an owner class of ...
Status variables of the PDCP.
Class for forwarding CMAC SAP User functions.
void AddPacketTag(const Tag &tag) const
Add a packet tag.
Specifies criteria for triggering of an E-UTRA measurement reporting event.
void SetCsgId(uint32_t csgId, bool csgIndication)
Associate this RRC entity with a particular CSG information.
uint16_t GetSrsConfigurationIndex(void) const
uint8_t raResponseWindowSize
uint8_t qci
QoS Class Identifier.
static TypeId GetTypeId(void)
virtual ~LteEnbRrc()
Destructor.
LteRlcSapUser * srb0SapUser
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
std::list< SrbToAddMod > srbToAddModList
Hold a signed integer type.
uint8_t Lcid2Bid(uint8_t lcid)
virtual void SendHandoverPreparationFailure(HandoverPreparationFailureParams params)=0
void SetLteHandoverManagementSapProvider(LteHandoverManagementSapProvider *s)
set the Handover Management SAP this RRC should interact with
EpcX2SapUser * GetEpcX2SapUser()
Get the X2 SAP offered by this RRC.
RadioResourceConfigDedicated radioResourceConfigDedicated
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
void SetLteEnbCphySapProvider(LteEnbCphySapProvider *s)
set the CPHY SAP this RRC should use to interact with the PHY
uint16_t m_lastAllocatedRnti
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
uint16_t GetNewSrsConfigurationIndex(void)
Allocate a new SRS configuration index for a new UE.
void SetTypeId(TypeId tid)
std::list< BearerToBeSwitched > bearersToBeSwitched
uint32_t GetSize(void) const
Returns the the size in bytes of the packet (including the zero-filled initial payload).
LteEnbCmacSapUser * GetLteEnbCmacSapUser()
Get the CMAC SAP offered by this RRC.
uint8_t m_transmissionMode
Transmission mode 1..7
Tag used to define the RNTI and EPS bearer ID for packets interchanged between the EpcEnbApplication ...
uint8_t m_lastRrcTransactionIdentifier
uint16_t m_srsCurrentPeriodicityId
The LTE Radio Resource Control entity at the eNB.
void SetLteEnbRrcSapUser(LteEnbRrcSapUser *s)
set the RRC SAP this RRC should interact with
MeasObjectEutra measObjectEutra
uint16_t sourceUeIdentity
void SetLteEnbCmacSapProvider(LteEnbCmacSapProvider *s)
set the CMAC SAP this RRC should interact with
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
uint16_t DoAllocateTemporaryCellRnti()
#define NS_FATAL_ERROR(msg)
fatal error handling
Ptr< const AttributeAccessor > MakeObjectMapAccessor(U T::*memberContainer)
enum ns3::LteRrcSap::ReportConfigEutra::@76 reportQuantity
The quantities to be included in the measurement report, always assumed to be BOTH.
virtual uint16_t AllocateTemporaryCellRnti()
request the allocation of a Temporary C-RNTI
Service Access Point (SAP) offered by the UE PHY to the UE RRC for control purposes.
EpsBearer bearer
the characteristics of the bearer to be set up
The attribute can be written at construction-time.
Time m_handoverLeavingTimeoutDuration
LteRlcSapProvider * srb0SapProvider
uint64_t mbrDl
maximum bitrate in downlink
void SetBid(uint8_t bid)
Set the bearer id to the given value.
Ipv4Address transportLayerAddress
static EventId Schedule(Time const &time, MEM mem_ptr, OBJ obj)
Schedule an event to expire at the relative time "time" is reached.
uint8_t GetBid(void) const
Time m_connectionRejectedTimeoutDuration
LteMacSapProvider * m_macSapProvider
LteHandoverManagementSapUser * GetLteHandoverManagementSapUser()
Get the Handover Management SAP offered by this RRC.
LteEnbRrcSapProvider * m_rrcSapProvider
RachConfigDedicated rachConfigDedicated
uint16_t GetRnti(void) const
virtual void RecvLoadInformation(EpcX2Sap::LoadInformationParams params)=0
RecvLoadInformation.
void RemoveSrsConfigurationIndex(uint16_t srcCi)
remove a previously allocated SRS configuration index
virtual void RrcConfigurationUpdateInd(UeConfig params)
Notify the RRC of a UE config updated requested by the MAC (normally, by the scheduler) ...
void SetImsi(uint64_t imsi)
Set the IMSI.
uint64_t ueAggregateMaxBitRateUplink
void SetRnti(uint16_t rnti)
void SetLteMacSapProvider(LteMacSapProvider *s)
set the MAC SAP provider.
Both the RSRP and RSRQ quantities are to be included in the measurement report.
void SendUeContextRelease()
send the UE CONTEXT RELEASE X2 message to the source eNB, thus successfully terminating an X2 handove...
LteRrcSap::RrcConnectionReconfiguration GetRrcConnectionReconfigurationForHandover()
void SwitchToState(State s)
Switch the UeManager to the given state.
Time m_connectionSetupTimeoutDuration
static const std::string g_ueManagerStateName[UeManager::NUM_STATES]
void RecvRrcConnectionReconfigurationCompleted(LteRrcSap::RrcConnectionReconfigurationCompleted msg)
Part of the RRC protocol. Implement the LteEnbRrcSapProvider::RecvRrcConnectionReconfigurationComplet...
void ReleaseDataRadioBearer(uint8_t drbid)
Release a given radio bearer.
double GetPacketErrorLossRate() const
uint8_t AddDataRadioBearerInfo(Ptr< LteDataRadioBearerInfo > radioBearerInfo)
Add a new LteDataRadioBearerInfo structure to the UeManager.
EpcX2SapUser * m_x2SapUser
uint8_t m_rsrqFilterCoefficient
LteEnbRrcSapUser * m_rrcSapUser
bool haveRadioResourceConfigDedicated
bool m_needPhyMacConfiguration
EpcEnbS1SapProvider * m_s1SapProvider
LteRrcSap::SystemInformationBlockType1 m_sib1
the System Information Block Type 1 that is currently broadcasted over BCH
Time m_connectionRequestTimeoutDuration
void SetForwardUpCallback(Callback< void, Ptr< Packet > > cb)
set the callback used to forward data packets up the stack
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range.
void DoRecvRrcConnectionSetupCompleted(uint16_t rnti, LteRrcSap::RrcConnectionSetupCompleted msg)
Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionSetupCompleted interface ...
void DoRecvRrcConnectionReestablishmentComplete(uint16_t rnti, LteRrcSap::RrcConnectionReestablishmentComplete msg)
Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionReestablishmentComplete i...
The attribute can be read.
LteHandoverManagementSapUser * m_handoverManagementSapUser
void DoCompleteSetupUe(uint16_t rnti, LteEnbRrcSapProvider::CompleteSetupUeParameters params)
Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::CompleteSetupUe interface to UeManager::Co...
SystemInformationBlockType1 sourceSystemInformationBlockType1
TracedCallback< uint16_t, uint16_t > m_newUeContextTrace
uint8_t rrcTransactionIdentifier
Ptr< Packet > pdcpSdu
the RRC PDU
Service Access Point (SAP) offered by the MAC to the RRC See Femto Forum MAC Scheduler Interface Spec...
Event A4: Neighbour becomes better than absolute threshold.
PreambleInfo preambleInfo
Template for the implementation of the LteFfrRrcSapUser as a member of an owner class of type C to wh...
LteEnbCmacSapUser * m_cmacSapUser
Ptr< UeManager > GetUeManager(uint16_t rnti)
Parameters for LtePdcpSapUser::ReceivePdcpSdu.
uint8_t lcId
logical channel identifier
This class contains the specification of EPS Bearers.
uint16_t m_rnti
UE id within this cell.
bool m_admitRrcConnectionRequest
uint16_t rnti
the C-RNTI identifying the UE
LtePdcpSapUser * m_drbPdcpSapUser
uint8_t AddUeMeasReportConfig(LteRrcSap::ReportConfigEutra config)
Add a new UE measurement reporting configuration.
EventId m_connectionRejectedTimeout
void SetLteFfrRrcSapProvider(LteFfrRrcSapProvider *s)
set the FFR SAP this RRC should interact with
virtual void UeContextRelease(uint16_t rnti)=0
release UE context at the S1 Application of the source eNB after reception of the UE CONTEXT RELEASE ...
hold variables of type 'enum'
LteRrcSap::RrcConnectionReconfiguration BuildRrcConnectionReconfiguration()
Ptr< LteSignalingRadioBearerInfo > m_srb0
void DoRecvRrcConnectionRequest(uint16_t rnti, LteRrcSap::RrcConnectionRequest msg)
Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionRequest interface to UeMa...
uint64_t ueAggregateMaxBitRateDownlink
uint8_t epsBearerIdentity
Attribute for objects of type ns3::Time.
static TypeId GetTypeId(void)
int8_t referenceSignalPower
void SetSrsConfigurationIndex(uint16_t srsConfIndex)
Set the SRS configuration index and do the necessary reconfiguration.
void DoTriggerHandover(uint16_t rnti, uint16_t targetCellId)
LogicalChannelConfig logicalChannelConfig
virtual void SendLoadInformation(LoadInformationParams params)=0
RachConfigCommon rachConfigCommon
Ptr< Object > Create(void) const
enum ns3::LteRrcSap::SoundingRsUlConfigDedicated::@69 type
ReportConfigEutra reportConfigEutra
TracedCallback< uint64_t, uint16_t, uint16_t > m_connectionEstablishedTrace
Parameters of the HANDOVER PREPARATION FAILURE message.
virtual bool GetNoHo(uint16_t cellId) const =0
Get the value of No HO field of a neighbouring cell from the Neighbour Relation Table (NRT)...
Hold an unsigned integer type.
Logical Channel information to be passed to CmacSapProvider::ConfigureLc.
virtual void SetCellId(uint16_t cellId)=0
GbrQosInformation gbrQosInfo
void DoPathSwitchRequestAcknowledge(EpcEnbS1SapUser::PathSwitchRequestAcknowledgeParameters params)
virtual void SetBandwidth(uint8_t ulBandwidth, uint8_t dlBandwidth)=0
virtual void NotifyLcConfigResult(uint16_t rnti, uint8_t lcid, bool success)
notify the result of the last LC config operation
std::vector< ErabAdmittedItem > admittedBearers
uint16_t rnti
the C-RNTI identifying the UE
std::list< MeasIdToAddMod > measIdToAddModList
bool haveRachConfigDedicated
Parameters of the SN STATUS TRANSFER message.
PhysicalConfigDedicated physicalConfigDedicated
LteEnbCphySapProvider * m_cphySapProvider
std::set< uint8_t > m_ffrMeasIds
uint8_t filterCoefficientRSRP
Service Access Point (SAP) offered by the eNodeB RRC instance to the ANR instance.
Parameters for LtePdcpSapProvider::TransmitPdcpSdu.
uint32_t gtpTeid
S1-bearer GTP tunnel endpoint identifier, see 36.423 9.2.1.
Template for the implementation of the LteEnbCphySapUser as a member of an owner class of type C to w...
uint8_t Drbid2Lcid(uint8_t drbid)
LtePdcpSapProvider * srb1SapProvider
uint16_t rxSn
RX sequence number.
LteMacSapUser * GetLteMacSapUser()
void SendData(uint8_t bid, Ptr< Packet > p)
Send a data packet over the appropriate Data Radio Bearer.
uint8_t rrcTransactionIdentifier
std::set< uint8_t > m_handoverMeasIds
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
virtual RachConfig GetRachConfig()=0
RadioResourceConfigDedicated radioResourceConfigDedicated
void DoRecvUeContextRelease(EpcX2SapUser::UeContextReleaseParams params)
uint8_t m_lastAllocatedDrbid
Event A5: PCell becomes worse than absolute threshold1 AND Neighbour becomes better than another abso...
uint8_t Bid2Lcid(uint8_t bid)
Parameters for [re]configuring the UE.
std::map< uint32_t, X2uTeidInfo > m_x2uTeidInfoMap
TracedCallback< uint64_t, uint16_t, uint16_t, LteRrcSap::MeasurementReport > m_recvMeasurementReportTrace
void SetRnti(uint16_t rnti)
Set the RNTI to the given value.
uint8_t numberOfRaPreambles
uint8_t m_rsrpFilterCoefficient
E-RABs to be setup item as it is used in the HANDOVER REQUEST message.
RadioResourceConfigDedicated sourceRadioResourceConfig
Part of the RRC protocol.
uint8_t DoAddUeMeasReportConfigForAnr(LteRrcSap::ReportConfigEutra reportConfig)
void SetupDataRadioBearer(EpsBearer bearer, uint8_t bearerId, uint32_t gtpTeid, Ipv4Address transportLayerAddress)
Setup a new data radio bearer, including both the configuration within the eNB and the necessary RRC ...
void RemoveDataRadioBearerInfo(uint8_t drbid)
remove the LteDataRadioBearerInfo corresponding to a bearer being released
static TypeId GetTypeId(void)
void RecvSnStatusTransfer(EpcX2SapUser::SnStatusTransferParams params)
Take the necessary actions in response to the reception of an X2 SN STATUS TRANSFER message...
EpcX2SapProvider * m_x2SapProvider
Event A1: Serving becomes better than absolute threshold.
Parameters of the RESOURCE STATUS UPDATE message.
Ptr< Packet > pdcpSdu
the RRC PDU
virtual void SendHandoverRequestAck(HandoverRequestAckParams params)=0
LteRrcSap::RadioResourceConfigDedicated BuildRadioResourceConfigDedicated()
void SetLteRlcSapUser(LteRlcSapUser *s)
uint16_t targetPhysCellId
enum ns3::EpsBearer::Qci qci
EventId m_handoverLeavingTimeout
uint8_t lcGroup
logical channel group
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
uint8_t rrcTransactionIdentifier
void SetLteAnrSapProvider(LteAnrSapProvider *s)
set the ANR SAP this RRC should interact with
bool haveMobilityControlInfo
Parameters of the UE CONTEXT RELEASE message.
EpsBearer erabLevelQosParameters
Parameters of the HANDOVER REQUEST ACKNOWLEDGE message.
void RecvRrcConnectionSetupCompleted(LteRrcSap::RrcConnectionSetupCompleted msg)
Part of the RRC protocol. Implement the LteEnbRrcSapProvider::RecvRrcConnectionSetupCompleted interfa...
RadioResourceConfigDedicated radioResourceConfigDedicated
std::list< uint8_t > m_drbsToBeStarted
void DoReceivePdcpSdu(LtePdcpSapUser::ReceivePdcpSduParameters params)
bool haveMeasResultNeighCells
uint8_t filterCoefficientRSRQ
bool havePdschConfigDedicated
enum ns3::LteRrcSap::ReportConfigEutra::@73 eventId
Choice of E-UTRA event triggered reporting criteria.
static const uint16_t g_srsCiLow[SRS_ENTRIES]
uint8_t logicalChannelIdentity
TracedCallback< uint64_t, uint16_t, uint16_t, uint16_t > m_handoverStartTrace
LtePdcpSapUser * srb1SapUser
bool havePhysicalConfigDedicated
std::vector< EpcX2Sap::ErabToBeSetupItem > GetErabList()
virtual void SetSystemInformationBlockType1(LteRrcSap::SystemInformationBlockType1 sib1)=0
virtual int8_t GetReferenceSignalPower()=0
void ScheduleRrcConnectionReconfiguration()
schedule an RRC Connection Reconfiguration procedure with the UE
These service primitives of this part of the X2 SAP are provided by the RRC entity and issued by the ...
LteAnrSapUser * GetLteAnrSapUser()
Get the ANR SAP offered by this RRC.
Parameters for [re]configuring the UE.
bool haveSoundingRsUlConfigDedicated
Time m_systemInformationPeriodicity
LteEnbRrcSapProvider * GetLteEnbRrcSapProvider()
static Time Now(void)
Return the "current simulation time".
std::vector< ErabToBeSetupItem > bearers
uint8_t m_defaultTransmissionMode
void DoRecvResourceStatusUpdate(EpcX2SapUser::ResourceStatusUpdateParams params)
void SetLcId(uint8_t lcId)
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
void DoRecvUeData(EpcX2SapUser::UeDataParams params)
virtual void TransmitPdcpSdu(TransmitPdcpSduParameters params)=0
Send a RRC PDU to the RDCP for transmission This method is to be called when upper RRC entity has a R...
Ptr< const AttributeAccessor > MakeEnumAccessor(T1 a1)
RadioResourceConfigCommon radioResourceConfigCommon
uint64_t GetImsi(void) const
EnbRrcMemberLteEnbCmacSapUser(LteEnbRrc *rrc)
void PrepareHandover(uint16_t cellId)
Start the handover preparation and send the handover request.
CarrierBandwidthEutra carrierBandwidth
uint8_t DoAddUeMeasReportConfigForHandover(LteRrcSap::ReportConfigEutra reportConfig)
uint16_t GetRnti(void) const
void RecvRrcConnectionReestablishmentComplete(LteRrcSap::RrcConnectionReestablishmentComplete msg)
Part of the RRC protocol. Implement the LteEnbRrcSapProvider::RecvRrcConnectionReestablishmentComplet...
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
EpcEnbS1SapUser * m_s1SapUser
std::set< uint16_t > m_ueSrsConfigurationIndexSet
void SetSrsPeriodicity(uint32_t p)
Event A2: Serving becomes worse than absolute threshold.
uint16_t rnti
C-RNTI identifying the UE.
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
TypeId GetRlcType(EpsBearer bearer)
LogicalChannelConfig logicalChannelConfig
uint64_t mbrUl
maximum bitrate in uplink
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 reason...
RachConfigCommon rachConfigCommon
#define NS_ABORT_IF(cond)
Abnormal program termination if cond is true.
instantiate subclasses of ns3::Object.
Ipv4 addresses are stored in host order in this class.
uint64_t gbrUl
guaranteed bitrate in uplink
uint8_t raResponseWindowSize
bool haveCarrierBandwidth
Service Access Point (SAP) offered by the PDCP entity to the RRC entity See 3GPP 36.323 Packet Data Convergence Protocol (PDCP) specification.
bool haveAntennaInfoDedicated
static const std::string & ToString(EpcUeNas::State s)
LteAnrSapUser * m_anrSapUser
virtual void SetBandwidth(uint8_t ulBandwidth, uint8_t dlBandwidth)=0
Configure DL and UL bandwidth in Frequency Reuse Algorithm function is called during Cell configurati...
EventId m_connectionSetupTimeout
Template for the implementation of the LteEnbRrcSapProvider as a member of an owner class of type C t...
bool m_pendingRrcConnectionReconfiguration
std::vector< ErabNotAdmittedItem > notAdmittedBearers
Service Access Point (SAP) offered by the ANR instance to the eNodeB RRC instance.
void DoRrcConfigurationUpdateInd(LteEnbCmacSapUser::UeConfig params)
virtual void ConfigureMac(uint8_t ulBandwidth, uint8_t dlBandwidth)=0
void DoSetPdschConfigDedicated(uint16_t rnti, LteRrcSap::PdschConfigDedicated pa)
uint8_t DoAddUeMeasReportConfigForFfr(LteRrcSap::ReportConfigEutra reportConfig)
struct defining the RACH configuration of the MAC
void DoRecvHandoverPreparationFailure(EpcX2SapUser::HandoverPreparationFailureParams params)
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
Service Access Point (SAP) offered by the handover algorithm instance to the eNodeB RRC instance...
void StartDataRadioBearers()
Start the data radio bearers that have been previously recorded to be started using RecordDataRadioBe...
virtual AllocateNcRaPreambleReturnValue AllocateNcRaPreamble(uint16_t rnti)=0
Allocate a random access preamble for non-contention based random access (e.g., for handover)...
static const uint16_t g_srsPeriodicity[SRS_ENTRIES]
enum ns3::LteRrcSap::ReportConfigEutra::@75 triggerQuantity
The quantities used to evaluate the triggering condition for the event, see 3GPP TS 36...
EpcEnbS1SapUser * GetS1SapUser()
uint8_t allowedMeasBandwidth
std::list< DrbToAddMod > drbToAddModList
void RecvRrcConnectionReestablishmentRequest(LteRrcSap::RrcConnectionReestablishmentRequest msg)
Part of the RRC protocol. Implement the LteEnbRrcSapProvider::RecvRrcConnectionReestablishmentRequest...
bool RemovePacketTag(Tag &tag)
Remove a packet tag.
LteEnbCmacSapProvider * m_cmacSapProvider
LteRrcSap::PhysicalConfigDedicated m_physicalConfigDedicated
std::map< uint16_t, Ptr< UeManager > > m_ueMap
uint16_t sourceDlCarrierFreq
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
static const uint16_t g_srsCiHigh[SRS_ENTRIES]
Time Seconds(double value)
Construct a Time in the indicated unit.
LteFfrRrcSapUser * GetLteFfrRrcSapUser()
Get the FFR SAP offered by this RRC.
uint16_t criticalityDiagnostics
virtual Ptr< Packet > EncodeHandoverCommand(RrcConnectionReconfiguration msg)=0
void RecvRrcConnectionRequest(LteRrcSap::RrcConnectionRequest msg)
Part of the RRC protocol. Implement the LteEnbRrcSapProvider::RecvRrcConnectionRequest interface...
void Cancel(void)
This method is syntactic sugar for the ns3::Simulator::cancel method.
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
std::map< uint8_t, Ptr< LteDataRadioBearerInfo > > m_drbMap
Reference Signal Received Power.
TracedCallback< uint64_t, uint16_t, uint16_t > m_connectionReconfigurationTrace
uint8_t GetLogicalChannelPriority(EpsBearer bearer)
uint8_t lcid
the logical channel id corresponding to the sending RLC instance
bool valid
true if a valid RA config was allocated, false otherwise
uint8_t GetNewRrcTransactionIdentifier()
MobilityControlInfo mobilityControlInfo
void DoRecvSnStatusTransfer(EpcX2SapUser::SnStatusTransferParams params)
LteEnbCphySapUser * GetLteEnbCphySapUser()
void ConnectionRejectedTimeout(uint16_t rnti)
Method triggered a while after sending RRC Connection Rejected.
uint32_t GetSrsPeriodicity() const
Ptr< LteDataRadioBearerInfo > GetDataRadioBearerInfo(uint8_t drbid)
Template for the implementation of the LteAnrSapUser as a member of an owner class of type C to which...
AntennaInfoDedicated antennaInfo
Time m_handoverJoiningTimeoutDuration
LteRlcSapProvider * GetLteRlcSapProvider()
uint16_t m_lastAllocatedConfigurationIndex
Reference Signal Received Quality.
RSRP is used for the threshold.
virtual void SendSystemInformation(SystemInformation msg)=0
Send a SystemInformation message to all attached UEs during a system information acquisition procedur...
virtual void RemoveUe(uint16_t rnti)=0
remove the UE, e.g., after handover or termination of the RRC connection
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 ...
LTE RLC Acknowledged Mode (AM), see 3GPP TS 36.322.
LteHandoverManagementSapProvider * m_handoverManagementSapProvider
a base class which provides memory management and object aggregation
PdschConfigCommon pdschConfigCommon
std::set< uint8_t > m_anrMeasIds
enum ns3::LteRrcSap::ThresholdEutra::@71 choice
contain a set of ns3::Object pointers.
void ConfigureCell(uint8_t ulBandwidth, uint8_t dlBandwidth, uint16_t ulEarfcn, uint16_t dlEarfcn, uint16_t cellId)
Configure cell-specific parameters.
void DoRecvRrcConnectionReestablishmentRequest(uint16_t rnti, LteRrcSap::RrcConnectionReestablishmentRequest msg)
Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvRrcConnectionReestablishmentRequest in...
void SetPdschConfigDedicated(LteRrcSap::PdschConfigDedicated pdschConfigDedicated)
Configure PdschConfigDedicated (i.e.
Service Access Point (SAP) offered by the eNB MAC to the eNB RRC See Femto Forum MAC Scheduler Interf...
Service Access Point (SAP) offered by the UE PHY to the UE RRC for control purposes.
void RemoveUe(uint16_t rnti)
remove a UE from the cell
uint64_t gbrDl
guaranteed bitrate in downlink
uint8_t lcid
the logical channel id corresponding to the sending RLC instance
void DoRecvMeasurementReport(uint16_t rnti, LteRrcSap::MeasurementReport msg)
Part of the RRC protocol. Forwarding LteEnbRrcSapProvider::RecvMeasurementReport interface to UeManag...
uint8_t raPreambleId
random access preamble id
void CmacUeConfigUpdateInd(LteEnbCmacSapUser::UeConfig cmacParams)
Parameters of the UE DATA primitive.
enum LteEpsBearerToRlcMapping_t m_epsBearerToRlcMapping
Ptr< T > GetObject(void) const
std::vector< ErabsSubjectToStatusTransferItem > erabsSubjectToStatusTransferList
virtual void SetCellId(uint16_t cellId)=0
SetCellId.
void DoSendLoadInformation(EpcX2Sap::LoadInformationParams params)
void RecvMeasurementReport(LteRrcSap::MeasurementReport msg)
Part of the RRC protocol. Implement the LteEnbRrcSapProvider::RecvMeasurementReport interface...
This abstract base class defines the API to interact with the Radio Link Control (LTE_RLC) in LTE...
a unique identifier for an interface.
virtual bool GetNoX2(uint16_t cellId) const =0
Get the value of No X2 field of a neighbouring cell from the Neighbour Relation Table (NRT)...
std::list< ReportConfigToAddMod > reportConfigToAddModList
TypeId SetParent(TypeId tid)
std::list< uint8_t > drbToReleaseList
uint8_t Bid2Drbid(uint8_t bid)
static TypeId GetTypeId(void)
void SetS1SapProvider(EpcEnbS1SapProvider *s)
Set the S1 SAP Provider.
uint8_t Lcid2Drbid(uint8_t lcid)
virtual void RemoveUe(uint16_t rnti)=0
Remove an UE from the the cell.
EventId m_connectionRequestTimeout
LteEnbCphySapUser * m_cphySapUser
LteAnrSapProvider * m_anrSapProvider
Service Access Point (SAP) offered by the eNodeB RRC instance to the handover algorithm instance...
void DoDataRadioBearerSetupRequest(EpcEnbS1SapUser::DataRadioBearerSetupRequestParameters params)
void DoRecvLoadInformation(EpcX2SapUser::LoadInformationParams params)
RaSupervisionInfo raSupervisionInfo
void SetLteMacSapProvider(LteMacSapProvider *s)
void RecvHandoverRequestAck(EpcX2SapUser::HandoverRequestAckParams params)
take the necessary actions in response to the reception of an X2 HANDOVER REQUEST ACK message ...
bool SendData(Ptr< Packet > p)
Enqueue an IP data packet on the proper bearer for downlink transmission.
EventId m_handoverJoiningTimeout
bool isGbr
true if the bearer is GBR, false if the bearer is NON-GBR
void CompleteSetupUe(LteEnbRrcSapProvider::CompleteSetupUeParameters params)
Part of the RRC protocol. Implement the LteEnbRrcSapProvider::CompleteSetupUe interface.
virtual void DoInitialize()
This method is called only once by Object::Initialize.
MasterInformationBlock sourceMasterInformationBlock
LteRrcSap::MeasConfig m_ueMeasConfig
List of measurement configuration which are active in every UE attached to this eNodeB instance...
int8_t qQualMin
INTEGER (-34..-3), actual value = IE value [dB].
void DoRecvHandoverRequestAck(EpcX2SapUser::HandoverRequestAckParams params)
bool haveCellForWhichToReportCGI
ThresholdEutra threshold2
Threshold for event A5.
void DoRecvHandoverRequest(EpcX2SapUser::HandoverRequestParams params)