OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2010 University of Washington | 3 * Copyright (c) 2010 University of Washington |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 EnumValue(TcpWestwood::WESTWOODPLUS)); | 295 EnumValue(TcpWestwood::WESTWOODPLUS)); |
296 } | 296 } |
297 else | 297 else |
298 { | 298 { |
299 Config::SetDefault ("ns3::TcpL4Protocol::SocketType", | 299 Config::SetDefault ("ns3::TcpL4Protocol::SocketType", |
300 StringValue (tcpModel.str ())); | 300 StringValue (tcpModel.str ())); |
301 } | 301 } |
302 | 302 |
303 Config::SetDefault ("ns3::TcpSocket::SegmentSize", UintegerValue (1000)); | 303 Config::SetDefault ("ns3::TcpSocket::SegmentSize", UintegerValue (1000)); |
304 Config::SetDefault ("ns3::TcpSocket::DelAckCount", UintegerValue (1)); | 304 Config::SetDefault ("ns3::TcpSocket::DelAckCount", UintegerValue (1)); |
| 305 Config::SetDefault ("ns3::TcpSocketBase::Timestamp", BooleanValue (false)); |
305 | 306 |
306 if (m_writeLogging) | 307 if (m_writeLogging) |
307 { | 308 { |
308 LogComponentEnableAll (LOG_PREFIX_FUNC); | 309 LogComponentEnableAll (LOG_PREFIX_FUNC); |
309 LogComponentEnable ("TcpLossResponse", LOG_LEVEL_ALL); | 310 LogComponentEnable ("Ns3TcpLossTest", LOG_LEVEL_ALL); |
310 LogComponentEnable ("ErrorModel", LOG_LEVEL_DEBUG); | 311 LogComponentEnable ("ErrorModel", LOG_LEVEL_DEBUG); |
311 LogComponentEnable ("TcpLossResponse", LOG_LEVEL_ALL); | |
312 LogComponentEnable ("TcpWestwood", LOG_LEVEL_ALL); | 312 LogComponentEnable ("TcpWestwood", LOG_LEVEL_ALL); |
313 LogComponentEnable ("TcpNewReno", LOG_LEVEL_INFO); | 313 LogComponentEnable ("TcpNewReno", LOG_LEVEL_INFO); |
314 LogComponentEnable ("TcpReno", LOG_LEVEL_INFO); | 314 LogComponentEnable ("TcpReno", LOG_LEVEL_INFO); |
315 LogComponentEnable ("TcpTahoe", LOG_LEVEL_INFO); | 315 LogComponentEnable ("TcpTahoe", LOG_LEVEL_INFO); |
316 LogComponentEnable ("TcpSocketBase", LOG_LEVEL_INFO); | 316 LogComponentEnable ("TcpSocketBase", LOG_LEVEL_INFO); |
317 } | 317 } |
318 | 318 |
319 //////////////////////////////////////////////////////// | 319 //////////////////////////////////////////////////////// |
320 // Topology construction | 320 // Topology construction |
321 // | 321 // |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 AddTestCase (new Ns3TcpLossTestCase ("WestwoodPlus", 0), TestCase::QUICK); | 487 AddTestCase (new Ns3TcpLossTestCase ("WestwoodPlus", 0), TestCase::QUICK); |
488 AddTestCase (new Ns3TcpLossTestCase ("WestwoodPlus", 1), TestCase::QUICK); | 488 AddTestCase (new Ns3TcpLossTestCase ("WestwoodPlus", 1), TestCase::QUICK); |
489 AddTestCase (new Ns3TcpLossTestCase ("WestwoodPlus", 2), TestCase::QUICK); | 489 AddTestCase (new Ns3TcpLossTestCase ("WestwoodPlus", 2), TestCase::QUICK); |
490 AddTestCase (new Ns3TcpLossTestCase ("WestwoodPlus", 3), TestCase::QUICK); | 490 AddTestCase (new Ns3TcpLossTestCase ("WestwoodPlus", 3), TestCase::QUICK); |
491 AddTestCase (new Ns3TcpLossTestCase ("WestwoodPlus", 4), TestCase::QUICK); | 491 AddTestCase (new Ns3TcpLossTestCase ("WestwoodPlus", 4), TestCase::QUICK); |
492 | 492 |
493 } | 493 } |
494 | 494 |
495 static Ns3TcpLossTestSuite ns3TcpLossTestSuite; | 495 static Ns3TcpLossTestSuite ns3TcpLossTestSuite; |
496 | 496 |
OLD | NEW |