2.76k likes | 7.45k Views
File Transfer Protocol (FTP). The standard mechanism provided by the Internet for copying a file from one host to another. The needs: - Different file name conventions Different representation of text and data Different directory structures. FTP (Continued…).
E N D
File Transfer Protocol (FTP) • The standard mechanism provided by the Internet for copying a file from one host to another. • The needs: - • Different file name conventions • Different representation of text and data • Different directory structures Application Layer
FTP (Continued…) • Differs from other client-server applications in that it establishes two connections between the client and the server. They are: - • Data connection • Used for data transfer • Consists of complex rules due to the variety of data being transferred • Control connection • Used for information control (commands and responses) • Uses very simple rules of one line command or response at a time Application Layer
FTP Model • FTP client has three components • User interface • Client control process • Client data transfer process • FTP server has two components • Server control process • Server data transfer process Application Layer
FTP Connections • Control connection • Maintained during the entire FTP session • Uses port 21 • Involves interactive connection between user and server • Data connection • Maintained only during a file transfer • Uses port 20 Application Layer
FTP Communications • Communication over control connection • Uses ASCII character set, similar to SMTP • Communication over data connection • File type • Data structure • Transmission mode Application Layer
File Transfer • File transfer in FTP can mean one of the following three: - • Storing a file • Retrieving a file • Retrieving a list • Most operating systems provide user interface to access the services of FTP where the chosen activity is automatically converted by the interface to the corresponding FTP commands. Application Layer
FTP Connection Example Application Layer
GUI FTP Example Application Layer