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-newreno.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2010 Adrian Sai-wah Tam
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
* Author: Adrian Sai-wah Tam <adrian.sw.tam@gmail.com>
19
*/
20
21
#ifndef TCP_NEWRENO_H
22
#define TCP_NEWRENO_H
23
24
#include "
tcp-socket-base.h
"
25
26
namespace
ns3
{
27
36
class
TcpNewReno
:
public
TcpSocketBase
37
{
38
public
:
43
static
TypeId
GetTypeId
(
void
);
47
TcpNewReno
(
void
);
52
TcpNewReno
(
const
TcpNewReno
& sock);
53
virtual
~TcpNewReno
(
void
);
54
55
protected
:
56
virtual
Ptr<TcpSocketBase>
Fork
(
void
);
// Call CopyObject<TcpNewReno> to clone me
57
virtual
void
NewAck
(
SequenceNumber32
const
& seq);
// Inc cwnd and call NewAck() of parent
58
virtual
void
DupAck
(
const
TcpHeader
& t, uint32_t count);
// Halving cwnd and reset nextTxSequence
59
virtual
void
Retransmit
(
void
);
// Exit fast recovery upon retransmit timeout
60
61
protected
:
62
SequenceNumber32
m_recover
;
63
uint32_t
m_retxThresh
;
64
bool
m_inFastRec
;
65
bool
m_limitedTx
;
66
};
67
68
}
// namespace ns3
69
70
#endif
/* TCP_NEWRENO_H */
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:73
ns3::TcpNewReno::NewAck
virtual void NewAck(SequenceNumber32 const &seq)
Update buffers w.r.t.
Definition:
tcp-newreno.cc:86
ns3::TcpNewReno::m_limitedTx
bool m_limitedTx
perform limited transmit
Definition:
tcp-newreno.h:65
ns3::TcpNewReno
An implementation of a stream socket using TCP.
Definition:
tcp-newreno.h:36
ns3::TcpNewReno::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
tcp-newreno.cc:38
ns3::TcpNewReno::DupAck
virtual void DupAck(const TcpHeader &t, uint32_t count)
Received dupack (duplicate ACK)
Definition:
tcp-newreno.cc:131
ns3::TcpSocketBase
A base class for implementation of a stream socket using TCP.
Definition:
tcp-socket-base.h:91
ns3::TcpNewReno::m_inFastRec
bool m_inFastRec
currently in fast recovery
Definition:
tcp-newreno.h:64
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::SequenceNumber< uint32_t, int32_t >
ns3::TcpNewReno::m_retxThresh
uint32_t m_retxThresh
Fast Retransmit threshold.
Definition:
tcp-newreno.h:63
ns3::TcpHeader
Header for the Transmission Control Protocol.
Definition:
tcp-header.h:44
ns3::TcpNewReno::Retransmit
virtual void Retransmit(void)
Halving cwnd and call DoRetransmit()
Definition:
tcp-newreno.cc:163
tcp-socket-base.h
ns3::TcpNewReno::Fork
virtual Ptr< TcpSocketBase > Fork(void)
Call CopyObject<> to clone me.
Definition:
tcp-newreno.cc:79
ns3::TcpNewReno::TcpNewReno
TcpNewReno(void)
Create an unbound tcp socket.
Definition:
tcp-newreno.cc:56
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::TcpNewReno::m_recover
SequenceNumber32 m_recover
Previous highest Tx seqnum for fast recovery.
Definition:
tcp-newreno.h:62
ns3::TcpNewReno::~TcpNewReno
virtual ~TcpNewReno(void)
Definition:
tcp-newreno.cc:74
src
internet
model
tcp-newreno.h
Generated on Wed Sep 30 2015 15:55:34 for ns-3 by
1.8.9.1