Protocol documentation: TFTP

Yes, I know I'm layering 4 protocols into one picture. That's not the point when you're implementing just TFTP.


OffsetLengthDescription
06Ethernet destination
66Ethernet source
122Ethernet protocol (0x08, 0x00)
141IP version, Internet Header Length (0x45)
151IP Type Of Service
162Total IP packet length (in bytes)
182IP ID
2023 bits flags, Fragment Offset (bytes)
221IP Time To Live (hops)
231IP protocol (17==UDP)
242IP header checksum
264IP sender
304IP destination
342UDP source port
362UDP destination port
382UDP segment length
402UDP checksum
422TFTP opcode
TFTP RRQ/WRQ packet
44..TFTP Filename
..1'0'
....TFTP Mode
..1'0'
TFTP DATA/ACK packet
442TFTP block #
46..TFTP data (leave out for ACK)
TFTP ERROR packet
442TFTP ErrorCode
46..TFTP ErrMsg
....'0'

One level up
peter(at)dataloss.nl