9#include "ns3/boolean.h"
10#include "ns3/double.h"
11#include "ns3/internet-stack-helper.h"
12#include "ns3/ipv4-address-helper.h"
13#include "ns3/mobility-helper.h"
14#include "ns3/on-off-helper.h"
15#include "ns3/packet-sink-helper.h"
16#include "ns3/packet-sink.h"
18#include "ns3/string.h"
20#include "ns3/uinteger.h"
21#include "ns3/yans-wifi-helper.h"
35 void DoRun()
override;
42 :
TestCase(
"MsduAggregator throughput test"),
56 Ssid ssid =
Ssid(
"wifi-amsdu-throughput");
61 std::string
phyMode(
"DsssRate1Mbps");
63 wifi.SetRemoteStationManager(
"ns3::ConstantRateWifiManager",
73 wifiMac.SetType(
"ns3::ApWifiMac",
90 wifiMac.SetType(
"ns3::StaWifiMac",
101 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
102 mobility.SetPositionAllocator(
"ns3::GridPositionAllocator",
115 mobility.Install(
sta);
116 mobility.Install(
ap);
124 address.SetBase(
"192.168.0.0",
"255.255.255.0");
154 onoff.SetConstantRate(
DataRate(
"1Mbps"));
163 wifiPhy.EnablePcap(
"wifi-amsdu-throughput",
sta.Get(0)->GetId(), 0);
MsduAggregator Test Suite.
WifiMsduAggregatorTestSuite()
Throughput test for MsduAggregator.
void DoRun() override
Implementation to actually run this TestCase.
WifiMsduAggregatorThroughputTest()
bool m_writeResults
flag whether to generate pcap
holds a vector of ns3::Application pointers.
void Start(Time start) const
Start all of the Applications in this container at the start time given as a parameter.
AttributeValue implementation for Boolean.
Class for representing data rates.
This class can be used to hold variables of floating point type such as 'double' or 'float'.
aggregate IP/TCP/UDP functionality to existing Nodes.
A helper class to make life easier while doing simple IPv4 address assignment in scripts.
static Ipv4Address GetAny()
holds a vector of std::pair of Ptr<Ipv4> and interface index.
Helper class used to assign positions and mobility models to nodes.
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.
A helper to make it easier to instantiate an ns3::OnOffApplication on a set of nodes.
A helper to make it easier to instantiate an ns3::PacketSinkApplication on a set of 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.
The IEEE 802.11 SSID Information Element.
AttributeValue implementation for Ssid.
Hold variables of type string.
void AddTestCase(TestCase *testCase, Duration duration=Duration::QUICK)
Add an individual child TestCase to this test suite.
AttributeValue implementation for Time.
Hold an unsigned integer type.
helps to create WifiNetDevice objects
create MAC layers for a ns3::WifiNetDevice.
@ DLT_IEEE802_11_RADIO
Include Radiotap link layer information.
manage and create wifi channel objects for the YANS model.
static YansWifiChannelHelper Default()
Create a channel helper in a default working state.
Make it easy to create and manage PHY objects for the YANS model.
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_GT(actual, limit, msg)
Test that an actual value is greater than a limit and report and abort if not.
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
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 WifiMsduAggregatorTestSuite wifiMsduAggregatorTestSuite