Meaning
An application layer communication protocol extension enables the fragmentation of large resource representations into smaller payloads for constrained networks. Utilizing coap blockwise transfer allows constrained application protocol clients and servers to exchange large resource representations without relying on IP fragmentation. This mechanism operates by splitting the payload into blocks of defined sizes ranging from sixteen to one thousand and twenty-four bytes.
Every chunk is individually requested and acknowledged to ensure transmission reliability over lossy radio channels.
Transfer Mechanism
Negotiation of block sizes occurs dynamically during the initial message exchange through specific option headers. The use of coap blockwise transfer relies on the Block1 option for request payloads and the Block2 option for response payloads. These option fields carry the block number, a more bit indicating remaining fragments, and the size exponent.
A receiver processes each incoming chunk and updates its internal buffer before requesting the subsequent sequence.
Payload Fragmentation
Network constraints often demand that buffer sizes on embedded nodes remain minimal to prevent memory exhaustion. When an iot module transmits a firmware update, the resource is divided into segments that fit within the single packet budget of sub-gigahertz radio links. This design prevents the assembly of oversized datagrams at the lower layers of the network stack.
Error Recovery
Packet loss triggers selective retransmission of the missing sequence number. If a block fails to arrive, the client requests that specific offset again. This limits the retry overhead.