All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ventseslav Derzhitski <vderzhitski@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] how to bring down htb rate to 3kbit?
Date: Tue, 15 Mar 2005 18:24:24 +0000	[thread overview]
Message-ID: <200503152024.24331.vderzhitski@gmail.com> (raw)
In-Reply-To: <20050315114243.53202.qmail@web8509.mail.in.yahoo.com>

On Tuesday 15 March 2005 13:42, kartheek wrote:
> Hello Everybody,
>
> I am successful in throttling down the Bandwidth to 8kbit using HTB. Below
> that I get report to change r2q. I want to bring down the Leaf class
> Bandwidth to 3kbit.
>
> My script is as below:
>
>
>
> Tc Script to throttle down the Bandwidth to 8kbit based on MAC address and
> IP address
>
> tc qdisc del dev eth0 root
>
> tc qdisc add dev eth0 root handle 1:0 htb default 30 r2q 1
>
>
>
> tc class add dev eth0 parent 1:0 classid 1:1 htb rate 24kbit ceil 24kbit
> quantum 1514
>
>
>
> tc class add dev eth0 parent 1:1 classid 1:10 htb rate 8kbit ceil 8kbit
>
> tc qdisc add dev eth0 parent 1:10 handle 10:0 sfq
>
>
>
> tc class add dev eth0 parent 1:1 classid 1:20 htb rate 8kbit ceil 8kbit
>
> tc qdisc add dev eth0 parent 1:20 handle 20:0 sfq
>
>
>
> tc class add dev eth0 parent 1:1 classid 1:30 htb rate 8kbit ceil 8kbit
>
> tc qdisc add dev eth0 parent 1:30 handle 30:0 sfq
>
>
>
> tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst
> 192.168.10.163 flowid 1:10
>
>
>
> tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32
>
> match u32 0x11e6bd53 0xffffffff at -12
>
> match u16 0x0011 0xffff at -14 flowid 1:20
>
>
>
>
>
>      If I am to Throttle down the Leaf class Bandwidth to 3kbit what should
> be the value of root qdisc r2q?? and what should be the value of root class
> quantum??
>
> Plz Plz Help
>
> Regards
>
> Kartheek
>
>
> Yahoo! India Matrimony: Find your life partneronline.

 Hi , Kartheek 
http://www.docum.org/docum.org/faq/cache/31.html 
 I think this may help you . The way i understand it  , quantum = rate / r2q , 
so you must set only quantum , r2q only helps "tc" for quantums calculation . 
Correct me if i am wrong .  

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

      reply	other threads:[~2005-03-15 18:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-15 11:42 [LARTC] how to bring down htb rate to 3kbit? kartheek
2005-03-15 18:24 ` Ventseslav Derzhitski [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=200503152024.24331.vderzhitski@gmail.com \
    --to=vderzhitski@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.