10#include "ns3/cs-parameters.h"
11#include "ns3/internet-stack-helper.h"
12#include "ns3/ipcs-classifier-record.h"
13#include "ns3/ipv4-address-helper.h"
14#include "ns3/ipv4-address.h"
15#include "ns3/ipv4-interface-container.h"
16#include "ns3/service-flow.h"
17#include "ns3/simulator.h"
19#include "ns3/wimax-helper.h"
36 void DoRun()
override;
40 :
TestCase(
"Test the service flow tlv implementation.")
80 stack.Install(bsNodes);
81 stack.Install(ssNodes);
84 address.SetBase(
"10.1.1.0",
"255.255.255.0");
102 DlServiceFlowUgs->SetConvergenceSublayerParam(DlcsParam);
105 DlServiceFlowUgs->SetMaxSustainedTrafficRate(1000000);
106 DlServiceFlowUgs->SetMinReservedTrafficRate(1000000);
107 DlServiceFlowUgs->SetMinTolerableTrafficRate(1000000);
108 DlServiceFlowUgs->SetMaximumLatency(10);
109 DlServiceFlowUgs->SetMaxTrafficBurst(1000);
110 DlServiceFlowUgs->SetTrafficPriority(1);
125 UlServiceFlowUgs->SetConvergenceSublayerParam(UlcsParam);
128 UlServiceFlowUgs->SetMaxSustainedTrafficRate(1000000);
129 UlServiceFlowUgs->SetMinReservedTrafficRate(1000000);
130 UlServiceFlowUgs->SetMinTolerableTrafficRate(1000000);
131 UlServiceFlowUgs->SetMaximumLatency(10);
132 UlServiceFlowUgs->SetMaxTrafficBurst(1000);
133 UlServiceFlowUgs->SetTrafficPriority(1);
Ns3 Wimax Service Flow Test Suite.
Ns3WimaxServiceFlowTestSuite()
Test the service flow creation.
~Ns3WimaxSfCreationTestCase() override
void DoRun() override
Implementation to actually run this TestCase.
Ns3WimaxSfCreationTestCase()
aggregate IP/TCP/UDP functionality to existing Nodes.
IpcsClassifierRecord class.
A helper class to make life easier while doing simple IPv4 address assignment in scripts.
Ipv4 addresses are stored in host order in this class.
holds a vector of std::pair of Ptr<Ipv4> and interface index.
a class to represent an Ipv4 address mask
holds a vector of ns3::NetDevice pointers
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr<NetDevice> stored in this container at a given index.
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.
This class implements service flows as described by the IEEE-802.16 standard.
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.
SubscriberStationNetDevice subclass of WimaxNetDevice.
void AddTestCase(TestCase *testCase, Duration duration=Duration::QUICK)
Add an individual child TestCase to this test suite.
helps to manage and create WimaxNetDevice objects
SchedulerType
Scheduler Type Different implementations of uplink/downlink scheduler.
@ SCHED_TYPE_SIMPLE
A simple priority-based FCFS scheduler.
@ DEVICE_TYPE_SUBSCRIBER_STATION
Subscriber station(SS) device.
@ DEVICE_TYPE_BASE_STATION
Base station(BS) device.
NetDeviceContainer Install(NodeContainer c, NetDeviceType type, PhyType phyType, SchedulerType schedulerType)
@ MODULATION_TYPE_QAM16_12
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static Ns3WimaxServiceFlowTestSuite ns3WimaxServiceFlowTestSuite
the test suite