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-highspeed.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2014 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
20
#ifndef TCPHIGHSPEED_H
21
#define TCPHIGHSPEED_H
22
23
#include "ns3/tcp-congestion-ops.h"
24
25
namespace
ns3
{
26
47
class
TcpHighSpeed
:
public
TcpNewReno
48
{
49
public
:
54
static
TypeId
GetTypeId
(
void
);
55
59
TcpHighSpeed
(
void
);
60
65
TcpHighSpeed
(
const
TcpHighSpeed
& sock);
66
virtual
~TcpHighSpeed
(
void
);
67
68
virtual
std::string
GetName
()
const
;
69
70
virtual
uint32_t
GetSsThresh
(
Ptr<const TcpSocketState>
tcb,
71
uint32_t bytesInFlight);
72
73
virtual
Ptr<TcpCongestionOps>
Fork
();
74
82
static
uint32_t
TableLookupA
(uint32_t
w
);
83
91
static
double
TableLookupB
(uint32_t w);
92
93
protected
:
94
virtual
void
CongestionAvoidance
(
Ptr<TcpSocketState>
tcb, uint32_t segmentsAcked);
95
96
private
:
97
uint32_t
m_ackCnt
;
98
};
99
100
}
// namespace ns3
101
102
#endif // TCPHIGHSPEED_H
ns3::TcpHighSpeed
An implementation of TCP HighSpeed.
Definition:
tcp-highspeed.h:47
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:73
ns3::TcpHighSpeed::GetSsThresh
virtual uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight)
Get slow start threshold following HighSpeed principles.
Definition:
tcp-highspeed.cc:139
ns3::TcpNewReno
The NewReno implementation.
Definition:
tcp-congestion-ops.h:180
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::~TcpHighSpeed
virtual ~TcpHighSpeed(void)
Definition:
tcp-highspeed.cc:53
ns3::TcpHighSpeed::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
tcp-highspeed.cc:29
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::TcpHighSpeed::TcpHighSpeed
TcpHighSpeed(void)
Create an unbound tcp socket.
Definition:
tcp-highspeed.cc:39
visualizer.higcontainer.w
tuple w
Definition:
higcontainer.py:169
ns3::TcpHighSpeed::Fork
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across socket.
Definition:
tcp-highspeed.cc:59
ns3::TcpHighSpeed::GetName
virtual std::string GetName() const
Get the name of the congestion control algorithm.
Definition:
tcp-highspeed.cc:125
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::TcpHighSpeed::m_ackCnt
uint32_t m_ackCnt
Number of received ACK, corrected with the coefficient a.
Definition:
tcp-highspeed.h:97
ns3::TcpHighSpeed::CongestionAvoidance
virtual void CongestionAvoidance(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
Congestion avoidance of TcpHighSpeed.
Definition:
tcp-highspeed.cc:97
src
internet
model
tcp-highspeed.h
Generated on Wed Mar 21 2018 14:24:11 for ns-3 by
1.8.9.1