bsmqu 发表于 2008-1-22 17:25:06

呵呵,为什么楼主还不给我们讲解这个图呢

peterchen 发表于 2008-1-27 02:22:52

这个图是htb限速方式的处理方式的讲解图
queuing discipline (qdisc) - an algorithm that holds and maintains a queue of packets. It specifies the order of the outgoing packets (it means that queuing discipline can reorder packets). Qdisc also decides which packets to drop if there is no space for them
filter - a procedure that classifies packets. The filter is responsible for classifying packets so that they are put in the corresponding qdiscs
level - position of a class in the hierarchy
inner class - a class that has one or more child-classes attached to it. Inner classes do not store any packets, but they do traffic shaping. The class also does not have its own priority
leaf class - a class that has a parent but does not have any child-classes. Leaf classes are always located at level 0 of the hierarchy. Each leaf class has a qdisc, attached to it
self feed - an object that represents the exit for the packets from all the classes active at its level of the hierarchy. It consists of 8 self slots
self slot - an element of a self feed that corresponds to each particular priority. All classes, active at the same level, of one priority are attached to one self slot that they are using to send packets out through
active class (at a particular level) - a class that is attached to a self slot at the given level
inner feed - similar to self feed object, which consists of inner self slots, present on each inner class
inner feed slot - similar to self slot. Each inner feed consists of inner slots which represent a priority

是具体的说明,,,

我在网吧的应用,
/ queue tree
add name="HTB      " parent=Local-Lan-Gateway packet-mark="" limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no
add name="ICMP" parent=HTB         packet-mark=icmp-mark-packet limit-at=0 queue=default priority=1 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no
add name="            " parent=HTB         packet-mark=games-mark-packet limit-at=0 queue=default priority=1 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no
add name="      " parent=HTB         packet-mark="" limit-at=0 queue=default priority=8 max-limit=5000000 burst-limit=0 burst-threshold=0 burst-time=0s \
    disabled=no
add name="      " parent=HTB         packet-mark="" limit-at=0 queue=default priority=8 max-limit=9000000 burst-limit=0 burst-threshold=0 burst-time=0s \
    disabled=no
add name="    FTP" parent=         packet-mark=tel-ftp-mark-packet limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no
add name="    http" parent=         packet-mark=tel-http-mark-packet limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no
add name="    http" parent=         packet-mark=cnc-http-mark-packet limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no
add name="      " parent=         packet-mark=cnc-rstp-mark-packet limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no
add name="    QQ    " parent=         packet-mark=cnc-qqlive-mark-packet limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no
add name="      " parent=         packet-mark=cnc-xunlei-mark-packet limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no
add name="adsl    http" parent=HTB         packet-mark=adsl-http-mark-packet limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 \
    burst-threshold=0 burst-time=0s disabled=no
add name="      " parent=         packet-mark=tel-rstp-mark-packet limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no
add name="    P2P" parent=         packet-mark=cnc-p2p-mark-packet limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no

peterchen 发表于 2008-1-27 02:23:56

简单的说,就是标记后分别限速
简单的说只要可以标记连接的东西,都可以限制其速度。

peterchen 发表于 2008-1-27 02:24:18

我是这样理解的饿

yxwb015 发表于 2008-1-27 18:55:42

真是高人,解释的都看不懂:L
太专业了啊
页: 1 [2]
查看完整版本: 有看得懂官方的这幅图的高手吗