NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
retx-suppression-fixed.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_FIXED_HPP
27 #define NFD_DAEMON_FW_RETX_SUPPRESSION_FIXED_HPP
28 
29 #include "retx-suppression.hpp"
30 
31 namespace nfd {
32 namespace fw {
33 
38 {
39 public:
40  explicit
41  RetxSuppressionFixed(const time::milliseconds& minRetxInterval = DEFAULT_MIN_RETX_INTERVAL);
42 
46  virtual Result
47  decide(const Face& inFace, const Interest& interest,
48  pit::Entry& pitEntry) const override;
49 
50 public:
51  static const time::milliseconds DEFAULT_MIN_RETX_INTERVAL;
52 
53 private:
54  const time::milliseconds m_minRetxInterval;
55 };
56 
57 } // namespace fw
58 } // namespace nfd
59 
60 #endif // NFD_DAEMON_FW_RETX_SUPPRESSION_FIXED_HPP
static const time::milliseconds DEFAULT_MIN_RETX_INTERVAL
a retransmission suppression decision algorithm that suppresses retransmissions within a fixed durati...
generalization of a network interface
Definition: face.hpp:67
virtual Result decide(const Face &inFace, const Interest &interest, pit::Entry &pitEntry) const override
determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppress...
represents an Interest packet
Definition: interest.hpp:42
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
an Interest table entry
Definition: pit-entry.hpp:57
helper for consumer retransmission suppression
RetxSuppressionFixed(const time::milliseconds &minRetxInterval=DEFAULT_MIN_RETX_INTERVAL)