Re: HTB - What's the minimal value for 'rate' parameter?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jarek Poplawski
Date: Wednesday, April 14, 2010 - 2:45 pm

Antonio Almeida wrote, On 04/14/2010 12:22 PM:



class htb 1:1 root rate 1000Mbit ceil 1000Mbit
class htb 1:2 parent 1:1 rate 4096Kbit ceil 4096Kbit
class htb 1:10 parent 1:2 rate 1024Kbit ceil 4096Kbit
class htb 1:11 parent 1:2 rate 1024Kbit ceil 4096Kbit
class htb 1:101 parent 1:10 prio 3 rate 8bit ceil 4096Kbit
class htb 1:111 parent 1:11 prio 3 rate 8bit ceil 4096Kbit

Classes 1:101 and 1:111 have too low rates, which causes wrong (overflowed!)
values in their rate tables, so their rates could be practically
uncontrollable. They are limited by their ceils instead, so something like:

class htb 1:101 parent 1:10 leaf 101: prio 3 rate 4096Kbit ceil 4096Kbit
class htb 1:111 parent 1:11 leaf 111: prio 3 rate 4096Kbit ceil 4096Kbit

But then their guaranteed rates are higher than their parents, and the
sum is higher than grandparent's rate, which means the config is wrong.
(You have to control these sums - HTB doesn't.)

As I wrote before, the minimal (overflow safe) rate depends on max
packet size, and for 1500 byte it would be something around:
1500b/2min, so if your clients can wait so long, try this:

class htb 1:101 parent 1:10 leaf 101: prio 3 rate 100bit ceil 4096Kbit
class htb 1:111 parent 1:11 leaf 111: prio 3 rate 100bit ceil 4096Kbit

Regards,
Jarek P.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
HTB - What's the minimal value for 'rate' parameter?, Antonio Almeida, (Thu Apr 8, 4:07 am)
Re: HTB - What's the minimal value for 'rate' parameter?, Jarek Poplawski, (Thu Apr 8, 2:33 pm)
Re: HTB - What's the minimal value for 'rate' parameter?, Antonio Almeida, (Fri Apr 9, 8:40 am)
Re: HTB - What's the minimal value for 'rate' parameter?, Jarek Poplawski, (Fri Apr 9, 2:26 pm)
Re: HTB - What's the minimal value for 'rate' parameter?, Antonio Almeida, (Wed Apr 14, 3:22 am)
Re: HTB - What's the minimal value for 'rate' parameter?, Jarek Poplawski, (Wed Apr 14, 2:45 pm)
Re: HTB - What's the minimal value for 'rate' parameter?, Antonio Almeida, (Fri Apr 16, 4:56 am)
Re: HTB - What's the minimal value for 'rate' parameter?, Benny Amorsen, (Sat Apr 17, 2:19 am)
Re: HTB - What's the minimal value for 'rate' parameter?, Jarek Poplawski, (Sat Apr 17, 2:01 pm)