Communication Networks · Visualized
FTP — File Transfer Protocol
Application Protocols
The protocols your apps speak directly: web, mail and file transfer — requests, responses and headers.
3 interactive subtopics — each one animated, step-through and explained.
FTP — File Transfer Protocol
Application ProtocolsFTP moves files between client and server, but unlike HTTP it opens TWO connections: a control connection (commands and status codes, port 21) that stays open for the whole session, and a data connection (port 20 in active mode) opened fresh for each transfer and closed again. It authenticates with a username and password — or anonymously — and offers navigation, upload, download and directory listing.
How FTP — File Transfer Protocol Works
- Client connects to server port 21: this CONTROL channel carries USER/PASS login, CWD navigation, and RETR/STOR commands.
- For each file, a second DATA connection is created.
- Active mode: the server connects back to the client's announced port — fails behind NAT.
- Passive mode: the client connects out to a server-chosen port — NAT-friendly, the modern default.
- The file streams over the data channel; the control channel stays free for the next command.
FTP — File Transfer Protocol Worked Example
Try it: Play — log in, list a directory, download one file, and watch control vs data channels live and close.
The control line stays lit the whole session — commands flow as plain text with numeric replies (220 ready, 331 password, 226 transfer complete). The data channel blinks open only while the file crosses, then vanishes. Firewalls must expect this second, dynamic connection.
FTP — File Transfer Protocol: Key Facts to Remember
Recommended resourcesAffiliate links · may earn us a commission
Recommended for learners
See how packets really travel
Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.