|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
26 #ifndef NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP
27 #define NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP
187 requestIdlePacket(const
EndpointId& endpointId);
192 sendLpPacket(
lp::Packet&& pkt, const
EndpointId& endpointId);
215 encodeLpFields(const
ndn::PacketBase& netPkt,
lp::Packet& lpPacket);
223 sendNetPacket(
lp::Packet&& pkt, const
EndpointId& endpointId,
bool isInterest);
228 assignSequence(
lp::Packet& pkt);
233 assignSequences(std::vector<
lp::Packet>& pkts);
240 checkCongestionLevel(
lp::Packet& pkt);
257 decodeNetPacket(const
Block& netPkt, const
lp::Packet& firstPkt, const
EndpointId& endpointId);
270 decodeInterest(const
Block& netPkt, const
lp::Packet& firstPkt, const
EndpointId& endpointId);
283 decodeData(const
Block& netPkt, const
lp::Packet& firstPkt, const
EndpointId& endpointId);
296 decodeNack(const
Block& netPkt, const
lp::Packet& firstPkt, const
EndpointId& endpointId);
307 time::steady_clock::TimePoint m_nextMarkTime;
309 size_t m_nMarkedSinceInMarkingState;
329 #endif // NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
const Options & getOptions() const
get Options used by GenericLinkService
provides for reliable sending and receiving of link-layer packets
void setOptions(const Options &options)
sets Options used by GenericLinkService
const Counters & getCounters() const OVERRIDE_WITH_TESTS_ELSE_FINAL
Options that control the behavior of LpFragmenter.
bool allowCongestionMarking
enables send queue congestion detection and marking
bool allowSelfLearning
enables self-learning forwarding support
bool allowFragmentation
enables fragmentation
SizeCounter< LpReassembler > nReassembling
count of network-layer packets currently being reassembled
counters provided by LinkService
PacketCounter nFragmentationErrors
count of failed fragmentations
GenericLinkService(const Options &options={})
size_t defaultCongestionThreshold
default congestion threshold in bytes
Options that control the behavior of LpReassembler.
PacketCounter nReassemblyTimeouts
count of dropped partial network-layer packets due to reassembly timeout
LpFragmenter::Options fragmenterOptions
options for fragmentation
Copyright (c) 2011-2015 Regents of the University of California.
#define OVERRIDE_WITH_TESTS_ELSE_FINAL
counters provided by GenericLinkService
provides a counter that observes the size of a table
bool allowLocalFields
enables encoding of IncomingFaceId, and decoding of NextHopFaceId and CachePolicy
PacketCounter nInNetInvalid
count of invalid reassembled network-layer packets dropped
Options that control the behavior of GenericLinkService.
LpReassembler::Options reassemblerOptions
options for reassembly
PacketCounter nAcknowledged
count of network-layer packets that did not require retransmission of a fragment
fragments network-layer packets into NDNLPv2 link-layer packets
PacketCounter nInLpInvalid
count of invalid LpPackets dropped before reassembly
reassembles fragmented network-layer packets
Represents an Interest packet.
Represents a Data packet.
GenericLinkServiceCounters Counters
counters provided by GenericLinkService
PacketCounter nRetxExhausted
count of network-layer packets dropped because a fragment reached the maximum number of retransmissio...
GenericLinkService is a LinkService that implements the NDNLPv2 protocol.
LpReliability::Options reliabilityOptions
options for reliability
time::nanoseconds baseCongestionMarkingInterval
starting value for congestion marking interval
represents a counter of number of packets
Represents a TLV element of NDN packet format.
PacketCounter nOutOverMtu
count of outgoing LpPackets dropped due to exceeding MTU limit
#define PROTECTED_WITH_TESTS_ELSE_PRIVATE
PacketCounter nRetransmitted
count of network-layer packets that had at least one fragment retransmitted, but were eventually rece...
PacketCounter nCongestionMarked
count of outgoing LpPackets that were marked with congestion marks
uint64_t EndpointId
Identifies a remote endpoint on the link.
bool allowReassembly
enables reassembly
std::function< std::shared_ptr< ndn::lp::GeoTag >)> enableGeoTags
Enable encoding and decoding of GeoTags.
uint64_t Sequence
represents a sequence number
Copyright (c) 2011-2015 Regents of the University of California.
#define FINAL_UNLESS_WITH_TESTS