linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Samuel Meder <meder@mcs.anl.gov>
Cc: linux-kernel@vger.kernel.org
Subject: Re: TCP capture effect (was Re: Linux TCP impotency)
Date: Mon, 14 May 2001 23:46:04 +0200	[thread overview]
Message-ID: <20010514234604.A4694@gruyere.muc.suse.de> (raw)
In-Reply-To: <20010514161509.B3192@titan.mcs.anl.gov>
In-Reply-To: <20010514161509.B3192@titan.mcs.anl.gov>; from meder@mcs.anl.gov on Mon, May 14, 2001 at 04:15:12PM -0500

On Mon, May 14, 2001 at 04:15:12PM -0500, Samuel Meder wrote:
> I'm seeing a similar effect myself. When I use all my available sdsl
> bandwidth (say doing a bulk data transfer), DNS lookups will often
> time out. This is with the default buffer settings/2.4.4. 

The problem is that the DNS resolver in glibc has a too low setting
for retransmits before giving up (4-5 or so only, it's also a big problem
together with dynamic IP and dial-on-demand where the socket address rewriting
needs some time) Fix is to change glibc to retransmit more often and 
recompile it or alternatively use a local dns proxy that does more aggressive
retransmits (that won't fix the low timeout though)

> I'm curious about this effect so I've been trying to find information
> on this and while I can find lots of information on the Ethernet
> capture effect there doesn't seem to be anything on the TCP capture
> effect. Could someone point me at an explanation of this effect?

I also don't know that term, but the basic problem is that TCP only slows
down when its packets are dropped. Packets are dropped when a device queue
fills, and when one sender is much faster than the other the faster sender
often wins the race, while the packets of the slower one get dropped.
[this is a rough simplification; there have been many books and papers
written on queueing in the internet]

One problem is for example that Linux's default queue length is good
for ethernet, but not slower or higher latency links.
You can try to tune it using ifconfig device txqueuelen <number>. 
Try values between 5-30, default is 100.

DSL also has very asymetric bandwidth, if you're saturating e.g. the uplink
channel completely acks in the other direction will also have a hard
time to get through.

-Andi


  parent reply	other threads:[~2001-05-14 21:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-14 21:15 TCP capture effect (was Re: Linux TCP impotency) Samuel Meder
2001-05-14 21:25 ` Alan Cox
2001-05-14 21:46 ` Andi Kleen [this message]
2001-05-15  3:49   ` TCP capture effect :: estimate queue length ? God
2001-05-15  6:06     ` Ralf Baechle
2001-05-15  7:50       ` TCP capture effect :: estimate queue length ? :: pathchar God
2001-05-15  3:54   ` TCP capture effect :: estimate queue length ? David S. Miller
2001-05-15  4:44     ` God

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010514234604.A4694@gruyere.muc.suse.de \
    --to=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=meder@mcs.anl.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).