tcp: disable SACK in a NewReno testcase
authorTom Henderson <tomh@tomh.org>
Sun, 05 Feb 2017 18:01:38 -0800
changeset 12667 7967d95d0ed4
parent 12666 d09fe48785bd
child 12668 64600193d9dc
tcp: disable SACK in a NewReno testcase
src/test/ns3tcp/ns3tcp-cwnd-test-suite.cc
--- a/src/test/ns3tcp/ns3tcp-cwnd-test-suite.cc	Sun Feb 05 15:13:34 2017 -0800
+++ b/src/test/ns3tcp/ns3tcp-cwnd-test-suite.cc	Sun Feb 05 18:01:38 2017 -0800
@@ -496,6 +496,8 @@
   // Create the socket for n0
   Address sinkAddress (InetSocketAddress (ipInterfs.GetAddress (1), servPort));
   Ptr<Socket> ns3TcpSocket = Socket::CreateSocket (n0n1.Get (0), TcpSocketFactory::GetTypeId ());
+  // Disable SACK because this test is testing NewReno behavior
+  ns3TcpSocket->SetAttribute ("Sack", BooleanValue (false));
   ns3TcpSocket->TraceConnectWithoutContext ("CongestionWindow", MakeCallback (&Ns3TcpCwndTestCase2::CwndChange, this));
 
   // Create and start the app for n0