A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
51
TcpNewRenoCongAvoidNormalTest
:
public
TcpGeneralTest
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
;
72
EventId
m_event
;
73
bool
m_initial
;
74
};
75
76
}
// namespace ns3
77
78
#endif // TCPCONGAVOIDTEST_H
79
ns3::TcpNewRenoCongAvoidNormalTest::m_packetSize
uint32_t m_packetSize
Definition:
tcp-cong-avoid-test.h:69
ns3::TcpNewRenoCongAvoidNormalTest::m_initial
bool m_initial
Definition:
tcp-cong-avoid-test.h:73
ns3::TcpNewRenoCongAvoidNormalTest::m_segmentSize
uint32_t m_segmentSize
Definition:
tcp-cong-avoid-test.h:68
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
tcp-slow-start-test.h
ns3::TcpNewRenoCongAvoidNormalTest::m_event
EventId m_event
Definition:
tcp-cong-avoid-test.h:72
ns3::TcpNewRenoCongAvoidNormalTest::m_increment
uint32_t m_increment
Definition:
tcp-cong-avoid-test.h:71
ns3::TcpGeneralTest::SocketWho
SocketWho
Used as parameter of methods, specifies on what node the caller is interested (e.g.
Definition:
tcp-general-test.h:228
ns3::TcpGeneralTest
General infrastructure for TCP testing.
Definition:
tcp-general-test.h:210
ns3::EventId
An identifier for simulation events.
Definition:
event-id.h:53
ns3::TcpNewRenoCongAvoidNormalTest
Test the behavior of RFC congestion avoidance.
Definition:
tcp-cong-avoid-test.h:50
packetSize
static const uint32_t packetSize
Definition:
power-adaptation-distance.cc:107
ns3::TcpNewRenoCongAvoidNormalTest::m_packets
uint32_t m_packets
Definition:
tcp-cong-avoid-test.h:70
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
src
internet
test
tcp-cong-avoid-test.h
Generated on Thu Mar 24 2016 00:46:40 for ns-3 by
1.8.9.1