NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
best-route-strategy2.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_FW_BEST_ROUTE_STRATEGY2_HPP
27 #define NFD_DAEMON_FW_BEST_ROUTE_STRATEGY2_HPP
28 
29 #include "strategy.hpp"
31 
32 namespace nfd {
33 namespace fw {
34 
53 {
54 public:
55  explicit
56  BestRouteStrategy2(Forwarder& forwarder, const Name& name = STRATEGY_NAME);
57 
58  virtual void
59  afterReceiveInterest(const Face& inFace, const Interest& interest,
60  const shared_ptr<pit::Entry>& pitEntry) override;
61 
62  virtual void
63  afterReceiveNack(const Face& inFace, const lp::Nack& nack,
64  const shared_ptr<pit::Entry>& pitEntry) override;
65 
66 public:
67  static const Name STRATEGY_NAME;
68 
70  static const time::milliseconds RETX_SUPPRESSION_INITIAL;
71  static const time::milliseconds RETX_SUPPRESSION_MAX;
72  RetxSuppressionExponential m_retxSuppression;
73 };
74 
75 } // namespace fw
76 } // namespace nfd
77 
78 #endif // NFD_DAEMON_FW_BEST_ROUTE_STRATEGY2_HPP
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
Definition: common.hpp:40
generalization of a network interface
Definition: face.hpp:67
virtual void afterReceiveNack(const Face &inFace, const lp::Nack &nack, const shared_ptr< pit::Entry > &pitEntry) override
trigger after Nack is received
Best Route strategy version 4.
main class of NFD
Definition: forwarder.hpp:54
represents an Interest packet
Definition: interest.hpp:42
represents a Network Nack
Definition: nack.hpp:40
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
virtual void afterReceiveInterest(const Face &inFace, const Interest &interest, const shared_ptr< pit::Entry > &pitEntry) override
trigger after Interest is received
Name abstraction to represent an absolute name.
Definition: name.hpp:46
represents a forwarding strategy
Definition: strategy.hpp:38
BestRouteStrategy2(Forwarder &forwarder, const Name &name=STRATEGY_NAME)
a retransmission suppression decision algorithm that suppresses retransmissions using exponential bac...