Research Article

: MCDM-Based Interest Forwarding and Cooperative Data Caching for Named Data Networking

Algorithm 2

The proposed cooperative data caching.
, , , , , and :
 Defined before;
: The Pending Interest Table at ;
: The set of incoming interfaces associated with data in the Pending Interest Table at . Here, is the set of incoming interfaces that the Interest packets have been received from;
: The Content Store at ;
: The Forwarding Information Base at ;
: The number of hops between the data producer and ;
: the number of hops between the boarder router and ;
  When receives a Data packet :
ifthen
  Forward to
  if countthen
   Cache in
    Apply CacheData
  else
   ifthen
    Cache in
     Apply CacheFace
   else
    Cache in
     Apply default in-network caching
   end
  end
  Remove from
else
  Drop
   Unsolicited Data packet
end