Open In App

What is the full form of FTP?

Answer: FTP stands for File Transfer Protocol.

It is an application layer protocol that moves the required files between local file systems and remote file systems. Like HTTP, it runs on top of TCP. To transfer a file, FTP uses two TCP connections in parallel: 

History of FTP:  On 16 April 1971, the original documentation for the FTP was written by Abhay Bhushan and published as RFC 114. Until 1980, FTP ran on NCP, which was the predecessor of TCP/IP. A TCP/IP version replaced the protocol later, in June 1980 RFC 765 and in October 1985 RFC 959, which is the current specification. 



Types of FTP connection :

Active FTP Connection :



The active one is the older one as compared to the passive one. Active FTP was introduced in the early days of computing when mainframes were widespread and information security attacks were not as common.

Let’s see an explanation of how an active mode connection is established in two steps

  1. A user connects from a random port of a file transfer client to FTP port 21 of the server. He sends the command PORT, which specifies which port on the client side the server should connect to. This port will be used later for the data channel and is different from the port used for the command channel in this step.
  2. The server establishes a connection from port 20 to the client port intended for the data channel. Once the data connection is established, file transfers will take place through these client and server ports.

Active FTP

Passive FTP Connection : 

In passive, the client continues to initiate a control connection to the server. However, instead of the PORT command, it sends the PASV command, which is essentially a request for a server port to connect to for data transfer. When the FTP server responds, it specifies the number of the data port it has opened for the subsequent data transfer.

  1. The client connects to port 21 of the server from a random port and issues the PASV command. The server responds, indicating which (random) port it has opened for data transmission
  2. The client connects from another random port to the random port mentioned in the server’s response. Once the connection is established, the data transmission takes place through these ports of the client and server.

Passive FTP

Features of FTP :  

Advantages of FTP :  

Disadvantages of FTP : 

Article Tags :