tcp: disable SACK in a NewReno testcase

This commit is contained in:
Tom Henderson
2017-02-05 18:01:38 -08:00
parent 513e1e14da
commit 1c7a443d20

View File

@@ -496,6 +496,8 @@ Ns3TcpCwndTestCase2::DoRun (void)
// 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