Site icon i2tutorials

CDCS – File Transfer Protocol

File Transfer Protocol

 

File Transfer Protocol or FTP is an Application layer protocol that helps to move files from local to remote file systems using control connection and data connection.

 

What is a control connection?

It helps send control information such as user identification, password, commands to change remote directory, etc. It is initiated on port number 21.

 

What is a data connection?

Data connection is used to send the actual file. It is initiated on port number 20

 

What is an FTP session?

As FTP session is started, the client establishes a control TCP connection with the server. The client sends control information, and the receiver initiates a data connection. 

The control remains active throughout the session. 

 

What are the data structures allowed?

FTP allows three data structures:

  1. File structure
  2. Record structure
  3. Page structure

 

What are FTP commands?

Some of the FTP commands are as follows:

 

CommandMeaning
USERIt sends user identification to the server. 
PASSIt sends the user password to the server.
CWDIt allows the user to work with different directories.
PWDIt returns the name of the current working directory.
RMDIt removes a directory specified in the pathname.
MKDIt creates a directory specified in the pathname.
ABORIt asks the server to abort the previous FTP service command.
QUITIt terminates the user. 

 

Reference 

File Transfer Protocol

Exit mobile version