A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
tcp-highspeed.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2014 Natale Patriciello, <natale.patriciello@gmail.com>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
*/
18
19
#ifndef TCPHIGHSPEED_H
20
#define TCPHIGHSPEED_H
21
22
#include "
tcp-congestion-ops.h
"
23
24
namespace
ns3
25
{
26
27
class
TcpSocketState;
28
49
class
TcpHighSpeed
:
public
TcpNewReno
50
{
51
public
:
56
static
TypeId
GetTypeId
();
57
61
TcpHighSpeed
();
62
67
TcpHighSpeed
(
const
TcpHighSpeed
& sock);
68
~TcpHighSpeed
()
override
;
69
70
std::string
GetName
()
const override
;
71
72
uint32_t
GetSsThresh
(
Ptr<const TcpSocketState>
tcb,
uint32_t
bytesInFlight)
override
;
73
74
Ptr<TcpCongestionOps>
Fork
()
override
;
75
83
static
uint32_t
TableLookupA
(
uint32_t
w);
84
92
static
double
TableLookupB
(
uint32_t
w);
93
94
protected
:
95
void
CongestionAvoidance
(
Ptr<TcpSocketState>
tcb,
uint32_t
segmentsAcked)
override
;
96
97
private
:
98
uint32_t
m_ackCnt
;
99
};
100
101
}
// namespace ns3
102
103
#endif
// TCPHIGHSPEED_H
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:78
ns3::TcpHighSpeed
An implementation of TCP HighSpeed.
Definition:
tcp-highspeed.h:50
ns3::TcpHighSpeed::~TcpHighSpeed
~TcpHighSpeed() override
Definition:
tcp-highspeed.cc:55
ns3::TcpHighSpeed::TableLookupB
static double TableLookupB(uint32_t w)
Lookup table for the coefficient b (from RFC 3649)
Definition:
tcp-highspeed.cc:457
ns3::TcpHighSpeed::TableLookupA
static uint32_t TableLookupA(uint32_t w)
Lookup table for the coefficient a (from RFC 3649)
Definition:
tcp-highspeed.cc:156
ns3::TcpHighSpeed::GetSsThresh
uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight) override
Get slow start threshold following HighSpeed principles.
Definition:
tcp-highspeed.cc:141
ns3::TcpHighSpeed::CongestionAvoidance
void CongestionAvoidance(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked) override
Congestion avoidance of TcpHighSpeed.
Definition:
tcp-highspeed.cc:99
ns3::TcpHighSpeed::GetName
std::string GetName() const override
Get the name of the congestion control algorithm.
Definition:
tcp-highspeed.cc:127
ns3::TcpHighSpeed::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
tcp-highspeed.cc:32
ns3::TcpHighSpeed::TcpHighSpeed
TcpHighSpeed()
Create an unbound tcp socket.
Definition:
tcp-highspeed.cc:41
ns3::TcpHighSpeed::Fork
Ptr< TcpCongestionOps > Fork() override
Copy the congestion control algorithm across sockets.
Definition:
tcp-highspeed.cc:61
ns3::TcpHighSpeed::m_ackCnt
uint32_t m_ackCnt
Number of received ACK, corrected with the coefficient a.
Definition:
tcp-highspeed.h:98
ns3::TcpNewReno
The NewReno implementation.
Definition:
tcp-congestion-ops.h:212
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
uint32_t
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
tcp-congestion-ops.h
src
internet
model
tcp-highspeed.h
Generated on Sun Jul 2 2023 18:21:41 for ns-3 by
1.9.6