29#include <ns3/fatal-error.h>
31#include <ns3/object-factory.h>
32#include <ns3/object-map.h>
33#include <ns3/packet.h>
34#include <ns3/pointer.h>
35#include <ns3/simulator.h>
71 uint8_t componentCarrierId)
73 m_componentCarrierId{componentCarrierId}
113 : m_lastAllocatedDrbid(0),
116 m_componentCarrierId(componentCarrierId),
117 m_lastRrcTransactionIdentifier(0),
120 m_pendingRrcConnectionReconfiguration(false),
123 m_needPhyMacConfiguration(false),
124 m_caSupportConfigured(false),
125 m_pendingStartDataRadioBearers(false)
140 m_rrc->GetNewSrsConfigurationIndex();
147 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
158 rlc->SetLteMacSapProvider(
m_rrc->m_macSapProvider);
164 m_srb0->m_srbIdentity = 0;
183 m_rrc->m_ccmRrcSapProvider->ConfigureSignalBearer(lcinfo, rlc->GetLteMacSapUser());
186 m_rrc->m_ccmRrcSapProvider->AddLc(lcinfo, lteMacSapUser);
194 rlc->SetLteMacSapProvider(
m_rrc->m_macSapProvider);
202 pdcp->SetLteRlcSapProvider(rlc->GetLteRlcSapProvider());
203 rlc->SetLteRlcSapUser(pdcp->GetLteRlcSapUser());
208 m_srb1->m_srbIdentity = 1;
209 m_srb1->m_logicalChannelConfig.priority = 1;
210 m_srb1->m_logicalChannelConfig.prioritizedBitRateKbps = 100;
211 m_srb1->m_logicalChannelConfig.bucketSizeDurationMs = 100;
212 m_srb1->m_logicalChannelConfig.logicalChannelGroup = 0;
227 m_rrc->m_ccmRrcSapProvider->ConfigureSignalBearer(lcinfo, rlc->GetLteMacSapUser());
230 m_rrc->m_ccmRrcSapProvider->AddLc(lcinfo, MacSapUserForRlc);
244 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
246 m_rrc->m_cmacSapProvider.at(i)->UeUpdateConfigurationReq(req);
247 m_rrc->m_cphySapProvider.at(i)->SetTransmissionMode(
250 m_rrc->m_cphySapProvider.at(i)->SetSrsConfigurationIndex(
256 Time maxConnectionDelay;
291 m_rrc->m_x2uTeidInfoMap.erase(it->second->m_gtpTeid);
301 .AddConstructor<UeManager>()
302 .AddAttribute(
"DataRadioBearerMap",
303 "List of UE DataRadioBearerInfo by DRBID.",
307 .AddAttribute(
"Srb0",
308 "SignalingRadioBearerInfo for SRB0",
312 .AddAttribute(
"Srb1",
313 "SignalingRadioBearerInfo for SRB1",
317 .AddAttribute(
"C-RNTI",
318 "Cell Radio Network Temporary Identifier",
323 .AddTraceSource(
"StateTransition",
324 "fired upon every UE state transition seen by the "
325 "UeManager at the eNB RRC",
327 "ns3::UeManager::StateTracedCallback")
328 .AddTraceSource(
"DrbCreated",
329 "trace fired after DRB is created",
331 "ns3::UeManager::ImsiCidRntiLcIdTracedCallback");
377 <<
", the assumption that ID are allocated in the same "
378 "way by MME and RRC is not valid any more");
379 drbInfo->m_epsBearer = bearer;
380 drbInfo->m_epsBearerIdentity = bid;
381 drbInfo->m_drbIdentity = drbid;
382 drbInfo->m_logicalChannelIdentity = lcid;
383 drbInfo->m_gtpTeid = gtpTeid;
384 drbInfo->m_transportLayerAddress = transportLayerAddress;
391 x2uTeidInfo.
drbid = drbid;
392 auto ret =
m_rrc->m_x2uTeidInfoMap.insert(
393 std::pair<uint32_t, LteEnbRrc::X2uTeidInfo>(gtpTeid, x2uTeidInfo));
394 NS_ASSERT_MSG(ret.second ==
true,
"overwriting a pre-existing entry in m_x2uTeidInfoMap");
402 rlc->SetLteMacSapProvider(
m_rrc->m_macSapProvider);
406 drbInfo->m_rlc = rlc;
418 pdcp->SetLteRlcSapProvider(rlc->GetLteRlcSapProvider());
419 rlc->SetLteRlcSapUser(pdcp->GetLteRlcSapUser());
420 drbInfo->m_pdcp = pdcp;
425 std::vector<LteCcmRrcSapProvider::LcsConfig> lcOnCcMapping =
426 m_rrc->m_ccmRrcSapProvider->SetupDataRadioBearer(bearer,
430 m_rrc->GetLogicalChannelGroup(bearer),
431 rlc->GetLteMacSapUser());
444 auto itLcOnCcMapping = lcOnCcMapping.begin();
445 NS_ASSERT_MSG(itLcOnCcMapping != lcOnCcMapping.end(),
"Problem");
446 for (itLcOnCcMapping = lcOnCcMapping.begin(); itLcOnCcMapping != lcOnCcMapping.end();
449 NS_LOG_DEBUG(
this <<
" RNTI " << itLcOnCcMapping->lc.rnti <<
"Lcid "
450 << (uint16_t)itLcOnCcMapping->lc.lcId <<
" lcGroup "
451 << (uint16_t)itLcOnCcMapping->lc.lcGroup <<
" ComponentCarrierId "
452 << itLcOnCcMapping->componentCarrierId);
453 uint8_t index = itLcOnCcMapping->componentCarrierId;
456 m_rrc->m_cmacSapProvider.at(index)->AddLc(lcinfo, msu);
457 m_rrc->m_ccmRrcSapProvider->AddLc(lcinfo, msu);
469 drbInfo->m_logicalChannelIdentity = lcid;
470 drbInfo->m_logicalChannelConfig.priority =
m_rrc->GetLogicalChannelPriority(bearer);
471 drbInfo->m_logicalChannelConfig.logicalChannelGroup =
m_rrc->GetLogicalChannelGroup(bearer);
474 drbInfo->m_logicalChannelConfig.prioritizedBitRateKbps = bearer.
gbrQosInfo.
gbrUl;
478 drbInfo->m_logicalChannelConfig.prioritizedBitRateKbps = 0;
480 drbInfo->m_logicalChannelConfig.bucketSizeDurationMs = 1000;
501 auto drbIt =
m_drbMap.find(*drbIdIt);
503 drbIt->second->m_rlc->Initialize();
504 if (drbIt->second->m_pdcp)
506 drbIt->second->m_pdcp->Initialize();
519 "request to remove radio bearer with unknown drbid " << drbid);
522 m_rrc->m_x2uTeidInfoMap.erase(it->second->m_gtpTeid);
525 std::vector<uint8_t> ccToRelease =
526 m_rrc->m_ccmRrcSapProvider->ReleaseDataRadioBearer(
m_rnti, lcid);
527 auto itCcToRelease = ccToRelease.begin();
529 "request to remove radio bearer with unknown drbid (ComponentCarrierManager)");
530 for (itCcToRelease = ccToRelease.begin(); itCcToRelease != ccToRelease.end(); ++itCcToRelease)
532 m_rrc->m_cmacSapProvider.at(*itCcToRelease)->ReleaseLc(
m_rnti, lcid);
545 msg.haveMobilityControlInfo =
false;
546 msg.radioResourceConfigDedicated = rrcd;
547 msg.haveRadioResourceConfigDedicated =
true;
550 msg.haveNonCriticalExtension =
false;
552 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration(
m_rnti, msg);
565 ueManager->ReleaseDataRadioBearer(bearerId);
577 if (
m_rrc->m_s1SapProvider !=
nullptr)
582 << (uint16_t)(it.first)
583 <<
"LCID : " << (uint16_t)(it.second->m_logicalChannelIdentity));
585 m_rrc->m_s1SapProvider->DoSendReleaseIndication(
GetImsi(), rnti, it.first);
611 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration(
m_rnti, msg);
636 if (
m_rrc->HasCellId(cellId))
639 NS_LOG_DEBUG(
"Intra-eNB handover for cellId " << cellId);
640 uint8_t componentCarrierId =
m_rrc->CellToComponentCarrierId(cellId);
643 m_rrc->m_cmacSapProvider.at(componentCarrierId)->AllocateNcRaPreamble(rnti);
646 NS_LOG_INFO(
this <<
" failed to allocate a preamble for non-contention based RA => "
647 "cannot perform HO");
648 NS_FATAL_ERROR(
"should trigger HO Preparation Failure, but it is not implemented");
653 ueManager->SetSource(sourceComponentCarrier->GetCellId(),
m_rnti);
654 ueManager->SetImsi(
m_imsi);
659 ueManager->SetupDataRadioBearer(it.second->m_epsBearer,
660 it.second->m_epsBearerIdentity,
661 it.second->m_gtpTeid,
662 it.second->m_transportLayerAddress);
676 m_rrc->m_cmacSapProvider.at(componentCarrierId)->GetRachConfig();
684 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration(
m_rnti, handoverCommand);
693 sourceComponentCarrier->GetCellId(),
700 NS_LOG_DEBUG(
"Inter-eNB handover (i.e., X2) for cellId " << cellId);
702 params.oldEnbUeX2apId =
m_rnti;
705 params.targetCellId = cellId;
706 params.mmeUeS1apId =
m_imsi;
707 params.ueAggregateMaxBitRateDownlink = 200 * 1000;
708 params.ueAggregateMaxBitRateUplink = 100 * 1000;
718 sourceComponentCarrier->GetDlBandwidth();
722 .cellAccessRelatedInfo.plmnIdentityInfo.plmnIdentity;
740 sourceComponentCarrier->GetUlEarfcn();
742 sourceComponentCarrier->GetUlBandwidth();
743 params.rrcContext =
m_rrc->m_rrcSapUser->EncodeHandoverPreparationInformation(hpi);
745 NS_LOG_LOGIC(
"oldEnbUeX2apId = " << params.oldEnbUeX2apId);
751 m_rrc->m_x2SapProvider->SendHandoverRequest(params);
769 "not admission of some bearers upon handover is not supported");
771 "not enough bearers in admittedBearers");
779 Ptr<Packet> encodedHandoverCommand = params.rrcContext;
781 m_rrc->m_rrcSapUser->DecodeHandoverCommand(encodedHandoverCommand);
787 m_rrc->m_numberOfComponentCarriers)
791 NS_FATAL_ERROR(
"The source and target eNBs have unequal number of component carriers. "
794 <<
" Source eNB CCs = " <<
m_rrc->m_numberOfComponentCarriers);
797 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration(
m_rnti, handoverCommand);
821 if (drbIt->second->m_rlc->GetObject<
LteRlcAm>())
830 m_rrc->m_x2SapProvider->SendSnStatusTransfer(sst);
847 auto targetComponentCarrier =
856 targetComponentCarrier->GetDlBandwidth();
858 targetComponentCarrier->GetUlBandwidth();
865 for (
auto& it :
m_rrc->m_componentCarrierPhyConf)
867 uint8_t ccId = it.first;
928 NS_LOG_INFO(
"queueing data on PDCP for transmission over the air");
941 NS_LOG_INFO(
"forwarding data to target eNB over X2-U");
948 m_rrc->m_x2SapProvider->SendUeData(params);
958std::vector<EpcX2Sap::ErabToBeSetupItem>
962 std::vector<EpcX2Sap::ErabToBeSetupItem> ret;
966 etbsi.
erabId = it->second->m_epsBearerIdentity;
970 etbsi.
gtpTeid = it->second->m_gtpTeid;
971 ret.push_back(etbsi);
983 NS_LOG_INFO(
"Send UE CONTEXT RELEASE from target eNB to source eNB");
991 m_rrc->m_x2SapProvider->SendUeContextRelease(ueCtxReleaseParams);
995 NS_LOG_INFO(
"Not sending UE CONTEXT RELEASE because handover is internal");
996 m_rrc->DoRecvUeContextRelease(ueCtxReleaseParams);
1018 NS_LOG_INFO(
"target eNB sent HO preparation failure, aborting HO");
1023 NS_LOG_INFO(
"target eNB sent HO preparation failure, aborting HO");
1038 for (
auto erabIt = params.erabsSubjectToStatusTransferList.begin();
1039 erabIt != params.erabsSubjectToStatusTransferList.end();
1076 m_rrc->m_rrcSapUser->SendRrcConnectionRelease(m_rnti, msg);
1092 m_srb0->m_rlc->SetLteRlcSapUser(params.srb0SapUser);
1093 m_srb1->m_pdcp->SetLtePdcpSapUser(params.srb1SapUser);
1105 if (
m_rrc->m_admitRrcConnectionRequest)
1113 m_rrc->m_rrcSapUser->SendRrcConnectionSetup(
m_rnti, msg2);
1129 m_rrc->m_rrcSapUser->SendRrcConnectionReject(
m_rnti, rejectMsg);
1161 if (
m_rrc->m_s1SapProvider !=
nullptr)
1196 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
1198 m_rrc->m_cmacSapProvider.at(i)->UeUpdateConfigurationReq(req);
1201 m_rrc->m_cphySapProvider.at(i)->SetTransmissionMode(req.
m_rnti,
1205 m_rrc->m_cphySapProvider.at(i)->SetPa(
m_rnti, paDouble);
1211 m_rrc->m_connectionReconfigurationTrace(
1220 NS_LOG_INFO(
"ignoring RecvRrcConnectionReconfigurationCompleted in state " <<
m_state);
1224 NS_LOG_INFO(
"ignoring RecvRrcConnectionReconfigurationCompleted in state " <<
m_state);
1233 std::pair<uint8_t, Ptr<Packet>> bidPacket =
m_packetBuffer.front();
1234 uint8_t bid = bidPacket.first;
1237 NS_LOG_LOGIC(
"queueing data on PDCP for transmission over the air");
1243 NS_LOG_INFO(
"Send PATH SWITCH REQUEST to the MME");
1247 params.mmeUeS1Id =
m_imsi;
1253 b.
teid = it->second->m_gtpTeid;
1254 params.bearersToBeSwitched.push_back(b);
1256 m_rrc->m_s1SapProvider->PathSwitchRequest(params);
1288 m_rrc->m_rrcSapUser->SendRrcConnectionReestablishment(
m_rnti, msg2);
1306 "measId " << (uint16_t)measId <<
" haveMeasResultNeighCells "
1320 NS_LOG_LOGIC(
"neighbour cellId " << it->physCellId <<
" RSRP "
1321 << (it->haveRsrpResult ? (uint16_t)it->rsrpResult : 255)
1323 << (it->haveRsrqResult ? (uint16_t)it->rsrqResult : 255));
1326 if ((
m_rrc->m_handoverManagementSapProvider !=
nullptr) &&
1327 (
m_rrc->m_handoverMeasIds.find(measId) !=
m_rrc->m_handoverMeasIds.end()))
1333 if ((
m_rrc->m_ccmRrcSapProvider !=
nullptr) &&
1334 (
m_rrc->m_componentCarrierMeasIds.find(measId) !=
m_rrc->m_componentCarrierMeasIds.end()))
1340 if ((
m_rrc->m_anrSapProvider !=
nullptr) &&
1341 (
m_rrc->m_anrMeasIds.find(measId) !=
m_rrc->m_anrMeasIds.end()))
1347 if ((!
m_rrc->m_ffrRrcSapProvider.empty()) &&
1348 (
m_rrc->m_ffrMeasIds.find(measId) !=
m_rrc->m_ffrMeasIds.end()))
1397 if (params.lcid > 2)
1403 params.pdcpSdu->AddPacketTag(tag);
1404 m_rrc->m_forwardUpCallback(params.pdcpSdu);
1437 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
1439 m_rrc->m_cphySapProvider.at(i)->SetSrsConfigurationIndex(
m_rnti, srsConfIndex);
1492 res.criticalityDiagnostics = 0;
1502 res.oldEnbUeX2apId =
m_rnti;
1515 const uint8_t MAX_DRB_ID = 32;
1517 drbid = (drbid + 1) % MAX_DRB_ID)
1524 drbInfo->m_drbIdentity = drbid;
1550 "request to remove radio bearer with unknown drbid " << drbid);
1560 msg.haveRadioResourceConfigDedicated =
true;
1562 msg.haveMobilityControlInfo =
false;
1563 msg.haveMeasConfig =
true;
1564 msg.measConfig =
m_rrc->m_ueMeasConfig;
1569 msg.haveNonCriticalExtension =
true;
1571 NS_LOG_FUNCTION(
this <<
" haveNonCriticalExtension " << msg.haveNonCriticalExtension);
1575 msg.haveNonCriticalExtension =
false;
1600 dtam.
rlcConfig = it->second->m_rlcConfig;
1665 <<
" --> " << newState);
1709 for (
auto& it :
m_rrc->m_componentCarrierPhyConf)
1711 uint8_t ccId = it.first;
1731 eNbCcm->GetDlBandwidth();
1739 eNbCcm->GetUlEarfcn();
1741 eNbCcm->GetUlBandwidth();
1797 : m_x2SapProvider(nullptr),
1798 m_cmacSapProvider(0),
1799 m_handoverManagementSapProvider(nullptr),
1800 m_ccmRrcSapProvider(nullptr),
1801 m_anrSapProvider(nullptr),
1802 m_ffrRrcSapProvider(0),
1803 m_rrcSapUser(nullptr),
1804 m_macSapProvider(nullptr),
1805 m_s1SapProvider(nullptr),
1806 m_cphySapProvider(0),
1807 m_configured(false),
1808 m_lastAllocatedRnti(0),
1809 m_srsCurrentPeriodicityId(0),
1810 m_lastAllocatedConfigurationIndex(0),
1811 m_reconfigureUes(false),
1812 m_numberOfComponentCarriers(0),
1813 m_carriersConfigured(false)
1833 " Number of component carriers "
1834 "are not equal to the number of he component carrier configuration provided");
1885 .SetGroupName(
"Lte")
1887 .AddAttribute(
"UeMap",
1888 "List of UeManager by C-RNTI.",
1892 .AddAttribute(
"DefaultTransmissionMode",
1893 "The default UEs' transmission mode (0: SISO)",
1898 "EpsBearerToRlcMapping",
1899 "Specify which type of RLC will be used for each type of EPS bearer.",
1909 "PacketErrorRateBased"))
1910 .AddAttribute(
"SystemInformationPeriodicity",
1911 "The interval for sending system information (Time value)",
1919 "The SRS periodicity in milliseconds",
1925 .AddAttribute(
"ConnectionRequestTimeoutDuration",
1926 "After a RA attempt, if no RRC CONNECTION REQUEST is "
1927 "received before this time, the UE context is destroyed. "
1928 "Must account for reception of RAR and transmission of "
1929 "RRC CONNECTION REQUEST over UL GRANT. The value of this"
1930 "timer should not be greater than T300 timer at UE RRC",
1934 .AddAttribute(
"ConnectionSetupTimeoutDuration",
1935 "After accepting connection request, if no RRC CONNECTION "
1936 "SETUP COMPLETE is received before this time, the UE "
1937 "context is destroyed. Must account for the UE's reception "
1938 "of RRC CONNECTION SETUP and transmission of RRC CONNECTION "
1943 .AddAttribute(
"ConnectionRejectedTimeoutDuration",
1944 "Time to wait between sending a RRC CONNECTION REJECT and "
1945 "destroying the UE context",
1949 .AddAttribute(
"HandoverJoiningTimeoutDuration",
1950 "After accepting a handover request, if no RRC CONNECTION "
1951 "RECONFIGURATION COMPLETE is received before this time, the "
1952 "UE context is destroyed. Must account for reception of "
1953 "X2 HO REQ ACK by source eNB, transmission of the Handover "
1954 "Command, non-contention-based random access and reception "
1955 "of the RRC CONNECTION RECONFIGURATION COMPLETE message.",
1959 .AddAttribute(
"HandoverLeavingTimeoutDuration",
1960 "After issuing a Handover Command, if neither RRC "
1961 "CONNECTION RE-ESTABLISHMENT nor X2 UE Context Release has "
1962 "been previously received, the UE context is destroyed.",
1968 .AddAttribute(
"QRxLevMin",
1969 "One of information transmitted within the SIB1 message, "
1970 "indicating the required minimum RSRP level that any UE must "
1971 "receive from this cell before it is allowed to camp to this "
1972 "cell. The default value -70 corresponds to -140 dBm and is "
1973 "the lowest possible value as defined by Section 6.3.4 of "
1974 "3GPP TS 36.133. This restriction, however, only applies to "
1975 "initial cell selection and EPC-enabled simulation.",
1980 .AddAttribute(
"NumberOfComponentCarriers",
1981 "Number of Component Carriers",
1987 .AddAttribute(
"AdmitHandoverRequest",
1988 "Whether to admit an X2 handover request from another eNB",
1992 .AddAttribute(
"AdmitRrcConnectionRequest",
1993 "Whether to admit a connection request from a UE",
1999 .AddAttribute(
"RsrpFilterCoefficient",
2000 "Determines the strength of smoothing effect induced by "
2001 "layer 3 filtering of RSRP in all attached UE; "
2002 "if set to 0, no layer 3 filtering is applicable",
2007 .AddAttribute(
"RsrqFilterCoefficient",
2008 "Determines the strength of smoothing effect induced by "
2009 "layer 3 filtering of RSRQ in all attached UE; "
2010 "if set to 0, no layer 3 filtering is applicable",
2017 .AddTraceSource(
"NewUeContext",
2018 "Fired upon creation of a new UE context.",
2020 "ns3::LteEnbRrc::NewUeContextTracedCallback")
2021 .AddTraceSource(
"ConnectionEstablished",
2022 "Fired upon successful RRC connection establishment.",
2024 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
2025 .AddTraceSource(
"ConnectionReconfiguration",
2026 "trace fired upon RRC connection reconfiguration",
2028 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
2029 .AddTraceSource(
"HandoverStart",
2030 "trace fired upon start of a handover procedure",
2032 "ns3::LteEnbRrc::HandoverStartTracedCallback")
2033 .AddTraceSource(
"HandoverEndOk",
2034 "trace fired upon successful termination of a handover procedure",
2036 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
2037 .AddTraceSource(
"RecvMeasurementReport",
2038 "trace fired when measurement report is received",
2040 "ns3::LteEnbRrc::ReceiveReportTracedCallback")
2041 .AddTraceSource(
"NotifyConnectionRelease",
2042 "trace fired when an UE is released",
2044 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
2045 .AddTraceSource(
"RrcTimeout",
2046 "trace fired when a timer expires",
2048 "ns3::LteEnbRrc::TimerExpiryTracedCallback")
2050 "HandoverFailureNoPreamble",
2051 "trace fired upon handover failure due to non-allocation of non-contention based "
2052 "preamble at eNB for UE to handover due to max count reached",
2054 "ns3::LteEnbRrc::HandoverFailureTracedCallback")
2056 "HandoverFailureMaxRach",
2057 "trace fired upon handover failure due to max RACH attempts from UE to target eNB",
2059 "ns3::LteEnbRrc::HandoverFailureTracedCallback")
2061 "HandoverFailureLeaving",
2062 "trace fired upon handover failure due to handover leaving timeout at source eNB",
2064 "ns3::LteEnbRrc::HandoverFailureTracedCallback")
2066 "HandoverFailureJoining",
2067 "trace fired upon handover failure due to handover joining timeout at target eNB",
2069 "ns3::LteEnbRrc::HandoverFailureTracedCallback");
2191 "You meant to store the pointer at position "
2192 <<
static_cast<uint32_t>(index) <<
" but it went to "
2209 "Invalid component carrier index:"
2210 << index <<
" provided in order to obtain FfrRrcSapUser.");
2318 "Measurement identities and reporting configuration should not have different quantity");
2322 NS_FATAL_ERROR(
"AddUeMeasReportConfig may not be called after the simulation has run");
2334 "The given triggerQuantity (RSRP) does not match with the given threshold2.choice");
2344 "The given triggerQuantity (RSRP) does not match with the given threshold1.choice");
2353 "The given triggerQuantity (RSRQ) does not match with the given threshold2.choice");
2363 "The given triggerQuantity (RSRQ) does not match with the given threshold1.choice");
2374 NS_FATAL_ERROR(
"Only REPORT_STRONGEST_CELLS purpose is supported");
2379 NS_LOG_WARN(
"reportQuantity = BOTH will be used instead of the given reportQuantity");
2392 std::vector<uint8_t> measIds;
2402 measIdToAddMod.
measId = measId;
2407 measIds.push_back(measId);
2416 auto it = ccPhyConf.begin();
2418 uint16_t ulBandwidth = it->second->GetUlBandwidth();
2419 uint16_t dlBandwidth = it->second->GetDlBandwidth();
2420 uint32_t ulEarfcn = it->second->GetUlEarfcn();
2421 uint32_t dlEarfcn = it->second->GetDlEarfcn();
2422 NS_LOG_FUNCTION(
this << ulBandwidth << dlBandwidth << ulEarfcn << dlEarfcn);
2425 for (
const auto& it : ccPhyConf)
2428 it.second->GetDlBandwidth());
2430 it.second->GetDlEarfcn());
2433 it.second->GetDlBandwidth());
2438 it.second->GetDlBandwidth());
2452 for (
const auto& it : ccPhyConf)
2474 m_sib1.reserve(ccPhyConf.size());
2475 for (
const auto& it : ccPhyConf)
2509 m_sib1.at(0).cellAccessRelatedInfo.cellIdentity = cellId;
2517 m_sib1.at(ccIndex).cellAccessRelatedInfo.cellIdentity = cellId;
2527 if (it.second->GetCellId() == cellId)
2547 if (it.second->GetCellId() == cellId)
2560 bool found = packet->RemovePacketTag(tag);
2561 NS_ASSERT_MSG(found,
"no EpsBearerTag found in packet to be sent");
2564 NS_LOG_INFO(
"Sending a packet of " << packet->GetSize() <<
" bytes to IMSI "
2565 << ueManager->GetImsi() <<
", RNTI " << ueManager->GetRnti()
2566 <<
", BID " << (uint16_t)tag.
GetBid());
2567 ueManager->SendData(tag.
GetBid(), packet);
2583 "ConnectionRequestTimeout in unexpected state "
2588 "ConnectionRequestTimeout");
2597 "ConnectionSetupTimeout in unexpected state " <<
GetUeManager(rnti)->GetState());
2601 "ConnectionSetupTimeout");
2610 "ConnectionRejectedTimeout in unexpected state "
2615 "ConnectionRejectedTimeout");
2624 "HandoverJoiningTimeout in unexpected state " <<
GetUeManager(rnti)->GetState());
2651 "HandoverLeavingTimeout in unexpected state " <<
GetUeManager(rnti)->GetState());
2667 ueManager->SendRrcConnectionRelease();
2679 ueManager->PrepareHandover(cellId);
2701 GetUeManager(rnti)->RecvRrcConnectionSetupCompleted(msg);
2710 GetUeManager(rnti)->RecvRrcConnectionReconfigurationCompleted(msg);
2719 GetUeManager(rnti)->RecvRrcConnectionReestablishmentRequest(msg);
2728 GetUeManager(rnti)->RecvRrcConnectionReestablishmentComplete(msg);
2743 ueManager->InitialContextSetupRequest();
2772 GetUeManager(rnti)->RecvIdealUeContextRemoveRequest(rnti);
2784 ueManager->SetupDataRadioBearer(request.
bearer,
2796 ueManager->SendUeContextRelease();
2820 res.criticalityDiagnostics = 0;
2836 <<
" failed to allocate a preamble for non-contention based RA => cannot accept HO");
2859 for (
auto it = req.
bearers.begin(); it != req.
bearers.end(); ++it)
2861 ueManager->SetupDataRadioBearer(it->erabLevelQosParameters,
2864 it->transportLayerAddress);
2871 ueManager->GetRrcConnectionReconfigurationForHandover(componentCarrierId);
2892 ackParams.
rrcContext = encodedHandoverCommand;
2911 NS_LOG_LOGIC(
"oldEnbUeX2apId = " << params.oldEnbUeX2apId);
2912 NS_LOG_LOGIC(
"newEnbUeX2apId = " << params.newEnbUeX2apId);
2913 NS_LOG_LOGIC(
"sourceCellId = " << params.sourceCellId);
2914 NS_LOG_LOGIC(
"targetCellId = " << params.targetCellId);
2916 uint16_t rnti = params.oldEnbUeX2apId;
2918 ueManager->RecvHandoverRequestAck(params);
2926 NS_LOG_LOGIC(
"Recv X2 message: HANDOVER PREPARATION FAILURE");
2928 NS_LOG_LOGIC(
"oldEnbUeX2apId = " << params.oldEnbUeX2apId);
2929 NS_LOG_LOGIC(
"sourceCellId = " << params.sourceCellId);
2930 NS_LOG_LOGIC(
"targetCellId = " << params.targetCellId);
2932 NS_LOG_LOGIC(
"criticalityDiagnostics = " << params.criticalityDiagnostics);
2934 uint16_t rnti = params.oldEnbUeX2apId;
2940 ueManager->RecvHandoverPreparationFailure(params.targetCellId);
2951 NS_LOG_LOGIC(
"oldEnbUeX2apId = " << params.oldEnbUeX2apId);
2952 NS_LOG_LOGIC(
"newEnbUeX2apId = " << params.newEnbUeX2apId);
2953 NS_LOG_LOGIC(
"erabsSubjectToStatusTransferList size = "
2954 << params.erabsSubjectToStatusTransferList.size());
2956 uint16_t rnti = params.newEnbUeX2apId;
2962 ueManager->RecvSnStatusTransfer(params);
2973 NS_LOG_LOGIC(
"oldEnbUeX2apId = " << params.oldEnbUeX2apId);
2974 NS_LOG_LOGIC(
"newEnbUeX2apId = " << params.newEnbUeX2apId);
2976 uint16_t rnti = params.oldEnbUeX2apId;
2993 NS_LOG_LOGIC(
"Number of cellInformationItems = " << params.cellInformationList.size());
3004 NS_LOG_LOGIC(
"Recv X2 message: RESOURCE STATUS UPDATE");
3007 "Number of cellMeasurementResultItems = " << params.cellMeasurementResultList.size());
3009 NS_ASSERT(
"Processing of RESOURCE STATUS UPDATE X2 message IS NOT IMPLEMENTED");
3017 NS_LOG_LOGIC(
"Recv UE DATA FORWARDING through X2 interface");
3018 NS_LOG_LOGIC(
"sourceCellId = " << params.sourceCellId);
3019 NS_LOG_LOGIC(
"targetCellId = " << params.targetCellId);
3022 NS_LOG_LOGIC(
"ueData size = " << params.ueData->GetSize());
3027 GetUeManager(teidInfoIt->second.rnti)->SendData(teidInfoIt->second.drbid, params.ueData);
3042 NS_LOG_LOGIC(
"oldEnbUeX2apId = " << params.oldEnbUeX2apId);
3043 NS_LOG_LOGIC(
"newEnbUeX2apId = " << params.newEnbUeX2apId);
3044 NS_LOG_LOGIC(
"sourceCellId = " << params.sourceCellId);
3045 NS_LOG_LOGIC(
"targetCellId = " << params.targetCellId);
3048 uint16_t rnti = params.newEnbUeX2apId;
3052 ueManager->RecvHandoverCancel(params);
3053 GetUeManager(rnti)->RecvIdealUeContextRemoveRequest(rnti);
3064 NS_LOG_WARN(
"Not enough SRS configuration indices, UE context not created");
3074 ueManager->CmacUeConfigUpdateInd(cmacParams);
3113 bool isHandoverAllowed =
true;
3116 NS_ASSERT_MSG(ueManager,
"Cannot find UE context with RNTI " << rnti);
3125 <<
" targetCellId=" << targetCellId <<
" NRT.NoHo=" << noHo
3126 <<
" NRT.NoX2=" << noX2);
3130 isHandoverAllowed =
false;
3131 NS_LOG_LOGIC(
this <<
" handover to cell " << targetCellId <<
" is not allowed by ANR");
3137 isHandoverAllowed =
false;
3138 NS_LOG_LOGIC(
this <<
" handover is not allowed because the UE"
3139 <<
" rnti=" << rnti <<
" is in " << ueManager->GetState() <<
" state");
3142 if (isHandoverAllowed)
3145 ueManager->PrepareHandover(targetCellId);
3173 ueManager->SetPdschConfigDedicated(pdschConfigDedicated);
3199 NS_ASSERT_MSG(found,
"no more RNTIs available (do you have more than 65535 UEs in a cell?)");
3204 ueManager->Initialize();
3206 NS_LOG_DEBUG(
this <<
" New UE RNTI " << rnti <<
" cellId " << cellId <<
" srs CI "
3207 << ueManager->GetSrsConfigurationIndex());
3218 uint64_t imsi = it->second->GetImsi();
3219 uint16_t srsCi = (*it).second->GetSrsConfigurationIndex();
3221 it->second->CancelPendingEvents();
3290 for (std::size_t componentCarrierId = 0; componentCarrierId <
m_sib1.size();
3291 componentCarrierId++)
3293 m_sib1.at(componentCarrierId).cellAccessRelatedInfo.csgIdentity = csgId;
3294 m_sib1.at(componentCarrierId).cellAccessRelatedInfo.csgIndication = csgIndication;
3296 ->SetSystemInformationBlockType1(
m_sib1.at(componentCarrierId));
3333 std::ostringstream allowedValues;
3339 <<
". Allowed values: " << allowedValues.str());
3364 <<
") for current SRS periodicity "
3366 <<
", consider increasing the value of ns3::LteEnbRrc::SrsPeriodicity");
3380 NS_LOG_DEBUG(
this <<
" lower bound " << (*rit) <<
" of "
3414 "request to remove unknown SRS CI " << srcCi);
3454 uint8_t ccId = it.first;
3487 switch (ueManager->GetState())
3503 return os <<
"INITIAL_RANDOM_ACCESS";
3505 return os <<
"CONNECTION_SETUP";
3507 return os <<
"CONNECTION_REJECTED";
3509 return os <<
"ATTACH_REQUEST";
3511 return os <<
"CONNECTED_NORMALLY";
3513 return os <<
"CONNECTION_RECONFIGURATION";
3515 return os <<
"CONNECTION_REESTABLISHMENT";
3517 return os <<
"HANDOVER_PREPARATION";
3519 return os <<
"HANDOVER_JOINING";
3521 return os <<
"HANDOVER_PATH_SWITCH";
3523 return os <<
"HANDOVER_LEAVING";
3525 return os <<
"NUM_STATES";
3527 return os <<
"UNKNOWN(" <<
static_cast<uint32_t>(state) <<
")";
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.
AttributeValue implementation for Pointer.
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.
Manages all the radio bearer information possessed by the ENB RRC for a single UE.
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 AttributeChecker > MakeBooleanChecker()
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Ptr< const AttributeAccessor > MakeEnumAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Ptr< const AttributeChecker > MakeIntegerChecker()
Ptr< const AttributeAccessor > MakeIntegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
ObjectPtrContainerValue ObjectMapValue
ObjectMapValue is an alias for ObjectPtrContainerValue.
Ptr< const AttributeAccessor > MakeObjectMapAccessor(U T::*memberVariable)
MakeAccessorHelper implementation for ObjectVector.
Ptr< const AttributeChecker > MakeObjectMapChecker()
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Ptr< AttributeChecker > MakePointerChecker()
Create a PointerChecker for a type.
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Ptr< const AttributeChecker > MakeTimeChecker()
Helper to make an unbounded Time checker.
Ptr< const AttributeChecker > MakeUintegerChecker()
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
#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.
Ptr< T > CreateObject(Args &&... args)
Create an object by type, with varying number of constructor parameters.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
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.
std::ostream & operator<<(std::ostream &os, const Angles &a)
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< T1 > DynamicCast(const Ptr< T2 > &p)
Cast a Ptr.
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 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.
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.