免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1551 | 回复: 3
打印 上一主题 下一主题

tc问题,tc报错,求助! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-09-20 09:57 |只看该作者 |倒序浏览
我的tc如下 记得以前as4运行没有问题
现在fc4下运行 发现 /var/log/message 中有如下错误
Sep 23 13:30:56 localhost kernel: HTB: quantum of class 10011 is small. Consider r2q change.
Sep 23 13:30:56 localhost kernel: HTB: quantum of class 10011 is small. Consider r2q change.
Sep 23 13:30:56 localhost kernel: HTB: quantum of class 10001 is big. Consider r2q change.
Sep 23 13:30:56 localhost kernel: HTB: quantum of class 10111 is small. Consider r2q change.
Sep 23 13:30:56 localhost kernel: HTB: quantum of class 10121 is small. Consider r2q change.
是什么原因,大家有知道的告诉我一下好么

tc qdisc add dev $CT_EXT_IF root handle 1: htb default 132
  tc class add dev $CT_EXT_IF parent 1: classid 1:1 htb rate 8192kbit ceil 8192kbit
    tc class add dev $CT_EXT_IF parent 1:1 classid 1:11 htb rate 64kbit ceil 64kbit prio 1
    tc class add dev $CT_EXT_IF parent 1:1 classid 1:12 htb rate 1536kbit ceil 1536kbit prio 2

    tc class add dev $CT_EXT_IF parent 1:1 classid 1:13 htb rate 6592kbit ceil 6592kbit prio 3
      tc class add dev $CT_EXT_IF parent 1:13 classid 1:131 htb rate 2080kbit ceil 6592kbit prio 4
      tc class add dev $CT_EXT_IF parent 1:13 classid 1:132 htb rate 4512kbit ceil 6592kbit prio 5

tc filter add dev $CT_EXT_IF parent 1:0 protocol ip prio 1 handle 1 fw classid 1:11   #ping
tc filter add dev $CT_EXT_IF parent 1:0 protocol ip prio 2 handle 2 fw classid 1:12   #game
tc filter add dev $CT_EXT_IF parent 1:0 protocol ip prio 3 handle 3 fw classid 1:131  #web
tc filter add dev $CT_EXT_IF parent 1:0 protocol ip prio 4 handle 4 fw classid 1:132  #other



tc qdisc add dev $CNC_EXT_IF root handle 1: htb default 132
  tc class add dev $CNC_EXT_IF parent 1: classid 1:1 htb rate 8192kbit ceil 8192kbit
    tc class add dev $CNC_EXT_IF parent 1:1 classid 1:11 htb rate 64kbit ceil 64kbit prio 1
    tc class add dev $CNC_EXT_IF parent 1:1 classid 1:12 htb rate 1536kbit ceil 1536kbit prio 2

    tc class add dev $CNC_EXT_IF parent 1:1 classid 1:13 htb rate 6592kbit ceil 6592kbit prio 3
      tc class add dev $CNC_EXT_IF parent 1:13 classid 1:131 htb rate 2080kbit ceil 6592kbit prio 4
      tc class add dev $CNC_EXT_IF parent 1:13 classid 1:132 htb rate 4512kbit ceil 6592kbit prio 5

tc filter add dev $CNC_EXT_IF parent 1:0 protocol ip prio 1 handle 11 fw classid 1:11   #ping
tc filter add dev $CNC_EXT_IF parent 1:0 protocol ip prio 2 handle 12 fw classid 1:12   #game
tc filter add dev $CNC_EXT_IF parent 1:0 protocol ip prio 3 handle 13 fw classid 1:131  #web
tc filter add dev $CNC_EXT_IF parent 1:0 protocol ip prio 4 handle 14 fw classid 1:132  #other

论坛徽章:
0
2 [报告]
发表于 2005-09-21 09:56 |只看该作者

tc问题,tc报错,求助!

问题已经解决谢谢大家!

论坛徽章:
0
3 [报告]
发表于 2005-09-21 11:48 |只看该作者

tc问题,tc报错,求助!

哪里的问题?

论坛徽章:
0
4 [报告]
发表于 2005-09-21 15:14 |只看该作者

tc问题,tc报错,求助!

我怕是子类带宽高于父类带宽数字重写了一下
带宽改成
8000
  100 ping
  1400 game
  2000 web
  4500 other
就ok了

可我再看 以前带宽分配的应该没错,而且as4上我记得没有问题!
quantum 这个量让tc自己判断因该没有问题啊!难道是bug?
有知道原因的一定告诉我啊!缘分哪!谢谢了哦!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP