Skip to main content

III. Specifications: Data and Control Transactions

1. Data Transfer​

FTP uses the Data Transfer Protocol (described in RFC 264) for transferring data and/or control transaction. Both data and control transactions are communicated over the same connection.

2. Data Transactions​

Data transactions represent the data contained in a file. There is no data type or byte size information contained in data transactions. The structure of data is communicated via control transactions. A file may be transferred as one or more data transactions. The protocol neither specifies nor imposes any limitations on the structure (record, group, etc.) or length of file. Such limitations may however be imposed by a serving host. The end of a file may be indicated by a file separator (as defined in data transfer protocol). In the special case of indefinite bit-stream transfer mode (Type B0), the end of file is indicated by closing connection. In particular, a serving or using host should not send the ETX, or other end of file character, unless such a character is part of the data in file (i.e. not provided by system).

3. Control Transactions​

The control transactions may be typified as requests, identifiers, and terminates. A request fulfillment sequence begins with a request and ends with receipt of data (followed by end-of-file) or a terminate. The user side initiates the connections as well as the request. The server side "listens" and complies with the request.