Article View: news.software.readers
Article #116946Re: [XNews]Feature Request: Connections>4
From: Murray Peterson
Date: Mon, 30 Dec 2002 20:05
Date: Mon, 30 Dec 2002 20:05
89 lines
5842 bytes
5842 bytes
Ross Presser <rpresser@NOSPAM.imtek.com.invalid> wrote in
news:Xns92F4754F5910Bpt101594@129.250.170.91:
> [snip]
> I would like some proof of this assertion. It's not just Usenet.
> There is a whole class of software known as "download accelerators"
> (Gator, GetRight, and the like) whose sole claim to fame is that they
> open multiple connections for each file, with each FTP or HTTP
> connection downloading a different byte range of the same stream,
> resulting in a reduced total elapsed time. Is it your position that
> these only work because one of your three points is true in every
> case?
I'll start off by pointing you to a document describing the TCP/IP protocol
header: http://www.networksorcery.com/enp/protocol/tcp.htm
All data sent between two machines will have the overhead of these attached
headers.
Let's assume that your download requires the following packets (over a
single TCP connection):
1. Send SYN packet (establish connection)
2. Server sends ACK packet
3. Send request packet
4. Server sends data packets (1500 data bytes per packet)
5. Your machine sends ACK packets (one for every 10 data packets received).
Now, when you add extra TCP connections, it's easy to see that they will
require extra bytes, merely to establish the connection (#1 and #2 above).
The physical network connections haven't changed or magically increased
their bandwidth, so those extra bytes will require more time to send. So
we may conclude that every extra TCP connection will add more bytes that
need to be sent from the server to your machine.
If you want an analogy, let's try this one:
Think of the "internet" (or any physical network) as a copper pipe standing
on end, and IP data packets are coloured marbles that we drop into the top
and retrieve from the bottom. The marbles can only go into (or through)
the pipe at a given rate, since the pipe comes to a minimum diameter at
some point along its length (we don't care where). Each TCP connection is
identified by colour of the marbles being sent through the pipe, and the
receiver just grabs the marbles and sorts them out by looking at their
colour. Using this analogy, we can see that extra connections CANNOT
increase total bandwidth, since the number of marbles per second hasn't
changed, we have merely added more colours to the mix. The only way to
increase bandwidth is to increase the size of the pipe (change ISP), or to
somehow grab an extra pipe (new TCP connection goes to a different server,
and my end of the pipe is big enough).
Let's go back to my original post's items, and mark them up using the
marble analog:
1. Your winsock driver is poorly configured
(not making full use of the pipe on each TCP connection)
2. Your extra bandwidth isn't "real", only perceived
(usually poor measurment tools)
3. Your extra connections are being handed off to separate servers, and at
least one of those servers isn't able to handle the full load.
(extra pipe added to new server)
4. Server has bandwidth limited each connection
(effectively adds another pipe for each connection)
Note -- I missed #4 in my original post.
In all other cases, adding extra TCP connections merely adds overhead and
reduces effective bandwidth. It takes CPU power to sequence and ACK each
packet, and as you increase connections, that overhead must increase. It
requires extra bytes to establish a connection (SYN/ACK packets). It
requires extra bytes to request a download for each connection. All of
these bytes go over the identical "wire", so there is no possibility that
adding these extra data packets will improve your download bandwidth.
One final note -- don't believe the numbers that your news client reports
to you. As an example, Xnews reports incorrect bandwidth values because
the individual file fragments and download times are too small to provide
accurate numbers. Your best bet is to use a stopwatch to measure the time
taken for a download of a very large file (say 700 megabytes).
I guess I need to make one more comment -- none of this talks about server
latency issues. In some cases, multiple connections make it possible to
achieve a shorter download time, even though you end up transmitting a
higher number of bytes. This does NOT mean your have gotten higher
bandwidth via extra connections.
--
Murray Peterson
Email: murray_peterson@shaw.ca (remove underscore)
URL: http://members.shaw.ca/murraypeterson/
Technical Details
Message-ID:
<Xns92F485C5CDA89farkle@24.71.223.159>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news2.calgary.shaw.ca.POSTED!not-for-mailReferences:
<Xns92F0EA2E42208icecold987654321@66.185.95.104> <Xns92F0D799BE566farkle@24.71.223.159> <aul72p.3vvjphp.1@ch.esperado.hamster-fr.org> <Xns92F2EAA8D2AB6dcspamfree@oh11jvax13.eh135> <20021229003759.067$0B@news.newsreader.com> <Xns92F3DBBE8E9Efarkle@24.71.223.159> <Xns92F4754F5910Bpt101594@129.250.170.91>Show Full Headers
Complete Article Headers
Message-ID: <Xns92F485C5CDA89farkle@24.71.223.159> Subject: Re: [XNews]Feature Request: Connections>4 Date: Mon, 30 Dec 2002 20:05:30 GMT From: Murray Peterson <mwp@home.com.invalid> References: <Xns92F0EA2E42208icecold987654321@66.185.95.104> <Xns92F0D799BE566farkle@24.71.223.159> <aul72p.3vvjphp.1@ch.esperado.hamster-fr.org> <Xns92F2EAA8D2AB6dcspamfree@oh11jvax13.eh135> <20021229003759.067$0B@news.newsreader.com> <Xns92F3DBBE8E9Efarkle@24.71.223.159> <Xns92F4754F5910Bpt101594@129.250.170.91> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news2.calgary.shaw.ca.POSTED!not-for-mail X-Trace-PostClient-IP: 68.145.202.240 Newsgroups: news.software.readers Organization: None User-Agent: Xnews/5.04.25 Lines: 88 NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse@shaw.ca X-Trace: news2.calgary.shaw.ca 1041278730 24.71.223.147 (Mon, 30 Dec 2002 13:05:30 MST) NNTP-Posting-Date: Mon, 30 Dec 2002 13:05:30 MST