LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 595|回复: 4

有没有高手能够看懂下面的网关的cbq的filter

[复制链接]
发表于 2004-6-10 22:15:06 | 显示全部楼层 |阅读模式
tc -s qdisc ls dev eth1
qdisc cbq 1: rate 100Mbit (bounded,isolated) prio no-transmit
Sent 3551491382 bytes 5941669 pkts (dropped 149, overlimits 1637461)
borrowed 0 overactions 0 avgidle 0 undertime 0


tc -s class ls dev eth1
class cbq 1:77 parent 1:1 rate 2Mbit (bounded) prio 1
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1: root rate 100Mbit (bounded,isolated) prio no-transmit
Sent 3552330816 bytes 5942939 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:4d8 parent 1:6e rate 192Kbit (bounded) prio 1
Sent 8849916 bytes 105809 pkts (dropped 0, overlimits 1980)
borrowed 0 overactions 560 avgidle 953 undertime 0
class cbq 1:76 parent 1:1 rate 8Mbit (bounded) prio 1
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:67 parent 1:1 rate 80Mbit (bounded) prio 1
Sent 5705114 bytes 6674 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:1 parent 1: rate 100Mbit (bounded) prio 1
Sent 158169631 bytes 461213 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:75 parent 1:1 rate 8Mbit (bounded) prio 1
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:74 parent 1:1 rate 8Mbit (bounded) prio 1
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:444 parent 1:68 rate 320Kbit (bounded) prio 1
Sent 116 bytes 2 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle -1465 undertime -1.65365e+09
class cbq 1:73 parent 1:1 rate 8Mbit (bounded) prio 1
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:4cd parent 1:6e rate 192Kbit (bounded) prio 1
Sent 11055 bytes 201 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 953 undertime 0
class cbq 1:72 parent 1:1 rate 8Mbit (bounded) prio 1
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:4a8 parent 1:6e rate 192Kbit (bounded) prio 1
Sent 4773039 bytes 11431 pkts (dropped 0, overlimits 182664)
borrowed 0 overactions 3064 avgidle 953 undertime 0
class cbq 1:71 parent 1:1 rate 8Mbit (bounded) prio 1
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:70 parent 1:1 rate 8Mbit (bounded) prio 1
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:6e parent 1:1 rate 8Mbit (bounded) prio 1
Sent 136262404 bytes 439226 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:6f parent 1:1 rate 8Mbit (bounded) prio 1
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:6c parent 1:1 rate 8Mbit (bounded) prio 1
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:6d parent 1:1 rate 8Mbit (bounded) prio 1
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:4b3 parent 1:6e rate 192Kbit (bounded) prio 1
Sent 8435514 bytes 100225 pkts (dropped 0, overlimits 1929)
borrowed 0 overactions 477 avgidle 953 undertime 0
class cbq 1:480 parent 1:6e rate 192Kbit (bounded) prio 1
Sent 11645235 bytes 15102 pkts (dropped 0, overlimits 521163)
borrowed 0 overactions 7286 avgidle 953 undertime 0
class cbq 1:6a parent 1:1 rate 8Mbit (bounded) prio 1
Sent 1215 bytes 5 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:44d parent 1:6e rate 192Kbit (bounded) prio 1
Sent 3448879 bytes 5689 pkts (dropped 0, overlimits 94066)
borrowed 0 overactions 2236 avgidle 953 undertime 0
class cbq 1:4c5 parent 1:6e rate 192Kbit (bounded) prio 1
Sent 8052642 bytes 89149 pkts (dropped 0, overlimits 87266)
borrowed 0 overactions 1475 avgidle 953 undertime 0
class cbq 1:6b parent 1:1 rate 2Mbit (bounded) prio 1
Sent 3288669 bytes 3626 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle -1576 undertime 4.60925e+08
class cbq 1:79 parent 1:1 rate 8Mbit (bounded) prio 1
Sent 2968 bytes 15 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle -40 undertime -1.64779e+09
class cbq 1:68 parent 1:1 rate 8Mbit (bounded) prio 1
Sent 6216376 bytes 5289 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 17 undertime 0
class cbq 1:78 parent 1:1 rate 8Mbit (bounded) prio 1
Sent 186066 bytes 621 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0
class cbq 1:69 parent 1:1 rate 8Mbit (bounded) prio 1
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 76 undertime 0

tc -s filter ls dev eth1
filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:44d
match ac140c97/ffffffff at 16
filter parent 1: protocol ip pref 1 u32 fh 800::801 order 2049 key ht 800 bkt 0 flowid 1:480
match ac140c94/ffffffff at 16
filter parent 1: protocol ip pref 1 u32 fh 800::802 order 2050 key ht 800 bkt 0 flowid 1:4a8
match ac140c15/ffffffff at 16
filter parent 1: protocol ip pref 1 u32 fh 800::803 order 2051 key ht 800 bkt 0 flowid 1:4b3
match ac140c1c/ffffffff at 16
filter parent 1: protocol ip pref 1 u32 fh 800::804 order 2052 key ht 800 bkt 0 flowid 1:4c5
match ac140c23/ffffffff at 16
filter parent 1: protocol ip pref 1 u32 fh 800::805 order 2053 key ht 800 bkt 0 flowid 1:4cd
match ac140c19/ffffffff at 16
filter parent 1: protocol ip pref 1 u32 fh 800::806 order 2054 key ht 800 bkt 0 flowid 1:4d8
match ac140c28/ffffffff at 16

这个是它的全部的cbq的配置.
它的filter是按照什么来区分的
我看了一下是不是ac14是字节数
但是后面的16位在ip数据包头里面是指16位表示,这个有什么用
 楼主| 发表于 2004-6-10 22:33:59 | 显示全部楼层
它的filter好像是动态生成的
发表于 2004-6-11 00:46:37 | 显示全部楼层
filter parent 1: protocol ip pref 1 u32 fh 800::806 order 2054 key ht 800 bkt 0 flowid 1:4d8
match ac140c28/ffffffff at 16匹配的是ac140c28/ffffffff
他的区分也在这里啊。。。。

你的这台电脑好像配置成网吧里的10m光纤用的路由用的。。。。
呵呵。。。。。
 楼主| 发表于 2004-6-11 08:05:10 | 显示全部楼层
filter parent 1: protocol ip pref 1 u32 fh 800::806 order 2054 key ht 800 bkt 0 flowid 1:4d8
match ac140c28/ffffffff at 16匹配的是ac140c28/ffffffff
这个是不是从第16位开始匹配后面的32位
发表于 2004-6-12 13:59:07 | 显示全部楼层
这个是不是从第16位开始匹配后面的32位
不是,这里没有什么特别的意思,这里不是重点,要看这个ac140c28/ffffffff 。。。。
你想看filter来解读配置的话很难,,,,很多都其他的参数都没有ls出来。。。。。
这个ls只是个状态的显示。。。。

这个流量控制用在什么地方。。。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表