Escolar Documentos
Profissional Documentos
Cultura Documentos
com
TFTP
Peter R. Egli
INDIGOO.COM
1/10
Rev. 2.50
indigoo.com
Contents
1.
2.
3.
4.
Why TFTP?
Comparison TFTP and FTP
The TFTP protocol
TFTP and FTP throughput comparison
2/10
Rev. 2.50
indigoo.com
In the old days, TFTP was typically used for downloading boot code to diskless workstations.
TFTP was simple enough to fit into EEPROMs of diskless workstations
(only a few KBytes of code).
LAN
TFTP Client
(Diskless Workstation)
TFTP Server
with boot code
Today, TFTP is most often used for downloading new code to Internet appliances
(Internet Access Devices, routers, switches, VOIP gateways etc.).
3/10
Rev. 2.50
indigoo.com
FTP and TFTP both are protocols for transferring files between a client and a server.
However, TFTP and FTP are 2 totally different protocols and do not have anything in common.
Value
FTP
TFTP
Authentication
Connection
Protocol
algorithm
Footprint
4/10
Rev. 2.50
indigoo.com
5/10
Rev. 2.50
indigoo.com
TFTP client
RRQ (Read Request)
DATA block 1 (512 Bytes)
ACK block 1
ACK block 2
ACK block n
The transfer is completed by the last acknowledge.
6/10
Rev. 2.50
indigoo.com
TFTP client
WRQ (Write Request)
ACK block 0
DATA block 1 (512 Bytes)
ACK block 1
ACK block 2
ACK block n
The transfer is completed by the last acknowledge.
Peter R. Egli 2015
7/10
Rev. 2.50
indigoo.com
RRQ (read)
WRQ (write)
Opcode
1=RRQ, 2=WRQ
2 bytes
DATA
Data packet
Opcode
3=DATA
2 bytes
ACK
packet
Opcode
4=ACK
2 bytes
ERROR
packet
Opcode
5=ERROR
2 bytes
Block number
n bytes
1 byte
Filename
0x00
n bytes
Data (0-512 bytes)
mode
netascii (=text),
octet (=binary)
1 byte
0x00
2 bytes
Block number
2 bytes
Error number
n bytes
Error message
1 byte
0x00
8/10
Rev. 2.50
indigoo.com
S:
C:
S:
C.
2
3
4
5
S:
C:
S:
C:
S:
2
3
4
5
6
9/10
Rev. 2.50
indigoo.com
Ws = Window size
10/10
Rev. 2.50