NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
retx-suppression.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_HPP
27 #define NFD_DAEMON_FW_RETX_SUPPRESSION_HPP
28 
29 #include "strategy.hpp"
30 
31 namespace nfd {
32 namespace fw {
33 
36 class RetxSuppression : noncopyable
37 {
38 public:
39  enum Result {
42  NEW,
43 
47 
51  };
52 
56  virtual Result
57  decide(const Face& inFace, const Interest& interest, pit::Entry& pitEntry) const = 0;
58 
59 protected:
64  getLastOutgoing(const pit::Entry& pitEntry) const;
65 };
66 
67 } // namespace fw
68 } // namespace nfd
69 
70 #endif // NFD_DAEMON_FW_RETX_SUPPRESSION_HPP
time_point TimePoint
Definition: time.hpp:108
Interest is retransmission and should be suppressed.
time::steady_clock::TimePoint getLastOutgoing(const pit::Entry &pitEntry) const
represents an Interest packet
Definition: interest.hpp:45
represents a face
Definition: face.hpp:57
Interest is new (not a retransmission)
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
represents a PIT entry
Definition: pit-entry.hpp:67
Interest is retransmission and should be forwarded.
helper for consumer retransmission suppression
virtual Result decide(const Face &inFace, const Interest &interest, pit::Entry &pitEntry) const =0
determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppress...