找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 6829|回复: 4

[限速] p2p无法限速

[复制链接]
发表于 2011-12-25 17:07:44 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 eggborn 于 2011-12-25 17:08 编辑

在Mangle中先标记连接,再标记packet,可以看到有数据;但是在/queue tree中为何没有数据呢,这是为什么,下面是代码/ip firewall mangle
add action=mark-routing chain=prerouting comment=cnc disabled=no \
    dst-address-list=cnc new-routing-mark=cnc passthrough=no
add action=mark-connection chain=prerouting comment=p2p_conn disabled=no \
    new-connection-mark=p2p_conn p2p=all-p2p passthrough=yes
add action=mark-packet chain=prerouting comment="" connection-mark=p2p_conn \
    disabled=no new-packet-mark=p2p passthrough=yes
add action=mark-packet chain=prerouting comment=!p2p_conn connection-mark=\
    !p2p_conn disabled=no new-packet-mark=general passthrough=yes
add action=mark-packet chain=prerouting comment=small disabled=no \
    new-packet-mark=small packet-size=32-512 passthrough=yes
add action=mark-packet chain=prerouting comment=big disabled=no \
    new-packet-mark=big packet-size=512-1200 passthrough=yes


/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=800k \
    max-limit=2M name=p2p packet-mark=p2p parent=lan priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=20M name=ClassA packet-mark="" parent=lan priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=4M \
    max-limit=16M name=Leaf1 packet-mark=general parent=ClassA priority=7 \
    queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=4M \
    max-limit=16M name=Leaf2 packet-mark=big parent=ClassA priority=6 queue=\
    default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=Leaf3 packet-mark=small parent=ClassA priority=5 queue=\
    default



02.png
01.png
routeros
 楼主| 发表于 2011-12-25 17:13:49 | 显示全部楼层
具体思路:标记P2P为P2P,标记非P2P为general ,标记512-1200大包,标记32-512小包;队列中小包当然优化为5,大包priority=6,general的priority=7;P2P数据保留2M带宽,但是为何没有流量呢。
这个思路有没有更好的限速方法,比如网页优先视频,二者分开,请教大家!!!
routeros
回复

使用道具 举报

 楼主| 发表于 2011-12-25 17:40:44 | 显示全部楼层
采用方法一:将passthrough值为no.已经可以看到有流量了;不知这是为什么——请教一;

忘了说了,我还做了PCQ均分带宽/queue simple
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" \
    direction=both disabled=yes dst-address=0.0.0.0/0 interface=lan limit-at=\
    0/0 max-limit=20M/20M name=pcq_xiansu parent=none priority=8 queue=\
    pcq-upload/pcq-download target-addresses=192.168.15.0/24 total-queue=\
    default-small



自认为优化的还不够好,不能有效限制网页视频,还有网页相对打开较慢
routeros
回复

使用道具 举报

 楼主| 发表于 2011-12-25 17:42:21 | 显示全部楼层

收藏了你们的店铺QQ GRP:161267026 WWW.AI800.COM 提供基于RouterOS的一系列方法方案;强烈支持,嘿嘿
routeros
回复

使用道具 举报

 楼主| 发表于 2011-12-25 17:44:11 | 显示全部楼层
我们网吧最多在线110台机器,电信网通各10M光纤接入,ROS3.3版本,采用什么样的限速会比较好啊;CF,DATA,DNF玩的比较多
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-29 19:21 , Processed in 0.063342 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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