26 #include "ns3/tcp-congestion-ops.h"
27 #include "ns3/tcp-socket-base.h"
28 #include "ns3/tcp-lp.h"
53 uint32_t segmentsAcked, uint32_t ssThresh,
Time rtt,
const std::string &name);
56 virtual void DoRun (
void);
66 uint32_t segmentsAcked, uint32_t ssThresh,
Time rtt,
const std::string &name)
70 m_ssThresh (ssThresh),
71 m_segmentsAcked (segmentsAcked),
79 m_state = CreateObject <TcpSocketState> ();
101 "cWnd has not updated correctly");
124 uint32_t segmentsAcked,
Time rtt,
const std::string &name);
127 virtual void DoRun (
void);
137 uint32_t segmentsAcked,
Time rtt,
const std::string &name)
141 m_segmentsAcked (segmentsAcked),
149 m_state = CreateObject <TcpSocketState> ();
166 "cWnd has not updated correctly");
189 uint32_t segmentsAcked,
Time rtt,
const std::string &name);
192 virtual void DoRun (
void);
205 m_segmentsAcked (segmentsAcked),
213 m_state = CreateObject <TcpSocketState> ();
234 "cWnd has not updated correctly");
static void Destroy(void)
Execute the events scheduled with ScheduleDestroy().
static void Run(void)
Run the simulation.
Testing TcpLp when cwd exceeds threshold.
uint32_t m_cWnd
Congestion window size.
TcpLpInferenceTest1(uint32_t cWnd, uint32_t segmentSize, uint32_t segmentsAcked, Time rtt, const std::string &name)
Constructor.
uint32_t m_segmentsAcked
Segments acked.
Ptr< TcpSocketState > m_state
TCP socket state.
virtual void DoRun(void)
Implementation to actually run this TestCase.
uint32_t m_segmentSize
Segment size.
Testing TcpLp when it is inference phase.
uint32_t m_segmentsAcked
Segments acked.
uint32_t m_cWnd
Congestion window size.
virtual void DoRun(void)
Implementation to actually run this TestCase.
TcpLpInferenceTest2(uint32_t cWnd, uint32_t segmentSize, uint32_t segmentsAcked, Time rtt, const std::string &name)
Constructor.
uint32_t m_segmentSize
Segment size.
Ptr< TcpSocketState > m_state
TCP socket state.
Test the behaviour common to New Reno.
Testing the behaviour common to New Reno.
uint32_t m_ssThresh
Slow start threshold.
uint32_t m_segmentsAcked
Segments acked.
virtual void DoRun(void)
Implementation to actually run this TestCase.
Ptr< TcpSocketState > m_state
TCP socket state.
TcpLpToNewReno(uint32_t cWnd, uint32_t segmentSize, uint32_t segmentsAcked, uint32_t ssThresh, Time rtt, const std::string &name)
Constructor.
uint32_t m_cWnd
Congestion window size.
uint32_t m_segmentSize
Segment size.
uint32_t m_segmentSize
Segment size.
TracedValue< uint32_t > m_cWnd
Congestion window.
uint32_t m_rcvTimestampEchoReply
Sender Timestamp echoed by the receiver.
TracedValue< uint32_t > m_ssThresh
Slow start threshold.
uint32_t m_rcvTimestampValue
Receiver Timestamp value.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
@ UNIT
This test suite implements a Unit Test.
Simulation virtual time values and global simulation resolution.
T Get(void) const
Get the underlying value.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static TcpLpTestSuite g_tcplpTest
static var for test initialization