20#include "ns3/ap-wifi-mac.h"
21#include "ns3/boolean.h"
22#include "ns3/config.h"
23#include "ns3/he-phy.h"
25#include "ns3/mobility-helper.h"
26#include "ns3/multi-model-spectrum-channel.h"
27#include "ns3/packet-socket-client.h"
28#include "ns3/packet-socket-helper.h"
29#include "ns3/packet-socket-server.h"
30#include "ns3/packet.h"
31#include "ns3/pointer.h"
32#include "ns3/qos-txop.h"
33#include "ns3/qos-utils.h"
34#include "ns3/rng-seed-manager.h"
35#include "ns3/spectrum-wifi-helper.h"
36#include "ns3/string.h"
38#include "ns3/wifi-mac-header.h"
39#include "ns3/wifi-net-device.h"
40#include "ns3/wifi-ppdu.h"
41#include "ns3/wifi-psdu.h"
111 void DoRun()
override;
148 :
TestCase(
"Check correct operation within TXOPs"),
156 m_nonHt(params.nonHt),
157 m_payloadSizeRtsOn(m_nonHt ? 2000 : 540),
158 m_payloadSizeRtsOff(500),
160 m_mode(m_nonHt ?
OfdmPhy::GetOfdmRate12Mbps() :
HePhy::GetHeMcs0()),
161 m_pifsRecovery(params.pifsRecovery),
162 m_singleRtsPerTxop(params.singleRtsPerTxop),
163 m_lengthBasedRtsCtsThresh(params.lengthBasedRtsCtsThresh),
166 m_apCorrupted(false),
167 m_staCorrupted(false)
186 bool corrupted{
false};
190 if (
const auto& hdr = psduMap.begin()->second->GetHeader(0);
200 if (
const auto& hdr = psduMap.begin()->second->GetHeader(0);
230 NS_LOG_INFO(psduMap.begin()->second->GetHeader(0).GetTypeString()
231 <<
" seq " << psduMap.begin()->second->GetHeader(0).GetSequenceNumber() <<
" to "
232 << psduMap.begin()->second->GetAddr1() <<
" TX duration "
234 <<
" duration/ID " << psduMap.begin()->second->GetHeader(0).GetDuration()
235 << (corrupted ?
" CORRUPTED" :
"") << std::endl);
243 int64_t streamNumber = 100;
246 wifiApNode.Create(1);
251 auto spectrumChannel = CreateObject<MultiModelSpectrumChannel>();
252 auto lossModel = CreateObject<FriisPropagationLossModel>();
253 spectrumChannel->AddPropagationLossModel(lossModel);
254 auto delayModel = CreateObject<ConstantSpeedPropagationDelayModel>();
255 spectrumChannel->SetPropagationDelayModel(delayModel);
258 phy.SetChannel(spectrumChannel);
260 phy.Set(
"ChannelSettings",
StringValue(
"{0, 20, BAND_5GHZ, 0}"));
279 wifi.SetRemoteStationManager(
"ns3::ConstantRateWifiManager",
286 mac.SetType(
"ns3::StaWifiMac",
302 "EnableBeaconJitter",
322 dev->GetMac()->SetSsid(
Ssid(
"wifi-txop-ssid"));
330 Ssid(
"wifi-txop-ssid"));
339 positionAlloc->Add(Vector(0.0, 0.0, 0.0));
340 positionAlloc->Add(Vector(1.0, 0.0, 0.0));
341 positionAlloc->Add(Vector(0.0, 1.0, 0.0));
342 positionAlloc->Add(Vector(-1.0, 0.0, 0.0));
343 mobility.SetPositionAllocator(positionAlloc);
345 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
346 mobility.Install(wifiApNode);
347 mobility.Install(wifiStaNodes);
350 packetSocket.
Install(wifiApNode);
351 packetSocket.
Install(wifiStaNodes);
365 auto client = CreateObject<PacketSocketClient>();
369 client->SetRemote(socket);
370 wifiApNode.Get(0)->AddApplication(client);
372 client->SetStopTime(
Seconds(1.0));
376 auto client1 = CreateObject<PacketSocketClient>();
380 client1->SetRemote(socket);
381 wifiApNode.Get(0)->AddApplication(client1);
383 client1->SetStopTime(
Seconds(1.0));
386 auto client2 = CreateObject<PacketSocketClient>();
390 client2->SetRemote(socket);
391 wifiApNode.Get(0)->AddApplication(client2);
393 client2->SetStopTime(
Seconds(1.0));
395 auto server = CreateObject<PacketSocketServer>();
396 server->SetLocal(socket);
397 wifiStaNodes.Get(i)->AddApplication(server);
398 server->SetStartTime(
Seconds(0.0));
399 server->SetStopTime(
Seconds(1.0));
404 dev->GetMac()->GetWifiPhy()->SetPostReceptionErrorModel(
m_apErrorModel);
408 dev->GetMac()->GetWifiPhy()->SetPostReceptionErrorModel(
m_staErrorModel);
421 auto client = CreateObject<PacketSocketClient>();
425 client->SetRemote(socket);
426 wifiStaNodes.Get(0)->AddApplication(client);
428 client->SetStopTime(
Seconds(1.0));
431 auto client = CreateObject<PacketSocketClient>();
435 client->SetRemote(socket);
436 wifiStaNodes.Get(0)->AddApplication(client);
438 client->SetStopTime(
Seconds(1.0));
440 auto server = CreateObject<PacketSocketServer>();
441 server->SetLocal(socket);
442 wifiApNode.Get(0)->AddApplication(server);
443 server->SetStartTime(
Seconds(0.0));
444 server->SetStopTime(
Seconds(1.0));
447 Config::Connect(
"/NodeList/*/ApplicationList/*/$ns3::PacketSocketServer/Rx",
450 Config::Connect(
"/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Phy/PhyTxPsduBegin",
470 "Unexpected AIFSN for STA " << i);
473 "Unexpected CWmin for STA " << i);
476 "Unexpected CWmax for STA " << i);
479 "Unexpected TXOP limit for STA " << i);
482 const auto apDev = DynamicCast<WifiNetDevice>(
m_apDevices.
Get(0));
486 "Unexpected TXOP limit for AP");
494 Time sifs = apDev->GetPhy()->GetSifs();
495 Time slot = apDev->GetPhy()->GetSlot();
501 const Time rtsCtsTxDurationThresh = DynamicCast<const TimeValue>(info.
initialValue)->Get();
504 auto RoundDurationId = [](
Time t) {
505 return MicroSeconds(ceil(
static_cast<double>(t.GetNanoSeconds()) / 1000));
533 "Unexpected number of transmitted frames");
540 DynamicCast<WifiNetDevice>(
m_staDevices.
Get(0))->GetMac()->GetAddress(),
541 "Expected a frame sent by the AP to the first station");
546 "PSDU size expected not to exceed length based RTS/CTS threshold");
552 rtsCtsTxDurationThresh,
553 "PSDU duration expected not to exceed duration based RTS/CTS threshold");
557 "Duration/ID of the first frame must cover the whole TXOP");
565 tEnd + sifs + tolerance,
566 "Ack in response to the first frame sent too late");
569 apDev->GetMac()->GetAddress(),
570 "Expected a Normal Ack sent to the AP");
574 "Duration/ID of the Ack must be derived from that of the first frame");
585 auto eifsNoDifs = apPhy->GetSifs() + apPhy->GetAckTxTime();
589 eifsNoDifs + sifs + aifsn * slot,
590 "Less than AIFS elapsed between AckTimeout and the next TXOP start");
593 eifsNoDifs + sifs + aifsn * slot + (2 * (cwMin + 1) - 1) * slot,
594 "More than AIFS+BO elapsed between AckTimeout and the next TXOP start");
597 "Expected to retransmit a QoS data frame");
599 DynamicCast<WifiNetDevice>(
m_staDevices.
Get(0))->GetMac()->GetAddress(),
600 "Expected to retransmit a frame to the first station");
605 "PSDU size expected not to exceed length based RTS/CTS threshold");
611 rtsCtsTxDurationThresh,
612 "PSDU duration expected not to exceed duration based RTS/CTS threshold");
616 "Duration/ID of the retransmitted frame must cover the whole TXOP");
624 tEnd + sifs + tolerance,
625 "Ack in response to the first frame sent too late");
628 apDev->GetMac()->GetAddress(),
629 "Expected a Normal Ack sent to the AP");
633 "Duration/ID of the Ack must be derived from that of the previous frame");
643 DynamicCast<WifiNetDevice>(
m_staDevices.
Get(1))->GetMac()->GetAddress(),
644 "Expected a frame sent by the AP to the second station");
649 "PSDU size expected not to exceed length based RTS/CTS threshold");
655 rtsCtsTxDurationThresh,
656 "PSDU duration expected not to exceed duration based RTS/CTS threshold");
661 "Duration/ID of the second frame does not cover the remaining TXOP");
667 auto staAddress = DynamicCast<WifiNetDevice>(
m_staDevices.
Get(1))->GetMac()->GetAddress();
668 auto ackTxVector = apStationManager->GetAckTxVector(staAddress,
m_txPsdus[4].txVector);
677 "Second frame must have been sent after a PIFS");
684 "Less than AIFS elapsed between AckTimeout and the next transmission");
687 sifs + aifsn * slot + (2 * (cwMin + 1) - 1) * slot,
688 "More than AIFS+BO elapsed between AckTimeout and the next TXOP start");
692 DynamicCast<WifiNetDevice>(
m_staDevices.
Get(1))->GetMac()->GetAddress(),
693 "Expected a frame sent by the AP to the second station");
698 "PSDU size expected not to exceed length based RTS/CTS threshold");
704 rtsCtsTxDurationThresh,
705 "PSDU duration expected not to exceed duration based RTS/CTS threshold");
710 "Duration/ID of the second frame does not cover the remaining TXOP");
718 "Ack in response to the second frame sent too early");
720 tEnd + sifs + tolerance,
721 "Ack in response to the second frame sent too late");
724 apDev->GetMac()->GetAddress(),
725 "Expected a Normal Ack sent to the AP");
729 "Duration/ID of the Ack must be derived from that of the previous frame");
739 DynamicCast<WifiNetDevice>(
m_staDevices.
Get(2))->GetMac()->GetAddress(),
740 "Expected a frame sent by the AP to the third station");
745 "PSDU size expected not to exceed length based RTS/CTS threshold");
751 rtsCtsTxDurationThresh,
752 "PSDU duration expected not to exceed duration based RTS/CTS threshold");
757 "Duration/ID of the third frame does not cover the remaining TXOP");
765 tEnd + sifs + tolerance,
766 "Ack in response to the third frame sent too late");
769 apDev->GetMac()->GetAddress(),
770 "Expected a Normal Ack sent to the AP");
774 "Duration/ID of the Ack must be derived from that of the previous frame");
785 "Duration/ID must be set to 0 for CF-End frames");
793 "Less than AIFS elapsed between two TXOPs");
796 "More than AIFS+BO elapsed between two TXOPs");
799 apDev->GetMac()->GetAddress(),
800 "Expected a frame sent by the first station to the AP");
805 "PSDU size expected not to exceed length based RTS/CTS threshold");
811 rtsCtsTxDurationThresh,
812 "PSDU duration expected not to exceed duration based RTS/CTS threshold");
817 "Duration/ID of the frame sent by the first station does not cover the remaining TXOP");
827 DynamicCast<WifiNetDevice>(
m_staDevices.
Get(0))->GetMac()->GetAddress(),
828 "Expected a Normal Ack sent to the first station");
831 RoundDurationId(
m_txPsdus[10].header.GetDuration() - sifs -
m_txPsdus[11].txDuration),
832 "Duration/ID of the Ack must be derived from that of the previous frame");
843 "Duration/ID must be set to 0 for CF-End frames");
871 std::string ack(
m_nonHt ?
"Normal Ack" :
"Block Ack");
875 DynamicCast<WifiNetDevice>(
m_staDevices.
Get(0))->GetMac()->GetAddress(),
876 "Expected an RTS frame sent by the AP to the first station");
879 "Duration/ID of the first RTS frame must cover the whole TXOP");
887 "CTS in response to the first RTS frame sent too early");
889 tEnd + sifs + tolerance,
890 "CTS in response to the first RTS frame sent too late");
893 apDev->GetMac()->GetAddress(),
894 "Expected a CTS frame sent to the AP");
897 RoundDurationId(
m_txPsdus[13].header.GetDuration() - sifs -
m_txPsdus[14].txDuration),
898 "Duration/ID of the CTS frame must be derived from that of the RTS frame");
908 DynamicCast<WifiNetDevice>(
m_staDevices.
Get(0))->GetMac()->GetAddress(),
909 "Expected a frame sent by the AP to the first station");
914 "PSDU size expected to exceed length based RTS/CTS threshold");
919 rtsCtsTxDurationThresh,
920 "PSDU duration expected to exceed duration based RTS/CTS threshold");
926 "Duration/ID of the first QoS data frame does not cover the remaining TXOP");
934 ack <<
" in response to the first QoS data frame sent too early");
936 tEnd + sifs + tolerance,
937 ack <<
" in response to the first QoS data frame sent too late");
941 "Expected a " << ack);
943 apDev->GetMac()->GetAddress(),
944 "Expected a " << ack <<
" sent to the AP");
947 RoundDurationId(
m_txPsdus[15].header.GetDuration() - sifs -
m_txPsdus[16].txDuration),
948 "Duration/ID of the " << ack <<
" must be derived from that of the previous frame");
950 std::size_t idx = 16;
964 DynamicCast<WifiNetDevice>(
m_staDevices.
Get(1))->GetMac()->GetAddress(),
965 "Expected an RTS frame sent by the AP to the second station");
969 "Duration/ID of the second RTS frame must cover the whole TXOP");
977 "CTS in response to the second RTS frame sent too early");
979 tEnd + sifs + tolerance,
980 "CTS in response to the second RTS frame sent too late");
983 apDev->GetMac()->GetAddress(),
984 "Expected a CTS frame sent to the AP");
987 RoundDurationId(
m_txPsdus[idx].header.GetDuration() - sifs -
989 "Duration/ID of the CTS frame must be derived from that of the RTS frame");
1003 DynamicCast<WifiNetDevice>(
m_staDevices.
Get(1))->GetMac()->GetAddress(),
1004 "Expected a frame sent by the AP to the second station");
1009 "PSDU size expected to exceed length based RTS/CTS threshold");
1014 rtsCtsTxDurationThresh,
1015 "PSDU duration expected to exceed duration based RTS/CTS threshold");
1021 "Duration/ID of the second QoS data frame does not cover the remaining TXOP");
1029 ack <<
" in response to the second QoS data frame sent too early");
1031 tEnd + sifs + tolerance,
1032 ack <<
" in response to the second QoS data frame sent too late");
1036 "Expected a " << ack);
1038 apDev->GetMac()->GetAddress(),
1039 "Expected a " << ack <<
" sent to the AP");
1041 m_txPsdus[idx + 1].header.GetDuration(),
1042 RoundDurationId(
m_txPsdus[idx].header.GetDuration() - sifs -
m_txPsdus[idx + 1].txDuration),
1043 "Duration/ID of the " << ack <<
" must be derived from that of the previous frame");
1058 DynamicCast<WifiNetDevice>(
m_staDevices.
Get(2))->GetMac()->GetAddress(),
1059 "Expected an RTS frame sent by the AP to the third station");
1063 "Duration/ID of the third RTS frame must cover the whole TXOP");
1071 "CTS in response to the third RTS frame sent too early");
1073 tEnd + sifs + tolerance,
1074 "CTS in response to the third RTS frame sent too late");
1077 apDev->GetMac()->GetAddress(),
1078 "Expected a CTS frame sent to the AP");
1080 m_txPsdus[idx + 1].header.GetDuration(),
1081 RoundDurationId(
m_txPsdus[idx].header.GetDuration() - sifs -
1083 "Duration/ID of the CTS frame must be derived from that of the RTS frame");
1096 DynamicCast<WifiNetDevice>(
m_staDevices.
Get(2))->GetMac()->GetAddress(),
1097 "Expected a frame sent by the AP to the third station");
1102 "PSDU size expected to exceed length based RTS/CTS threshold");
1107 rtsCtsTxDurationThresh,
1108 "PSDU duration expected to exceed duration based RTS/CTS threshold");
1114 "Duration/ID of the third QoS data frame does not cover the remaining TXOP");
1122 ack <<
" in response to the third QoS data frame sent too early");
1124 tEnd + sifs + tolerance,
1125 ack <<
" in response to the third QoS data frame sent too late");
1129 "Expected a " << ack);
1131 apDev->GetMac()->GetAddress(),
1132 "Expected a " << ack <<
" sent to the AP");
1134 m_txPsdus[idx + 1].header.GetDuration(),
1135 RoundDurationId(
m_txPsdus[idx].header.GetDuration() - sifs -
m_txPsdus[idx + 1].txDuration),
1136 "Duration/ID of the " << ack <<
" must be derived from that of the previous frame");
1152 "Duration/ID must be set to 0 for CF-End frames");
1177 for (
const auto nonHt : {
true,
false})
1180 .pifsRecovery =
true,
1181 .singleRtsPerTxop =
false,
1182 .lengthBasedRtsCtsThresh =
false}),
1183 TestCase::Duration::QUICK);
1185 .pifsRecovery =
false,
1186 .singleRtsPerTxop =
true,
1187 .lengthBasedRtsCtsThresh =
false}),
1188 TestCase::Duration::QUICK);
1190 .pifsRecovery =
true,
1191 .singleRtsPerTxop =
true,
1192 .lengthBasedRtsCtsThresh =
true}),
1193 TestCase::Duration::QUICK);
void L7Receive(std::string context, Ptr< const Packet > p, const Address &addr)
Function to trace packets received by the server application.
bool m_pifsRecovery
whether to use PIFS recovery
NetDeviceContainer m_apDevices
container for AP's NetDevice
WifiTxopTest(const Params ¶ms)
Constructor.
uint8_t m_staAifsn
AIFSN for STAs (AC BE)
void DoRun() override
Implementation to actually run this TestCase.
uint16_t m_received
number of packets received by the stations
uint16_t m_nStations
number of stations
Ptr< ListErrorModel > m_apErrorModel
error model to install on the AP
uint32_t m_staCwMin
CWmin for STAs (AC BE)
bool m_nonHt
whether to use 802.11a or 802.11ax
std::size_t m_payloadSizeRtsOff
size in bytes of packets not protected by RTS
WifiMode m_mode
wifi mode used to transmit data frames
Time m_apTxopLimit
TXOP limit for AP (AC BE)
std::vector< FrameInfo > m_txPsdus
transmitted PSDUs
Time m_startTime
time when data frame exchanges start
bool m_staCorrupted
whether the frame to be corrupted by the STA has been corrupted
void Transmit(std::string context, WifiConstPsduMap psduMap, WifiTxVector txVector, double txPowerW)
Callback invoked when PHY receives a PSDU to transmit.
bool m_singleRtsPerTxop
whether to use single RTS per TXOP
NetDeviceContainer m_staDevices
container for stations' NetDevices
bool m_apCorrupted
whether the frame to be corrupted by the AP has been corrupted
std::size_t m_payloadSizeRtsOn
size in bytes of packets protected by RTS
uint32_t m_staCwMax
CWmax for STAs (AC BE)
bool m_lengthBasedRtsCtsThresh
whether to use length based RTS/CTS threshold
Time m_staTxopLimit
TXOP limit for STAs (AC BE)
Ptr< ListErrorModel > m_staErrorModel
error model to install on a STA
void CheckResults()
Check correctness of transmitted frames.
a polymophic address class
std::map< AcIndex, std::vector< uint64_t > > UintAccessParamsMap
ACI-indexed map of access parameters of type unsigned integer (CWmin, CWmax and AIFSN)
A container for one type of attribute.
AttributeValue implementation for Boolean.
Provide a list of Packet uids to corrupt.
void SetList(const std::list< uint64_t > &packetlist)
Helper class used to assign positions and mobility models to nodes.
holds a vector of ns3::NetDevice pointers
uint32_t GetN() const
Get the number of Ptr<NetDevice> stored in this container.
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.
PHY entity for OFDM (11a)
an address for a packet socket
void SetProtocol(uint16_t protocol)
Set the protocol.
void SetPhysicalAddress(const Address address)
Set the destination address.
void SetSingleDevice(uint32_t device)
Set the address to match only a specified NetDevice.
Give ns3::PacketSocket powers to ns3::Node.
void Install(Ptr< Node > node) const
Aggregate an instance of a ns3::PacketSocketFactory onto the provided node.
Smart pointer class similar to boost::intrusive_ptr.
static void SetRun(uint64_t run)
Set the run number of simulation.
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 Time Now()
Return the current simulation virtual time.
static void Run()
Run the simulation.
static void Stop()
Tell the Simulator the calling event should be the last one executed.
Make it easy to create and manage PHY objects for the spectrum model.
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.
Simulation virtual time values and global simulation resolution.
int64_t GetMicroSeconds() const
Get an approximation of the time stored in this instance in the indicated unit.
AttributeValue implementation for Time.
bool LookupAttributeByName(std::string name, AttributeInformation *info) const
Find an Attribute by name, retrieving the associated AttributeInformation.
Hold an unsigned integer type.
helps to create WifiNetDevice objects
create MAC layers for a ns3::WifiNetDevice.
represent a single transmission mode
uint64_t GetDataRate(uint16_t channelWidth, uint16_t guardInterval, uint8_t nss) const
AttributeValue implementation for WifiMode.
static Time CalculateTxDuration(uint32_t size, const WifiTxVector &txVector, WifiPhyBand band, uint16_t staId=SU_STA_ID)
static Time CalculatePhyPreambleAndHeaderDuration(const WifiTxVector &txVector)
static TypeId GetTypeId()
Get the type ID.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
void SetDefault(std::string name, const AttributeValue &value)
void Connect(std::string path, const CallbackBase &cb)
#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.
Ptr< T > CreateObject(Args &&... args)
Create an object by type, with varying number of constructor parameters.
#define NS_TEST_EXPECT_MSG_GT_OR_EQ(actual, limit, msg)
Test that an actual value is greater than or equal to limit and report if not.
#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_EXPECT_MSG_LT_OR_EQ(actual, limit, msg)
Test that an actual value is less than or equal to a limit and report if not.
#define NS_TEST_EXPECT_MSG_LT(actual, limit, msg)
Test that an actual value is less than a limit and report if not.
#define NS_TEST_EXPECT_MSG_GT(actual, limit, msg)
Test that an actual value is greater than a limit and report if not.
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not.
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
Time NanoSeconds(uint64_t value)
Construct a Time in the indicated unit.
Time Seconds(double value)
Construct a Time in the indicated unit.
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
@ WIFI_PHY_BAND_5GHZ
The 5 GHz band.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::unordered_map< uint16_t, Ptr< const WifiPsdu > > WifiConstPsduMap
Map of const PSDUs indexed by STA-ID.
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...
static constexpr uint8_t SINGLE_LINK_OP_ID
Link ID for single link operations (helps tracking places where correct link ID is to be used to supp...
static constexpr uint16_t SU_STA_ID
STA_ID to identify a single user (SU)
Information about transmitted frames.
WifiMacHeader header
Frame MAC header.
WifiTxVector txVector
TX vector used to transmit the frame.
Time txStart
Frame start TX time.
Time txDuration
Frame TX duration.
uint32_t size
PSDU size in bytes.
Parameters for this test.
bool lengthBasedRtsCtsThresh
if true, use length based RTS/CTS threshold; if false, use TX duration based RTS/CTS threshold
bool singleRtsPerTxop
whether protection mechanism is used no more than once per TXOP
bool nonHt
use 802.11a standard if true, 802.11ax standard otherwise
bool pifsRecovery
whether PIFS recovery is used after failure of a non-initial frame
static WifiTxopTestSuite g_wifiTxopTestSuite
the test suite