public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Anders Fugmann <afu@fugmann.dhs.org>
To: DervishD <raul@pleyades.net>
Cc: Linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Bandwidth 'depredation' revisited
Date: Tue, 11 Jun 2002 16:57:58 +0200	[thread overview]
Message-ID: <3D060FF6.5000409@fugmann.dhs.org> (raw)
In-Reply-To: <3D05EEAF.mailZE11URHZ@viadomus.com>

When you start a big download, you actually request a server to send as 
much data as possible to you. Quickly, the packet queues on your ISP's 
side gets filled up. If these queues are big (can hold many packets) you 
will see a rather high latency when trying to retrieve replys, since any 
pakcets (incl. ACK) will need first to enter the queue, and wait for 
their turn to be send to you.

The best solution would be to install some sort of traffic shaping on 
the remove side (you ISP), but that is often(/always) not a possible 
solution.

The second best solution is to simple drop packets comming in too 
quickly from the interface. By this, the sending machine will slow down 
transmission. The idea is to keep the queues at you ISP empty.

To do this you can use ingress scheduler.

Something like:
tc qdisc add dev eth0 handle ffff: ingress
tc filter add dev etc0 parent ffff: protocol ip prio 50 u32 \
         match ip src 0.0.0.0/0 police \
         rate 232kbit burst 10k drop flowid :1

The downside is, that this actually decreases the maximum download 
speed, but you can really feel the difference.

IIRC, All this was explained in the Advanced-Routing howto.
There is an example in it, which sets the ingress scheduler up. You can 
also take a look at the "wonder shaper" at http://lartc.org/wondershaper/.

Regards
Anders Fugmann

DervishD wrote:
>     Hi all :))
> 
>     I've took a look at the documentation related to Traffic Control
> and Class Based Queuing, but all of them seems to deal with upload
> bandwidth, so it won't solve my problem, which is that wget eats all
> my download bandwidth.
> 
>     I know: downlink traffic cannot be shaped and Traffic Control is
> for data WE send. So, am I missing something? Will my problem be solved
> and download bandwidth shared between apps thru Traffic Control or
> will I just get better interactive response?
> 
>     I think that I'm missing something here, but I'm clueless...
> 
>     Thanks in advance :)
> 
>     Raúl
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/




  reply	other threads:[~2002-06-11 14:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-11 12:35 Bandwidth 'depredation' revisited DervishD
2002-06-11 14:57 ` Anders Fugmann [this message]
2002-06-11 17:18   ` DervishD
2002-06-11 18:25     ` Anders Peter Fugmann
2002-06-11 20:20   ` Marius Gedminas
2002-06-11 20:59   ` Allan Sandfeld Jensen
2002-06-14  3:35   ` Albert D. Cahalan
2002-06-14  9:16     ` Anders Peter Fugmann
2002-06-14  9:17   ` lkml

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=3D060FF6.5000409@fugmann.dhs.org \
    --to=afu@fugmann.dhs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=raul@pleyades.net \
    /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