nfd::rib Namespace Reference

Classes

class  AutoPrefixPropagator
 provides automatic prefix propagation feature More...
 
class  ClientToNlsrReadvertisePolicy
 a policy to readvertise routes registered by end hosts into NLSR More...
 
class  FibUpdate
 represents a FIB update More...
 
class  FibUpdater
 computes FibUpdates based on updates to the RIB and sends them to NFD More...
 
class  NfdRibReadvertiseDestination
 a readvertise destination using NFD RIB management protocol More...
 
class  PropagatedEntry
 represents an entry for prefix propagation. More...
 
class  Readvertise
 readvertise a subset of routes to a destination according to a policy More...
 
struct  ReadvertiseAction
 a decision made by readvertise policy More...
 
class  ReadvertiseDestination
 a destination to readvertise into More...
 
class  ReadvertisedRoute
 state of a readvertised route More...
 
class  ReadvertisePolicy
 a policy to decide whether to readvertise a route, and what prefix to readvertise More...
 
class  Rib
 represents the Routing Information Base More...
 
class  RibEntry
 Represents a RIB entry, which contains one or more Routes with the same prefix. More...
 
class  RibManager
 Serve commands and datasets in NFD RIB management protocol. More...
 
struct  RibRouteRef
 references a route More...
 
class  RibUpdate
 RibUpdate. More...
 
class  RibUpdateBatch
 Represents a collection of RibUpdates to be applied to a single FaceId. More...
 
class  Route
 represents a route for a name prefix More...
 
class  Service
 initializes and executes NFD-RIB service thread More...
 

Typedefs

using ReadvertisedRouteContainer = std::set< ReadvertisedRoute >
 
typedef std::list< RibUpdateRibUpdateList
 

Enumerations

enum  PropagationStatus {
  PropagationStatus::NEW,
  PropagationStatus::PROPAGATING,
  PropagationStatus::PROPAGATED,
  PropagationStatus::PROPAGATE_FAIL
}
 

Functions

bool compareFaceId (const Route &route, const uint64_t faceId)
 
bool compareFaceIdAndOrigin (const Route &lhs, const Route &rhs)
 
static time::steady_clock::TimePoint computeExpiration (const ndn::PrefixAnnouncement &ann)
 
const name::Component IGNORE_COMMPONENT ("nrd")
 
const Name LINK_LOCAL_NFD_PREFIX ("/localhop/nfd")
 
static ConfigSection loadConfigSectionFromFile (const std::string &filename)
 
const Name LOCAL_REGISTRATION_PREFIX ("/localhost")
 
static shared_ptr< ndn::Transport > makeLocalNfdTransport (const ConfigSection &config)
 Look into the config file and construct appropriate transport to communicate with NFD If NFD-RIB instance was initialized with config file, INFO format is assumed. More...
 
bool operator!= (const Route &lhs, const Route &rhs)
 
bool operator< (const RibRouteRef &lhs, const RibRouteRef &rhs)
 
bool operator< (const ReadvertisedRoute &lhs, const ReadvertisedRoute &rhs)
 
void operator<< (std::ostream &out, PropagationStatus status)
 
std::ostream & operator<< (std::ostream &os, const RibUpdate::Action action)
 
std::ostream & operator<< (std::ostream &os, const RibUpdate &update)
 
std::ostream & operator<< (std::ostream &os, const Route &route)
 
std::ostream & operator<< (std::ostream &os, const FibUpdate &update)
 
std::ostream & operator<< (std::ostream &os, const RibEntry &entry)
 
std::ostream & operator<< (std::ostream &os, const Rib &rib)
 
bool operator== (const Route &lhs, const Route &rhs)
 
static time::milliseconds randomizeTimer (time::milliseconds baseTimer)
 
static bool sortRoutes (const Route &lhs, const Route &rhs)
 

Variables

static const time::seconds ACTIVE_FACE_FETCH_INTERVAL = time::seconds(300)
 
static const std::string CFG_LOCALHOP_SECURITY = "localhop_security"
 
static const std::string CFG_LOCALHOST_SECURITY = "localhost_security"
 
static const std::string CFG_PREFIX_PROPAGATE = "auto_prefix_propagate"
 
static const std::string CFG_READVERTISE_NLSR = "readvertise_nlsr"
 
static const std::string CFG_SECTION = "rib"
 
static const Name LOCALHOP_TOP_PREFIX = "/localhop/nfd"
 
static const Name LOCALHOST_TOP_PREFIX = "/localhost/nfd"
 
static const std::string MGMT_MODULE_NAME = "rib"
 
const uint64_t PA_ROUTE_COST = 2048
 cost of route created by prefix announcement More...
 
const time::seconds PREFIX_PROPAGATION_DEFAULT_BASE_RETRY_WAIT = time::seconds(50)
 
const uint64_t PREFIX_PROPAGATION_DEFAULT_COST = 15
 
const time::seconds PREFIX_PROPAGATION_DEFAULT_MAX_RETRY_WAIT = time::seconds(3600)
 
const time::seconds PREFIX_PROPAGATION_DEFAULT_REFRESH_INTERVAL = time::seconds(25)
 
const time::milliseconds PREFIX_PROPAGATION_DEFAULT_TIMEOUT = time::milliseconds(10000)
 
const time::seconds PREFIX_PROPAGATION_MAX_REFRESH_INTERVAL = time::seconds(600)
 
static const Name READVERTISE_NLSR_PREFIX = "/localhost/nlsr"
 

Typedef Documentation

Definition at line 57 of file readvertised-route.hpp.

typedef std::list<RibUpdate> nfd::rib::RibUpdateList

Definition at line 36 of file rib-update-batch.hpp.

Enumeration Type Documentation

Enumerator
NEW 

initial status

PROPAGATING 

is being propagated

PROPAGATED 

has been propagated successfully

PROPAGATE_FAIL 

has failed in propagation

Definition at line 34 of file propagated-entry.hpp.

Function Documentation

bool nfd::rib::compareFaceId ( const Route route,
const uint64_t  faceId 
)
inline

Definition at line 116 of file route.hpp.

bool nfd::rib::compareFaceIdAndOrigin ( const Route lhs,
const Route rhs 
)
inline

Definition at line 110 of file route.hpp.

static time::steady_clock::TimePoint nfd::rib::computeExpiration ( const ndn::PrefixAnnouncement &  ann)
static

Definition at line 35 of file route.cpp.

const name::Component nfd::rib::IGNORE_COMMPONENT ( "nrd"  )
const Name nfd::rib::LINK_LOCAL_NFD_PREFIX ( "/localhop/nfd"  )
static ConfigSection nfd::rib::loadConfigSectionFromFile ( const std::string &  filename)
static

Definition at line 56 of file service.cpp.

const Name nfd::rib::LOCAL_REGISTRATION_PREFIX ( "/localhost"  )
static shared_ptr<ndn::Transport> nfd::rib::makeLocalNfdTransport ( const ConfigSection config)
static

Look into the config file and construct appropriate transport to communicate with NFD If NFD-RIB instance was initialized with config file, INFO format is assumed.

Definition at line 69 of file service.cpp.

bool nfd::rib::operator!= ( const Route lhs,
const Route rhs 
)
inline

Definition at line 104 of file route.hpp.

bool nfd::rib::operator< ( const RibRouteRef lhs,
const RibRouteRef rhs 
)

Definition at line 36 of file rib.cpp.

bool nfd::rib::operator< ( const ReadvertisedRoute lhs,
const ReadvertisedRoute rhs 
)
inline

Definition at line 52 of file readvertised-route.hpp.

void nfd::rib::operator<< ( std::ostream &  out,
PropagationStatus  status 
)

Definition at line 32 of file propagated-entry.cpp.

std::ostream & nfd::rib::operator<< ( std::ostream &  os,
const RibUpdate::Action  action 
)

Definition at line 37 of file rib-update.cpp.

std::ostream & nfd::rib::operator<< ( std::ostream &  os,
const RibUpdate update 
)

Definition at line 55 of file rib-update.cpp.

std::ostream & nfd::rib::operator<< ( std::ostream &  os,
const Route route 
)

Definition at line 74 of file route.cpp.

std::ostream& nfd::rib::operator<< ( std::ostream &  os,
const FibUpdate update 
)
inline

Definition at line 74 of file fib-update.hpp.

std::ostream & nfd::rib::operator<< ( std::ostream &  os,
const RibEntry entry 
)

Definition at line 275 of file rib-entry.cpp.

std::ostream & nfd::rib::operator<< ( std::ostream &  os,
const Rib rib 
)

Definition at line 510 of file rib.cpp.

bool nfd::rib::operator== ( const Route lhs,
const Route rhs 
)

Definition at line 63 of file route.cpp.

static time::milliseconds nfd::rib::randomizeTimer ( time::milliseconds  baseTimer)
static

Definition at line 39 of file readvertise.cpp.

static bool nfd::rib::sortRoutes ( const Route lhs,
const Route rhs 
)
inlinestatic

Definition at line 43 of file rib.cpp.

Variable Documentation

const time::seconds nfd::rib::ACTIVE_FACE_FETCH_INTERVAL = time::seconds(300)
static

Definition at line 47 of file rib-manager.cpp.

const std::string nfd::rib::CFG_LOCALHOP_SECURITY = "localhop_security"
static

Definition at line 50 of file service.cpp.

const std::string nfd::rib::CFG_LOCALHOST_SECURITY = "localhost_security"
static

Definition at line 49 of file service.cpp.

const std::string nfd::rib::CFG_PREFIX_PROPAGATE = "auto_prefix_propagate"
static

Definition at line 51 of file service.cpp.

const std::string nfd::rib::CFG_READVERTISE_NLSR = "readvertise_nlsr"
static

Definition at line 52 of file service.cpp.

const std::string nfd::rib::CFG_SECTION = "rib"
static

Definition at line 48 of file service.cpp.

const Name nfd::rib::LOCALHOP_TOP_PREFIX = "/localhop/nfd"
static

Definition at line 46 of file rib-manager.cpp.

const Name nfd::rib::LOCALHOST_TOP_PREFIX = "/localhost/nfd"
static

Definition at line 45 of file rib-manager.cpp.

const std::string nfd::rib::MGMT_MODULE_NAME = "rib"
static

Definition at line 44 of file rib-manager.cpp.

const uint64_t nfd::rib::PA_ROUTE_COST = 2048

cost of route created by prefix announcement

Definition at line 32 of file route.cpp.

const time::seconds nfd::rib::PREFIX_PROPAGATION_DEFAULT_BASE_RETRY_WAIT = time::seconds(50)

Definition at line 48 of file auto-prefix-propagator.cpp.

const uint64_t nfd::rib::PREFIX_PROPAGATION_DEFAULT_COST = 15

Definition at line 50 of file auto-prefix-propagator.cpp.

const time::seconds nfd::rib::PREFIX_PROPAGATION_DEFAULT_MAX_RETRY_WAIT = time::seconds(3600)

Definition at line 49 of file auto-prefix-propagator.cpp.

const time::seconds nfd::rib::PREFIX_PROPAGATION_DEFAULT_REFRESH_INTERVAL = time::seconds(25)

Definition at line 46 of file auto-prefix-propagator.cpp.

const time::milliseconds nfd::rib::PREFIX_PROPAGATION_DEFAULT_TIMEOUT = time::milliseconds(10000)

Definition at line 51 of file auto-prefix-propagator.cpp.

const time::seconds nfd::rib::PREFIX_PROPAGATION_MAX_REFRESH_INTERVAL = time::seconds(600)

Definition at line 47 of file auto-prefix-propagator.cpp.

const Name nfd::rib::READVERTISE_NLSR_PREFIX = "/localhost/nlsr"
static

Definition at line 53 of file service.cpp.