42 uint32_t maxRcvBufferSize,
43 uint32_t maxSndBufferSize, std::string name);
57 uint32_t maxRcvBufferSize,
58 uint32_t maxSndBufferSize, std::string name)
74 socket->SetAttribute (
"WindowScaling",
BooleanValue (
false));
78 socket->SetAttribute (
"WindowScaling",
BooleanValue (
true));
82 socket->SetAttribute (
"WindowScaling",
BooleanValue (
false));
86 socket->SetAttribute (
"WindowScaling",
BooleanValue (
true));
101 socket->SetAttribute (
"WindowScaling",
BooleanValue (
false));
105 socket->SetAttribute (
"WindowScaling",
BooleanValue (
false));
109 socket->SetAttribute (
"WindowScaling",
BooleanValue (
true));
113 socket->SetAttribute (
"WindowScaling",
BooleanValue (
true));
128 "wscale present in non-SYN packets");
135 "wscale disabled but option enabled");
140 "wscale enabled but option disabled");
163 "wscale disabled but option enabled");
168 "wscale enabled but option disabled");
188 "sender has not ws, but receiver sent anyway");
193 "receiver has not ws enabled but sent anyway");
Smart pointer class similar to boost::intrusive_ptr.
AttributeValue implementation for Boolean.
virtual Ptr< TcpSocketMsgBase > CreateSenderSocket(Ptr< Node > node)
Create and install the socket to install on the sender.
virtual Ptr< TcpSocketMsgBase > CreateReceiverSocket(Ptr< Node > node)
Create and install the socket to install on the receiver.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
ns3::TcpWScalingTestSuite g_tcpWScalingTestSuite
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
This test suite implements a Unit Test.
Configuration m_configuration
void AddTestCase(TestCase *testCase, enum TestDuration duration)
Add an individual child TestCase to this test suite.
WScalingTestCase(WScalingTestCase::Configuration conf, uint32_t maxRcvBufferSize, uint32_t maxSndBufferSize, std::string 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.
uint32_t m_maxSndBufferSize
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual Ptr< TcpSocketMsgBase > CreateSenderSocket(Ptr< Node > node)
Create and install the socket to install on the sender.
virtual Ptr< TcpSocketMsgBase > CreateReceiverSocket(Ptr< Node > node)
Create and install the socket to install on the receiver.
virtual void Tx(const Ptr< const Packet > p, const TcpHeader &h, SocketWho who)
Packet transmitted down to IP layer.
SocketWho
Used as parameter of methods, specifies on what node the caller is interested (e.g.
General infrastructure for TCP testing.
uint32_t m_maxRcvBufferSize
Ptr< TcpRxBuffer > GetRxBuffer(SocketWho who)
Get the Rx buffer from selected socket.