39 #include <ns3/abort.h>
40 #include <ns3/fatal-error.h>
42 #include <ns3/object-factory.h>
43 #include <ns3/object-map.h>
44 #include <ns3/packet.h>
45 #include <ns3/pointer.h>
46 #include <ns3/simulator.h>
82 uint8_t componentCarrierId)
84 m_componentCarrierId{componentCarrierId}
118 "INITIAL_RANDOM_ACCESS",
120 "CONNECTION_REJECTED",
122 "CONNECTED_NORMALLY",
123 "CONNECTION_RECONFIGURATION",
124 "CONNECTION_REESTABLISHMENT",
125 "HANDOVER_PREPARATION",
127 "HANDOVER_PATH_SWITCH",
135 static const std::string&
149 : m_lastAllocatedDrbid(0),
152 m_componentCarrierId(componentCarrierId),
153 m_lastRrcTransactionIdentifier(0),
156 m_pendingRrcConnectionReconfiguration(false),
159 m_needPhyMacConfiguration(false),
160 m_caSupportConfigured(false),
161 m_pendingStartDataRadioBearers(false)
176 m_rrc->GetNewSrsConfigurationIndex();
183 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
198 m_srb0 = CreateObject<LteSignalingRadioBearerInfo>();
200 m_srb0->m_srbIdentity = 0;
222 m_rrc->m_ccmRrcSapProvider->AddLc(lcinfo, lteMacSapUser);
241 m_srb1 = CreateObject<LteSignalingRadioBearerInfo>();
244 m_srb1->m_srbIdentity = 1;
245 m_srb1->m_logicalChannelConfig.priority = 1;
246 m_srb1->m_logicalChannelConfig.prioritizedBitRateKbps = 100;
247 m_srb1->m_logicalChannelConfig.bucketSizeDurationMs = 100;
248 m_srb1->m_logicalChannelConfig.logicalChannelGroup = 0;
266 m_rrc->m_ccmRrcSapProvider->AddLc(lcinfo, MacSapUserForRlc);
280 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
282 m_rrc->m_cmacSapProvider.at(i)->UeUpdateConfigurationReq(req);
283 m_rrc->m_cphySapProvider.at(i)->SetTransmissionMode(
286 m_rrc->m_cphySapProvider.at(i)->SetSrsConfigurationIndex(
292 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");
412 "bearer ID mismatch (" << (uint32_t)bid <<
" != " << (uint32_t)bearerId
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 auto ret =
m_rrc->m_x2uTeidInfoMap.insert(
429 std::pair<uint32_t, LteEnbRrc::X2uTeidInfo>(gtpTeid, x2uTeidInfo));
430 NS_ASSERT_MSG(ret.second ==
true,
"overwriting a pre-existing entry in m_x2uTeidInfoMap");
442 drbInfo->m_rlc = rlc;
456 drbInfo->m_pdcp = pdcp;
461 std::vector<LteCcmRrcSapProvider::LcsConfig> lcOnCcMapping =
462 m_rrc->m_ccmRrcSapProvider->SetupDataRadioBearer(bearer,
466 m_rrc->GetLogicalChannelGroup(bearer),
480 auto itLcOnCcMapping = lcOnCcMapping.begin();
481 NS_ASSERT_MSG(itLcOnCcMapping != lcOnCcMapping.end(),
"Problem");
482 for (itLcOnCcMapping = lcOnCcMapping.begin(); itLcOnCcMapping != lcOnCcMapping.end();
485 NS_LOG_DEBUG(
this <<
" RNTI " << itLcOnCcMapping->lc.rnti <<
"Lcid "
486 << (uint16_t)itLcOnCcMapping->lc.lcId <<
" lcGroup "
487 << (uint16_t)itLcOnCcMapping->lc.lcGroup <<
" ComponentCarrierId "
488 << itLcOnCcMapping->componentCarrierId);
489 uint8_t index = itLcOnCcMapping->componentCarrierId;
492 m_rrc->m_cmacSapProvider.at(index)->AddLc(lcinfo, msu);
493 m_rrc->m_ccmRrcSapProvider->AddLc(lcinfo, msu);
505 drbInfo->m_logicalChannelIdentity = lcid;
506 drbInfo->m_logicalChannelConfig.priority =
m_rrc->GetLogicalChannelPriority(bearer);
507 drbInfo->m_logicalChannelConfig.logicalChannelGroup =
m_rrc->GetLogicalChannelGroup(bearer);
510 drbInfo->m_logicalChannelConfig.prioritizedBitRateKbps = bearer.
gbrQosInfo.
gbrUl;
514 drbInfo->m_logicalChannelConfig.prioritizedBitRateKbps = 0;
516 drbInfo->m_logicalChannelConfig.bucketSizeDurationMs = 1000;
537 auto drbIt =
m_drbMap.find(*drbIdIt);
539 drbIt->second->m_rlc->Initialize();
540 if (drbIt->second->m_pdcp)
542 drbIt->second->m_pdcp->Initialize();
555 "request to remove radio bearer with unknown drbid " << drbid);
558 m_rrc->m_x2uTeidInfoMap.erase(it->second->m_gtpTeid);
561 std::vector<uint8_t> ccToRelease =
562 m_rrc->m_ccmRrcSapProvider->ReleaseDataRadioBearer(
m_rnti, lcid);
563 auto itCcToRelease = ccToRelease.begin();
565 "request to remove radio bearer with unknown drbid (ComponentCarrierManager)");
566 for (itCcToRelease = ccToRelease.begin(); itCcToRelease != ccToRelease.end(); ++itCcToRelease)
568 m_rrc->m_cmacSapProvider.at(*itCcToRelease)->ReleaseLc(
m_rnti, lcid);
588 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration(
m_rnti, msg);
601 ueManager->ReleaseDataRadioBearer(bearerId);
613 if (
m_rrc->m_s1SapProvider !=
nullptr)
618 << (uint16_t)(it.first)
619 <<
"LCID : " << (uint16_t)(it.second->m_logicalChannelIdentity));
621 m_rrc->m_s1SapProvider->DoSendReleaseIndication(
GetImsi(), rnti, it.first);
647 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration(
m_rnti, msg);
668 auto sourceComponentCarrier = DynamicCast<ComponentCarrierEnb>(
672 if (
m_rrc->HasCellId(cellId))
675 NS_LOG_DEBUG(
"Intra-eNB handover for cellId " << cellId);
676 uint8_t componentCarrierId =
m_rrc->CellToComponentCarrierId(cellId);
679 m_rrc->m_cmacSapProvider.at(componentCarrierId)->AllocateNcRaPreamble(rnti);
682 NS_LOG_INFO(
this <<
" failed to allocate a preamble for non-contention based RA => "
683 "cannot perform HO");
684 NS_FATAL_ERROR(
"should trigger HO Preparation Failure, but it is not implemented");
689 ueManager->SetSource(sourceComponentCarrier->GetCellId(),
m_rnti);
690 ueManager->SetImsi(
m_imsi);
695 ueManager->SetupDataRadioBearer(it.second->m_epsBearer,
696 it.second->m_epsBearerIdentity,
697 it.second->m_gtpTeid,
698 it.second->m_transportLayerAddress);
712 m_rrc->m_cmacSapProvider.at(componentCarrierId)->GetRachConfig();
720 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration(
m_rnti, handoverCommand);
729 sourceComponentCarrier->GetCellId(),
736 NS_LOG_DEBUG(
"Inter-eNB handover (i.e., X2) for cellId " << cellId);
741 params.targetCellId = cellId;
743 params.ueAggregateMaxBitRateDownlink = 200 * 1000;
744 params.ueAggregateMaxBitRateUplink = 100 * 1000;
754 sourceComponentCarrier->GetDlBandwidth();
758 .cellAccessRelatedInfo.plmnIdentityInfo.plmnIdentity;
776 sourceComponentCarrier->GetUlEarfcn();
778 sourceComponentCarrier->GetUlBandwidth();
779 params.rrcContext =
m_rrc->m_rrcSapUser->EncodeHandoverPreparationInformation(hpi);
787 m_rrc->m_x2SapProvider->SendHandoverRequest(
params);
805 "not admission of some bearers upon handover is not supported");
807 "not enough bearers in admittedBearers");
817 m_rrc->m_rrcSapUser->DecodeHandoverCommand(encodedHandoverCommand);
823 m_rrc->m_numberOfComponentCarriers)
827 NS_FATAL_ERROR(
"The source and target eNBs have unequal number of component carriers. "
830 <<
" Source eNB CCs = " <<
m_rrc->m_numberOfComponentCarriers);
833 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration(
m_rnti, handoverCommand);
857 if (drbIt->second->m_rlc->GetObject<
LteRlcAm>())
866 m_rrc->m_x2SapProvider->SendSnStatusTransfer(sst);
883 auto targetComponentCarrier =
884 DynamicCast<ComponentCarrierEnb>(
m_rrc->m_componentCarrierPhyConf.at(componentCarrierId));
892 targetComponentCarrier->GetDlBandwidth();
894 targetComponentCarrier->GetUlBandwidth();
901 for (
auto& it :
m_rrc->m_componentCarrierPhyConf)
903 uint8_t ccId = it.first;
964 NS_LOG_INFO(
"queueing data on PDCP for transmission over the air");
977 NS_LOG_INFO(
"forwarding data to target eNB over X2-U");
994 std::vector<EpcX2Sap::ErabToBeSetupItem>
998 std::vector<EpcX2Sap::ErabToBeSetupItem> ret;
1002 etbsi.
erabId = it->second->m_epsBearerIdentity;
1006 etbsi.
gtpTeid = it->second->m_gtpTeid;
1007 ret.push_back(etbsi);
1019 NS_LOG_INFO(
"Send UE CONTEXT RELEASE from target eNB to source eNB");
1027 m_rrc->m_x2SapProvider->SendUeContextRelease(ueCtxReleaseParams);
1031 NS_LOG_INFO(
"Not sending UE CONTEXT RELEASE because handover is internal");
1032 m_rrc->DoRecvUeContextRelease(ueCtxReleaseParams);
1054 NS_LOG_INFO(
"target eNB sent HO preparation failure, aborting HO");
1059 NS_LOG_INFO(
"target eNB sent HO preparation failure, aborting HO");
1074 for (
auto erabIt =
params.erabsSubjectToStatusTransferList.begin();
1075 erabIt !=
params.erabsSubjectToStatusTransferList.end();
1112 m_rrc->m_rrcSapUser->SendRrcConnectionRelease(m_rnti, msg);
1141 if (
m_rrc->m_admitRrcConnectionRequest)
1149 m_rrc->m_rrcSapUser->SendRrcConnectionSetup(
m_rnti, msg2);
1165 m_rrc->m_rrcSapUser->SendRrcConnectionReject(
m_rnti, rejectMsg);
1197 if (
m_rrc->m_s1SapProvider !=
nullptr)
1232 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
1234 m_rrc->m_cmacSapProvider.at(i)->UeUpdateConfigurationReq(req);
1237 m_rrc->m_cphySapProvider.at(i)->SetTransmissionMode(req.
m_rnti,
1241 m_rrc->m_cphySapProvider.at(i)->SetPa(
m_rnti, paDouble);
1247 m_rrc->m_connectionReconfigurationTrace(
1256 NS_LOG_INFO(
"ignoring RecvRrcConnectionReconfigurationCompleted in state "
1261 NS_LOG_INFO(
"ignoring RecvRrcConnectionReconfigurationCompleted in state "
1271 std::pair<uint8_t, Ptr<Packet>> bidPacket =
m_packetBuffer.front();
1272 uint8_t bid = bidPacket.first;
1275 NS_LOG_LOGIC(
"queueing data on PDCP for transmission over the air");
1281 NS_LOG_INFO(
"Send PATH SWITCH REQUEST to the MME");
1291 b.
teid = it->second->m_gtpTeid;
1292 params.bearersToBeSwitched.push_back(b);
1294 m_rrc->m_s1SapProvider->PathSwitchRequest(
params);
1326 m_rrc->m_rrcSapUser->SendRrcConnectionReestablishment(
m_rnti, msg2);
1344 "measId " << (uint16_t)measId <<
" haveMeasResultNeighCells "
1358 NS_LOG_LOGIC(
"neighbour cellId " << it->physCellId <<
" RSRP "
1359 << (it->haveRsrpResult ? (uint16_t)it->rsrpResult : 255)
1361 << (it->haveRsrqResult ? (uint16_t)it->rsrqResult : 255));
1364 if ((
m_rrc->m_handoverManagementSapProvider !=
nullptr) &&
1365 (
m_rrc->m_handoverMeasIds.find(measId) !=
m_rrc->m_handoverMeasIds.end()))
1371 if ((
m_rrc->m_ccmRrcSapProvider !=
nullptr) &&
1372 (
m_rrc->m_componentCarrierMeasIds.find(measId) !=
m_rrc->m_componentCarrierMeasIds.end()))
1378 if ((
m_rrc->m_anrSapProvider !=
nullptr) &&
1379 (
m_rrc->m_anrMeasIds.find(measId) !=
m_rrc->m_anrMeasIds.end()))
1385 if ((!
m_rrc->m_ffrRrcSapProvider.empty()) &&
1386 (
m_rrc->m_ffrMeasIds.find(measId) !=
m_rrc->m_ffrMeasIds.end()))
1441 params.pdcpSdu->AddPacketTag(tag);
1475 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
1477 m_rrc->m_cphySapProvider.at(i)->SetSrsConfigurationIndex(
m_rnti, srsConfIndex);
1530 res.criticalityDiagnostics = 0;
1553 const uint8_t MAX_DRB_ID = 32;
1555 drbid = (drbid + 1) % MAX_DRB_ID)
1562 drbInfo->m_drbIdentity = drbid;
1588 "request to remove radio bearer with unknown drbid " << drbid);
1638 dtam.
rlcConfig = it->second->m_rlcConfig;
1755 for (
auto& it :
m_rrc->m_componentCarrierPhyConf)
1757 uint8_t ccId = it.first;
1777 eNbCcm->GetDlBandwidth();
1785 eNbCcm->GetUlEarfcn();
1787 eNbCcm->GetUlBandwidth();
1843 : m_x2SapProvider(nullptr),
1844 m_cmacSapProvider(0),
1845 m_handoverManagementSapProvider(nullptr),
1846 m_ccmRrcSapProvider(nullptr),
1847 m_anrSapProvider(nullptr),
1848 m_ffrRrcSapProvider(0),
1849 m_rrcSapUser(nullptr),
1850 m_macSapProvider(nullptr),
1851 m_s1SapProvider(nullptr),
1852 m_cphySapProvider(0),
1853 m_configured(false),
1854 m_lastAllocatedRnti(0),
1855 m_srsCurrentPeriodicityId(0),
1856 m_lastAllocatedConfigurationIndex(0),
1857 m_reconfigureUes(false),
1858 m_numberOfComponentCarriers(0),
1859 m_carriersConfigured(false)
1879 " Number of component carriers "
1880 "are not equal to the number of he component carrier configuration provided");
1931 .SetGroupName(
"Lte")
1933 .AddAttribute(
"UeMap",
1934 "List of UeManager by C-RNTI.",
1937 MakeObjectMapChecker<UeManager>())
1938 .AddAttribute(
"DefaultTransmissionMode",
1939 "The default UEs' transmission mode (0: SISO)",
1942 MakeUintegerChecker<uint8_t>())
1944 "EpsBearerToRlcMapping",
1945 "Specify which type of RLC will be used for each type of EPS bearer.",
1955 "PacketErrorRateBased"))
1956 .AddAttribute(
"SystemInformationPeriodicity",
1957 "The interval for sending system information (Time value)",
1965 "The SRS periodicity in milliseconds",
1968 MakeUintegerChecker<uint32_t>())
1971 .AddAttribute(
"ConnectionRequestTimeoutDuration",
1972 "After a RA attempt, if no RRC CONNECTION REQUEST is "
1973 "received before this time, the UE context is destroyed. "
1974 "Must account for reception of RAR and transmission of "
1975 "RRC CONNECTION REQUEST over UL GRANT. The value of this"
1976 "timer should not be greater than T300 timer at UE RRC",
1980 .AddAttribute(
"ConnectionSetupTimeoutDuration",
1981 "After accepting connection request, if no RRC CONNECTION "
1982 "SETUP COMPLETE is received before this time, the UE "
1983 "context is destroyed. Must account for the UE's reception "
1984 "of RRC CONNECTION SETUP and transmission of RRC CONNECTION "
1989 .AddAttribute(
"ConnectionRejectedTimeoutDuration",
1990 "Time to wait between sending a RRC CONNECTION REJECT and "
1991 "destroying the UE context",
1995 .AddAttribute(
"HandoverJoiningTimeoutDuration",
1996 "After accepting a handover request, if no RRC CONNECTION "
1997 "RECONFIGURATION COMPLETE is received before this time, the "
1998 "UE context is destroyed. Must account for reception of "
1999 "X2 HO REQ ACK by source eNB, transmission of the Handover "
2000 "Command, non-contention-based random access and reception "
2001 "of the RRC CONNECTION RECONFIGURATION COMPLETE message.",
2005 .AddAttribute(
"HandoverLeavingTimeoutDuration",
2006 "After issuing a Handover Command, if neither RRC "
2007 "CONNECTION RE-ESTABLISHMENT nor X2 UE Context Release has "
2008 "been previously received, the UE context is destroyed.",
2014 .AddAttribute(
"QRxLevMin",
2015 "One of information transmitted within the SIB1 message, "
2016 "indicating the required minimum RSRP level that any UE must "
2017 "receive from this cell before it is allowed to camp to this "
2018 "cell. The default value -70 corresponds to -140 dBm and is "
2019 "the lowest possible value as defined by Section 6.3.4 of "
2020 "3GPP TS 36.133. This restriction, however, only applies to "
2021 "initial cell selection and EPC-enabled simulation.",
2025 MakeIntegerChecker<int8_t>(-70, -22))
2026 .AddAttribute(
"NumberOfComponentCarriers",
2027 "Number of Component Carriers",
2033 .AddAttribute(
"AdmitHandoverRequest",
2034 "Whether to admit an X2 handover request from another eNB",
2038 .AddAttribute(
"AdmitRrcConnectionRequest",
2039 "Whether to admit a connection request from a UE",
2045 .AddAttribute(
"RsrpFilterCoefficient",
2046 "Determines the strength of smoothing effect induced by "
2047 "layer 3 filtering of RSRP in all attached UE; "
2048 "if set to 0, no layer 3 filtering is applicable",
2052 MakeUintegerChecker<uint8_t>(0))
2053 .AddAttribute(
"RsrqFilterCoefficient",
2054 "Determines the strength of smoothing effect induced by "
2055 "layer 3 filtering of RSRQ in all attached UE; "
2056 "if set to 0, no layer 3 filtering is applicable",
2060 MakeUintegerChecker<uint8_t>(0))
2063 .AddTraceSource(
"NewUeContext",
2064 "Fired upon creation of a new UE context.",
2066 "ns3::LteEnbRrc::NewUeContextTracedCallback")
2067 .AddTraceSource(
"ConnectionEstablished",
2068 "Fired upon successful RRC connection establishment.",
2070 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
2071 .AddTraceSource(
"ConnectionReconfiguration",
2072 "trace fired upon RRC connection reconfiguration",
2074 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
2075 .AddTraceSource(
"HandoverStart",
2076 "trace fired upon start of a handover procedure",
2078 "ns3::LteEnbRrc::HandoverStartTracedCallback")
2079 .AddTraceSource(
"HandoverEndOk",
2080 "trace fired upon successful termination of a handover procedure",
2082 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
2083 .AddTraceSource(
"RecvMeasurementReport",
2084 "trace fired when measurement report is received",
2086 "ns3::LteEnbRrc::ReceiveReportTracedCallback")
2087 .AddTraceSource(
"NotifyConnectionRelease",
2088 "trace fired when an UE is released",
2090 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
2091 .AddTraceSource(
"RrcTimeout",
2092 "trace fired when a timer expires",
2094 "ns3::LteEnbRrc::TimerExpiryTracedCallback")
2096 "HandoverFailureNoPreamble",
2097 "trace fired upon handover failure due to non-allocation of non-contention based "
2098 "preamble at eNB for UE to handover due to max count reached",
2100 "ns3::LteEnbRrc::HandoverFailureTracedCallback")
2102 "HandoverFailureMaxRach",
2103 "trace fired upon handover failure due to max RACH attempts from UE to target eNB",
2105 "ns3::LteEnbRrc::HandoverFailureTracedCallback")
2107 "HandoverFailureLeaving",
2108 "trace fired upon handover failure due to handover leaving timeout at source eNB",
2110 "ns3::LteEnbRrc::HandoverFailureTracedCallback")
2112 "HandoverFailureJoining",
2113 "trace fired upon handover failure due to handover joining timeout at target eNB",
2115 "ns3::LteEnbRrc::HandoverFailureTracedCallback");
2237 "You meant to store the pointer at position "
2238 <<
static_cast<uint32_t
>(index) <<
" but it went to "
2255 "Invalid component carrier index:"
2256 << index <<
" provided in order to obtain FfrRrcSapUser.");
2354 std::vector<uint8_t>
2364 "Measurement identities and reporting configuration should not have different quantity");
2368 NS_FATAL_ERROR(
"AddUeMeasReportConfig may not be called after the simulation has run");
2380 "The given triggerQuantity (RSRP) does not match with the given threshold2.choice");
2390 "The given triggerQuantity (RSRP) does not match with the given threshold1.choice");
2399 "The given triggerQuantity (RSRQ) does not match with the given threshold2.choice");
2409 "The given triggerQuantity (RSRQ) does not match with the given threshold1.choice");
2420 NS_FATAL_ERROR(
"Only REPORT_STRONGEST_CELLS purpose is supported");
2425 NS_LOG_WARN(
"reportQuantity = BOTH will be used instead of the given reportQuantity");
2438 std::vector<uint8_t> measIds;
2448 measIdToAddMod.
measId = measId;
2453 measIds.push_back(measId);
2462 auto it = ccPhyConf.begin();
2464 uint16_t ulBandwidth = it->second->GetUlBandwidth();
2465 uint16_t dlBandwidth = it->second->GetDlBandwidth();
2466 uint32_t ulEarfcn = it->second->GetUlEarfcn();
2467 uint32_t dlEarfcn = it->second->GetDlEarfcn();
2468 NS_LOG_FUNCTION(
this << ulBandwidth << dlBandwidth << ulEarfcn << dlEarfcn);
2471 for (
const auto& it : ccPhyConf)
2474 it.second->GetDlBandwidth());
2476 it.second->GetDlEarfcn());
2479 it.second->GetDlBandwidth());
2484 it.second->GetDlBandwidth());
2498 for (
const auto& it : ccPhyConf)
2520 m_sib1.reserve(ccPhyConf.size());
2521 for (
const auto& it : ccPhyConf)
2555 m_sib1.at(0).cellAccessRelatedInfo.cellIdentity = cellId;
2563 m_sib1.at(ccIndex).cellAccessRelatedInfo.cellIdentity = cellId;
2573 if (it.second->GetCellId() == cellId)
2593 if (it.second->GetCellId() == cellId)
2607 NS_ASSERT_MSG(found,
"no EpsBearerTag found in packet to be sent");
2611 << ueManager->GetImsi() <<
", RNTI " << ueManager->GetRnti()
2612 <<
", BID " << (uint16_t)tag.
GetBid());
2613 ueManager->SendData(tag.
GetBid(), packet);
2629 "ConnectionRequestTimeout in unexpected state "
2634 "ConnectionRequestTimeout");
2643 "ConnectionSetupTimeout in unexpected state "
2648 "ConnectionSetupTimeout");
2657 "ConnectionRejectedTimeout in unexpected state "
2662 "ConnectionRejectedTimeout");
2671 "HandoverJoiningTimeout in unexpected state "
2699 "HandoverLeavingTimeout in unexpected state "
2716 ueManager->SendRrcConnectionRelease();
2728 ueManager->PrepareHandover(cellId);
2750 GetUeManager(rnti)->RecvRrcConnectionSetupCompleted(msg);
2759 GetUeManager(rnti)->RecvRrcConnectionReconfigurationCompleted(msg);
2768 GetUeManager(rnti)->RecvRrcConnectionReestablishmentRequest(msg);
2777 GetUeManager(rnti)->RecvRrcConnectionReestablishmentComplete(msg);
2792 ueManager->InitialContextSetupRequest();
2821 GetUeManager(rnti)->RecvIdealUeContextRemoveRequest(rnti);
2833 ueManager->SetupDataRadioBearer(request.
bearer,
2845 ueManager->SendUeContextRelease();
2869 res.criticalityDiagnostics = 0;
2885 <<
" failed to allocate a preamble for non-contention based RA => cannot accept HO");
2908 for (
auto it = req.
bearers.begin(); it != req.
bearers.end(); ++it)
2910 ueManager->SetupDataRadioBearer(it->erabLevelQosParameters,
2913 it->transportLayerAddress);
2920 ueManager->GetRrcConnectionReconfigurationForHandover(componentCarrierId);
2941 ackParams.
rrcContext = encodedHandoverCommand;
2965 uint16_t rnti =
params.oldEnbUeX2apId;
2967 ueManager->RecvHandoverRequestAck(
params);
2975 NS_LOG_LOGIC(
"Recv X2 message: HANDOVER PREPARATION FAILURE");
2983 uint16_t rnti =
params.oldEnbUeX2apId;
2989 ueManager->RecvHandoverPreparationFailure(
params.targetCellId);
3002 NS_LOG_LOGIC(
"erabsSubjectToStatusTransferList size = "
3003 <<
params.erabsSubjectToStatusTransferList.size());
3005 uint16_t rnti =
params.newEnbUeX2apId;
3011 ueManager->RecvSnStatusTransfer(
params);
3025 uint16_t rnti =
params.oldEnbUeX2apId;
3042 NS_LOG_LOGIC(
"Number of cellInformationItems = " <<
params.cellInformationList.size());
3053 NS_LOG_LOGIC(
"Recv X2 message: RESOURCE STATUS UPDATE");
3056 "Number of cellMeasurementResultItems = " <<
params.cellMeasurementResultList.size());
3058 NS_ASSERT(
"Processing of RESOURCE STATUS UPDATE X2 message IS NOT IMPLEMENTED");
3066 NS_LOG_LOGIC(
"Recv UE DATA FORWARDING through X2 interface");
3076 GetUeManager(teidInfoIt->second.rnti)->SendData(teidInfoIt->second.drbid,
params.ueData);
3097 uint16_t rnti =
params.newEnbUeX2apId;
3101 ueManager->RecvHandoverCancel(
params);
3102 GetUeManager(rnti)->RecvIdealUeContextRemoveRequest(rnti);
3113 NS_LOG_WARN(
"Not enough SRS configuration indices, UE context not created");
3123 ueManager->CmacUeConfigUpdateInd(cmacParams);
3133 std::vector<uint8_t>
3162 bool isHandoverAllowed =
true;
3165 NS_ASSERT_MSG(ueManager,
"Cannot find UE context with RNTI " << rnti);
3174 <<
" targetCellId=" << targetCellId <<
" NRT.NoHo=" << noHo
3175 <<
" NRT.NoX2=" << noX2);
3179 isHandoverAllowed =
false;
3180 NS_LOG_LOGIC(
this <<
" handover to cell " << targetCellId <<
" is not allowed by ANR");
3186 isHandoverAllowed =
false;
3187 NS_LOG_LOGIC(
this <<
" handover is not allowed because the UE"
3188 <<
" rnti=" << rnti <<
" is in " <<
ToString(ueManager->GetState())
3192 if (isHandoverAllowed)
3195 ueManager->PrepareHandover(targetCellId);
3223 ueManager->SetPdschConfigDedicated(pdschConfigDedicated);
3249 NS_ASSERT_MSG(found,
"no more RNTIs available (do you have more than 65535 UEs in a cell?)");
3251 Ptr<UeManager> ueManager = CreateObject<UeManager>(
this, rnti, state, componentCarrierId);
3254 ueManager->Initialize();
3256 NS_LOG_DEBUG(
this <<
" New UE RNTI " << rnti <<
" cellId " << cellId <<
" srs CI "
3257 << ueManager->GetSrsConfigurationIndex());
3268 uint64_t imsi = it->second->GetImsi();
3269 uint16_t srsCi = (*it).second->GetSrsConfigurationIndex();
3271 it->second->CancelPendingEvents();
3340 for (std::size_t componentCarrierId = 0; componentCarrierId <
m_sib1.size();
3341 componentCarrierId++)
3343 m_sib1.at(componentCarrierId).cellAccessRelatedInfo.csgIdentity = csgId;
3344 m_sib1.at(componentCarrierId).cellAccessRelatedInfo.csgIndication = csgIndication;
3346 ->SetSystemInformationBlockType1(
m_sib1.at(componentCarrierId));
3383 std::ostringstream allowedValues;
3389 <<
". Allowed values: " << allowedValues.str());
3414 <<
") for current SRS periodicity "
3416 <<
", consider increasing the value of ns3::LteEnbRrc::SrsPeriodicity");
3430 NS_LOG_DEBUG(
this <<
" lower bound " << (*rit) <<
" of "
3464 "request to remove unknown SRS CI " << srcCi);
3504 uint8_t ccId = it.first;
3537 switch (ueManager->GetState())
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.
void ConfigureCell(std::map< uint8_t, Ptr< ComponentCarrierBaseStation >> ccPhyConf)
Configure cell-specific parameters.
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 ...
void SetForwardUpCallback(Callback< void, Ptr< Packet >> cb)
set the callback used to forward data packets up the stack
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.
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.
void ConfigureCarriers(std::map< uint8_t, Ptr< ComponentCarrierBaseStation >> ccPhyConf)
Configure carriers.
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
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 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 Ptr< Packet > EncodeHandoverCommand(RrcConnectionReconfiguration msg)=0
Encode handover command.
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.
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,...
void SetPacketDelayBudgetMs(uint16_t packetDelayBudget)
void SetLteRlcSapUser(LteRlcSapUser *s)
void SetRnti(uint16_t rnti)
void SetLteMacSapProvider(LteMacSapProvider *s)
LteMacSapUser * GetLteMacSapUser()
void SetLcId(uint8_t lcId)
LteRlcSapProvider * GetLteRlcSapProvider()
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.
bool RemovePacketTag(Tag &tag)
Remove a packet tag.
uint32_t GetSize() const
Returns the the size in bytes of the packet (including the zero-filled initial payload).
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.
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...
#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.
Ptr< const AttributeChecker > MakeBooleanChecker()
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
static const std::string & ToString(EpcUeNas::State s)
Ptr< const AttributeAccessor > MakeIntegerAccessor(T1 a1)
ObjectPtrContainerValue ObjectMapValue
ObjectMapValue is an alias for ObjectPtrContainerValue.
Ptr< const AttributeChecker > MakeEnumChecker(T v, std::string n, Ts... args)
Make an EnumChecker pre-configured with a set of allowed values by name.
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range.
constexpr uint32_t MIN_NO_CC
Minimum number of carrier components allowed by 3GPP up to R13.
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
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...
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
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 AttributeAccessor > MakeObjectMapAccessor(U T::*memberVariable)
MakeAccessorHelper implementation for ObjectVector.
params
Fit Fluctuating Two Ray model to the 3GPP TR 38.901 using the Anderson-Darling goodness-of-fit ##.
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
Parameters for [re]configuring the UE.
uint16_t m_rnti
UE id within this cell.
uint8_t m_transmissionMode
Transmission mode 1..7
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.
uint32_t dlCarrierFreq
ARFCN - valueEUTRA.
uint32_t physCellId
physical cell ID
int8_t qRxLevMin
INTEGER (-70..-22), actual value = IE value * 2 [dBm].
int8_t qQualMin
INTEGER (-34..-3), actual value = IE value [dB].
uint8_t epsBearerIdentity
EPS bearer identity.
RlcConfig rlcConfig
RLC config.
uint8_t logicalChannelIdentity
logical channel identify
uint8_t drbIdentity
DRB identity.
LogicalChannelConfig logicalChannelConfig
logical channel config
uint32_t ulCarrierFreq
UL carrier frequency.
uint16_t ulBandwidth
UL bandwidth.
HandoverPreparationInfo structure.
AsConfig asConfig
AS config.
std::list< MeasObjectToAddMod > measObjectToAddModList
measure object to add mod list
bool haveMeasGapConfig
have measure gap config?
QuantityConfig quantityConfig
quantity config
bool haveSmeasure
have S measure?
bool haveSpeedStatePars
have speed state parameters?
std::list< ReportConfigToAddMod > reportConfigToAddModList
report config to add mod list
std::list< MeasIdToAddMod > measIdToAddModList
measure ID to add mod list
bool haveQuantityConfig
have quantity config?
MeasIdToAddMod structure.
uint8_t measObjectId
measure object ID
uint8_t reportConfigId
report config ID
bool haveCellForWhichToReportCGI
have cell for which to report CGI?
uint16_t allowedMeasBandwidth
allowed measure bandwidth
int8_t offsetFreq
offset frequency
uint8_t neighCellConfig
neighbor cell config
bool presenceAntennaPort1
antenna port 1 present?
uint32_t carrierFreq
carrier frequency
MeasObjectToAddMod structure.
uint8_t measObjectId
measure object ID
MeasObjectEutra measObjectEutra
measure object eutra
uint8_t rsrqResult
the RSRQ result
uint8_t rsrpResult
the RSRP result
bool haveMeasResultNeighCells
have measure result neighbor cells
std::list< MeasResultEutra > measResultListEutra
measure result list eutra
bool haveMeasResultServFreqList
has measResultServFreqList-r10
std::list< MeasResultServFreq > measResultServFreqList
MeasResultServFreqList-r10.
MeasResultPCell measResultPCell
measurement result primary cell
MeasurementReport structure.
MeasResults measResults
measure results
RadioResourceConfigCommon radioResourceConfigCommon
radio resource config common
RachConfigDedicated rachConfigDedicated
RACH config dedicated.
bool haveRachConfigDedicated
Have RACH config dedicated?
uint16_t newUeIdentity
new UE identity
bool haveCarrierBandwidth
have carrier bandwidth?
bool haveCarrierFreq
have carrier frequency?
CarrierBandwidthEutra carrierBandwidth
carrier bandwidth
CarrierFreqEutra carrierFreq
carrier frequency
uint16_t targetPhysCellId
target Phy cell ID
NonCriticalExtensionConfiguration structure.
std::list< uint8_t > sCellToReleaseList
SCell to release list.
std::list< SCellToAddMod > sCellToAddModList
SCell to add mod list.
AntennaInfoCommon antennaInfoCommon
2: Physical configuration, general antennaInfoCommon-r10
PdschConfigCommon pdschConfigCommon
4: Physical configuration, physical channels pdsch-ConfigCommon-r10
uint16_t dlBandwidth
1: Cell characteristics
int8_t referenceSignalPower
INTEGER (-60..50),.
int8_t pb
INTEGER (0..3),.
PdschConfigDedicated structure.
PdschConfigDedicated pdschConfigDedicated
PDSCH config dedicated.
bool haveAntennaInfoDedicated
have antenna info dedicated?
SoundingRsUlConfigDedicated soundingRsUlConfigDedicated
sounding RS UL config dedicated
bool haveSoundingRsUlConfigDedicated
have sounding RS UL config dedicated?
bool havePdschConfigDedicated
have PDSCH config dedicated?
AntennaInfoDedicated antennaInfo
antenna info
PuschConfigDedicatedSCell pushConfigDedicatedSCell
PUSCH config dedicated SCell.
AntennaInfoDedicated antennaInfoUl
antenna info UL
SoundingRsUlConfigDedicated soundingRsUlConfigDedicated
sounding RS UL config dedicated
PdschConfigDedicated pdschConfigDedicated
PDSCH config dedicated.
bool haveSoundingRsUlConfigDedicated
have sounding RS UL config dedicated?
bool haveUlConfiguration
have UL configuration?
bool haveAntennaInfoUlDedicated
have antenna info UL dedicated?
bool havePdschConfigDedicated
have PDSCH config dedicated?
bool crossCarrierSchedulingConfig
currently implemented as boolean variable --> implementing crossCarrierScheduling is out of the scope...
bool haveNonUlConfiguration
have non UL configuration?
AntennaInfoDedicated antennaInfo
antenna info dedicated
bool haveAntennaInfoDedicated
have antenna info dedicated?
UlPowerControlDedicatedSCell ulPowerControlDedicatedSCell
UL power control dedicated SCell.
uint32_t plmnIdentity
PLMN identity.
uint8_t numberOfRaPreambles
number of RA preambles
uint16_t nPuschIdentity
3GPP TS 36.331 v.11.10 R11 page 216
uint8_t filterCoefficientRSRQ
filter coefficient RSRQ
uint8_t filterCoefficientRSRP
filter coefficient RSRP
uint8_t raResponseWindowSize
RA response window size.
uint8_t preambleTransMax
preamble transmit maximum
RachConfigCommon structure.
TxFailParam txFailParam
txFailParams
PreambleInfo preambleInfo
preamble info
RaSupervisionInfo raSupervisionInfo
RA supervision info.
uint8_t raPreambleIndex
RA preamble index.
uint8_t raPrachMaskIndex
RA PRACH mask index.
RachConfigCommon rachConfigCommon
RACH config common.
NonUlConfiguration nonUlConfiguration
non UL configuration
bool haveUlConfiguration
have UL configuration
bool haveNonUlConfiguration
have non UL configuration?
UlConfiguration ulConfiguration
UL configuration.
RachConfigCommon rachConfigCommon
RACH config common.
PdschConfigCommon pdschConfigCommon
PDSCH config common.
RadioResourceConfigDedicated structure.
PhysicalConfigDedicated physicalConfigDedicated
physical config dedicated
std::list< uint8_t > drbToReleaseList
DRB to release list.
bool havePhysicalConfigDedicated
have physical config dedicated?
std::list< DrbToAddMod > drbToAddModList
DRB to add mod list.
std::list< SrbToAddMod > srbToAddModList
SRB to add mod list.
PhysicalConfigDedicatedSCell physicalConfigDedicatedSCell
physical config dedicated SCell
Specifies criteria for triggering of an E-UTRA measurement reporting event.
@ BOTH
Both the RSRP and RSRQ quantities are to be included in the measurement report.
ThresholdEutra threshold2
Threshold for event A5.
enum ns3::LteRrcSap::ReportConfigEutra::@66 reportQuantity
Report type enumeration.
enum ns3::LteRrcSap::ReportConfigEutra::@64 eventId
Event enumeration.
@ EVENT_A2
Event A2: Serving becomes worse than absolute threshold.
@ EVENT_A4
Event A4: Neighbour becomes better than absolute threshold.
@ EVENT_A1
Event A1: Serving becomes better than absolute threshold.
@ EVENT_A5
Event A5: PCell becomes worse than absolute threshold1 AND Neighbour becomes better than another abso...
ThresholdEutra threshold1
Threshold for event A1, A2, A4, and A5.
enum ns3::LteRrcSap::ReportConfigEutra::@65 triggerQuantity
Trigger type enumeration.
@ RSRP
Reference Signal Received Power.
@ RSRQ
Reference Signal Received Quality.
ReportConfigToAddMod structure.
uint8_t reportConfigId
report config ID
ReportConfigEutra reportConfigEutra
report config eutra
RrcConnectionReconfigurationCompleted structure.
RrcConnectionReconfiguration structure.
uint8_t rrcTransactionIdentifier
RRC transaction identifier.
bool haveMobilityControlInfo
have mobility control info
NonCriticalExtensionConfiguration nonCriticalExtension
3GPP TS 36.331 v.11.10 R11 Sec.
bool haveRadioResourceConfigDedicated
have radio resource config dedicated
RadioResourceConfigDedicated radioResourceConfigDedicated
radio resource config dedicated
bool haveNonCriticalExtension
have critical extension?
MeasConfig measConfig
measure config
bool haveMeasConfig
have measure config
MobilityControlInfo mobilityControlInfo
mobility control info
RrcConnectionReestablishmentComplete structure.
RrcConnectionReestablishment structure.
RadioResourceConfigDedicated radioResourceConfigDedicated
radio resource config dedicated
uint8_t rrcTransactionIdentifier
RRC transaction identifier.
RrcConnectionReestablishmentRequest structure.
RrcConnectionReject structure.
uint8_t waitTime
wait time
RrcConnectionRelease structure.
uint8_t rrcTransactionIdentifier
RRC transaction identifier.
RrcConnectionRequest structure.
uint64_t ueIdentity
UE identity.
RrcConnectionSetupCompleted structure.
RrcConnectionSetup structure.
uint8_t rrcTransactionIdentifier
RRC transaction identifier.
RadioResourceConfigDedicated radioResourceConfigDedicated
radio resource config dedicated
RadioResourceConfigDedicatedSCell radioResourceConfigDedicatedSCell
radio resource config dedicated SCell
uint32_t sCellIndex
SCell index.
bool haveRadioResourceConfigDedicatedSCell
have radio resource config dedicated SCell?
CellIdentification cellIdentification
cell identification
RadioResourceConfigCommonSCell radioResourceConfigCommonSCell
radio resource config common SCell
uint8_t srsSubframeConfig
SRS subframe config.
uint16_t srsBandwidthConfig
SRS bandwidth config.
uint16_t srsConfigIndex
SRS config index.
uint16_t srsBandwidth
SRS bandwidth.
LogicalChannelConfig logicalChannelConfig
logical channel config
uint8_t srbIdentity
SB identity.
enum ns3::LteRrcSap::ThresholdEutra::@62 choice
Threshold enumeration.
@ THRESHOLD_RSRP
RSRP is used for the threshold.
@ THRESHOLD_RSRQ
RSRQ is used for the threshold.
uint8_t connEstFailCount
Number of times that the UE detects T300 expiry on the same cell.
UlPowerControlCommonSCell ulPowerControlCommonSCell
3GPP TS 36.331 v.11.10 R11 pag.223
FreqInfo ulFreqInfo
UL frequency info.
SoundingRsUlConfigCommon soundingRsUlConfigCommon
sounding RS UL config common
PrachConfigSCell prachConfigSCell
PRACH config SCell.
uint16_t alpha
alpha value
uint16_t pSrsOffset
3GPP TS 36.331 v.11.10 R11 page 234