NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
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 
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
represents an Interest packet
Definition: interest.hpp:45
#define DECL_OVERRIDE
expands to 'override' if compiler supports 'override' specifier, otherwise expands to nothing ...
Definition: common.hpp:50
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
represents a PIT entry
Definition: pit-entry.hpp:69
RetxSuppressionExponential(const Duration &initialInterval=DEFAULT_INITIAL_INTERVAL, float multiplier=DEFAULT_MULTIPLIER, const Duration &maxInterval=DEFAULT_MAX_INTERVAL)
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...
time::microseconds Duration
time granularity
helper for consumer retransmission suppression
a retransmission suppression decision algorithm that suppresses retransmissions using exponential bac...