A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tcp-cong-avoid-test.h
Go to the documentation of this file.
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2015 Natale Patriciello <natale.patriciello@gmail.com>
4  *
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
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  */
19 #ifndef TCPCONGAVOIDTEST_H
20 #define TCPCONGAVOIDTEST_H
21 
22 #include "ns3/test.h"
23 #include "tcp-slow-start-test.h"
24 
25 namespace ns3 {
26 
50 class
52 {
53 public:
54  TcpNewRenoCongAvoidNormalTest (uint32_t segmentSize, uint32_t packetSize,
55  uint32_t packets, TypeId& congControl,
56  const std::string &msg);
57 protected:
58  virtual void CWndTrace (uint32_t oldValue, uint32_t newValue);
59  void QueueDrop (SocketWho who);
60  void PhyDrop (SocketWho who);
61  void NormalClose (SocketWho who);
62  void Check ();
63 
64  void ConfigureEnvironment ();
65  void ConfigureProperties ();
66 
67 private:
68  uint32_t m_segmentSize;
69  uint32_t m_packetSize;
70  uint32_t m_packets;
71  uint32_t m_increment;
73  bool m_initial;
74 };
75 
76 } // namespace ns3
77 
78 #endif // TCPCONGAVOIDTEST_H
79 
SocketWho
Used as parameter of methods, specifies on what node the caller is interested (e.g.
General infrastructure for TCP testing.
An identifier for simulation events.
Definition: event-id.h:53
Test the behavior of RFC congestion avoidance.
static const uint32_t packetSize
a unique identifier for an interface.
Definition: type-id.h:58