SlideShare a Scribd company logo
FILE TRANSFER PROTOCOL (FTP)
Dr R Jegadeesan Prof-CSE
Jyothishmathi Institute of Technology and Science,
karimnagar
FILE TRANSFER PROTOCOL
Transferring files from one computer to another is one
of the most common tasks expected from a networking
or internetworking environment. In reality, the greatest
volume of data exchange in the Internet today is due to
file transfer.
File Transfer Protocol (FTP)
Topics discussed in this section:
◼ File Transfer Protocol (FTP) is the standard
mechanism provided by TCP/IP for copying a
file from one host to another
◼ Although transferring files from one system
to another seems simple and straightforward,
some problems must be dealed.
◼ Two systems may use different file name
conventions.
◼ Two systems may have different ways to represent
text and data.
◼ Two systems may have different directory
structures.
◼ All these problems have been solved by FTP in a
very simple and elegant approach.
◼ FTP differs from other client/server
applications in that it establishes two
connections between the hosts.
◼ One connection is used for data transfer and
the other connection for control information
(commands and responses)
◼ Separation of commands and data transfer
makes FTP more efficient.
◼ FTP uses the services of TCP. It needs two
TCP connections.
◼ The well-known port number 21 is used for
the control connection and the well-known
port number 20 for the data connection.
FTP
◼ Figure shows the basic model of FTP.
◼ The client has three components: user
interface, client control process, and the
client data transfer process.
◼ The server has two components: the server
control process and the server data transfer
process.
◼ The control connection is made between the
control processes.
◼ The data connection is made between the
data transfer processes.
26.8
◼ The control connection remains connected
during the entire interactive FTP session.
◼ The data connection is opened and then
closed for each file transferred.
◼ It opens each time commands that involve
transferring files are used, and it closes when
the file is transferred.
Communication over Control Connection
◼ It uses the 7-bit ASCII character set.
◼ Communication is achieved through commands and responses.
◼ This simple method is enough for the control connection
because we send one command (or response) at a time.
◼ Each command or response is only one short line.
◼ Each line is terminated with a two-character (carriage return
and line feed) end-of-line token.
Figure 26.22 Using the control connection
Communication over Data Connection
◼ We want to transfer files through the data
connection.
◼ File transfer occurs over the data connection
under the control of the commands sent over
the control connection.
◼ file transfer in FTP means one of three
things:
◼ A file is to be copied from the server to the
client. This is called retrieving file. It is done
under the supervision of the RETR command
◼ A file is to be copied from the client to the
server. This is called storing file. It is done
under the supervision of the STOR command.
◼ A list of directory or file names is to be sent
from the server to the client. This is done
under the supervision of the LIST command.
Figure 26.23 Using the data connection
◼ In FTP the following three attributes of
communication must be defined by client
➢ the type of file to be transferred
➢ the structure of the data
➢ the transmission mode
File type
◼ Three types of files can be transferred over
the data connection in FTP. They are
➢ ASCII file(American Standard Code for
Information Interexchange)
➢ EBCDIC file (Extended Binary Coded
Decimal Interchange Code)
➢ Binary/image file.
ASCII
◼ The ASCII file is the default format for
transferring text files.
◼ Each character is encoded using 7-bit ASCII.
◼ The sender transforms the file from its own
representation into ASCII characters, and the
receiver transforms the ASCII characters to
its own representation.
EBCDIC
◼ The sender transforms the file from its own
representation into EBCDIC characters, and
the receiver transforms the EBCDIC
characters to its own representation.
Image file
◼ The image file is the default format that is
transferred in binary files.
◼ The file is sent as continuous streams of bits
without any interpretation or encoding
Data Structure
◼ FTP can transfer a file across the data
connection by using one of the following
➢ file structure
➢ record structure
➢ page structure.
◼ In the file structure format, the file is a
continuous stream of bytes.
◼ In the record structure, the file is divided into
records. This can be used only with text files.
◼ In the page structure, the file is divided into
pages, with each page having a page number
and a page header. The pages can be stored
and accessed randomly or sequentially.
Transmission Mode
◼ FTP can transfer a file across the data
connection by using one of the following
three transmission modes:
➢ Block mode
➢ Stream mode
➢ Compressed mode.
Block mode
◼ The incoming data is broken down into
several blocks which are then forwarded over
the TCP connection.
Stream mode
◼ If the data are simply a stream of bytes (file
structure), no end-of-file is needed.
◼ End-of-file in this case is the closing of the
data connection by the sender
Compressed mode
◼ The compression method normally used is
run-length encoding.
◼ In this method, consecutive appearances of a
data unit are replaced by one occurrence and
the number of repetitions.
ASCII (American Standard Code
for Information Interchange)
ASCII is a code for representing
English characters as numbers, with each letter
assigned a number. For example, the ASCII code
for uppercase A is 65 .
Most computers use ASCII codes
to represent text, which makes it possible to
transfer data from one computer to another.
Thank you

More Related Content

PPTX
File transfer protocol
PPTX
PPTX
File transfer protocol (ftp) in application
PPTX
File Transfer Protocol
PPSX
File Transfer Protocol
PPTX
FTP Client and Server | Computer Science
PPTX
An overview of ftp
PDF
Ftp (file transfer protocol)
File transfer protocol
File transfer protocol (ftp) in application
File Transfer Protocol
File Transfer Protocol
FTP Client and Server | Computer Science
An overview of ftp
Ftp (file transfer protocol)

What's hot (20)

PPTX
PPTX
File transfer protocol
PPT
File Transfer protocols
PPTX
File Transfer Protocol(FTP)
PPT
Using an FTP client - Client server computing
PDF
Lec 8(FTP Protocol)
PDF
TFTP - Trivial File Transfer Protocol
PPTX
Ftp server
PPTX
File transfer protocol (ftp)
PDF
Ftp server
PPTX
File transfer protocol
PDF
Ftp
PPT
(Ftp) file transfer protocol
PPTX
File tranfer protocol
PPTX
File Transfer Protocol
PDF
FTP - File Transfer Protocol
DOCX
File transfer protocol
PPT
PDF
FTP Conflict troubleshooting & MINI-LINK TN FTP
File transfer protocol
File Transfer protocols
File Transfer Protocol(FTP)
Using an FTP client - Client server computing
Lec 8(FTP Protocol)
TFTP - Trivial File Transfer Protocol
Ftp server
File transfer protocol (ftp)
Ftp server
File transfer protocol
Ftp
(Ftp) file transfer protocol
File tranfer protocol
File Transfer Protocol
FTP - File Transfer Protocol
File transfer protocol
FTP Conflict troubleshooting & MINI-LINK TN FTP
Ad

Similar to FILE TRANSFER PROTOCOL (FTP) (20)

PPT
Telnet and FTP.ppt
PPTX
Computer network
PPTX
Unit 5 Email FTP Rks.pps.ppt_20240425_112130_0000.pptx
PPTX
OSI - OSI Reference Model and TCP (Transmission Control Protocol)
PPTX
OSI layer which is discussed below in detail
PPTX
File Transfer Protocol (FTP)
PPTX
3-Application Layer.pptx
PPTX
Application Layer
PDF
Application Layer protocols- OSI Model Layers
PPTX
Introduction to File Transfer Protocol with commands in FTP
PPTX
lecture 4.pptx
PDF
File_Transfer_Protocol_Design
PPTX
application layer protocol for iot.pptx
PPTX
Application layer
PDF
Application layer
PPTX
Protocol architecture TCP IP
PPTX
filetranferprotocolseminarpresentation.pptx
PPT
Ftp
PPTX
client and Computer.pptx
PPTX
TCP/ip protocol suite is used for network sharing protocol
Telnet and FTP.ppt
Computer network
Unit 5 Email FTP Rks.pps.ppt_20240425_112130_0000.pptx
OSI - OSI Reference Model and TCP (Transmission Control Protocol)
OSI layer which is discussed below in detail
File Transfer Protocol (FTP)
3-Application Layer.pptx
Application Layer
Application Layer protocols- OSI Model Layers
Introduction to File Transfer Protocol with commands in FTP
lecture 4.pptx
File_Transfer_Protocol_Design
application layer protocol for iot.pptx
Application layer
Application layer
Protocol architecture TCP IP
filetranferprotocolseminarpresentation.pptx
Ftp
client and Computer.pptx
TCP/ip protocol suite is used for network sharing protocol
Ad

More from Jyothishmathi Institute of Technology and Science Karimnagar (20)

PDF
JAVA PROGRAMMING- GUI Programming with Swing - The Swing Buttons
PDF
JAVA PROGRAMMING - The Collections Framework
PDF
JAVA PROGRAMMING- Exception handling - Multithreading
PDF
JAVA PROGRAMMING – Packages - Stream based I/O
PDF
Java programming -Object-Oriented Thinking- Inheritance
PDF
Compiler Design- Machine Independent Optimizations
PDF
PDF
COMPILER DESIGN- Syntax Directed Translation
PDF
COMPILER DESIGN- Introduction & Lexical Analysis:
PPTX
CRYPTOGRAPHY AND NETWORK SECURITY- E-Mail Security
PDF
CRYPTOGRAPHY AND NETWORK SECURITY- Transport-level Security
PDF
CRYPTOGRAPHY & NETWORK SECURITY- Cryptographic Hash Functions
PDF
CRYPTOGRAPHY & NETWOK SECURITY- Symmetric key Ciphers
JAVA PROGRAMMING- GUI Programming with Swing - The Swing Buttons
JAVA PROGRAMMING - The Collections Framework
JAVA PROGRAMMING- Exception handling - Multithreading
JAVA PROGRAMMING – Packages - Stream based I/O
Java programming -Object-Oriented Thinking- Inheritance
Compiler Design- Machine Independent Optimizations
COMPILER DESIGN- Syntax Directed Translation
COMPILER DESIGN- Introduction & Lexical Analysis:
CRYPTOGRAPHY AND NETWORK SECURITY- E-Mail Security
CRYPTOGRAPHY AND NETWORK SECURITY- Transport-level Security
CRYPTOGRAPHY & NETWORK SECURITY- Cryptographic Hash Functions
CRYPTOGRAPHY & NETWOK SECURITY- Symmetric key Ciphers

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Getting Started with Data Integration: FME Form 101
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Approach and Philosophy of On baking technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
Tartificialntelligence_presentation.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Programs and apps: productivity, graphics, security and other tools
Enhancing emotion recognition model for a student engagement use case through...
DP Operators-handbook-extract for the Mautical Institute
WOOl fibre morphology and structure.pdf for textiles
Hindi spoken digit analysis for native and non-native speakers
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Getting Started with Data Integration: FME Form 101
A comparative study of natural language inference in Swahili using monolingua...
Approach and Philosophy of On baking technology
Unlocking AI with Model Context Protocol (MCP)
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Chapter 5: Probability Theory and Statistics
Univ-Connecticut-ChatGPT-Presentaion.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Tartificialntelligence_presentation.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf

FILE TRANSFER PROTOCOL (FTP)

  • 1. FILE TRANSFER PROTOCOL (FTP) Dr R Jegadeesan Prof-CSE Jyothishmathi Institute of Technology and Science, karimnagar
  • 2. FILE TRANSFER PROTOCOL Transferring files from one computer to another is one of the most common tasks expected from a networking or internetworking environment. In reality, the greatest volume of data exchange in the Internet today is due to file transfer. File Transfer Protocol (FTP) Topics discussed in this section:
  • 3. ◼ File Transfer Protocol (FTP) is the standard mechanism provided by TCP/IP for copying a file from one host to another ◼ Although transferring files from one system to another seems simple and straightforward, some problems must be dealed.
  • 4. ◼ Two systems may use different file name conventions. ◼ Two systems may have different ways to represent text and data. ◼ Two systems may have different directory structures. ◼ All these problems have been solved by FTP in a very simple and elegant approach.
  • 5. ◼ FTP differs from other client/server applications in that it establishes two connections between the hosts. ◼ One connection is used for data transfer and the other connection for control information (commands and responses) ◼ Separation of commands and data transfer makes FTP more efficient.
  • 6. ◼ FTP uses the services of TCP. It needs two TCP connections. ◼ The well-known port number 21 is used for the control connection and the well-known port number 20 for the data connection.
  • 7. FTP
  • 8. ◼ Figure shows the basic model of FTP. ◼ The client has three components: user interface, client control process, and the client data transfer process. ◼ The server has two components: the server control process and the server data transfer process. ◼ The control connection is made between the control processes. ◼ The data connection is made between the data transfer processes. 26.8
  • 9. ◼ The control connection remains connected during the entire interactive FTP session. ◼ The data connection is opened and then closed for each file transferred. ◼ It opens each time commands that involve transferring files are used, and it closes when the file is transferred.
  • 10. Communication over Control Connection ◼ It uses the 7-bit ASCII character set. ◼ Communication is achieved through commands and responses. ◼ This simple method is enough for the control connection because we send one command (or response) at a time. ◼ Each command or response is only one short line. ◼ Each line is terminated with a two-character (carriage return and line feed) end-of-line token.
  • 11. Figure 26.22 Using the control connection
  • 12. Communication over Data Connection ◼ We want to transfer files through the data connection. ◼ File transfer occurs over the data connection under the control of the commands sent over the control connection. ◼ file transfer in FTP means one of three things:
  • 13. ◼ A file is to be copied from the server to the client. This is called retrieving file. It is done under the supervision of the RETR command ◼ A file is to be copied from the client to the server. This is called storing file. It is done under the supervision of the STOR command. ◼ A list of directory or file names is to be sent from the server to the client. This is done under the supervision of the LIST command.
  • 14. Figure 26.23 Using the data connection
  • 15. ◼ In FTP the following three attributes of communication must be defined by client ➢ the type of file to be transferred ➢ the structure of the data ➢ the transmission mode
  • 16. File type ◼ Three types of files can be transferred over the data connection in FTP. They are ➢ ASCII file(American Standard Code for Information Interexchange) ➢ EBCDIC file (Extended Binary Coded Decimal Interchange Code) ➢ Binary/image file.
  • 17. ASCII ◼ The ASCII file is the default format for transferring text files. ◼ Each character is encoded using 7-bit ASCII. ◼ The sender transforms the file from its own representation into ASCII characters, and the receiver transforms the ASCII characters to its own representation.
  • 18. EBCDIC ◼ The sender transforms the file from its own representation into EBCDIC characters, and the receiver transforms the EBCDIC characters to its own representation. Image file ◼ The image file is the default format that is transferred in binary files. ◼ The file is sent as continuous streams of bits without any interpretation or encoding
  • 19. Data Structure ◼ FTP can transfer a file across the data connection by using one of the following ➢ file structure ➢ record structure ➢ page structure.
  • 20. ◼ In the file structure format, the file is a continuous stream of bytes. ◼ In the record structure, the file is divided into records. This can be used only with text files. ◼ In the page structure, the file is divided into pages, with each page having a page number and a page header. The pages can be stored and accessed randomly or sequentially.
  • 21. Transmission Mode ◼ FTP can transfer a file across the data connection by using one of the following three transmission modes: ➢ Block mode ➢ Stream mode ➢ Compressed mode.
  • 22. Block mode ◼ The incoming data is broken down into several blocks which are then forwarded over the TCP connection. Stream mode ◼ If the data are simply a stream of bytes (file structure), no end-of-file is needed. ◼ End-of-file in this case is the closing of the data connection by the sender
  • 23. Compressed mode ◼ The compression method normally used is run-length encoding. ◼ In this method, consecutive appearances of a data unit are replaced by one occurrence and the number of repetitions.
  • 24. ASCII (American Standard Code for Information Interchange) ASCII is a code for representing English characters as numbers, with each letter assigned a number. For example, the ASCII code for uppercase A is 65 . Most computers use ASCII codes to represent text, which makes it possible to transfer data from one computer to another.