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 noexcept |
Returns the Face to which this LinkService is attached. More... | |
const Options & | getOptions () const |
Get the options used by GenericLinkService. More... | |
const Transport * | getTransport () const noexcept |
Returns the Transport to which this LinkService is attached. More... | |
Transport * | getTransport () noexcept |
Returns the Transport to which this LinkService is attached. More... | |
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) noexcept |
Set Face and Transport for this LinkService. More... | |
void | setOptions (const Options &options) |
Sets the 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... | |
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 41 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 72 of file generic-link-service.cpp.
|
inlinefinalvirtual |
Reimplemented from nfd::face::LinkService.
Definition at line 190 of file generic-link-service.hpp.
|
finalvirtual |
Reimplemented from nfd::face::LinkService.
Definition at line 65 of file generic-link-service.cpp.
|
inlinenoexceptinherited |
Returns the Face to which this LinkService is attached.
Definition at line 98 of file link-service.hpp.
|
inline |
Get the options used by GenericLinkService.
Definition at line 179 of file generic-link-service.hpp.
|
inlinenoexceptinherited |
Returns the Transport to which this LinkService is attached.
Definition at line 107 of file link-service.hpp.
|
inlinenoexceptinherited |
Returns the Transport to which this LinkService is attached.
Definition at line 116 of file link-service.hpp.
|
protectedinherited |
Definition at line 109 of file link-service.cpp.
|
protectedinherited |
Delivers received Data to forwarding.
Definition at line 89 of file link-service.cpp.
|
protectedinherited |
Delivers received Interest to forwarding.
Definition at line 79 of file link-service.cpp.
|
protectedinherited |
Delivers received Nack to forwarding.
Definition at line 99 of file link-service.cpp.
|
inlineinherited |
Performs LinkService specific operations to receive a lower-layer packet.
Definition at line 229 of file link-service.hpp.
|
inherited |
Send Data.
Definition at line 57 of file link-service.cpp.
|
inherited |
Send Interest.
Definition at line 46 of file link-service.cpp.
|
inherited |
Send Nack.
Definition at line 68 of file link-service.cpp.
|
inlineprotectedinherited |
Send a lower-layer packet via Transport.
Definition at line 235 of file link-service.hpp.
|
noexceptinherited |
Set Face and Transport for this LinkService.
Definition at line 36 of file link-service.cpp.
void nfd::face::GenericLinkService::setOptions | ( | const Options & | options | ) |
Sets the options used by GenericLinkService.
Definition at line 56 of file generic-link-service.cpp.
|
inherited |
Signals on Data received.
Definition at line 155 of file link-service.hpp.
|
inherited |
Signals on Interest received.
Definition at line 151 of file link-service.hpp.
|
inherited |
Signals on Nack received.
Definition at line 159 of file link-service.hpp.
|
inherited |
Count of network-layer packets that did not require retransmission of a fragment.
Definition at line 71 of file generic-link-service.hpp.
|
inherited |
Count of outgoing LpPackets that were marked with congestion marks.
Definition at line 89 of file generic-link-service.hpp.
|
inherited |
Count of LpPackets dropped due to duplicate Sequence numbers.
Definition at line 85 of file generic-link-service.hpp.
|
inherited |
Count of failed fragmentations.
Definition at line 45 of file generic-link-service.hpp.
|
inherited |
Count of incoming Data packets.
Definition at line 56 of file link-service.hpp.
|
inherited |
Count of incoming Interests.
Definition at line 44 of file link-service.hpp.
|
inherited |
Count of invalid LpPackets dropped before reassembly.
Definition at line 55 of file generic-link-service.hpp.
|
inherited |
Count of incoming Nacks.
Definition at line 64 of file link-service.hpp.
|
inherited |
Count of invalid reassembled network-layer packets dropped.
Definition at line 67 of file generic-link-service.hpp.
|
inherited |
Count of Interests dropped by reliability system for exceeding allowed number of retx.
Definition at line 52 of file link-service.hpp.
|
inherited |
Count of outgoing Data packets.
Definition at line 60 of file link-service.hpp.
|
inherited |
Count of outgoing Interests.
Definition at line 48 of file link-service.hpp.
|
inherited |
Count of outgoing Nacks.
Definition at line 68 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 51 of file generic-link-service.hpp.
|
inherited |
Count of network-layer packets currently being reassembled.
Definition at line 59 of file generic-link-service.hpp.
|
inherited |
Count of dropped partial network-layer packets due to reassembly timeout.
Definition at line 63 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 76 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 81 of file generic-link-service.hpp.
|
inherited |
Signals on Interest dropped by reliability system for exceeding allowed number of retx.
Definition at line 163 of file link-service.hpp.