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

Helper class to control the up or down statuss of an NDN link connecting two specific nodes. More...

#include <ndn-link-control-helper.hpp>

Static Public Member Functions

static void FailLink (Ptr< Node > node1, Ptr< Node > node2)
 Fail NDN link between two nodes. More...
 
static void FailLinkByName (const std::string &node1, const std::string &node2)
 Fail NDN link between two nodes. More...
 
static void UpLink (Ptr< Node > node1, Ptr< Node > node2)
 Re-enable NDN link between two nodes. More...
 
static void UpLinkByName (const std::string &node1, const std::string &node2)
 Re-enable NDN link between two nodes. More...
 

Detailed Description

Helper class to control the up or down statuss of an NDN link connecting two specific nodes.

Definition at line 36 of file ndn-link-control-helper.hpp.

Member Function Documentation

◆ FailLink()

void ns3::ndn::LinkControlHelper::FailLink ( Ptr< Node >  node1,
Ptr< Node >  node2 
)
static

Fail NDN link between two nodes.

The helper will attempt to find NDN link between node1 and node2 and set NDN face to DOWN state

Note that only PointToPointChannels are supported by this helper method

Parameters
node1one node
node2another node

Definition at line 95 of file ndn-link-control-helper.cpp.

Referenced by FailLinkByName().

◆ FailLinkByName()

void ns3::ndn::LinkControlHelper::FailLinkByName ( const std::string &  node1,
const std::string &  node2 
)
static

Fail NDN link between two nodes.

The helper will attempt to find NDN link between node1 and node2 and set NDN face to DOWN state

Note that only PointToPointChannels are supported by this helper method

This variant uses node names registered by Names class

Parameters
node1one node's name
node2another node's name

Definition at line 101 of file ndn-link-control-helper.cpp.

References FailLink().

◆ UpLink()

void ns3::ndn::LinkControlHelper::UpLink ( Ptr< Node >  node1,
Ptr< Node >  node2 
)
static

Re-enable NDN link between two nodes.

The helper will attempt to find NDN link between node1 and node2 and set NDN face to UP state

Note that only PointToPointChannels are supported by this helper method

Parameters
node1one node
node2another node

Definition at line 107 of file ndn-link-control-helper.cpp.

Referenced by UpLinkByName().

◆ UpLinkByName()

void ns3::ndn::LinkControlHelper::UpLinkByName ( const std::string &  node1,
const std::string &  node2 
)
static

Re-enable NDN link between two nodes.

The helper will attempt to find NDN link between node1 and node2 and set NDN face to UP state

Note that only PointToPointChannels are supported by this helper method

This variant uses node names registered by Names class

Parameters
node1one node's name
node2another node's name

Definition at line 113 of file ndn-link-control-helper.cpp.

References UpLink().


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