CBQ prioritizing, the exact meaning of prio and weight

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

This is a point on the cbq which bothers me, maybe someone can help/

So CBQ. There are 'prio' and 'weight' which helps prioritizing traffic. The
information sources are diagreeing. Some say smaller "prio" numbers give more
priority, some say higher ones do (but neither of them tells exactly how.).
Some say higher "weight" gives more bandwidth (on congested links) and some
say lower numbers do.

What is the advised way to make a config where:


Main 1Mbit ----+----(handle 1:10) 256 kbit, 1/8 priority
               |
               +----(handle 1:20) 256 kbit, 3/8 prio
               |
               +----(handle 1:30) 512 kbit, 4/8 prio


so when for example 1:10 and 1:30 goes with full speed they get 1/5 and
4/5 of the full bandwidth (or of the borrowed bandwith of 1:20, which
is not the same but maybe the one I'm asking really for).

Am I correct to guess it as:

class cbq 1:10 parent 1:1 rate 256 kbit prio 5 weight 100
class cbq 1:20 parent 1:1 rate 256 kbit prio 5 weight 300
class cbq 1:30 parent 1:1 rate 512 kbit prio 5 weight 400


And what exactly happens when I do instead:

class cbq 1:10 parent 1:1 rate 256 kbit prio 7 weight 100
class cbq 1:20 parent 1:1 rate 256 kbit prio 5 weight 300
class cbq 1:30 parent 1:1 rate 512 kbit prio 1 weight 400


thanks,
Peter
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux