The TFTP protocol was used before the FTP protocol. This protocol is an old protocol published by Karen R. Sollins in 1981.
It is mandatory to disable this service on most systems; Its main use is to boot diskless stations or routers over the network, because the simplicity of the protocol allows it to be implemented on a chip, and only in this case the service is provided.
The reason for calling junk file transfer is that there is no security in file transfer. There is no authentication process such as FTP protocol. The purpose of this protocol is only file transfer and file transfer. It is also used to transfer the files that some systems or devices need in the first boot.
TFTP transfers data on the network using the UDP protocol and uses port 69. And it does not have features such as file listing, file deletion, change file name and file control provided by other file transfer protocols.
While file transfer is taking place on the network, file checking is not performed. Because it uses the UDP protocol, it does not check whether files are transferred. In addition, the TCP protocol checks for files.
In the TCP protocol, files that are not transmitted by the handshake control are sent again. However, the TFTP protocol does not provide this process.
The advantages of using this protocol are;
It is a fast file transfer protocol.
Network device configuration files can be easily transferred with this protocol.
It can be easily used with 3rd party software on Windows and Linux operating systems.
Where it is not necessary to use FTP, it is recommended to use this protocol.
Uses UDP as the transport protocol (unlike FTP using TCP port 21).
Used to read or write files from the remote server.
It supports three different transmission modes: “netascii”, “octet” and “mail”.
The disadvantages of this protocol are;
It is an unsecured file transfer protocol.
It does not provide file security compared to FTP.
It performs file transfer and file transfer only.
There is no authentication or encryption mechanism.
It does not list the contents of directories.
How Does It Work?
Since TFTP uses UDP, it is considered a client-server that opens port 69 in UDP mode and connects, but there is no official definition of the session, client, and server. However, each file transmitted over TFTP creates an independent packet exchange and there is an informal client-server relationship between the machine that initiates communication and the machine that responds.
Machine A, which initiates communication, sends an RRQ or WRQ packet to machine B, which contains the file name and transfer mode.
B responds with an ACK packet to inform the machine A that it will have to send the packets remaining from the port on B.
The source machine sends numbered data packets to the target machine, the last of which contains 512 bytes of data. The target machine responds with numbered ACK packets for all data packets.
The final data packet must contain less than 512 bytes of data to indicate that it is the last data. If the size of the transferred file is exactly a multiple of 512 bytes, the source sends a final packet containing 0 bytes of data.
There are only five types of packages:
Request to Read (RRQ)
Write Request (WRQ)
File Transfer Server Setup
You can set up a TFTP server using SolarWinds on your Windows 10 computer. To do this, simply click on the image below to browse our related article.
By installing a file server on Windows 10, you can watch the video to make a simple file transfer and also subscribe to our YouTube channel!
In this article, we have defined the TFTP protocol and concluded that its purpose is only to transfer files. You can also decide whether to use this protocol, taking into account its advantages and disadvantages. Thanks for following us!