NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ns3::ndn::FibHelper Class Reference

Forwarding Information Base (FIB) helper. More...

#include <ndn-fib-helper.hpp>

Static Public Member Functions

static void AddRoute (const std::string &nodeName, const Name &prefix, uint32_t faceId, int32_t metric)
 Add forwarding entry to FIB. More...
 
static void AddRoute (Ptr< Node > node, const Name &prefix, uint32_t faceId, int32_t metric)
 Add forwarding entry to FIB. More...
 
static void AddRoute (Ptr< Node > node, const Name &prefix, shared_ptr< Face > face, int32_t metric)
 Add forwarding entry to FIB. More...
 
static void AddRoute (Ptr< Node > node, const Name &prefix, Ptr< Node > otherNode, int32_t metric)
 Add forwarding entry to FIB (work only with point-to-point links) More...
 
static void AddRoute (const std::string &nodeName, const Name &prefix, const std::string &otherNodeName, int32_t metric)
 Add forwarding entry to FIB (work only with point-to-point links) More...
 

Detailed Description

Forwarding Information Base (FIB) helper.

The FIB helper interacts with the FIB manager of NFD by sending special Interest commands to the manager in order to add/remove a next hop from FIB entries or add routes to the FIB manually (manual configuration of FIB).

Definition at line 45 of file ndn-fib-helper.hpp.

Member Function Documentation

void ns3::ndn::FibHelper::AddRoute ( const std::string &  nodeName,
const Name prefix,
uint32_t  faceId,
int32_t  metric 
)
static

Add forwarding entry to FIB.

Parameters
nodeNameNode name
prefixRouting prefix
faceIdFace index
metricRouting metric

Definition at line 121 of file ndn-fib-helper.cpp.

Referenced by AddRoute(), ns3::ndn::GlobalRoutingHelper::CalculateAllPossibleRoutes(), ns3::ndn::GlobalRoutingHelper::CalculateRoutes(), ns3::ndn::StackHelper::Install(), and ns3::ndn::Producer::StartApplication().

void ns3::ndn::FibHelper::AddRoute ( Ptr< Node >  node,
const Name prefix,
uint32_t  faceId,
int32_t  metric 
)
static

Add forwarding entry to FIB.

Parameters
nodeNameNode
prefixRouting prefix
faceIdFace index
metricRouting metric

Definition at line 108 of file ndn-fib-helper.cpp.

References AddRoute().

void ns3::ndn::FibHelper::AddRoute ( Ptr< Node >  node,
const Name prefix,
shared_ptr< Face face,
int32_t  metric 
)
static

Add forwarding entry to FIB.

Parameters
nodeNode
prefixRouting prefix
faceFace
metricRouting metric

Definition at line 89 of file ndn-fib-helper.cpp.

References ns3::ndn::L3Protocol::getForwarder().

void ns3::ndn::FibHelper::AddRoute ( Ptr< Node >  node,
const Name prefix,
Ptr< Node >  otherNode,
int32_t  metric 
)
static

Add forwarding entry to FIB (work only with point-to-point links)

Parameters
nodeNode
prefixRouting prefix
otherNodeThe other node, to which interests (will be used to infer face id
metricRouting metric

Definition at line 138 of file ndn-fib-helper.cpp.

References AddRoute().

void ns3::ndn::FibHelper::AddRoute ( const std::string &  nodeName,
const Name prefix,
const std::string &  otherNodeName,
int32_t  metric 
)
static

Add forwarding entry to FIB (work only with point-to-point links)

Parameters
nodeNameNode name (refer to ns3::Names)
prefixRouting prefix
otherNodeThe other node name, to which interests (will be used to infer face id (refer to ns3::Names)
metricRouting metric

Definition at line 169 of file ndn-fib-helper.cpp.

References AddRoute().


The documentation for this class was generated from the following files: