FTP File Transfer Protocol: Reference: RFC 959
FTP File Transfer Protocol: Reference: RFC 959
Netprog: FTP 1
FTP Objectives
(from RFC 959)
• promote sharing of files
• encourage indirect use of remote
computers
• shield user from variations in file storage
• transfer data reliably and efficiently
• “FTP, although usable directly by a user
at a terminal, is designed mainly for use
by programs”
Netprog: FTP 2
The FTP Model
PI: Protocol Interpreter
DTP: Data Transfer Protocol User Interface User
Control
Server PI User PI
Netprog: FTP 3
Control and Data Connections
Netprog: FTP 4
Control Connection
Netprog: FTP 5
Standard Connection Model
Control
A Data B
Netprog: FTP 6
Alternative Connection Model
Control Control
A
B Data C
Netprog: FTP 7
Access Control Commands
Netprog: FTP 8
Transfer Parameter
Commands
PORT publish local data port
PASV server should listen
TYPE establish data representation
MODE establish transfer mode
STRU establish file structure
Netprog: FTP 9
Service Commands
RETR retrieve file
STOR send file
STOU send file and save as unique
APPE send file and append
ABOR abort prev. service command
PWD print working directory
LIST transfer list of files over data link
Netprog: FTP 10
FTP Replies
Netprog: FTP 11
FTP Reply Status Code
Netprog: FTP 12
FTP Reply Status Code
Netprog: FTP 13
Data Transfer Modes
Netprog: FTP 14
RFC 959
Netprog: FTP 15