GenericLinkService is a LinkService that implements the NDNLPv2 protocol. More...
#include <daemon/face/generic-link-service.hpp>
Classes | |
class | Options |
Options that control the behavior of GenericLinkService. More... | |
Public Types | |
using | Counters = GenericLinkServiceCounters |
counters provided by GenericLinkService More... | |
Public Member Functions | |
GenericLinkService (const Options &options={}) | |
bool | canOverrideMtuTo (ssize_t mtu) const |
Whether MTU can be overridden to the specified value. More... | |
const Counters & | getCounters () const final |
ssize_t | getEffectiveMtu () const final |
const Face * | getFace () const |
const Options & | getOptions () const |
get Options used by GenericLinkService More... | |
const Transport * | getTransport () const |
Transport * | getTransport () |
void | receivePacket (const Block &packet, const EndpointId &endpoint) |
performs LinkService specific operations to receive a lower-layer packet More... | |
void | sendData (const Data &data) |
Send Data. More... | |
void | sendInterest (const Interest &interest) |
Send Interest. More... | |
void | sendNack (const ndn::lp::Nack &nack) |
Send Nack. More... | |
void | setFaceAndTransport (Face &face, Transport &transport) |
set Face and Transport for LinkService More... | |
void | setOptions (const Options &options) |
sets Options used by GenericLinkService More... | |
Public Attributes | |
signal::Signal< LinkService, Data, EndpointId > | afterReceiveData |
signals on Data received More... | |
signal::Signal< LinkService, Interest, EndpointId > | afterReceiveInterest |
signals on Interest received More... | |
signal::Signal< LinkService, lp::Nack, EndpointId > | afterReceiveNack |
signals on Nack received More... | |
signal::Signal< LinkService, Interest > | onDroppedInterest |
signals on Interest dropped by reliability system for exceeding allowed number of retx More... | |
Protected Member Functions | |
void | notifyDroppedInterest (const Interest &packet) |
void | receiveData (const Data &data, const EndpointId &endpoint) |
delivers received Data to forwarding More... | |
void | receiveInterest (const Interest &interest, const EndpointId &endpoint) |
delivers received Interest to forwarding More... | |
void | receiveNack (const lp::Nack &nack, const EndpointId &endpoint) |
delivers received Nack to forwarding More... | |
void | sendPacket (const Block &packet) |
send a lower-layer packet via Transport More... | |
Protected Attributes | |
PacketCounter | nAcknowledged |
count of network-layer packets that did not require retransmission of a fragment More... | |
PacketCounter | nCongestionMarked |
count of outgoing LpPackets that were marked with congestion marks More... | |
PacketCounter | nDuplicateSequence |
count of LpPackets dropped due to duplicate Sequence numbers More... | |
PacketCounter | nFragmentationErrors |
count of failed fragmentations More... | |
PacketCounter | nInData |
count of incoming Data packets More... | |
PacketCounter | nInInterests |
count of incoming Interests More... | |
PacketCounter | nInLpInvalid |
count of invalid LpPackets dropped before reassembly More... | |
PacketCounter | nInNacks |
count of incoming Nacks More... | |
PacketCounter | nInNetInvalid |
count of invalid reassembled network-layer packets dropped More... | |
PacketCounter | nInterestsExceededRetx |
count of Interests dropped by reliability system for exceeding allowed number of retx More... | |
PacketCounter | nOutData |
count of outgoing Data packets More... | |
PacketCounter | nOutInterests |
count of outgoing Interests More... | |
PacketCounter | nOutNacks |
count of outgoing Nacks More... | |
PacketCounter | nOutOverMtu |
count of outgoing LpPackets dropped due to exceeding MTU limit More... | |
SizeCounter< LpReassembler > | nReassembling |
count of network-layer packets currently being reassembled More... | |
PacketCounter | nReassemblyTimeouts |
count of dropped partial network-layer packets due to reassembly timeout More... | |
PacketCounter | nRetransmitted |
count of network-layer packets that had at least one fragment retransmitted, but were eventually received in full More... | |
PacketCounter | nRetxExhausted |
count of network-layer packets dropped because a fragment reached the maximum number of retransmissions More... | |
Friends | |
class | LpReliability |
GenericLinkService is a LinkService that implements the NDNLPv2 protocol.
Definition at line 96 of file generic-link-service.hpp.
counters provided by GenericLinkService
Definition at line 171 of file generic-link-service.hpp.
|
explicit |
Definition at line 42 of file generic-link-service.cpp.
bool nfd::face::GenericLinkService::canOverrideMtuTo | ( | ssize_t | mtu | ) | const |
Whether MTU can be overridden to the specified value.
If the transport MTU is unlimited, then this will always return false.
Definition at line 73 of file generic-link-service.cpp.
|
inlinefinalvirtual |
Reimplemented from nfd::face::LinkService.
Definition at line 323 of file generic-link-service.hpp.
|
finalvirtual |
Reimplemented from nfd::face::LinkService.
Definition at line 66 of file generic-link-service.cpp.
|
inlineinherited |
Definition at line 208 of file link-service.hpp.
|
inline |
get Options used by GenericLinkService
Definition at line 317 of file generic-link-service.hpp.
|
inlineinherited |
Definition at line 214 of file link-service.hpp.
|
inlineinherited |
Definition at line 220 of file link-service.hpp.
|
protectedinherited |
Definition at line 118 of file link-service.cpp.
|
protectedinherited |
delivers received Data to forwarding
Definition at line 98 of file link-service.cpp.
|
protectedinherited |
delivers received Interest to forwarding
Definition at line 88 of file link-service.cpp.
|
protectedinherited |
delivers received Nack to forwarding
Definition at line 108 of file link-service.cpp.
|
inlineinherited |
performs LinkService specific operations to receive a lower-layer packet
Definition at line 238 of file link-service.hpp.
|
inherited |
|
inherited |
Send Interest.
Definition at line 55 of file link-service.cpp.
|
inherited |
|
inlineprotectedinherited |
send a lower-layer packet via Transport
Definition at line 244 of file link-service.hpp.
set Face and Transport for LinkService
Definition at line 45 of file link-service.cpp.
void nfd::face::GenericLinkService::setOptions | ( | const Options & | options | ) |
sets Options used by GenericLinkService
Definition at line 57 of file generic-link-service.cpp.
|
friend |
Definition at line 313 of file generic-link-service.hpp.
|
inherited |
signals on Data received
Definition at line 140 of file link-service.hpp.
|
inherited |
signals on Interest received
Definition at line 136 of file link-service.hpp.
|
inherited |
signals on Nack received
Definition at line 144 of file link-service.hpp.
|
inherited |
count of network-layer packets that did not require retransmission of a fragment
Definition at line 72 of file generic-link-service.hpp.
|
inherited |
count of outgoing LpPackets that were marked with congestion marks
Definition at line 90 of file generic-link-service.hpp.
|
inherited |
count of LpPackets dropped due to duplicate Sequence numbers
Definition at line 86 of file generic-link-service.hpp.
|
inherited |
count of failed fragmentations
Definition at line 46 of file generic-link-service.hpp.
|
inherited |
count of incoming Data packets
Definition at line 57 of file link-service.hpp.
|
inherited |
count of incoming Interests
Definition at line 45 of file link-service.hpp.
|
inherited |
count of invalid LpPackets dropped before reassembly
Definition at line 56 of file generic-link-service.hpp.
|
inherited |
count of incoming Nacks
Definition at line 65 of file link-service.hpp.
|
inherited |
count of invalid reassembled network-layer packets dropped
Definition at line 68 of file generic-link-service.hpp.
|
inherited |
count of Interests dropped by reliability system for exceeding allowed number of retx
Definition at line 53 of file link-service.hpp.
|
inherited |
count of outgoing Data packets
Definition at line 61 of file link-service.hpp.
|
inherited |
count of outgoing Interests
Definition at line 49 of file link-service.hpp.
|
inherited |
count of outgoing Nacks
Definition at line 69 of file link-service.hpp.
|
inherited |
count of outgoing LpPackets dropped due to exceeding MTU limit
If this counter is non-zero, the operator should enable fragmentation.
Definition at line 52 of file generic-link-service.hpp.
|
inherited |
count of network-layer packets currently being reassembled
Definition at line 60 of file generic-link-service.hpp.
|
inherited |
count of dropped partial network-layer packets due to reassembly timeout
Definition at line 64 of file generic-link-service.hpp.
|
inherited |
count of network-layer packets that had at least one fragment retransmitted, but were eventually received in full
Definition at line 77 of file generic-link-service.hpp.
|
inherited |
count of network-layer packets dropped because a fragment reached the maximum number of retransmissions
Definition at line 82 of file generic-link-service.hpp.
|
inherited |
signals on Interest dropped by reliability system for exceeding allowed number of retx
Definition at line 148 of file link-service.hpp.