12#include "ns3/application-container.h"
13#include "ns3/friis-spectrum-propagation-loss.h"
14#include "ns3/internet-stack-helper.h"
15#include "ns3/ipv4-address-helper.h"
16#include "ns3/ipv4-interface-container.h"
17#include "ns3/ipv4-static-routing-helper.h"
19#include "ns3/lte-enb-net-device.h"
20#include "ns3/lte-helper.h"
21#include "ns3/lte-ue-net-device.h"
22#include "ns3/lte-ue-rrc.h"
23#include "ns3/mobility-helper.h"
24#include "ns3/net-device-container.h"
25#include "ns3/node-container.h"
26#include "ns3/packet-sink.h"
27#include "ns3/point-to-point-epc-helper.h"
28#include "ns3/point-to-point-helper.h"
29#include "ns3/simulator.h"
30#include "ns3/udp-client.h"
43 TestCase::Duration::QUICK);
78 lteHelper->SetAttribute(
"EnbComponentCarrierManager",
89 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
110 std::map<uint8_t, Ptr<ComponentCarrierUe>>
ueCcMap =
ueDev->GetCcMap();
116 const uint16_t
port = 21;
132 pgwNode->AddApplication(client);
143 return 8e-6 *
sink->GetTotalRx();
150 for (uint8_t
i = 1;
i <= 4;
i++)
155 "UE has attached to an unexpected cell");
164 "Throughput does not scale with number of component carriers");
Testing that UE throughput scales linearly with number of component carriers.
uint16_t m_actualCellId
Cell ID UE has attached to.
void DoRun() override
Setup the simulation, run it, and verify the result.
double GetThroughput(uint8_t numberOfComponentCarriers)
Get throughput function.
uint16_t m_expectedCellId
Cell ID UE is expected to attach to.
~LteAggregationThroughputScaleTestCase() override
LteAggregationThroughputScaleTestCase(std::string name)
Creates an instance of the carrier aggregation throughput scaling test case.
Test suite for executing carrier aggregation throughput scaling test case.
LteAggregationThroughputScaleTestSuite()
AttributeValue implementation for Address.
holds a vector of ns3::Application pointers.
static TypeId GetTypeId()
Get the type ID.
aggregate IP/TCP/UDP functionality to existing Nodes.
A helper class to make life easier while doing simple IPv4 address assignment in scripts.
void SetBase(Ipv4Address network, Ipv4Mask mask, Ipv4Address base="0.0.0.1")
Set the base network number, network mask and base address.
Access to the IPv4 forwarding table, interfaces, and configuration.
holds a vector of std::pair of Ptr<Ipv4> and interface index.
Helper class that adds ns3::Ipv4StaticRouting objects.
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...
Helper class used to assign positions and mobility models to nodes.
static void Destroy()
Execute the events scheduled with ScheduleDestroy().
static void Run()
Run the simulation.
static void Stop()
Tell the Simulator the calling event should be the last one executed.
Hold variables of type string.
void AddTestCase(TestCase *testCase, Duration duration=Duration::QUICK)
Add an individual child TestCase to this test suite.
std::string GetName() const
AttributeValue implementation for Time.
AttributeValue implementation for TypeId.
Hold an unsigned integer type.
void SetDefault(std::string name, const AttributeValue &value)
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
static LteAggregationThroughputScaleTestSuite g_lteAggregationThroughputScaleTestSuite
Static variable for test initialization.
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
#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.
#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...
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< PacketSink > sink
Pointer to the packet sink application.