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");
Testing the behaviour common to New Reno.
uint32_t m_rcvTimestampValue
Receiver Timestamp value.
Simulation virtual time values and global simulation resolution.
Ptr< TcpSocketState > m_state
TCP socket state.
uint32_t m_rcvTimestampEchoReply
Sender Timestamp echoed by the receiver.
uint32_t m_cWnd
Congestion window size.
static void Run(void)
Run the simulation.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
uint32_t m_segmentSize
Segment size.
uint32_t m_segmentSize
Segment size.
uint32_t m_segmentsAcked
Segments acked.
TcpLpToNewReno(uint32_t cWnd, uint32_t segmentSize, uint32_t segmentsAcked, uint32_t ssThresh, Time rtt, const std::string &name)
Constructor.
TcpLpInferenceTest2(uint32_t cWnd, uint32_t segmentSize, uint32_t segmentsAcked, Time rtt, const std::string &name)
Constructor.
Ptr< TcpSocketState > m_state
TCP socket state.
uint32_t m_segmentSize
Segment size.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
#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.
uint32_t m_segmentsAcked
Segments acked.
TracedValue< uint32_t > m_ssThresh
Slow start threshold.
static void Destroy(void)
Execute the events scheduled with ScheduleDestroy().
Test the behaviour common to New Reno.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static TcpLpTestSuite g_tcplpTest
static var for test initialization
virtual void DoRun(void)
Implementation to actually run this TestCase.
Ptr< TcpSocketState > m_state
TCP socket state.
uint32_t m_cWnd
Congestion window size.
TracedValue< uint32_t > m_cWnd
Congestion window.
Testing TcpLp when cwd exceeds threshold.
T Get(void) const
Get the underlying value.
TcpLpInferenceTest1(uint32_t cWnd, uint32_t segmentSize, uint32_t segmentsAcked, Time rtt, const std::string &name)
Constructor.
virtual void DoRun(void)
Implementation to actually run this TestCase.
virtual void DoRun(void)
Implementation to actually run this TestCase.
uint32_t m_segmentsAcked
Segments acked.
uint32_t m_ssThresh
Slow start threshold.
This test suite implements a Unit Test.
Testing TcpLp when it is inference phase.
uint32_t m_cWnd
Congestion window size.
uint32_t m_segmentSize
Segment size.