NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
green-yellow-red.h
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2
/*
3
* Copyright (c) 2011 University of California, Los Angeles
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
19
* Ilya Moiseenko <iliamo@cs.ucla.edu>
20
*/
21
#ifndef NDNSIM_GREEN_YELLOW_RED_H
22
#define NDNSIM_GREEN_YELLOW_RED_H
23
24
#include "nacks.h"
25
26
namespace
ns3 {
27
namespace
ndn {
28
namespace
fw {
29
34
class
GreenYellowRed
:
35
public
Nacks
36
{
37
public
:
38
static
TypeId
39
GetTypeId (
void
);
40
41
protected
:
42
virtual
void
43
WillSatisfyPendingInterest
(Ptr<Face> inFace,
44
Ptr<pit::Entry> pitEntry);
45
46
virtual
bool
47
DoPropagateInterest
(Ptr<Face> inFace,
48
Ptr<const Interest> interest,
49
Ptr<pit::Entry> pitEntry);
50
51
virtual
void
52
WillEraseTimedOutPendingInterest
(Ptr<pit::Entry> pitEntry);
53
54
virtual
void
55
DidReceiveValidNack (Ptr<Face> incomingFace,
56
uint32_t nackCode,
57
Ptr<const Interest> nack,
58
Ptr<pit::Entry> pitEntry);
59
private
:
60
typedef
Nacks
super
;
61
};
62
63
}
// namespace fw
64
}
// namespace ndn
65
}
// namespace ns3
66
67
#endif // NDNSIM_GREEN_YELLOW_RED
ns3::ndn::fw::GreenYellowRed
Forwarding strategy extensions to track simple link status based on data plane performance.
Definition:
green-yellow-red.h:34
ns3::ndn::fw::GreenYellowRed::WillSatisfyPendingInterest
virtual void WillSatisfyPendingInterest(Ptr< Face > inFace, Ptr< pit::Entry > pitEntry)
Even fired just before Interest will be satisfied.
Definition:
green-yellow-red.cc:94
ns3::ndn::fw::GreenYellowRed::WillEraseTimedOutPendingInterest
virtual void WillEraseTimedOutPendingInterest(Ptr< pit::Entry > pitEntry)
Event fired just before PIT entry is removed by timeout.
Definition:
green-yellow-red.cc:107
ns3::ndn::fw::GreenYellowRed::DoPropagateInterest
virtual bool DoPropagateInterest(Ptr< Face > inFace, Ptr< const Interest > interest, Ptr< pit::Entry > pitEntry)
Virtual method to perform Interest propagation according to the forwarding strategy logic...
Definition:
green-yellow-red.cc:66
ns3::ndn::fw::Nacks
Implementation of experimental NACK messages (enables with EnableNACKs option)
Definition:
nacks.h:33
ndnSIM
model
fw
green-yellow-red.h
Generated on Mon Jan 19 2015 11:27:03 for ndnSIM by
1.8.7