Using Multiple Sockets

 < Day Day Up > 



A very interesting technique, used effectively in older TCP/IP stacks, is the use of multiple sockets to parallelize data transfer. The technique is also known as “data-striping.” In data striping, multiple sockets are opened to a given target and individual segments of data are transferred through each of the open sockets (see Figure 7.3).

click to expand
Figure 7.3: Data striping over multiple connections.

This technique has also been used successfully in peer-to-peer sharing programs in which a single file is downloaded in pieces from a number of different sources. This permits a user with a high-bandwidth link to download a file from a number of users with slower links, giving the illusion that the file is being downloaded from a single user with a similar link rate.



 < Day Day Up > 



BSD Sockets Programming from a Multi-Language Perspective
Network Programming for Microsoft Windows , Second Edition (Microsoft Programming Series)
ISBN: 1584502681
EAN: 2147483647
Year: 2003
Pages: 225
Authors: Jim Ohlund

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net