All of lore.kernel.org
 help / color / mirror / Atom feed
From: shun chain <chainshun@gmail.com>
To: lartc@vger.kernel.org
Subject: [LARTC] How to set HTB correct ?
Date: Fri, 01 Jul 2005 09:48:02 +0000	[thread overview]
Message-ID: <a928b92005070102482b016acc@mail.gmail.com> (raw)

Hi, everyone

I has a ADSL link about 4M bandwidth, and use HTB do bandwidth management.

When I config qdisc like below:
tc qdisc add dev br0 root handle 1: htb default 30 
tc class add dev br0 parent 1: classid 1:1 htb rate 4000kbit 
tc class add dev br0 parent 1:1 classid 1:10 htb rate 2000kbit ceil
4000kbit  prio 0
tc class add dev br0 parent 1:1 classid 1:20 htb rate 1000kbit ceil
4000kbit  prio 1
tc class add dev br0 parent 1:1 classid 1:30 htb rate 500kbit ceil
4000kbit  prio 2
tc class add dev br0 parent 1:1 classid 1:40 htb rate 100kbit ceil
4000kbit  prio 3
tc qdisc add dev br0 parent 1:10 handle 10: pfifo limit 10
tc qdisc add dev br0 parent 1:20 handle 20: pfifo limit 10
tc qdisc add dev br0 parent 1:30 handle 30: pfifo limit 10
tc qdisc add dev br0 parent 1:40 handle 40: pfifo limit 10

after seconds,  all 4 class will reach about 1M bps, it seems like HTB not work.

But if I set qdisc like below:
tc qdisc add dev br0 root handle 1: htb default 30 
tc class add dev br0 parent 1: classid 1:1 htb rate 2000kbit 
tc class add dev br0 parent 1:1 classid 1:10 htb rate 2000kbit ceil
4000kbit  prio 0
tc class add dev br0 parent 1:1 classid 1:20 htb rate 1000kbit ceil
4000kbit  prio 1
tc class add dev br0 parent 1:1 classid 1:30 htb rate 500kbit ceil
4000kbit  prio 2
tc class add dev br0 parent 1:1 classid 1:40 htb rate 100kbit ceil
4000kbit  prio 3
tc qdisc add dev br0 parent 1:10 handle 10: pfifo limit 10
tc qdisc add dev br0 parent 1:20 handle 20: pfifo limit 10
tc qdisc add dev br0 parent 1:30 handle 30: pfifo limit 10
tc qdisc add dev br0 parent 1:40 handle 40: pfifo limit 10

then bandwidth will be split fit for  2:1: 0.5: 0.1,  class 1:10 will
get about 2.5 M.
it seems like that HTB works well.

I do not understand  how  it works like this.

Thank you for your help in advance.

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

                 reply	other threads:[~2005-07-01  9:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=a928b92005070102482b016acc@mail.gmail.com \
    --to=chainshun@gmail.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.