A Discrete-Event Network Simulator
API
ns3::TcpVenoTest Class Reference

Testing the additive increase and multiplicative decrease of TcpVeno. More...

+ Inheritance diagram for ns3::TcpVenoTest:
+ Collaboration diagram for ns3::TcpVenoTest:

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)
 
- Public Member Functions inherited from ns3::TestCase
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< TcpSocketStatem_state
 

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, enum TestDuration duration)
 Add an individual child TestCase to this test suite. More...
 
TestCaseGetParent () 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...
 

Detailed Description

Testing the additive increase and multiplicative decrease of TcpVeno.

Definition at line 77 of file tcp-veno-test.cc.

Constructor & Destructor Documentation

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.

Member Function Documentation

void ns3::TcpVenoTest::AdditiveIncrease ( Ptr< TcpSocketState state,
uint32_t  diff,
UintegerValue  beta 
)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::TcpVenoTest::DoRun ( void  )
privatevirtual
uint32_t ns3::TcpVenoTest::MultiplicativeDecrease ( uint32_t  diff,
const UintegerValue beta,
uint32_t  bytesInFlight 
)
private

Definition at line 227 of file tcp-veno-test.cc.

References ns3::UintegerValue::Get(), m_segmentSize, and max.

Referenced by DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint32_t ns3::TcpVenoTest::m_cWnd
private

Definition at line 93 of file tcp-veno-test.cc.

Referenced by AdditiveIncrease(), and DoRun().

bool ns3::TcpVenoTest::m_inc
private

Definition at line 99 of file tcp-veno-test.cc.

Referenced by AdditiveIncrease().

uint32_t ns3::TcpVenoTest::m_numRtt
private

Definition at line 98 of file tcp-veno-test.cc.

Referenced by DoRun().

Time ns3::TcpVenoTest::m_rtt
private

Definition at line 96 of file tcp-veno-test.cc.

Referenced by DoRun().

uint32_t ns3::TcpVenoTest::m_segmentsAcked
private

Definition at line 97 of file tcp-veno-test.cc.

Referenced by DoRun().

uint32_t ns3::TcpVenoTest::m_segmentSize
private

Definition at line 94 of file tcp-veno-test.cc.

Referenced by DoRun(), and MultiplicativeDecrease().

uint32_t ns3::TcpVenoTest::m_ssThresh
private

Definition at line 95 of file tcp-veno-test.cc.

Referenced by AdditiveIncrease(), and DoRun().

Ptr<TcpSocketState> ns3::TcpVenoTest::m_state
private

Definition at line 100 of file tcp-veno-test.cc.

Referenced by DoRun().


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