免费注册 查看新帖 |

Chinaunix

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

TC htb 100M->10M导致系统崩溃 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-01-23 16:58 |只看该作者 |倒序浏览
我的环境是:

~ # uname -r
2.6.15--LSDK-7.3.0.387
~ #

iproute的版本是iproute2-2.6.37


TC命令如下:

  1. tc qdisc add dev eth1 root handle 1: htb r2q 64
  2. #
  3. # root class:(one root class,one vlan?)
  4. tc class add dev eth1 classid 1:1 parent 1:0 htb rate 100Mbit burst 1024
  5. #
  6. # other class (base pri 0-7)
  7. tc class add dev eth1 classid 1:100 parent 1:1 htb prio 0 rate 30Mbit ceil 100Mbit burst 1024
  8. tc class add dev eth1 classid 1:101 parent 1:1 htb prio 1 rate 10Mbit ceil 100Mbit burst 1024
  9. tc class add dev eth1 classid 1:102 parent 1:1 htb prio 2 rate 10Mbit ceil 100Mbit burst 1024
  10. tc class add dev eth1 classid 1:103 parent 1:1 htb prio 3 rate 10Mbit ceil 100Mbit burst 1024
  11. tc class add dev eth1 classid 1:104 parent 1:1 htb prio 4 rate 10Mbit ceil 100Mbit burst 1024
  12. tc class add dev eth1 classid 1:105 parent 1:1 htb prio 5 rate 10Mbit ceil 100Mbit burst 1024
  13. tc class add dev eth1 classid 1:106 parent 1:1 htb prio 6 rate 10Mbit ceil 100Mbit burst 1024
  14. tc class add dev eth1 classid 1:107 parent 1:1 htb prio 7 rate 10Mbit ceil 100Mbit burst 1024
  15. #
  16. tc filter add dev eth1 protocol all parent 1:0 u32 match u32 0x00008100 0000ffff at -8 match u8 0xe0 f0 at -4 flowid 1:100
  17. tc filter add dev eth1 protocol all parent 1:0 u32 match u32 0x00008100 0000ffff at -8 match u8 0xc0 f0 at -4 flowid 1:101
  18. tc filter add dev eth1 protocol all parent 1:0 u32 match u32 0x00008100 0000ffff at -8 match u8 0xa0 f0 at -4 flowid 1:102
  19. tc filter add dev eth1 protocol all parent 1:0 u32 match u32 0x00008100 0000ffff at -8 match u8 0x80 f0 at -4 flowid 1:103
  20. tc filter add dev eth1 protocol all parent 1:0 u32 match u32 0x00008100 0000ffff at -8 match u8 0x60 f0 at -4 flowid 1:104
  21. tc filter add dev eth1 protocol all parent 1:0 u32 match u32 0x00008100 0000ffff at -8 match u8 0x40 f0 at -4 flowid 1:105
  22. tc filter add dev eth1 protocol all parent 1:0 u32 match u32 0x00008100 0000ffff at -8 match u8 0x20 f0 at -4 flowid 1:106
  23. tc filter add dev eth1 protocol all parent 1:0 u32 match u32 0x00008100 0000ffff at -8 match u8 0x00 f0 at -4 flowid 1:107
复制代码
SmartBits 用1518长度的字节打100M的流,出口设置为100M,入口设置为10M,设置为5秒
打的是带VLAN的流,总共八个,都是VLAN101,分别对应优先级0-7
分配如下:
pri0:35M; pri1: 35M; pri2:4M; pri3:4M; pri4:19M; pri5: 10M;pri6:3M;pri7:3M



但是这样一打流量就直接系统崩溃了,为什么?

论坛徽章:
0
2 [报告]
发表于 2011-06-26 22:26 |只看该作者
求解~~

论坛徽章:
0
3 [报告]
发表于 2011-06-26 22:27 |只看该作者
回复 1# 灰菲湮灭


    和内核有没关系?

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
4 [报告]
发表于 2011-06-27 17:32 |只看该作者
发到LINUX 网络问题版看下。

论坛徽章:
0
5 [报告]
发表于 2011-06-28 13:26 |只看该作者
把smartbit中的速率都调小,包长调小,或者单条逐个打流,并逐条启用,慢慢排除嘛!一下子啥都打上来,速率较大,那怎么分析呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP