SlideShare a Scribd company logo
By:- Bhawana Srivastava
 File Transfer Protocol (FTP) is an application
layer protocol which moves files between
local and remote file systems.
 It runs on the top of TCP, like HTTP. To
transfer a file, 2 TCP connections are used by
FTP in parallel: control connection and data
connection.
File transfer protocol (ftp) in application
 For sending control information like user
identification, password, commands to
change the remote directory, commands to
retrieve and store files, etc., FTP makes use
of control connection. The control
connection is initiated on port number 21.
 For sending the actual file, FTP makes use of
data connection. A data connection is
initiated on port number 20.
FTP sends the control information out-of-
band as it uses a separate control
connection. Some protocols send their
request and response header lines and the
data in the same TCP connection. For this
reason, they are said to send their control
information in-band. HTTP and SMTP are
such examples.
 When a FTP session is started between a
client and a server, the client initiates a
control TCP connection with the server side.
The client sends control information over
this. When the server receives this, it
initiates a data connection to the client side.
Only one file can be sent over one data
connection. But the control connection
remains active throughout the user session.
As we know HTTP is stateless i.e. it does not
have to keep track of any user state. But FTP
needs to maintain a state about its user
throughout the session.
 FTP allows three types of data structures :
 File Structure – In file-structure there is no
internal structure and the file is considered to be
a continuous sequence of data bytes.
 Record Structure – In record-structure the file is
made up of sequential records.
 Page Structure – In page-structure the file is
made up of independent indexed pages.
 USER – This command sends the user
identification to the server.
 PASS – This command sends the user password to
the server.
 CWD – This command allows the user to work
with a different directory or dataset for file
storage or retrieval without altering his login or
accounting information.
 RMD – This command causes the directory
specified in the path-name to be removed as a
directory.
 MKD – This command causes the directory
specified in the pathname to be created as a
directory.
 PWD – This command causes the name of the
current working directory to be returned in the
reply.
 ETR – This command causes the remote host to
initiate a data connection and to send the
requested file over the data connection.
 STOR – This command causes to store a file into the
current directory of the remote host.
 LIST – Sends a request to display the list of all the
files present in the directory.
 ABOR – This command tells the server to abort the
previous FTP service command and any associated
transfer of data.
 QUIT – This command terminates a USER and if file
transfer is not in progress, the server closes the
control connection.
 Some of the FTP replies are :
 200 Command okay.
530 Not logged in.
331 User name okay, need a password.
225 Data connection open; no transfer in
progress.
221 Service closing control connection.
551 Requested action aborted: page type
unknown.
502 Command not implemented.
503 Bad sequence of commands.
504 Command not implemented for that
parameter.
 It is good for simple file transfers, such as
during boot time.
 It uses UDP as transport layer protocols.
Errors in the transmission (lost packets,
checksum errors) must be handled by the
TFTP server.
 It uses only one connection through well
known port 69.
 TFTP uses a simple lock-step protocol (each
data packet needs to be acknowledged).
Thus the throughput is limited
 Anonymous FTP is enabled on some sites
whose files are available for public access. A
user can access these files without having
any username or password. Instead, the
username is set to anonymous and password
to the guest by default. Here, user access is
very limited. For example, the user can be
allowed to copy the files but not to navigate
through directories
File transfer protocol (ftp) in application

More Related Content

PPTX
Computer network
PDF
Ftp (file transfer protocol)
PPTX
PPTX
File Transfer Protocol
PPSX
File Transfer Protocol
PPTX
File tranfer protocol
PPTX
An overview of ftp
Computer network
Ftp (file transfer protocol)
File Transfer Protocol
File Transfer Protocol
File tranfer protocol
An overview of ftp

What's hot (20)

PPTX
FTP Client and Server | Computer Science
PPT
Using an FTP client - Client server computing
PDF
TFTP - Trivial File Transfer Protocol
PPTX
File transfer protocol (ftp)
PPTX
Ftp server
PDF
Ftp server
PPTX
File Transfer Protocol
PPT
PPT
Ftp tftp
PPT
PDF
FTP - File Transfer Protocol
PPTX
PDF
Lec 8(FTP Protocol)
PPTX
13 coms 525 tcpip - applications - file transfer protocol
DOCX
File transfer protocol
PPTX
File transfer protocol
PPTX
Ftp: a slideshow on File transfer protocol
PDF
Ftp
PPTX
File transfer protocol
PPTX
FTP & TFTP
FTP Client and Server | Computer Science
Using an FTP client - Client server computing
TFTP - Trivial File Transfer Protocol
File transfer protocol (ftp)
Ftp server
Ftp server
File Transfer Protocol
Ftp tftp
FTP - File Transfer Protocol
Lec 8(FTP Protocol)
13 coms 525 tcpip - applications - file transfer protocol
File transfer protocol
File transfer protocol
Ftp: a slideshow on File transfer protocol
Ftp
File transfer protocol
FTP & TFTP
Ad

Similar to File transfer protocol (ftp) in application (20)

PPTX
Introduction to File Transfer Protocol with commands in FTP
PPTX
Unit 5 Email FTP Rks.pps.ppt_20240425_112130_0000.pptx
PPTX
BITM3730Week10.pptx
PPTX
File Transfer Protocol (FTP)
PPT
Telnet and FTP.ppt
PPT
Group20 Dynamic Networks
PPT
Ftp
PPTX
PPT
ftp.07f.ppt
PPTX
FILE TRANSFER PROTOCOL.pptx
PPTX
File Transfer Protocol
PPTX
filetranferprotocolseminarpresentation.pptx
PPTX
File Transfer Protocol - FTP
PPT
file transfer and access utilities
PPTX
Web Dev Research
PPTX
File transfer protocol- Gowdham
PPTX
Introduction to telnet
PDF
FTP and TFTP are primarily file transfer protocols. What is the main.pdf
PPTX
FTP(In_Linux).pptx
Introduction to File Transfer Protocol with commands in FTP
Unit 5 Email FTP Rks.pps.ppt_20240425_112130_0000.pptx
BITM3730Week10.pptx
File Transfer Protocol (FTP)
Telnet and FTP.ppt
Group20 Dynamic Networks
Ftp
ftp.07f.ppt
FILE TRANSFER PROTOCOL.pptx
File Transfer Protocol
filetranferprotocolseminarpresentation.pptx
File Transfer Protocol - FTP
file transfer and access utilities
Web Dev Research
File transfer protocol- Gowdham
Introduction to telnet
FTP and TFTP are primarily file transfer protocols. What is the main.pdf
FTP(In_Linux).pptx
Ad

Recently uploaded (20)

PDF
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
PDF
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
PPTX
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
PDF
AlphaEarth Foundations and the Satellite Embedding dataset
PDF
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
PDF
Biophysics 2.pdffffffffffffffffffffffffff
PDF
diccionario toefl examen de ingles para principiante
PDF
Sciences of Europe No 170 (2025)
PPTX
SCIENCE10 Q1 5 WK8 Evidence Supporting Plate Movement.pptx
PPTX
INTRODUCTION TO EVS | Concept of sustainability
PPTX
The KM-GBF monitoring framework – status & key messages.pptx
PPTX
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
PPTX
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
PPTX
Classification Systems_TAXONOMY_SCIENCE8.pptx
PDF
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
PPT
protein biochemistry.ppt for university classes
PPTX
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
PPT
Chemical bonding and molecular structure
PPTX
Cell Membrane: Structure, Composition & Functions
PPTX
Vitamins & Minerals: Complete Guide to Functions, Food Sources, Deficiency Si...
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
AlphaEarth Foundations and the Satellite Embedding dataset
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
Biophysics 2.pdffffffffffffffffffffffffff
diccionario toefl examen de ingles para principiante
Sciences of Europe No 170 (2025)
SCIENCE10 Q1 5 WK8 Evidence Supporting Plate Movement.pptx
INTRODUCTION TO EVS | Concept of sustainability
The KM-GBF monitoring framework – status & key messages.pptx
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
Classification Systems_TAXONOMY_SCIENCE8.pptx
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
protein biochemistry.ppt for university classes
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
Chemical bonding and molecular structure
Cell Membrane: Structure, Composition & Functions
Vitamins & Minerals: Complete Guide to Functions, Food Sources, Deficiency Si...

File transfer protocol (ftp) in application

  • 2.  File Transfer Protocol (FTP) is an application layer protocol which moves files between local and remote file systems.  It runs on the top of TCP, like HTTP. To transfer a file, 2 TCP connections are used by FTP in parallel: control connection and data connection.
  • 4.  For sending control information like user identification, password, commands to change the remote directory, commands to retrieve and store files, etc., FTP makes use of control connection. The control connection is initiated on port number 21.
  • 5.  For sending the actual file, FTP makes use of data connection. A data connection is initiated on port number 20. FTP sends the control information out-of- band as it uses a separate control connection. Some protocols send their request and response header lines and the data in the same TCP connection. For this reason, they are said to send their control information in-band. HTTP and SMTP are such examples.
  • 6.  When a FTP session is started between a client and a server, the client initiates a control TCP connection with the server side. The client sends control information over this. When the server receives this, it initiates a data connection to the client side. Only one file can be sent over one data connection. But the control connection remains active throughout the user session. As we know HTTP is stateless i.e. it does not have to keep track of any user state. But FTP needs to maintain a state about its user throughout the session.
  • 7.  FTP allows three types of data structures :  File Structure – In file-structure there is no internal structure and the file is considered to be a continuous sequence of data bytes.  Record Structure – In record-structure the file is made up of sequential records.  Page Structure – In page-structure the file is made up of independent indexed pages.
  • 8.  USER – This command sends the user identification to the server.  PASS – This command sends the user password to the server.  CWD – This command allows the user to work with a different directory or dataset for file storage or retrieval without altering his login or accounting information.  RMD – This command causes the directory specified in the path-name to be removed as a directory.  MKD – This command causes the directory specified in the pathname to be created as a directory.
  • 9.  PWD – This command causes the name of the current working directory to be returned in the reply.  ETR – This command causes the remote host to initiate a data connection and to send the requested file over the data connection.  STOR – This command causes to store a file into the current directory of the remote host.  LIST – Sends a request to display the list of all the files present in the directory.  ABOR – This command tells the server to abort the previous FTP service command and any associated transfer of data.  QUIT – This command terminates a USER and if file transfer is not in progress, the server closes the control connection.
  • 10.  Some of the FTP replies are :  200 Command okay. 530 Not logged in. 331 User name okay, need a password. 225 Data connection open; no transfer in progress. 221 Service closing control connection. 551 Requested action aborted: page type unknown. 502 Command not implemented. 503 Bad sequence of commands. 504 Command not implemented for that parameter.
  • 11.  It is good for simple file transfers, such as during boot time.  It uses UDP as transport layer protocols. Errors in the transmission (lost packets, checksum errors) must be handled by the TFTP server.  It uses only one connection through well known port 69.  TFTP uses a simple lock-step protocol (each data packet needs to be acknowledged). Thus the throughput is limited
  • 12.  Anonymous FTP is enabled on some sites whose files are available for public access. A user can access these files without having any username or password. Instead, the username is set to anonymous and password to the guest by default. Here, user access is very limited. For example, the user can be allowed to copy the files but not to navigate through directories