| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
FTP Control Connection Establishment, User Authentication and Anonymous FTP Access (Page 1 of 3) The FTP operational model describes the distinct logical data and control channels that are established between an FTP client (user) and an FTP server. Before the data connection can be used to send actual files, the control connection must be established. A specific process is followed to set up this connection and thereby create the permanent FTP session between devices that can be used for transferring files. As with other client/server protocols, the FTP server assumes a passive role in the control connection process. The server protocol interpreter (Server-PI) listens on the special well-known TCP port reserved for FTP control connections: port 21. The User-PI initiates the connection by opening a TCP connection from the user device to the server on this port. It uses an ephemeral port number as its source port in the TCP connection. Once TCP has been set up, the control connection between the devices is established, allowing commands to be sent from the User-PI to the Server-PI, and reply codes to be sent back in response. The first order of business after the channel is operating is user authentication, which the FTP standard calls the login sequence. There are two purposes for this process:
Home - Table Of Contents - Contact Us The TCP/IP Guide (http://www.TCPIPGuide.com) Version 3.0 - Version Date: September 20, 2005 © Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved. Not responsible for any loss resulting from the use of this site. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||