Skip to contentSkip to conversation

Does HTB consider PRIO or not?

LARTC Oleg R. 2 participants 2 messages Sep 28, 2005

lore
Share & tools
lore

Oleg R.

author
#0 lore raw

Hello LARTC!!!!
There is a question that kills me everytime I think about it. I just love HTB and for one year since I started to work wih it I had no complains until one day. One client needs to allocate the shared bandwith , based on priorities. The HTB as everybody knows have the CEIL parameter and also PRIO which are supposed to solve the problem. Now the problem: I configure everything, rate for the first class rate for the second, ceil is the same prio for the first class is 1 for the second is 7. I suppose the second is getting the shared bandwidth in the last place..but it is not so. In practice firstly who start downloading is taking 60-70% of the shared bandwidth. it seems the PRIO doesn't work at all. IS IT REALLY SO??? I changed kernel from 2.4 to 2.6 , thought it is a kernel problem, no way it is not working.

My system :
Pentium 500
Ram 256 Mb
2 networks cards (in and out)
Linux Slackware 9.1
Kernel 2.6.13.2
iproute2

Some output from htb.init list

qdisc htb 1: r2q 10 default 20 direct_packets_stat 119
class htb 1:5 parent 1:2 prio 1 rate 128000bit ceil 950000bit burst 1663b cburst 2074b class htb 1:14 parent 1:2 leaf 14: prio 7 rate 18000bit ceil 900000bit burst 1608b cburst 2Kb

I use HTB.INIT to generate HTB rules.

Have a good day!!!!

Oleg R.

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 2 lines · Oleg R.

I suppose the second is getting the shared bandwidth in the last place..but it is not so.

Every class is allowed to use bandwidth as long as it does not have to borrow (the specified rate is guaranteed). Prio in HTB only affects borrowing bandwidth from other classes... In the example below, the class 1:5 should be allowed to borrow bandwidth before 1:14 does.

Quoted 7 lines

Some output from htb.init list

qdisc htb 1: r2q 10 default 20 direct_packets_stat 119 class htb 1:5 parent 1:2 prio 1 rate 128000bit ceil 950000bit burst 1663b cburst 2074b
class htb 1:14 parent 1:2 leaf 14: prio 7 rate 18000bit ceil 900000bit burst 1608b cburst 2Kb

The complete qdisc/class tree would be interesting. (Output of tc -s -d qdisc show and class show). Why are there pacekts in direct_packets_stat? Bad filter? What's 1:2 and 14:?

Andreas
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc