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-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
42
class
TcpHybla
:
public
TcpNewReno
43
{
44
public
:
49
static
TypeId
GetTypeId
(
void
);
50
54
TcpHybla
(
void
);
55
60
TcpHybla
(
const
TcpHybla
& sock);
61
62
virtual
~TcpHybla
(
void
);
63
64
virtual
void
PktsAcked
(
Ptr<TcpSocketState>
tcb, uint32_t segmentsAcked,
65
const
Time
& rtt);
66
67
virtual
std::string
GetName
()
const
;
68
69
virtual
Ptr<TcpCongestionOps>
Fork
();
70
71
protected
:
72
virtual
uint32_t
SlowStart
(
Ptr<TcpSocketState>
tcb, uint32_t segmentsAcked);
73
virtual
void
CongestionAvoidance
(
Ptr<TcpSocketState>
tcb, uint32_t segmentsAcked);
74
75
private
:
76
TracedValue<double>
m_rho
;
77
Time
m_minRtt
;
78
Time
m_rRtt
;
79
double
m_cWndCnt
;
80
81
private
:
85
void
RecalcParam
(
Ptr<TcpSocketState>
tcb,
const
Time
& rtt);
86
};
87
88
}
// namespace ns3
89
90
#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
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:73
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:139
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:77
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 paramenters.
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:42
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:79
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:78
ns3::TcpHybla::m_rho
TracedValue< double > m_rho
Rho parameter.
Definition:
tcp-hybla.h:76
src
internet
model
tcp-hybla.h
Generated on Wed Nov 11 2015 20:00:34 for ns-3 by
1.8.9.1