A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
Issue169TestCase Class Reference

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 ()
 
 ~Issue169TestCase () 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
 
TestCaseoperator= (const TestCase &)=delete
 

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.
 
void TxCallback (std::string context, WifiConstPsduMap psdus, WifiTxVector txVector, double txPowerW)
 Callback that indicates a PSDU is being transmitted.
 

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...
 
using instead = Duration
 
- Static Public Attributes inherited from ns3::TestCase
static constexpr auto EXTENSIVE = Duration::EXTENSIVE
 
static constexpr auto QUICK = Duration::QUICK
 
static constexpr auto TAKES_FOREVER
 
- 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.
 
TestCaseGetParent () 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.
 

Detailed Description

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 Issue 169

Definition at line 2781 of file wifi-test.cc.

Constructor & Destructor Documentation

◆ Issue169TestCase()

Issue169TestCase::Issue169TestCase ( )

Definition at line 2814 of file wifi-test.cc.

◆ ~Issue169TestCase()

Issue169TestCase::~Issue169TestCase ( )
override

Definition at line 2819 of file wifi-test.cc.

Member Function Documentation

◆ DoRun()

void Issue169TestCase::DoRun ( )
overridevirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 2854 of file wifi-test.cc.

References ns3::Config::Connect(), ns3::NodeContainer::Create(), ns3::YansWifiChannelHelper::Default(), ns3::Simulator::Destroy(), ns3::NetDeviceContainer::Get(), ns3::MakeCallback(), ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::Seconds(), SendPackets(), ns3::RngSeedManager::SetRun(), ns3::RngSeedManager::SetSeed(), ns3::Simulator::Stop(), TxCallback(), and ns3::WIFI_STANDARD_80211ac.

+ Here is the call graph for this function:

◆ SendPackets()

void Issue169TestCase::SendPackets ( uint8_t  numPackets,
Ptr< NetDevice sourceDevice,
Address destination,
uint8_t  priority 
)
private

Triggers the transmission of a 1000 Byte-long data packet from the source device.

Parameters
numPacketsnumber of packets in burst
sourceDevicepointer to the source NetDevice
destinationaddress of the destination device
prioritythe priority of the packets to send

Definition at line 2824 of file wifi-test.cc.

References ns3::SocketPriorityTag::SetPriority().

Referenced by DoRun().

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

◆ TxCallback()

void Issue169TestCase::TxCallback ( std::string  context,
WifiConstPsduMap  psdus,
WifiTxVector  txVector,
double  txPowerW 
)
private

Callback that indicates a PSDU is being transmitted.

Parameters
contextthe context
psdusthe PSDU map to transmit
txVectorthe TX vector
txPowerWthe TX power (W)

Definition at line 2840 of file wifi-test.cc.

References ns3::WifiTxVector::GetMode(), ns3::WifiMode::GetModulationClass(), and NS_TEST_ASSERT_MSG_EQ.

Referenced by DoRun().

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

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