14#include "ns3/config.h"
15#include "ns3/error-model.h"
17#include "ns3/lte-rlc-header.h"
18#include "ns3/lte-rlc-um.h"
19#include "ns3/net-device-container.h"
20#include "ns3/node-container.h"
21#include "ns3/packet.h"
22#include "ns3/pointer.h"
23#include "ns3/radio-bearer-stats-calculator.h"
24#include "ns3/rng-seed-manager.h"
25#include "ns3/simulator.h"
44 double losses[] = {0.0, 0.10, 0.25, 0.50, 0.75, 0.90, 1.00};
45 uint32_t seeds[] = {1111, 2222, 3333, 4444, 5555, 6666, 7777, 8888, 9999, 10101};
51 std::ostringstream name;
52 name <<
" Losses = " <<
losses[
l] <<
"%. Seed = " <<
seeds[s];
164 ueLteDevs.Get(0)->TraceConnectWithoutContext(
168 enbLteDevs.Get(0)->TraceConnectWithoutContext(
Test end-to-end flow when RLC UM is being used.
uint32_t m_dlDrops
number of Dl drops
double m_losses
error rate
void UlDropEvent(Ptr< const Packet > p)
UL drop event.
void DoRun() override
Implementation to actually run this TestCase.
void DlDropEvent(Ptr< const Packet > p)
DL drop event.
uint32_t m_seed
random number seed
uint32_t m_ulDrops
number of UL drops
~LteRlcUmE2eTestCase() override
Test suite for RlcUmE2eTestCase.
LteRlcUmE2eTestSuite()
Test x.x.x RLC UM: End-to-end flow.
This class can be used to hold variables of floating point type such as 'double' or 'float'.
void Stop()
Stop function.
void Start()
Start function.
holds a vector of ns3::NetDevice pointers
keep track of a set of node pointers.
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
AttributeValue implementation for Pointer.
Smart pointer class similar to boost::intrusive_ptr.
static void SetSeed(uint32_t seed)
Set the seed.
static EventId Schedule(const Time &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
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.
Duration
How long the test takes to execute.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
static LteRlcUmE2eTestSuite lteRlcUmE2eTestSuite
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.
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Callback< R, Args... > MakeCallback(R(T::*memPtr)(Args...), OBJ objPtr)
Build Callbacks for class method members which take varying numbers of arguments and potentially retu...