感谢回答。但我觉得还不够深:" />

有一些比较深入的问题:
1.burst和cburst如果配置得很大会产生什么影响
2.r2q,quantum是否和borrow速率有关系,具体如何
3.mtu,mpu和overhead都是与数据包长度有关的选项,配置不同值会产生什么影响
4.HTB令牌发放肯定有一个时间间隔,具体这个时间间隔是如何计算的。(间隔越短越精确,但消耗系统资源越大)
5.prio是绝对优先还是加权优先
6.prio优先级影响的是rate还是ceil或者是更复杂关系。
7.还有2个概念slot和pslot官方主页没有提起,这是什么东东?
# tc qdisc -h
Command "-h" is unknown, try "tc qdisc help".
# tc qdisc help
Usage: tc qdisc [ add | del | replace | change | get ] dev STRING
[ handle QHANDLE ] [ root | ingress | parent CLASSID ]
[ estimator INTERVAL TIME_CONSTANT ]
[ [ QDISC_KIND ] [ help | OPTIONS ] ]
tc qdisc show [ dev STRING ] [ingress]
Where:
QDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. }
OPTIONS := ... try tc qdisc add <desired QDISC_KIND> help
Command "help" is unknown, try "tc qdisc help".
# tc qdisc add htb help
What is "help"?
Usage: ... qdisc add ... htb [default N] [r2q N]
default minor id of class to which unclassified packets are sent {0}
r2q DRR quantums are computed as rate in Bps/r2q {10}
debug string of 16 numbers each 0-3 {0}
... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]
[prio P] [slot S] [pslot PS]
[ceil R2] [cburst B2] [mtu MTU] [quantum Q]
rate rate allocated to this class (class can still borrow)
burst max bytes burst which can be accumulated during idle period {computed}
mpu minimum packet size used in rate computations
overhead per-packet size overhead used in rate computations
ceil definite upper class rate (no borrows) {rate}
cburst burst but for ceil {computed}
mtu max packet size we create rate map for {1600}
prio priority of leaf; lower are served first {0}
quantum how much bytes to serve from leaf at once {use r2q}
TC HTB version 3.3
#
????????????????????
[ 本帖最后由 zhoutao0712 于 2010-1-22 11:33 编辑 ]