All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Unshapeable traffic
Date: Wed, 04 May 2005 18:54:49 +0000	[thread overview]
Message-ID: <42791A79.3040805@dsl.pipex.com> (raw)
In-Reply-To: <1294422007.20050503233431@wp.pl>

Tomasz Wrona wrote:
> AF> Do you know roughly how many active connections you have?
> 
> Up to 30K.

I think this could be the problem - If 30k connections all tried to send 
through 4mbit then a quick prod at xcalc tells me that each would get to 
send 1 1500 byte packet every 90 seconds.

> 
> However I just found propably reason of issue...
> 
> As p2p is both direction transfer most of it sends large ACK packets.
> After short investigation there are some facts:
> 
> 1)  40% of p2p ACK packets have payload larger than 1KB, other are regular
> ACKs
> 
> 2) 15% of all other traffic ACKs are longer than 1KB, 85% are regular
> ACKs.

Maybe - depends how you are testing, remember that all tcp packets have 
ack set after the initial handshake.

I know p2p like bittorrent does use a single connection in full duplex , 
but I never noticed it hurting upstream shaping - it does make 
downstream more bursty as the empty acks can get sent ahead of the 
piggybacked ones stuck in the queue and ack a large chunk of data.


> 
> I have priority class only for regular short ACKs, so other goes to
> custom p2p class.
> Cause ACKs have to be send after receiving some data propably that's why I can't
> slow down traffic to defined value. Every time customer receive p2p data,
> sends LARGE ACK. Outcome is that shaping p2p upload have impact on
> p2p download and vice versa or in other words, to shape upload, shape
> download also.
> Giving extra prio for large ACKs would be suicide. I suppose the only
> way to shape p2p is to dominate it by hard limits [up/down].
> 
> Please correct me if it's fake [and give an advise ;)].
>

Maybe limiting the number of connections per user would be best - if you 
can.

Andy.


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

      parent reply	other threads:[~2005-05-04 18:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-03 21:34 [LARTC] Unshapeable traffic Tomasz Wrona
2005-05-03 22:51 ` Andreas Klauer
2005-05-04  9:00 ` tw
2005-05-04  9:47 ` Andreas Klauer
2005-05-04 14:18 ` Andy Furniss
2005-05-04 14:58 ` Andy Furniss
2005-05-04 18:54 ` Andy Furniss [this message]

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=42791A79.3040805@dsl.pipex.com \
    --to=andy.furniss@dsl.pipex.com \
    --cc=lartc@vger.kernel.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.