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>
49 #include <ns3/lte-common.h>
63 :
TestSuite (
"lte-frequency-reuse", SYSTEM)
68 std::vector<bool> availableDlRb;
69 std::vector<bool> availableUlRb;
70 for (uint32_t i = 0; i < 12; i++)
72 availableDlRb.push_back (
true);
73 availableUlRb.push_back (
true);
75 for (uint32_t i = 12; i < 25; i++)
77 availableDlRb.push_back (
false);
78 availableUlRb.push_back (
false);
81 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrPf1", 1,
"ns3::PfFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
82 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrPf2", 5,
"ns3::PfFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
83 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrPss1", 1,
"ns3::PssFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
84 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrPss2", 5,
"ns3::PssFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
85 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrCqa1", 1,
"ns3::CqaFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
86 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrCqa2", 5,
"ns3::CqaFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
87 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrFdTbfq1", 1,
"ns3::FdTbfqFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
88 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrFdTbfq2", 5,
"ns3::FdTbfqFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
89 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrTdTbfq1", 1,
"ns3::TdTbfqFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
90 AddTestCase (
new LteHardFrTestCase (
"DownlinkHardFrTdTbfq2", 5,
"ns3::TdTbfqFfMacScheduler", 25, 25, 0, 12, 0, 12, availableDlRb, availableUlRb), TestCase::QUICK);
92 availableDlRb.clear ();
93 availableUlRb.clear ();
94 for (uint32_t i = 0; i < 6; i++)
96 availableDlRb.push_back (
true);
97 availableUlRb.push_back (
true);
99 for (uint32_t i = 6; i < 12; i++)
101 availableDlRb.push_back (
false);
102 availableUlRb.push_back (
false);
104 for (uint32_t i = 12; i < 18; i++)
106 availableDlRb.push_back (
true);
107 availableUlRb.push_back (
true);
109 for (uint32_t i = 18; i < 25; i++)
111 availableDlRb.push_back (
false);
112 availableUlRb.push_back (
false);
115 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrPf1", 1,
"ns3::PfFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
116 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrPf2", 5,
"ns3::PfFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
117 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrPss1", 1,
"ns3::PssFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
118 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrPss2", 5,
"ns3::PssFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
119 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrCqa1", 1,
"ns3::CqaFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
120 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrCqa2", 5,
"ns3::CqaFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
121 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrCqaFdTbfq1", 1,
"ns3::FdTbfqFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
122 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrCqaFdTbfq2", 5,
"ns3::FdTbfqFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
123 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrCqaTdTbfq1", 1,
"ns3::TdTbfqFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
124 AddTestCase (
new LteStrictFrTestCase (
"DownlinkStrictFrCqaTdTbfq2", 5,
"ns3::TdTbfqFfMacScheduler", 25, 25, 6, 6, 6, 6, 6, 6, availableDlRb, availableUlRb), TestCase::QUICK);
178 uint32_t userNum,uint8_t dlBandwidth,uint8_t ulBandwidth,
179 std::vector<bool> availableDlRb, std::vector<bool> availableUlRb)
182 m_dlBandwidth (dlBandwidth),
183 m_ulBandwidth (ulBandwidth),
184 m_availableDlRb (availableDlRb),
185 m_usedMutedDlRbg (false),
186 m_availableUlRb (availableUlRb),
187 m_usedMutedUlRbg (false)
201 Values::const_iterator it;
220 Values::const_iterator it;
244 std::string schedulerType,
245 uint8_t dlBandwidth, uint8_t ulBandwidth,
246 uint8_t dlSubBandOffset, uint8_t dlSubBandwidth,
247 uint8_t ulSubBandOffset, uint8_t ulSubBandwidth,
248 std::vector<bool> availableDlRb, std::vector<bool> availableUlRb)
249 :
LteFrTestCase (name, userNum, dlBandwidth, ulBandwidth, availableDlRb, availableUlRb),
250 m_schedulerType (schedulerType),
251 m_dlSubBandOffset (dlSubBandOffset),
252 m_dlSubBandwidth (dlSubBandwidth),
253 m_ulSubBandOffset (ulSubBandOffset),
254 m_ulSubBandwidth (ulSubBandwidth)
305 lteHelper->
Attach (ueDevs, enbDevs.
Get (0));
319 dlChannel->AddRx (testDlSpectrumPhy);
330 ulChannel->AddRx (testUlSpectrumPhy);
335 Simulator::Stop (
Seconds (0.500));
339 "Scheduler used DL RBG muted by FFR Algorithm");
342 "Scheduler used UL RBG muted by FFR Algorithm");
344 Simulator::Destroy ();
350 std::string schedulerType,
351 uint8_t dlBandwidth, uint8_t ulBandwidth,
352 uint8_t dlCommonSubBandwidth, uint8_t dlEdgeSubBandOffset, uint8_t dlEdgeSubBandwidth,
353 uint8_t ulCommonSubBandwidth, uint8_t ulEdgeSubBandOffset, uint8_t ulEdgeSubBandwidth,
354 std::vector<bool> availableDlRb, std::vector<bool> availableUlRb)
355 :
LteFrTestCase (name, userNum, dlBandwidth, ulBandwidth, availableDlRb, availableUlRb),
356 m_schedulerType (schedulerType),
357 m_dlCommonSubBandwidth (dlCommonSubBandwidth),
358 m_dlEdgeSubBandOffset (dlEdgeSubBandOffset),
359 m_dlEdgeSubBandwidth (dlEdgeSubBandwidth),
360 m_ulCommonSubBandwidth (ulCommonSubBandwidth),
361 m_ulEdgeSubBandOffset (ulEdgeSubBandOffset),
362 m_ulEdgeSubBandwidth (ulEdgeSubBandwidth)
414 lteHelper->
Attach (ueDevs, enbDevs.
Get (0));
428 dlChannel->AddRx (testDlSpectrumPhy);
439 ulChannel->AddRx (testUlSpectrumPhy);
444 Simulator::Stop (
Seconds (0.500));
448 "Scheduler used DL RBG muted by FFR Algorithm");
451 "Scheduler used UL RBG muted by FFR Algorithm");
453 Simulator::Destroy ();
472 m_schedulerType (schedulerType)
493 Values::const_iterator it;
498 NS_LOG_DEBUG (
"RB " << i <<
" POWER: " <<
" " << power);
509 "Wrong Data Channel DL Power level");
525 Values::const_iterator it;
538 "Wrong Data Channel UL Power level" <<
Simulator::Now ().GetSeconds ());
548 NS_LOG_DEBUG (
"Teleport UE to : (" << x <<
", " << y <<
", 0)");
555 std::vector<bool> expectedDlRb)
558 NS_LOG_DEBUG (
"Teleport UE to : (" << x <<
", " << y <<
", 0)");
567 std::vector<bool> expectedDlRb)
570 NS_LOG_DEBUG (
"Teleport UE to : (" << x <<
", " << y <<
", 0)");
620 double eNbTxPower = 30;
650 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
651 positionAlloc->
Add (Vector (1000, 0.0, 0.0));
652 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
653 positionAlloc->
Add (Vector (1020, 0.0, 0.0));
695 lteHelper->
Attach (ueDevs1, enbDevs.
Get (0));
696 lteHelper->
Attach (ueDevs2, enbDevs.
Get (1));
711 dlChannel->AddRx (testDlSpectrumPhy);
724 ulChannel->AddRx (testUlSpectrumPhy);
731 std::vector<bool> expectedDlRbCenterArea;
733 std::vector<bool> expectedUlRbCenterArea;
735 for (uint32_t i = 0; i < 6; i++)
737 expectedDlRbCenterArea[i] =
true;
738 expectedUlRbCenterArea[i] =
true;
741 std::vector<bool> expectedDlRbEdgeArea;
743 std::vector<bool> expectedUlRbEdgeArea;
745 for (uint32_t i = 12; i < 18; i++)
747 expectedDlRbEdgeArea[i] =
true;
748 expectedUlRbEdgeArea[i] =
true;
766 Simulator::Stop (
Seconds (1.500));
770 "Scheduler used DL RB muted by FFR Algorithm");
772 "Scheduler used UL RB muted by FFR Algorithm");
774 Simulator::Destroy ();
797 double eNbTxPower = 30;
827 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
828 positionAlloc->
Add (Vector (1000, 0.0, 0.0));
829 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
830 positionAlloc->
Add (Vector (1020, 0.0, 0.0));
870 lteHelper->
Attach (ueDevs1, enbDevs.
Get (0));
871 lteHelper->
Attach (ueDevs2, enbDevs.
Get (1));
886 dlChannel->AddRx (testDlSpectrumPhy);
899 ulChannel->AddRx (testUlSpectrumPhy);
907 std::vector<bool> expectedDlRbCenterArea;
909 std::vector<bool> expectedUlRbCenterArea;
911 for (uint32_t i = 0; i < 8; i++)
913 expectedDlRbCenterArea[i] =
true;
914 expectedUlRbCenterArea[i] =
true;
916 for (uint32_t i = 16; i < 25; i++)
918 expectedDlRbCenterArea[i] =
true;
921 std::vector<bool> expectedDlRbEdgeArea;
923 std::vector<bool> expectedUlRbEdgeArea;
925 for (uint32_t i = 8; i < 16; i++)
927 expectedDlRbEdgeArea[i] =
true;
928 expectedUlRbEdgeArea[i] =
true;
946 Simulator::Stop (
Seconds (1.500));
951 "Scheduler used DL RBG muted by FFR Algorithm");
955 "Scheduler used UL RB muted by FFR Algorithm");
957 Simulator::Destroy ();
980 double eNbTxPower = 30;
1010 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
1011 positionAlloc->
Add (Vector (1000, 0.0, 0.0));
1012 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
1013 positionAlloc->
Add (Vector (1020, 0.0, 0.0));
1058 lteHelper->
Attach (ueDevs1, enbDevs.
Get (0));
1059 lteHelper->
Attach (ueDevs2, enbDevs.
Get (1));
1074 dlChannel->AddRx (testDlSpectrumPhy);
1087 ulChannel->AddRx (testUlSpectrumPhy);
1094 double expectedDlPowerCenterArea = 0.5;
1095 std::vector<bool> expectedDlRbCenterArea;
1097 std::vector<bool> expectedUlRbCenterArea;
1099 for (uint32_t i = 6; i < 12; i++)
1101 expectedDlRbCenterArea[i] =
true;
1102 expectedUlRbCenterArea[i] =
true;
1104 for (uint32_t i = 18; i < 25; i++)
1106 expectedDlRbCenterArea[i] =
true;
1107 expectedUlRbCenterArea[i] =
true;
1110 double expectedDlPowerMiddleArea = 1.0;
1111 std::vector<bool> expectedDlRbMiddleArea;
1113 std::vector<bool> expectedUlRbMiddleArea;
1115 for (uint32_t i = 0; i < 6; i++)
1117 expectedDlRbMiddleArea[i] =
true;
1118 expectedUlRbMiddleArea[i] =
true;
1121 double expectedDlPowerEdgeArea = 2.0;
1122 std::vector<bool> expectedDlRbEdgeArea;
1124 std::vector<bool> expectedUlRbEdgeArea;
1126 for (uint32_t i = 12; i < 18; i++)
1128 expectedDlRbEdgeArea[i] =
true;
1129 expectedUlRbEdgeArea[i] =
true;
1134 expectedDlPowerCenterArea, expectedDlRbCenterArea );
1140 expectedDlPowerMiddleArea, expectedDlRbMiddleArea );
1146 expectedDlPowerEdgeArea, expectedDlRbEdgeArea );
1152 expectedDlPowerMiddleArea, expectedDlRbMiddleArea );
1158 expectedDlPowerCenterArea, expectedDlRbCenterArea );
1162 Simulator::Stop (
Seconds (2.500));
1166 "Scheduler used DL RBG muted by FFR Algorithm");
1169 "Scheduler used UL RB muted by FFR Algorithm");
1171 Simulator::Destroy ();
1178 NS_LOG_INFO (
"Creating LteEnhancedFfrAreaTestCase");
1196 double eNbTxPower = 30;
1227 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
1228 positionAlloc->
Add (Vector (1000, 0.0, 0.0));
1229 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
1230 positionAlloc->
Add (Vector (1020, 0.0, 0.0));
1279 lteHelper->
Attach (ueDevs1, enbDevs.
Get (0));
1280 lteHelper->
Attach (ueDevs2, enbDevs.
Get (1));
1295 dlChannel->AddRx (testDlSpectrumPhy);
1308 ulChannel->AddRx (testUlSpectrumPhy);
1315 double expectedDlPowerCenterArea = 0.251189;
1316 std::vector<bool> expectedDlRbCenterArea;
1318 std::vector<bool> expectedUlRbCenterArea;
1320 for (uint32_t i = 0; i < 8; i++)
1322 expectedDlRbCenterArea[i] =
true;
1323 expectedUlRbCenterArea[i] =
true;
1325 for (uint32_t i = 12; i < 16; i++)
1327 expectedDlRbCenterArea[i] =
true;
1328 expectedUlRbCenterArea[i] =
true;
1330 for (uint32_t i = 20; i < 24; i++)
1332 expectedDlRbCenterArea[i] =
true;
1333 expectedUlRbCenterArea[i] =
true;
1336 double expectedDlPowerMiddleArea = 0.251189;
1337 std::vector<bool> expectedDlRbMiddleArea;
1339 std::vector<bool> expectedUlRbMiddleArea;
1341 for (uint32_t i = 4; i < 8; i++)
1343 expectedDlRbMiddleArea[i] =
true;
1344 expectedUlRbMiddleArea[i] =
true;
1347 double expectedDlPowerEdgeArea = 1.0;
1348 std::vector<bool> expectedDlRbEdgeArea;
1350 std::vector<bool> expectedUlRbEdgeArea;
1352 for (uint32_t i = 0; i < 4; i++)
1354 expectedDlRbEdgeArea[i] =
true;
1355 expectedUlRbEdgeArea[i] =
true;
1360 expectedDlPowerCenterArea, expectedDlRbCenterArea );
1366 expectedDlPowerMiddleArea, expectedDlRbMiddleArea );
1372 expectedDlPowerEdgeArea, expectedDlRbEdgeArea );
1378 expectedDlPowerCenterArea, expectedDlRbCenterArea );
1384 expectedDlPowerMiddleArea, expectedDlRbMiddleArea );
1388 Simulator::Stop (
Seconds (2.500));
1392 "Scheduler used DL RBG muted by FFR Algorithm");
1395 "Scheduler used UL RB muted by FFR Algorithm");
1397 Simulator::Destroy ();
1404 NS_LOG_INFO (
"Creating LteDistributedFfrAreaTestCase");
1422 double eNbTxPower = 30;
1436 uint8_t bandwidth = 25;
1443 Ptr<Node> pgw = epcHelper->GetPgwNode ();
1447 remoteHostContainer.
Create (1);
1450 internet.
Install (remoteHostContainer);
1459 ipv4h.
SetBase (
"1.0.0.0",
"255.0.0.0");
1491 positionAlloc->
Add (Vector (0.0, 0.0, 0.0));
1492 positionAlloc->
Add (Vector (1000, 0.0, 0.0));
1494 positionAlloc->
Add (Vector (200, 0.0, 0.0));
1495 positionAlloc->
Add (Vector (200, 0.0, 0.0));
1496 positionAlloc->
Add (Vector (800, 0.0, 0.0));
1528 ueLteDevs.
Add (ueDevs1);
1529 ueLteDevs.
Add (ueDevs2);
1539 for (uint32_t u = 0; u < ueNodes.
GetN (); ++u)
1544 ueStaticRouting->
SetDefaultRoute (epcHelper->GetUeDefaultGatewayAddress (), 1);
1548 lteHelper->
Attach (ueDevs1, enbDevs.
Get (0));
1549 lteHelper->
Attach (ueDevs2, enbDevs.
Get (1));
1553 uint16_t dlPort = 10000;
1554 uint16_t ulPort = 20000;
1563 for (uint32_t u = 0; u < ueNodes.
GetN (); ++u)
1568 ueStaticRouting->
SetDefaultRoute (epcHelper->GetUeDefaultGatewayAddress (), 1);
1570 for (uint32_t b = 0; b < 1; ++b)
1582 clientApps.
Add (dlClientHelper.Install (remoteHost));
1585 serverApps.
Add (dlPacketSinkHelper.
Install (ue));
1591 clientApps.
Add (ulClientHelper.
Install (ue));
1594 serverApps.
Add (ulPacketSinkHelper.
Install (remoteHost));
1599 dlpf.localPortEnd = dlPort;
1605 EpsBearer bearer (EpsBearer::NGBR_VIDEO_TCP_DEFAULT);
1609 serverApps.
Start (startTime);
1610 clientApps.
Start (startTime);
1621 dlChannel->AddRx (testDlSpectrumPhy);
1634 ulChannel->AddRx (testUlSpectrumPhy);
1641 double expectedDlPowerCenterArea = 1.0;
1642 std::vector<bool> expectedDlRbCenterArea;
1644 std::vector<bool> expectedUlRbCenterArea;
1648 expectedDlRbCenterArea[i] =
true;
1649 expectedUlRbCenterArea[i] =
true;
1652 double expectedDlPowerEdgeArea = 2.0;
1653 std::vector<bool> expectedDlRbEdgeArea;
1654 expectedDlRbEdgeArea.resize (m_dlBandwidth,
false);
1655 std::vector<bool> expectedUlRbEdgeArea;
1657 for (uint32_t i = 0; i < 6; i++)
1659 expectedDlRbEdgeArea[i] =
true;
1660 expectedUlRbEdgeArea[i] =
true;
1663 std::vector<bool> expectedDlRbEdgeArea2;
1664 expectedDlRbEdgeArea2.resize (m_dlBandwidth,
false);
1665 std::vector<bool> expectedUlRbEdgeArea2;
1666 expectedUlRbEdgeArea2.resize (m_dlBandwidth,
false);
1667 for (uint32_t i = 6; i < 12; i++)
1669 expectedDlRbEdgeArea2[i] =
true;
1670 expectedUlRbEdgeArea2[i] =
true;
1676 expectedDlPowerCenterArea, expectedDlRbCenterArea );
1682 expectedDlPowerEdgeArea, expectedDlRbEdgeArea );
1688 expectedDlPowerEdgeArea, expectedDlRbEdgeArea2 );
1694 expectedDlPowerEdgeArea, expectedDlRbEdgeArea );
1700 expectedDlPowerCenterArea, expectedDlRbCenterArea );
1704 Simulator::Stop (
Seconds (2.500));
1709 "Scheduler used DL RBG muted by FFR Algorithm");
1713 "Scheduler used UL RB muted by FFR Algorithm");
1715 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.
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
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
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 Reset(void)
Reset the initial value of every attribute as well as the value of every global to what they were bef...
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 SetDefault(std::string name, const AttributeValue &value)
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)
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.