From: "Zviad O. Giorgadze" Date: Thu, 07 Oct 2004 07:03:45 +0000 Subject: Re: Re: [LARTC] What is the reccomended minimum rate for leaf htb class for accurate operation? Message-Id: <20041007070151.C90A16CB7B4@mail.caucasus.net> List-Id: References: <20041006073827.5C1826CB7C7@mail.caucasus.net> In-Reply-To: <20041006073827.5C1826CB7C7@mail.caucasus.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org >> Does different rate / ceil for the root class make sense? >No. >Same for the classes attached to the root qdisc. They can not share >bandwidth. So your basi setup should be: >root htb qdisc > htb class with ceil = rate = link bandwidth > other classes So following script is reccomended? tc qdisc add dev eth0 root handle 1: htb default 11 r2q 10 # Class corresponding external interface throughput (for 115kbit ADSL) tc class add dev eth0 parent 1: classid 1:1 htb rate 115kbit ceil 115kbit # Classes for PC-s tc class add dev eth0 parent 1:1 classid 1:11 htb rate 55kbit ceil 115kbit prio 2 tc class add dev eth0 parent 1:1 classid 1:12 htb rate 48kbit ceil 115kbit prio 3 tc class add dev eth0 parent 1:1 classid 1:13 htb rate 12kbit ceil 115kbit prio 4 #End if script What can I do if the same interface (eth0) is used for other purposes (internal traffic generated from local servers)? If HTB class has the highest ceil set to 115kbit, how can I define other classes for example for internal traffic? Zviad _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/