24 #include "ns3/tcp-header.h" 25 #include "ns3/tcp-tx-buffer.h" 26 #include "ns3/tcp-rx-buffer.h" 62 uint32_t maxRcvBufferSize,
63 uint32_t maxSndBufferSize, std::string name);
77 uint32_t maxRcvBufferSize,
78 uint32_t maxSndBufferSize, std::string name)
145 if (! (h.
GetFlags() & TcpHeader::SYN))
148 "wscale present in non-SYN packets");
155 "wscale disabled but option enabled");
160 "wscale enabled but option disabled");
183 "wscale disabled but option enabled");
188 "wscale enabled but option disabled");
208 "sender has not ws, but receiver sent anyway");
213 "receiver has not ws enabled but sent anyway");
uint32_t m_maxSndBufferSize
Maximum sender buffer size.
Smart pointer class similar to boost::intrusive_ptr.
AttributeValue implementation for Boolean.
virtual void Tx(const Ptr< const Packet > p, const TcpHeader &h, SocketWho who)
Packet transmitted down to IP layer.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
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.
WScalingTestCase(WScalingTestCase::Configuration conf, uint32_t maxRcvBufferSize, uint32_t maxSndBufferSize, std::string name)
Constructor.
uint32_t m_maxRcvBufferSize
Maximum receiver buffer size.
Configuration m_configuration
Test configuration.
virtual Ptr< TcpSocketMsgBase > CreateReceiverSocket(Ptr< Node > node)
Create and install the socket to install on the receiver.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Configuration
Window Scaling configuration.
SocketWho
Used as parameter of methods, specifies on what node the caller is interested (e.g.
TCP Window Scaling TestSuite.
General infrastructure for TCP testing.
TCP Window Scaling enabling Test.
Ptr< TcpRxBuffer > GetRxBuffer(SocketWho who)
Get the Rx buffer from selected socket.
virtual Ptr< TcpSocketMsgBase > CreateSenderSocket(Ptr< Node > node)
Create and install the socket to install on the sender.
This test suite implements a Unit Test.
void SetAttribute(std::string name, const AttributeValue &value)
Set a single attribute, raising fatal errors if unsuccessful.
static TcpWScalingTestSuite g_tcpWScalingTestSuite
Static variable for test initialization.