找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2954|回复: 3

[其它] 各位看看这个规则合不合理,小包优先自己修改了下。

[复制链接]
发表于 2010-5-12 11:25:05 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
本帖最后由 g1325 于 2010-5-12 11:26 编辑
  1. # software id = ZGQV-VWN
  2. #
  3. #change-mss
  4. / ip firewall mangle
  5. add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=clamp-to-pmtu comment="" disabled=yes
  6. #
  7. #标记和分类包
  8. / ip firewall mangle
  9. add chain=prerouting p2p=all-p2p action=mark-connection new-connection-mark=p2p-con passthrough=yes comment="" \
  10.     disabled=no
  11. add chain=prerouting connection-mark=p2p-con action=mark-packet new-packet-mark=p2p passthrough=yes comment="" \
  12.     disabled=no
  13. add chain=prerouting connection-mark=!p2p-con action=mark-packet new-packet-mark=general passthrough=yes comment="" \
  14.     disabled=no
  15. add chain=prerouting packet-size=0-512 action=mark-connection new-connection-mark=small-con passthrough=yes comment="" \
  16.     disabled=no
  17. add chain=prerouting packet-mark=!p2p connection-mark=small-con packet-size=0-512 action=mark-packet \
  18.     new-packet-mark=small passthrough=no comment="" disabled=no
  19. add chain=prerouting packet-size=513-1000 action=mark-connection new-connection-mark=middle-con passthrough=yes \
  20.     comment="" disabled=no
  21. add chain=prerouting packet-mark=!p2p connection-mark=middle-con packet-size=513-1000 action=mark-packet \
  22.     new-packet-mark=middle passthrough=no comment="" disabled=no
  23. add chain=prerouting packet-size=1001-1300 action=mark-connection new-connection-mark=middle-big-con passthrough=yes \
  24.     comment="" disabled=no
  25. add chain=prerouting packet-mark=!p2p connection-mark=middle-big-con packet-size=1001-1300 action=mark-packet \
  26.     new-packet-mark=middle-big passthrough=no comment="" disabled=no
  27. add chain=prerouting protocol=tcp src-port=80 action=mark-connection new-connection-mark=ie-con passthrough=yes \
  28.     comment="" disabled=no
  29. add chain=prerouting packet-mark=!p2p connection-mark=ie-con action=mark-packet new-packet-mark=ie passthrough=no \
  30.     comment="" disabled=no
  31. add chain=prerouting packet-size=1301-1500 action=mark-connection new-connection-mark=big-con passthrough=yes \
  32.     comment="" disabled=no
  33. add chain=prerouting packet-mark=!p2p connection-mark=big-con packet-size=1301-1500 action=mark-packet \
  34.     new-packet-mark=big passthrough=no comment="" disabled=no
  35. #
  36. #执行小包优先
  37. / queue tree
  38. add name="all" parent=global-in packet-mark="" limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 \
  39.     burst-threshold=0 burst-time=0s disabled=no
  40. add name="p2p" parent=all packet-mark=p2p limit-at=128000 queue=default priority=8 max-limit=300000 burst-limit=0 \
  41.     burst-threshold=0 burst-time=0s disabled=no
  42. add name="all-ClassA" parent=all packet-mark=general limit-at=0 queue=default priority=7 max-limit=0 burst-limit=0 \
  43.     burst-threshold=0 burst-time=0s disabled=no
  44. add name="ie" parent=all-ClassA packet-mark=ie limit-at=0 queue=default priority=7 max-limit=0 burst-limit=0 \
  45.     burst-threshold=0 burst-time=0s disabled=no
  46. add name="all-ClassB" parent=all-ClassA packet-mark="" limit-at=0 queue=default priority=6 max-limit=0 burst-limit=0 \
  47.     burst-threshold=0 burst-time=0s disabled=no
  48. add name="small" parent=all-ClassB packet-mark=small limit-at=0 queue=default priority=3 max-limit=0 burst-limit=0 \
  49.     burst-threshold=0 burst-time=0s disabled=no
  50. add name="middle" parent=all-ClassB packet-mark=middle limit-at=0 queue=default priority=4 max-limit=0 burst-limit=0 \
  51.     burst-threshold=0 burst-time=0s disabled=no
  52. add name="big" parent=all-ClassB packet-mark=big limit-at=0 queue=default priority=6 max-limit=0 burst-limit=0 \
  53.     burst-threshold=0 burst-time=0s disabled=no
  54. add name="middle-big" parent=all-ClassB packet-mark=middle-big limit-at=0 queue=default priority=5 max-limit=0 \
  55.     burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
复制代码
routeros
 楼主| 发表于 2010-5-12 11:25:49 | 显示全部楼层
本帖最后由 g1325 于 2010-5-12 11:28 编辑

小包优先优化版.rar (772 Bytes, 下载次数: 13)

小包优先优化版.rar

772 Bytes, 下载次数: 9

routeros
回复

使用道具 举报

发表于 2010-5-12 14:58:11 | 显示全部楼层
基本没一点用处,p2p连接多数是小包
routeros
回复

使用道具 举报

发表于 2010-5-12 15:12:39 | 显示全部楼层
小包现在的用处是不大了,都用DSCP了
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-6 14:03 , Processed in 0.050298 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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