NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::scope_prefix Namespace Reference

contain name prefixes that affect namespace-based scope control More...

Variables

const Name LOCALHOST ("ndn:/localhost")
 ndn:/localhost More...
 
const Name LOCALHOP ("ndn:/localhop")
 ndn:/localhop More...
 

Detailed Description

contain name prefixes that affect namespace-based scope control

See also
https://redmine.named-data.net/projects/nfd/wiki/ScopeControl

Variable Documentation

◆ LOCALHOST

const Name nfd::scope_prefix::LOCALHOST

ndn:/localhost

The localhost scope limits propagation to the applications on the originating host.

Interest and Data packets under prefix ndn:/localhost are restricted by these rules:

  • Interest can come from and go to local faces only.
  • Data can come from and go to local faces only.

Definition at line 50 of file algorithm.hpp.

Referenced by nfd::fw::wouldViolateScope().

◆ LOCALHOP

const Name nfd::scope_prefix::LOCALHOP

ndn:/localhop

The localhop scope limits propagation to no further than the next node.

Interest packets under prefix ndn:/localhop are restricted by these rules:

  • If an Interest is received from a local face, it can be forwarded to a non-local face.
  • If an Interest is received from a non-local face, it cannot be forwarded to a non-local face.
  • In either case the Interest can be forwarded to a local face.
  • PIT entry can be satisfied by Data from any source.

Data packets under prefix ndn:/localhop are unrestricted.

Definition at line 64 of file algorithm.hpp.

Referenced by nfd::fw::wouldViolateScope().