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-hybla.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
#ifndef TCPHYBLA_H
20
#define TCPHYBLA_H
21
22
#include "ns3/tcp-congestion-ops.h"
23
#include "ns3/traced-value.h"
24
25
namespace
ns3
{
26
44
class
TcpHybla
:
public
TcpNewReno
45
{
46
public
:
51
static
TypeId
GetTypeId
(
void
);
52
56
TcpHybla
(
void
);
57
62
TcpHybla
(
const
TcpHybla
& sock);
63
64
virtual
~TcpHybla
(
void
);
65
66
virtual
void
PktsAcked
(
Ptr<TcpSocketState>
tcb, uint32_t segmentsAcked,
67
const
Time
& rtt);
68
69
virtual
std::string
GetName
()
const
;
70
71
virtual
Ptr<TcpCongestionOps>
Fork
();
72
73
protected
:
74
virtual
uint32_t
SlowStart
(
Ptr<TcpSocketState>
tcb, uint32_t segmentsAcked);
75
virtual
void
CongestionAvoidance
(
Ptr<TcpSocketState>
tcb, uint32_t segmentsAcked);
76
77
private
:
78
TracedValue<double>
m_rho
;
79
Time
m_minRtt
;
80
Time
m_rRtt
;
81
double
m_cWndCnt
;
82
83
private
:
89
void
RecalcParam
(
Ptr<TcpSocketState>
tcb,
const
Time
& rtt);
90
};
91
92
}
// namespace ns3
93
94
#endif // TCPHYBLA_H
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::TcpHybla::PktsAcked
virtual void PktsAcked(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked, const Time &rtt)
Timing information on received ACK.
Definition:
tcp-hybla.cc:83
ns3::Ptr< TcpSocketState >
ns3::TcpHybla::GetName
virtual std::string GetName() const
Get the name of the congestion control algorithm.
Definition:
tcp-hybla.cc:175
ns3::TcpNewReno
The NewReno implementation.
Definition:
tcp-congestion-ops.h:165
ns3::TracedValue< double >
ns3::TcpHybla::TcpHybla
TcpHybla(void)
Create an unbound tcp socket.
Definition:
tcp-hybla.cc:48
ns3::TcpHybla::m_minRtt
Time m_minRtt
Minimum smoothed round trip time value seen.
Definition:
tcp-hybla.h:79
ns3::TcpHybla::~TcpHybla
virtual ~TcpHybla(void)
Definition:
tcp-hybla.cc:66
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::TcpHybla::RecalcParam
void RecalcParam(Ptr< TcpSocketState > tcb, const Time &rtt)
Recalculate algorithm parameters.
Definition:
tcp-hybla.cc:72
ns3::TcpHybla::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
tcp-hybla.cc:30
ns3::TcpHybla::Fork
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across socket.
Definition:
tcp-hybla.cc:169
ns3::TcpHybla::SlowStart
virtual uint32_t SlowStart(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
Tcp NewReno slow start algorithm.
Definition:
tcp-hybla.cc:97
ns3::TcpHybla
Implementation of the TCP Hybla algorithm.
Definition:
tcp-hybla.h:44
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::TcpHybla::m_cWndCnt
double m_cWndCnt
cWnd integer-to-float counter
Definition:
tcp-hybla.h:81
ns3::TcpHybla::CongestionAvoidance
virtual void CongestionAvoidance(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
NewReno congestion avoidance.
Definition:
tcp-hybla.cc:127
ns3::TcpHybla::m_rRtt
Time m_rRtt
Reference RTT.
Definition:
tcp-hybla.h:80
ns3::TcpHybla::m_rho
TracedValue< double > m_rho
Rho parameter.
Definition:
tcp-hybla.h:78
src
internet
model
tcp-hybla.h
Generated on Wed Oct 11 2017 16:39:15 for ns-3 by
1.8.9.1