image.png

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:


Basic FTP Workflow

  1. Client Initiates a Connection
  2. Authentication
  3. Command Exchange
  4. File Transfer

FTP Modes

Active Mode

Passive Mode (PASV)

image.png