File-Transfer-Protocol-FTP
File-Transfer-Protocol-FTP
Protocol (FTP)
File Transfer Protocol (FTP) is a standard network protocol used for
transferring files between computers over a network. It allows users to
upload, download, and manage files on remote servers securely and
efficiently.
by I. AM OM
Definition of FTP
1 Client-Server Model 2 Bidirectional File
FTP operates on a client- Transfer
server architecture, where a FTP enables both uploading
client initiates a connection to files from the client to the
a remote server to perform server and downloading files
file transfer operations. from the server to the client.
3 Standard Port
FTP typically uses port 21 for the control connection and port 20 for
the data connection.
FTP Client-Server
Architecture
1 Client Initiates Connection
The FTP client establishes a control connection with the FTP
server on port 21.
2 Authentication
The client provides login credentials (username and
password) to authenticate with the server.
3 Data Transfer
Once authenticated, the client can initiate file transfer
operations over a data connection on port 20.
FTP Modes of Operation (Active vs Passive)
Active Mode Passive Mode Firewall Considerations
In active mode, the client initiates the In passive mode, the server initiates the Passive mode is often preferred as it is
data connection, while the server listens data connection, while the client listens more firewall-friendly, as the client
for the connection on port 20. for the connection on a random port. initiates all connections.
Advantages of FTP
1 Reliable File Transfers 2 Cross-Platform Compatibility
FTP provides a robust and reliable way to transfer files, FTP is a widely-supported protocol, allowing file transfers
with features like resume and restart capabilities. between various operating systems and devices.