From 1c7a443d20f6fb020aa034ef05eff46ecef5366e Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sun, 5 Feb 2017 18:01:38 -0800 Subject: [PATCH] tcp: disable SACK in a NewReno testcase --- src/test/ns3tcp/ns3tcp-cwnd-test-suite.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/ns3tcp/ns3tcp-cwnd-test-suite.cc b/src/test/ns3tcp/ns3tcp-cwnd-test-suite.cc index f4ef21197..37179e2c2 100644 --- a/src/test/ns3tcp/ns3tcp-cwnd-test-suite.cc +++ b/src/test/ns3tcp/ns3tcp-cwnd-test-suite.cc @@ -496,6 +496,8 @@ Ns3TcpCwndTestCase2::DoRun (void) // Create the socket for n0 Address sinkAddress (InetSocketAddress (ipInterfs.GetAddress (1), servPort)); Ptr 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