All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: Patrick McHardy <kaber@trash.net>
Cc: Mailinglist <netfilter-devel@lists.netfilter.org>,
	Netfilter, Glen Turner <glen.turner@aarnet.edu.au>
Subject: Re: [PATCH] Add TCPCONG target to patch-o-matic
Date: Wed, 11 Oct 2006 13:04:13 -0700	[thread overview]
Message-ID: <20061011130413.6d44063f@freekitty> (raw)
In-Reply-To: <452C81E2.1040206@trash.net>

On Wed, 11 Oct 2006 07:32:18 +0200
Patrick McHardy <kaber@trash.net> wrote:

> Glen Turner wrote:
> > Patrick McHardy wrote:
> > 
> >> I don't think iptables is the right place to do this. It should
> >> be controllable through routing IMO (which can already control
> >> some aspects of congestion control).
> > 
> > 
> > I too think the choice should usually be done through routing,
> > with the route holding the preferred congestion control algorithm
> > for traffic with that prefix. Whereas now the preferred algorithm
> > is read from a global parameter.
> > 
> > But the algorithm for a particular connection should still be
> > able to be changed through iptables.
> > 
> > Firstly, not every application can be easily altered to use
> > setsockopt() to select a differing algorithm from the default.
> > This is the argument used for the TCPMSS and similar targets.
> 
> The difference is that TCPMSS changes packet data (also for
> forwarded packets) and doesn't fiddle around with sockets.
> 
> > As the range of congestion control algorithms grows sysadmins
> > will want to choose differing algorithms for differing
> > applications. For example, most algorithm's Ack strategies
> > interact poorly with transactional and remote procedure call
> > traffic, so choosing an algorithm which handles this well
> > could make, say, NFS over TCP traffic run a lot faster.

That's a problem with delayed ack's not the congestion control
stuff.

> > Secondly, I want to make it easy for kernel and protocol
> > developers to run differing algorithms on differing port
> > numbers to test inter-algorithm fairness.  Some TCP algorithms
> > are quite unfair -- unable even to share a link 50:50 between
> > two identical flows started a few seconds apart.  A TCPCONG
> > target makes it much easier to do this testing. Now that the
> > kernel developers are getting good performance on long fat
> > pipes the fairness and other attributes of that performance
> > will be their next concern.
> 
> It still strikes me as a bit of a hack. Lets see what Stephen
> thinks.
> 

I don't like iptables interacting back with the socket state.
The only congestion control that makes sense to be application specific
is the TCP-LP stuff. The others are just duking it out, to see which
one should be the default.

I want to put the congestion choice in the route metrics as an option,
just haven't got around to doing it that way. The only advantage do
doing it in IP tables is that you can make rules by port etc.

-- 
Stephen Hemminger <shemminger@osdl.org>

  reply	other threads:[~2006-10-11 20:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-04  7:12 Patch-o-matic says "unable to find ladd slot" in Makefile Glen Turner
2006-10-04 19:54 ` Pablo Neira Ayuso
2006-10-05  8:00   ` [PATCH] Add TCPCONG target to patch-o-matic Glen Turner
2006-10-09 15:12     ` Patrick McHardy
2006-10-10  7:00       ` Glen Turner
2006-10-11  5:32         ` Patrick McHardy
2006-10-11 20:04           ` Stephen Hemminger [this message]
2006-10-12  0:37             ` Glen Turner
2006-10-12  0:57               ` Patrick McHardy

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=20061011130413.6d44063f@freekitty \
    --to=shemminger@osdl.org \
    --cc=glen.turner@aarnet.edu.au \
    --cc=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.