A Discrete-Event Network Simulator
API
TestUnsupportedModulationReception Class Reference

Unsupported Modulation Reception Test This test creates a mixed network, in which an HE STA and a VHT STA are associated to an HE AP and send uplink traffic. More...

+ Inheritance diagram for TestUnsupportedModulationReception:
+ Collaboration diagram for TestUnsupportedModulationReception:

Public Member Functions

 TestUnsupportedModulationReception ()
 Constructor. More...
 
virtual ~TestUnsupportedModulationReception ()
 
void CheckResults (void)
 Check correctness of transmitted frames. More...
 
void Dropped (std::string context, Ptr< const Packet > packet, WifiPhyRxfailureReason reason)
 Callback invoked when PHY drops an incoming packet. More...
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName (void) const
 
TestCaseoperator= (const TestCase &)=delete
 

Private Member Functions

void DoRun (void) override
 Implementation to actually run this TestCase. More...
 

Private Attributes

uint16_t m_dropped
 number of packets dropped by the AP because it was already receiving More...
 

Additional Inherited Members

- Public Types inherited from ns3::TestCase
enum  TestDuration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 Constructor. More...
 
void AddTestCase (TestCase *testCase, TestDuration duration=QUICK)
 Add an individual child TestCase to this test suite. More...
 
TestCaseGetParent () const
 Get the parent of this TestCsse. More...
 
bool IsStatusFailure (void) const
 Check if any tests failed. More...
 
bool IsStatusSuccess (void) const
 Check if all tests passed. More...
 
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found. More...
 
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
 Log the failure of this TestCase. More...
 
bool MustAssertOnFailure (void) const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure (void) const
 Check if this run should continue on failure. More...
 
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory. More...
 
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory. More...
 

Detailed Description

Unsupported Modulation Reception Test This test creates a mixed network, in which an HE STA and a VHT STA are associated to an HE AP and send uplink traffic.

In the simulated deployment the VHT STA's backoff will expire while the HE STA is sending a packet, and the VHT STA will access the channel anyway. This happens because the HE STA is using an HeMcs that the VHT STA is not able to demodulate: the VHT STA will correctly stop listening to the HE packet, but it will not update its InterferenceHelper with the HE packet. Later on, this leads to the STA wrongly assuming the medium is available when its back-off expires in the middle of the HE packet. We detect that this is happening by looking at the reason why the AP is failing to decode the preamble from the VHT STA's transmission: if the reason is that it's in RX already, the test fails. The test is based on wifi-txop-test.cc.

Definition at line 2382 of file wifi-phy-reception-test.cc.

Constructor & Destructor Documentation

◆ TestUnsupportedModulationReception()

TestUnsupportedModulationReception::TestUnsupportedModulationReception ( )

Constructor.

Definition at line 2408 of file wifi-phy-reception-test.cc.

◆ ~TestUnsupportedModulationReception()

TestUnsupportedModulationReception::~TestUnsupportedModulationReception ( )
virtual

Definition at line 2414 of file wifi-phy-reception-test.cc.

Member Function Documentation

◆ CheckResults()

void TestUnsupportedModulationReception::CheckResults ( void  )

Check correctness of transmitted frames.

Definition at line 2557 of file wifi-phy-reception-test.cc.

References m_dropped, and NS_TEST_EXPECT_MSG_EQ.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ DoRun()

void TestUnsupportedModulationReception::DoRun ( void  )
overrideprivatevirtual

◆ Dropped()

void TestUnsupportedModulationReception::Dropped ( std::string  context,
Ptr< const Packet packet,
WifiPhyRxfailureReason  reason 
)

Callback invoked when PHY drops an incoming packet.

Parameters
contextthe context
packetthe packet that was dropped
reasonthe reason the packet was dropped

Definition at line 2419 of file wifi-phy-reception-test.cc.

References m_dropped, and ns3::RXING.

Referenced by DoRun().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_dropped

uint16_t TestUnsupportedModulationReception::m_dropped
private

number of packets dropped by the AP because it was already receiving

Definition at line 2405 of file wifi-phy-reception-test.cc.

Referenced by CheckResults(), and Dropped().


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