Please Whitelist This Site?

I know everyone hates ads. But please understand that I am providing premium content for free that takes hundreds of hours of time to research and write. I don't want to go to a pay-only model like some sites, but when more and more people block ads, I end up working for free. And I have a family to support, just like you. :)

If you like The TCP/IP Guide, please consider the download version. It's priced very economically and you can read all of it in a convenient format without ads.

If you want to use this site for free, I'd be grateful if you could add the site to the whitelist for Adblock. To do so, just open the Adblock menu and select "Disable on tcpipguide.com". Or go to the Tools menu and select "Adblock Plus Preferences...". Then click "Add Filter..." at the bottom, and add this string: "@@||tcpipguide.com^$document". Then just click OK.

Thanks for your understanding!

Sincerely, Charles Kozierok
Author and Publisher, The TCP/IP Guide


NOTE: Using software to mass-download the site degrades the server and is prohibited.
If you want to read The TCP/IP Guide offline, please consider licensing it. Thank you.

The Book is Here... and Now On Sale!

Enjoy The TCP/IP Guide? Get the complete PDF!
The TCP/IP Guide

Custom Search







Table Of Contents  The TCP/IP Guide
 9  TCP/IP Application Layer Protocols, Services and Applications (OSI Layers 5, 6 and 7)
      9  TCP/IP Key Applications and Application Protocols
           9  TCP/IP File and Message Transfer Applications and Protocols (FTP, TFTP, Electronic Mail, USENET, HTTP/WWW, Gopher)
                9  TCP/IP General File Transfer Protocols (FTP and TFTP)
                     9  File Transfer Protocol (FTP)
                          9  FTP Concepts and General Operation

Previous Topic/Section
FTP Data Connection Management, Normal (Active) and Passive Data Connections and Port Usage
Previous Page
Pages in Current Topic/Section
1
2
Next Page
FTP Data Representation: Data Types, Data Structures and Format Control
Next Topic/Section

FTP General Data Communication and Transmission Modes
(Page 1 of 2)

Once a data connection has been established between the Server-DTP and the User-DTP, data is sent directly from the client to the server, or the server to the client, depending on the specific command issued. Since control information is sent using the distinct control channel, the entire data channel can be used for data communication. (Of course, these two logical channels are combined at lower layers along with all other TCP and UDP connections on both devices, so it's not like this represents a performance improvement over a single channel. Just wanted to make that clear.)

FTP defines three different transmission modes (also called transfer modes) that specify exactly how data is sent from one device to another over an opened data channel: stream mode, block mode, and compressed mode.

Stream Mode

In this mode, data is sent simply as a continuous stream of unstructured bytes. The sending device simply starts pushing data across the TCP data connection to the recipient. No message format with distinct header fields is used, making this method quite different from the way many other protocols send information in discrete chunks. It relies strongly on the data streaming and reliable transport services of TCP. Since there is no header structure, the end of the file is indicated simply by the sending device closing the data connection when it is done.

Of the three methods, stream mode is the one that is by far the most widely used in real FTP implementations. There are likely three reasons for this. First, it is the default and also the simplest method, so it is the easiest to implement and one that is required for compatibility. Second, it is the most general, because it treats all files as simple streams of byte without paying attention to their content. Third, it is the most efficient method because no bytes are wasted on “overhead” such as headers.


Previous Topic/Section
FTP Data Connection Management, Normal (Active) and Passive Data Connections and Port Usage
Previous Page
Pages in Current Topic/Section
1
2
Next Page
FTP Data Representation: Data Types, Data Structures and Format Control
Next Topic/Section

If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



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.