A Discrete-Event Network Simulator
API
lte-ffr-soft-algorithm.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2014 Piotr Gawlowicz
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Piotr Gawlowicz <gawlowicz.p@gmail.com>
18 *
19 */
20
22
23#include "ns3/boolean.h"
24#include <ns3/log.h>
25
26namespace ns3
27{
28
29NS_LOG_COMPONENT_DEFINE("LteFfrSoftAlgorithm");
30
31NS_OBJECT_ENSURE_REGISTERED(LteFfrSoftAlgorithm);
32
35{
36 uint8_t cellId;
37 uint8_t dlBandwidth;
42 {1, 15, 2, 0, 4},
43 {2, 15, 2, 4, 4},
44 {3, 15, 2, 8, 4},
45 {1, 25, 6, 0, 6},
46 {2, 25, 6, 6, 6},
47 {3, 25, 6, 12, 6},
48 {1, 50, 21, 0, 9},
49 {2, 50, 21, 9, 9},
50 {3, 50, 21, 18, 11},
51 {1, 75, 36, 0, 12},
52 {2, 75, 36, 12, 12},
53 {3, 75, 36, 24, 15},
54 {1, 100, 28, 0, 24},
55 {2, 100, 28, 24, 24},
56 {3, 100, 28, 48, 24}};
57
60{
61 uint8_t cellId;
62 uint8_t ulBandwidth;
67 {1, 15, 3, 0, 4},
68 {2, 15, 3, 4, 4},
69 {3, 15, 3, 8, 4},
70 {1, 25, 6, 0, 6},
71 {2, 25, 6, 6, 6},
72 {3, 25, 6, 12, 6},
73 {1, 50, 21, 0, 9},
74 {2, 50, 21, 9, 9},
75 {3, 50, 21, 18, 11},
76 {1, 75, 36, 0, 12},
77 {2, 75, 36, 12, 12},
78 {3, 75, 36, 24, 15},
79 {1, 100, 28, 0, 24},
80 {2, 100, 28, 24, 24},
81 {3, 100, 28, 48, 24}};
82
89
91 : m_ffrSapUser(nullptr),
92 m_ffrRrcSapUser(nullptr),
93 m_dlEdgeSubBandOffset(0),
94 m_dlEdgeSubBandwidth(0),
95 m_ulEdgeSubBandOffset(0),
96 m_ulEdgeSubBandwidth(0),
97 m_measId(0)
98{
99 NS_LOG_FUNCTION(this);
102}
103
105{
106 NS_LOG_FUNCTION(this);
107}
108
109void
111{
112 NS_LOG_FUNCTION(this);
113 delete m_ffrSapProvider;
114 delete m_ffrRrcSapProvider;
115}
116
117TypeId
119{
120 static TypeId tid =
121 TypeId("ns3::LteFfrSoftAlgorithm")
123 .SetGroupName("Lte")
124 .AddConstructor<LteFfrSoftAlgorithm>()
125 .AddAttribute("UlCommonSubBandwidth",
126 "Uplink Medium (Common) SubBandwidth Configuration in number of Resource "
127 "Block Groups",
128 UintegerValue(6),
130 MakeUintegerChecker<uint8_t>())
131 .AddAttribute("UlEdgeSubBandOffset",
132 "Uplink Edge SubBand Offset in number of Resource Block Groups",
133 UintegerValue(0),
135 MakeUintegerChecker<uint8_t>())
136 .AddAttribute(
137 "UlEdgeSubBandwidth",
138 "Uplink Edge SubBandwidth Configuration in number of Resource Block Groups",
139 UintegerValue(6),
141 MakeUintegerChecker<uint8_t>())
142 .AddAttribute("DlCommonSubBandwidth",
143 "Downlink Medium (Common) SubBandwidth Configuration in number of "
144 "Resource Block Groups",
145 UintegerValue(6),
147 MakeUintegerChecker<uint8_t>())
148 .AddAttribute("DlEdgeSubBandOffset",
149 "Downlink Edge SubBand Offset in number of Resource Block Groups",
150 UintegerValue(0),
152 MakeUintegerChecker<uint8_t>())
153 .AddAttribute(
154 "DlEdgeSubBandwidth",
155 "Downlink Edge SubBandwidth Configuration in number of Resource Block Groups",
156 UintegerValue(0),
158 MakeUintegerChecker<uint8_t>())
159 .AddAttribute("CenterRsrqThreshold",
160 "If the RSRQ of is worse than this threshold, UE should be served in "
161 "Medium sub-band",
162 UintegerValue(30),
164 MakeUintegerChecker<uint8_t>())
165 .AddAttribute(
166 "EdgeRsrqThreshold",
167 "If the RSRQ of is worse than this threshold, UE should be served in Edge sub-band",
168 UintegerValue(20),
170 MakeUintegerChecker<uint8_t>())
171 .AddAttribute("CenterAreaPowerOffset",
172 "PdschConfigDedicated::Pa value for Center Sub-band, default value dB0",
173 UintegerValue(5),
175 MakeUintegerChecker<uint8_t>())
176 .AddAttribute("MediumAreaPowerOffset",
177 "PdschConfigDedicated::Pa value for Medium Sub-band, default value dB0",
178 UintegerValue(5),
180 MakeUintegerChecker<uint8_t>())
181 .AddAttribute("EdgeAreaPowerOffset",
182 "PdschConfigDedicated::Pa value for Edge Sub-band, default value dB0",
183 UintegerValue(5),
185 MakeUintegerChecker<uint8_t>())
186 .AddAttribute("CenterAreaTpc",
187 "TPC value which will be set in DL-DCI for UEs in center area"
188 "Absolute mode is used, default value 1 is mapped to -1 according to"
189 "TS36.213 Table 5.1.1.1-2",
190 UintegerValue(1),
192 MakeUintegerChecker<uint8_t>())
193 .AddAttribute("MediumAreaTpc",
194 "TPC value which will be set in DL-DCI for UEs in medium area"
195 "Absolute mode is used, default value 1 is mapped to -1 according to"
196 "TS36.213 Table 5.1.1.1-2",
197 UintegerValue(1),
199 MakeUintegerChecker<uint8_t>())
200 .AddAttribute("EdgeAreaTpc",
201 "TPC value which will be set in DL-DCI for UEs in edge area"
202 "Absolute mode is used, default value 1 is mapped to -1 according to"
203 "TS36.213 Table 5.1.1.1-2",
204 UintegerValue(1),
206 MakeUintegerChecker<uint8_t>());
207 return tid;
208}
209
210void
212{
213 NS_LOG_FUNCTION(this << s);
214 m_ffrSapUser = s;
215}
216
219{
220 NS_LOG_FUNCTION(this);
221 return m_ffrSapProvider;
222}
223
224void
226{
227 NS_LOG_FUNCTION(this << s);
228 m_ffrRrcSapUser = s;
229}
230
233{
234 NS_LOG_FUNCTION(this);
235 return m_ffrRrcSapProvider;
236}
237
238void
240{
241 NS_LOG_FUNCTION(this);
243
244 NS_ASSERT_MSG(m_dlBandwidth > 14, "DlBandwidth must be at least 15 to use FFR algorithms");
245 NS_ASSERT_MSG(m_ulBandwidth > 14, "UlBandwidth must be at least 15 to use FFR algorithms");
246
247 if (m_frCellTypeId != 0)
248 {
251 }
252
253 NS_LOG_LOGIC(this << " requesting Event A1 measurements"
254 << " (threshold = 0"
255 << ")");
256 LteRrcSap::ReportConfigEutra reportConfig;
259 reportConfig.threshold1.range = 0;
263}
264
265void
267{
268 NS_LOG_FUNCTION(this);
269 if (m_frCellTypeId != 0)
270 {
273 }
276 m_needReconfiguration = false;
277}
278
279void
280LteFfrSoftAlgorithm::SetDownlinkConfiguration(uint16_t cellId, uint8_t bandwidth)
281{
282 NS_LOG_FUNCTION(this);
283 for (uint16_t i = 0; i < NUM_DOWNLINK_CONFS; ++i)
284 {
285 if ((g_ffrSoftDownlinkDefaultConfiguration[i].cellId == cellId) &&
287 {
291 }
292 }
293}
294
295void
296LteFfrSoftAlgorithm::SetUplinkConfiguration(uint16_t cellId, uint8_t bandwidth)
297{
298 NS_LOG_FUNCTION(this);
299 for (uint16_t i = 0; i < NUM_UPLINK_CONFS; ++i)
300 {
301 if ((g_ffrSoftUplinkDefaultConfiguration[i].cellId == cellId) &&
303 {
307 }
308 }
309}
310
311void
313{
314 m_dlRbgMap.clear();
315 m_dlCenterRbgMap.clear();
316 m_dlMediumRbgMap.clear();
317 m_dlEdgeRbgMap.clear();
318
319 int rbgSize = GetRbgSize(m_dlBandwidth);
320 m_dlRbgMap.resize(m_dlBandwidth / rbgSize, false);
321 m_dlCenterRbgMap.resize(m_dlBandwidth / rbgSize, true);
322 m_dlMediumRbgMap.resize(m_dlBandwidth / rbgSize, false);
323 m_dlEdgeRbgMap.resize(m_dlBandwidth / rbgSize, false);
324
326 "DlCommonSubBandwidth higher than DlBandwidth");
328 "DlCommonSubBandwidth + DlEdgeSubBandOffset higher than DlBandwidth");
330 "DlEdgeSubBandOffset higher than DlBandwidth");
332 "DlEdgeSubBandwidth higher than DlBandwidth");
335 "(DlCommonSubBandwidth + DlEdgeSubBandOffset+DlEdgeSubBandwidth) higher than DlBandwidth");
336
337 for (int i = 0; i < m_dlCommonSubBandwidth / rbgSize; i++)
338 {
339 m_dlMediumRbgMap[i] = true;
340 m_dlCenterRbgMap[i] = false;
341 }
342
343 for (int i = (m_dlCommonSubBandwidth + m_dlEdgeSubBandOffset) / rbgSize;
345 i++)
346 {
347 m_dlEdgeRbgMap[i] = true;
348 m_dlCenterRbgMap[i] = false;
349 }
350}
351
352void
354{
355 m_ulRbgMap.clear();
356 m_ulCenterRbgMap.clear();
357 m_ulMediumRbgMap.clear();
358 m_ulEdgeRbgMap.clear();
359
360 m_ulRbgMap.resize(m_ulBandwidth, false);
361 m_ulCenterRbgMap.resize(m_ulBandwidth, true);
362 m_ulMediumRbgMap.resize(m_ulBandwidth, false);
363 m_ulEdgeRbgMap.resize(m_ulBandwidth, false);
364
366 "UlCommonSubBandwidth higher than UlBandwidth");
368 "UlCommonSubBandwidth + UlEdgeSubBandOffset higher than UlBandwidth");
370 "UlEdgeSubBandOffset higher than UlBandwidth");
372 "UlEdgeSubBandwidth higher than UlBandwidth");
375 "(UlCommonSubBandwidth + UlEdgeSubBandOffset+UlEdgeSubBandwidth) higher than UlBandwidth");
376
377 for (uint8_t i = 0; i < m_ulCommonSubBandwidth; i++)
378 {
379 m_ulMediumRbgMap[i] = true;
380 m_ulCenterRbgMap[i] = false;
381 }
382
385 i++)
386 {
387 m_ulEdgeRbgMap[i] = true;
388 m_ulCenterRbgMap[i] = false;
389 }
390}
391
392std::vector<bool>
394{
395 NS_LOG_FUNCTION(this);
396
398 {
399 Reconfigure();
400 }
401
402 if (m_dlRbgMap.empty())
403 {
405 }
406
407 return m_dlRbgMap;
408}
409
410bool
412{
413 NS_LOG_FUNCTION(this);
414
415 bool isCenterRbg = m_dlCenterRbgMap[rbgId];
416 bool isMediumRbg = m_dlMediumRbgMap[rbgId];
417 bool isEdgeRbg = m_dlEdgeRbgMap[rbgId];
418
419 std::map<uint16_t, uint8_t>::iterator it = m_ues.find(rnti);
420 if (it == m_ues.end())
421 {
422 m_ues.insert(std::pair<uint16_t, uint8_t>(rnti, AreaUnset));
423 }
424
425 it = m_ues.find(rnti);
426
427 // if UE area is unknown, serve UE in medium (common) RBGs
428 if (it->second == AreaUnset)
429 {
430 return isMediumRbg;
431 }
432
433 bool isCenterUe = false;
434 bool isMediumUe = false;
435 bool isEdgeUe = false;
436
437 if (it->second == CenterArea)
438 {
439 isCenterUe = true;
440 }
441 else if (it->second == MediumArea)
442 {
443 isMediumUe = true;
444 }
445 else if (it->second == EdgeArea)
446 {
447 isEdgeUe = true;
448 }
449
450 return (isCenterRbg && isCenterUe) || (isMediumRbg && isMediumUe) || (isEdgeRbg && isEdgeUe);
451}
452
453std::vector<bool>
455{
456 NS_LOG_FUNCTION(this);
457
458 if (m_ulRbgMap.empty())
459 {
461 }
462
463 return m_ulRbgMap;
464}
465
466bool
468{
469 NS_LOG_FUNCTION(this);
470
472 {
473 return true;
474 }
475
476 bool isCenterRbg = m_ulCenterRbgMap[rbgId];
477 bool isMediumRbg = m_ulMediumRbgMap[rbgId];
478 bool isEdgeRbg = m_ulEdgeRbgMap[rbgId];
479
480 std::map<uint16_t, uint8_t>::iterator it = m_ues.find(rnti);
481 if (it == m_ues.end())
482 {
483 m_ues.insert(std::pair<uint16_t, uint8_t>(rnti, AreaUnset));
484 }
485
486 it = m_ues.find(rnti);
487
488 // if UE area is unknown, serve UE in medium (common) RBGs
489 if (it->second == AreaUnset)
490 {
491 return isMediumRbg;
492 }
493
494 bool isCenterUe = false;
495 bool isMediumUe = false;
496 bool isEdgeUe = false;
497
498 if (it->second == CenterArea)
499 {
500 isCenterUe = true;
501 }
502 else if (it->second == MediumArea)
503 {
504 isMediumUe = true;
505 }
506 else if (it->second == EdgeArea)
507 {
508 isEdgeUe = true;
509 }
510
511 return (isCenterRbg && isCenterUe) || (isMediumRbg && isMediumUe) || (isEdgeRbg && isEdgeUe);
512}
513
514void
517{
518 NS_LOG_FUNCTION(this);
519 NS_LOG_WARN("Method should not be called, because it is empty");
520}
521
522void
525{
526 NS_LOG_FUNCTION(this);
527 NS_LOG_WARN("Method should not be called, because it is empty");
528}
529
530void
531LteFfrSoftAlgorithm::DoReportUlCqiInfo(std::map<uint16_t, std::vector<double>> ulCqiMap)
532{
533 NS_LOG_FUNCTION(this);
534 NS_LOG_WARN("Method should not be called, because it is empty");
535}
536
537uint8_t
539{
540 NS_LOG_FUNCTION(this);
541
543 {
544 return 1; // 1 is mapped to 0 for Accumulated mode, and to -1 in Absolute mode TS36.213
545 // Table 5.1.1.1-2
546 }
547
548 // TS36.213 Table 5.1.1.1-2
549 // TPC | Accumulated Mode | Absolute Mode
550 //------------------------------------------------
551 // 0 | -1 | -4
552 // 1 | 0 | -1
553 // 2 | 1 | 1
554 // 3 | 3 | 4
555 //------------------------------------------------
556 // here Absolute mode is used
557
558 std::map<uint16_t, uint8_t>::iterator it = m_ues.find(rnti);
559 if (it == m_ues.end())
560 {
561 return 1;
562 }
563
564 if (it->second == CenterArea)
565 {
566 return m_centerAreaTpc;
567 }
568 else if (it->second == MediumArea)
569 {
570 return m_mediumAreaTpc;
571 }
572 else if (it->second == EdgeArea)
573 {
574 return m_edgeAreaTpc;
575 }
576
577 return 1;
578}
579
580uint16_t
582{
583 NS_LOG_FUNCTION(this);
584
586 {
587 return m_ulBandwidth;
588 }
589
590 uint8_t centerSubBandwidth = 0;
591 uint8_t mediumSubBandwidth = 0;
592 uint8_t edgeSubBandwidth = 0;
593
594 for (std::size_t i = 0; i < m_ulCenterRbgMap.size(); i++)
595 {
596 if (m_ulCenterRbgMap[i] == true)
597 {
598 centerSubBandwidth++;
599 }
600 }
601
602 for (std::size_t i = 0; i < m_ulMediumRbgMap.size(); i++)
603 {
604 if (m_ulMediumRbgMap[i] == true)
605 {
606 mediumSubBandwidth++;
607 }
608 }
609
610 for (std::size_t i = 0; i < m_ulEdgeRbgMap.size(); i++)
611 {
612 if (m_ulEdgeRbgMap[i] == true)
613 {
614 edgeSubBandwidth++;
615 }
616 }
617
618 uint8_t minContinuousUlBandwidth = m_ulBandwidth;
619
620 minContinuousUlBandwidth =
621 ((centerSubBandwidth > 0) && (centerSubBandwidth < minContinuousUlBandwidth))
622 ? centerSubBandwidth
623 : minContinuousUlBandwidth;
624
625 minContinuousUlBandwidth =
626 ((mediumSubBandwidth > 0) && (mediumSubBandwidth < minContinuousUlBandwidth))
627 ? mediumSubBandwidth
628 : minContinuousUlBandwidth;
629
630 minContinuousUlBandwidth =
631 ((edgeSubBandwidth > 0) && (edgeSubBandwidth < minContinuousUlBandwidth))
632 ? edgeSubBandwidth
633 : minContinuousUlBandwidth;
634
635 NS_LOG_INFO("minContinuousUlBandwidth: " << (int)minContinuousUlBandwidth);
636
637 return minContinuousUlBandwidth;
638}
639
640void
642{
643 NS_LOG_FUNCTION(this << rnti << (uint16_t)measResults.measId);
644 NS_LOG_INFO("RNTI :" << rnti << " MeasId: " << (uint16_t)measResults.measId
645 << " RSRP: " << (uint16_t)measResults.measResultPCell.rsrpResult
646 << " RSRQ: " << (uint16_t)measResults.measResultPCell.rsrqResult);
647
649 "CenterSubBandThreshold must be higher than EdgeSubBandThreshold");
650
651 if (measResults.measId != m_measId)
652 {
653 NS_LOG_WARN("Ignoring measId " << (uint16_t)measResults.measId);
654 }
655 else
656 {
657 std::map<uint16_t, uint8_t>::iterator it = m_ues.find(rnti);
658 if (it == m_ues.end())
659 {
660 m_ues.insert(std::pair<uint16_t, uint8_t>(rnti, AreaUnset));
661 }
662
663 it = m_ues.find(rnti);
665 {
666 if (it->second != CenterArea)
667 {
668 NS_LOG_INFO("UE RNTI: " << rnti << " will be served in Center sub-band");
669 it->second = CenterArea;
670
671 LteRrcSap::PdschConfigDedicated pdschConfigDedicated;
672 pdschConfigDedicated.pa = m_centerAreaPowerOffset;
673 m_ffrRrcSapUser->SetPdschConfigDedicated(rnti, pdschConfigDedicated);
674 }
675 }
677 {
678 if (it->second != EdgeArea)
679 {
680 NS_LOG_INFO("UE RNTI: " << rnti << " will be served in Edge sub-band");
681 it->second = EdgeArea;
682
683 LteRrcSap::PdschConfigDedicated pdschConfigDedicated;
684 pdschConfigDedicated.pa = m_edgeAreaPowerOffset;
685 m_ffrRrcSapUser->SetPdschConfigDedicated(rnti, pdschConfigDedicated);
686 }
687 }
688 else
689 {
690 if (it->second != MediumArea)
691 {
692 NS_LOG_INFO("UE RNTI: " << rnti << " will be served in Medium sub-band");
693 it->second = MediumArea;
694
695 LteRrcSap::PdschConfigDedicated pdschConfigDedicated;
696 pdschConfigDedicated.pa = m_mediumAreaPowerOffset;
697 m_ffrRrcSapUser->SetPdschConfigDedicated(rnti, pdschConfigDedicated);
698 }
699 }
700 }
701}
702
703void
705{
706 NS_LOG_FUNCTION(this);
707 NS_LOG_WARN("Method should not be called, because it is empty");
708}
709
710} // end of namespace ns3
The abstract base class of a Frequency Reuse algorithm.
bool m_needReconfiguration
If true FR algorithm will be reconfigured.
uint8_t m_frCellTypeId
FFR cell type ID for automatic configuration.
int GetRbgSize(int dlbandwidth)
Get RBG size for DL Bandwidth according to table 7.1.6.1-1 of 36.213.
bool m_enabledInUplink
If true FR algorithm will also work in Uplink.
uint8_t m_dlBandwidth
downlink bandwidth in RBs
uint8_t m_ulBandwidth
uplink bandwidth in RBs
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...
virtual void SetPdschConfigDedicated(uint16_t rnti, LteRrcSap::PdschConfigDedicated pdschConfigDedicated)=0
Instruct the eNodeB RRC entity to perform RrcConnectionReconfiguration to inform UE about new PdschCo...
virtual uint8_t AddUeMeasReportConfigForFfr(LteRrcSap::ReportConfigEutra reportConfig)=0
Request a certain reporting configuration to be fulfilled by the UEs attached to the eNodeB entity.
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the MAC Scheduler ins...
Definition: lte-ffr-sap.h:41
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
Definition: lte-ffr-sap.h:141
Soft Fractional Frequency Reuse algorithm implementation.
void SetUplinkConfiguration(uint16_t cellId, uint8_t bandwidth)
Set uplink configuration function.
std::vector< bool > m_dlRbgMap
DL RBG Map.
LteFfrSoftAlgorithm()
Creates a trivial ffr algorithm instance.
void DoInitialize() override
Initialize() implementation.
LteFfrRrcSapProvider * GetLteFfrRrcSapProvider() override
Export the "provider" part of the LteFfrRrcSap interface.
uint8_t m_dlEdgeSubBandOffset
DL edge subband offset.
LteFfrSapProvider * m_ffrSapProvider
FFR SAP provider.
friend class MemberLteFfrRrcSapProvider< LteFfrSoftAlgorithm >
let the forwarder class access the protected and private members
std::vector< bool > m_ulMediumRbgMap
UL medium RBG map.
uint8_t m_ulEdgeSubBandwidth
UL edge subbandwidth.
LteFfrSapProvider * GetLteFfrSapProvider() override
Export the "provider" part of the LteFfrSap interface.
uint8_t m_centerAreaTpc
center area tpc
std::vector< bool > m_ulRbgMap
UL RBG map.
void DoDispose() override
Destructor implementation.
std::vector< bool > m_dlMediumRbgMap
DL medium RBG map.
void SetLteFfrSapUser(LteFfrSapUser *s) override
Set the "user" part of the LteFfrSap interface that this frequency reuse algorithm instance will inte...
std::vector< bool > DoGetAvailableDlRbg() override
Implementation of LteFfrSapProvider::GetAvailableDlRbg.
std::vector< bool > m_dlEdgeRbgMap
DL edge RBG map.
bool DoIsUlRbgAvailableForUe(int i, uint16_t rnti) override
Implementation of LteFfrSapProvider::IsUlRbgAvailableForUe.
uint8_t m_mediumAreaPowerOffset
medium area power offset
void SetLteFfrRrcSapUser(LteFfrRrcSapUser *s) override
Set the "user" part of the LteFfrRrcSap interface that this frequency reuse algorithm instance will i...
uint8_t m_edgeAreaPowerOffset
edge area power offset
std::vector< bool > m_dlCenterRbgMap
DL center RBG map.
uint8_t m_mediumAreaTpc
medium area tpc
void InitializeUplinkRbgMaps()
Initialize uplink RBG maps function.
uint8_t m_ulEdgeSubBandOffset
UL edge subband offset.
uint8_t m_dlEdgeSubBandwidth
DL edge subbandwidth.
uint8_t m_edgeSubBandThreshold
edge subband threshold
LteFfrSapUser * m_ffrSapUser
FFR SAP user.
std::vector< bool > m_ulCenterRbgMap
UL center RBG map.
void SetDownlinkConfiguration(uint16_t cellId, uint8_t bandwidth)
Set downlink configuration function.
std::vector< bool > m_ulEdgeRbgMap
UL edge RBG map.
uint8_t m_ulCommonSubBandwidth
UL common subbandwidth.
void Reconfigure() override
Automatic FR reconfiguration.
void DoReportDlCqiInfo(const struct FfMacSchedSapProvider::SchedDlCqiInfoReqParameters &params) override
DoReportDlCqiInfo.
uint16_t DoGetMinContinuousUlBandwidth() override
DoGetMinContinuousUlBandwidth in number of RB.
uint8_t m_centerAreaPowerOffset
center area power offset
uint8_t m_centerSubBandThreshold
center subband threshold
uint8_t m_measId
The expected measurement identity.
std::vector< bool > DoGetAvailableUlRbg() override
Implementation of LteFfrSapProvider::GetAvailableUlRbg.
void DoReportUlCqiInfo(const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters &params) override
DoReportUlCqiInfo.
LteFfrRrcSapProvider * m_ffrRrcSapProvider
FFR RRC SAP provider.
LteFfrRrcSapUser * m_ffrRrcSapUser
FFR RRC SAP user.
bool DoIsDlRbgAvailableForUe(int i, uint16_t rnti) override
Implementation of LteFfrSapProvider::IsDlRbgAvailableForUe.
uint8_t m_dlCommonSubBandwidth
DL common subbandwidth.
void InitializeDownlinkRbgMaps()
Initialize downlink RBG maps function.
std::map< uint16_t, uint8_t > m_ues
UEs.
friend class MemberLteFfrSapProvider< LteFfrSoftAlgorithm >
let the forwarder class access the protected and private members
void DoRecvLoadInformation(EpcX2Sap::LoadInformationParams params) override
DoRecvLoadInformation.
uint8_t m_edgeAreaTpc
edge area tpc
uint8_t DoGetTpc(uint16_t rnti) override
DoGetTpc for UE.
void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults) override
Implementation of LteFfrRrcSapProvider::ReportUeMeas.
static TypeId GetTypeId()
Get the type ID.
virtual void DoInitialize()
Initialize() implementation.
Definition: object.cc:360
a unique identifier for an interface.
Definition: type-id.h:60
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:935
Hold an unsigned integer type.
Definition: uinteger.h:45
#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:86
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Definition: uinteger.h:46
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:202
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
Definition: log.h:282
#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.
Definition: log.h:261
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
Definition: log.h:275
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition: object-base.h:45
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static const struct ns3::FfrSoftUplinkDefaultConfiguration g_ffrSoftUplinkDefaultConfiguration[]
the soft uplink default configuration
const uint16_t NUM_DOWNLINK_CONFS(sizeof(g_ffrEnhancedDownlinkDefaultConfiguration)/sizeof(FfrEnhancedDownlinkDefaultConfiguration))
const uint16_t NUM_UPLINK_CONFS(sizeof(g_ffrEnhancedUplinkDefaultConfiguration)/sizeof(FfrEnhancedUplinkDefaultConfiguration))
static const struct ns3::FfrSoftDownlinkDefaultConfiguration g_ffrSoftDownlinkDefaultConfiguration[]
the soft downlink default configuration
Parameters of the LOAD INFORMATION message.
Definition: epc-x2-sap.h:305
Parameters of the SCHED_DL_CQI_INFO_REQ primitive.
Parameters of the SCHED_UL_CQI_INFO_REQ primitive.
uint8_t rsrqResult
the RSRQ result
Definition: lte-rrc-sap.h:661
uint8_t rsrpResult
the RSRP result
Definition: lte-rrc-sap.h:660
MeasResults structure.
Definition: lte-rrc-sap.h:703
uint8_t measId
measure ID
Definition: lte-rrc-sap.h:704
MeasResultPCell measResultPCell
measurement result primary cell
Definition: lte-rrc-sap.h:705
PdschConfigDedicated structure.
Definition: lte-rrc-sap.h:157
Specifies criteria for triggering of an E-UTRA measurement reporting event.
Definition: lte-rrc-sap.h:367
@ RSRQ
Reference Signal Received Quality.
Definition: lte-rrc-sap.h:418
enum ns3::LteRrcSap::ReportConfigEutra::@68 reportInterval
Report interval enumeration.
enum ns3::LteRrcSap::ReportConfigEutra::@65 eventId
Event enumeration.
enum ns3::LteRrcSap::ReportConfigEutra::@66 triggerQuantity
Trigger type enumeration.
ThresholdEutra threshold1
Threshold for event A1, A2, A4, and A5.
Definition: lte-rrc-sap.h:387
@ EVENT_A1
Event A1: Serving becomes better than absolute threshold.
Definition: lte-rrc-sap.h:378
@ THRESHOLD_RSRQ
RSRQ is used for the threshold.
Definition: lte-rrc-sap.h:359
uint8_t range
Value range used in RSRP/RSRQ threshold.
Definition: lte-rrc-sap.h:362
enum ns3::LteRrcSap::ThresholdEutra::@63 choice
Threshold enumeration.