A-MPDU reception test. More...
 Inheritance diagram for TestAmpduReception:
 Inheritance diagram for TestAmpduReception: Collaboration diagram for TestAmpduReception:
 Collaboration diagram for TestAmpduReception:| Public Member Functions | |
| TestAmpduReception () | |
| virtual | ~TestAmpduReception () | 
|  Public Member Functions inherited from ns3::TestCase | |
| virtual | ~TestCase () | 
| Destructor.  More... | |
| std::string | GetName (void) const | 
| Protected Member Functions | |
| virtual void | DoSetup (void) | 
| Implementation to do any local setup required for this TestCase.  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... | |
| TestCase * | GetParent () 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... | |
| Private Member Functions | |
| void | CheckPhyState (WifiPhyState expectedState) | 
| Check the PHY state.  More... | |
| void | CheckRxDroppedBitmapAmpdu1 (uint8_t expected) | 
| Check the RX dropped bitmap for A-MPDU 1.  More... | |
| void | CheckRxDroppedBitmapAmpdu2 (uint8_t expected) | 
| Check the RX dropped bitmap for A-MPDU 2.  More... | |
| void | CheckRxFailureBitmapAmpdu1 (uint8_t expected) | 
| Check the RX failure bitmap for A-MPDU 1.  More... | |
| void | CheckRxFailureBitmapAmpdu2 (uint8_t expected) | 
| Check the RX failure bitmap for A-MPDU 2.  More... | |
| void | CheckRxSuccessBitmapAmpdu1 (uint8_t expected) | 
| Check the RX success bitmap for A-MPDU 1.  More... | |
| void | CheckRxSuccessBitmapAmpdu2 (uint8_t expected) | 
| Check the RX success bitmap for A-MPDU 2.  More... | |
| virtual void | DoRun (void) | 
| Implementation to actually run this TestCase.  More... | |
| void | IncrementFailureBitmap (uint32_t size) | 
| Increment reception failure bitmap.  More... | |
| void | IncrementSuccessBitmap (uint32_t size) | 
| Increment reception success bitmap.  More... | |
| void | ResetBitmaps () | 
| Reset bitmaps function.  More... | |
| void | RxDropped (Ptr< const Packet > p, WifiPhyRxfailureReason reason) | 
| RX dropped function.  More... | |
| void | RxFailure (Ptr< WifiPsdu > psdu) | 
| RX failure function.  More... | |
| void | RxSuccess (Ptr< WifiPsdu > psdu, double snr, WifiTxVector txVector, std::vector< bool > statusPerMpdu) | 
| RX success function.  More... | |
| void | SendAmpduWithThreeMpdus (double rxPowerDbm, uint32_t referencePacketSize) | 
| Send A-MPDU with 3 MPDUs of different size (i-th MSDU will have 100 bytes more than (i-1)-th).  More... | |
| Private Attributes | |
| Ptr< SpectrumWifiPhy > | m_phy | 
| Phy.  More... | |
| uint8_t | m_rxDroppedBitmapAmpdu1 | 
| bitmap of dropped MPDUs in A-MPDU #1  More... | |
| uint8_t | m_rxDroppedBitmapAmpdu2 | 
| bitmap of dropped MPDUs in A-MPDU #2  More... | |
| uint8_t | m_rxFailureBitmapAmpdu1 | 
| bitmap of unsuccessfully received MPDUs in A-MPDU #1  More... | |
| uint8_t | m_rxFailureBitmapAmpdu2 | 
| bitmap of unsuccessfully received MPDUs in A-MPDU #2  More... | |
| uint8_t | m_rxSuccessBitmapAmpdu1 | 
| bitmap of successfully received MPDUs in A-MPDU #1  More... | |
| uint8_t | m_rxSuccessBitmapAmpdu2 | 
| bitmap of successfully received MPDUs in A-MPDU #2  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... | |
A-MPDU reception test.
Definition at line 1382 of file wifi-phy-reception-test.cc.
| TestAmpduReception::TestAmpduReception | ( | ) | 
Definition at line 1485 of file wifi-phy-reception-test.cc.
| 
 | virtual | 
Definition at line 1496 of file wifi-phy-reception-test.cc.
References m_phy.
| 
 | private | 
Check the PHY state.
| expectedState | the expected PHY state | 
Definition at line 1671 of file wifi-phy-reception-test.cc.
References ns3::PointerValue::Get(), ns3::ObjectBase::GetAttribute(), ns3::WifiPhyStateHelper::GetState(), m_phy, ns3::Now(), and NS_TEST_ASSERT_MSG_EQ.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Check the RX dropped bitmap for A-MPDU 1.
| expected | the expected bitmap | 
Definition at line 1659 of file wifi-phy-reception-test.cc.
References m_rxDroppedBitmapAmpdu1, and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Check the RX dropped bitmap for A-MPDU 2.
| expected | the expected bitmap | 
Definition at line 1665 of file wifi-phy-reception-test.cc.
References m_rxDroppedBitmapAmpdu2, and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Check the RX failure bitmap for A-MPDU 1.
| expected | the expected bitmap | 
Definition at line 1647 of file wifi-phy-reception-test.cc.
References m_rxFailureBitmapAmpdu1, and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Check the RX failure bitmap for A-MPDU 2.
| expected | the expected bitmap | 
Definition at line 1653 of file wifi-phy-reception-test.cc.
References m_rxFailureBitmapAmpdu2, and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Check the RX success bitmap for A-MPDU 1.
| expected | the expected bitmap | 
Definition at line 1635 of file wifi-phy-reception-test.cc.
References m_rxSuccessBitmapAmpdu1, and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Check the RX success bitmap for A-MPDU 2.
| expected | the expected bitmap | 
Definition at line 1641 of file wifi-phy-reception-test.cc.
References m_rxSuccessBitmapAmpdu2, and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | privatevirtual | 
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 1738 of file wifi-phy-reception-test.cc.
References ns3::WifiPhy::AssignStreams(), CheckRxDroppedBitmapAmpdu1(), CheckRxDroppedBitmapAmpdu2(), CheckRxFailureBitmapAmpdu1(), CheckRxFailureBitmapAmpdu2(), CheckRxSuccessBitmapAmpdu1(), CheckRxSuccessBitmapAmpdu2(), m_phy, ns3::MicroSeconds(), ns3::NanoSeconds(), ResetBitmaps(), ns3::Seconds(), and SendAmpduWithThreeMpdus().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protectedvirtual | 
Implementation to do any local setup required for this TestCase.
Subclasses should override this method to perform any costly per-test setup before DoRun is invoked.
Reimplemented from ns3::TestCase.
Definition at line 1714 of file wifi-phy-reception-test.cc.
References CHANNEL_NUMBER, ns3::SpectrumWifiPhy::ConfigureStandardAndBand(), FREQUENCY, m_phy, ns3::MakeCallback(), ns3::MicroSeconds(), RxDropped(), RxFailure(), RxSuccess(), ns3::ObjectBase::SetAttribute(), ns3::SpectrumWifiPhy::SetChannelNumber(), ns3::WifiPhy::SetErrorRateModel(), ns3::WifiPhy::SetFrameCaptureModel(), ns3::SpectrumWifiPhy::SetFrequency(), ns3::WifiPhy::SetPreambleDetectionModel(), ns3::WifiPhy::SetReceiveErrorCallback(), ns3::WifiPhy::SetReceiveOkCallback(), ns3::ObjectBase::TraceConnectWithoutContext(), ns3::WIFI_PHY_BAND_5GHZ, and ns3::WIFI_PHY_STANDARD_80211ax.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Increment reception failure bitmap.
| size | the size of the received packet | 
Definition at line 1576 of file wifi-phy-reception-test.cc.
References m_rxFailureBitmapAmpdu1, and m_rxFailureBitmapAmpdu2.
Referenced by RxFailure(), and RxSuccess().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Increment reception success bitmap.
| size | the size of the received packet | 
Definition at line 1537 of file wifi-phy-reception-test.cc.
References m_rxSuccessBitmapAmpdu1, and m_rxSuccessBitmapAmpdu2.
Referenced by RxSuccess().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Reset bitmaps function.
Definition at line 1502 of file wifi-phy-reception-test.cc.
References m_rxDroppedBitmapAmpdu1, m_rxDroppedBitmapAmpdu2, m_rxFailureBitmapAmpdu1, m_rxFailureBitmapAmpdu2, m_rxSuccessBitmapAmpdu1, and m_rxSuccessBitmapAmpdu2.
Referenced by DoRun().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
RX dropped function.
| p | the packet | 
| reason | the reason | 
Definition at line 1605 of file wifi-phy-reception-test.cc.
References ns3::Packet::GetSize(), m_rxDroppedBitmapAmpdu1, m_rxDroppedBitmapAmpdu2, and NS_LOG_FUNCTION.
Referenced by DoSetup().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:RX failure function.
| psdu | the PSDU | 
Definition at line 1566 of file wifi-phy-reception-test.cc.
References ns3::WifiPsdu::begin(), ns3::WifiPsdu::end(), IncrementFailureBitmap(), and NS_LOG_FUNCTION.
Referenced by DoSetup().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
RX success function.
| psdu | the PSDU | 
| snr | the SNR | 
| txVector | the transmit vector | 
| statusPerMpdu | reception status per MPDU | 
Definition at line 1513 of file wifi-phy-reception-test.cc.
References ns3::WifiPsdu::begin(), ns3::WifiPsdu::end(), ns3::WifiPsdu::GetNMpdus(), IncrementFailureBitmap(), IncrementSuccessBitmap(), NS_ABORT_MSG_IF, and NS_LOG_FUNCTION.
Referenced by DoSetup().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Send A-MPDU with 3 MPDUs of different size (i-th MSDU will have 100 bytes more than (i-1)-th).
| rxPowerDbm | the transmit power in dBm | 
| referencePacketSize | the reference size of the packets in bytes (i-th MSDU will have 100 bytes more than (i-1)-th) | 
Definition at line 1682 of file wifi-phy-reception-test.cc.
References ns3::WifiPhy::CalculateTxDuration(), CHANNEL_WIDTH, ns3::DbmToW(), ns3::SpectrumSignalParameters::duration, FREQUENCY, ns3::WifiPhy::GetPhyBand(), ns3::WifiPsdu::GetSize(), GUARD_WIDTH, m_phy, ns3::WifiSpectrumSignalParameters::ppdu, ns3::SpectrumSignalParameters::psd, ns3::WifiMacHeader::SetQosTid(), ns3::WifiMacHeader::SetType(), ns3::SpectrumWifiPhy::StartRx(), ns3::SpectrumSignalParameters::txPhy, ns3::WIFI_MAC_QOSDATA, ns3::WIFI_PHY_BAND_5GHZ, and ns3::WIFI_PREAMBLE_HE_SU.
Referenced by DoRun().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Phy.
Definition at line 1473 of file wifi-phy-reception-test.cc.
Referenced by CheckPhyState(), DoRun(), DoSetup(), SendAmpduWithThreeMpdus(), and ~TestAmpduReception().
| 
 | private | 
bitmap of dropped MPDUs in A-MPDU #1
Definition at line 1481 of file wifi-phy-reception-test.cc.
Referenced by CheckRxDroppedBitmapAmpdu1(), ResetBitmaps(), and RxDropped().
| 
 | private | 
bitmap of dropped MPDUs in A-MPDU #2
Definition at line 1482 of file wifi-phy-reception-test.cc.
Referenced by CheckRxDroppedBitmapAmpdu2(), ResetBitmaps(), and RxDropped().
| 
 | private | 
bitmap of unsuccessfully received MPDUs in A-MPDU #1
Definition at line 1478 of file wifi-phy-reception-test.cc.
Referenced by CheckRxFailureBitmapAmpdu1(), IncrementFailureBitmap(), and ResetBitmaps().
| 
 | private | 
bitmap of unsuccessfully received MPDUs in A-MPDU #2
Definition at line 1479 of file wifi-phy-reception-test.cc.
Referenced by CheckRxFailureBitmapAmpdu2(), IncrementFailureBitmap(), and ResetBitmaps().
| 
 | private | 
bitmap of successfully received MPDUs in A-MPDU #1
Definition at line 1475 of file wifi-phy-reception-test.cc.
Referenced by CheckRxSuccessBitmapAmpdu1(), IncrementSuccessBitmap(), and ResetBitmaps().
| 
 | private | 
bitmap of successfully received MPDUs in A-MPDU #2
Definition at line 1476 of file wifi-phy-reception-test.cc.
Referenced by CheckRxSuccessBitmapAmpdu2(), IncrementSuccessBitmap(), and ResetBitmaps().