
File Transfer Protocol (FTP) is a standard application-layer protocol used for transferring files between hosts on a TCP/IP network. It was designed for reliability and efficiency, especially across systems with differing file systems. FTP operates over TCP port 21 for control and establishes a separate data connection for file transfers.
OSI Layer: Application (Layer 7)
Default Ports:
Control Channel: TCP/21
Data Channel: TCP/20 (Active Mode) or random high port (Passive Mode)
Encryption: None (plaintext)
USER and PASS commands.USER anonymous, with an optional or empty password).LIST – list directory contents.RETR – retrieve (download) a file.STOR – store (upload) a file.