eggborn 发表于 2011-12-25 17:07:44

p2p无法限速

本帖最后由 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



eggborn 发表于 2011-12-25 17:13:49

具体思路:标记P2P为P2P,标记非P2P为general ,标记512-1200大包,标记32-512小包;队列中小包当然优化为5,大包priority=6,general的priority=7;P2P数据保留2M带宽,但是为何没有流量呢。
这个思路有没有更好的限速方法,比如网页优先视频,二者分开,请教大家!!!

eggborn 发表于 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



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

eggborn 发表于 2011-12-25 17:42:21

bobwalker 发表于 2011-12-25 17:21 static/image/common/back.gif
方法一:
修改一下。
add action=mark-packet chain=prerouting comment="" connection-mark=p2p_conn \
...

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

eggborn 发表于 2011-12-25 17:44:11

我们网吧最多在线110台机器,电信网通各10M光纤接入,ROS3.3版本,采用什么样的限速会比较好啊;CF,DATA,DNF玩的比较多
页: [1]
查看完整版本: p2p无法限速