38#include <ns3/fatal-error.h>
40#include <ns3/object-factory.h>
41#include <ns3/object-map.h>
42#include <ns3/packet.h>
43#include <ns3/pointer.h>
44#include <ns3/simulator.h>
80 uint8_t componentCarrierId)
82 m_componentCarrierId{componentCarrierId}
116 "INITIAL_RANDOM_ACCESS",
118 "CONNECTION_REJECTED",
120 "CONNECTED_NORMALLY",
121 "CONNECTION_RECONFIGURATION",
122 "CONNECTION_REESTABLISHMENT",
123 "HANDOVER_PREPARATION",
125 "HANDOVER_PATH_SWITCH",
133static const std::string&
147 : m_lastAllocatedDrbid(0),
150 m_componentCarrierId(componentCarrierId),
151 m_lastRrcTransactionIdentifier(0),
154 m_pendingRrcConnectionReconfiguration(false),
157 m_needPhyMacConfiguration(false),
158 m_caSupportConfigured(false),
159 m_pendingStartDataRadioBearers(false)
174 m_rrc->GetNewSrsConfigurationIndex();
181 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
192 rlc->SetLteMacSapProvider(
m_rrc->m_macSapProvider);
196 m_srb0 = CreateObject<LteSignalingRadioBearerInfo>();
198 m_srb0->m_srbIdentity = 0;
217 m_rrc->m_ccmRrcSapProvider->ConfigureSignalBearer(lcinfo, rlc->GetLteMacSapUser());
220 m_rrc->m_ccmRrcSapProvider->AddLc(lcinfo, lteMacSapUser);
228 rlc->SetLteMacSapProvider(
m_rrc->m_macSapProvider);
236 pdcp->SetLteRlcSapProvider(rlc->GetLteRlcSapProvider());
237 rlc->SetLteRlcSapUser(pdcp->GetLteRlcSapUser());
239 m_srb1 = CreateObject<LteSignalingRadioBearerInfo>();
242 m_srb1->m_srbIdentity = 1;
243 m_srb1->m_logicalChannelConfig.priority = 1;
244 m_srb1->m_logicalChannelConfig.prioritizedBitRateKbps = 100;
245 m_srb1->m_logicalChannelConfig.bucketSizeDurationMs = 100;
246 m_srb1->m_logicalChannelConfig.logicalChannelGroup = 0;
261 m_rrc->m_ccmRrcSapProvider->ConfigureSignalBearer(lcinfo, rlc->GetLteMacSapUser());
264 m_rrc->m_ccmRrcSapProvider->AddLc(lcinfo, MacSapUserForRlc);
278 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
280 m_rrc->m_cmacSapProvider.at(i)->UeUpdateConfigurationReq(req);
281 m_rrc->m_cphySapProvider.at(i)->SetTransmissionMode(
284 m_rrc->m_cphySapProvider.at(i)->SetSrsConfigurationIndex(
290 Time maxConnectionDelay;
327 m_rrc->m_x2uTeidInfoMap.erase(it->second->m_gtpTeid);
337 .AddConstructor<UeManager>()
338 .AddAttribute(
"DataRadioBearerMap",
339 "List of UE DataRadioBearerInfo by DRBID.",
342 MakeObjectMapChecker<LteDataRadioBearerInfo>())
343 .AddAttribute(
"Srb0",
344 "SignalingRadioBearerInfo for SRB0",
347 MakePointerChecker<LteSignalingRadioBearerInfo>())
348 .AddAttribute(
"Srb1",
349 "SignalingRadioBearerInfo for SRB1",
352 MakePointerChecker<LteSignalingRadioBearerInfo>())
353 .AddAttribute(
"C-RNTI",
354 "Cell Radio Network Temporary Identifier",
358 MakeUintegerChecker<uint16_t>())
359 .AddTraceSource(
"StateTransition",
360 "fired upon every UE state transition seen by the "
361 "UeManager at the eNB RRC",
363 "ns3::UeManager::StateTracedCallback")
364 .AddTraceSource(
"DrbCreated",
365 "trace fired after DRB is created",
367 "ns3::UeManager::ImsiCidRntiLcIdTracedCallback");
413 <<
", the assumption that ID are allocated in the same "
414 "way by MME and RRC is not valid any more");
415 drbInfo->m_epsBearer = bearer;
416 drbInfo->m_epsBearerIdentity = bid;
417 drbInfo->m_drbIdentity = drbid;
418 drbInfo->m_logicalChannelIdentity = lcid;
419 drbInfo->m_gtpTeid = gtpTeid;
420 drbInfo->m_transportLayerAddress = transportLayerAddress;
427 x2uTeidInfo.
drbid = drbid;
428 std::pair<std::map<uint32_t, LteEnbRrc::X2uTeidInfo>::iterator,
bool> ret =
429 m_rrc->m_x2uTeidInfoMap.insert(
430 std::pair<uint32_t, LteEnbRrc::X2uTeidInfo>(gtpTeid, x2uTeidInfo));
431 NS_ASSERT_MSG(ret.second ==
true,
"overwriting a pre-existing entry in m_x2uTeidInfoMap");
439 rlc->SetLteMacSapProvider(
m_rrc->m_macSapProvider);
443 drbInfo->m_rlc = rlc;
455 pdcp->SetLteRlcSapProvider(rlc->GetLteRlcSapProvider());
456 rlc->SetLteRlcSapUser(pdcp->GetLteRlcSapUser());
457 drbInfo->m_pdcp = pdcp;
462 std::vector<LteCcmRrcSapProvider::LcsConfig> lcOnCcMapping =
463 m_rrc->m_ccmRrcSapProvider->SetupDataRadioBearer(bearer,
467 m_rrc->GetLogicalChannelGroup(bearer),
468 rlc->GetLteMacSapUser());
481 std::vector<LteCcmRrcSapProvider::LcsConfig>::iterator itLcOnCcMapping = lcOnCcMapping.begin();
482 NS_ASSERT_MSG(itLcOnCcMapping != lcOnCcMapping.end(),
"Problem");
483 for (itLcOnCcMapping = lcOnCcMapping.begin(); itLcOnCcMapping != lcOnCcMapping.end();
486 NS_LOG_DEBUG(
this <<
" RNTI " << itLcOnCcMapping->lc.rnti <<
"Lcid "
487 << (uint16_t)itLcOnCcMapping->lc.lcId <<
" lcGroup "
488 << (uint16_t)itLcOnCcMapping->lc.lcGroup <<
" ComponentCarrierId "
489 << itLcOnCcMapping->componentCarrierId);
490 uint8_t index = itLcOnCcMapping->componentCarrierId;
493 m_rrc->m_cmacSapProvider.at(index)->AddLc(lcinfo, msu);
494 m_rrc->m_ccmRrcSapProvider->AddLc(lcinfo, msu);
506 drbInfo->m_logicalChannelIdentity = lcid;
507 drbInfo->m_logicalChannelConfig.priority =
m_rrc->GetLogicalChannelPriority(bearer);
508 drbInfo->m_logicalChannelConfig.logicalChannelGroup =
m_rrc->GetLogicalChannelGroup(bearer);
511 drbInfo->m_logicalChannelConfig.prioritizedBitRateKbps = bearer.
gbrQosInfo.
gbrUl;
515 drbInfo->m_logicalChannelConfig.prioritizedBitRateKbps = 0;
517 drbInfo->m_logicalChannelConfig.bucketSizeDurationMs = 1000;
542 std::map<uint8_t, Ptr<LteDataRadioBearerInfo>>::iterator drbIt =
m_drbMap.find(*drbIdIt);
544 drbIt->second->m_rlc->Initialize();
545 if (drbIt->second->m_pdcp)
547 drbIt->second->m_pdcp->Initialize();
558 std::map<uint8_t, Ptr<LteDataRadioBearerInfo>>::iterator it =
m_drbMap.find(drbid);
560 "request to remove radio bearer with unknown drbid " << drbid);
563 m_rrc->m_x2uTeidInfoMap.erase(it->second->m_gtpTeid);
566 std::vector<uint8_t> ccToRelease =
567 m_rrc->m_ccmRrcSapProvider->ReleaseDataRadioBearer(
m_rnti, lcid);
568 std::vector<uint8_t>::iterator itCcToRelease = ccToRelease.begin();
570 "request to remove radio bearer with unknown drbid (ComponentCarrierManager)");
571 for (itCcToRelease = ccToRelease.begin(); itCcToRelease != ccToRelease.end(); ++itCcToRelease)
573 m_rrc->m_cmacSapProvider.at(*itCcToRelease)->ReleaseLc(
m_rnti, lcid);
593 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration(
m_rnti, msg);
606 ueManager->ReleaseDataRadioBearer(bearerId);
618 if (
m_rrc->m_s1SapProvider !=
nullptr)
623 << (uint16_t)(it.first)
624 <<
"LCID : " << (uint16_t)(it.second->m_logicalChannelIdentity));
626 m_rrc->m_s1SapProvider->DoSendReleaseIndication(
GetImsi(), rnti, it.first);
652 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration(
m_rnti, msg);
673 auto sourceComponentCarrier = DynamicCast<ComponentCarrierEnb>(
677 if (
m_rrc->HasCellId(cellId))
680 NS_LOG_DEBUG(
"Intra-eNB handover for cellId " << cellId);
681 uint8_t componentCarrierId =
m_rrc->CellToComponentCarrierId(cellId);
684 m_rrc->m_cmacSapProvider.at(componentCarrierId)->AllocateNcRaPreamble(rnti);
687 NS_LOG_INFO(
this <<
" failed to allocate a preamble for non-contention based RA => "
688 "cannot perform HO");
689 NS_FATAL_ERROR(
"should trigger HO Preparation Failure, but it is not implemented");
694 ueManager->SetSource(sourceComponentCarrier->GetCellId(),
m_rnti);
695 ueManager->SetImsi(
m_imsi);
700 ueManager->SetupDataRadioBearer(it.second->m_epsBearer,
701 it.second->m_epsBearerIdentity,
702 it.second->m_gtpTeid,
703 it.second->m_transportLayerAddress);
717 m_rrc->m_cmacSapProvider.at(componentCarrierId)->GetRachConfig();
725 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration(
m_rnti, handoverCommand);
734 sourceComponentCarrier->GetCellId(),
741 NS_LOG_DEBUG(
"Inter-eNB handover (i.e., X2) for cellId " << cellId);
743 params.oldEnbUeX2apId =
m_rnti;
746 params.targetCellId = cellId;
747 params.mmeUeS1apId =
m_imsi;
748 params.ueAggregateMaxBitRateDownlink = 200 * 1000;
749 params.ueAggregateMaxBitRateUplink = 100 * 1000;
759 sourceComponentCarrier->GetDlBandwidth();
763 .cellAccessRelatedInfo.plmnIdentityInfo.plmnIdentity;
781 sourceComponentCarrier->GetUlEarfcn();
783 sourceComponentCarrier->GetUlBandwidth();
784 params.rrcContext =
m_rrc->m_rrcSapUser->EncodeHandoverPreparationInformation(hpi);
786 NS_LOG_LOGIC(
"oldEnbUeX2apId = " << params.oldEnbUeX2apId);
792 m_rrc->m_x2SapProvider->SendHandoverRequest(params);
810 "not admission of some bearers upon handover is not supported");
812 "not enough bearers in admittedBearers");
820 Ptr<Packet> encodedHandoverCommand = params.rrcContext;
822 m_rrc->m_rrcSapUser->DecodeHandoverCommand(encodedHandoverCommand);
828 m_rrc->m_numberOfComponentCarriers)
832 NS_FATAL_ERROR(
"The source and target eNBs have unequal number of component carriers. "
835 <<
" Source eNB CCs = " <<
m_rrc->m_numberOfComponentCarriers);
838 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration(
m_rnti, handoverCommand);
864 if (drbIt->second->m_rlc->GetObject<
LteRlcAm>())
873 m_rrc->m_x2SapProvider->SendSnStatusTransfer(sst);
890 auto targetComponentCarrier =
891 DynamicCast<ComponentCarrierEnb>(
m_rrc->m_componentCarrierPhyConf.at(componentCarrierId));
899 targetComponentCarrier->GetDlBandwidth();
901 targetComponentCarrier->GetUlBandwidth();
908 for (
auto& it :
m_rrc->m_componentCarrierPhyConf)
910 uint8_t ccId = it.first;
942 std::map<uint8_t, Ptr<LteDataRadioBearerInfo>>::iterator it =
m_drbMap.find(drbid);
970 NS_LOG_LOGIC(
"queueing data on PDCP for transmission over the air");
983 NS_LOG_LOGIC(
"forwarding data to target eNB over X2-U");
990 m_rrc->m_x2SapProvider->SendUeData(params);
1000std::vector<EpcX2Sap::ErabToBeSetupItem>
1004 std::vector<EpcX2Sap::ErabToBeSetupItem> ret;
1010 etbsi.
erabId = it->second->m_epsBearerIdentity;
1014 etbsi.
gtpTeid = it->second->m_gtpTeid;
1015 ret.push_back(etbsi);
1027 NS_LOG_INFO(
"Send UE CONTEXT RELEASE from target eNB to source eNB");
1035 m_rrc->m_x2SapProvider->SendUeContextRelease(ueCtxReleaseParams);
1039 NS_LOG_INFO(
"Not sending UE CONTEXT RELEASE because handover is internal");
1040 m_rrc->DoRecvUeContextRelease(ueCtxReleaseParams);
1062 NS_LOG_INFO(
"target eNB sent HO preparation failure, aborting HO");
1067 NS_LOG_INFO(
"target eNB sent HO preparation failure, aborting HO");
1082 for (std::vector<EpcX2Sap::ErabsSubjectToStatusTransferItem>::iterator erabIt =
1083 params.erabsSubjectToStatusTransferList.begin();
1084 erabIt != params.erabsSubjectToStatusTransferList.end();
1121 m_rrc->m_rrcSapUser->SendRrcConnectionRelease(m_rnti, msg);
1137 m_srb0->m_rlc->SetLteRlcSapUser(params.srb0SapUser);
1138 m_srb1->m_pdcp->SetLtePdcpSapUser(params.srb1SapUser);
1150 if (
m_rrc->m_admitRrcConnectionRequest)
1158 m_rrc->m_rrcSapUser->SendRrcConnectionSetup(
m_rnti, msg2);
1174 m_rrc->m_rrcSapUser->SendRrcConnectionReject(
m_rnti, rejectMsg);
1206 if (
m_rrc->m_s1SapProvider !=
nullptr)
1241 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
1243 m_rrc->m_cmacSapProvider.at(i)->UeUpdateConfigurationReq(req);
1246 m_rrc->m_cphySapProvider.at(i)->SetTransmissionMode(req.
m_rnti,
1250 m_rrc->m_cphySapProvider.at(i)->SetPa(
m_rnti, paDouble);
1256 m_rrc->m_connectionReconfigurationTrace(
1265 NS_LOG_INFO(
"ignoring RecvRrcConnectionReconfigurationCompleted in state "
1270 NS_LOG_INFO(
"ignoring RecvRrcConnectionReconfigurationCompleted in state "
1280 std::pair<uint8_t, Ptr<Packet>> bidPacket =
m_packetBuffer.front();
1281 uint8_t bid = bidPacket.first;
1284 NS_LOG_LOGIC(
"queueing data on PDCP for transmission over the air");
1290 NS_LOG_INFO(
"Send PATH SWITCH REQUEST to the MME");
1294 params.mmeUeS1Id =
m_imsi;
1302 b.
teid = it->second->m_gtpTeid;
1303 params.bearersToBeSwitched.push_back(b);
1305 m_rrc->m_s1SapProvider->PathSwitchRequest(params);
1337 m_rrc->m_rrcSapUser->SendRrcConnectionReestablishment(
m_rnti, msg2);
1355 "measId " << (uint16_t)measId <<
" haveMeasResultNeighCells "
1365 for (std::list<LteRrcSap::MeasResultEutra>::iterator it =
1370 NS_LOG_LOGIC(
"neighbour cellId " << it->physCellId <<
" RSRP "
1371 << (it->haveRsrpResult ? (uint16_t)it->rsrpResult : 255)
1373 << (it->haveRsrqResult ? (uint16_t)it->rsrqResult : 255));
1376 if ((
m_rrc->m_handoverManagementSapProvider !=
nullptr) &&
1377 (
m_rrc->m_handoverMeasIds.find(measId) !=
m_rrc->m_handoverMeasIds.end()))
1383 if ((
m_rrc->m_ccmRrcSapProvider !=
nullptr) &&
1384 (
m_rrc->m_componentCarrierMeasIds.find(measId) !=
m_rrc->m_componentCarrierMeasIds.end()))
1390 if ((
m_rrc->m_anrSapProvider !=
nullptr) &&
1391 (
m_rrc->m_anrMeasIds.find(measId) !=
m_rrc->m_anrMeasIds.end()))
1397 if ((!
m_rrc->m_ffrRrcSapProvider.empty()) &&
1398 (
m_rrc->m_ffrMeasIds.find(measId) !=
m_rrc->m_ffrMeasIds.end()))
1447 if (params.lcid > 2)
1453 params.pdcpSdu->AddPacketTag(tag);
1454 m_rrc->m_forwardUpCallback(params.pdcpSdu);
1487 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
1489 m_rrc->m_cphySapProvider.at(i)->SetSrsConfigurationIndex(
m_rnti, srsConfIndex);
1542 res.criticalityDiagnostics = 0;
1552 res.oldEnbUeX2apId =
m_rnti;
1565 const uint8_t MAX_DRB_ID = 32;
1567 drbid = (drbid + 1) % MAX_DRB_ID)
1574 drbInfo->m_drbIdentity = drbid;
1589 std::map<uint8_t, Ptr<LteDataRadioBearerInfo>>::iterator it =
m_drbMap.find(drbid);
1598 std::map<uint8_t, Ptr<LteDataRadioBearerInfo>>::iterator it =
m_drbMap.find(drbid);
1600 "request to remove radio bearer with unknown drbid " << drbid);
1652 dtam.
rlcConfig = it->second->m_rlcConfig;
1769 for (
auto& it :
m_rrc->m_componentCarrierPhyConf)
1771 uint8_t ccId = it.first;
1791 eNbCcm->GetDlBandwidth();
1799 eNbCcm->GetUlEarfcn();
1801 eNbCcm->GetUlBandwidth();
1857 : m_x2SapProvider(nullptr),
1858 m_cmacSapProvider(0),
1859 m_handoverManagementSapProvider(nullptr),
1860 m_ccmRrcSapProvider(nullptr),
1861 m_anrSapProvider(nullptr),
1862 m_ffrRrcSapProvider(0),
1863 m_rrcSapUser(nullptr),
1864 m_macSapProvider(nullptr),
1865 m_s1SapProvider(nullptr),
1866 m_cphySapProvider(0),
1867 m_configured(false),
1868 m_lastAllocatedRnti(0),
1869 m_srsCurrentPeriodicityId(0),
1870 m_lastAllocatedConfigurationIndex(0),
1871 m_reconfigureUes(false),
1872 m_numberOfComponentCarriers(0),
1873 m_carriersConfigured(false)
1893 " Number of component carriers "
1894 "are not equal to the number of he component carrier configuration provided");
1946 .SetGroupName(
"Lte")
1948 .AddAttribute(
"UeMap",
1949 "List of UeManager by C-RNTI.",
1952 MakeObjectMapChecker<UeManager>())
1953 .AddAttribute(
"DefaultTransmissionMode",
1954 "The default UEs' transmission mode (0: SISO)",
1957 MakeUintegerChecker<uint8_t>())
1958 .AddAttribute(
"EpsBearerToRlcMapping",
1959 "Specify which type of RLC will be used for each type of EPS bearer.",
1969 "PacketErrorRateBased"))
1970 .AddAttribute(
"SystemInformationPeriodicity",
1971 "The interval for sending system information (Time value)",
1979 "The SRS periodicity in milliseconds",
1982 MakeUintegerChecker<uint32_t>())
1985 .AddAttribute(
"ConnectionRequestTimeoutDuration",
1986 "After a RA attempt, if no RRC CONNECTION REQUEST is "
1987 "received before this time, the UE context is destroyed. "
1988 "Must account for reception of RAR and transmission of "
1989 "RRC CONNECTION REQUEST over UL GRANT. The value of this"
1990 "timer should not be greater than T300 timer at UE RRC",
1994 .AddAttribute(
"ConnectionSetupTimeoutDuration",
1995 "After accepting connection request, if no RRC CONNECTION "
1996 "SETUP COMPLETE is received before this time, the UE "
1997 "context is destroyed. Must account for the UE's reception "
1998 "of RRC CONNECTION SETUP and transmission of RRC CONNECTION "
2003 .AddAttribute(
"ConnectionRejectedTimeoutDuration",
2004 "Time to wait between sending a RRC CONNECTION REJECT and "
2005 "destroying the UE context",
2009 .AddAttribute(
"HandoverJoiningTimeoutDuration",
2010 "After accepting a handover request, if no RRC CONNECTION "
2011 "RECONFIGURATION COMPLETE is received before this time, the "
2012 "UE context is destroyed. Must account for reception of "
2013 "X2 HO REQ ACK by source eNB, transmission of the Handover "
2014 "Command, non-contention-based random access and reception "
2015 "of the RRC CONNECTION RECONFIGURATION COMPLETE message.",
2019 .AddAttribute(
"HandoverLeavingTimeoutDuration",
2020 "After issuing a Handover Command, if neither RRC "
2021 "CONNECTION RE-ESTABLISHMENT nor X2 UE Context Release has "
2022 "been previously received, the UE context is destroyed.",
2028 .AddAttribute(
"QRxLevMin",
2029 "One of information transmitted within the SIB1 message, "
2030 "indicating the required minimum RSRP level that any UE must "
2031 "receive from this cell before it is allowed to camp to this "
2032 "cell. The default value -70 corresponds to -140 dBm and is "
2033 "the lowest possible value as defined by Section 6.3.4 of "
2034 "3GPP TS 36.133. This restriction, however, only applies to "
2035 "initial cell selection and EPC-enabled simulation.",
2039 MakeIntegerChecker<int8_t>(-70, -22))
2040 .AddAttribute(
"NumberOfComponentCarriers",
2041 "Number of Component Carriers",
2047 .AddAttribute(
"AdmitHandoverRequest",
2048 "Whether to admit an X2 handover request from another eNB",
2052 .AddAttribute(
"AdmitRrcConnectionRequest",
2053 "Whether to admit a connection request from a UE",
2059 .AddAttribute(
"RsrpFilterCoefficient",
2060 "Determines the strength of smoothing effect induced by "
2061 "layer 3 filtering of RSRP in all attached UE; "
2062 "if set to 0, no layer 3 filtering is applicable",
2066 MakeUintegerChecker<uint8_t>(0))
2067 .AddAttribute(
"RsrqFilterCoefficient",
2068 "Determines the strength of smoothing effect induced by "
2069 "layer 3 filtering of RSRQ in all attached UE; "
2070 "if set to 0, no layer 3 filtering is applicable",
2074 MakeUintegerChecker<uint8_t>(0))
2077 .AddTraceSource(
"NewUeContext",
2078 "Fired upon creation of a new UE context.",
2080 "ns3::LteEnbRrc::NewUeContextTracedCallback")
2081 .AddTraceSource(
"ConnectionEstablished",
2082 "Fired upon successful RRC connection establishment.",
2084 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
2085 .AddTraceSource(
"ConnectionReconfiguration",
2086 "trace fired upon RRC connection reconfiguration",
2088 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
2089 .AddTraceSource(
"HandoverStart",
2090 "trace fired upon start of a handover procedure",
2092 "ns3::LteEnbRrc::HandoverStartTracedCallback")
2093 .AddTraceSource(
"HandoverEndOk",
2094 "trace fired upon successful termination of a handover procedure",
2096 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
2097 .AddTraceSource(
"RecvMeasurementReport",
2098 "trace fired when measurement report is received",
2100 "ns3::LteEnbRrc::ReceiveReportTracedCallback")
2101 .AddTraceSource(
"NotifyConnectionRelease",
2102 "trace fired when an UE is released",
2104 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
2105 .AddTraceSource(
"RrcTimeout",
2106 "trace fired when a timer expires",
2108 "ns3::LteEnbRrc::TimerExpiryTracedCallback")
2110 "HandoverFailureNoPreamble",
2111 "trace fired upon handover failure due to non-allocation of non-contention based "
2112 "preamble at eNB for UE to handover due to max count reached",
2114 "ns3::LteEnbRrc::HandoverFailureTracedCallback")
2116 "HandoverFailureMaxRach",
2117 "trace fired upon handover failure due to max RACH attempts from UE to target eNB",
2119 "ns3::LteEnbRrc::HandoverFailureTracedCallback")
2121 "HandoverFailureLeaving",
2122 "trace fired upon handover failure due to handover leaving timeout at source eNB",
2124 "ns3::LteEnbRrc::HandoverFailureTracedCallback")
2126 "HandoverFailureJoining",
2127 "trace fired upon handover failure due to handover joining timeout at target eNB",
2129 "ns3::LteEnbRrc::HandoverFailureTracedCallback");
2251 "You meant to store the pointer at position "
2252 <<
static_cast<uint32_t>(index) <<
" but it went to "
2269 "Invalid component carrier index:"
2270 << index <<
" provided in order to obtain FfrRrcSapUser.");
2354 std::map<uint16_t, Ptr<UeManager>>::const_iterator it =
m_ueMap.find(rnti);
2363 std::map<uint16_t, Ptr<UeManager>>::iterator it =
m_ueMap.find(rnti);
2378 "Measurement identities and reporting configuration should not have different quantity");
2382 NS_FATAL_ERROR(
"AddUeMeasReportConfig may not be called after the simulation has run");
2394 "The given triggerQuantity (RSRP) does not match with the given threshold2.choice");
2404 "The given triggerQuantity (RSRP) does not match with the given threshold1.choice");
2413 "The given triggerQuantity (RSRQ) does not match with the given threshold2.choice");
2423 "The given triggerQuantity (RSRQ) does not match with the given threshold1.choice");
2434 NS_FATAL_ERROR(
"Only REPORT_STRONGEST_CELLS purpose is supported");
2439 NS_LOG_WARN(
"reportQuantity = BOTH will be used instead of the given reportQuantity");
2452 std::vector<uint8_t> measIds;
2462 measIdToAddMod.
measId = measId;
2467 measIds.push_back(measId);
2476 auto it = ccPhyConf.begin();
2478 uint16_t ulBandwidth = it->second->GetUlBandwidth();
2479 uint16_t dlBandwidth = it->second->GetDlBandwidth();
2480 uint32_t ulEarfcn = it->second->GetUlEarfcn();
2481 uint32_t dlEarfcn = it->second->GetDlEarfcn();
2482 NS_LOG_FUNCTION(
this << ulBandwidth << dlBandwidth << ulEarfcn << dlEarfcn);
2485 for (
const auto& it : ccPhyConf)
2488 it.second->GetDlBandwidth());
2490 it.second->GetDlEarfcn());
2493 it.second->GetDlBandwidth());
2498 it.second->GetDlBandwidth());
2512 for (
const auto& it : ccPhyConf)
2534 m_sib1.reserve(ccPhyConf.size());
2535 for (
const auto& it : ccPhyConf)
2569 m_sib1.at(0).cellAccessRelatedInfo.cellIdentity = cellId;
2577 m_sib1.at(ccIndex).cellAccessRelatedInfo.cellIdentity = cellId;
2587 if (it.second->GetCellId() == cellId)
2607 if (it.second->GetCellId() == cellId)
2621 bool found = packet->RemovePacketTag(tag);
2622 NS_ASSERT_MSG(found,
"no EpsBearerTag found in packet to be sent");
2624 ueManager->SendData(tag.
GetBid(), packet);
2640 "ConnectionRequestTimeout in unexpected state "
2645 "ConnectionRequestTimeout");
2654 "ConnectionSetupTimeout in unexpected state "
2659 "ConnectionSetupTimeout");
2668 "ConnectionRejectedTimeout in unexpected state "
2673 "ConnectionRejectedTimeout");
2682 "HandoverJoiningTimeout in unexpected state "
2710 "HandoverLeavingTimeout in unexpected state "
2727 ueManager->SendRrcConnectionRelease();
2739 ueManager->PrepareHandover(cellId);
2761 GetUeManager(rnti)->RecvRrcConnectionSetupCompleted(msg);
2770 GetUeManager(rnti)->RecvRrcConnectionReconfigurationCompleted(msg);
2779 GetUeManager(rnti)->RecvRrcConnectionReestablishmentRequest(msg);
2788 GetUeManager(rnti)->RecvRrcConnectionReestablishmentComplete(msg);
2803 ueManager->InitialContextSetupRequest();
2832 GetUeManager(rnti)->RecvIdealUeContextRemoveRequest(rnti);
2844 ueManager->SetupDataRadioBearer(request.
bearer,
2856 ueManager->SendUeContextRelease();
2880 res.criticalityDiagnostics = 0;
2896 <<
" failed to allocate a preamble for non-contention based RA => cannot accept HO");
2919 for (std::vector<EpcX2Sap::ErabToBeSetupItem>::iterator it = req.
bearers.begin();
2923 ueManager->SetupDataRadioBearer(it->erabLevelQosParameters,
2926 it->transportLayerAddress);
2933 ueManager->GetRrcConnectionReconfigurationForHandover(componentCarrierId);
2954 ackParams.
rrcContext = encodedHandoverCommand;
2973 NS_LOG_LOGIC(
"oldEnbUeX2apId = " << params.oldEnbUeX2apId);
2974 NS_LOG_LOGIC(
"newEnbUeX2apId = " << params.newEnbUeX2apId);
2975 NS_LOG_LOGIC(
"sourceCellId = " << params.sourceCellId);
2976 NS_LOG_LOGIC(
"targetCellId = " << params.targetCellId);
2978 uint16_t rnti = params.oldEnbUeX2apId;
2980 ueManager->RecvHandoverRequestAck(params);
2988 NS_LOG_LOGIC(
"Recv X2 message: HANDOVER PREPARATION FAILURE");
2990 NS_LOG_LOGIC(
"oldEnbUeX2apId = " << params.oldEnbUeX2apId);
2991 NS_LOG_LOGIC(
"sourceCellId = " << params.sourceCellId);
2992 NS_LOG_LOGIC(
"targetCellId = " << params.targetCellId);
2994 NS_LOG_LOGIC(
"criticalityDiagnostics = " << params.criticalityDiagnostics);
2996 uint16_t rnti = params.oldEnbUeX2apId;
3002 ueManager->RecvHandoverPreparationFailure(params.targetCellId);
3013 NS_LOG_LOGIC(
"oldEnbUeX2apId = " << params.oldEnbUeX2apId);
3014 NS_LOG_LOGIC(
"newEnbUeX2apId = " << params.newEnbUeX2apId);
3015 NS_LOG_LOGIC(
"erabsSubjectToStatusTransferList size = "
3016 << params.erabsSubjectToStatusTransferList.size());
3018 uint16_t rnti = params.newEnbUeX2apId;
3024 ueManager->RecvSnStatusTransfer(params);
3035 NS_LOG_LOGIC(
"oldEnbUeX2apId = " << params.oldEnbUeX2apId);
3036 NS_LOG_LOGIC(
"newEnbUeX2apId = " << params.newEnbUeX2apId);
3038 uint16_t rnti = params.oldEnbUeX2apId;
3055 NS_LOG_LOGIC(
"Number of cellInformationItems = " << params.cellInformationList.size());
3066 NS_LOG_LOGIC(
"Recv X2 message: RESOURCE STATUS UPDATE");
3069 "Number of cellMeasurementResultItems = " << params.cellMeasurementResultList.size());
3071 NS_ASSERT(
"Processing of RESOURCE STATUS UPDATE X2 message IS NOT IMPLEMENTED");
3079 NS_LOG_LOGIC(
"Recv UE DATA FORWARDING through X2 interface");
3080 NS_LOG_LOGIC(
"sourceCellId = " << params.sourceCellId);
3081 NS_LOG_LOGIC(
"targetCellId = " << params.targetCellId);
3084 NS_LOG_LOGIC(
"ueData size = " << params.ueData->GetSize());
3086 std::map<uint32_t, X2uTeidInfo>::iterator teidInfoIt =
m_x2uTeidInfoMap.find(params.gtpTeid);
3089 GetUeManager(teidInfoIt->second.rnti)->SendData(teidInfoIt->second.drbid, params.ueData);
3104 NS_LOG_LOGIC(
"oldEnbUeX2apId = " << params.oldEnbUeX2apId);
3105 NS_LOG_LOGIC(
"newEnbUeX2apId = " << params.newEnbUeX2apId);
3106 NS_LOG_LOGIC(
"sourceCellId = " << params.sourceCellId);
3107 NS_LOG_LOGIC(
"targetCellId = " << params.targetCellId);
3110 uint16_t rnti = params.newEnbUeX2apId;
3114 ueManager->RecvHandoverCancel(params);
3115 GetUeManager(rnti)->RecvIdealUeContextRemoveRequest(rnti);
3126 NS_LOG_WARN(
"Not enough SRS configuration indices, UE context not created");
3136 ueManager->CmacUeConfigUpdateInd(cmacParams);
3175 bool isHandoverAllowed =
true;
3178 NS_ASSERT_MSG(ueManager,
"Cannot find UE context with RNTI " << rnti);
3187 <<
" targetCellId=" << targetCellId <<
" NRT.NoHo=" << noHo
3188 <<
" NRT.NoX2=" << noX2);
3192 isHandoverAllowed =
false;
3193 NS_LOG_LOGIC(
this <<
" handover to cell " << targetCellId <<
" is not allowed by ANR");
3199 isHandoverAllowed =
false;
3200 NS_LOG_LOGIC(
this <<
" handover is not allowed because the UE"
3201 <<
" rnti=" << rnti <<
" is in " <<
ToString(ueManager->GetState())
3205 if (isHandoverAllowed)
3208 ueManager->PrepareHandover(targetCellId);
3236 ueManager->SetPdschConfigDedicated(pdschConfigDedicated);
3262 NS_ASSERT_MSG(found,
"no more RNTIs available (do you have more than 65535 UEs in a cell?)");
3264 Ptr<UeManager> ueManager = CreateObject<UeManager>(
this, rnti, state, componentCarrierId);
3267 ueManager->Initialize();
3269 NS_LOG_DEBUG(
this <<
" New UE RNTI " << rnti <<
" cellId " << cellId <<
" srs CI "
3270 << ueManager->GetSrsConfigurationIndex());
3279 std::map<uint16_t, Ptr<UeManager>>::iterator it =
m_ueMap.find(rnti);
3281 uint64_t imsi = it->second->GetImsi();
3282 uint16_t srsCi = (*it).second->GetSrsConfigurationIndex();
3284 it->second->CancelPendingEvents();
3353 for (std::size_t componentCarrierId = 0; componentCarrierId <
m_sib1.size();
3354 componentCarrierId++)
3356 m_sib1.at(componentCarrierId).cellAccessRelatedInfo.csgIdentity = csgId;
3357 m_sib1.at(componentCarrierId).cellAccessRelatedInfo.csgIndication = csgIndication;
3359 ->SetSystemInformationBlockType1(
m_sib1.at(componentCarrierId));
3396 std::ostringstream allowedValues;
3402 <<
". Allowed values: " << allowedValues.str());
3427 <<
") for current SRS periodicity "
3429 <<
", consider increasing the value of ns3::LteEnbRrc::SrsPeriodicity");
3443 NS_LOG_DEBUG(
this <<
" lower bound " << (*rit) <<
" of "
3477 "request to remove unknown SRS CI " << srcCi);
3517 uint8_t ccId = it.first;
3550 switch (ueManager->GetState())
AttributeValue implementation for Boolean.
Class for forwarding CMAC SAP User functions.
bool IsRandomAccessCompleted(uint16_t rnti) override
Is random access completed function.
EnbRrcMemberLteEnbCmacSapUser(LteEnbRrc *rrc, uint8_t componentCarrierId)
Constructor.
void RrcConfigurationUpdateInd(UeConfig params) override
Notify the RRC of a UE config updated requested by the MAC (normally, by the scheduler)
uint16_t AllocateTemporaryCellRnti() override
request the allocation of a Temporary C-RNTI
uint8_t m_componentCarrierId
Component carrier ID.
void NotifyLcConfigResult(uint16_t rnti, uint8_t lcid, bool success) override
notify the result of the last LC config operation
Hold variables of type enum.
This class implements the Service Access Point (SAP) between the LteEnbRrc and the EpcEnbApplication.
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 ...
virtual void DoSendReleaseIndication(uint64_t imsi, uint16_t rnti, uint8_t bearerId)=0
Triggers epc-enb-application to send ERAB Release Indication message towards MME.
This class implements the Service Access Point (SAP) between the LteEnbRrc and the EpcEnbApplication.
@ HandoverDesirableForRadioReason
These service primitives of this part of the X2 SAP are provided by the X2 entity and issued by RRC e...
virtual void SendHandoverRequestAck(HandoverRequestAckParams params)=0
Send handover request ack function.
virtual void SendHandoverPreparationFailure(HandoverPreparationFailureParams params)=0
Send handover preparation failure function.
virtual void SendHandoverCancel(HandoverCancelParams params)=0
Send handover Cancel to the target eNB.
virtual void SendLoadInformation(LoadInformationParams params)=0
Send load information function.
These service primitives of this part of the X2 SAP are provided by the RRC entity and issued by the ...
This class contains the specification of EPS Bearers.
uint8_t GetResourceType() const
uint16_t GetPacketDelayBudgetMs() const
double GetPacketErrorLossRate() const
Qci qci
Qos class indicator.
GbrQosInformation gbrQosInfo
GBR QOS information.
@ GBR_CONV_VOICE
GBR Conversational Voice.
Tag used to define the RNTI and EPS bearer ID for packets interchanged between the EpcEnbApplication ...
uint8_t GetBid() const
Get Bearer Id function.
uint16_t GetRnti() const
Get RNTI function.
void SetRnti(uint16_t rnti)
Set the RNTI to the given value.
void SetBid(uint8_t bid)
Set the bearer id to the given value.
void Cancel()
This method is syntactic sugar for the ns3::Simulator::Cancel method.
Hold a signed integer type.
Ipv4 addresses are stored in host order in this class.
Service Access Point (SAP) offered by the ANR instance to the eNodeB RRC instance.
virtual void AddNeighbourRelation(uint16_t cellId)=0
Add a new Neighbour Relation entry.
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).
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).
Service Access Point (SAP) offered by the eNodeB RRC instance to the ANR instance.
Service Access Point (SAP) offered by the Component Carrier Manager (CCM) instance to the eNodeB RRC ...
virtual void AddUe(uint16_t rnti, uint8_t state)=0
Add a new UE in the LteEnbComponentCarrierManager.
virtual void RemoveUe(uint16_t rnti)=0
Remove an existing UE.
Service Access Point (SAP) offered by the eNodeB RRC instance to the component carrier manager (CCM) ...
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 MAC to the RRC See Femto Forum MAC Scheduler Interface Spec...
Service Access Point (SAP) offered by the UE PHY to the UE RRC for control purposes.
Service Access Point (SAP) offered by the UE PHY to the UE RRC for control purposes.
The LTE Radio Resource Control entity at the eNB.
~LteEnbRrc() override
Destructor.
LteEnbRrcSapProvider * GetLteEnbRrcSapProvider()
void SetCsgId(uint32_t csgId, bool csgIndication)
Associate this RRC entity with a particular CSG information.
void RemoveUe(uint16_t rnti)
remove a UE from the cell
void DoSetPdschConfigDedicated(uint16_t rnti, LteRrcSap::PdschConfigDedicated pa)
Set PDSCH config dedicated function.
std::map< uint8_t, Ptr< ComponentCarrierBaseStation > > m_componentCarrierPhyConf
component carrier phy configuration
void SetSrsPeriodicity(uint32_t p)
bool IsRandomAccessCompleted(uint16_t rnti)
Is random access completed function.
uint8_t GetLogicalChannelGroup(EpsBearer bearer)
int8_t m_qRxLevMin
The QRxLevMin attribute.
std::set< uint16_t > m_ueSrsConfigurationIndexSet
UE SRS configuration index set.
TracedCallback< uint64_t, uint16_t, uint16_t, uint16_t > m_handoverStartTrace
The HandoverStart trace source.
void DoSetNumberOfComponentCarriers(uint16_t numberOfComponentCarriers)
Set number of component carriers.
void DoSendReleaseDataRadioBearer(uint64_t imsi, uint16_t rnti, uint8_t bearerId)
This function acts as an interface to trigger Release indication messages towards eNB and EPC.
void SendSystemInformation()
method used to periodically send System Information
void DoRecvRrcConnectionRequest(uint16_t rnti, LteRrcSap::RrcConnectionRequest msg)
Part of the RRC protocol.
std::set< uint8_t > m_ffrMeasIds
List of measurement identities which are intended for FFR purpose.
friend class MemberEpcEnbS1SapUser< LteEnbRrc >
allow MemberLteEnbRrcSapProvider<LteEnbRrc> class friend access
Callback< void, Ptr< Packet > > m_forwardUpCallback
forward up callback function
void DoRecvSnStatusTransfer(EpcX2SapUser::SnStatusTransferParams params)
Receive SN status transfer function.
void DoRecvHandoverRequest(EpcX2SapUser::HandoverRequestParams params)
Receive handover request function.
LteEnbRrc()
create an RRC instance for use within an eNB
std::set< uint8_t > m_anrMeasIds
List of measurement identities which are intended for ANR purpose.
uint8_t DoAddUeMeasReportConfigForFfr(LteRrcSap::ReportConfigEutra reportConfig)
Add UE measure report config for FFR function.
LteMacSapProvider * m_macSapProvider
Interface to the eNodeB MAC instance, to be used by RLC instances.
uint32_t GetSrsPeriodicity() const
bool SendData(Ptr< Packet > p)
Enqueue an IP data packet on the proper bearer for downlink transmission.
EpcEnbS1SapUser * GetS1SapUser()
void AddX2Neighbour(uint16_t cellId)
Add a neighbour with an X2 interface.
LteCcmRrcSapUser * m_ccmRrcSapUser
Receive API calls from the LteEnbComponentCarrierManager instance.
Time m_connectionRequestTimeoutDuration
The ConnectionRequestTimeoutDuration attribute.
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 ...
LteHandoverManagementSapUser * m_handoverManagementSapUser
Receive API calls from the handover algorithm instance.
static TypeId GetTypeId()
Get the type ID.
void DoRecvMeasurementReport(uint16_t rnti, LteRrcSap::MeasurementReport msg)
Part of the RRC protocol.
void SetLteAnrSapProvider(LteAnrSapProvider *s)
set the ANR SAP this RRC should interact with
void DoRecvHandoverRequestAck(EpcX2SapUser::HandoverRequestAckParams params)
Receive handover request acknowledge function.
LteEnbCphySapUser * GetLteEnbCphySapUser()
bool HasUeManager(uint16_t rnti) const
uint8_t m_rsrqFilterCoefficient
The RsrqFilterCoefficient attribute.
std::vector< uint8_t > DoAddUeMeasReportConfigForHandover(LteRrcSap::ReportConfigEutra reportConfig)
Add UE measure report config for handover function.
void DoRecvResourceStatusUpdate(EpcX2SapUser::ResourceStatusUpdateParams params)
Receive resource status update function.
uint16_t AddUe(UeManager::State state, uint8_t componentCarrierId)
Allocate a new RNTI for a new UE.
void DoSendLoadInformation(EpcX2Sap::LoadInformationParams params)
Send load information function.
uint8_t GetLogicalChannelPriority(EpsBearer bearer)
void DoCompleteSetupUe(uint16_t rnti, LteEnbRrcSapProvider::CompleteSetupUeParameters params)
Part of the RRC protocol.
uint16_t GetNewSrsConfigurationIndex()
Allocate a new SRS configuration index for a new UE.
uint8_t m_defaultTransmissionMode
The DefaultTransmissionMode attribute.
Time m_connectionRejectedTimeoutDuration
The ConnectionRejectedTimeoutDuration attribute.
Time m_connectionSetupTimeoutDuration
The ConnectionSetupTimeoutDuration attribute.
std::set< uint8_t > m_handoverMeasIds
List of measurement identities which are intended for handover purpose.
void DoPathSwitchRequestAcknowledge(EpcEnbS1SapUser::PathSwitchRequestAcknowledgeParameters params)
Path switch request acknowledge function.
std::vector< uint8_t > AddUeMeasReportConfig(LteRrcSap::ReportConfigEutra config)
Add a new UE measurement reporting configuration.
bool m_admitHandoverRequest
The AdmitHandoverRequest attribute.
uint16_t m_ulBandwidth
Uplink transmission bandwidth configuration in number of Resource Blocks.
LteAnrSapUser * m_anrSapUser
Receive API calls from the ANR instance.
LteHandoverManagementSapProvider * m_handoverManagementSapProvider
Interface to the handover algorithm instance.
friend class EpcX2SpecificEpcX2SapUser< LteEnbRrc >
allow MemberEpcEnbS1SapUser<LteEnbRrc> class friend access
uint8_t DoAddUeMeasReportConfigForComponentCarrier(LteRrcSap::ReportConfigEutra reportConfig)
Add UE measure report config for component carrier function.
std::vector< LteFfrRrcSapProvider * > m_ffrRrcSapProvider
Interface to the FFR algorithm instance.
uint8_t DoAddUeMeasReportConfigForAnr(LteRrcSap::ReportConfigEutra reportConfig)
Add UE measure report config for ANR function.
LteEnbRrcSapUser * m_rrcSapUser
Interface to send messages to UE over the RRC protocol.
std::map< uint16_t, Ptr< UeManager > > m_ueMap
The UeMap attribute.
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...
LteEpsBearerToRlcMapping_t m_epsBearerToRlcMapping
The EpsBearerToRlcMapping attribute.
Ptr< UeManager > GetUeManager(uint16_t rnti)
LteCcmRrcSapProvider * m_ccmRrcSapProvider
Interface to the LteEnbComponentCarrierManager instance.
void DoRecvRrcConnectionReestablishmentComplete(uint16_t rnti, LteRrcSap::RrcConnectionReestablishmentComplete msg)
Part of the RRC protocol.
void DoRrcConfigurationUpdateInd(LteEnbCmacSapUser::UeConfig params)
RRC configuration update indication function.
TracedCallback< uint64_t, uint16_t, uint16_t, LteRrcSap::MeasurementReport > m_recvMeasurementReportTrace
The RecvMeasurementReport trace source.
LteAnrSapProvider * m_anrSapProvider
Interface to the ANR instance.
std::set< uint8_t > m_componentCarrierMeasIds
List of measurement identities which are intended for component carrier management purposes.
std::vector< LteEnbCphySapProvider * > m_cphySapProvider
Interface to the eNodeB PHY instances.
void SetLteMacSapProvider(LteMacSapProvider *s)
set the MAC SAP provider.
void ConfigureCarriers(std::map< uint8_t, Ptr< ComponentCarrierBaseStation > > ccPhyConf)
Configure carriers.
uint16_t m_lastAllocatedConfigurationIndex
last allocated configuration index
TracedCallback< uint64_t, uint16_t, uint16_t > m_handoverFailureMaxRachTrace
The 'HandoverFailureMaxRach' Trace source.
friend class MemberLteCcmRrcSapUser< LteEnbRrc >
allow MemberLteCcmRrcSapUser<LteEnbRrc> class friend access
LteRrcSap::MeasConfig m_ueMeasConfig
List of measurement configuration which are active in every UE attached to this eNodeB instance.
friend class MemberLteEnbRrcSapProvider< LteEnbRrc >
allow MemberLteEnbRrcSapProvider<LteEnbRrc> class friend access
TracedCallback< uint64_t, uint16_t, uint16_t > m_handoverFailureNoPreambleTrace
The 'HandoverFailureNoPreamble' Trace source.
TracedCallback< uint16_t, uint16_t > m_newUeContextTrace
The NewUeContext trace source.
Time m_systemInformationPeriodicity
The SystemInformationPeriodicity attribute.
void DoRecvRrcConnectionReconfigurationCompleted(uint16_t rnti, LteRrcSap::RrcConnectionReconfigurationCompleted msg)
Part of the RRC protocol.
void SetLteEnbRrcSapUser(LteEnbRrcSapUser *s)
set the RRC SAP this RRC should interact with
friend class MemberLteAnrSapUser< LteEnbRrc >
allow MemberLteAnrSapUser<LteEnbRrc> class friend access
void DoRecvHandoverPreparationFailure(EpcX2SapUser::HandoverPreparationFailureParams params)
Receive handover preparation failure function.
LteHandoverManagementSapUser * GetLteHandoverManagementSapUser()
Get the Handover Management SAP offered by this RRC.
EpcX2SapUser * GetEpcX2SapUser()
Get the X2 SAP offered by this RRC.
std::vector< LteEnbCmacSapUser * > m_cmacSapUser
Receive API calls from the eNodeB MAC instance.
void DoInitialContextSetupRequest(EpcEnbS1SapUser::InitialContextSetupRequestParameters params)
Initial context setup request function.
uint32_t m_dlEarfcn
Downlink E-UTRA Absolute Radio Frequency Channel Number.
void SendHandoverRequest(uint16_t rnti, uint16_t cellId)
Send a HandoverRequest through the X2 SAP interface.
uint16_t m_numberOfComponentCarriers
number of component carriers
void DoNotifyLcConfigResult(uint16_t rnti, uint8_t lcid, bool success)
Notify LC config result function.
TypeId GetRlcType(EpsBearer bearer)
uint8_t m_rsrpFilterCoefficient
The RsrpFilterCoefficient attribute.
EpcEnbS1SapProvider * m_s1SapProvider
Interface to send messages to core network over the S1 protocol.
uint16_t m_lastAllocatedRnti
Last allocated RNTI.
uint32_t m_ulEarfcn
Uplink E-UTRA Absolute Radio Frequency Channel Number.
uint16_t ComponentCarrierToCellId(uint8_t componentCarrierId)
convert the component carrier id to cell id
LteFfrRrcSapUser * GetLteFfrRrcSapUser()
Get the FFR SAP offered by this RRC.
void SetS1SapProvider(EpcEnbS1SapProvider *s)
Set the S1 SAP Provider.
bool HasCellId(uint16_t cellId) const
TracedCallback< uint64_t, uint16_t, uint16_t > m_connectionReconfigurationTrace
The ConnectionReconfiguration trace source.
EpcX2SapUser * m_x2SapUser
Interface to receive messages from neighbour eNodeB over the X2 interface.
bool m_admitRrcConnectionRequest
The AdmitRrcConnectionRequest attribute.
void DoRecvUeData(EpcX2SapUser::UeDataParams params)
Receive UE data function.
uint16_t m_srsCurrentPeriodicityId
The SrsPeriodicity attribute.
void DoRecvRrcConnectionReestablishmentRequest(uint16_t rnti, LteRrcSap::RrcConnectionReestablishmentRequest msg)
Part of the RRC protocol.
bool m_configured
True if ConfigureCell() has been completed.
void ConnectionSetupTimeout(uint16_t rnti)
Method triggered when a UE is expected to complete a connection setup procedure but does not do so in...
friend class EnbRrcMemberLteEnbCmacSapUser
allow EnbRrcMemberLteEnbCmacSapUser class friend access
friend class MemberLteHandoverManagementSapUser< LteEnbRrc >
allow MemberLteHandoverManagementSapUser<LteEnbRrc> class friend access
LteEnbCmacSapUser * GetLteEnbCmacSapUser()
Get the CMAC SAP offered by this RRC.
void DoRecvRrcConnectionSetupCompleted(uint16_t rnti, LteRrcSap::RrcConnectionSetupCompleted msg)
Part of the RRC protocol.
TracedCallback< uint64_t, uint16_t, uint16_t > m_connectionReleaseTrace
The NotifyConnectionRelease trace source.
void ConnectionRejectedTimeout(uint16_t rnti)
Method triggered a while after sending RRC Connection Rejected.
void DoRecvUeContextRelease(EpcX2SapUser::UeContextReleaseParams params)
Receive UE context release function.
Time m_handoverLeavingTimeoutDuration
The HandoverLeavingTimeoutDuration attribute.
std::map< uint32_t, X2uTeidInfo > m_x2uTeidInfoMap
TEID, RNTI, DRBID.
void DoRecvLoadInformation(EpcX2SapUser::LoadInformationParams params)
Receive load information function.
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...
uint16_t DoAllocateTemporaryCellRnti(uint8_t componentCarrierId)
Allocate temporary cell RNTI function.
std::vector< LteEnbCphySapUser * > m_cphySapUser
Receive API calls from the eNodeB PHY instances.
TracedCallback< uint64_t, uint16_t, uint16_t > m_handoverFailureJoiningTrace
The 'HandoverFailureJoining' Trace source.
void SetLteHandoverManagementSapProvider(LteHandoverManagementSapProvider *s)
set the Handover Management SAP this RRC should interact with
void SetLteFfrRrcSapProvider(LteFfrRrcSapProvider *s)
set the FFR SAP this RRC should interact with
LteCcmRrcSapUser * GetLteCcmRrcSapUser()
Get the Component Carrier Management SAP offered by this RRC.
void SetLteEnbCphySapProvider(LteEnbCphySapProvider *s)
set the CPHY SAP this RRC should use to interact with the PHY
void DoDispose() override
Destructor implementation.
std::vector< LteFfrRrcSapUser * > m_ffrRrcSapUser
Receive API calls from the FFR algorithm instance.
EpcX2SapProvider * m_x2SapProvider
Interface to send messages to neighbour eNodeB over the X2 interface.
std::vector< LteEnbCmacSapProvider * > m_cmacSapProvider
Interface to the eNodeB MAC instance.
std::vector< LteRrcSap::SystemInformationBlockType1 > m_sib1
The System Information Block Type 1 that is currently broadcasted over BCH.
void DoDataRadioBearerSetupRequest(EpcEnbS1SapUser::DataRadioBearerSetupRequestParameters params)
Data radio beaerer setup request function.
LteAnrSapUser * GetLteAnrSapUser()
Get the ANR SAP offered by this RRC.
void SetLteCcmRrcSapProvider(LteCcmRrcSapProvider *s)
set the Component Carrier Management SAP this RRC should interact with
LteEnbRrcSapProvider * m_rrcSapProvider
Interface to receive messages from UE over the RRC protocol.
bool m_carriersConfigured
are carriers configured
void SetForwardUpCallback(Callback< void, Ptr< Packet > > cb)
set the callback used to forward data packets up the stack
TracedCallback< uint64_t, uint16_t, uint16_t > m_connectionEstablishedTrace
The ConnectionEstablished trace source.
TracedCallback< uint64_t, uint16_t, uint16_t > m_handoverFailureLeavingTrace
The 'HandoverFailureLeaving' Trace source.
TracedCallback< uint64_t, uint16_t, uint16_t, std::string > m_rrcTimeoutTrace
The 'TimerExpiry' Trace source.
void DoTriggerHandover(uint16_t rnti, uint16_t targetCellId)
Trigger handover function.
void DoRecvIdealUeContextRemoveRequest(uint16_t rnti)
Part of the RRC protocol.
void SetCellId(uint16_t m_cellId)
set the cell id of this eNB
EpcEnbS1SapUser * m_s1SapUser
Interface to receive messages from core network over the S1 protocol.
void RemoveSrsConfigurationIndex(uint16_t srcCi)
remove a previously allocated SRS configuration index
Time m_handoverJoiningTimeoutDuration
The HandoverJoiningTimeoutDuration attribute.
void ConfigureCell(std::map< uint8_t, Ptr< ComponentCarrierBaseStation > > ccPhyConf)
Configure cell-specific parameters.
void SetLteEnbCmacSapProvider(LteEnbCmacSapProvider *s)
set the CMAC SAP this RRC should interact with
uint16_t m_dlBandwidth
Downlink transmission bandwidth configuration in number of Resource Blocks.
TracedCallback< uint64_t, uint16_t, uint16_t > m_handoverEndOkTrace
The HandoverEndOk trace source.
uint8_t CellToComponentCarrierId(uint16_t cellId)
convert the cell id to component carrier id
void SetEpcX2SapProvider(EpcX2SapProvider *s)
Set the X2 SAP this RRC should interact with.
void DoRecvHandoverCancel(EpcX2SapUser::HandoverCancelParams params)
Receive Handover Cancel function.
Part of the RRC protocol.
Part of the RRC protocol.
virtual void SendSystemInformation(uint16_t cellId, 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 UE function.
virtual Ptr< Packet > EncodeHandoverCommand(RrcConnectionReconfiguration msg)=0
Encode handover command.
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the eNodeB RRC instan...
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
Service Access Point (SAP) offered by the handover algorithm instance to the eNodeB RRC instance.
Service Access Point (SAP) offered by the eNodeB RRC instance to the handover algorithm instance.
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
Service Access Point (SAP) offered by the PDCP entity to the RRC entity See 3GPP 36....
virtual void TransmitPdcpSdu(TransmitPdcpSduParameters params)=0
Send RRC PDU parameters to the PDCP for transmission.
LTE RLC Acknowledged Mode (AM), see 3GPP TS 36.322.
static TypeId GetTypeId()
Get the type ID.
This abstract base class defines the API to interact with the Radio Link Control (LTE_RLC) in LTE,...
static TypeId GetTypeId()
Get the type ID.
static TypeId GetTypeId()
Get the type ID.
static double ConvertPdschConfigDedicated2Double(PdschConfigDedicated pdschConfigDedicated)
Convert PDSCH config dedicated function.
Template for the implementation of the LteEnbCphySapUser as a member of an owner class of type C to w...
Template for the implementation of the LteFfrRrcSapUser as a member of an owner class of type C to wh...
Instantiate subclasses of ns3::Object.
Ptr< Object > Create() const
Create an Object instance of the configured TypeId.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
A base class which provides memory management and object aggregation.
Ptr< T > GetObject() const
Get a pointer to the requested aggregated Object.
virtual void DoInitialize()
Initialize() implementation.
Hold objects of type Ptr<T>.
Smart pointer class similar to boost::intrusive_ptr.
static EventId Schedule(const Time &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
static Time Now()
Return the current simulation virtual time.
Simulation virtual time values and global simulation resolution.
AttributeValue implementation for Time.
a unique identifier for an interface.
@ ATTR_GET
The attribute can be read.
@ ATTR_CONSTRUCT
The attribute can be written at construction-time.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
bool m_pendingStartDataRadioBearers
Pending start data radio bearers.
void RecvRrcConnectionReestablishmentRequest(LteRrcSap::RrcConnectionReestablishmentRequest msg)
Implement the LteEnbRrcSapProvider::RecvRrcConnectionReestablishmentRequest interface.
void InitialContextSetupRequest()
Process Initial context setup request message from the MME.
void RecvUeContextRelease(EpcX2SapUser::UeContextReleaseParams params)
Take the necessary actions in response to the reception of an X2 UE CONTEXT RELEASE message.
void RecordDataRadioBearersToBeStarted()
Start all configured data radio bearers.
std::map< uint8_t, Ptr< LteDataRadioBearerInfo > > m_drbMap
The DataRadioBearerMap attribute.
Ptr< LteSignalingRadioBearerInfo > m_srb1
The Srb1 attribute.
void PrepareHandover(uint16_t cellId)
Start the handover preparation and send the handover request.
void SetImsi(uint64_t imsi)
Set the IMSI.
void SendData(uint8_t bid, Ptr< Packet > p)
Send a data packet over the appropriate Data Radio Bearer.
void SendRrcConnectionRelease()
This function acts as an interface to trigger the connection release towards eNB, EPC and UE.
EpcX2Sap::HandoverCancelParams BuildHoCancelMsg()
build handover cancel message
void CompleteSetupUe(LteEnbRrcSapProvider::CompleteSetupUeParameters params)
Implement the LteEnbRrcSapProvider::CompleteSetupUe interface.
bool m_needPhyMacConfiguration
need Phy MAC configuration
State
The state of the UeManager at the eNB RRC.
@ CONNECTION_REESTABLISHMENT
@ CONNECTION_RECONFIGURATION
LteRrcSap::RadioResourceConfigDedicated GetRadioResourceConfigForHandoverPreparationInfo()
void CmacUeConfigUpdateInd(LteEnbCmacSapUser::UeConfig cmacParams)
CMAC UE config update indication function.
void RecvHandoverCancel(EpcX2SapUser::HandoverCancelParams params)
Take the necessary actions in response to the reception of an X2 UE CONTEXT RELEASE message.
void DoDispose() override
Destructor implementation.
LteRrcSap::RrcConnectionReconfiguration BuildRrcConnectionReconfiguration()
EventId m_handoverJoiningTimeout
Time limit before a handover joining timeout occurs.
uint8_t AddDataRadioBearerInfo(Ptr< LteDataRadioBearerInfo > radioBearerInfo)
Add a new LteDataRadioBearerInfo structure to the UeManager.
uint16_t GetSrsConfigurationIndex() const
uint8_t Lcid2Bid(uint8_t lcid)
uint16_t m_rnti
The C-RNTI attribute.
void RecvSnStatusTransfer(EpcX2SapUser::SnStatusTransferParams params)
Take the necessary actions in response to the reception of an X2 SN STATUS TRANSFER message.
uint8_t Bid2Lcid(uint8_t bid)
LteRrcSap::PhysicalConfigDedicated m_physicalConfigDedicated
physical config dedicated
void RecvRrcConnectionSetupCompleted(LteRrcSap::RrcConnectionSetupCompleted msg)
Implement the LteEnbRrcSapProvider::RecvRrcConnectionSetupCompleted interface.
std::list< uint8_t > m_drbsToBeStarted
DRBS to be started.
uint8_t m_lastAllocatedDrbid
last allocated Data Radio Bearer ID
uint8_t GetComponentCarrierId() const
void DoReceivePdcpSdu(LtePdcpSapUser::ReceivePdcpSduParameters params)
Receive PDCP SDU function.
EventId m_connectionRejectedTimeout
The delay before a connection rejected timeout occurs.
void RemoveDataRadioBearerInfo(uint8_t drbid)
remove the LteDataRadioBearerInfo corresponding to a bearer being released
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 RecvRrcConnectionReconfigurationCompleted(LteRrcSap::RrcConnectionReconfigurationCompleted msg)
Implement the LteEnbRrcSapProvider::RecvRrcConnectionReconfigurationCompleted interface.
TracedCallback< uint64_t, uint16_t, uint16_t, uint8_t > m_drbCreatedTrace
The DrbCreated trace source.
uint16_t m_targetX2apId
target X2 ap ID
uint8_t Drbid2Bid(uint8_t drbid)
static TypeId GetTypeId()
Get the type ID.
Ptr< LteSignalingRadioBearerInfo > m_srb0
The Srb0 attribute.
EventId m_connectionRequestTimeout
Time limit before a connection request timeout occurs.
uint64_t m_imsi
International Mobile Subscriber Identity assigned to this UE.
uint8_t GetNewRrcTransactionIdentifier()
bool m_caSupportConfigured
Define if the Carrier Aggregation was already configure for the current UE on not.
uint16_t m_targetCellId
target cell ID
void SetSrsConfigurationIndex(uint16_t srsConfIndex)
Set the SRS configuration index and do the necessary reconfiguration.
Ptr< LteDataRadioBearerInfo > GetDataRadioBearerInfo(uint8_t drbid)
void SendPacket(uint8_t bid, Ptr< Packet > p)
Send a data packet over the appropriate Data Radio Bearer.
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...
LteRrcSap::NonCriticalExtensionConfiguration BuildNonCriticalExtensionConfigurationCa()
std::list< std::pair< uint8_t, Ptr< Packet > > > m_packetBuffer
Packet buffer for when UE is doing the handover.
friend class LtePdcpSpecificLtePdcpSapUser< UeManager >
allow LtePdcpSpecificLtePdcpSapUser<UeManager> class friend access
uint8_t m_lastRrcTransactionIdentifier
last RRC transaction identifier
uint8_t m_componentCarrierId
ID of the primary CC for this UE.
State m_state
The current UeManager state.
void RecvMeasurementReport(LteRrcSap::MeasurementReport msg)
Implement the LteEnbRrcSapProvider::RecvMeasurementReport interface.
void DoInitialize() override
Initialize() implementation.
Ptr< LteEnbRrc > m_rrc
Pointer to the parent eNodeB RRC.
TracedCallback< uint64_t, uint16_t, uint16_t, State, State > m_stateTransitionTrace
The StateTransition trace source.
bool m_pendingRrcConnectionReconfiguration
pending RRC connection reconfiguration
void ReleaseDataRadioBearer(uint8_t drbid)
Release a given radio bearer.
void RecvRrcConnectionReestablishmentComplete(LteRrcSap::RrcConnectionReestablishmentComplete msg)
Implement the LteEnbRrcSapProvider::RecvRrcConnectionReestablishmentComplete interface.
uint8_t Bid2Drbid(uint8_t bid)
LteRrcSap::RrcConnectionReconfiguration GetRrcConnectionReconfigurationForHandover(uint8_t componentCarrierId)
void StartDataRadioBearers()
Start the data radio bearers that have been previously recorded to be started using RecordDataRadioBe...
void SendUeContextRelease()
send the UE CONTEXT RELEASE X2 message to the source eNB, thus successfully terminating an X2 handove...
void RecvHandoverRequestAck(EpcX2SapUser::HandoverRequestAckParams params)
take the necessary actions in response to the reception of an X2 HANDOVER REQUEST ACK message
LteRrcSap::RadioResourceConfigDedicated BuildRadioResourceConfigDedicated()
void CancelPendingEvents()
Cancel all timers which are running for the UE.
uint8_t Lcid2Drbid(uint8_t lcid)
void ScheduleRrcConnectionReconfiguration()
schedule an RRC Connection Reconfiguration procedure with the UE
uint16_t m_sourceCellId
source cell ID
void RecvHandoverPreparationFailure(uint16_t cellId)
Take the necessary actions in response to the reception of an X2 HO preparation failure message.
EpcX2Sap::HandoverPreparationFailureParams BuildHoPrepFailMsg()
build handover preparation failure message
EventId m_handoverLeavingTimeout
Time limit before a handover leaving timeout occurs.
uint16_t m_sourceX2apId
source X2 ap ID
std::vector< EpcX2Sap::ErabToBeSetupItem > GetErabList()
void RecvRrcConnectionRequest(LteRrcSap::RrcConnectionRequest msg)
Implement the LteEnbRrcSapProvider::RecvRrcConnectionRequest interface.
uint8_t Drbid2Lcid(uint8_t drbid)
LtePdcpSapUser * m_drbPdcpSapUser
DRB PDCP SAP user.
void SwitchToState(State s)
Switch the UeManager to the given state.
void SetPdschConfigDedicated(LteRrcSap::PdschConfigDedicated pdschConfigDedicated)
Configure PdschConfigDedicated (i.e.
EventId m_connectionSetupTimeout
Time limit before a connection setup timeout occurs.
void RecvIdealUeContextRemoveRequest(uint16_t rnti)
Implement the LteEnbRrcSapProvider::RecvIdealUeContextRemoveRequest interface.
Hold an unsigned integer type.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Ptr< const AttributeChecker > MakeBooleanChecker()
Ptr< const AttributeAccessor > MakeEnumAccessor(T1 a1)
Ptr< const AttributeAccessor > MakeIntegerAccessor(T1 a1)
ObjectPtrContainerValue ObjectMapValue
ObjectMapValue is an alias for ObjectPtrContainerValue.
Ptr< const AttributeAccessor > MakeObjectMapAccessor(U T::*memberVariable)
MakeAccessorHelper implementation for ObjectVector.
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
Ptr< const AttributeChecker > MakeTimeChecker()
Helper to make an unbounded Time checker.
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
#define NS_ABORT_MSG_IF(cond, msg)
Abnormal program termination if a condition is true, with a message.
#define NS_ABORT_IF(cond)
Abnormal program termination if a condition is true.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Time Seconds(double value)
Construct a Time in the indicated unit.
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
constexpr uint32_t MIN_NO_CC
Minimum number of carrier components allowed by 3GPP up to R13.
constexpr uint32_t MAX_NO_CC
Maximum number of carrier components allowed by 3GPP up to R13.
static const std::string g_ueManagerStateName[UeManager::NUM_STATES]
Map each of UE Manager states to its string representation.
static const uint16_t g_srsCiLow[SRS_ENTRIES]
The lower bound (inclusive) of the SRS configuration indices (ISRS) which use the corresponding SRS p...
static const uint16_t g_srsCiHigh[SRS_ENTRIES]
The upper bound (inclusive) of the SRS configuration indices (ISRS) which use the corresponding SRS p...
static const uint8_t SRS_ENTRIES
Number of distinct SRS periodicity plus one.
static const uint16_t g_srsPeriodicity[SRS_ENTRIES]
Sounding Reference Symbol (SRS) periodicity (TSRS) in milliseconds.
Ptr< const AttributeChecker > MakeEnumChecker(int v, std::string n, Ts... args)
Make an EnumChecker pre-configured with a set of allowed values by name.
static const std::string & ToString(EpcUeNas::State s)
BearerToBeSwitched structure.
uint8_t epsBearerId
Bearer ID.
PathSwitchRequestParameters structure.
Parameters passed to DataRadioBearerSetupRequest ()
EpsBearer bearer
the characteristics of the bearer to be setup
uint16_t rnti
the RNTI identifying the UE for which the DataRadioBearer is to be created
uint32_t gtpTeid
S1-bearer GTP tunnel endpoint identifier, see 36.423 9.2.1.
uint8_t bearerId
the EPS Bearer Identifier
Ipv4Address transportLayerAddress
IP Address of the SGW, see 36.423 9.2.1.
Parameters passed to InitialContextSetupRequest ()
uint16_t rnti
the RNTI identifying the UE
PathSwitchRequestAcknowledgeParameters structure.
E-RABs admitted item as it is used in the HANDOVER REQUEST ACKNOWLEDGE message.
E-RABs to be setup item as it is used in the HANDOVER REQUEST message.
bool dlForwarding
DL forwarding.
Ipv4Address transportLayerAddress
transport layer address
EpsBearer erabLevelQosParameters
E-RAB level QOS parameters.
ErabsSubjectToStatusTransferItem structure.
uint16_t ulPdcpSn
UL PDCP SN.
uint16_t dlPdcpSn
DL PDCP SN.
Parameters of the HANDOVER CANCEL message.
Parameters of the HANDOVER PREPARATION FAILURE message.
Parameters of the HANDOVER REQUEST ACKNOWLEDGE message.
std::vector< ErabAdmittedItem > admittedBearers
admitted bearers
uint16_t sourceCellId
source cell ID
uint16_t newEnbUeX2apId
new ENB UE X2 AP ID
uint16_t targetCellId
target cell ID
uint16_t oldEnbUeX2apId
old ENB UE X2 AP ID
Ptr< Packet > rrcContext
RRC context.
Parameters of the HANDOVER REQUEST message.
uint16_t oldEnbUeX2apId
old ENB UE X2 AP ID
uint16_t sourceCellId
source cell ID
uint16_t targetCellId
target cell ID
uint32_t mmeUeS1apId
MME UE S1 AP ID.
std::vector< ErabToBeSetupItem > bearers
bearers
Parameters of the RESOURCE STATUS UPDATE message.
Parameters of the SN STATUS TRANSFER message.
uint16_t newEnbUeX2apId
new ENB UE X2 AP ID
std::vector< ErabsSubjectToStatusTransferItem > erabsSubjectToStatusTransferList
ERABs subject to status transfer list.
uint16_t oldEnbUeX2apId
old ENB UE X2 AP ID
uint16_t targetCellId
target cell ID
uint16_t sourceCellId
source cell ID
Parameters of the UE CONTEXT RELEASE message.
uint16_t newEnbUeX2apId
new ENB UE X2 AP ID
uint16_t oldEnbUeX2apId
old ENB UE X2 AP ID
uint16_t sourceCellId
source cell ID
uint16_t targetCellId
target cell ID
Parameters of the UE DATA primitive.
AllocateNcRaPreambleReturnValue structure.
uint8_t raPreambleId
random access preamble id
bool valid
true if a valid RA config was allocated, false otherwise
uint8_t raPrachMaskIndex
PRACH mask index.
Logical Channel information to be passed to CmacSapProvider::ConfigureLc.
uint64_t gbrUl
guaranteed bitrate in uplink
uint8_t qci
QoS Class Identifier.
uint64_t mbrDl
maximum bitrate in downlink
uint64_t mbrUl
maximum bitrate in uplink
uint8_t lcGroup
logical channel group
uint8_t resourceType
0 if the bearer is NON-GBR, 1 if the bearer is GBR, 2 if the bearer in DC-GBR
uint64_t gbrDl
guaranteed bitrate in downlink
uint8_t lcId
logical channel identifier
uint16_t rnti
C-RNTI identifying the UE.
struct defining the RACH configuration of the MAC
Parameters for [re]configuring the UE.
uint16_t m_rnti
UE id within this cell.
uint8_t m_transmissionMode
Transmission mode [1..7] (i.e., SISO, MIMO, etc.)
Parameters for [re]configuring the UE.
uint16_t m_rnti
UE id within this cell.
uint8_t m_transmissionMode
Transmission mode [1..7] (i.e., SISO, MIMO, etc.)
CompleteSetupUeParameters structure.
SetupUeParameters structure.
LtePdcpSapProvider * srb1SapProvider
SRB1 SAP provider.
LteRlcSapProvider * srb0SapProvider
SRB0 SAP provider.
Status variables of the PDCP.
uint16_t rxSn
RX sequence number.
uint16_t txSn
TX sequence number.
Parameters for LtePdcpSapProvider::TransmitPdcpSdu.
Parameters for LtePdcpSapUser::ReceivePdcpSdu.
uint16_t antennaPortsCount
antenna ports count
uint8_t transmissionMode
transmission mode
RadioResourceConfigDedicated sourceRadioResourceConfig
source radio resource config
MasterInformationBlock sourceMasterInformationBlock
source master information block
uint16_t sourceUeIdentity
source UE identity
MeasConfig sourceMeasConfig
source measure config
uint32_t sourceDlCarrierFreq
source DL carrier frequency
SystemInformationBlockType1 sourceSystemInformationBlockType1
source system information block type 1
SystemInformationBlockType2 sourceSystemInformationBlockType2
source system information block type 2
uint16_t dlBandwidth
DL bandwidth.
uint16_t ulBandwidth
UL bandwidth.
uint32_t dlCarrierFreq
DL carrier frequency.
uint32_t ulCarrierFreq
UL carrier frequency.