UL-OFDMA PPDU UID attribution test. More...
 Inheritance diagram for TestUlOfdmaPpduUid:
 Inheritance diagram for TestUlOfdmaPpduUid: Collaboration diagram for TestUlOfdmaPpduUid:
 Collaboration diagram for TestUlOfdmaPpduUid:| Public Member Functions | |
| TestUlOfdmaPpduUid () | |
| ~TestUlOfdmaPpduUid () override | |
|  Public Member Functions inherited from ns3::TestCase | |
| TestCase (const TestCase &)=delete | |
| virtual | ~TestCase () | 
| Destructor. | |
| std::string | GetName () const | 
| TestCase & | operator= (const TestCase &)=delete | 
| Private Member Functions | |
| void | CheckUid (uint16_t staId, uint64_t expectedUid) | 
| Check the UID of the transmitted PPDU. | |
| void | DoRun () override | 
| Implementation to actually run this TestCase. | |
| void | DoSetup () override | 
| Implementation to do any local setup required for this TestCase. | |
| void | DoTeardown () override | 
| Implementation to do any local setup required for this TestCase. | |
| void | ResetPpduUid () | 
| Reset the global PPDU UID counter in WifiPhy. | |
| void | SendMuPpdu () | 
| Send MU-PPDU toward both STAs. | |
| void | SendSuPpdu (uint16_t txStaId) | 
| Send SU-PPDU function. | |
| void | SendTbPpdu () | 
| Send TB-PPDU from both STAs. | |
| void | TxPpduAp (uint64_t uid) | 
| Transmitted PPDU information function for AP. | |
| void | TxPpduSta1 (uint64_t uid) | 
| Transmitted PPDU information function for STA 1. | |
| void | TxPpduSta2 (uint64_t uid) | 
| Transmitted PPDU information function for STA 2. | |
| Private Attributes | |
| Ptr< OfdmaSpectrumWifiPhy< HePhy > > | m_phyAp | 
| PHY of AP. | |
| Ptr< OfdmaSpectrumWifiPhy< HePhy > > | m_phySta1 | 
| PHY of STA 1. | |
| Ptr< OfdmaSpectrumWifiPhy< HePhy > > | m_phySta2 | 
| PHY of STA 2. | |
| uint64_t | m_ppduUidAp | 
| UID of PPDU transmitted by AP. | |
| uint64_t | m_ppduUidSta1 | 
| UID of PPDU transmitted by STA1. | |
| uint64_t | m_ppduUidSta2 | 
| UID of PPDU transmitted by STA2. | |
| Additional Inherited Members | |
|  Public Types inherited from ns3::TestCase | |
| enum class | Duration { 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. | |
| void | AddTestCase (TestCase *testCase, Duration duration=Duration::QUICK) | 
| Add an individual child TestCase to this test suite. | |
| TestCase * | GetParent () const | 
| Get the parent of this TestCase. | |
| bool | IsStatusFailure () const | 
| Check if any tests failed. | |
| bool | IsStatusSuccess () const | 
| Check if all tests passed. | |
| void | SetDataDir (std::string directory) | 
| Set the data directory where reference trace files can be found. | |
| 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. | |
| bool | MustAssertOnFailure () const | 
| Check if this run should assert on failure. | |
| bool | MustContinueOnFailure () const | 
| Check if this run should continue on failure. | |
| std::string | CreateDataDirFilename (std::string filename) | 
| Construct the full path to a file in the data directory. | |
| std::string | CreateTempDirFilename (std::string filename) | 
| Construct the full path to a file in a temporary directory. | |
UL-OFDMA PPDU UID attribution test.
Definition at line 2076 of file wifi-phy-ofdma-test.cc.
| TestUlOfdmaPpduUid::TestUlOfdmaPpduUid | ( | ) | 
Definition at line 2137 of file wifi-phy-ofdma-test.cc.
References ns3::TestCase::TestCase(), m_ppduUidAp, m_ppduUidSta1, and m_ppduUidSta2.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | override | 
Definition at line 2145 of file wifi-phy-ofdma-test.cc.
| 
 | private | 
Check the UID of the transmitted PPDU.
| staId | the STA-ID of the PHY (0 for AP) | 
| expectedUid | the expected UID | 
Definition at line 2241 of file wifi-phy-ofdma-test.cc.
References m_ppduUidAp, m_ppduUidSta1, m_ppduUidSta2, ns3::Simulator::Now(), NS_ABORT_MSG, and NS_TEST_ASSERT_MSG_EQ.
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:| 
 | overrideprivatevirtual | 
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 2468 of file wifi-phy-ofdma-test.cc.
References CheckUid(), ns3::Simulator::Destroy(), m_phyAp, m_phySta1, m_phySta2, ResetPpduUid(), ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::Seconds(), SendMuPpdu(), SendSuPpdu(), SendTbPpdu(), ns3::RngSeedManager::SetRun(), and ns3::RngSeedManager::SetSeed().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | overrideprivatevirtual | 
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 2150 of file wifi-phy-ofdma-test.cc.
References ns3::CreateObject(), DEFAULT_CHANNEL_WIDTH, DEFAULT_FREQUENCY, ns3::WifiPhyOperatingChannel::FindFirst(), m_phyAp, m_phySta1, m_phySta2, ns3::MakeCallback(), TxPpduAp(), TxPpduSta1(), TxPpduSta2(), ns3::WIFI_PHY_BAND_5GHZ, and ns3::WIFI_STANDARD_80211ax.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | 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 2230 of file wifi-phy-ofdma-test.cc.
| 
 | private | 
Reset the global PPDU UID counter in WifiPhy.
Definition at line 2290 of file wifi-phy-ofdma-test.cc.
References m_phyAp, and NS_LOG_FUNCTION.
Referenced by DoRun().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Send MU-PPDU toward both STAs.
Definition at line 2297 of file wifi-phy-ofdma-test.cc.
References ns3::Create(), DEFAULT_CHANNEL_WIDTH, ns3::HePhy::GetHeMcs7(), ns3::HePhy::GetHeMcs9(), ns3::VhtPhy::GetVhtMcs5(), m_phyAp, ns3::NanoSeconds(), ns3::RU_106_TONE, ns3::WifiMacHeader::SetAddr1(), ns3::WifiMacHeader::SetQosTid(), ns3::WifiMacHeader::SetSequenceNumber(), ns3::WifiMacHeader::SetType(), ns3::WIFI_MAC_QOSDATA, and ns3::WIFI_PREAMBLE_HE_MU.
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 | 
Send SU-PPDU function.
| txStaId | the ID of the sending STA | 
Definition at line 2428 of file wifi-phy-ofdma-test.cc.
References ns3::Create(), DEFAULT_CHANNEL_WIDTH, ns3::Mac48Address::GetBroadcast(), ns3::HePhy::GetHeMcs7(), m_phyAp, m_phySta1, m_phySta2, ns3::NanoSeconds(), NS_ABORT_MSG, ns3::WifiMacHeader::SetAddr1(), ns3::WifiMacHeader::SetQosTid(), ns3::WifiMacHeader::SetSequenceNumber(), ns3::WifiMacHeader::SetType(), ns3::SU_STA_ID, ns3::WIFI_MAC_QOSDATA, 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 | 
Send TB-PPDU from both STAs.
Definition at line 2347 of file wifi-phy-ofdma-test.cc.
References ns3::WifiPhy::CalculateTxDuration(), ns3::HePhy::ConvertHeTbPpduDurationToLSigLength(), ns3::Create(), DEFAULT_CHANNEL_WIDTH, ns3::HePhy::GetHeMcs7(), ns3::HePhy::GetHeMcs9(), m_phyAp, m_phySta1, m_phySta2, ns3::NanoSeconds(), ns3::RU_106_TONE, ns3::WifiMacHeader::SetAddr1(), ns3::WifiMacHeader::SetQosTid(), ns3::WifiMacHeader::SetSequenceNumber(), ns3::WifiMacHeader::SetType(), ns3::WIFI_MAC_QOSDATA, and ns3::WIFI_PREAMBLE_HE_TB.
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 | 
Transmitted PPDU information function for AP.
| uid | the UID of the transmitted PPDU | 
Definition at line 2269 of file wifi-phy-ofdma-test.cc.
References m_ppduUidAp, and NS_LOG_FUNCTION.
Referenced by DoSetup().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Transmitted PPDU information function for STA 1.
| uid | the UID of the transmitted PPDU | 
Definition at line 2276 of file wifi-phy-ofdma-test.cc.
References m_ppduUidSta1, and NS_LOG_FUNCTION.
Referenced by DoSetup().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Transmitted PPDU information function for STA 2.
| uid | the UID of the transmitted PPDU | 
Definition at line 2283 of file wifi-phy-ofdma-test.cc.
References m_ppduUidSta2, and NS_LOG_FUNCTION.
Referenced by DoSetup().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
PHY of AP.
Definition at line 2128 of file wifi-phy-ofdma-test.cc.
Referenced by DoRun(), DoSetup(), DoTeardown(), ResetPpduUid(), SendMuPpdu(), SendSuPpdu(), and SendTbPpdu().
| 
 | private | 
PHY of STA 1.
Definition at line 2129 of file wifi-phy-ofdma-test.cc.
Referenced by DoRun(), DoSetup(), DoTeardown(), SendSuPpdu(), and SendTbPpdu().
| 
 | private | 
PHY of STA 2.
Definition at line 2130 of file wifi-phy-ofdma-test.cc.
Referenced by DoRun(), DoSetup(), DoTeardown(), SendSuPpdu(), and SendTbPpdu().
| 
 | private | 
UID of PPDU transmitted by AP.
Definition at line 2132 of file wifi-phy-ofdma-test.cc.
Referenced by TestUlOfdmaPpduUid(), CheckUid(), and TxPpduAp().
| 
 | private | 
UID of PPDU transmitted by STA1.
Definition at line 2133 of file wifi-phy-ofdma-test.cc.
Referenced by TestUlOfdmaPpduUid(), CheckUid(), and TxPpduSta1().
| 
 | private | 
UID of PPDU transmitted by STA2.
Definition at line 2134 of file wifi-phy-ofdma-test.cc.
Referenced by TestUlOfdmaPpduUid(), CheckUid(), and TxPpduSta2().