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:
fragment_packet: split a packet into MTU-sized LpPacket fragmentsReassemblyBuffer: per-peer stateful reassembly of incoming fragments
Structs§
- Reassembly
Buffer - 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.