|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
24 #include "ns3/boolean.h"
54 { 2, 100, 28, 24, 24},
80 { 2, 100, 28, 24, 24},
93 m_dlEdgeSubBandOffset (0),
94 m_dlEdgeSubBandwidth (0),
95 m_ulEdgeSubBandOffset (0),
96 m_ulEdgeSubBandwidth (0),
123 static TypeId tid =
TypeId (
"ns3::LteFrStrictAlgorithm")
127 .AddAttribute (
"UlCommonSubBandwidth",
128 "Uplink Common SubBandwidth Configuration in number of Resource Block Groups",
131 MakeUintegerChecker<uint8_t> ())
132 .AddAttribute (
"UlEdgeSubBandOffset",
133 "Uplink Edge SubBand Offset in number of Resource Block Groups",
136 MakeUintegerChecker<uint8_t> ())
137 .AddAttribute (
"UlEdgeSubBandwidth",
138 "Uplink Edge SubBandwidth Configuration in number of Resource Block Groups",
141 MakeUintegerChecker<uint8_t> ())
142 .AddAttribute (
"DlCommonSubBandwidth",
143 "Downlink Common SubBandwidth Configuration in number of Resource Block Groups",
146 MakeUintegerChecker<uint8_t> ())
147 .AddAttribute (
"DlEdgeSubBandOffset",
148 "Downlink Edge SubBand Offset in number of Resource Block Groups",
151 MakeUintegerChecker<uint8_t> ())
152 .AddAttribute (
"DlEdgeSubBandwidth",
153 "Downlink Edge SubBandwidth Configuration in number of Resource Block Groups",
156 MakeUintegerChecker<uint8_t> ())
157 .AddAttribute (
"RsrqThreshold",
158 "If the RSRQ of is worse than this threshold, UE should be served in Edge sub-band",
161 MakeUintegerChecker<uint8_t> ())
162 .AddAttribute (
"CenterPowerOffset",
163 "PdschConfigDedicated::Pa value for Edge Sub-band, default value dB0",
166 MakeUintegerChecker<uint8_t> ())
167 .AddAttribute (
"EdgePowerOffset",
168 "PdschConfigDedicated::Pa value for Edge Sub-band, default value dB0",
171 MakeUintegerChecker<uint8_t> ())
172 .AddAttribute (
"CenterAreaTpc",
173 "TPC value which will be set in DL-DCI for UEs in center area"
174 "Absolute mode is used, default value 1 is mapped to -1 according to"
175 "TS36.213 Table 5.1.1.1-2",
178 MakeUintegerChecker<uint8_t> ())
179 .AddAttribute (
"EdgeAreaTpc",
180 "TPC value which will be set in DL-DCI for UEs in edge area"
181 "Absolute mode is used, default value 1 is mapped to -1 according to"
182 "TS36.213 Table 5.1.1.1-2",
185 MakeUintegerChecker<uint8_t> ())
237 NS_LOG_LOGIC (
this <<
" requesting Event A1 measurements"
238 <<
" (threshold = 0" <<
")");
308 "(DlCommonSubBandwidth+DlEdgeSubBandOffset+DlEdgeSubBandwidth) higher than DlBandwidth");
344 "(UlCommonSubBandwidth+UlEdgeSubBandOffset+UlEdgeSubBandwidth) higher than UlBandwidth");
387 std::map< uint16_t, uint8_t >::iterator it =
m_ues.find (rnti);
388 if (it ==
m_ues.end ())
400 return (edgeRbg && edgeUe) || (!edgeRbg && !edgeUe);
428 std::map< uint16_t, uint8_t >::iterator it =
m_ues.find (rnti);
429 if (it ==
m_ues.end ())
441 return (edgeRbg && edgeUe) || (!edgeRbg && !edgeUe);
448 NS_LOG_WARN (
"Method should not be called, because it is empty");
455 NS_LOG_WARN (
"Method should not be called, because it is empty");
462 NS_LOG_WARN (
"Method should not be called, because it is empty");
485 std::map< uint16_t, uint8_t >::iterator it =
m_ues.find (rnti);
486 if (it ==
m_ues.end ())
514 NS_LOG_INFO (
"minContinuousUlBandwidth: " << (
int)minContinuousUlBandwidth);
516 return minContinuousUlBandwidth;
525 <<
" RSRP: " << (uint16_t)measResults.
rsrpResult
526 <<
" RSRQ: " << (uint16_t)measResults.
rsrqResult);
534 std::map< uint16_t, uint8_t >::iterator it =
m_ues.find (rnti);
535 if (it ==
m_ues.end ())
539 it =
m_ues.find (rnti);
545 NS_LOG_INFO (
"UE RNTI: " << rnti <<
" will be served in Edge sub-band");
557 NS_LOG_INFO (
"UE RNTI: " << rnti <<
" will be served in Center sub-band");
572 NS_LOG_WARN (
"Method should not be called, since it is empty");
enum ns3::LteRrcSap::ReportConfigEutra::@5 reportInterval
Report interval enumeration.
a unique identifier for an interface.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
uint8_t rsrqResult
RSRQ result.
virtual uint8_t DoGetTpc(uint16_t rnti)
DoGetTpc for UE.
LteFfrSapProvider * m_ffrSapProvider
FFR SAP provider.
uint8_t dlCommonSubBandwidth
DL common subbandwidth.
@ EVENT_A1
Event A1: Serving becomes better than absolute threshold.
void SetUplinkConfiguration(uint16_t cellId, uint8_t bandwidth)
Set uplink configuration.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
uint8_t m_centerAreaPowerOffset
center area power offset
LteFfrRrcSapProvider * m_ffrRrcSapProvider
FFR RRC SAP provider.
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
virtual void DoRecvLoadInformation(EpcX2Sap::LoadInformationParams params)
DoRecvLoadInformation.
std::vector< bool > m_dlEdgeRbgMap
DL edge RBG map.
uint8_t range
Value range used in RSRP/RSRQ threshold.
const uint16_t NUM_UPLINK_CONFS(sizeof(g_ffrEnhancedUplinkDefaultConfiguration)/sizeof(FfrEnhancedUplinkDefaultConfiguration))
virtual void Reconfigure()
Automatic FR reconfiguration.
Parameters of the SCHED_DL_CQI_INFO_REQ primitive.
uint8_t dlEdgeSubBandwidth
DL edge subbandwidth.
std::map< uint16_t, uint8_t > m_ues
UEs.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual bool DoIsDlRbgAvailableForUe(int i, uint16_t rnti)
Implementation of LteFfrSapProvider::IsDlRbgAvailableForUe.
virtual std::vector< bool > DoGetAvailableDlRbg()
Implementation of LteFfrSapProvider::GetAvailableDlRbg.
virtual void DoInitialize()
Initialize() implementation.
void InitializeUplinkRbgMaps()
Initialize uplink RBG maps.
Parameters of the SCHED_UL_CQI_INFO_REQ primitive.
uint8_t m_measId
The expected measurement identity.
FrStrictDownlinkDefaultConfiguration structure.
void SetDownlinkConfiguration(uint16_t cellId, uint8_t bandwidth)
Set downlink configuration.
uint8_t rsrpResult
RSRP result.
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
uint8_t m_edgeAreaTpc
edge area tpc
virtual void DoReportDlCqiInfo(const struct FfMacSchedSapProvider::SchedDlCqiInfoReqParameters ¶ms)
DoReportDlCqiInfo.
enum ns3::LteRrcSap::ThresholdEutra::@0 choice
Threshold enumeration.
ThresholdEutra threshold1
Threshold for event A1, A2, A4, and A5.
uint8_t m_dlEdgeSubBandwidth
DL edge subbandwidth.
virtual void DoDispose()
Destructor implementation.
uint8_t ulEdgeSubBandwidth
UL edge subbandwidth.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
static const struct ns3::FrStrictDownlinkDefaultConfiguration g_frStrictDownlinkDefaultConfiguration[]
the strict downlink default configuration
void InitializeDownlinkRbgMaps()
Initialize downlink RBG maps.
bool m_needReconfiguration
If true FR algorithm will be reconfigured.
uint8_t m_ulBandwidth
uplink bandwidth in RBs
virtual LteFfrRrcSapProvider * GetLteFfrRrcSapProvider()
Export the "provider" part of the LteFfrRrcSap interface.
std::vector< bool > m_ulRbgMap
UL RBG map.
static TypeId GetTypeId()
Get the type ID.
virtual void SetLteFfrRrcSapUser(LteFfrRrcSapUser *s)
Set the "user" part of the LteFfrRrcSap interface that this frequency reuse algorithm instance will i...
virtual void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults)
Implementation of LteFfrRrcSapProvider::ReportUeMeas.
virtual void DoReportUlCqiInfo(const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters ¶ms)
DoReportUlCqiInfo.
enum ns3::LteRrcSap::ReportConfigEutra::@2 eventId
Event enumeration.
uint8_t m_edgeSubBandThreshold
Edge subband threshold.
PdschConfigDedicated structure.
uint8_t m_ulEdgeSubBandwidth
UL edge subbandwidth.
static const struct ns3::FrStrictUplinkDefaultConfiguration g_frStrictUplinkDefaultConfiguration[]
the strict uplink default configuration
virtual uint16_t DoGetMinContinuousUlBandwidth()
DoGetMinContinuousUlBandwidth in number of RB.
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
enum ns3::LteRrcSap::ReportConfigEutra::@3 triggerQuantity
Trigger type enumeration.
const uint16_t NUM_DOWNLINK_CONFS(sizeof(g_ffrEnhancedDownlinkDefaultConfiguration)/sizeof(FfrEnhancedDownlinkDefaultConfiguration))
virtual uint8_t AddUeMeasReportConfigForFfr(LteRrcSap::ReportConfigEutra reportConfig)=0
Request a certain reporting configuration to be fulfilled by the UEs attached to the eNodeB entity.
uint8_t m_frCellTypeId
FFR cell type ID for automatic configuration.
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the MAC Scheduler ins...
Specifies criteria for triggering of an E-UTRA measurement reporting event.
uint8_t m_dlBandwidth
downlink bandwidth in RBs
@ RSRQ
Reference Signal Received Quality.
uint8_t ulEdgeSubBandOffset
UL edge subband offset.
LteFrStrictAlgorithm()
Creates a trivial ffr algorithm instance.
uint8_t m_ulCommonSubBandwidth
UL common subbandwidth.
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
virtual void DoInitialize(void)
Initialize() implementation.
LteFfrRrcSapUser * m_ffrRrcSapUser
FFR RRC SAP user.
uint8_t dlBandwidth
DL bandwidth.
uint8_t ulCommonSubBandwidth
UL common subbandwidth.
virtual void SetPdschConfigDedicated(uint16_t rnti, LteRrcSap::PdschConfigDedicated pdschConfigDedicated)=0
Instruct the eNodeB RRC entity to perform RrcConnectionReconfiguration to inform UE about new PdschCo...
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
LteFfrSapUser * m_ffrSapUser
FFR SAP user.
std::vector< bool > m_dlRbgMap
DL RBG map.
uint8_t m_dlCommonSubBandwidth
DL common subbandwidth.
uint8_t m_centerAreaTpc
center area tpc
int GetRbgSize(int dlbandwidth)
Get RBG size for DL Bandwidth according to table 7.1.6.1-1 of 36.213.
Strict Frequency Reuse algorithm implementation.
The abstract base class of a Frequency Reuse algorithm.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
uint8_t dlEdgeSubBandOffset
DL edge subband offset.
FrStrictUplinkDefaultConfiguration structure.
uint8_t m_ulEdgeSubBandOffset
UL edge subband offset.
virtual std::vector< bool > DoGetAvailableUlRbg()
Implementation of LteFfrSapProvider::GetAvailableUlRbg.
Hold an unsigned integer type.
bool m_enabledInUplink
If true FR algorithm will also work in Uplink.
uint8_t ulBandwidth
UL bandwidth.
virtual bool DoIsUlRbgAvailableForUe(int i, uint16_t rnti)
Implementation of LteFfrSapProvider::IsUlRbgAvailableForUe.
uint8_t m_edgeAreaPowerOffset
edge area power offset
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
uint8_t m_dlEdgeSubBandOffset
DL edge subband offset.
@ THRESHOLD_RSRQ
RSRQ is used for the threshold.
virtual LteFfrSapProvider * GetLteFfrSapProvider()
Export the "provider" part of the LteFfrSap interface.
virtual void SetLteFfrSapUser(LteFfrSapUser *s)
Set the "user" part of the LteFfrSap interface that this frequency reuse algorithm instance will inte...
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the eNodeB RRC instan...
std::vector< bool > m_ulEdgeRbgMap
UL edge RBG map.
virtual ~LteFrStrictAlgorithm()
friend class MemberLteFfrRrcSapProvider< LteFrStrictAlgorithm >
let the forwarder class access the protected and private members
friend class MemberLteFfrSapProvider< LteFrStrictAlgorithm >
let the forwarder class access the protected and private members