A Discrete-Event Network Simulator
API
lte-fr-soft-algorithm.cc
Go to the documentation of this file.
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2014 Piotr Gawlowicz
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Piotr Gawlowicz <gawlowicz.p@gmail.com>
19  *
20  */
21 
22 #include "lte-fr-soft-algorithm.h"
23 #include <ns3/log.h>
24 #include "ns3/boolean.h"
25 
26 namespace ns3 {
27 
28 NS_LOG_COMPONENT_DEFINE ("LteFrSoftAlgorithm");
29 
30 NS_OBJECT_ENSURE_REGISTERED (LteFrSoftAlgorithm);
31 
34 {
35  uint8_t cellId;
36  uint8_t dlBandwidth;
40  { 1, 15, 0, 4},
41  { 2, 15, 4, 4},
42  { 3, 15, 8, 6},
43  { 1, 25, 0, 8},
44  { 2, 25, 8, 8},
45  { 3, 25, 16, 9},
46  { 1, 50, 0, 16},
47  { 2, 50, 16, 16},
48  { 3, 50, 32, 18},
49  { 1, 75, 0, 24},
50  { 2, 75, 24, 24},
51  { 3, 75, 48, 27},
52  { 1, 100, 0, 32},
53  { 2, 100, 32, 32},
54  { 3, 100, 64, 36}
55 };
56 
59 {
60  uint8_t cellId;
61  uint8_t ulBandwidth;
65  { 1, 15, 0, 5},
66  { 2, 15, 5, 5},
67  { 3, 15, 10, 5},
68  { 1, 25, 0, 8},
69  { 2, 25, 8, 8},
70  { 3, 25, 16, 9},
71  { 1, 50, 0, 16},
72  { 2, 50, 16, 16},
73  { 3, 50, 32, 18},
74  { 1, 75, 0, 24},
75  { 2, 75, 24, 24},
76  { 3, 75, 48, 27},
77  { 1, 100, 0, 32},
78  { 2, 100, 32, 32},
79  { 3, 100, 64, 36}
80 };
81 
86 
87 
89  : m_ffrSapUser (0),
90  m_ffrRrcSapUser (0),
91  m_dlEdgeSubBandOffset (0),
92  m_dlEdgeSubBandwidth (0),
93  m_ulEdgeSubBandOffset (0),
94  m_ulEdgeSubBandwidth (0),
95  m_measId (0)
96 {
97  NS_LOG_FUNCTION (this);
100 }
101 
102 
104 {
105  NS_LOG_FUNCTION (this);
106 }
107 
108 
109 void
111 {
112  NS_LOG_FUNCTION (this);
113  delete m_ffrSapProvider;
114  delete m_ffrRrcSapProvider;
115 }
116 
117 
118 TypeId
120 {
121  static TypeId tid = TypeId ("ns3::LteFrSoftAlgorithm")
123  .SetGroupName("Lte")
124  .AddConstructor<LteFrSoftAlgorithm> ()
125  .AddAttribute ("UlEdgeSubBandOffset",
126  "Uplink Edge SubBand Offset in number of Resource Block Groups",
127  UintegerValue (0),
129  MakeUintegerChecker<uint8_t> ())
130  .AddAttribute ("UlEdgeSubBandwidth",
131  "Uplink Edge SubBandwidth Configuration in number of Resource Block Groups",
132  UintegerValue (0),
134  MakeUintegerChecker<uint8_t> ())
135  .AddAttribute ("DlEdgeSubBandOffset",
136  "Downlink Edge SubBand Offset in number of Resource Block Groups",
137  UintegerValue (0),
139  MakeUintegerChecker<uint8_t> ())
140  .AddAttribute ("DlEdgeSubBandwidth",
141  "Downlink Edge SubBandwidth Configuration in number of Resource Block Groups",
142  UintegerValue (0),
144  MakeUintegerChecker<uint8_t> ())
145  .AddAttribute ("AllowCenterUeUseEdgeSubBand",
146  "If true center UEs can receive on Edge SubBand RBGs",
147  BooleanValue (true),
150  .AddAttribute ("RsrqThreshold",
151  "If the RSRQ of is worse than this threshold, UE should be served in Edge sub-band",
152  UintegerValue (20),
154  MakeUintegerChecker<uint8_t> ())
155  .AddAttribute ("CenterPowerOffset",
156  "PdschConfigDedicated::Pa value for Edge Sub-band, default value dB0",
157  UintegerValue (5),
159  MakeUintegerChecker<uint8_t> ())
160  .AddAttribute ("EdgePowerOffset",
161  "PdschConfigDedicated::Pa value for Edge Sub-band, default value dB0",
162  UintegerValue (5),
164  MakeUintegerChecker<uint8_t> ())
165  .AddAttribute ("CenterAreaTpc",
166  "TPC value which will be set in DL-DCI for UEs in center area"
167  "Absolute mode is used, default value 1 is mapped to -1 according to"
168  "TS36.213 Table 5.1.1.1-2",
169  UintegerValue (1),
171  MakeUintegerChecker<uint8_t> ())
172  .AddAttribute ("EdgeAreaTpc",
173  "TPC value which will be set in DL-DCI for UEs in edge area"
174  "Absolute mode is used, default value 1 is mapped to -1 according to"
175  "TS36.213 Table 5.1.1.1-2",
176  UintegerValue (1),
178  MakeUintegerChecker<uint8_t> ())
179  ;
180  return tid;
181 }
182 
183 
184 void
186 {
187  NS_LOG_FUNCTION (this << s);
188  m_ffrSapUser = s;
189 }
190 
191 
194 {
195  NS_LOG_FUNCTION (this);
196  return m_ffrSapProvider;
197 }
198 
199 void
201 {
202  NS_LOG_FUNCTION (this << s);
203  m_ffrRrcSapUser = s;
204 }
205 
206 
209 {
210  NS_LOG_FUNCTION (this);
211  return m_ffrRrcSapProvider;
212 }
213 
214 
215 void
217 {
218  NS_LOG_FUNCTION (this);
220 
221  NS_ASSERT_MSG (m_dlBandwidth > 14,"DlBandwidth must be at least 15 to use FFR algorithms");
222  NS_ASSERT_MSG (m_ulBandwidth > 14,"UlBandwidth must be at least 15 to use FFR algorithms");
223 
224  if (m_frCellTypeId != 0)
225  {
228  }
229 
230  NS_LOG_LOGIC (this << " requesting Event A1 measurements"
231  << " (threshold = 0" << ")");
232  LteRrcSap::ReportConfigEutra reportConfig;
235  reportConfig.threshold1.range = 0;
239 }
240 
241 void
243 {
244  NS_LOG_FUNCTION (this);
245  if (m_frCellTypeId != 0)
246  {
249  }
252  m_needReconfiguration = false;
253 }
254 
255 void
256 LteFrSoftAlgorithm::SetDownlinkConfiguration (uint16_t cellId, uint8_t bandwidth)
257 {
258  NS_LOG_FUNCTION (this);
259  for (uint16_t i = 0; i < NUM_DOWNLINK_CONFS; ++i)
260  {
261  if ((g_frSoftDownlinkDefaultConfiguration[i].cellId == cellId)
263  {
266  }
267  }
268 }
269 
270 void
271 LteFrSoftAlgorithm::SetUplinkConfiguration (uint16_t cellId, uint8_t bandwidth)
272 {
273  NS_LOG_FUNCTION (this);
274  for (uint16_t i = 0; i < NUM_UPLINK_CONFS; ++i)
275  {
276  if ((g_frSoftUplinkDefaultConfiguration[i].cellId == cellId)
278  {
281  }
282  }
283 }
284 
285 void
287 {
288  m_dlRbgMap.clear ();
289  m_dlEdgeRbgMap.clear ();
290 
291  int rbgSize = GetRbgSize (m_dlBandwidth);
292  m_dlRbgMap.resize (m_dlBandwidth / rbgSize, false);
293  m_dlEdgeRbgMap.resize (m_dlBandwidth / rbgSize, false);
294 
295  NS_ASSERT_MSG (m_dlEdgeSubBandOffset <= m_dlBandwidth,"DlEdgeSubBandOffset higher than DlBandwidth");
296  NS_ASSERT_MSG (m_dlEdgeSubBandwidth <= m_dlBandwidth,"DlEdgeSubBandwidth higher than DlBandwidth");
298  "(DlEdgeSubBandOffset+DlEdgeSubBandwidth) higher than DlBandwidth");
299 
300  for (uint8_t i = m_dlEdgeSubBandOffset / rbgSize;
301  i < (m_dlEdgeSubBandOffset + m_dlEdgeSubBandwidth) / rbgSize; i++)
302  {
303  m_dlEdgeRbgMap[i] = true;
304  }
305 }
306 
307 void
309 {
310  m_ulRbgMap.clear ();
311  m_ulEdgeRbgMap.clear ();
312 
313  m_ulRbgMap.resize (m_ulBandwidth, false);
314  m_ulEdgeRbgMap.resize (m_ulBandwidth, false);
315 
316  NS_ASSERT_MSG (m_ulEdgeSubBandOffset <= m_dlBandwidth,"UlEdgeSubBandOffset higher than DlBandwidth");
317  NS_ASSERT_MSG (m_ulEdgeSubBandwidth <= m_dlBandwidth,"UlEdgeSubBandwidth higher than DlBandwidth");
319  "(UlEdgeSubBandOffset+UlEdgeSubBandwidth) higher than DlBandwidth");
320 
322  {
323  m_ulEdgeRbgMap[i] = true;
324  }
325 }
326 
327 std::vector <bool>
329 {
330  NS_LOG_FUNCTION (this);
331 
333  {
334  Reconfigure ();
335  }
336 
337  if (m_dlRbgMap.empty ())
338  {
340  }
341 
342  return m_dlRbgMap;
343 }
344 
345 bool
347 {
348  NS_LOG_FUNCTION (this);
349 
350  bool edgeRbg = m_dlEdgeRbgMap[rbgId];
351 
352  std::map< uint16_t, uint8_t >::iterator it = m_ues.find (rnti);
353  if (it == m_ues.end ())
354  {
355  m_ues.insert (std::pair< uint16_t, uint8_t > (rnti, AreaUnset));
356  return !edgeRbg;
357  }
358 
359  bool edgeUe = false;
360  if (it->second == CellEdge )
361  {
362  edgeUe = true;
363  }
364 
365  if (!edgeUe && m_isEdgeSubBandForCenterUe)
366  {
367  return true;
368  }
369 
370  return (edgeRbg && edgeUe) || (!edgeRbg && !edgeUe);
371 }
372 
373 std::vector <bool>
375 {
376  NS_LOG_FUNCTION (this);
377 
378  if (m_ulRbgMap.empty ())
379  {
381  }
382 
383  return m_ulRbgMap;
384 }
385 
386 bool
388 {
389  NS_LOG_FUNCTION (this);
390 
391  if (!m_enabledInUplink)
392  {
393  return true;
394  }
395 
396  bool edgeRbg = m_ulEdgeRbgMap[rbgId];
397 
398  std::map< uint16_t, uint8_t >::iterator it = m_ues.find (rnti);
399  if (it == m_ues.end ())
400  {
401  m_ues.insert (std::pair< uint16_t, uint8_t > (rnti, AreaUnset));
402  return !edgeRbg;
403  }
404 
405  bool edgeUe = false;
406  if (it->second == CellEdge )
407  {
408  edgeUe = true;
409  }
410 
411  if (!edgeUe && m_isEdgeSubBandForCenterUe)
412  {
413  return true;
414  }
415 
416  return (edgeRbg && edgeUe) || (!edgeRbg && !edgeUe);
417 }
418 
419 void
421 {
422  NS_LOG_FUNCTION (this);
423  NS_LOG_WARN ("Method should not be called, because it is empty");
424 }
425 
426 void
428 {
429  NS_LOG_FUNCTION (this);
430  NS_LOG_WARN ("Method should not be called, because it is empty");
431 }
432 
433 void
434 LteFrSoftAlgorithm::DoReportUlCqiInfo (std::map <uint16_t, std::vector <double> > ulCqiMap)
435 {
436  NS_LOG_FUNCTION (this);
437  NS_LOG_WARN ("Method should not be called, because it is empty");
438 }
439 
440 uint8_t
442 {
443  NS_LOG_FUNCTION (this);
444 
445  if (!m_enabledInUplink)
446  {
447  return 1; // 1 is mapped to 0 for Accumulated mode, and to -1 in Absolute mode TS36.213 Table 5.1.1.1-2
448  }
449 
450  //TS36.213 Table 5.1.1.1-2
451  // TPC | Accumulated Mode | Absolute Mode
452  //------------------------------------------------
453  // 0 | -1 | -4
454  // 1 | 0 | -1
455  // 2 | 1 | 1
456  // 3 | 3 | 4
457  //------------------------------------------------
458  // here Absolute mode is used
459 
460  std::map< uint16_t, uint8_t >::iterator it = m_ues.find (rnti);
461  if (it == m_ues.end ())
462  {
463  return 1;
464  }
465 
466  if (it->second == CellEdge )
467  {
468  return m_edgeAreaTpc;
469  }
470  else if (it->second == CellCenter )
471  {
472  return m_centerAreaTpc;
473  }
474 
475  return 1;
476 }
477 
478 uint16_t
480 {
481  NS_LOG_FUNCTION (this);
482 
483  uint8_t minContinuousUlBandwidth = m_ulBandwidth;
484 
485  if (!m_enabledInUplink)
486  {
487  return minContinuousUlBandwidth;
488  }
489 
490  uint8_t leftBandwidth = m_ulEdgeSubBandOffset;
491  uint8_t centerBandwidth = m_ulEdgeSubBandwidth;
492  uint8_t rightBandwidth = m_ulBandwidth - m_ulEdgeSubBandwidth - m_ulEdgeSubBandOffset;
493 
494  minContinuousUlBandwidth =
495  ((leftBandwidth > 0 ) && (leftBandwidth < minContinuousUlBandwidth)) ? leftBandwidth : minContinuousUlBandwidth;
496 
497  minContinuousUlBandwidth =
498  ((centerBandwidth > 0 ) && (centerBandwidth < minContinuousUlBandwidth)) ? centerBandwidth : minContinuousUlBandwidth;
499 
500  minContinuousUlBandwidth =
501  ((rightBandwidth > 0 ) && (rightBandwidth < minContinuousUlBandwidth)) ? rightBandwidth : minContinuousUlBandwidth;
502 
503  NS_LOG_INFO ("minContinuousUlBandwidth: " << (int)minContinuousUlBandwidth);
504 
505  return minContinuousUlBandwidth;
506 }
507 
508 void
510  LteRrcSap::MeasResults measResults)
511 {
512  NS_LOG_FUNCTION (this << rnti << (uint16_t) measResults.measId);
513  NS_LOG_INFO ("RNTI :" << rnti << " MeasId: " << (uint16_t) measResults.measId
514  << " RSRP: " << (uint16_t)measResults.rsrpResult
515  << " RSRQ: " << (uint16_t)measResults.rsrqResult);
516 
517  if (measResults.measId != m_measId)
518  {
519  NS_LOG_WARN ("Ignoring measId " << (uint16_t) measResults.measId);
520  }
521  else
522  {
523  std::map< uint16_t, uint8_t >::iterator it = m_ues.find (rnti);
524  if (it == m_ues.end ())
525  {
526  m_ues.insert (std::pair< uint16_t, uint8_t > (rnti, AreaUnset));
527  }
528  it = m_ues.find (rnti);
529 
530  if (measResults.rsrqResult < m_edgeSubBandThreshold)
531  {
532  if (it->second != CellEdge)
533  {
534  NS_LOG_INFO ("UE RNTI: " << rnti << " will be served in Edge sub-band");
535  it->second = CellEdge;
536 
537  LteRrcSap::PdschConfigDedicated pdschConfigDedicated;
538  pdschConfigDedicated.pa = m_edgePowerOffset;
539  m_ffrRrcSapUser->SetPdschConfigDedicated (rnti, pdschConfigDedicated);
540  }
541  }
542  else
543  {
544  if (it->second != CellCenter)
545  {
546  NS_LOG_INFO ("UE RNTI: " << rnti << " will be served in Center sub-band");
547  it->second = CellCenter;
548 
549  LteRrcSap::PdschConfigDedicated pdschConfigDedicated;
550  pdschConfigDedicated.pa = m_centerPowerOffset;
551  m_ffrRrcSapUser->SetPdschConfigDedicated (rnti, pdschConfigDedicated);
552  }
553  }
554  }
555 }
556 
557 void
559 {
560  NS_LOG_FUNCTION (this);
561  NS_LOG_WARN ("Method should not be called, because it is empty");
562 }
563 
564 } // end of namespace ns3
ns3::LteRrcSap::ReportConfigEutra::reportInterval
enum ns3::LteRrcSap::ReportConfigEutra::@5 reportInterval
Report interval enumeration.
ns3::TypeId
a unique identifier for an interface.
Definition: type-id.h:59
ns3::LteFrSoftAlgorithm::DoReportDlCqiInfo
virtual void DoReportDlCqiInfo(const struct FfMacSchedSapProvider::SchedDlCqiInfoReqParameters &params)
DoReportDlCqiInfo.
Definition: lte-fr-soft-algorithm.cc:420
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:205
ns3::LteRrcSap::MeasResults::rsrqResult
uint8_t rsrqResult
RSRQ result.
Definition: lte-rrc-sap.h:682
ns3::LteFrSoftAlgorithm::m_dlEdgeRbgMap
std::vector< bool > m_dlEdgeRbgMap
DL edge RBG map.
Definition: lte-fr-soft-algorithm.h:130
ns3::LteFrSoftAlgorithm::m_ulEdgeSubBandOffset
uint8_t m_ulEdgeSubBandOffset
UL edge subband offset.
Definition: lte-fr-soft-algorithm.h:124
ns3::LteRrcSap::ReportConfigEutra::EVENT_A1
@ EVENT_A1
Event A1: Serving becomes better than absolute threshold.
Definition: lte-rrc-sap.h:373
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition: object-base.h:45
ns3::LteFrSoftAlgorithm::SetUplinkConfiguration
void SetUplinkConfiguration(uint16_t cellId, uint8_t bandwidth)
Set uplink configuration.
Definition: lte-fr-soft-algorithm.cc:271
ns3::BooleanValue
AttributeValue implementation for Boolean.
Definition: boolean.h:37
ns3::LteFfrSapUser
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
Definition: lte-ffr-sap.h:139
ns3::LteRrcSap::ThresholdEutra::range
uint8_t range
Value range used in RSRP/RSRQ threshold.
Definition: lte-rrc-sap.h:357
ns3::NUM_UPLINK_CONFS
const uint16_t NUM_UPLINK_CONFS(sizeof(g_ffrEnhancedUplinkDefaultConfiguration)/sizeof(FfrEnhancedUplinkDefaultConfiguration))
ns3::FfMacSchedSapProvider::SchedDlCqiInfoReqParameters
Parameters of the SCHED_DL_CQI_INFO_REQ primitive.
Definition: ff-mac-sched-sap.h:125
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::LteFrSoftAlgorithm::SetLteFfrSapUser
virtual void SetLteFfrSapUser(LteFfrSapUser *s)
Set the "user" part of the LteFfrSap interface that this frequency reuse algorithm instance will inte...
Definition: lte-fr-soft-algorithm.cc:185
ns3::LteFrSoftAlgorithm::m_ulRbgMap
std::vector< bool > m_ulRbgMap
UL RBG map.
Definition: lte-fr-soft-algorithm.h:128
ns3::LteFrSoftAlgorithm::m_ffrRrcSapProvider
LteFfrRrcSapProvider * m_ffrRrcSapProvider
FFR RRC SAP provider.
Definition: lte-fr-soft-algorithm.h:117
ns3::FfMacSchedSapProvider::SchedUlCqiInfoReqParameters
Parameters of the SCHED_UL_CQI_INFO_REQ primitive.
Definition: ff-mac-sched-sap.h:186
ns3::LteFrSoftAlgorithm::m_ulEdgeSubBandwidth
uint8_t m_ulEdgeSubBandwidth
UL edge subbandwidth.
Definition: lte-fr-soft-algorithm.h:125
ns3::LteFrSoftAlgorithm::DoIsUlRbgAvailableForUe
virtual bool DoIsUlRbgAvailableForUe(int i, uint16_t rnti)
Implementation of LteFfrSapProvider::IsUlRbgAvailableForUe.
Definition: lte-fr-soft-algorithm.cc:387
ns3::LteFrSoftAlgorithm::InitializeUplinkRbgMaps
void InitializeUplinkRbgMaps()
Initialize uplink RBG maps.
Definition: lte-fr-soft-algorithm.cc:308
ns3::LteFrSoftAlgorithm::m_ulEdgeRbgMap
std::vector< bool > m_ulEdgeRbgMap
UL edge RBG map.
Definition: lte-fr-soft-algorithm.h:131
ns3::LteFrSoftAlgorithm::m_ffrSapUser
LteFfrSapUser * m_ffrSapUser
FFR SAP user.
Definition: lte-fr-soft-algorithm.h:112
ns3::LteFrSoftAlgorithm::m_edgeSubBandThreshold
uint8_t m_edgeSubBandThreshold
Edge subband threshold.
Definition: lte-fr-soft-algorithm.h:144
ns3::LteRrcSap::PdschConfigDedicated::pa
uint8_t pa
P_A value.
Definition: lte-rrc-sap.h:171
ns3::LteFrSoftAlgorithm::MemberLteFfrSapProvider< LteFrSoftAlgorithm >
friend class MemberLteFfrSapProvider< LteFrSoftAlgorithm >
let the forwarder class access the protected and private members
Definition: lte-fr-soft-algorithm.h:61
ns3::LteRrcSap::MeasResults::rsrpResult
uint8_t rsrpResult
RSRP result.
Definition: lte-rrc-sap.h:681
NS_LOG_WARN
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
Definition: log.h:265
ns3::LteFrSoftAlgorithm::DoReportUlCqiInfo
virtual void DoReportUlCqiInfo(const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters &params)
DoReportUlCqiInfo.
Definition: lte-fr-soft-algorithm.cc:427
ns3::LteFrSoftAlgorithm::m_dlEdgeSubBandwidth
uint8_t m_dlEdgeSubBandwidth
DL edge subbandwidth.
Definition: lte-fr-soft-algorithm.h:122
ns3::LteRrcSap::ThresholdEutra::choice
enum ns3::LteRrcSap::ThresholdEutra::@0 choice
Threshold enumeration.
ns3::LteRrcSap::ReportConfigEutra::threshold1
ThresholdEutra threshold1
Threshold for event A1, A2, A4, and A5.
Definition: lte-rrc-sap.h:381
ns3::MakeBooleanAccessor
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Definition: boolean.h:85
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:923
ns3::LteFrSoftAlgorithm::SetLteFfrRrcSapUser
virtual void SetLteFfrRrcSapUser(LteFfrRrcSapUser *s)
Set the "user" part of the LteFfrRrcSap interface that this frequency reuse algorithm instance will i...
Definition: lte-fr-soft-algorithm.cc:200
ns3::LteFfrAlgorithm::m_needReconfiguration
bool m_needReconfiguration
If true FR algorithm will be reconfigured.
Definition: lte-ffr-algorithm.h:254
ns3::LteFrSoftAlgorithm::DoGetMinContinuousUlBandwidth
virtual uint16_t DoGetMinContinuousUlBandwidth()
DoGetMinContinuousUlBandwidth in number of RB.
Definition: lte-fr-soft-algorithm.cc:479
ns3::LteFfrAlgorithm::m_ulBandwidth
uint8_t m_ulBandwidth
uplink bandwidth in RBs
Definition: lte-ffr-algorithm.h:248
ns3::LteFrSoftAlgorithm::CellCenter
@ CellCenter
Definition: lte-fr-soft-algorithm.h:137
ns3::LteFrSoftAlgorithm::m_ffrSapProvider
LteFfrSapProvider * m_ffrSapProvider
FFR SAP provider.
Definition: lte-fr-soft-algorithm.h:113
ns3::g_frSoftUplinkDefaultConfiguration
static const struct ns3::FrSoftUplinkDefaultConfiguration g_frSoftUplinkDefaultConfiguration[]
soft uplink default configuration
ns3::LteFrSoftAlgorithm::DoInitialize
virtual void DoInitialize()
Initialize() implementation.
Definition: lte-fr-soft-algorithm.cc:216
ns3::LteFrSoftAlgorithm::m_edgePowerOffset
uint8_t m_edgePowerOffset
edge power offset
Definition: lte-fr-soft-algorithm.h:147
ns3::LteRrcSap::ReportConfigEutra::eventId
enum ns3::LteRrcSap::ReportConfigEutra::@2 eventId
Event enumeration.
ns3::LteRrcSap::PdschConfigDedicated
PdschConfigDedicated structure.
Definition: lte-rrc-sap.h:155
ns3::LteFfrRrcSapUser
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
Definition: lte-ffr-rrc-sap.h:89
ns3::LteRrcSap::ReportConfigEutra::triggerQuantity
enum ns3::LteRrcSap::ReportConfigEutra::@3 triggerQuantity
Trigger type enumeration.
ns3::LteFrSoftAlgorithm::DoGetAvailableUlRbg
virtual std::vector< bool > DoGetAvailableUlRbg()
Implementation of LteFfrSapProvider::GetAvailableUlRbg.
Definition: lte-fr-soft-algorithm.cc:374
ns3::NUM_DOWNLINK_CONFS
const uint16_t NUM_DOWNLINK_CONFS(sizeof(g_ffrEnhancedDownlinkDefaultConfiguration)/sizeof(FfrEnhancedDownlinkDefaultConfiguration))
ns3::LteFfrRrcSapUser::AddUeMeasReportConfigForFfr
virtual uint8_t AddUeMeasReportConfigForFfr(LteRrcSap::ReportConfigEutra reportConfig)=0
Request a certain reporting configuration to be fulfilled by the UEs attached to the eNodeB entity.
ns3::LteFfrAlgorithm::m_frCellTypeId
uint8_t m_frCellTypeId
FFR cell type ID for automatic configuration.
Definition: lte-ffr-algorithm.h:250
NS_LOG_INFO
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
Definition: log.h:281
ns3::LteFfrSapProvider
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the MAC Scheduler ins...
Definition: lte-ffr-sap.h:40
ns3::LteFrSoftAlgorithm::m_ffrRrcSapUser
LteFfrRrcSapUser * m_ffrRrcSapUser
FFR RRC SAP user.
Definition: lte-fr-soft-algorithm.h:116
ns3::LteRrcSap::ReportConfigEutra
Specifies criteria for triggering of an E-UTRA measurement reporting event.
Definition: lte-rrc-sap.h:362
ns3::LteFfrAlgorithm::m_dlBandwidth
uint8_t m_dlBandwidth
downlink bandwidth in RBs
Definition: lte-ffr-algorithm.h:247
ns3::LteRrcSap::ReportConfigEutra::RSRQ
@ RSRQ
Reference Signal Received Quality.
Definition: lte-rrc-sap.h:407
ns3::MakeBooleanChecker
Ptr< const AttributeChecker > MakeBooleanChecker(void)
Definition: boolean.cc:121
ns3::LteFrSoftAlgorithm::DoIsDlRbgAvailableForUe
virtual bool DoIsDlRbgAvailableForUe(int i, uint16_t rnti)
Implementation of LteFfrSapProvider::IsDlRbgAvailableForUe.
Definition: lte-fr-soft-algorithm.cc:346
ns3::LteFrSoftAlgorithm::SetDownlinkConfiguration
void SetDownlinkConfiguration(uint16_t cellId, uint8_t bandwidth)
Set downlink configuration.
Definition: lte-fr-soft-algorithm.cc:256
ns3::LteFrSoftAlgorithm::m_ues
std::map< uint16_t, uint8_t > m_ues
UEs.
Definition: lte-fr-soft-algorithm.h:141
ns3::LteFrSoftAlgorithm::m_edgeAreaTpc
uint8_t m_edgeAreaTpc
edge area tpc
Definition: lte-fr-soft-algorithm.h:150
ns3::LteFrSoftAlgorithm::MemberLteFfrRrcSapProvider< LteFrSoftAlgorithm >
friend class MemberLteFfrRrcSapProvider< LteFrSoftAlgorithm >
let the forwarder class access the protected and private members
Definition: lte-fr-soft-algorithm.h:63
NS_ASSERT_MSG
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
Definition: assert.h:88
ns3::LteFrSoftAlgorithm::~LteFrSoftAlgorithm
virtual ~LteFrSoftAlgorithm()
Definition: lte-fr-soft-algorithm.cc:103
ns3::Object::DoInitialize
virtual void DoInitialize(void)
Initialize() implementation.
Definition: object.cc:353
lte-fr-soft-algorithm.h
ns3::LteFrSoftAlgorithm::LteFrSoftAlgorithm
LteFrSoftAlgorithm()
Creates a trivial ffr algorithm instance.
Definition: lte-fr-soft-algorithm.cc:88
ns3::LteFfrRrcSapUser::SetPdschConfigDedicated
virtual void SetPdschConfigDedicated(uint16_t rnti, LteRrcSap::PdschConfigDedicated pdschConfigDedicated)=0
Instruct the eNodeB RRC entity to perform RrcConnectionReconfiguration to inform UE about new PdschCo...
NS_LOG_LOGIC
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
Definition: log.h:289
ns3::LteRrcSap::MeasResults
MeasResults structure.
Definition: lte-rrc-sap.h:679
ns3::EpcX2Sap::LoadInformationParams
Parameters of the LOAD INFORMATION message.
Definition: epc-x2-sap.h:304
ns3::LteFrSoftAlgorithm::CellEdge
@ CellEdge
Definition: lte-fr-soft-algorithm.h:138
ns3::LteFrSoftAlgorithm
Soft Frequency Reuse algorithm implementation.
Definition: lte-fr-soft-algorithm.h:38
ns3::LteFrSoftAlgorithm::m_measId
uint8_t m_measId
The expected measurement identity.
Definition: lte-fr-soft-algorithm.h:153
ns3::g_frSoftDownlinkDefaultConfiguration
static const struct ns3::FrSoftDownlinkDefaultConfiguration g_frSoftDownlinkDefaultConfiguration[]
soft downlink default configuration
ns3::LteFrSoftAlgorithm::DoRecvLoadInformation
virtual void DoRecvLoadInformation(EpcX2Sap::LoadInformationParams params)
DoRecvLoadInformation.
Definition: lte-fr-soft-algorithm.cc:558
ns3::LteFrSoftAlgorithm::DoDispose
virtual void DoDispose()
Destructor implementation.
Definition: lte-fr-soft-algorithm.cc:110
ns3::LteFrSoftAlgorithm::m_centerPowerOffset
uint8_t m_centerPowerOffset
center power offset
Definition: lte-fr-soft-algorithm.h:146
ns3::LteFrSoftAlgorithm::GetLteFfrRrcSapProvider
virtual LteFfrRrcSapProvider * GetLteFfrRrcSapProvider()
Export the "provider" part of the LteFfrRrcSap interface.
Definition: lte-fr-soft-algorithm.cc:208
ns3::LteFrSoftAlgorithm::GetLteFfrSapProvider
virtual LteFfrSapProvider * GetLteFfrSapProvider()
Export the "provider" part of the LteFfrSap interface.
Definition: lte-fr-soft-algorithm.cc:193
ns3::LteFrSoftAlgorithm::m_centerAreaTpc
uint8_t m_centerAreaTpc
center area tpc
Definition: lte-fr-soft-algorithm.h:149
ns3::LteRrcSap::ReportConfigEutra::MS120
@ MS120
Definition: lte-rrc-sap.h:423
ns3::LteFrSoftAlgorithm::m_dlEdgeSubBandOffset
uint8_t m_dlEdgeSubBandOffset
DL edge subband offset.
Definition: lte-fr-soft-algorithm.h:121
ns3::LteFfrAlgorithm::GetRbgSize
int GetRbgSize(int dlbandwidth)
Get RBG size for DL Bandwidth according to table 7.1.6.1-1 of 36.213.
Definition: lte-ffr-algorithm.cc:154
ns3::LteRrcSap::MeasResults::measId
uint8_t measId
measure ID
Definition: lte-rrc-sap.h:680
ns3::LteFfrAlgorithm
The abstract base class of a Frequency Reuse algorithm.
Definition: lte-ffr-algorithm.h:58
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Definition: log-macros-enabled.h:244
ns3::LteFrSoftAlgorithm::DoReportUeMeas
virtual void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults)
Implementation of LteFfrRrcSapProvider::ReportUeMeas.
Definition: lte-fr-soft-algorithm.cc:509
ns3::LteFrSoftAlgorithm::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition: lte-fr-soft-algorithm.cc:119
ns3::UintegerValue
Hold an unsigned integer type.
Definition: uinteger.h:44
ns3::LteFfrAlgorithm::m_enabledInUplink
bool m_enabledInUplink
If true FR algorithm will also work in Uplink.
Definition: lte-ffr-algorithm.h:252
ns3::LteFrSoftAlgorithm::Reconfigure
virtual void Reconfigure()
Automatic FR reconfiguration.
Definition: lte-fr-soft-algorithm.cc:242
ns3::MakeUintegerAccessor
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Definition: uinteger.h:45
ns3::LteFrSoftAlgorithm::DoGetTpc
virtual uint8_t DoGetTpc(uint16_t rnti)
DoGetTpc for UE.
Definition: lte-fr-soft-algorithm.cc:441
ns3::LteRrcSap::ThresholdEutra::THRESHOLD_RSRQ
@ THRESHOLD_RSRQ
RSRQ is used for the threshold.
Definition: lte-rrc-sap.h:355
ns3::LteFrSoftAlgorithm::m_dlRbgMap
std::vector< bool > m_dlRbgMap
DL RBG map.
Definition: lte-fr-soft-algorithm.h:127
ns3::LteFrSoftAlgorithm::m_isEdgeSubBandForCenterUe
bool m_isEdgeSubBandForCenterUe
is edge subband for center UE?
Definition: lte-fr-soft-algorithm.h:119
ns3::LteFfrRrcSapProvider
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the eNodeB RRC instan...
Definition: lte-ffr-rrc-sap.h:39
ns3::LteFrSoftAlgorithm::DoGetAvailableDlRbg
virtual std::vector< bool > DoGetAvailableDlRbg()
Implementation of LteFfrSapProvider::GetAvailableDlRbg.
Definition: lte-fr-soft-algorithm.cc:328
ns3::LteFrSoftAlgorithm::InitializeDownlinkRbgMaps
void InitializeDownlinkRbgMaps()
Initialize downlink RBG maps.
Definition: lte-fr-soft-algorithm.cc:286
ns3::LteFrSoftAlgorithm::AreaUnset
@ AreaUnset
Definition: lte-fr-soft-algorithm.h:136