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

Namespaces

 field_location_tags
 indicates where a field may occur
 
 tlv
 

Classes

class  CachePolicy
 represents a CachePolicy header field More...
 
struct  DecodeHelper
 
struct  DecodeHelper< TlvType, EmptyValue >
 
struct  DecodeHelper< TlvType, std::pair< Buffer::const_iterator, Buffer::const_iterator > >
 
struct  DecodeHelper< TlvType, uint64_t >
 
struct  EmptyValue
 represents a zero-length TLV-VALUE More...
 
struct  EncodeHelper
 
struct  EncodeHelper< TAG, TlvType, EmptyValue >
 
struct  EncodeHelper< TAG, TlvType, std::pair< Buffer::const_iterator, Buffer::const_iterator > >
 
struct  EncodeHelper< TAG, TlvType, uint64_t >
 
struct  Field
 concept check for fields More...
 
class  FieldDecl
 
class  Nack
 represents a Network Nack More...
 
class  NackHeader
 represents a Network NACK header More...
 
class  Packet
 
class  PrefixAnnouncement
 represents a Prefix Announcement More...
 

Typedefs

typedef FieldDecl< field_location_tags::Header, Sequence, tlv::SequenceSequenceField
 
typedef FieldDecl< field_location_tags::Header, uint64_t, tlv::FragIndexFragIndexField
 
typedef FieldDecl< field_location_tags::Header, uint64_t, tlv::FragCountFragCountField
 
typedef FieldDecl< field_location_tags::Header, NackHeader, tlv::NackNackField
 
typedef FieldDecl< field_location_tags::Header, uint64_t, tlv::NextHopFaceIdNextHopFaceIdField
 
typedef FieldDecl< field_location_tags::Header, CachePolicy, tlv::CachePolicyCachePolicyField
 
typedef FieldDecl< field_location_tags::Header, uint64_t, tlv::IncomingFaceIdIncomingFaceIdField
 
typedef FieldDecl< field_location_tags::Header, uint64_t, tlv::CongestionMarkCongestionMarkField
 
typedef FieldDecl< field_location_tags::Header, Sequence, tlv::Ack, true > AckField
 
typedef FieldDecl< field_location_tags::Header, Sequence, tlv::TxSequenceTxSequenceField
 
typedef FieldDecl< field_location_tags::Header, EmptyValue, tlv::NonDiscoveryNonDiscoveryField
 
typedef FieldDecl< field_location_tags::Header, PrefixAnnouncement, tlv::PrefixAnnouncementPrefixAnnouncementField
 
typedef FieldDecl< field_location_tags::Header, uint64_t, tlv::HopCountTagHopCountTagField
 
typedef FieldDecl< field_location_tags::Fragment, std::pair< Buffer::const_iterator, Buffer::const_iterator >, tlv::FragmentFragmentField
 The value of the wire encoded field is the data between the provided iterators. More...
 
typedef boost::mpl::set< FragmentField, SequenceField, FragIndexField, FragCountField, NackField, NextHopFaceIdField, CachePolicyField, IncomingFaceIdField, CongestionMarkField, AckField, TxSequenceField, NonDiscoveryField, PrefixAnnouncementField, HopCountTagFieldFieldSet
 set of all field declarations More...
 
typedef uint64_t Sequence
 represents a sequence number More...
 
typedef SimpleTag< uint64_t, 10 > IncomingFaceIdTag
 
typedef SimpleTag< uint64_t, 11 > NextHopFaceIdTag
 
typedef SimpleTag< CachePolicy, 12 > CachePolicyTag
 
typedef SimpleTag< uint64_t, 13 > CongestionMarkTag
 
typedef SimpleTag< EmptyValue, 14 > NonDiscoveryTag
 
typedef SimpleTag< PrefixAnnouncement, 15 > PrefixAnnouncementTag
 
typedef SimpleTag< uint64_t, 0x60000000 > HopCountTag
 

Enumerations

enum  CachePolicyType { CachePolicyType::NONE = 0, CachePolicyType::NO_CACHE = 1 }
 indicates the cache policy applied to a Data packet More...
 
enum  NackReason { NackReason::NONE = 0, NackReason::CONGESTION = 50, NackReason::DUPLICATE = 100, NackReason::NO_ROUTE = 150 }
 indicates the reason type of a network NACK More...
 

Functions

std::ostream & operator<< (std::ostream &os, CachePolicyType policy)
 
 NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS (CachePolicy)
 
 NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS (CachePolicy)
 
std::ostream & operator<< (std::ostream &os, NackReason reason)
 
bool isLessSevere (lp::NackReason x, lp::NackReason y)
 compare NackReason for severity More...
 
 NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS (NackHeader)
 
 NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS (NackHeader)
 
 NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS (PrefixAnnouncement)
 
 NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS (PrefixAnnouncement)
 

Variables

 Field< SequenceField >
 
 Field< FragIndexField >
 
 Field< FragCountField >
 
 Field< NackField >
 
 Field< NextHopFaceIdField >
 
 Field< CachePolicyField >
 
 Field< IncomingFaceIdField >
 
 Field< CongestionMarkField >
 
 Field< AckField >
 
 Field< TxSequenceField >
 
 Field< NonDiscoveryField >
 
 Field< PrefixAnnouncementField >
 
 Field< HopCountTagField >
 
 Field< FragmentField >
 
static const name::Component SELF_LEARNING_PREFIX ("self-learning")
 

Typedef Documentation

◆ SequenceField

◆ FragIndexField

◆ FragCountField

◆ NackField

◆ NextHopFaceIdField

◆ CachePolicyField

◆ IncomingFaceIdField

◆ CongestionMarkField

◆ AckField

◆ TxSequenceField

◆ NonDiscoveryField

◆ PrefixAnnouncementField

◆ HopCountTagField

◆ FragmentField

typedef FieldDecl<field_location_tags::Fragment, std::pair<Buffer::const_iterator, Buffer::const_iterator>, tlv::Fragment> ndn::lp::FragmentField

The value of the wire encoded field is the data between the provided iterators.

During encoding, the data is copied from the Buffer into the wire buffer.

Definition at line 109 of file fields.hpp.

◆ FieldSet

◆ Sequence

typedef uint64_t ndn::lp::Sequence

represents a sequence number

Definition at line 35 of file sequence.hpp.

◆ IncomingFaceIdTag

typedef SimpleTag<uint64_t, 10> ndn::lp::IncomingFaceIdTag

Definition at line 38 of file tags.hpp.

◆ NextHopFaceIdTag

typedef SimpleTag<uint64_t, 11> ndn::lp::NextHopFaceIdTag

Definition at line 45 of file tags.hpp.

◆ CachePolicyTag

Definition at line 52 of file tags.hpp.

◆ CongestionMarkTag

typedef SimpleTag<uint64_t, 13> ndn::lp::CongestionMarkTag

Definition at line 59 of file tags.hpp.

◆ NonDiscoveryTag

Definition at line 66 of file tags.hpp.

◆ PrefixAnnouncementTag

Definition at line 73 of file tags.hpp.

◆ HopCountTag

typedef SimpleTag<uint64_t, 0x60000000> ndn::lp::HopCountTag

Definition at line 80 of file tags.hpp.

Enumeration Type Documentation

◆ CachePolicyType

indicates the cache policy applied to a Data packet

Enumerator
NONE 
NO_CACHE 

Definition at line 36 of file cache-policy.hpp.

◆ NackReason

enum ndn::lp::NackReason
strong

indicates the reason type of a network NACK

Enumerator
NONE 
CONGESTION 
DUPLICATE 
NO_ROUTE 

Definition at line 39 of file nack-header.hpp.

Function Documentation

◆ operator<<() [1/2]

std::ostream & ndn::lp::operator<< ( std::ostream &  os,
CachePolicyType  policy 
)

Definition at line 31 of file cache-policy.cpp.

References NO_CACHE.

◆ NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS() [1/3]

ndn::lp::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS ( CachePolicy  )

◆ NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS() [1/3]

ndn::lp::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS ( CachePolicy  )

◆ operator<<() [2/2]

std::ostream & ndn::lp::operator<< ( std::ostream &  os,
NackReason  reason 
)

Definition at line 30 of file nack-header.cpp.

References CONGESTION, DUPLICATE, and NO_ROUTE.

◆ isLessSevere()

bool ndn::lp::isLessSevere ( lp::NackReason  x,
lp::NackReason  y 
)

compare NackReason for severity

lp::NackReason::NONE is treated as most severe

Definition at line 50 of file nack-header.cpp.

References NONE.

Referenced by nfd::fw::ProcessNackTraitsBase::processNack(), and ndn::PendingInterest::recordNack().

◆ NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS() [2/3]

ndn::lp::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS ( NackHeader  )

◆ NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS() [2/3]

ndn::lp::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS ( NackHeader  )

◆ NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS() [3/3]

ndn::lp::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS ( PrefixAnnouncement  )

◆ NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS() [3/3]

ndn::lp::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS ( PrefixAnnouncement  )

Variable Documentation

◆ Field< SequenceField >

Definition at line 40 of file fields.hpp.

◆ Field< FragIndexField >

Definition at line 45 of file fields.hpp.

◆ Field< FragCountField >

Definition at line 50 of file fields.hpp.

◆ Field< NackField >

Definition at line 55 of file fields.hpp.

◆ Field< NextHopFaceIdField >

Definition at line 60 of file fields.hpp.

◆ Field< CachePolicyField >

Definition at line 65 of file fields.hpp.

◆ Field< IncomingFaceIdField >

Definition at line 70 of file fields.hpp.

◆ Field< CongestionMarkField >

Definition at line 75 of file fields.hpp.

◆ Field< AckField >

Definition at line 81 of file fields.hpp.

◆ Field< TxSequenceField >

Definition at line 86 of file fields.hpp.

◆ Field< NonDiscoveryField >

Definition at line 91 of file fields.hpp.

◆ Field< PrefixAnnouncementField >

Definition at line 96 of file fields.hpp.

◆ Field< HopCountTagField >

Definition at line 101 of file fields.hpp.

◆ Field< FragmentField >

Definition at line 110 of file fields.hpp.

◆ SELF_LEARNING_PREFIX

const name::Component ndn::lp::SELF_LEARNING_PREFIX("self-learning")
static