A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
GcrTestBase::GcrParameters Struct Reference

Common parameters for GCR tests. More...

#include "wifi-gcr-test.h"

+ Collaboration diagram for GcrTestBase::GcrParameters:

Public Attributes

std::set< uint8_t > addbaReqsToCorrupt {}
 list of GCR ADDBA requests (starting from 1) to corrupt
 
std::set< uint8_t > addbaRespsToCorrupt {}
 list of GCR ADDBA responses (starting from 1) to corrupt
 
uint16_t baInactivityTimeout {0}
 max time (blocks of 1024 microseconds) allowed for block ack inactivity
 
std::set< uint8_t > ctsFramesToCorrupt {}
 list of CTS frames (starting from 1) to corrupt
 
Time duration
 the duration of the simulation for the test run (2 seconds by default)
 
std::set< uint8_t > expectedDroppedGroupcastMpdus {}
 list of groupcast MPDUs that are expected to be dropped because of lifetime expiry (starting from 1)
 
GroupcastProtectionMode gcrProtectionMode
 the protection mode to use
 
Time maxLifetime {MilliSeconds(500)}
 the maximum MSDU lifetime
 
uint16_t maxNumMpdusInPsdu {0}
 maximum number of MPDUs in PSDUs
 
std::map< uint8_t, std::map< uint8_t, std::set< uint8_t > > > mpdusToCorruptPerPsdu {}
 list of MPDUs (starting from 1) to corrupt per PSDU (starting from 1)
 
uint16_t numGroupcastPackets {0}
 number of groupcast packets to generate
 
uint16_t numUnicastPackets {0}
 number of unicast packets to generate
 
uint32_t packetSize {1000}
 the size in bytes of the packets to generate
 
std::set< uint8_t > rtsFramesToCorrupt {}
 list of RTS frames (starting from 1) to corrupt
 
uint32_t rtsThreshold {}
 the RTS threshold in bytes
 
Time startGroupcast {Seconds(1.0)}
 time to start groupcast packets generation
 
Time startUnicast {}
 time to start unicast packets generation
 
std::vector< StaInfostas {}
 information about STAs
 
Time txopLimit {}
 the TXOP limit duration
 

Detailed Description

Common parameters for GCR tests.

Definition at line 76 of file wifi-gcr-test.h.

Member Data Documentation

◆ addbaReqsToCorrupt

std::set<uint8_t> GcrTestBase::GcrParameters::addbaReqsToCorrupt {}

list of GCR ADDBA requests (starting from 1) to corrupt

Definition at line 95 of file wifi-gcr-test.h.

Referenced by GcrTestBase::CheckResults(), and GcrTestBase::Transmit().

◆ addbaRespsToCorrupt

std::set<uint8_t> GcrTestBase::GcrParameters::addbaRespsToCorrupt {}

list of GCR ADDBA responses (starting from 1) to corrupt

Definition at line 97 of file wifi-gcr-test.h.

Referenced by GcrTestBase::CheckResults(), and GcrTestBase::Transmit().

◆ baInactivityTimeout

uint16_t GcrTestBase::GcrParameters::baInactivityTimeout {0}

max time (blocks of 1024 microseconds) allowed for block ack inactivity

Definition at line 101 of file wifi-gcr-test.h.

Referenced by GcrTestBase::CheckResults(), and GcrTestBase::DoSetup().

◆ ctsFramesToCorrupt

std::set<uint8_t> GcrTestBase::GcrParameters::ctsFramesToCorrupt {}

list of CTS frames (starting from 1) to corrupt

Definition at line 93 of file wifi-gcr-test.h.

Referenced by GcrTestBase::CheckResults(), GcrBaTest::PacketGenerated(), and GcrTestBase::Transmit().

◆ duration

Time GcrTestBase::GcrParameters::duration
Initial value:
{
Seconds(2)}
Time Seconds(double value)
Construct a Time in the indicated unit.
Definition nstime.h:1344

the duration of the simulation for the test run (2 seconds by default)

Definition at line 104 of file wifi-gcr-test.h.

Referenced by GcrTestBase::DoRun(), and GcrTestBase::DoSetup().

◆ expectedDroppedGroupcastMpdus

std::set<uint8_t> GcrTestBase::GcrParameters::expectedDroppedGroupcastMpdus {}

list of groupcast MPDUs that are expected to be dropped because of lifetime expiry (starting from 1)

Definition at line 98 of file wifi-gcr-test.h.

Referenced by GcrBaTest::CheckResults(), GcrUrTest::CheckResults(), and GcrBaTest::Transmit().

◆ gcrProtectionMode

GroupcastProtectionMode GcrTestBase::GcrParameters::gcrProtectionMode
Initial value:
{
GroupcastProtectionMode::RTS_CTS}

the protection mode to use

Definition at line 87 of file wifi-gcr-test.h.

Referenced by GcrTestBase::CheckResults(), GcrBaTest::ConfigureGcrManager(), and GcrUrTest::ConfigureGcrManager().

◆ maxLifetime

Time GcrTestBase::GcrParameters::maxLifetime {MilliSeconds(500)}

the maximum MSDU lifetime

Definition at line 85 of file wifi-gcr-test.h.

Referenced by GcrTestBase::DoSetup().

◆ maxNumMpdusInPsdu

uint16_t GcrTestBase::GcrParameters::maxNumMpdusInPsdu {0}

◆ mpdusToCorruptPerPsdu

std::map<uint8_t, std::map<uint8_t, std::set<uint8_t> > > GcrTestBase::GcrParameters::mpdusToCorruptPerPsdu {}

list of MPDUs (starting from 1) to corrupt per PSDU (starting from 1)

Definition at line 90 of file wifi-gcr-test.h.

Referenced by GcrBaTest::CheckResults(), GcrUrTest::CheckResults(), GcrBaTest::Transmit(), and GcrTestBase::Transmit().

◆ numGroupcastPackets

uint16_t GcrTestBase::GcrParameters::numGroupcastPackets {0}

◆ numUnicastPackets

uint16_t GcrTestBase::GcrParameters::numUnicastPackets {0}

number of unicast packets to generate

Definition at line 80 of file wifi-gcr-test.h.

Referenced by GcrBaTest::CheckResults(), GcrTestBase::CheckResults(), GcrTestBase::DoSetup(), GcrBaTest::Transmit(), and GcrTestBase::Transmit().

◆ packetSize

uint32_t GcrTestBase::GcrParameters::packetSize {1000}

the size in bytes of the packets to generate

Definition at line 81 of file wifi-gcr-test.h.

Referenced by GcrTestBase::CheckResults(), GcrTestBase::DoSetup(), and GcrTestBase::PhyRx().

◆ rtsFramesToCorrupt

std::set<uint8_t> GcrTestBase::GcrParameters::rtsFramesToCorrupt {}

list of RTS frames (starting from 1) to corrupt

Definition at line 92 of file wifi-gcr-test.h.

Referenced by GcrTestBase::CheckResults(), GcrBaTest::PacketGenerated(), and GcrTestBase::Transmit().

◆ rtsThreshold

uint32_t GcrTestBase::GcrParameters::rtsThreshold {}

the RTS threshold in bytes

Definition at line 86 of file wifi-gcr-test.h.

Referenced by GcrTestBase::CheckResults(), and GcrTestBase::DoSetup().

◆ startGroupcast

Time GcrTestBase::GcrParameters::startGroupcast {Seconds(1.0)}

time to start groupcast packets generation

Definition at line 83 of file wifi-gcr-test.h.

Referenced by GcrTestBase::DoSetup(), GcrBaTest::Transmit(), and GcrTestBase::Transmit().

◆ startUnicast

Time GcrTestBase::GcrParameters::startUnicast {}

time to start unicast packets generation

Definition at line 84 of file wifi-gcr-test.h.

Referenced by GcrTestBase::DoSetup(), GcrBaTest::Transmit(), and GcrTestBase::Transmit().

◆ stas

◆ txopLimit

Time GcrTestBase::GcrParameters::txopLimit {}

the TXOP limit duration

Definition at line 103 of file wifi-gcr-test.h.

Referenced by GcrBaTest::CheckResults(), GcrTestBase::DoSetup(), GcrBaTest::Receive(), and GcrBaTest::Transmit().


The documentation for this struct was generated from the following file: