Reject stray traffic and respect the limits
05Most errors stop a transfer. A packet from an unexpected transfer port is the exception: reject that packet without killing the valid transfer.
Base transfer: no options and 512-byte data blocks. Negotiated extensions in RFCs 2347–2349 change specific rules only when accepted.
Source for this drawing: RFC 1350 · Read RFC section 7 ↗
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.
Terms in this drawing
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
RFC 2347 adds client-requested option negotiation; RFCs 2348 and 2349 define block size and timeout/transfer-size options. This guide’s base examples request none of them.
Read the updated RFC section ↗A transfer ID is a routing check, not authentication.
- If a source TID does not match the established transfer, the packet should be discarded and ERROR code 5 returned to its source, without disturbing the valid transfer (§4).
- ERROR normally ends the transfer. It is neither acknowledged nor retransmitted; timeouts must also detect failure if the error itself is lost. Codes include 1 file not found, 2 access violation and 3 disk full/allocation exceeded.
- TFTP has no user authentication or built-in access-control mechanism. Server-process permissions and configured path policy must limit access; RFC 1123 §4.2.3.4 says configurable pathname access control SHOULD be included.
The last scene is a scope boundary, not an extra base opcode exchange. Official metadata lists updates 1782/1783/1784/1785/2347/2348/2349; 2347/2348/2349 obsolete 1782/1783/1784 respectively. Option negotiation, block size and timeout/size extensions are separate. RFC 2347 allows only client-requested options in OACK; unacknowledged options are ignored. The base drawings use no options and remain at 512. Port checks and restricted files do not provide encryption, peer authentication or a safe untrusted-network file service.
Read the RFC section ↗