A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
tcp-scalable.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2016 ResiliNets, ITTC, University of Kansas
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
* Authors: Truc Anh N. Nguyen <annguyen@ittc.ku.edu>
19
* Keerthi Ganta <keerthig@ittc.ku.edu>
20
* Md Moshfequr Rahman <moshfequr@ittc.ku.edu>
21
* Amir Modarresi <amodarresi@ittc.ku.edu>
22
*
23
* James P.G. Sterbenz <jpgs@ittc.ku.edu>, director
24
* ResiliNets Research Group http://wiki.ittc.ku.edu/resilinets
25
* Information and Telecommunication Technology Center (ITTC)
26
* and Department of Electrical Engineering and Computer Science
27
* The University of Kansas Lawrence, KS USA.
28
*/
29
30
#ifndef TCPSCALABLE_H
31
#define TCPSCALABLE_H
32
33
#include "
tcp-congestion-ops.h
"
34
35
namespace
ns3
{
36
37
class
TcpSocketState;
38
64
class
TcpScalable
:
public
TcpNewReno
65
{
66
public
:
71
static
TypeId
GetTypeId
(
void
);
72
76
TcpScalable
(
void
);
77
82
TcpScalable
(
const
TcpScalable
& sock);
83
virtual
~TcpScalable
(
void
);
84
85
virtual
std::string
GetName
()
const
;
86
95
virtual
uint32_t
GetSsThresh
(
Ptr<const TcpSocketState>
tcb,
96
uint32_t bytesInFlight);
97
98
virtual
Ptr<TcpCongestionOps>
Fork
();
99
100
protected
:
107
virtual
void
CongestionAvoidance
(
Ptr<TcpSocketState>
tcb,
108
uint32_t segmentsAcked);
109
110
private
:
111
uint32_t
m_ackCnt
;
112
uint32_t
m_aiFactor
;
113
double
m_mdFactor
;
114
};
115
116
}
// namespace ns3
117
118
#endif
// TCPSCALABLE_H
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:74
ns3::TcpNewReno
The NewReno implementation.
Definition:
tcp-congestion-ops.h:215
ns3::TcpScalable
An implementation of TCP Scalable.
Definition:
tcp-scalable.h:65
ns3::TcpScalable::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
tcp-scalable.cc:41
ns3::TcpScalable::Fork
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across sockets.
Definition:
tcp-scalable.cc:83
ns3::TcpScalable::TcpScalable
TcpScalable(void)
Create an unbound tcp socket.
Definition:
tcp-scalable.cc:59
ns3::TcpScalable::m_ackCnt
uint32_t m_ackCnt
Number of received ACK.
Definition:
tcp-scalable.h:111
ns3::TcpScalable::m_aiFactor
uint32_t m_aiFactor
Additive increase factor.
Definition:
tcp-scalable.h:112
ns3::TcpScalable::m_mdFactor
double m_mdFactor
Multiplicative decrease factor.
Definition:
tcp-scalable.h:113
ns3::TcpScalable::CongestionAvoidance
virtual void CongestionAvoidance(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
Congestion avoidance of TcpScalable (Equation 1)
Definition:
tcp-scalable.cc:89
ns3::TcpScalable::GetName
virtual std::string GetName() const
Get the name of the congestion control algorithm.
Definition:
tcp-scalable.cc:123
ns3::TcpScalable::~TcpScalable
virtual ~TcpScalable(void)
Definition:
tcp-scalable.cc:77
ns3::TcpScalable::GetSsThresh
virtual uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight)
Get slow start threshold following Scalable principle (Equation 2)
Definition:
tcp-scalable.cc:129
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
tcp-congestion-ops.h
src
internet
model
tcp-scalable.h
Generated on Tue Feb 6 2024 19:21:20 for ns-3 by
1.9.1