NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
retx-suppression-exponential.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_FW_RETX_SUPPRESSION_EXPONENTIAL_HPP
27
#define NFD_DAEMON_FW_RETX_SUPPRESSION_EXPONENTIAL_HPP
28
29
#include "
retx-suppression.hpp
"
30
31
namespace
nfd
{
32
namespace
fw {
33
40
class
RetxSuppressionExponential
:
public
RetxSuppression
41
{
42
public
:
45
typedef
time::microseconds
Duration
;
46
47
explicit
48
RetxSuppressionExponential
(
const
Duration& initialInterval =
DEFAULT_INITIAL_INTERVAL
,
49
float
multiplier =
DEFAULT_MULTIPLIER
,
50
const
Duration& maxInterval =
DEFAULT_MAX_INTERVAL
);
51
55
virtual
Result
56
decide
(
const
Face
& inFace,
const
Interest
& interest,
57
pit::Entry
& pitEntry)
const
DECL_OVERRIDE
;
58
59
public
:
62
class
PitInfo
;
63
64
public
:
65
static
const
Duration
DEFAULT_INITIAL_INTERVAL
;
66
static
const
float
DEFAULT_MULTIPLIER
;
67
static
const
Duration
DEFAULT_MAX_INTERVAL
;
68
69
private
:
70
const
Duration m_initialInterval;
71
const
float
m_multiplier;
72
const
Duration m_maxInterval;
73
};
74
75
}
// namespace fw
76
}
// namespace nfd
77
78
#endif // NFD_DAEMON_FW_RETX_SUPPRESSION_EXPONENTIAL_HPP
nfd::fw::RetxSuppressionExponential::DEFAULT_INITIAL_INTERVAL
static const Duration DEFAULT_INITIAL_INTERVAL
Definition:
retx-suppression-exponential.hpp:62
ndn::Interest
represents an Interest packet
Definition:
interest.hpp:45
DECL_OVERRIDE
#define DECL_OVERRIDE
expands to 'override' if compiler supports this feature, otherwise expands to nothing ...
Definition:
common.hpp:49
nfd::fw::RetxSuppressionExponential::DEFAULT_MULTIPLIER
static const float DEFAULT_MULTIPLIER
Definition:
retx-suppression-exponential.hpp:66
nfd::Face
represents a face
Definition:
face.hpp:57
nfd::fw::RetxSuppressionExponential::DEFAULT_MAX_INTERVAL
static const Duration DEFAULT_MAX_INTERVAL
Definition:
retx-suppression-exponential.hpp:67
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:38
nfd::pit::Entry
represents a PIT entry
Definition:
pit-entry.hpp:67
nfd::fw::RetxSuppressionExponential::RetxSuppressionExponential
RetxSuppressionExponential(const Duration &initialInterval=DEFAULT_INITIAL_INTERVAL, float multiplier=DEFAULT_MULTIPLIER, const Duration &maxInterval=DEFAULT_MAX_INTERVAL)
Definition:
retx-suppression-exponential.cpp:59
nfd::fw::RetxSuppressionExponential::decide
virtual Result decide(const Face &inFace, const Interest &interest, pit::Entry &pitEntry) const 1
determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppress...
Definition:
retx-suppression-exponential.cpp:72
nfd::fw::RetxSuppressionExponential::Duration
time::microseconds Duration
time granularity
Definition:
retx-suppression-exponential.hpp:45
nfd::fw::RetxSuppressionExponential::PitInfo
Definition:
retx-suppression-exponential.cpp:37
nfd::fw::RetxSuppression
helper for consumer retransmission suppression
Definition:
retx-suppression.hpp:36
nfd::fw::RetxSuppressionExponential
a retransmission suppression decision algorithm that suppresses retransmissions using exponential bac...
Definition:
retx-suppression-exponential.hpp:40
nfd::fw::RetxSuppression::Result
Result
Definition:
retx-suppression.hpp:39
retx-suppression.hpp
ndnSIM
NFD
daemon
fw
retx-suppression-exponential.hpp
Generated on Tue Feb 23 2016 22:18:44 for ndnSIM by
1.8.11