Testing the additive increase and multiplicative decrease of TcpVeno. More...
Public Member Functions | |
TcpVenoTest (uint32_t cWnd, uint32_t segmentSize, uint32_t ssThresh, Time rtt, uint32_t segmentsAcked, uint32_t numRtt, const std::string &name) | |
![]() | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName (void) const |
Private Member Functions | |
void | AdditiveIncrease (Ptr< TcpSocketState > state, uint32_t diff, UintegerValue beta) |
virtual void | DoRun (void) |
Implementation to actually run this TestCase. More... | |
uint32_t | MultiplicativeDecrease (uint32_t diff, const UintegerValue &beta, uint32_t bytesInFlight) |
Private Attributes | |
uint32_t | m_cWnd |
bool | m_inc |
uint32_t | m_numRtt |
Time | m_rtt |
uint32_t | m_segmentsAcked |
uint32_t | m_segmentSize |
uint32_t | m_ssThresh |
Ptr< TcpSocketState > | m_state |
Additional Inherited Members | |
![]() | |
enum | TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 } |
How long the test takes to execute. More... | |
![]() | |
TestCase (std::string name) | |
Constructor. More... | |
void | AddTestCase (TestCase *testCase, enum TestDuration duration) |
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... | |
Testing the additive increase and multiplicative decrease of TcpVeno.
Definition at line 77 of file tcp-veno-test.cc.
ns3::TcpVenoTest::TcpVenoTest | ( | uint32_t | cWnd, |
uint32_t | segmentSize, | ||
uint32_t | ssThresh, | ||
Time | rtt, | ||
uint32_t | segmentsAcked, | ||
uint32_t | numRtt, | ||
const std::string & | name | ||
) |
Definition at line 103 of file tcp-veno-test.cc.
|
private |
Definition at line 199 of file tcp-veno-test.cc.
References ns3::UintegerValue::Get(), m_cWnd, m_inc, m_ssThresh, ns3::NewReno_CongestionAvoidance(), and ns3::NewReno_SlowStart().
Referenced by DoRun().
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 122 of file tcp-veno-test.cc.
References AdditiveIncrease(), ns3::TcpSocketState::CA_OPEN, ns3::TracedValue< T >::Get(), ns3::Time::GetSeconds(), m_cWnd, ns3::TcpSocketState::m_cWnd, m_numRtt, m_rtt, m_segmentsAcked, m_segmentSize, ns3::TcpSocketState::m_segmentSize, m_ssThresh, ns3::TcpSocketState::m_ssThresh, m_state, ns3::MilliSeconds(), MultiplicativeDecrease(), ns3::NewReno_IncreaseWindow(), and NS_TEST_ASSERT_MSG_EQ.
|
private |
Definition at line 227 of file tcp-veno-test.cc.
References ns3::UintegerValue::Get(), m_segmentSize, and max.
Referenced by DoRun().
|
private |
Definition at line 93 of file tcp-veno-test.cc.
Referenced by AdditiveIncrease(), and DoRun().
|
private |
Definition at line 99 of file tcp-veno-test.cc.
Referenced by AdditiveIncrease().
|
private |
Definition at line 98 of file tcp-veno-test.cc.
Referenced by DoRun().
|
private |
Definition at line 96 of file tcp-veno-test.cc.
Referenced by DoRun().
|
private |
Definition at line 97 of file tcp-veno-test.cc.
Referenced by DoRun().
|
private |
Definition at line 94 of file tcp-veno-test.cc.
Referenced by DoRun(), and MultiplicativeDecrease().
|
private |
Definition at line 95 of file tcp-veno-test.cc.
Referenced by AdditiveIncrease(), and DoRun().
|
private |
Definition at line 100 of file tcp-veno-test.cc.
Referenced by DoRun().