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