26 #ifndef NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP 27 #define NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP 140 setOptions(
const Options& options);
143 getCounters()
const override;
155 sendLpPacket(lp::Packet&& pkt);
160 doSendInterest(
const Interest& interest)
override;
165 doSendData(
const Data& data)
override;
170 doSendNack(
const ndn::lp::Nack& nack)
override;
178 encodeLpFields(
const ndn::TagHost& netPkt, lp::Packet& lpPacket);
184 sendNetPacket(lp::Packet&& pkt);
189 assignSequence(lp::Packet& pkt);
194 assignSequences(std::vector<lp::Packet>& pkts);
210 decodeNetPacket(
const Block& netPkt,
const lp::Packet& firstPkt);
222 decodeInterest(
const Block& netPkt,
const lp::Packet& firstPkt);
234 decodeData(
const Block& netPkt,
const lp::Packet& firstPkt);
246 decodeNack(
const Block& netPkt,
const lp::Packet& firstPkt);
253 lp::Sequence m_lastSeqNo;
273 #endif // NFD_DAEMON_FACE_GENERIC_LINK_SERVICE_HPP counters provided by GenericLinkService
provides a counter that observes the size of a table
SizeCounter< LpReassembler > nReassembling
count of network-layer packets currently being reassembled
PacketCounter nInLpInvalid
count of invalid LpPackets dropped before reassembly
const Options & getOptions() const
get Options used by GenericLinkService
PacketCounter nFragmentationErrors
count of failed fragmentations
bool allowFragmentation
enables fragmentation
PacketCounter nAcknowledged
count of network-layer packets that did not require retransmission of a fragment
GenericLinkService is a LinkService that implements the NDNLPv2 protocol.
PacketCounter nInNetInvalid
count of invalid reassembled network-layer packets dropped
stores a packet along with the remote endpoint
LpReassembler::Options reassemblerOptions
options for reassembly
represents a counter of number of packets
#define PROTECTED_WITH_TESTS_ELSE_PRIVATE
Options that control the behavior of LpReassembler.
provides for reliable sending and receiving of link-layer packets
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
fragments network-layer packets into NDNLPv2 link-layer packets
counters provided by LinkService
reassembles fragmented network-layer packets
Options that control the behavior of LpFragmenter.
PacketCounter nOutOverMtu
count of outgoing LpPackets dropped due to exceeding MTU limit
LpReliability::Options reliabilityOptions
options for reliability
Options that control the behavior of GenericLinkService.
const Counters & getCounters() const override
bool allowLocalFields
enables encoding of IncomingFaceId, and decoding of NextHopFaceId and CachePolicy ...
PacketCounter nRetxExhausted
count of network-layer packets dropped because a fragment reached the maximum number of retransmissio...
bool allowReassembly
enables reassembly
PacketCounter nRetransmitted
count of network-layer packets that had at least one fragment retransmitted, but were eventually rece...
PacketCounter nReassemblyTimeouts
count of dropped partial network-layer packets due to reassembly timeout
LpFragmenter::Options fragmenterOptions
options for fragmentation