This documentation is not the
Latest Release
.
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-slow-start-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 TCPSLOWSTARTTEST_H
20
#define TCPSLOWSTARTTEST_H
21
22
#include "ns3/test.h"
23
#include "
tcp-general-test.h
"
24
25
namespace
ns3
{
26
39
class
40
TcpSlowStartNormalTest
:
public
TcpGeneralTest
41
{
42
public
:
43
TcpSlowStartNormalTest
(uint32_t segmentSize, uint32_t
packetSize
,
44
uint32_t initSsTh, uint32_t packets,
TypeId
& congControl,
45
const
std::string &desc);
46
47
protected
:
48
virtual
void
CWndTrace (uint32_t oldValue, uint32_t newValue);
49
virtual
void
Tx (
const
Ptr<const Packet>
p,
const
TcpHeader
&h,
SocketWho
who);
50
virtual
void
Rx (
const
Ptr<const Packet>
p,
const
TcpHeader
&h,
SocketWho
who);
51
52
uint32_t
m_ackedBytes
;
53
uint32_t
m_sentBytes
;
54
uint32_t
m_totalAckedBytes
;
55
uint32_t
m_allowedIncrease
;
56
57
bool
m_initial
;
58
59
};
60
69
class
70
TcpSlowStartAttackerTest
:
public
TcpSlowStartNormalTest
71
{
72
public
:
73
TcpSlowStartAttackerTest
(uint32_t segmentSize, uint32_t
packetSize
,
74
uint32_t initSsTh, uint32_t packets,
TypeId
& congControl,
75
const
std::string &desc);
76
77
protected
:
78
virtual
Ptr<TcpSocketMsgBase>
CreateReceiverSocket (
Ptr<Node>
node);
79
};
80
81
}
//namespace ns3
82
#endif // TCPSLOWSTARTTEST_H
83
ns3::Ptr< const Packet >
ns3::TcpSlowStartNormalTest::m_ackedBytes
uint32_t m_ackedBytes
Definition:
tcp-slow-start-test.h:52
ns3::TcpSlowStartNormalTest::m_initial
bool m_initial
Definition:
tcp-slow-start-test.h:57
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::TcpHeader
Header for the Transmission Control Protocol.
Definition:
tcp-header.h:44
ns3::TcpSlowStartNormalTest::m_allowedIncrease
uint32_t m_allowedIncrease
Definition:
tcp-slow-start-test.h:55
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:197
ns3::TcpSlowStartNormalTest::m_totalAckedBytes
uint32_t m_totalAckedBytes
Definition:
tcp-slow-start-test.h:54
tcp-general-test.h
ns3::TcpSlowStartAttackerTest
A slow start test using a socket which sends smaller ACKs.
Definition:
tcp-slow-start-test.h:69
packetSize
static const uint32_t packetSize
Definition:
power-adaptation-distance.cc:107
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::TcpSlowStartNormalTest::m_sentBytes
uint32_t m_sentBytes
Definition:
tcp-slow-start-test.h:53
ns3::TcpSlowStartNormalTest
Test the normal behavior for slow start.
Definition:
tcp-slow-start-test.h:39
src
internet
test
tcp-slow-start-test.h
Generated on Wed Nov 11 2015 20:00:35 for ns-3 by
1.8.9.1