NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
multicast-strategy.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_FW_MULTICAST_STRATEGY_HPP
27
#define NFD_DAEMON_FW_MULTICAST_STRATEGY_HPP
28
29
#include "
strategy.hpp
"
30
#include "
process-nack-traits.hpp
"
31
#include "
retx-suppression-exponential.hpp
"
32
33
namespace
nfd
{
34
namespace
fw {
35
38
class
MulticastStrategy
:
public
Strategy
39
,
public
ProcessNackTraits
<MulticastStrategy>
40
{
41
public
:
42
explicit
43
MulticastStrategy
(
Forwarder
& forwarder,
const
Name
&
name
=
getStrategyName
());
44
45
static
const
Name
&
46
getStrategyName
();
47
48
void
49
afterReceiveInterest
(
const
Face
& inFace,
const
Interest
& interest,
50
const
shared_ptr<pit::Entry>& pitEntry)
override
;
51
52
void
53
afterReceiveNack
(
const
Face
& inFace,
const
lp::Nack
& nack,
54
const
shared_ptr<pit::Entry>& pitEntry)
override
;
55
56
private
:
57
friend
ProcessNackTraits<MulticastStrategy>
;
58
RetxSuppressionExponential
m_retxSuppression;
59
60
PUBLIC_WITH_TESTS_ELSE_PRIVATE
:
61
static
const
time::milliseconds
RETX_SUPPRESSION_INITIAL;
62
static
const
time::milliseconds
RETX_SUPPRESSION_MAX;
63
};
64
65
}
// namespace fw
66
}
// namespace nfd
67
68
#endif // NFD_DAEMON_FW_MULTICAST_STRATEGY_HPP
PUBLIC_WITH_TESTS_ELSE_PRIVATE
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
Definition:
common.hpp:40
nfd::fw::MulticastStrategy::afterReceiveInterest
void afterReceiveInterest(const Face &inFace, const Interest &interest, const shared_ptr< pit::Entry > &pitEntry) override
trigger after Interest is received
Definition:
multicast-strategy.cpp:66
nfd::fw::MulticastStrategy::MulticastStrategy
MulticastStrategy(Forwarder &forwarder, const Name &name=getStrategyName())
Definition:
multicast-strategy.cpp:40
retx-suppression-exponential.hpp
websocketpp::lib::asio::milliseconds
boost::posix_time::time_duration milliseconds(long duration)
Definition:
asio.hpp:117
nfd::Forwarder
main class of NFD
Definition:
forwarder.hpp:54
ndn::Interest
represents an Interest packet
Definition:
interest.hpp:42
process-nack-traits.hpp
nfd::fw::MulticastStrategy::getStrategyName
static const Name & getStrategyName()
Definition:
multicast-strategy.cpp:59
ndn::lp::Nack
represents a Network Nack
Definition:
nack.hpp:40
nfd::fw::MulticastStrategy::afterReceiveNack
void afterReceiveNack(const Face &inFace, const lp::Nack &nack, const shared_ptr< pit::Entry > &pitEntry) override
trigger after Nack is received
Definition:
multicast-strategy.cpp:115
Face
ndn Face
Definition:
face-impl.hpp:41
nfd::fw::ProcessNackTraits
Definition:
process-nack-traits.hpp:70
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
ndn::Name
Represents an absolute name.
Definition:
name.hpp:42
strategy.hpp
nfd::fw::Strategy
represents a forwarding strategy
Definition:
strategy.hpp:37
nfd::fw::MulticastStrategy
a forwarding strategy that forwards Interest to all FIB nexthops
Definition:
multicast-strategy.hpp:38
nfd::fw::RetxSuppressionExponential
a retransmission suppression decision algorithm that suppresses retransmissions using exponential bac...
Definition:
retx-suppression-exponential.hpp:41
ndn::name
Definition:
name-component.cpp:37
ndnSIM
NFD
daemon
fw
multicast-strategy.hpp
Generated on Thu Nov 2 2017 03:30:29 for ndnSIM by
1.8.11