Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Mihai Vlad" <mihaivlad@web-profile.net>
To: lartc@vger.kernel.org
Subject: [LARTC] Split bandwidth equally per IP
Date: Thu, 04 Dec 2003 18:52:55 +0000	[thread overview]
Message-ID: <marc-lartc-107056586923918@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 1811 bytes --]

 

It's me again, with the same problem.

I want to be able to split the bandwidth per IP, as I have 10 clients in my
LAN and I want to be sure they get the same rate when downloading.

 

I followed all the steps from the HTB manual, but the script can be "beaten"
when one uses more connection for downloading ("FlashGet" or "Download
Accelerator").

I have the same rates for all the 10 IP-s in my LAN.

 

Stef Coene told me to decrease the burst. (Indeed, 80k was a huge burst) I
did that, but it seams nothing's changed.

Jon Zeeff said that sfq generally creates a queue per connection. (And that
is the reason why clients with more connections get more bandwidth)

 

So I need to change this "per connection" into "per IP".

Everything is clear, but I do not know what to change into my script to do
this.

I guess that I have to change "sfq perturb 10" into something else, but I do
not know into what :)

 

 

Here is my script:

 

 

$TC qdisc add dev $LAN_IFACE root handle 1: htb default 30 

$TC class add dev $LAN_IFACE parent 1: classid 1:1 htb rate 120kbit ceil
120kbit burst 2k

 

 

#--------default class---------

$TC class add dev $LAN_IFACE parent 1:1 classid 1:30 htb rate 1kbit ceil
120kbit burst 2k 

$TC qdisc add dev $LAN_IFACE parent 1:30 handle 300: sfq perturb 10

 

 

 

 

#-----10 client classes-------------

 

$TC class add dev $LAN_IFACE parent 1:1 classid 1:11 htb rate 12kbit ceil
120kbit burst 2k 

$FILTER_IP 192.168.0.121 flowid 1:11 

$TC qdisc add dev $LAN_IFACE parent 1:11 handle 110: sfq perturb 10

 

$TC class add dev $LAN_IFACE parent 1:1 classid 1:12 htb rate 12kbit ceil
120kbit burst 2k 

$FILTER_IP 192.168.0.122 flowid 1:12 

$TC qdisc add dev $LAN_IFACE parent 1:12 handle 120: sfq perturb 10

 

 

etc...

 

 

Thanks again for your patience.


[-- Attachment #2: Type: text/html, Size: 10363 bytes --]

             reply	other threads:[~2003-12-04 18:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-04 18:52 Mihai Vlad [this message]
2003-12-04 19:44 ` [LARTC] Split bandwidth equally per IP Stef Coene
2003-12-05 15:08 ` jzeeff
2003-12-05 15:19 ` jzeeff
2003-12-05 15:57 ` Mihai Vlad
2003-12-05 17:02 ` Martin A. Brown
2003-12-05 17:50 ` jzeeff
2003-12-05 22:45 ` Mihai Vlad
2003-12-07  0:12 ` jzeeff
2003-12-07  6:21 ` 'Martin A. Brown'
2003-12-07  6:23 ` 'Martin A. Brown'
2003-12-07  8:30 ` Mihai Vlad
2003-12-07  9:32 ` Chijioke Kalu
2003-12-07 21:19 ` Nickola Kolev
2003-12-17 16:56 ` Mihai Vlad

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=marc-lartc-107056586923918@msgid-missing \
    --to=mihaivlad@web-profile.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox