blob: 3699a1ea4c88c4944a460d765d90754d9e5006a8 [file] [log] [blame]
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -07001/* -*- 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 */
20
21#include "ccnx-pit-impl.h"
Alexander Afanasyeve3d126f2012-07-16 17:07:31 -070022
23#include "ns3/ccnx-interest-header.h"
24#include "ns3/ccnx-content-object-header.h"
Alexander Afanasyevf249a192012-07-18 16:52:51 -070025#include "ns3/ccnx-forwarding-strategy.h"
Alexander Afanasyeve3d126f2012-07-16 17:07:31 -070026
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -070027#include "../../utils/empty-policy.h"
28#include "../../utils/persistent-policy.h"
29#include "../../utils/random-policy.h"
30#include "../../utils/lru-policy.h"
31
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -070032#include "ns3/log.h"
33#include "ns3/string.h"
34#include "ns3/uinteger.h"
35#include "ns3/simulator.h"
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -070036
37#include <boost/lambda/bind.hpp>
38#include <boost/lambda/lambda.hpp>
39
40NS_LOG_COMPONENT_DEFINE ("CcnxPitImpl");
41
42using namespace boost::tuples;
43using namespace boost;
44namespace ll = boost::lambda;
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -070045using namespace ndnSIM;
46
47#define NS_OBJECT_ENSURE_REGISTERED_TEMPL(type, templ) \
48 static struct X ## type ## templ ## RegistrationClass \
49 { \
50 X ## type ## templ ## RegistrationClass () { \
51 ns3::TypeId tid = type<templ>::GetTypeId (); \
52 tid.GetParent (); \
53 } \
54 } x_ ## type ## templ ## RegistrationVariable
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -070055
56namespace ns3 {
57
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -070058template<>
59TypeId
60CcnxPitImpl<persistent_policy_traits>::GetTypeId ()
61{
62 static TypeId tid = TypeId ("ns3::CcnxPit")
63 .SetGroupName ("Ccnx")
64 .SetParent<CcnxPit> ()
65 .AddConstructor< CcnxPitImpl< persistent_policy_traits > > ()
66 .AddAttribute ("MaxSize",
67 "Set maximum number of entries in PIT. If 0, limit is not enforced",
68 StringValue ("0"),
69 MakeUintegerAccessor (&CcnxPitImpl< persistent_policy_traits >::GetMaxSize,
70 &CcnxPitImpl< persistent_policy_traits >::SetMaxSize),
71 MakeUintegerChecker<uint32_t> ())
72 ;
73
74 return TypeId ();
75}
76
77template<>
78TypeId
79CcnxPitImpl<random_policy_traits>::GetTypeId ()
80{
81 static TypeId tid = TypeId ("ns3::CcnxPitRandom")
82 .SetGroupName ("Ccnx")
83 .SetParent<CcnxPit> ()
84 .AddConstructor< CcnxPitImpl< random_policy_traits > > ()
85 .AddAttribute ("MaxSize",
86 "Set maximum number of entries in PIT. If 0, limit is not enforced",
87 StringValue ("0"),
88 MakeUintegerAccessor (&CcnxPitImpl< random_policy_traits >::GetMaxSize,
89 &CcnxPitImpl< random_policy_traits >::SetMaxSize),
90 MakeUintegerChecker<uint32_t> ())
91 ;
92
93 return TypeId ();
94}
95
96template<>
97TypeId
98CcnxPitImpl<lru_policy_traits>::GetTypeId ()
99{
100 static TypeId tid = TypeId ("ns3::CcnxPitLru")
101 .SetGroupName ("Ccnx")
102 .SetParent<CcnxPit> ()
103 .AddConstructor< CcnxPitImpl< lru_policy_traits > > ()
104 .AddAttribute ("MaxSize",
105 "Set maximum number of entries in PIT. If 0, limit is not enforced",
106 StringValue ("0"),
107 MakeUintegerAccessor (&CcnxPitImpl< lru_policy_traits >::GetMaxSize,
108 &CcnxPitImpl< lru_policy_traits >::SetMaxSize),
109 MakeUintegerChecker<uint32_t> ())
110 ;
111
112 return TypeId ();
113}
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700114
Alexander Afanasyev36b45772012-07-10 16:57:42 -0700115
116// CcnxPitEntryImpl::CcnxPitEntryImpl (CcnxPit &pit,
117// Ptr<const CcnxInterestHeader> header,
118// Ptr<CcnxFibEntry> fibEntry)
119// : CcnxPitEntry (pit, header, fibEntry)
120// , item_ (0)
121// {
122// static_cast<CcnxPitImpl&> (m_container).i_time.insert (*this);
123// }
124
125// CcnxPitEntryImpl::~CcnxPitEntryImpl ()
126// {
127// static_cast<CcnxPitImpl&> (m_container).i_time.erase (*this);
128// }
129
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700130// TypeId
131// CcnxPitImpl::GetTypeId ()
132// {
133// static TypeId tid = TypeId ("ns3::CcnxPit")
134// .SetGroupName ("Ccnx")
135// .SetParent<CcnxPit> ()
136// .AddConstructor<CcnxPitImpl> ()
137// .AddAttribute ("MaxSize",
138// "Set maximum number of entries in PIT. If 0, limit is not enforced",
139// StringValue ("0"),
140// MakeUintegerAccessor (&CcnxPitImpl::GetMaxSize, &CcnxPitImpl::SetMaxSize),
141// MakeUintegerChecker<uint32_t> ())
142// ;
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700143
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700144// return tid;
145// }
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700146
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700147
148// template<class AcceptanceAndReplacementPolicy>
149// TypeId
150// CcnxPitImpl::GetTypeId ()
151// {
152// #error "Not specialized version is not supported"
153// // static TypeId tid = TypeId ("ns3::CcnxPit")
154// // .SetGroupName ("Ccnx")
155// // .SetParent<CcnxPit> ()
156// // .AddConstructor<CcnxPitImpl> ()
157// // .AddAttribute ("MaxSize",
158// // "Set maximum number of entries in PIT. If 0, limit is not enforced",
159// // StringValue ("0"),
160// // MakeUintegerAccessor (&CcnxPitImpl::GetMaxSize, &CcnxPitImpl::SetMaxSize),
161// // MakeUintegerChecker<uint32_t> ())
162// // ;
163
164// return Typeid ();
165// }
166
167template<class Policy>
168CcnxPitImpl<Policy>::CcnxPitImpl ()
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700169{
170}
171
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700172template<class Policy>
173CcnxPitImpl<Policy>::~CcnxPitImpl ()
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700174{
175}
176
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700177template<class Policy>
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700178uint32_t
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700179CcnxPitImpl<Policy>::GetMaxSize () const
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700180{
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700181 return super::getPolicy ().get_max_size ();
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700182}
183
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700184template<class Policy>
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700185void
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700186CcnxPitImpl<Policy>::SetMaxSize (uint32_t maxSize)
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700187{
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700188 super::getPolicy ().set_max_size (maxSize);
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700189}
190
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700191template<class Policy>
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700192void
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700193CcnxPitImpl<Policy>::NotifyNewAggregate ()
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700194{
195 if (m_fib == 0)
196 {
197 m_fib = GetObject<CcnxFib> ();
198 }
Alexander Afanasyevf249a192012-07-18 16:52:51 -0700199 if (m_forwardingStrategy == 0)
200 {
201 m_forwardingStrategy = GetObject<CcnxForwardingStrategy> ();
202 }
203
204 CcnxPit::NotifyNewAggregate ();
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700205}
206
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700207template<class Policy>
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700208void
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700209CcnxPitImpl<Policy>::DoDispose ()
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700210{
Alexander Afanasyev413c7f12012-07-10 17:35:16 -0700211 super::clear ();
Alexander Afanasyevf249a192012-07-18 16:52:51 -0700212
213 m_forwardingStrategy = 0;
214 m_fib = 0;
215
216 CcnxPit::DoDispose ();
Alexander Afanasyev413c7f12012-07-10 17:35:16 -0700217}
218
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700219template<class Policy>
220void
221CcnxPitImpl<Policy>::RescheduleCleaning ()
Alexander Afanasyev413c7f12012-07-10 17:35:16 -0700222{
223 m_cleanEvent.Cancel ();
224 if (i_time.empty ())
Alexander Afanasyevf1e013f2012-07-11 17:59:40 -0700225 {
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700226 // NS_LOG_DEBUG ("No items in PIT");
Alexander Afanasyevf1e013f2012-07-11 17:59:40 -0700227 return;
228 }
Alexander Afanasyev413c7f12012-07-10 17:35:16 -0700229
Alexander Afanasyevf1e013f2012-07-11 17:59:40 -0700230 Time nextEvent = i_time.begin ()->GetExpireTime () - Simulator::Now ();
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700231 if (nextEvent <= 0) nextEvent = Seconds (0);
Alexander Afanasyevf1e013f2012-07-11 17:59:40 -0700232
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700233 // NS_LOG_DEBUG ("Schedule next cleaning in " <<
234 // nextEvent.ToDouble (Time::S) << "s (at " <<
235 // i_time.begin ()->GetExpireTime () << "s abs time");
236
Alexander Afanasyevf1e013f2012-07-11 17:59:40 -0700237 m_cleanEvent = Simulator::Schedule (nextEvent,
Alexander Afanasyev413c7f12012-07-10 17:35:16 -0700238 &CcnxPitImpl::CleanExpired, this);
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700239}
240
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700241template<class Policy>
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700242void
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700243CcnxPitImpl<Policy>::CleanExpired ()
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700244{
Alexander Afanasyev413c7f12012-07-10 17:35:16 -0700245 NS_LOG_LOGIC ("Cleaning PIT. Total: " << i_time.size ());
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700246 Time now = Simulator::Now ();
247
Alexander Afanasyev413c7f12012-07-10 17:35:16 -0700248 // uint32_t count = 0;
249 while (!i_time.empty ())
250 {
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700251 typename time_index::iterator entry = i_time.begin ();
Alexander Afanasyev413c7f12012-07-10 17:35:16 -0700252 if (entry->GetExpireTime () <= now) // is the record stale?
253 {
Alexander Afanasyevf249a192012-07-18 16:52:51 -0700254 m_forwardingStrategy->WillErasePendingInterest (entry->to_iterator ()->payload ());
Alexander Afanasyev413c7f12012-07-10 17:35:16 -0700255 super::erase (entry->to_iterator ());
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700256 // count ++;
Alexander Afanasyev413c7f12012-07-10 17:35:16 -0700257 }
258 else
259 break; // nothing else to do. All later records will not be stale
260 }
261
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700262 if (super::getPolicy ().size ())
263 {
264 NS_LOG_DEBUG ("Size: " << super::getPolicy ().size ());
265 }
Alexander Afanasyev413c7f12012-07-10 17:35:16 -0700266 RescheduleCleaning ();
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700267}
268
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700269template<class Policy>
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700270Ptr<CcnxPitEntry>
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700271CcnxPitImpl<Policy>::Lookup (const CcnxContentObjectHeader &header)
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700272{
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700273 /// @todo use predicate to search with exclude filters
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700274 typename super::iterator item = super::longest_prefix_match (header.GetName ());
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700275
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700276 if (item == super::end ())
277 return 0;
278 else
279 return item->payload (); // which could also be 0
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700280}
281
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700282template<class Policy>
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700283Ptr<CcnxPitEntry>
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700284CcnxPitImpl<Policy>::Lookup (const CcnxInterestHeader &header)
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700285{
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700286 // NS_LOG_FUNCTION (header.GetName ());
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700287 NS_ASSERT_MSG (m_fib != 0, "FIB should be set");
Alexander Afanasyevf249a192012-07-18 16:52:51 -0700288 NS_ASSERT_MSG (m_forwardingStrategy != 0, "Forwarding strategy should be set");
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700289
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700290 typename super::iterator foundItem, lastItem;
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700291 bool reachLast;
292 boost::tie (foundItem, reachLast, lastItem) = super::getTrie ().find (header.GetName ());
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700293
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700294 if (!reachLast || lastItem == super::end ())
295 return 0;
296 else
297 return lastItem->payload (); // which could also be 0
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700298}
299
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700300template<class Policy>
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700301Ptr<CcnxPitEntry>
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700302CcnxPitImpl<Policy>::Create (Ptr<const CcnxInterestHeader> header)
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700303{
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700304 Ptr<CcnxFibEntry> fibEntry = m_fib->LongestPrefixMatch (*header);
Alexander Afanasyev3c5b6a72012-07-20 15:35:48 -0700305 if (fibEntry == 0)
306 return 0;
307
308 // NS_ASSERT_MSG (fibEntry != 0,
309 // "There should be at least default route set" <<
310 // " Prefix = "<< header->GetName() << ", NodeID == " << m_fib->GetObject<Node>()->GetId() << "\n" << *m_fib);
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700311
Alexander Afanasyev36b45772012-07-10 16:57:42 -0700312 Ptr< entry > newEntry = ns3::Create< entry > (boost::ref (*this), header, fibEntry);
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700313 std::pair< typename super::iterator, bool > result = super::insert (header->GetName (), newEntry);
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700314 if (result.first != super::end ())
315 {
316 if (result.second)
317 {
318 newEntry->SetTrie (result.first);
319 return newEntry;
320 }
321 else
322 {
323 // should we do anything?
324 // update payload? add new payload?
325 return result.first->payload ();
326 }
327 }
328 else
329 return 0;
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700330}
331
332
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700333template<class Policy>
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700334void
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700335CcnxPitImpl<Policy>::MarkErased (Ptr<CcnxPitEntry> item)
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700336{
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700337 // entry->SetExpireTime (Simulator::Now () + m_PitEntryPruningTimout);
Alexander Afanasyev36b45772012-07-10 16:57:42 -0700338 super::erase (StaticCast< entry > (item)->to_iterator ());
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700339}
340
341
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700342template<class Policy>
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700343void
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700344CcnxPitImpl<Policy>::Print (std::ostream& os) const
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700345{
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700346 // !!! unordered_set imposes "random" order of item in the same level !!!
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700347 typename super::parent_trie::const_recursive_iterator item (super::getTrie ()), end (0);
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700348 for (; item != end; item++)
349 {
350 if (item->payload () == 0) continue;
351
352 os << item->payload ()->GetPrefix () << "\t" << *item->payload () << "\n";
353 }
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700354}
355
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700356template<class Policy>
Alexander Afanasyevf1e013f2012-07-11 17:59:40 -0700357uint32_t
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700358CcnxPitImpl<Policy>::GetSize () const
Alexander Afanasyevf1e013f2012-07-11 17:59:40 -0700359{
360 return super::getPolicy ().size ();
361}
362
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700363template<class Policy>
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700364Ptr<CcnxPitEntry>
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700365CcnxPitImpl<Policy>::Begin ()
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700366{
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700367 typename super::parent_trie::recursive_iterator item (super::getTrie ()), end (0);
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700368 for (; item != end; item++)
369 {
370 if (item->payload () == 0) continue;
371 break;
372 }
373
374 if (item == end)
375 return End ();
376 else
377 return item->payload ();
378}
379
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700380template<class Policy>
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700381Ptr<CcnxPitEntry>
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700382CcnxPitImpl<Policy>::End ()
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700383{
384 return 0;
385}
386
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700387template<class Policy>
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700388Ptr<CcnxPitEntry>
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700389CcnxPitImpl<Policy>::Next (Ptr<CcnxPitEntry> from)
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700390{
391 if (from == 0) return 0;
392
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700393 typename super::parent_trie::recursive_iterator
Alexander Afanasyev36b45772012-07-10 16:57:42 -0700394 item (*StaticCast< entry > (from)->to_iterator ()),
Alexander Afanasyev30f60e32012-07-10 14:21:16 -0700395 end (0);
396
397 for (item++; item != end; item++)
398 {
399 if (item->payload () == 0) continue;
400 break;
401 }
402
403 if (item == end)
404 return End ();
405 else
406 return item->payload ();
407}
408
409
Alexander Afanasyevbd6f3f42012-07-26 17:50:17 -0700410// explicit instantiation and registering
411template class CcnxPitImpl<persistent_policy_traits>;
412template class CcnxPitImpl<random_policy_traits>;
413template class CcnxPitImpl<lru_policy_traits>;
414
415NS_OBJECT_ENSURE_REGISTERED_TEMPL(CcnxPitImpl, persistent_policy_traits);
416NS_OBJECT_ENSURE_REGISTERED_TEMPL(CcnxPitImpl, random_policy_traits);
417NS_OBJECT_ENSURE_REGISTERED_TEMPL(CcnxPitImpl, lru_policy_traits);
418
419
Alexander Afanasyev11f7bb42012-07-09 17:06:30 -0700420} // namespace ns3