|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
20 #ifndef NDN_L3_PROTOCOL_H
21 #define NDN_L3_PROTOCOL_H
23 #include "ns3/ndnSIM/model/ndn-common.hpp"
29 #include "ns3/net-device.h"
30 #include "ns3/nstime.h"
31 #include "ns3/traced-callback.h"
33 #include <boost/property_tree/ptree_fwd.hpp>
105 shared_ptr<nfd::Forwarder>
114 shared_ptr<nfd::FibManager>
135 addFace(shared_ptr<Face> face);
178 static Ptr<L3Protocol>
206 initializeManagement();
209 initializeRibManager();
213 std::unique_ptr<Impl> m_impl;
218 TracedCallback<const Interest&, const Face&>
220 TracedCallback<const Interest&, const Face&>
223 TracedCallback<const Data&, const Face&> m_outData;
224 TracedCallback<const Data&, const Face&> m_inData;
226 TracedCallback<const lp::Nack&, const Face&> m_outNack;
227 TracedCallback<const lp::Nack&, const Face&> m_inNack;
230 TracedCallback<const nfd::pit::Entry&> m_timedOutInterests;
static const uint16_t IP_STACK_PORT
TCP/UDP port for NDN stack.
shared_ptr< nfd::Forwarder > getForwarder()
Get smart pointer to nfd::Forwarder installed on the node.
void(* TimedOutInterestsCallback)(const nfd::pit::Entry &pitEntry)
void(* DataTraceCallback)(const Data &, const Face &)
Copyright (c) 2011-2015 Regents of the University of California.
represents a CS replacement policy
nfd::FaceId addFace(shared_ptr< Face > face)
Add face to NDN stack.
virtual void NotifyNewAggregate()
This function will notify other components connected to the node that a new stack member is now conne...
static TypeId GetTypeId()
Interface ID.
Implements the Strategy Choice Management of NFD Management Protocol.
std::function< std::unique_ptr< nfd::cs::Policy >)> PolicyCreationCallback
void setCsReplacementPolicy(const PolicyCreationCallback &policy)
Set the replacement policy of NFD's CS.
static Ptr< L3Protocol > getL3Protocol(Ptr< Object > node)
shared_ptr< Face > getFaceByNetDevice(Ptr< NetDevice > netDevice) const
Get face for NetDevice.
initializes and executes NFD-RIB service thread
virtual void DoDispose(void)
Do cleanup.
::nfd::rib::Service & getRibService()
nfd::ConfigSection & getConfig()
Get NFD config (boost::property_tree)
Copyright (c) 2011-2015 Regents of the University of California.
nfd::FaceTable & getFaceTable()
uint64_t FaceId
Identifies a face.
shared_ptr< nfd::FibManager > getFibManager()
Get smart pointer to nfd::FibManager, used by node's NFD.
void(* InterestTraceCallback)(const Interest &, const Face &)
boost::property_tree::ptree ConfigSection
a config file section
shared_ptr< Face > getFaceById(nfd::FaceId face) const
Get face by face ID.
Implementation network-layer of NDN stack.
static const uint16_t ETHERNET_FRAME_TYPE
Ethernet Frame Type of Ndn.
L3Protocol()
Default constructor.
void(* SatisfiedInterestsCallback)(const nfd::pit::Entry &pitEntry, const Face &inFace, const Data &data)
nfd::StrategyChoiceManager & getStrategyChoiceManager()
Get nfd::StrategyChoiceManager, used by node's NFD.
Copyright (c) 2011-2015 Regents of the University of California.
void injectInterest(const Interest &interest)
Inject interest through internal Face.