22 #include <ns3/simulator.h>
24 #include <ns3/callback.h>
25 #include <ns3/config.h>
26 #include <ns3/string.h>
27 #include <ns3/double.h>
29 #include <ns3/boolean.h>
30 #include <ns3/pointer.h>
32 #include "ns3/mobility-helper.h"
33 #include "ns3/lte-helper.h"
34 #include "ns3/point-to-point-epc-helper.h"
35 #include "ns3/internet-module.h"
36 #include "ns3/point-to-point-module.h"
37 #include "ns3/applications-module.h"
39 #include <ns3/ff-mac-scheduler.h>
40 #include <ns3/lte-enb-net-device.h>
41 #include <ns3/lte-enb-phy.h>
42 #include <ns3/lte-enb-rrc.h>
43 #include <ns3/lte-ue-net-device.h>
44 #include <ns3/lte-ue-phy.h>
45 #include <ns3/lte-ue-rrc.h>
50 #include <ns3/lte-common.h>
64 :
TestSuite (
"lte-frequency-reuse", SYSTEM)
69 std::vector<bool> availableDlRb;
70 std::vector<bool> availableUlRb;
71 for (uint32_t i = 0; i < 12; i++)
73 availableDlRb.push_back (
true);
74 availableUlRb.push_back (
true);
76 for (uint32_t i = 12; i < 25; i++)
78 availableDlRb.push_back (
false);
79 availableUlRb.push_back (
false);
82 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrPf1", 1,
"ns3::PfFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
83 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrPf2", 5,
"ns3::PfFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
84 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrPss1", 1,
"ns3::PssFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
85 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrPss2", 5,
"ns3::PssFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
86 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrCqa1", 1,
"ns3::CqaFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
87 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrCqa2", 5,
"ns3::CqaFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
88 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrFdTbfq1", 1,
"ns3::FdTbfqFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
89 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrFdTbfq2", 5,
"ns3::FdTbfqFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
90 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrTdTbfq1", 1,
"ns3::TdTbfqFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
91 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrTdTbfq2", 5,
"ns3::TdTbfqFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
93 availableDlRb.clear ();
94 availableUlRb.clear ();
95 for (uint32_t i = 0; i < 6; i++)
97 availableDlRb.push_back (
true);
98 availableUlRb.push_back (
true);
100 for (uint32_t i = 6; i < 12; i++)
102 availableDlRb.push_back (
false);
103 availableUlRb.push_back (
false);
105 for (uint32_t i = 12; i < 18; i++)
107 availableDlRb.push_back (
true);
108 availableUlRb.push_back (
true);
110 for (uint32_t i = 18; i < 25; i++)
112 availableDlRb.push_back (
false);
113 availableUlRb.push_back (
false);
116 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrPf1", 1,
"ns3::PfFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
117 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrPf2", 5,
"ns3::PfFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
118 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrPss1", 1,
"ns3::PssFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
119 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrPss2", 5,
"ns3::PssFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
120 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrCqa1", 1,
"ns3::CqaFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
121 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrCqa2", 5,
"ns3::CqaFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
122 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrCqaFdTbfq1", 1,
"ns3::FdTbfqFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
123 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrCqaFdTbfq2", 5,
"ns3::FdTbfqFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
124 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrCqaTdTbfq1", 1,
"ns3::TdTbfqFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
125 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrCqaTdTbfq2", 5,
"ns3::TdTbfqFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
179 uint32_t userNum,uint8_t dlBandwidth,uint8_t ulBandwidth,
180 std::vector<bool> availableDlRb, std::vector<bool> availableUlRb)
183 m_dlBandwidth (dlBandwidth),
184 m_ulBandwidth (ulBandwidth),
185 m_availableDlRb (availableDlRb),
186 m_usedMutedDlRbg (false),
187 m_availableUlRb (availableUlRb),
188 m_usedMutedUlRbg (false)
202 Values::const_iterator it;
221 Values::const_iterator it;
245 std::string schedulerType,
246 uint8_t dlBandwidth, uint8_t ulBandwidth,
247 uint8_t dlSubBandOffset, uint8_t dlSubBandwidth,
248 uint8_t ulSubBandOffset, uint8_t ulSubBandwidth,
249 std::vector<bool> availableDlRb, std::vector<bool> availableUlRb)
250 :
LteFrTestCase (name, userNum, dlBandwidth, ulBandwidth, availableDlRb, availableUlRb),
251 m_schedulerType (schedulerType),
252 m_dlSubBandOffset (dlSubBandOffset),
253 m_dlSubBandwidth (dlSubBandwidth),
254 m_ulSubBandOffset (ulSubBandOffset),
255 m_ulSubBandwidth (ulSubBandwidth)
306 lteHelper->
Attach (ueDevs, enbDevs.
Get (0));
320 dlChannel->AddRx (testDlSpectrumPhy);
331 ulChannel->AddRx (testUlSpectrumPhy);
336 Simulator::Stop (
Seconds (0.500));
340 "Scheduler used DL RBG muted by FFR Algorithm");
343 "Scheduler used UL RBG muted by FFR Algorithm");
345 Simulator::Destroy ();
351 std::string schedulerType,
352 uint8_t dlBandwidth, uint8_t ulBandwidth,
353 uint8_t dlCommonSubBandwidth, uint8_t dlEdgeSubBandOffset, uint8_t dlEdgeSubBandwidth,
354 uint8_t ulCommonSubBandwidth, uint8_t ulEdgeSubBandOffset, uint8_t ulEdgeSubBandwidth,
355 std::vector<bool> availableDlRb, std::vector<bool> availableUlRb)
356 :
LteFrTestCase (name, userNum, dlBandwidth, ulBandwidth, availableDlRb, availableUlRb),
357 m_schedulerType (schedulerType),
358 m_dlCommonSubBandwidth (dlCommonSubBandwidth),
359 m_dlEdgeSubBandOffset (dlEdgeSubBandOffset),
360 m_dlEdgeSubBandwidth (dlEdgeSubBandwidth),
361 m_ulCommonSubBandwidth (ulCommonSubBandwidth),
362 m_ulEdgeSubBandOffset (ulEdgeSubBandOffset),
363 m_ulEdgeSubBandwidth (ulEdgeSubBandwidth)
415 lteHelper->
Attach (ueDevs, enbDevs.
Get (0));
429 dlChannel->AddRx (testDlSpectrumPhy);
440 ulChannel->AddRx (testUlSpectrumPhy);
445 Simulator::Stop (
Seconds (0.500));
449 "Scheduler used DL RBG muted by FFR Algorithm");
452 "Scheduler used UL RBG muted by FFR Algorithm");
454 Simulator::Destroy ();
473 m_schedulerType (schedulerType)
494 Values::const_iterator it;
499 NS_LOG_DEBUG (
"RB " << i <<
" POWER: " <<
" " << power);
510 "Wrong Data Channel DL Power level");
526 Values::const_iterator it;
539 "Wrong Data Channel UL Power level" <<
Simulator::Now ().GetSeconds ());
549 NS_LOG_DEBUG (
"Teleport UE to : (" << x <<
", " << y <<
", 0)");
556 std::vector<bool> expectedDlRb)
559 NS_LOG_DEBUG (
"Teleport UE to : (" << x <<
", " << y <<
", 0)");
568 std::vector<bool> expectedDlRb)
571 NS_LOG_DEBUG (
"Teleport UE to : (" << x <<
", " << y <<
", 0)");
621 double eNbTxPower = 30;
651 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
652 positionAlloc->
Add (Vector (1000, 0.0, 0.0));
653 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
654 positionAlloc->
Add (Vector (1020, 0.0, 0.0));
696 lteHelper->
Attach (ueDevs1, enbDevs.
Get (0));
697 lteHelper->
Attach (ueDevs2, enbDevs.
Get (1));
712 dlChannel->AddRx (testDlSpectrumPhy);
725 ulChannel->AddRx (testUlSpectrumPhy);
732 std::vector<bool> expectedDlRbCenterArea;
734 std::vector<bool> expectedUlRbCenterArea;
736 for (uint32_t i = 0; i < 6; i++)
738 expectedDlRbCenterArea[i] =
true;
739 expectedUlRbCenterArea[i] =
true;
742 std::vector<bool> expectedDlRbEdgeArea;
744 std::vector<bool> expectedUlRbEdgeArea;
746 for (uint32_t i = 12; i < 18; i++)
748 expectedDlRbEdgeArea[i] =
true;
749 expectedUlRbEdgeArea[i] =
true;
767 Simulator::Stop (
Seconds (1.500));
771 "Scheduler used DL RB muted by FFR Algorithm");
773 "Scheduler used UL RB muted by FFR Algorithm");
775 Simulator::Destroy ();
798 double eNbTxPower = 30;
828 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
829 positionAlloc->
Add (Vector (1000, 0.0, 0.0));
830 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
831 positionAlloc->
Add (Vector (1020, 0.0, 0.0));
871 lteHelper->
Attach (ueDevs1, enbDevs.
Get (0));
872 lteHelper->
Attach (ueDevs2, enbDevs.
Get (1));
887 dlChannel->AddRx (testDlSpectrumPhy);
900 ulChannel->AddRx (testUlSpectrumPhy);
908 std::vector<bool> expectedDlRbCenterArea;
910 std::vector<bool> expectedUlRbCenterArea;
912 for (uint32_t i = 0; i < 8; i++)
914 expectedDlRbCenterArea[i] =
true;
915 expectedUlRbCenterArea[i] =
true;
917 for (uint32_t i = 16; i < 25; i++)
919 expectedDlRbCenterArea[i] =
true;
922 std::vector<bool> expectedDlRbEdgeArea;
924 std::vector<bool> expectedUlRbEdgeArea;
926 for (uint32_t i = 8; i < 16; i++)
928 expectedDlRbEdgeArea[i] =
true;
929 expectedUlRbEdgeArea[i] =
true;
947 Simulator::Stop (
Seconds (1.500));
952 "Scheduler used DL RBG muted by FFR Algorithm");
956 "Scheduler used UL RB muted by FFR Algorithm");
958 Simulator::Destroy ();
981 double eNbTxPower = 30;
1011 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
1012 positionAlloc->
Add (Vector (1000, 0.0, 0.0));
1013 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
1014 positionAlloc->
Add (Vector (1020, 0.0, 0.0));
1059 lteHelper->
Attach (ueDevs1, enbDevs.
Get (0));
1060 lteHelper->
Attach (ueDevs2, enbDevs.
Get (1));
1075 dlChannel->AddRx (testDlSpectrumPhy);
1088 ulChannel->AddRx (testUlSpectrumPhy);
1095 double expectedDlPowerCenterArea = 0.5;
1096 std::vector<bool> expectedDlRbCenterArea;
1098 std::vector<bool> expectedUlRbCenterArea;
1100 for (uint32_t i = 6; i < 12; i++)
1102 expectedDlRbCenterArea[i] =
true;
1103 expectedUlRbCenterArea[i] =
true;
1105 for (uint32_t i = 18; i < 25; i++)
1107 expectedDlRbCenterArea[i] =
true;
1108 expectedUlRbCenterArea[i] =
true;
1111 double expectedDlPowerMiddleArea = 1.0;
1112 std::vector<bool> expectedDlRbMiddleArea;
1114 std::vector<bool> expectedUlRbMiddleArea;
1116 for (uint32_t i = 0; i < 6; i++)
1118 expectedDlRbMiddleArea[i] =
true;
1119 expectedUlRbMiddleArea[i] =
true;
1122 double expectedDlPowerEdgeArea = 2.0;
1123 std::vector<bool> expectedDlRbEdgeArea;
1125 std::vector<bool> expectedUlRbEdgeArea;
1127 for (uint32_t i = 12; i < 18; i++)
1129 expectedDlRbEdgeArea[i] =
true;
1130 expectedUlRbEdgeArea[i] =
true;
1135 expectedDlPowerCenterArea, expectedDlRbCenterArea );
1141 expectedDlPowerMiddleArea, expectedDlRbMiddleArea );
1147 expectedDlPowerEdgeArea, expectedDlRbEdgeArea );
1153 expectedDlPowerMiddleArea, expectedDlRbMiddleArea );
1159 expectedDlPowerCenterArea, expectedDlRbCenterArea );
1163 Simulator::Stop (
Seconds (2.500));
1167 "Scheduler used DL RBG muted by FFR Algorithm");
1170 "Scheduler used UL RB muted by FFR Algorithm");
1172 Simulator::Destroy ();
1179 NS_LOG_INFO (
"Creating LteEnhancedFfrAreaTestCase");
1197 double eNbTxPower = 30;
1228 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
1229 positionAlloc->
Add (Vector (1000, 0.0, 0.0));
1230 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
1231 positionAlloc->
Add (Vector (1020, 0.0, 0.0));
1280 lteHelper->
Attach (ueDevs1, enbDevs.
Get (0));
1281 lteHelper->
Attach (ueDevs2, enbDevs.
Get (1));
1296 dlChannel->AddRx (testDlSpectrumPhy);
1309 ulChannel->AddRx (testUlSpectrumPhy);
1316 double expectedDlPowerCenterArea = 0.251189;
1317 std::vector<bool> expectedDlRbCenterArea;
1319 std::vector<bool> expectedUlRbCenterArea;
1321 for (uint32_t i = 0; i < 8; i++)
1323 expectedDlRbCenterArea[i] =
true;
1324 expectedUlRbCenterArea[i] =
true;
1326 for (uint32_t i = 12; i < 16; i++)
1328 expectedDlRbCenterArea[i] =
true;
1329 expectedUlRbCenterArea[i] =
true;
1331 for (uint32_t i = 20; i < 24; i++)
1333 expectedDlRbCenterArea[i] =
true;
1334 expectedUlRbCenterArea[i] =
true;
1337 double expectedDlPowerMiddleArea = 0.251189;
1338 std::vector<bool> expectedDlRbMiddleArea;
1340 std::vector<bool> expectedUlRbMiddleArea;
1342 for (uint32_t i = 4; i < 8; i++)
1344 expectedDlRbMiddleArea[i] =
true;
1345 expectedUlRbMiddleArea[i] =
true;
1348 double expectedDlPowerEdgeArea = 1.0;
1349 std::vector<bool> expectedDlRbEdgeArea;
1351 std::vector<bool> expectedUlRbEdgeArea;
1353 for (uint32_t i = 0; i < 4; i++)
1355 expectedDlRbEdgeArea[i] =
true;
1356 expectedUlRbEdgeArea[i] =
true;
1361 expectedDlPowerCenterArea, expectedDlRbCenterArea );
1367 expectedDlPowerMiddleArea, expectedDlRbMiddleArea );
1373 expectedDlPowerEdgeArea, expectedDlRbEdgeArea );
1379 expectedDlPowerCenterArea, expectedDlRbCenterArea );
1385 expectedDlPowerMiddleArea, expectedDlRbMiddleArea );
1389 Simulator::Stop (
Seconds (2.500));
1393 "Scheduler used DL RBG muted by FFR Algorithm");
1396 "Scheduler used UL RB muted by FFR Algorithm");
1398 Simulator::Destroy ();
1405 NS_LOG_INFO (
"Creating LteDistributedFfrAreaTestCase");
1423 double eNbTxPower = 30;
1437 uint8_t bandwidth = 25;
1444 Ptr<Node> pgw = epcHelper->GetPgwNode ();
1448 remoteHostContainer.
Create (1);
1451 internet.
Install (remoteHostContainer);
1460 ipv4h.
SetBase (
"1.0.0.0",
"255.0.0.0");
1492 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
1493 positionAlloc->
Add (Vector (1000, 0.0, 0.0));
1495 positionAlloc->
Add (Vector (200, 0.0, 0.0));
1496 positionAlloc->
Add (Vector (200, 0.0, 0.0));
1497 positionAlloc->
Add (Vector (800, 0.0, 0.0));
1529 ueLteDevs.
Add (ueDevs1);
1530 ueLteDevs.
Add (ueDevs2);
1540 for (uint32_t u = 0; u < ueNodes.
GetN (); ++u)
1545 ueStaticRouting->
SetDefaultRoute (epcHelper->GetUeDefaultGatewayAddress (), 1);
1549 lteHelper->
Attach (ueDevs1, enbDevs.
Get (0));
1550 lteHelper->
Attach (ueDevs2, enbDevs.
Get (1));
1554 uint16_t dlPort = 10000;
1555 uint16_t ulPort = 20000;
1564 for (uint32_t u = 0; u < ueNodes.
GetN (); ++u)
1569 ueStaticRouting->
SetDefaultRoute (epcHelper->GetUeDefaultGatewayAddress (), 1);
1571 for (uint32_t b = 0; b < 1; ++b)
1583 clientApps.
Add (dlClientHelper.Install (remoteHost));
1586 serverApps.
Add (dlPacketSinkHelper.
Install (ue));
1592 clientApps.
Add (ulClientHelper.
Install (ue));
1595 serverApps.
Add (ulPacketSinkHelper.
Install (remoteHost));
1600 dlpf.localPortEnd = dlPort;
1606 EpsBearer bearer (EpsBearer::NGBR_VIDEO_TCP_DEFAULT);
1610 serverApps.
Start (startTime);
1611 clientApps.
Start (startTime);
1622 dlChannel->AddRx (testDlSpectrumPhy);
1635 ulChannel->AddRx (testUlSpectrumPhy);
1642 double expectedDlPowerCenterArea = 1.0;
1643 std::vector<bool> expectedDlRbCenterArea;
1645 std::vector<bool> expectedUlRbCenterArea;
1649 expectedDlRbCenterArea[i] =
true;
1650 expectedUlRbCenterArea[i] =
true;
1653 double expectedDlPowerEdgeArea = 2.0;
1654 std::vector<bool> expectedDlRbEdgeArea;
1655 expectedDlRbEdgeArea.resize (m_dlBandwidth,
false);
1656 std::vector<bool> expectedUlRbEdgeArea;
1658 for (uint32_t i = 0; i < 6; i++)
1660 expectedDlRbEdgeArea[i] =
true;
1661 expectedUlRbEdgeArea[i] =
true;
1664 std::vector<bool> expectedDlRbEdgeArea2;
1665 expectedDlRbEdgeArea2.resize (m_dlBandwidth,
false);
1666 std::vector<bool> expectedUlRbEdgeArea2;
1667 expectedUlRbEdgeArea2.resize (m_dlBandwidth,
false);
1668 for (uint32_t i = 6; i < 12; i++)
1670 expectedDlRbEdgeArea2[i] =
true;
1671 expectedUlRbEdgeArea2[i] =
true;
1677 expectedDlPowerCenterArea, expectedDlRbCenterArea );
1683 expectedDlPowerEdgeArea, expectedDlRbEdgeArea );
1689 expectedDlPowerEdgeArea, expectedDlRbEdgeArea2 );
1695 expectedDlPowerEdgeArea, expectedDlRbEdgeArea );
1701 expectedDlPowerCenterArea, expectedDlRbCenterArea );
1705 Simulator::Stop (
Seconds (2.500));
1710 "Scheduler used DL RBG muted by FFR Algorithm");
1714 "Scheduler used UL RB muted by FFR Algorithm");
1716 Simulator::Destroy ();
Values::const_iterator ConstValuesEnd() const
holds a vector of ns3::Application pointers.
uint8_t Add(PacketFilter f)
add a PacketFilter to the Traffic Flow Template
void SetCellId(uint16_t cellId)
Simulation virtual time values and global simulation resolution.
std::string m_schedulerType
Test Downlink FFR algorithms.
virtual void DoRun(void)
Implementation to actually run this TestCase.
Smart pointer class similar to boost::intrusive_ptr.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
std::vector< bool > m_expectedDlRb
AttributeValue implementation for Boolean.
NetDeviceContainer InstallEnbDevice(NodeContainer c)
Create a set of eNodeB devices.
std::string m_schedulerType
holds a vector of std::pair of Ptr and interface index.
void SetDefaultRoute(Ipv4Address nextHop, uint32_t interface, uint32_t metric=0)
Add a default route to the static routing table.
void Reset(void)
Reset the initial value of every attribute as well as the value of every global to what they were bef...
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr stored in this container at a given index.
void UlDataRxStartNofitication(LteFrTestCase *testcase, Ptr< const SpectrumValue > spectrumValue)
NetDeviceContainer Install(NodeContainer c)
a class to represent an Ipv4 address mask
void Add(ApplicationContainer other)
Append the contents of another ApplicationContainer to the end of this container. ...
void SetRxSpectrumModel(Ptr< const SpectrumModel > model)
uint8_t m_dlEdgeSubBandwidth
Callback< R > MakeBoundCallback(R(*fnPtr)(TX), ARG a1)
Make Callbacks with one bound argument.
void UlDataRxStart(Ptr< const SpectrumValue > spectrumValue)
uint8_t m_ulEdgeSubBandwidth
LteStrictFrTestCase(std::string name, uint32_t userNum, std::string schedulerType, uint8_t dlBandwidth, uint8_t ulBandwidth, uint8_t dlCommonSubBandwidth, uint8_t dlEdgeSubBandOffset, uint8_t dlEdgeSubBandwidth, uint8_t ulCommonSubBandwidth, uint8_t ulEdgeSubBandOffset, uint8_t ulEdgeSubBandwidth, std::vector< bool > availableDlRb, std::vector< bool > availableUlRb)
uint8_t m_dlSubBandOffset
void Attach(NetDeviceContainer ueDevices)
Enables automatic attachment of a set of UE devices to a suitable cell using Idle mode initial cell s...
std::vector< bool > m_expectedUlRb
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
aggregate IP/TCP/UDP functionality to existing Nodes.
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
A helper to make it easier to instantiate an ns3::PacketSinkApplication on a set of nodes...
Build a set of PointToPointNetDevice objects.
void DlDataRxStart(Ptr< const SpectrumValue > spectrumValue)
Ptr< SpectrumChannel > GetChannel()
void ActivateDataRadioBearer(NetDeviceContainer ueDevices, EpsBearer bearer)
Activate a Data Radio Bearer on a given UE devices (for LTE-only simulation).
void SetDeviceAttribute(std::string name, const AttributeValue &value)
Set an attribute value to be propagated to each NetDevice created by the helper.
std::string m_schedulerType
uint8_t ActivateDedicatedEpsBearer(NetDeviceContainer ueDevices, EpsBearer bearer, Ptr< EpcTft > tft)
Activate a dedicated EPS bearer on a given set of UE devices.
void SetHandoverAlgorithmType(std::string type)
Set the type of handover algorithm to be used by eNodeB devices.
LteFrequencyReuseTestSuite()
TestSuite.
ApplicationContainer Install(NodeContainer c)
void SetFfrAlgorithmType(std::string type)
Set the type of FFR algorithm to be used by eNodeB devices.
virtual ~LteSoftFrAreaTestCase()
void SetSchedulerType(std::string type)
Set the type of scheduler to be used by eNodeB devices.
uint32_t GetN(void) const
Get the number of Ptr stored in this container.
void TeleportUe(uint32_t x, uint32_t y, double expectedPower, std::vector< bool > expectedDlRb)
Class for representing data rates.
Keep track of the current position and velocity of an object.
LteFrTestCase(std::string name, uint32_t userNum, uint8_t dlBandwidth, uint8_t ulBandwidth, std::vector< bool > availableDlRb, std::vector< bool > availableUlRb)
This class contains the specification of EPS Bearers.
void DlDataRxStartNofitication(LteFrTestCase *testcase, Ptr< const SpectrumValue > spectrumValue)
TestCase Data.
void Install(Ptr< Node > node) const
"Layout" a single node according to the current position allocator type.
virtual void DoRun(void)
Implementation to actually run this TestCase.
void AddTestCase(TestCase *testCase, enum TestDuration duration)
Add an individual child TestCase to this test suite.
Create a client application which sends UDP packets carrying a 32bit sequence number and a 64 bit tim...
LteStrictFrAreaTestCase(std::string name, std::string schedulerType)
AttributeValue implementation for Time.
uint8_t m_dlEdgeSubBandOffset
void Add(NetDeviceContainer other)
Append the contents of another NetDeviceContainer to the end of this container.
Hold an unsigned integer type.
uint8_t m_ulSubBandOffset
virtual ~LteSoftFfrAreaTestCase()
void SetSchedulerAttribute(std::string n, const AttributeValue &v)
Set an attribute for the scheduler to be created.
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
holds a vector of ns3::NetDevice pointers
LteDistributedFfrAreaTestCase(std::string name, std::string schedulerType)
LteSoftFfrAreaTestCase(std::string name, std::string schedulerType)
LteFrAreaTestCase(std::string name, std::string schedulerType)
virtual ~LteStrictFrTestCase()
void Start(Time start)
Arrange for all of the Applications in this container to Start() at the Time given as a parameter...
virtual void DoRun(void)
Implementation to actually run this TestCase.
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
virtual ~LteFrAreaTestCase()
#define NS_TEST_ASSERT_MSG_EQ_TOL(actual, limit, tol, msg)
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report and...
virtual void DoRun(void)
Implementation to actually run this TestCase.
virtual void DoRun(void)
Implementation to actually run this TestCase.
std::vector< bool > m_availableDlRb
Access to the Ipv4 forwarding table, interfaces, and configuration.
void SetAttribute(std::string name, const AttributeValue &value)
Record an attribute to be set in each Application after it is is created.
Ptr< MobilityModel > m_ueMobility
bool TraceConnectWithoutContext(std::string name, const CallbackBase &cb)
Connect a TraceSource to a Callback without a context.
uint16_t remotePortEnd
end of the port number range of the remote host
void SetDefault(std::string name, const AttributeValue &value)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
keep track of a set of node pointers.
virtual ~LteStrictFrAreaTestCase()
void SetMobilityModel(std::string type, std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue(), std::string n8="", const AttributeValue &v8=EmptyAttributeValue(), std::string n9="", const AttributeValue &v9=EmptyAttributeValue())
void Install(std::string nodeName) const
Aggregate implementations of the ns3::Ipv4, ns3::Ipv6, ns3::Udp, and ns3::Tcp classes onto the provid...
void AddX2Interface(NodeContainer enbNodes)
Create an X2 interface between all the eNBs in a given set.
void SetDlExpectedValues(double expectedPower, std::vector< bool > expectedDlRb)
uint8_t m_ulCommonSubBandwidth
void SetPosition(const Vector &position)
void UlDataRxStartNofiticationArea(LteFrAreaTestCase *testcase, Ptr< const SpectrumValue > spectrumValue)
void SetChannelAttribute(std::string name, const AttributeValue &value)
Set an attribute value to be propagated to each Channel created by the helper.
NetDeviceContainer InstallUeDevice(NodeContainer c)
Create a set of UE devices.
Helper class used to assign positions and mobility models to nodes.
void AddNetworkRouteTo(Ipv4Address network, Ipv4Mask networkMask, Ipv4Address nextHop, uint32_t interface, uint32_t metric=0)
Add a network route to the static routing table.
virtual void DoRun(void)
Implementation to actually run this TestCase.
Ipv4 addresses are stored in host order in this class.
virtual void DoRun(void)
Implementation to actually run this TestCase.
Ipv4InterfaceContainer Assign(const NetDeviceContainer &c)
Assign IP addresses to the net devices specified in the container based on the current network prefix...
Ptr< Ipv4StaticRouting > GetStaticRouting(Ptr< Ipv4 > ipv4) const
Try and find the static routing protocol as either the main routing protocol or in the list of routin...
void SetEpcHelper(Ptr< EpcHelper > h)
Set the EpcHelper to be used to setup the EPC network in conjunction with the setup of the LTE radio ...
Helper class that adds ns3::Ipv4StaticRouting objects.
AttributeValue implementation for DataRate.
LteSoftFrAreaTestCase(std::string name, std::string schedulerType)
uint8_t m_ulEdgeSubBandOffset
Ptr< Node > Get(uint32_t i) const
Get the Ptr stored in this container at a given index.
LteEnhancedFfrAreaTestCase(std::string name, std::string schedulerType)
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
static LteFrequencyReuseTestSuite lteFrequencyReuseTestSuite
Time Seconds(double value)
Construct a Time in the indicated unit.
void TeleportUe2(Ptr< Node > ueNode, uint32_t x, uint32_t y, double expectedPower, std::vector< bool > expectedDlRb)
void Add(Vector v)
Add a position to the list of positions.
virtual ~LteDistributedFfrAreaTestCase()
virtual ~LteHardFrTestCase()
void DlDataRxStart(Ptr< const SpectrumValue > spectrumValue)
ApplicationContainer Install(NodeContainer c) const
Install an ns3::PacketSinkApplication on each node of the input container configured with all the att...
A helper class to make life easier while doing simple IPv4 address assignment in scripts.
Time Now(void)
create an ns3::Time instance which contains the current simulation time.
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
Values::const_iterator ConstValuesBegin() const
LteHardFrTestCase(std::string name, uint32_t userNum, std::string schedulerType, uint8_t dlBandwidth, uint8_t ulBandwidth, uint8_t dlSubBandOffset, uint8_t dlSubBandwidth, uint8_t ulSubBandOffset, uint8_t ulSubBandwidth, std::vector< bool > availableDlRb, std::vector< bool > availableUlRb)
void SetPositionAllocator(Ptr< PositionAllocator > allocator)
Set the position allocator which will be used to allocate the initial position of every node initiali...
std::vector< bool > m_availableUlRb
This class can be used to hold variables of floating point type such as 'double' or 'float'...
void DlDataRxStartNofiticationArea(LteFrAreaTestCase *testcase, Ptr< const SpectrumValue > spectrumValue)
void SetAttribute(std::string name, const AttributeValue &value)
Set a single attribute, raising fatal errors if unsuccessful.
The eNodeB device implementation.
void UlDataRxStart(Ptr< const SpectrumValue > spectrumValue)
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
virtual void DoRun(void)
Implementation to actually run this TestCase.
virtual ~LteEnhancedFfrAreaTestCase()
void SetFfrAlgorithmAttribute(std::string n, const AttributeValue &v)
Set an attribute for the FFR algorithm to be created.
void SetUlExpectedValues(double expectedPower, std::vector< bool > expectedDlRb)
uint8_t m_dlCommonSubBandwidth
uint16_t remotePortStart
start of the port number range of the remote host
void SetBase(Ipv4Address network, Ipv4Mask mask, Ipv4Address base="0.0.0.1")
Set the base network number, network mask and base address.
void SimpleTeleportUe(uint32_t x, uint32_t y)
Implement the data structure representing a TrafficFlowTemplate Packet Filter.
void SetEnbDeviceAttribute(std::string n, const AttributeValue &v)
Set an attribute for the eNodeB devices (LteEnbNetDevice) to be created.
Ipv4Address GetAddress(uint32_t i, uint32_t j=0) const
uint16_t localPortStart
start of the port number range of the UE
The LteSpectrumPhy models the physical layer of LTE.
The LteUeNetDevice class implements the UE net device.
virtual void DoRun(void)
Implementation to actually run this TestCase.