Module fragment

Module fragment 

Source
Expand description

NDNLPv2 fragmentation and reassembly.

NDN Data packets can be up to ~8800 bytes, but a UDP datagram over Ethernet should stay within the path MTU (typically ~1400 bytes). NDNLPv2 handles this by splitting a packet into multiple LpPacket fragments, each carrying Sequence, FragIndex, and FragCount fields.

This module provides:

Structs§

ReassemblyBuffer
Per-peer reassembly buffer for NDNLPv2 fragments.

Constants§

DEFAULT_UDP_MTU
Default MTU for UDP faces (conservative for Ethernet + IP + UDP headers).
FRAG_OVERHEAD
Overhead per fragment: LpPacket TLV envelope + Sequence(8) + FragIndex(max 4)

Functions§

fragment_packet
Fragment a network-layer packet into NDNLPv2 LpPacket fragments.