|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
23 #include "ns3/internet-stack-helper.h"
24 #include "ns3/ipv4-address-helper.h"
25 #include "ns3/ipv4-interface-container.h"
26 #include "ns3/ipv4-address.h"
27 #include "ns3/simulator.h"
28 #include "ns3/wimax-helper.h"
29 #include "ns3/cs-parameters.h"
30 #include "ns3/ipcs-classifier-record.h"
31 #include "ns3/service-flow.h"
48 virtual void DoRun (
void);
53 :
TestCase (
"Test the service flow tlv implementation.")
79 ssDevs = wimax.
Install (ssNodes,
80 WimaxHelper::DEVICE_TYPE_SUBSCRIBER_STATION,
81 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
83 bsDevs = wimax.
Install (bsNodes, WimaxHelper::DEVICE_TYPE_BASE_STATION, WimaxHelper::SIMPLE_PHY_TYPE_OFDM, scheduler);
89 stack.Install (bsNodes);
90 stack.Install (ssNodes);
93 address.SetBase (
"10.1.1.0",
"255.255.255.0");
110 CsParameters DlcsParam (CsParameters::ADD, DlClassifierUgs);
133 CsParameters UlcsParam (CsParameters::ADD, UlClassifierUgs);
146 Simulator::Stop (
Seconds (duration));
148 Simulator::Destroy ();
holds a vector of ns3::NetDevice pointers
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
Ns3WimaxSfCreationTestCase()
Every class exported by the ns3 library is enclosed in the ns3 namespace.
A helper class to make life easier while doing simple IPv4 address assignment in scripts.
Test the service flow creation.
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
void SetServiceSchedulingType(enum ServiceFlow::SchedulingType schedType)
Set service scheduling type.
Ipv4 addresses are stored in host order in this class.
void SetMaxSustainedTrafficRate(uint32_t maxSustainedRate)
Set max sustained traffic rate.
void SetMaximumLatency(uint32_t MaximumLatency)
Set maximum latency.
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
Ns3 Wimax Service Flow Test Suite.
static Ns3WimaxServiceFlowTestSuite ns3WimaxServiceFlowTestSuite
the test suite
void SetConvergenceSublayerParam(CsParameters csparam)
Set convergence sublayer parameters.
NetDeviceContainer Install(NodeContainer c, NetDeviceType type, PhyType phyType, SchedulerType schedulerType)
helps to manage and create WimaxNetDevice objects
holds a vector of std::pair of Ptr<Ipv4> and interface index.
virtual ~Ns3WimaxSfCreationTestCase()
virtual void DoRun(void)
Implementation to actually run this TestCase.
SubscriberStationNetDevice subclass of WimaxNetDevice.
void SetMinReservedTrafficRate(uint32_t minResvRate)
Set minimum reserved traffic rate.
void SetMinTolerableTrafficRate(uint32_t minJitter)
Set minimum tolerable traffic rate.
void SetTrafficPriority(uint8_t priority)
Set traffic priority.
Time Seconds(double value)
Construct a Time in the indicated unit.
void SetCsSpecification(enum CsSpecification spec)
Set CS specification.
keep track of a set of node pointers.
a class to represent an Ipv4 address mask
SchedulerType
Scheduler Type Different implementations of uplink/downlink scheduler.
This class implements service flows as described by the IEEE-802.16 standard.
Ns3WimaxServiceFlowTestSuite()
aggregate IP/TCP/UDP functionality to existing Nodes.
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr<NetDevice> stored in this container at a given index.
void SetMaxTrafficBurst(uint32_t maxTrafficBurst)
Set maximum traffic burst.
IpcsClassifierRecord class.