0% found this document useful (0 votes)
19 views20 pages

File Transfer Protocol (FTP)

The document discusses file transfer protocol (FTP) and how it uses TCP connections to transfer files between remote locations. FTP uses port 21 for control connections and port 20 for data transfers. It also covers topics like communication methods, command processing, and file transfer modes.

Uploaded by

Shivam Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views20 pages

File Transfer Protocol (FTP)

The document discusses file transfer protocol (FTP) and how it uses TCP connections to transfer files between remote locations. FTP uses port 21 for control connections and port 20 for data transfers. It also covers topics like communication methods, command processing, and file transfer modes.

Uploaded by

Shivam Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 20

File Transfer

Protocol
(FTP)
Interview Questions

Q1: Which protocol is used to transfer files from remote locations?

Q2:Which type of connection is used to transfer files?


Keywords

1. TCP
2. UDP
Non-technical questions
1.What are your strengths?
2.What are your weaknesses?
3.What are your goals?
CONTENTS
• CONNECTIONS
• COMMUNICATION
• COMMAND PROCESSING
• FILE TRANSFER
FTP uses the services of TCP.
It needs two TCP connections.
The well-known port 21 is used
for the control connection
and the well-known
port 20 for the data connection.
FTP
Connections: The control connection
The Data Connection

• Uses Server’s well-known port 20


1. Client issues a passive open on an ephemeral port, say x.
2. Client uses PORT command to tell the server about the port
number x.
3. Server issues an active open from port 20 to port x.
4. Server creates a child server/ephemeral port number to
serve the client
Creating
the data
connection
Communication
Using the control connection
NVT

FTP FTP
Using the data connection
File Type
• ASCII or EBCDIC
• Image
Data Structure
• File Structure
• Record Structure
• Page Structure
Transmission Mode
• Stream mode
• Block mode
• Compressed mode
Command processing

• Access Commands
• File Management
• Data Formatting
• Port defining
• File transfer
• Miscellaneous
File transfer
Example 1
Example 2

You might also like