Visual RFC.
ALL RFCs / RFC 2348
Read the RFC ↗
RFC 2348 / TFTP BLOCK NEGOTIATION

Ask for a data block size in the request

01

The Trivial File Transfer Protocol (TFTP) normally sends up to 512 data octets at a time. A client can append blksize to a Read Request (RRQ) or Write Request (WRQ) before data transfer.

RFC 2348 · Blocksize option · p.1EXAMPLE
4 / 4
Ask for a data block size in the requestTFTP Blocksize Option. Value 1428 permits 1428 data octets, plus a separate four-octet DATA header. It does not mean a whole packet of 1428 bytes. Valid requested values include both endpoints 8 and 65464.Request a data limit before the file00 01RRQ opcodefoobar | 00filename + zerooctet | 00binary mode + zeroblksize | 00Option name: case-insensitive ASCII1428 → 31 34 32 38 00ASCII decimal value + terminating zeroHeader:4DATA:1428 octetsValid payload range:8..65464 · not whole packet lengthRFC2348 · chapter 1 · state 4 · selected example
04
Count payload separately from its header

Value 1428 permits 1428 data octets, plus a separate four-octet DATA header. It does not mean a whole packet of 1428 bytes. Valid requested values include both endpoints 8 and 65464.

Source for this drawing: RFC 2348 · Read RFC source: Blocksize option · p.1 ↗

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

KEY POINT

The requested block size is ASCII decimal from 8 through 65464 inclusive. It counts DATA octets only, excluding the four-octet TFTP DATA header.

  • The requested block size is ASCII decimal from 8 through 65464 inclusive. It counts DATA octets only, excluding the four-octet TFTP DATA header.
  • The two-octet opcode is binary: 1 for RRQ, 2 for WRQ. Filename, mode, option name and value are zero-terminated strings; blksize is case-insensitive.
  • The example uses octet (binary) mode and the published filename foobar with value 1428. This is a chosen value, not a universal Ethernet maximum. RFC 2347 bounds a request to 512 octets and permits each option only once.
DETAILS

A selected octet-mode example, not a complete TFTP implementation. One octet is an eight-bit byte. Follow the actual RFC source and its companion option-negotiation rules.

Read the RFC section ↗

All chapters in RFC 2348

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗