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-bic.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 TCPBIC_H
21
#define TCPBIC_H
22
23
#include "ns3/tcp-congestion-ops.h"
24
25
class
TcpBicIncrementTest
;
26
class
TcpBicDecrementTest
;
27
28
namespace
ns3
{
29
80
class
TcpBic
:
public
TcpCongestionOps
81
{
82
public
:
87
static
TypeId
GetTypeId
(
void
);
88
92
TcpBic
();
93
98
TcpBic
(
const
TcpBic
&sock);
99
100
virtual
std::string
GetName
()
const
;
101
virtual
void
IncreaseWindow
(
Ptr<TcpSocketState>
tcb,
102
uint32_t segmentsAcked);
103
virtual
uint32_t
GetSsThresh
(
Ptr<const TcpSocketState>
tcb,
104
uint32_t bytesInFlight);
105
106
virtual
Ptr<TcpCongestionOps>
Fork
();
107
108
protected
:
114
virtual
uint32_t
Update
(
Ptr<TcpSocketState>
tcb);
115
116
private
:
121
friend
class ::TcpBicIncrementTest;
126
friend
class ::TcpBicDecrementTest;
127
128
// User parameters
129
bool
m_fastConvergence
;
130
double
m_beta
;
131
uint32_t
m_maxIncr
;
132
uint32_t
m_lowWnd
;
133
uint32_t
m_smoothPart
;
134
135
// Bic parameters
136
uint32_t
m_cWndCnt
;
137
uint32_t
m_lastMaxCwnd
;
138
uint32_t
m_lastCwnd
;
139
Time
m_epochStart
;
140
uint8_t
m_b
;
141
};
142
143
}
// namespace ns3
144
#endif // TCPBIC_H
ns3::TcpBic
BIC congestion control algorithm.
Definition:
tcp-bic.h:80
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::TcpBic::m_epochStart
Time m_epochStart
Beginning of an epoch.
Definition:
tcp-bic.h:139
ns3::TcpBic::m_fastConvergence
bool m_fastConvergence
Enable or disable fast convergence algorithm.
Definition:
tcp-bic.h:129
ns3::Ptr< TcpSocketState >
ns3::TcpBic::m_lastMaxCwnd
uint32_t m_lastMaxCwnd
Last maximum cWnd.
Definition:
tcp-bic.h:137
ns3::TcpBic::m_lowWnd
uint32_t m_lowWnd
Lower bound on congestion window.
Definition:
tcp-bic.h:132
ns3::TcpBic::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
tcp-bic.cc:28
ns3::TcpBic::m_maxIncr
uint32_t m_maxIncr
Maximum window increment.
Definition:
tcp-bic.h:131
ns3::TcpBic::GetSsThresh
virtual uint32_t GetSsThresh(Ptr< const TcpSocketState > tcb, uint32_t bytesInFlight)
Get the slow start threshold after a loss event.
Definition:
tcp-bic.cc:238
ns3::TcpBic::Update
virtual uint32_t Update(Ptr< TcpSocketState > tcb)
Bic window update after a new ack received.
Definition:
tcp-bic.cc:133
ns3::TcpBic::m_cWndCnt
uint32_t m_cWndCnt
cWnd integer-to-float counter
Definition:
tcp-bic.h:136
TcpBicIncrementTest
Testing the congestion avoidance increment on TcpBic.
Definition:
tcp-bic-test.cc:36
ns3::TcpBic::m_smoothPart
uint32_t m_smoothPart
Number of RTT needed to reach Wmax from Wmax-B.
Definition:
tcp-bic.h:133
ns3::TcpBic::Fork
virtual Ptr< TcpCongestionOps > Fork()
Copy the congestion control algorithm across socket.
Definition:
tcp-bic.cc:276
ns3::TcpBic::GetName
virtual std::string GetName() const
Get the name of the congestion control algorithm.
Definition:
tcp-bic.cc:232
ns3::TcpBic::TcpBic
TcpBic()
Constructor.
Definition:
tcp-bic.cc:67
ns3::TcpBic::m_lastCwnd
uint32_t m_lastCwnd
Last cWnd.
Definition:
tcp-bic.h:138
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::TcpBic::m_beta
double m_beta
Beta for cubic multiplicative increase.
Definition:
tcp-bic.h:130
ns3::TcpCongestionOps
Congestion control abstract class.
Definition:
tcp-congestion-ops.h:50
ns3::TcpBic::m_b
uint8_t m_b
Binary search coefficient.
Definition:
tcp-bic.h:140
TcpBicDecrementTest
Testing the congestion avoidance decrement on TcpBic.
Definition:
tcp-bic-test.cc:197
ns3::TcpBic::IncreaseWindow
virtual void IncreaseWindow(Ptr< TcpSocketState > tcb, uint32_t segmentsAcked)
Congestion avoidance algorithm implementation.
Definition:
tcp-bic.cc:95
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
src
internet
model
tcp-bic.h
Generated on Wed Mar 21 2018 14:24:11 for ns-3 by
1.8.9.1