NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ns3::ndn::FibHelper Class Reference

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

#include <ndn-fib-helper.hpp>

Static Public Member Functions

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 (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, 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...
 
static void RemoveRoute (Ptr< Node > node, const Name &prefix, shared_ptr< Face > face)
 remove forwarding entry in FIB More...
 
static void RemoveRoute (Ptr< Node > node, const Name &prefix, uint32_t faceId)
 remove forwarding entry in FIB More...
 
static void RemoveRoute (const std::string &nodeName, const Name &prefix, uint32_t faceId)
 remove forwarding entry in FIB More...
 
static void RemoveRoute (Ptr< Node > node, const Name &prefix, Ptr< Node > otherNode)
 remove forwarding entry in FIB (work only with point-to-point links) More...
 
static void RemoveRoute (const std::string &nodeName, const Name &prefix, const std::string &otherNodeName)
 remove forwarding entry in 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 ( Ptr< Node >  node,
const Name prefix,
shared_ptr< Face face,
int32_t  metric 
)
static
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 120 of file ndn-fib-helper.cpp.

References AddRoute().

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 107 of file ndn-fib-helper.cpp.

References AddRoute().

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 137 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 168 of file ndn-fib-helper.cpp.

References AddRoute().

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

remove forwarding entry in FIB

Parameters
nodeNode
prefixRouting prefix
faceFace

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

References ndn::tlv::nfd::ControlParameters, and ns3::ndn::L3Protocol::getForwarder().

Referenced by RemoveRoute().

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

remove forwarding entry in FIB

Parameters
nodeNode
prefixRouting prefix
faceIdFace index

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

References RemoveRoute().

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

remove forwarding entry in FIB

Parameters
nodeNameNode name
prefixRouting prefix
faceIdFace index

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

References RemoveRoute().

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

remove forwarding entry in 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

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

References RemoveRoute().

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

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

Parameters
nodeNameNode name
prefixRouting prefix
otherNodeThe other node name, to which interests (will be used to infer face id

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

References RemoveRoute().


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