A Discrete-Event Network Simulator
API
TestDlMuMimoPhyTransmission Class Reference

DL MU-MIMO PHY test. More...

+ Inheritance diagram for TestDlMuMimoPhyTransmission:
+ Collaboration diagram for TestDlMuMimoPhyTransmission:

Classes

struct  StaInfo
 STA info. More...
 

Public Member Functions

 TestDlMuMimoPhyTransmission ()
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName () const
 
TestCaseoperator= (const TestCase &)=delete
 

Private Member Functions

void CheckPhyState (Ptr< MuMimoSpectrumWifiPhy > phy, WifiPhyState expectedState)
 Schedule now to check the PHY state. More...
 
void CheckResultsSta1 (uint32_t expectedRxSuccess, uint32_t expectedRxFailure, uint32_t expectedRxBytes)
 Check the results for STA 1. More...
 
void CheckResultsSta2 (uint32_t expectedRxSuccess, uint32_t expectedRxFailure, uint32_t expectedRxBytes)
 Check the results for STA 2. More...
 
void CheckResultsSta3 (uint32_t expectedRxSuccess, uint32_t expectedRxFailure, uint32_t expectedRxBytes)
 Check the results for STA 3. More...
 
void DoCheckPhyState (Ptr< MuMimoSpectrumWifiPhy > phy, WifiPhyState expectedState)
 Check the PHY state now. More...
 
void DoRun () override
 Implementation to actually run this TestCase. More...
 
void DoSetup () override
 Implementation to do any local setup required for this TestCase. More...
 
void DoTeardown () override
 Implementation to do any local setup required for this TestCase. More...
 
void GenerateInterference (Ptr< SpectrumValue > interferencePsd, Time duration)
 Generate interference function. More...
 
void ResetResults ()
 Reset the results. More...
 
void RunOne ()
 Run one function. More...
 
void RxFailureSta1 (Ptr< const WifiPsdu > psdu)
 Receive failure function for STA 1. More...
 
void RxFailureSta2 (Ptr< const WifiPsdu > psdu)
 Receive failure function for STA 2. More...
 
void RxFailureSta3 (Ptr< const WifiPsdu > psdu)
 Receive failure function for STA 3. More...
 
void RxSuccessSta1 (Ptr< const WifiPsdu > psdu, RxSignalInfo rxSignalInfo, WifiTxVector txVector, std::vector< bool > statusPerMpdu)
 Receive success function for STA 1. More...
 
void RxSuccessSta2 (Ptr< const WifiPsdu > psdu, RxSignalInfo rxSignalInfo, WifiTxVector txVector, std::vector< bool > statusPerMpdu)
 Receive success function for STA 2. More...
 
void RxSuccessSta3 (Ptr< const WifiPsdu > psdu, RxSignalInfo rxSignalInfo, WifiTxVector txVector, std::vector< bool > statusPerMpdu)
 Receive success function for STA 3. More...
 
void SendMuPpdu (const std::vector< StaInfo > &staInfos)
 Send DL MU-MIMO PPDU function. More...
 
void StopInterference ()
 Stop interference function. More...
 

Private Attributes

uint16_t m_channelWidth
 channel width in MHz More...
 
uint32_t m_countRxBytesSta1
 count RX bytes for STA 1 More...
 
uint32_t m_countRxBytesSta2
 count RX bytes for STA 2 More...
 
uint32_t m_countRxBytesSta3
 count RX bytes for STA 3 More...
 
uint32_t m_countRxFailureSta1
 count RX failure for STA 1 More...
 
uint32_t m_countRxFailureSta2
 count RX failure for STA 2 More...
 
uint32_t m_countRxFailureSta3
 count RX failure for STA 3 More...
 
uint32_t m_countRxSuccessSta1
 count RX success for STA 1 More...
 
uint32_t m_countRxSuccessSta2
 count RX success for STA 2 More...
 
uint32_t m_countRxSuccessSta3
 count RX success for STA 3 More...
 
Time m_expectedPpduDuration
 expected duration to send MU PPDU More...
 
uint16_t m_frequency
 frequency in MHz More...
 
uint8_t m_nss
 number of spatial streams per STA More...
 
Ptr< SpectrumWifiPhym_phyAp
 PHY of AP. More...
 
Ptr< MuMimoSpectrumWifiPhym_phySta1
 PHY of STA 1. More...
 
Ptr< MuMimoSpectrumWifiPhym_phySta2
 PHY of STA 2. More...
 
Ptr< MuMimoSpectrumWifiPhym_phySta3
 PHY of STA 3. 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 TestCase. More...
 
bool IsStatusFailure () const
 Check if any tests failed. More...
 
bool IsStatusSuccess () 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 () const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure () 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

DL MU-MIMO PHY test.

Definition at line 343 of file wifi-phy-mu-mimo-test.cc.

Constructor & Destructor Documentation

◆ TestDlMuMimoPhyTransmission()

TestDlMuMimoPhyTransmission::TestDlMuMimoPhyTransmission ( )

Definition at line 501 of file wifi-phy-mu-mimo-test.cc.

Member Function Documentation

◆ CheckPhyState()

void TestDlMuMimoPhyTransmission::CheckPhyState ( Ptr< MuMimoSpectrumWifiPhy phy,
WifiPhyState  expectedState 
)
private

Schedule now to check the PHY state.

Parameters
phythe PHY
expectedStatethe expected state of the PHY

Definition at line 681 of file wifi-phy-mu-mimo-test.cc.

References DoCheckPhyState(), and third::phy.

Referenced by RunOne().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CheckResultsSta1()

void TestDlMuMimoPhyTransmission::CheckResultsSta1 ( uint32_t  expectedRxSuccess,
uint32_t  expectedRxFailure,
uint32_t  expectedRxBytes 
)
private

Check the results for STA 1.

Parameters
expectedRxSuccessthe expected number of RX success
expectedRxFailurethe expected number of RX failures
expectedRxBytesthe expected number of RX bytes

Definition at line 633 of file wifi-phy-mu-mimo-test.cc.

References m_countRxBytesSta1, m_countRxFailureSta1, m_countRxSuccessSta1, and NS_TEST_ASSERT_MSG_EQ.

Referenced by RunOne().

+ Here is the caller graph for this function:

◆ CheckResultsSta2()

void TestDlMuMimoPhyTransmission::CheckResultsSta2 ( uint32_t  expectedRxSuccess,
uint32_t  expectedRxFailure,
uint32_t  expectedRxBytes 
)
private

Check the results for STA 2.

Parameters
expectedRxSuccessthe expected number of RX success
expectedRxFailurethe expected number of RX failures
expectedRxBytesthe expected number of RX bytes

Definition at line 649 of file wifi-phy-mu-mimo-test.cc.

References m_countRxBytesSta2, m_countRxFailureSta2, m_countRxSuccessSta2, and NS_TEST_ASSERT_MSG_EQ.

Referenced by RunOne().

+ Here is the caller graph for this function:

◆ CheckResultsSta3()

void TestDlMuMimoPhyTransmission::CheckResultsSta3 ( uint32_t  expectedRxSuccess,
uint32_t  expectedRxFailure,
uint32_t  expectedRxBytes 
)
private

Check the results for STA 3.

Parameters
expectedRxSuccessthe expected number of RX success
expectedRxFailurethe expected number of RX failures
expectedRxBytesthe expected number of RX bytes

Definition at line 665 of file wifi-phy-mu-mimo-test.cc.

References m_countRxBytesSta3, m_countRxFailureSta3, m_countRxSuccessSta3, and NS_TEST_ASSERT_MSG_EQ.

Referenced by RunOne().

+ Here is the caller graph for this function:

◆ DoCheckPhyState()

void TestDlMuMimoPhyTransmission::DoCheckPhyState ( Ptr< MuMimoSpectrumWifiPhy phy,
WifiPhyState  expectedState 
)
private

Check the PHY state now.

Parameters
phythe PHY
expectedStatethe expected state of the PHY

Definition at line 690 of file wifi-phy-mu-mimo-test.cc.

References ns3::PointerValue::Get(), ns3::Now(), NS_LOG_FUNCTION, NS_TEST_ASSERT_MSG_EQ, and third::phy.

Referenced by CheckPhyState().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoRun()

void TestDlMuMimoPhyTransmission::DoRun ( )
overrideprivatevirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 1089 of file wifi-phy-mu-mimo-test.cc.

References m_channelWidth, m_expectedPpduDuration, m_frequency, m_nss, ns3::NanoSeconds(), and RunOne().

+ Here is the call graph for this function:

◆ DoSetup()

void TestDlMuMimoPhyTransmission::DoSetup ( )
overrideprivatevirtual

◆ DoTeardown()

void TestDlMuMimoPhyTransmission::DoTeardown ( )
overrideprivatevirtual

Implementation to do any local setup required for this TestCase.

Subclasses should override this method to perform any costly per-test teardown

Reimplemented from ns3::TestCase.

Definition at line 779 of file wifi-phy-mu-mimo-test.cc.

References ns3::Object::Dispose(), m_phyAp, m_phySta1, m_phySta2, and m_phySta3.

+ Here is the call graph for this function:

◆ GenerateInterference()

void TestDlMuMimoPhyTransmission::GenerateInterference ( Ptr< SpectrumValue interferencePsd,
Time  duration 
)
private

Generate interference function.

Parameters
interferencePsdthe PSD of the interference to be generated
durationthe duration of the interference

◆ ResetResults()

void TestDlMuMimoPhyTransmission::ResetResults ( )
private

Reset the results.

Definition at line 520 of file wifi-phy-mu-mimo-test.cc.

References m_countRxBytesSta1, m_countRxBytesSta2, m_countRxBytesSta3, m_countRxFailureSta1, m_countRxFailureSta2, m_countRxFailureSta3, m_countRxSuccessSta1, m_countRxSuccessSta2, and m_countRxSuccessSta3.

Referenced by RunOne().

+ Here is the caller graph for this function:

◆ RunOne()

◆ RxFailureSta1()

void TestDlMuMimoPhyTransmission::RxFailureSta1 ( Ptr< const WifiPsdu psdu)
private

Receive failure function for STA 1.

Parameters
psduthe PSDU

Definition at line 612 of file wifi-phy-mu-mimo-test.cc.

References m_countRxFailureSta1, and NS_LOG_FUNCTION.

Referenced by DoSetup().

+ Here is the caller graph for this function:

◆ RxFailureSta2()

void TestDlMuMimoPhyTransmission::RxFailureSta2 ( Ptr< const WifiPsdu psdu)
private

Receive failure function for STA 2.

Parameters
psduthe PSDU

Definition at line 619 of file wifi-phy-mu-mimo-test.cc.

References m_countRxFailureSta2, and NS_LOG_FUNCTION.

Referenced by DoSetup().

+ Here is the caller graph for this function:

◆ RxFailureSta3()

void TestDlMuMimoPhyTransmission::RxFailureSta3 ( Ptr< const WifiPsdu psdu)
private

Receive failure function for STA 3.

Parameters
psduthe PSDU

Definition at line 626 of file wifi-phy-mu-mimo-test.cc.

References m_countRxFailureSta3, and NS_LOG_FUNCTION.

Referenced by DoSetup().

+ Here is the caller graph for this function:

◆ RxSuccessSta1()

void TestDlMuMimoPhyTransmission::RxSuccessSta1 ( Ptr< const WifiPsdu psdu,
RxSignalInfo  rxSignalInfo,
WifiTxVector  txVector,
std::vector< bool >  statusPerMpdu 
)
private

Receive success function for STA 1.

Parameters
psduthe PSDU
rxSignalInfothe info on the received signal (
See also
RxSignalInfo)
Parameters
txVectorthe transmit vector
statusPerMpdureception status per MPDU

Definition at line 579 of file wifi-phy-mu-mimo-test.cc.

References ns3::WifiPsdu::GetSize(), m_countRxBytesSta1, m_countRxSuccessSta1, and NS_LOG_FUNCTION.

Referenced by DoSetup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RxSuccessSta2()

void TestDlMuMimoPhyTransmission::RxSuccessSta2 ( Ptr< const WifiPsdu psdu,
RxSignalInfo  rxSignalInfo,
WifiTxVector  txVector,
std::vector< bool >  statusPerMpdu 
)
private

Receive success function for STA 2.

Parameters
psduthe PSDU
rxSignalInfothe info on the received signal (
See also
RxSignalInfo)
Parameters
txVectorthe transmit vector
statusPerMpdureception status per MPDU

Definition at line 590 of file wifi-phy-mu-mimo-test.cc.

References ns3::WifiPsdu::GetSize(), m_countRxBytesSta2, m_countRxSuccessSta2, and NS_LOG_FUNCTION.

Referenced by DoSetup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RxSuccessSta3()

void TestDlMuMimoPhyTransmission::RxSuccessSta3 ( Ptr< const WifiPsdu psdu,
RxSignalInfo  rxSignalInfo,
WifiTxVector  txVector,
std::vector< bool >  statusPerMpdu 
)
private

Receive success function for STA 3.

Parameters
psduthe PSDU
rxSignalInfothe info on the received signal (
See also
RxSignalInfo)
Parameters
txVectorthe transmit vector
statusPerMpdureception status per MPDU

Definition at line 601 of file wifi-phy-mu-mimo-test.cc.

References ns3::WifiPsdu::GetSize(), m_countRxBytesSta3, m_countRxSuccessSta3, and NS_LOG_FUNCTION.

Referenced by DoSetup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendMuPpdu()

void TestDlMuMimoPhyTransmission::SendMuPpdu ( const std::vector< StaInfo > &  staInfos)
private

◆ StopInterference()

void TestDlMuMimoPhyTransmission::StopInterference ( )
private

Stop interference function.

Member Data Documentation

◆ m_channelWidth

uint16_t TestDlMuMimoPhyTransmission::m_channelWidth
private

channel width in MHz

Definition at line 497 of file wifi-phy-mu-mimo-test.cc.

Referenced by DoRun(), RunOne(), and SendMuPpdu().

◆ m_countRxBytesSta1

uint32_t TestDlMuMimoPhyTransmission::m_countRxBytesSta1
private

count RX bytes for STA 1

Definition at line 486 of file wifi-phy-mu-mimo-test.cc.

Referenced by CheckResultsSta1(), ResetResults(), and RxSuccessSta1().

◆ m_countRxBytesSta2

uint32_t TestDlMuMimoPhyTransmission::m_countRxBytesSta2
private

count RX bytes for STA 2

Definition at line 487 of file wifi-phy-mu-mimo-test.cc.

Referenced by CheckResultsSta2(), ResetResults(), and RxSuccessSta2().

◆ m_countRxBytesSta3

uint32_t TestDlMuMimoPhyTransmission::m_countRxBytesSta3
private

count RX bytes for STA 3

Definition at line 488 of file wifi-phy-mu-mimo-test.cc.

Referenced by CheckResultsSta3(), ResetResults(), and RxSuccessSta3().

◆ m_countRxFailureSta1

uint32_t TestDlMuMimoPhyTransmission::m_countRxFailureSta1
private

count RX failure for STA 1

Definition at line 483 of file wifi-phy-mu-mimo-test.cc.

Referenced by CheckResultsSta1(), ResetResults(), and RxFailureSta1().

◆ m_countRxFailureSta2

uint32_t TestDlMuMimoPhyTransmission::m_countRxFailureSta2
private

count RX failure for STA 2

Definition at line 484 of file wifi-phy-mu-mimo-test.cc.

Referenced by CheckResultsSta2(), ResetResults(), and RxFailureSta2().

◆ m_countRxFailureSta3

uint32_t TestDlMuMimoPhyTransmission::m_countRxFailureSta3
private

count RX failure for STA 3

Definition at line 485 of file wifi-phy-mu-mimo-test.cc.

Referenced by CheckResultsSta3(), ResetResults(), and RxFailureSta3().

◆ m_countRxSuccessSta1

uint32_t TestDlMuMimoPhyTransmission::m_countRxSuccessSta1
private

count RX success for STA 1

Definition at line 480 of file wifi-phy-mu-mimo-test.cc.

Referenced by CheckResultsSta1(), ResetResults(), and RxSuccessSta1().

◆ m_countRxSuccessSta2

uint32_t TestDlMuMimoPhyTransmission::m_countRxSuccessSta2
private

count RX success for STA 2

Definition at line 481 of file wifi-phy-mu-mimo-test.cc.

Referenced by CheckResultsSta2(), ResetResults(), and RxSuccessSta2().

◆ m_countRxSuccessSta3

uint32_t TestDlMuMimoPhyTransmission::m_countRxSuccessSta3
private

count RX success for STA 3

Definition at line 482 of file wifi-phy-mu-mimo-test.cc.

Referenced by CheckResultsSta3(), ResetResults(), and RxSuccessSta3().

◆ m_expectedPpduDuration

Time TestDlMuMimoPhyTransmission::m_expectedPpduDuration
private

expected duration to send MU PPDU

Definition at line 498 of file wifi-phy-mu-mimo-test.cc.

Referenced by DoRun(), and RunOne().

◆ m_frequency

uint16_t TestDlMuMimoPhyTransmission::m_frequency
private

frequency in MHz

Definition at line 496 of file wifi-phy-mu-mimo-test.cc.

Referenced by DoRun(), and RunOne().

◆ m_nss

uint8_t TestDlMuMimoPhyTransmission::m_nss
private

number of spatial streams per STA

Definition at line 495 of file wifi-phy-mu-mimo-test.cc.

Referenced by DoRun(), and RunOne().

◆ m_phyAp

Ptr<SpectrumWifiPhy> TestDlMuMimoPhyTransmission::m_phyAp
private

PHY of AP.

Definition at line 490 of file wifi-phy-mu-mimo-test.cc.

Referenced by DoSetup(), DoTeardown(), RunOne(), and SendMuPpdu().

◆ m_phySta1

Ptr<MuMimoSpectrumWifiPhy> TestDlMuMimoPhyTransmission::m_phySta1
private

PHY of STA 1.

Definition at line 491 of file wifi-phy-mu-mimo-test.cc.

Referenced by DoSetup(), DoTeardown(), and RunOne().

◆ m_phySta2

Ptr<MuMimoSpectrumWifiPhy> TestDlMuMimoPhyTransmission::m_phySta2
private

PHY of STA 2.

Definition at line 492 of file wifi-phy-mu-mimo-test.cc.

Referenced by DoSetup(), DoTeardown(), and RunOne().

◆ m_phySta3

Ptr<MuMimoSpectrumWifiPhy> TestDlMuMimoPhyTransmission::m_phySta3
private

PHY of STA 3.

Definition at line 493 of file wifi-phy-mu-mimo-test.cc.

Referenced by DoSetup(), DoTeardown(), and RunOne().


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