Make sure that Ideal rate manager is able to handle non best-effort traffic. More...
Inheritance diagram for Issue169TestCase:
Collaboration diagram for Issue169TestCase:Public Member Functions | |
| Issue169TestCase () | |
| virtual | ~Issue169TestCase () |
| virtual void | DoRun (void) |
| Implementation to actually run this TestCase. More... | |
Public Member Functions inherited from ns3::TestCase | |
| virtual | ~TestCase () |
| Destructor. More... | |
| std::string | GetName (void) const |
Private Member Functions | |
| void | SendPackets (uint8_t numPackets, Ptr< NetDevice > sourceDevice, Address &destination, uint8_t priority) |
| Triggers the transmission of a 1000 Byte-long data packet from the source device. More... | |
| void | TxCallback (std::string context, Ptr< const WifiPsdu > psdu, WifiTxVector txVector, double txPowerW) |
| Callback that indicates a PSDU is being transmitted. 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... | |
| 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... | |
Make sure that Ideal rate manager is able to handle non best-effort traffic.
The scenario considers an access point and a fixed station. The station first sends a best-effort packet to the access point, for which Ideal rate manager should select a VHT rate. Then, the station sends a non best-effort (voice) packet to the access point, and since SNR is unchanged, the same VHT rate should be used.
See {169}
Definition at line 2410 of file wifi-test.cc.
| Issue169TestCase::Issue169TestCase | ( | ) |
Definition at line 2437 of file wifi-test.cc.
|
virtual |
Definition at line 2442 of file wifi-test.cc.
|
virtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 2469 of file wifi-test.cc.
References ns3::ListPositionAllocator::Add(), third::channel, ns3::Config::Connect(), ns3::NodeContainer::Create(), ns3::NetDeviceContainer::Get(), third::mac, ns3::MakeCallback(), third::mobility, third::phy, ns3::Seconds(), SendPackets(), TxCallback(), third::wifi, ns3::WIFI_STANDARD_80211ac, and third::wifiApNode.
Here is the call graph for this function:
|
private |
Triggers the transmission of a 1000 Byte-long data packet from the source device.
| numPackets | number of packets in burst |
| sourceDevice | pointer to the source NetDevice |
| destination | address of the destination device |
| priority | the priority of the packets to send |
Definition at line 2447 of file wifi-test.cc.
References ns3::Packet::AddPacketTag(), ns3::NetDevice::Send(), and ns3::SocketPriorityTag::SetPriority().
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Callback that indicates a PSDU is being transmitted.
| context | the context |
| psdu | the PSDU to transmit |
| txVector | the TX vector |
| txPowerW | the TX power (W) |
Definition at line 2460 of file wifi-test.cc.
References ns3::WifiTxVector::GetMode(), ns3::WifiMode::GetModulationClass(), ns3::WifiPsdu::GetSize(), NS_TEST_ASSERT_MSG_EQ, and ns3::WIFI_MOD_CLASS_VHT.
Referenced by DoRun().
Here is the call graph for this function:
Here is the caller graph for this function: