Lecture 22 - FTP
Lecture 22 - FTP
CONTENTS
CONNECTIONS COMMUNICATION COMMAND PROCESSING FILE TRANSFER USER INTERFACE ANONYMOUS FTP
McGraw-Hill
FTP uses the services of TCP. It needs two TCP connections. The well-known port 21 is used for the control connection and the well-known port 20 for the data connection.
McGraw-Hill
Figure 20-1
FTP
McGraw-Hill
McGraw-Hill
McGraw-Hill
Figure 20-4
McGraw-Hill
NVT
FTP
FTP
McGraw-Hill
McGraw-Hill
McGraw-Hill
Figure 20-5
McGraw-Hill
File Type
ASCII or EBCDIC
Nonprint TELNET
Image
McGraw-Hill
Data Structure
File Structure Record Structure Page Structure
McGraw-Hill
Transmission Mode
Stream mode Block mode Compressed mode
McGraw-Hill
McGraw-Hill
Access Commands File Management Data Formatting Port defining File transfer Miscellaneous
The McGraw-Hill Companies, Inc., 2000
McGraw-Hill
Figure 20-8
Example 1
McGraw-Hill
Figure 20-9
Example 2
McGraw-Hill
20.5
USER INTERFACE
McGraw-Hill
Solution % ftp challenger.atc.fhda.edu Connected to challenger.atc.fhda.edu 220 Server ready Name: forouzan Password: xxxxxxx ftp > ls /usr/user/report 200 OK
McGraw-Hill The McGraw-Hill Companies, Inc., 2000
Solution 150 Opening ASCII mode ........... 226 transfer complete ftp > close 221 Goodbye ftp > quit
McGraw-Hill
McGraw-Hill
ftp> close
221 Goodbye
ftp> quit
McGraw-Hill The McGraw-Hill Companies, Inc., 2000