Make sure that Ideal rate manager recovers when the station is moving away from the access point. More...
Inheritance diagram for Issue40TestCase:
Collaboration diagram for Issue40TestCase:Public Member Functions | |
| Issue40TestCase () | |
| ~Issue40TestCase () override | |
| void | DoRun () override |
| Implementation to actually run this TestCase. | |
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 | RunOne (bool useAmpdu) |
| Run one function. | |
| void | RxSuccessCallback (std::string context, Ptr< const Packet > p) |
| Callback when packet is successfully received. | |
| void | SendPackets (uint8_t numPackets, Ptr< NetDevice > sourceDevice, Address &destination) |
| Triggers the arrival of 1000 Byte-long packets in the source device. | |
| void | TxFinalDataFailedCallback (std::string context, Mac48Address address) |
| Transmit final data failed function. | |
Private Attributes | |
| uint16_t | m_rxCount |
| Count number of successfully received data packets. | |
| uint16_t | m_txCount |
| Count number of transmitted data packets. | |
| uint16_t | m_txMacFinalDataFailedCount |
| Count number of unsuccessfuly transmitted data packets. | |
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. | |
| void | AddTestCase (TestCase *testCase, TestDuration 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. | |
Make sure that Ideal rate manager recovers when the station is moving away from the access point.
The scenario considers an access point and a moving station. Initially, the station is located at 1 meter from the access point. After 1s, the station moves away from the access for 0.5s to reach a point away of 50 meters from the access point. The tests checks the Ideal rate manager is reset once it has failed to transmit a data packet, so that the next data packets can be successfully transmitted using a lower modulation.
See Issue 40
Definition at line 2549 of file wifi-test.cc.
| Issue40TestCase::Issue40TestCase | ( | ) |
Definition at line 2589 of file wifi-test.cc.
|
override |
Definition at line 2597 of file wifi-test.cc.
|
overridevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 2759 of file wifi-test.cc.
References RunOne().
Here is the call graph for this function:
|
private |
Run one function.
| useAmpdu | flag to indicate whether the test should be run with A-MPDU |
Definition at line 2625 of file wifi-test.cc.
References ns3::Config::Connect(), ns3::NodeContainer::Create(), ns3::YansWifiChannelHelper::Default(), ns3::Simulator::Destroy(), ns3::PointerValue::Get(), ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::Object::GetObject(), m_rxCount, m_txCount, m_txMacFinalDataFailedCount, ns3::MakeCallback(), NS_TEST_ASSERT_MSG_EQ, ns3::Simulator::Run(), RxSuccessCallback(), ns3::Simulator::Schedule(), ns3::Seconds(), SendPackets(), ns3::RngSeedManager::SetRun(), ns3::RngSeedManager::SetSeed(), ns3::Simulator::Stop(), TxFinalDataFailedCallback(), and ns3::WIFI_STANDARD_80211ac.
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:Callback when packet is successfully received.
| context | node context |
| p | the received packet |
Definition at line 2602 of file wifi-test.cc.
References m_rxCount.
Referenced by RunOne().
Here is the caller graph for this function:
|
private |
Triggers the arrival of 1000 Byte-long packets in the source device.
| numPackets | number of packets in burst |
| sourceDevice | pointer to the source NetDevice |
| destination | address of the destination device |
Definition at line 2608 of file wifi-test.cc.
References m_txCount.
Referenced by RunOne().
Here is the caller graph for this function:
|
private |
Transmit final data failed function.
| context | the context |
| address | the MAC address |
Definition at line 2619 of file wifi-test.cc.
References m_txMacFinalDataFailedCount.
Referenced by RunOne().
Here is the caller graph for this function:
|
private |
Count number of successfully received data packets.
Definition at line 2583 of file wifi-test.cc.
Referenced by RunOne(), and RxSuccessCallback().
|
private |
Count number of transmitted data packets.
Definition at line 2584 of file wifi-test.cc.
Referenced by RunOne(), and SendPackets().
|
private |
Count number of unsuccessfuly transmitted data packets.
Definition at line 2586 of file wifi-test.cc.
Referenced by RunOne(), and TxFinalDataFailedCallback().