29 #include <ns3/fatal-error.h>
31 #include <ns3/abort.h>
33 #include <ns3/pointer.h>
34 #include <ns3/object-map.h>
35 #include <ns3/object-factory.h>
36 #include <ns3/simulator.h>
38 #include <ns3/lte-radio-bearer-info.h>
39 #include <ns3/eps-bearer-tag.h>
40 #include <ns3/packet.h>
42 #include <ns3/lte-rlc.h>
43 #include <ns3/lte-rlc-tm.h>
44 #include <ns3/lte-rlc-um.h>
45 #include <ns3/lte-rlc-am.h>
46 #include <ns3/lte-pdcp.h>
85 , m_componentCarrierId {componentCarrierId}
123 "INITIAL_RANDOM_ACCESS",
125 "CONNECTION_REJECTED",
127 "CONNECTED_NORMALLY",
128 "CONNECTION_RECONFIGURATION",
129 "CONNECTION_REESTABLISHMENT",
130 "HANDOVER_PREPARATION",
132 "HANDOVER_PATH_SWITCH",
156 : m_lastAllocatedDrbid (0),
159 m_componentCarrierId (componentCarrierId),
160 m_lastRrcTransactionIdentifier (0),
163 m_pendingRrcConnectionReconfiguration (false),
166 m_needPhyMacConfiguration (false),
167 m_caSupportConfigured (false),
168 m_pendingStartDataRadioBearers (false)
189 for (uint8_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
204 m_srb0 = CreateObject<LteSignalingRadioBearerInfo> ();
206 m_srb0->m_srbIdentity = 0;
216 lcinfo.
isGbr =
false;
226 m_rrc->m_ccmRrcSapProvider->AddLc (lcinfo, lteMacSapUser);
240 pdcp->SetLcId (lcid);
245 m_srb1 = CreateObject<LteSignalingRadioBearerInfo> ();
248 m_srb1->m_srbIdentity = 1;
249 m_srb1->m_logicalChannelConfig.priority = 1;
250 m_srb1->m_logicalChannelConfig.prioritizedBitRateKbps = 100;
251 m_srb1->m_logicalChannelConfig.bucketSizeDurationMs = 100;
252 m_srb1->m_logicalChannelConfig.logicalChannelGroup = 0;
268 m_rrc->m_ccmRrcSapProvider->AddLc (lcinfo, MacSapUserForRlc);
282 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
284 m_rrc->m_cmacSapProvider.at (i)->UeUpdateConfigurationReq (req);
289 Time maxConnectionDelay;
325 m_rrc->m_x2uTeidInfoMap.erase (it->second->m_gtpTeid);
334 .AddConstructor<UeManager> ()
335 .AddAttribute (
"DataRadioBearerMap",
"List of UE DataRadioBearerInfo by DRBID.",
338 MakeObjectMapChecker<LteDataRadioBearerInfo> ())
339 .AddAttribute (
"Srb0",
"SignalingRadioBearerInfo for SRB0",
342 MakePointerChecker<LteSignalingRadioBearerInfo> ())
343 .AddAttribute (
"Srb1",
"SignalingRadioBearerInfo for SRB1",
346 MakePointerChecker<LteSignalingRadioBearerInfo> ())
347 .AddAttribute (
"C-RNTI",
348 "Cell Radio Network Temporary Identifier",
352 MakeUintegerChecker<uint16_t> ())
353 .AddTraceSource (
"StateTransition",
354 "fired upon every UE state transition seen by the "
355 "UeManager at the eNB RRC",
357 "ns3::UeManager::StateTracedCallback")
358 .AddTraceSource (
"DrbCreated",
359 "trace fired after DRB is created",
361 "ns3::UeManager::ImsiCidRntiLcIdTracedCallback")
403 NS_ASSERT_MSG ( bearerId == 0 || bid == bearerId,
"bearer ID mismatch (" << (uint32_t) bid <<
" != " << (uint32_t) bearerId <<
", the assumption that ID are allocated in the same way by MME and RRC is not valid any more");
404 drbInfo->m_epsBearer = bearer;
405 drbInfo->m_epsBearerIdentity = bid;
406 drbInfo->m_drbIdentity = drbid;
407 drbInfo->m_logicalChannelIdentity = lcid;
408 drbInfo->m_gtpTeid = gtpTeid;
409 drbInfo->m_transportLayerAddress = transportLayerAddress;
416 x2uTeidInfo.
drbid = drbid;
417 std::pair<std::map<uint32_t, LteEnbRrc::X2uTeidInfo>::iterator,
bool>
418 ret =
m_rrc->m_x2uTeidInfoMap.insert (std::pair<uint32_t, LteEnbRrc::X2uTeidInfo> (gtpTeid, x2uTeidInfo));
419 NS_ASSERT_MSG (ret.second ==
true,
"overwriting a pre-existing entry in m_x2uTeidInfoMap");
430 drbInfo->m_rlc = rlc;
440 pdcp->SetLcId (lcid);
444 drbInfo->m_pdcp = pdcp;
449 std::vector<LteCcmRrcSapProvider::LcsConfig> lcOnCcMapping =
m_rrc->m_ccmRrcSapProvider->SetupDataRadioBearer (bearer, bearerId,
m_rnti, lcid,
m_rrc->GetLogicalChannelGroup (bearer), rlc->
GetLteMacSapUser ());
462 std::vector<LteCcmRrcSapProvider::LcsConfig>::iterator itLcOnCcMapping = lcOnCcMapping.begin ();
463 NS_ASSERT_MSG (itLcOnCcMapping != lcOnCcMapping.end (),
"Problem");
464 for (itLcOnCcMapping = lcOnCcMapping.begin (); itLcOnCcMapping != lcOnCcMapping.end (); ++itLcOnCcMapping)
466 NS_LOG_DEBUG (
this <<
" RNTI " << itLcOnCcMapping->lc.rnti <<
"Lcid " << (uint16_t) itLcOnCcMapping->lc.lcId <<
" lcGroup " << (uint16_t) itLcOnCcMapping->lc.lcGroup <<
" ComponentCarrierId " << itLcOnCcMapping->componentCarrierId);
467 uint8_t index = itLcOnCcMapping->componentCarrierId;
470 m_rrc->m_cmacSapProvider.at (index)->AddLc (lcinfo, msu);
471 m_rrc->m_ccmRrcSapProvider->AddLc (lcinfo, msu);
483 drbInfo->m_logicalChannelIdentity = lcid;
484 drbInfo->m_logicalChannelConfig.priority =
m_rrc->GetLogicalChannelPriority (bearer);
485 drbInfo->m_logicalChannelConfig.logicalChannelGroup =
m_rrc->GetLogicalChannelGroup (bearer);
488 drbInfo->m_logicalChannelConfig.prioritizedBitRateKbps = bearer.
gbrQosInfo.
gbrUl;
492 drbInfo->m_logicalChannelConfig.prioritizedBitRateKbps = 0;
494 drbInfo->m_logicalChannelConfig.bucketSizeDurationMs = 1000;
519 std::map <uint8_t, Ptr<LteDataRadioBearerInfo> >::iterator drbIt =
m_drbMap.find (*drbIdIt);
521 drbIt->second->m_rlc->Initialize ();
522 if (drbIt->second->m_pdcp)
524 drbIt->second->m_pdcp->Initialize ();
536 std::map <uint8_t, Ptr<LteDataRadioBearerInfo> >::iterator it =
m_drbMap.find (drbid);
537 NS_ASSERT_MSG (it !=
m_drbMap.end (),
"request to remove radio bearer with unknown drbid " << drbid);
540 m_rrc->m_x2uTeidInfoMap.erase (it->second->m_gtpTeid);
543 std::vector<uint8_t> ccToRelease =
m_rrc->m_ccmRrcSapProvider->ReleaseDataRadioBearer (
m_rnti, lcid);
544 std::vector<uint8_t>::iterator itCcToRelease = ccToRelease.begin ();
545 NS_ASSERT_MSG (itCcToRelease != ccToRelease.end (),
"request to remove radio bearer with unknown drbid (ComponentCarrierManager)");
546 for (itCcToRelease = ccToRelease.begin (); itCcToRelease != ccToRelease.end (); ++itCcToRelease)
548 m_rrc->m_cmacSapProvider.at (*itCcToRelease)->ReleaseLc (
m_rnti, lcid);
567 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration (
m_rnti, msg);
576 ueManager->ReleaseDataRadioBearer (bearerId);
587 if (
m_rrc->m_s1SapProvider != 0)
591 NS_LOG_DEBUG (
"Sending release of bearer id : " << (uint16_t) (it.first)
593 << (uint16_t) (it.second->m_logicalChannelIdentity));
595 m_rrc->m_s1SapProvider->DoSendReleaseIndication (
GetImsi (), rnti, it.first);
622 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration (
m_rnti, msg);
644 auto sourceComponentCarrier = DynamicCast<ComponentCarrierEnb> (
m_rrc->m_componentCarrierPhyConf.at (
m_componentCarrierId));
647 if (
m_rrc->HasCellId (cellId))
650 NS_LOG_DEBUG (
"Intra-eNB handover for cellId " << cellId);
651 uint8_t componentCarrierId =
m_rrc->CellToComponentCarrierId (cellId);
654 if (anrcrv.
valid ==
false)
656 NS_LOG_INFO (
this <<
" failed to allocate a preamble for non-contention based RA => cannot perform HO");
657 NS_FATAL_ERROR (
"should trigger HO Preparation Failure, but it is not implemented");
662 ueManager->SetSource (sourceComponentCarrier->GetCellId (),
m_rnti);
663 ueManager->SetImsi (
m_imsi);
668 ueManager->SetupDataRadioBearer (it.second->m_epsBearer,
669 it.second->m_epsBearerIdentity,
670 it.second->m_gtpTeid,
671 it.second->m_transportLayerAddress);
687 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration (
m_rnti, handoverCommand);
699 NS_LOG_DEBUG (
"Inter-eNB handover (i.e., X2) for cellId " << cellId);
728 params.
rrcContext =
m_rrc->m_rrcSapUser->EncodeHandoverPreparationInformation (hpi);
736 m_rrc->m_x2SapProvider->SendHandoverRequest (params);
771 NS_FATAL_ERROR (
"The source and target eNBs have unequal number of component carriers. Target eNB CCs = "
773 <<
" Source eNB CCs = " <<
m_rrc->m_numberOfComponentCarriers);
776 m_rrc->m_rrcSapUser->SendRrcConnectionReconfiguration (
m_rnti, handoverCommand);
798 if (0 != drbIt->second->m_rlc->GetObject<
LteRlcAm> ())
807 m_rrc->m_x2SapProvider->SendSnStatusTransfer (sst);
825 auto targetComponentCarrier = DynamicCast<ComponentCarrierEnb> (
m_rrc->m_componentCarrierPhyConf.at (componentCarrierId));
826 result.haveMobilityControlInfo =
true;
827 result.mobilityControlInfo.targetPhysCellId = targetComponentCarrier->GetCellId ();
828 result.mobilityControlInfo.haveCarrierFreq =
true;
829 result.mobilityControlInfo.carrierFreq.dlCarrierFreq = targetComponentCarrier->GetDlEarfcn ();
830 result.mobilityControlInfo.carrierFreq.ulCarrierFreq = targetComponentCarrier->GetUlEarfcn ();
831 result.mobilityControlInfo.haveCarrierBandwidth =
true;
832 result.mobilityControlInfo.carrierBandwidth.dlBandwidth = targetComponentCarrier->GetDlBandwidth ();
833 result.mobilityControlInfo.carrierBandwidth.ulBandwidth = targetComponentCarrier->GetUlBandwidth ();
838 result.haveNonCriticalExtension =
true;
840 for (
auto &it:
m_rrc->m_componentCarrierPhyConf)
842 uint8_t ccId = it.first;
852 result.nonCriticalExtension.sCellToReleaseList.push_back (ccId + 1);
858 result.haveNonCriticalExtension =
false;
874 std::map<uint8_t, Ptr<LteDataRadioBearerInfo> >::iterator it =
m_drbMap.find (drbid);
878 if (bearerInfo != NULL)
904 NS_LOG_LOGIC (
"queueing data on PDCP for transmission over the air");
919 NS_LOG_LOGIC (
"forwarding data to target eNB over X2-U");
926 m_rrc->m_x2SapProvider->SendUeData (params);
936 std::vector<EpcX2Sap::ErabToBeSetupItem>
940 std::vector<EpcX2Sap::ErabToBeSetupItem> ret;
946 etbsi.
erabId = it->second->m_epsBearerIdentity;
950 etbsi.
gtpTeid = it->second->m_gtpTeid;
951 ret.push_back (etbsi);
963 NS_LOG_INFO (
"Send UE CONTEXT RELEASE from target eNB to source eNB");
971 m_rrc->m_x2SapProvider->SendUeContextRelease (ueCtxReleaseParams);
975 NS_LOG_INFO (
"Not sending UE CONTEXT RELEASE because handover is internal");
976 m_rrc->DoRecvUeContextRelease (ueCtxReleaseParams);
996 NS_LOG_INFO (
"target eNB sent HO preparation failure, aborting HO");
1010 for (std::vector<EpcX2Sap::ErabsSubjectToStatusTransferItem>::iterator erabIt
1054 if (
m_rrc->m_admitRrcConnectionRequest ==
true)
1062 m_rrc->m_rrcSapUser->SendRrcConnectionSetup (
m_rnti, msg2);
1066 m_rrc->m_connectionSetupTimeoutDuration,
1077 m_rrc->m_rrcSapUser->SendRrcConnectionReject (
m_rnti, rejectMsg);
1080 m_rrc->m_connectionRejectedTimeoutDuration,
1107 if (
m_rrc->m_s1SapProvider != 0)
1139 for (uint8_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
1141 m_rrc->m_cmacSapProvider.at (i)->UeUpdateConfigurationReq (req);
1146 m_rrc->m_cphySapProvider.at (i)->SetPa (
m_rnti, paDouble);
1171 std::pair <uint8_t, Ptr<Packet> > bidPacket =
m_packetBuffer.front ();
1172 uint8_t bid = bidPacket.first;
1175 NS_LOG_LOGIC (
"queueing data on PDCP for transmission over the air");
1181 NS_LOG_INFO (
"Send PATH SWITCH REQUEST to the MME");
1193 b.
teid = it->second->m_gtpTeid;
1196 m_rrc->m_s1SapProvider->PathSwitchRequest (params);
1227 m_rrc->m_rrcSapUser->SendRrcConnectionReestablishment (
m_rnti, msg2);
1257 <<
" RSRP " << (it->haveRsrpResult ? (uint16_t) it->rsrpResult : 255)
1258 <<
" RSRQ " << (it->haveRsrqResult ? (uint16_t) it->rsrqResult : 255));
1261 if ((
m_rrc->m_handoverManagementSapProvider != 0)
1262 && (
m_rrc->m_handoverMeasIds.find (measId) !=
m_rrc->m_handoverMeasIds.end ()))
1265 m_rrc->m_handoverManagementSapProvider->ReportUeMeas (
m_rnti,
1269 if ((
m_rrc->m_ccmRrcSapProvider != 0)
1270 && (
m_rrc->m_componentCarrierMeasIds.find (measId) !=
m_rrc->m_componentCarrierMeasIds.end ()))
1277 if ((
m_rrc->m_anrSapProvider != 0)
1278 && (
m_rrc->m_anrMeasIds.find (measId) !=
m_rrc->m_anrMeasIds.end ()))
1284 if ((
m_rrc->m_ffrRrcSapProvider.size () > 0)
1285 && (
m_rrc->m_ffrMeasIds.find (measId) !=
m_rrc->m_ffrMeasIds.end ()))
1331 if (params.
lcid > 2)
1372 for (uint16_t i = 0; i <
m_rrc->m_numberOfComponentCarriers; i++)
1374 m_rrc->m_cphySapProvider.at (i)->SetSrsConfigurationIndex (
m_rnti, srsConfIndex);
1422 const uint8_t MAX_DRB_ID = 32;
1425 drbid = (drbid + 1) % MAX_DRB_ID)
1432 drbInfo->m_drbIdentity = drbid;
1447 std::map<uint8_t, Ptr<LteDataRadioBearerInfo> >::iterator it =
m_drbMap.find (drbid);
1457 std::map <uint8_t, Ptr<LteDataRadioBearerInfo> >::iterator it =
m_drbMap.find (drbid);
1458 NS_ASSERT_MSG (it !=
m_drbMap.end (),
"request to remove radio bearer with unknown drbid " << drbid);
1511 dtam.
rlcConfig = it->second->m_rlcConfig;
1625 for (
auto &it:
m_rrc->m_componentCarrierPhyConf)
1627 uint8_t ccId = it.first;
1690 : m_x2SapProvider (0),
1691 m_cmacSapProvider (0),
1692 m_handoverManagementSapProvider (0),
1693 m_ccmRrcSapProvider (0),
1694 m_anrSapProvider (0),
1695 m_ffrRrcSapProvider (0),
1697 m_macSapProvider (0),
1698 m_s1SapProvider (0),
1699 m_cphySapProvider (0),
1700 m_configured (false),
1701 m_lastAllocatedRnti (0),
1702 m_srsCurrentPeriodicityId (0),
1703 m_lastAllocatedConfigurationIndex (0),
1704 m_reconfigureUes (false),
1705 m_numberOfComponentCarriers (0),
1706 m_carriersConfigured (false)
1726 "are not equal to the number of he component carrier configuration provided");
1779 .SetGroupName(
"Lte")
1781 .AddAttribute (
"UeMap",
"List of UeManager by C-RNTI.",
1784 MakeObjectMapChecker<UeManager> ())
1785 .AddAttribute (
"DefaultTransmissionMode",
1786 "The default UEs' transmission mode (0: SISO)",
1789 MakeUintegerChecker<uint8_t> ())
1790 .AddAttribute (
"EpsBearerToRlcMapping",
1791 "Specify which type of RLC will be used for each type of EPS bearer. ",
1798 .AddAttribute (
"SystemInformationPeriodicity",
1799 "The interval for sending system information (Time value)",
1805 .AddAttribute (
"SrsPeriodicity",
1806 "The SRS periodicity in milliseconds",
1810 MakeUintegerChecker<uint32_t> ())
1813 .AddAttribute (
"ConnectionRequestTimeoutDuration",
1814 "After a RA attempt, if no RRC CONNECTION REQUEST is "
1815 "received before this time, the UE context is destroyed. "
1816 "Must account for reception of RAR and transmission of "
1817 "RRC CONNECTION REQUEST over UL GRANT. The value of this"
1818 "timer should not be greater than T300 timer at UE RRC",
1822 .AddAttribute (
"ConnectionSetupTimeoutDuration",
1823 "After accepting connection request, if no RRC CONNECTION "
1824 "SETUP COMPLETE is received before this time, the UE "
1825 "context is destroyed. Must account for the UE's reception "
1826 "of RRC CONNECTION SETUP and transmission of RRC CONNECTION "
1831 .AddAttribute (
"ConnectionRejectedTimeoutDuration",
1832 "Time to wait between sending a RRC CONNECTION REJECT and "
1833 "destroying the UE context",
1837 .AddAttribute (
"HandoverJoiningTimeoutDuration",
1838 "After accepting a handover request, if no RRC CONNECTION "
1839 "RECONFIGURATION COMPLETE is received before this time, the "
1840 "UE context is destroyed. Must account for reception of "
1841 "X2 HO REQ ACK by source eNB, transmission of the Handover "
1842 "Command, non-contention-based random access and reception "
1843 "of the RRC CONNECTION RECONFIGURATION COMPLETE message.",
1847 .AddAttribute (
"HandoverLeavingTimeoutDuration",
1848 "After issuing a Handover Command, if neither RRC "
1849 "CONNECTION RE-ESTABLISHMENT nor X2 UE Context Release has "
1850 "been previously received, the UE context is destroyed.",
1856 .AddAttribute (
"QRxLevMin",
1857 "One of information transmitted within the SIB1 message, "
1858 "indicating the required minimum RSRP level that any UE must "
1859 "receive from this cell before it is allowed to camp to this "
1860 "cell. The default value -70 corresponds to -140 dBm and is "
1861 "the lowest possible value as defined by Section 6.3.4 of "
1862 "3GPP TS 36.133. This restriction, however, only applies to "
1863 "initial cell selection and EPC-enabled simulation.",
1867 MakeIntegerChecker<int8_t> (-70, -22))
1868 .AddAttribute (
"NumberOfComponentCarriers",
1869 "Number of Component Carriers ",
1875 .AddAttribute (
"AdmitHandoverRequest",
1876 "Whether to admit an X2 handover request from another eNB",
1880 .AddAttribute (
"AdmitRrcConnectionRequest",
1881 "Whether to admit a connection request from a UE",
1887 .AddAttribute (
"RsrpFilterCoefficient",
1888 "Determines the strength of smoothing effect induced by "
1889 "layer 3 filtering of RSRP in all attached UE; "
1890 "if set to 0, no layer 3 filtering is applicable",
1894 MakeUintegerChecker<uint8_t> (0))
1895 .AddAttribute (
"RsrqFilterCoefficient",
1896 "Determines the strength of smoothing effect induced by "
1897 "layer 3 filtering of RSRQ in all attached UE; "
1898 "if set to 0, no layer 3 filtering is applicable",
1902 MakeUintegerChecker<uint8_t> (0))
1905 .AddTraceSource (
"NewUeContext",
1906 "Fired upon creation of a new UE context.",
1908 "ns3::LteEnbRrc::NewUeContextTracedCallback")
1909 .AddTraceSource (
"ConnectionEstablished",
1910 "Fired upon successful RRC connection establishment.",
1912 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
1913 .AddTraceSource (
"ConnectionReconfiguration",
1914 "trace fired upon RRC connection reconfiguration",
1916 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
1917 .AddTraceSource (
"HandoverStart",
1918 "trace fired upon start of a handover procedure",
1920 "ns3::LteEnbRrc::HandoverStartTracedCallback")
1921 .AddTraceSource (
"HandoverEndOk",
1922 "trace fired upon successful termination of a handover procedure",
1924 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
1925 .AddTraceSource (
"RecvMeasurementReport",
1926 "trace fired when measurement report is received",
1928 "ns3::LteEnbRrc::ReceiveReportTracedCallback")
1929 .AddTraceSource (
"NotifyConnectionRelease",
1930 "trace fired when an UE is released",
1932 "ns3::LteEnbRrc::ConnectionHandoverTracedCallback")
1933 .AddTraceSource (
"RrcTimeout",
1934 "trace fired when a timer expires",
1936 "ns3::LteEnbRrc::TimerExpiryTracedCallback")
2060 "You meant to store the pointer at position " <<
2061 static_cast<uint32_t
> (index) <<
2162 std::map<uint16_t, Ptr<UeManager> >::const_iterator it =
m_ueMap.find (rnti);
2163 return (it !=
m_ueMap.end ());
2171 std::map<uint16_t, Ptr<UeManager> >::iterator it =
m_ueMap.find (rnti);
2176 std::vector<uint8_t>
2184 "Measurement identities and reporting configuration should not have different quantity");
2188 NS_FATAL_ERROR (
"AddUeMeasReportConfig may not be called after the simulation has run");
2199 NS_FATAL_ERROR (
"The given triggerQuantity (RSRP) does not match with the given threshold2.choice");
2208 NS_FATAL_ERROR (
"The given triggerQuantity (RSRP) does not match with the given threshold1.choice");
2216 NS_FATAL_ERROR (
"The given triggerQuantity (RSRQ) does not match with the given threshold2.choice");
2225 NS_FATAL_ERROR (
"The given triggerQuantity (RSRQ) does not match with the given threshold1.choice");
2236 NS_FATAL_ERROR (
"Only REPORT_STRONGEST_CELLS purpose is supported");
2241 NS_LOG_WARN (
"reportQuantity = BOTH will be used instead of the given reportQuantity");
2254 std::vector<uint8_t> measIds;
2263 measIdToAddMod.
measId = measId;
2268 measIds.push_back (measId);
2277 auto it = ccPhyConf.begin ();
2279 uint16_t ulBandwidth = it->second->GetUlBandwidth ();
2280 uint16_t dlBandwidth = it->second->GetDlBandwidth ();
2281 uint32_t ulEarfcn = it->second->GetUlEarfcn ();
2282 uint32_t dlEarfcn = it->second->GetDlEarfcn ();
2284 << ulEarfcn << dlEarfcn);
2287 for (
const auto &it: ccPhyConf)
2289 m_cphySapProvider.at (it.first)->SetBandwidth (it.second->GetUlBandwidth (), it.second->GetDlBandwidth ());
2290 m_cphySapProvider.at (it.first)->SetEarfcn (it.second->GetUlEarfcn (), it.second->GetDlEarfcn ());
2292 m_cmacSapProvider.at (it.first)->ConfigureMac (it.second->GetUlBandwidth (), it.second->GetDlBandwidth ());
2296 m_ffrRrcSapProvider.at (it.first)->SetBandwidth (it.second->GetUlBandwidth (), it.second->GetDlBandwidth ());
2310 for (
const auto &it: ccPhyConf)
2332 m_sib1.reserve (ccPhyConf.size ());
2333 for (
const auto &it: ccPhyConf)
2369 m_sib1.at (0).cellAccessRelatedInfo.cellIdentity = cellId;
2377 m_sib1.at (ccIndex).cellAccessRelatedInfo.cellIdentity = cellId;
2387 if (it.second->GetCellId () == cellId)
2407 if (it.second->GetCellId () == cellId)
2422 NS_ASSERT_MSG (found,
"no EpsBearerTag found in packet to be sent");
2424 ueManager->SendData (tag.
GetBid (), packet);
2440 "ConnectionRequestTimeout in unexpected state " <<
ToString (
GetUeManager (rnti)->GetState ()));
2462 "ConnectionRejectedTimeout in unexpected state " <<
ToString (
GetUeManager (rnti)->GetState ()));
2498 ueManager->PrepareHandover (cellId);
2520 GetUeManager (rnti)->RecvRrcConnectionSetupCompleted (msg);
2527 GetUeManager (rnti)->RecvRrcConnectionReconfigurationCompleted (msg);
2534 GetUeManager (rnti)->RecvRrcConnectionReestablishmentRequest (msg);
2541 GetUeManager (rnti)->RecvRrcConnectionReestablishmentComplete (msg);
2556 ueManager->InitialContextSetupRequest ();
2567 GetUeManager (rnti)->RecvIdealUeContextRemoveRequest (rnti);
2586 ueManager->SendUeContextRelease ();
2617 if (anrcrv.
valid ==
false)
2619 NS_LOG_INFO (
this <<
" failed to allocate a preamble for non-contention based RA => cannot accept HO");
2621 NS_FATAL_ERROR (
"should trigger HO Preparation Failure, but it is not implemented");
2635 for (std::vector <EpcX2Sap::ErabToBeSetupItem>::iterator it = req.
bearers.begin ();
2639 ueManager->SetupDataRadioBearer (it->erabLevelQosParameters, it->erabId, it->gtpTeid, it->transportLayerAddress);
2660 ackParams.
rrcContext = encodedHandoverCommand;
2662 NS_LOG_LOGIC (
"Send X2 message: HANDOVER REQUEST ACK");
2677 NS_LOG_LOGIC (
"Recv X2 message: HANDOVER REQUEST ACK");
2686 ueManager->RecvHandoverRequestAck (params);
2694 NS_LOG_LOGIC (
"Recv X2 message: HANDOVER PREPARATION FAILURE");
2704 ueManager->RecvHandoverPreparationFailure (params.
targetCellId);
2720 ueManager->RecvSnStatusTransfer (params);
2756 NS_LOG_LOGIC (
"Recv X2 message: RESOURCE STATUS UPDATE");
2760 NS_ASSERT (
"Processing of RESOURCE STATUS UPDATE X2 message IS NOT IMPLEMENTED");
2768 NS_LOG_LOGIC (
"Recv UE DATA FORWARDING through X2 interface");
2775 std::map<uint32_t, X2uTeidInfo>::iterator
2779 GetUeManager (teidInfoIt->second.rnti)->SendData (teidInfoIt->second.drbid, params.
ueData);
2799 ueManager->CmacUeConfigUpdateInd (cmacParams);
2810 std::vector<uint8_t>
2839 bool isHandoverAllowed =
true;
2842 NS_ASSERT_MSG (ueManager != 0,
"Cannot find UE context with RNTI " << rnti);
2850 <<
" targetCellId=" << targetCellId
2851 <<
" NRT.NoHo=" << noHo <<
" NRT.NoX2=" << noX2);
2855 isHandoverAllowed =
false;
2856 NS_LOG_LOGIC (
this <<
" handover to cell " << targetCellId
2857 <<
" is not allowed by ANR");
2863 isHandoverAllowed =
false;
2864 NS_LOG_LOGIC (
this <<
" handover is not allowed because the UE"
2865 <<
" rnti=" << rnti <<
" is in "
2866 <<
ToString (ueManager->GetState ()) <<
" state");
2869 if (isHandoverAllowed)
2872 ueManager->PrepareHandover (targetCellId);
2899 ueManager->SetPdschConfigDedicated (pdschConfigDedicated);
2927 NS_ASSERT_MSG (found,
"no more RNTIs available (do you have more than 65535 UEs in a cell?)");
2929 Ptr<UeManager> ueManager = CreateObject<UeManager> (
this, rnti, state, componentCarrierId);
2932 ueManager->Initialize ();
2934 NS_LOG_DEBUG (
this <<
" New UE RNTI " << rnti <<
" cellId " << cellId <<
" srs CI " << ueManager->GetSrsConfigurationIndex ());
2943 std::map <uint16_t, Ptr<UeManager> >::iterator it =
m_ueMap.find (rnti);
2945 uint64_t imsi = it->second->GetImsi ();
2946 uint16_t srsCi = (*it).second->GetSrsConfigurationIndex ();
2948 it->second->CancelPendingEvents ();
3021 for (uint8_t componentCarrierId = 0; componentCarrierId <
m_sib1.size (); componentCarrierId++)
3023 m_sib1.at (componentCarrierId).cellAccessRelatedInfo.csgIdentity = csgId;
3024 m_sib1.at (componentCarrierId).cellAccessRelatedInfo.csgIndication = csgIndication;
3062 std::ostringstream allowedValues;
3067 NS_FATAL_ERROR (
"illecit SRS periodicity value " << p <<
". Allowed values: " << allowedValues.str ());
3091 <<
") for current SRS periodicity "
3093 <<
", consider increasing the value of ns3::LteEnbRrc::SrsPeriodicity");
3146 if (bearer.
IsGbr ())
3169 uint8_t ccId = it.first;
3201 switch (ueManager->GetState ())
AttributeValue implementation for Boolean.
Class for forwarding CMAC SAP User functions.
virtual void NotifyLcConfigResult(uint16_t rnti, uint8_t lcid, bool success)
notify the result of the last LC config operation
EnbRrcMemberLteEnbCmacSapUser(LteEnbRrc *rrc, uint8_t componentCarrierId)
Constructor.
virtual uint16_t AllocateTemporaryCellRnti()
request the allocation of a Temporary C-RNTI
virtual void RrcConfigurationUpdateInd(UeConfig params)
Notify the RRC of a UE config updated requested by the MAC (normally, by the scheduler)
uint8_t m_componentCarrierId
Component carrier ID.
virtual bool IsRandomAccessCompleted(uint16_t rnti)
Is random access completed function.
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 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.
enum ns3::EpsBearer::Qci qci
Qos class indicator.
double GetPacketErrorLossRate() const
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 ...
uint16_t GetRnti(void) const
Get RNTI function.
void SetRnti(uint16_t rnti)
Set the RNTI to the given value.
uint8_t GetBid(void) const
Get Bearer Id function.
void SetBid(uint8_t bid)
Set the bearer id to the given value.
void Cancel(void)
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 ...
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.
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.
static TypeId GetTypeId(void)
Get the type ID.
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.
virtual ~LteEnbRrc()
Destructor.
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.
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.
uint8_t m_defaultTransmissionMode
The DefaultTransmissionMode attribute.
Time m_connectionRejectedTimeoutDuration
The ConnectionRejectedTimeoutDuration attribute.
Time m_connectionSetupTimeoutDuration
The ConnectionSetupTimeoutDuration attribute.
virtual void DoDispose(void)
Destructor implementation.
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...
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
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< 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 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...
enum LteEpsBearerToRlcMapping_t m_epsBearerToRlcMapping
The EpsBearerToRlcMapping attribute.
uint16_t DoAllocateTemporaryCellRnti(uint8_t componentCarrierId)
Allocate temporary cell RNTI function.
std::vector< LteEnbCphySapUser * > m_cphySapUser
Receive API calls from the eNodeB PHY instances.
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
uint16_t GetNewSrsConfigurationIndex(void)
Allocate a new SRS configuration index for a new UE.
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, 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.
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(void)
Get the type ID.
This abstract base class defines the API to interact with the Radio Link Control (LTE_RLC) in LTE,...
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(void)
Get the type ID.
static TypeId GetTypeId(void)
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(void) 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(void) const
Get a pointer to the requested aggregated Object.
virtual void DoInitialize(void)
Initialize() implementation.
Container for a set of ns3::Object pointers.
bool RemovePacketTag(Tag &tag)
Remove a packet tag.
void AddPacketTag(const Tag &tag) const
Add a packet tag.
uint32_t GetSize(void) 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(Time const &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
static Time Now(void)
Return the current simulation virtual time.
Simulation virtual time values and global simulation resolution.
AttributeValue implementation for Time.
a unique identifier for an interface.
@ ATTR_GET
The attribute can be read.
@ ATTR_CONSTRUCT
The attribute can be written at construction-time.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
bool m_pendingStartDataRadioBearers
Pending start data radio bearers.
void RecvRrcConnectionReestablishmentRequest(LteRrcSap::RrcConnectionReestablishmentRequest msg)
Implement the LteEnbRrcSapProvider::RecvRrcConnectionReestablishmentRequest interface.
static TypeId GetTypeId(void)
Get the type ID.
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.
uint64_t GetImsi(void) const
void SendData(uint8_t bid, Ptr< Packet > p)
Send a data packet over the appropriate Data Radio Bearer.
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.
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.
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)
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.
Ptr< LteEnbRrc > m_rrc
Pointer to the parent eNodeB RRC.
uint16_t GetSrsConfigurationIndex(void) const
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)
uint16_t GetRnti(void) const
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.
virtual void DoInitialize()
Initialize() implementation.
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.
virtual void DoDispose()
Destructor implementation.
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(void)
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 AttributeAccessor > MakeIntegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Ptr< const AttributeAccessor > MakeObjectMapAccessor(U T::*memberVariable)
MakeAccessorHelper implementation for ObjectVector.
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
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 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.
#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.
static const std::string & ToString(EpcUeNas::State s)
Ptr< const AttributeChecker > MakeEnumChecker(int 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.
static const std::string g_ueManagerStateName[UeManager::NUM_STATES]
Map each of UE Manager states to its string representation.
static const uint16_t g_srsCiLow[SRS_ENTRIES]
The lower bound (inclusive) of the SRS configuration indices (ISRS) which use the corresponding SRS p...
static const uint16_t g_srsCiHigh[SRS_ENTRIES]
The upper bound (inclusive) of the SRS configuration indices (ISRS) which use the corresponding SRS p...
static const uint8_t SRS_ENTRIES
Number of distinct SRS periodicity plus one.
static const uint16_t g_srsPeriodicity[SRS_ENTRIES]
Sounding Reference Symbol (SRS) periodicity (TSRS) in milliseconds.
BearerToBeSwitched structure.
uint8_t epsBearerId
Bearer ID.
PathSwitchRequestParameters structure.
std::list< BearerToBeSwitched > bearersToBeSwitched
list of bearers to be switched
uint32_t mmeUeS1Id
mmeUeS1Id in practice, we use the IMSI
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 PREPARATION FAILURE message.
uint16_t criticalityDiagnostics
criticality diagnostics
uint16_t targetCellId
target cell ID
uint16_t oldEnbUeX2apId
old ENB UE X2 AP ID
uint16_t sourceCellId
source cell ID
Parameters of the HANDOVER REQUEST ACKNOWLEDGE message.
std::vector< ErabNotAdmittedItem > notAdmittedBearers
not admitted bearers
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
uint64_t ueAggregateMaxBitRateDownlink
UE aggregrate max bit rate downlink.
uint16_t sourceCellId
source cell ID
uint64_t ueAggregateMaxBitRateUplink
UE aggregrate max bit rate uplink.
uint16_t targetCellId
target cell ID
Ptr< Packet > rrcContext
RRC context.
uint32_t mmeUeS1apId
MME UE S1 AP ID.
std::vector< ErabToBeSetupItem > bearers
bearers
Parameters of the RESOURCE STATUS UPDATE message.
std::vector< CellMeasurementResultItem > cellMeasurementResultList
cell measurement result list
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.
Ptr< Packet > ueData
UE data.
uint16_t sourceCellId
source cell ID
uint32_t gtpTeid
GTP TEID.
uint16_t targetCellId
target cell ID
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
uint64_t gbrDl
guaranteed bitrate in downlink
uint8_t lcId
logical channel identifier
bool isGbr
true if the bearer is GBR, false if the bearer is NON-GBR
uint16_t rnti
C-RNTI identifying the UE.
struct defining the RACH configuration of the MAC
uint8_t preambleTransMax
preamble transmit maximum
uint8_t raResponseWindowSize
RA response window size.
uint8_t connEstFailCount
the counter value for T300 timer expiration
uint8_t numberOfRaPreambles
number of RA preambles
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.
LtePdcpSapUser * srb1SapUser
SRB1 SAP user.
LteRlcSapUser * srb0SapUser
SRB0 SAP user.
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.
uint8_t lcid
the logical channel id corresponding to the sending RLC instance
Ptr< Packet > pdcpSdu
the RRC PDU
uint16_t rnti
the C-RNTI identifying the UE
Parameters for LtePdcpSapUser::ReceivePdcpSdu.
Ptr< Packet > pdcpSdu
the RRC PDU
uint8_t lcid
the logical channel id corresponding to the sending RLC instance
uint16_t rnti
the C-RNTI identifying the UE
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
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
uint16_t targetPhysCellId
target Phy cell ID
NonCriticalExtensionConfiguration structure.
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.
@ 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...
enum ns3::LteRrcSap::ReportConfigEutra::@68 reportQuantity
Report type enumeration.
@ RSRP
Reference Signal Received Power.
@ RSRQ
Reference Signal Received Quality.
ThresholdEutra threshold2
Threshold for event A5.
ThresholdEutra threshold1
Threshold for event A1, A2, A4, and A5.
enum ns3::LteRrcSap::ReportConfigEutra::@67 triggerQuantity
Trigger type enumeration.
@ BOTH
Both the RSRP and RSRQ quantities are to be included in the measurement report.
enum ns3::LteRrcSap::ReportConfigEutra::report purpose
purpose
enum ns3::LteRrcSap::ReportConfigEutra::@66 eventId
Event enumeration.
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. 6.2.2 pag. 147 (also known as ETSI TS 136 331 v.11....
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
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.
enum ns3::LteRrcSap::SoundingRsUlConfigDedicated::action type
action type
uint16_t srsConfigIndex
SRS config index.
uint16_t srsBandwidth
SRS bandwidth.
LogicalChannelConfig logicalChannelConfig
logical channel config
uint8_t srbIdentity
SB identity.
@ THRESHOLD_RSRP
RSRP is used for the threshold.
@ THRESHOLD_RSRQ
RSRQ is used for the threshold.
enum ns3::LteRrcSap::ThresholdEutra::@64 choice
Threshold enumeration.
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