找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: sffqqq

[无线] 4M电信AD,优化后的满载图

  [复制链接]
发表于 2012-9-20 15:27:17 | 显示全部楼层
ROS_配置_4M_ADSL_进出分流-精确流控-限制Web_TV P2P

办公网络用,上网秒开,
不同带宽请自行修改,

导入不成功可手工输入
/ip firewall mangle
add action=change-mss chain=forward disabled=no new-mss=1440 passthrough=yes \
    protocol=tcp tcp-flags=syn
add action=mark-connection chain=prerouting comment="====> 1 Small" disabled=\
    no new-connection-mark=small-conn passthrough=yes protocol=icmp
add action=mark-connection chain=prerouting disabled=no dst-port=53 \
    new-connection-mark=small-conn passthrough=yes protocol=udp
add action=mark-packet chain=postrouting connection-mark=small-conn disabled=\
    no new-packet-mark=Small-up passthrough=no src-address-list=local
add action=mark-packet chain=prerouting connection-mark=small-conn disabled=\
    no new-packet-mark=Small-down passthrough=no src-address-type=!local
add action=mark-connection chain=prerouting comment="====> 2 Email" disabled=\
    no dst-port=25,110,3669-3671,9956-9959 new-connection-mark=mail_conn \
    passthrough=yes protocol=tcp
add action=mark-packet chain=postrouting connection-mark=mail_conn disabled=\
    no new-packet-mark=mail_packet_up passthrough=no src-address-list=local
add action=mark-packet chain=prerouting connection-mark=mail_conn disabled=no \
    new-packet-mark=mail_packet_down passthrough=no src-address-type=!local
add action=mark-connection chain=prerouting comment="====> 5 P2P" disabled=no \
    layer7-protocol="Extension \" .all \"" new-connection-mark=p2p_conn \
    passthrough=yes
add action=mark-connection chain=prerouting disabled=no new-connection-mark=\
    p2p_conn p2p=all-p2p passthrough=yes
add action=mark-packet chain=postrouting connection-mark=p2p_conn disabled=no \
    new-packet-mark=P2P-up passthrough=no src-address-list=local \
    src-address-type=""
add action=mark-packet chain=prerouting connection-mark=p2p_conn disabled=no \
    new-packet-mark=P2P-down passthrough=no src-address-type=!local
add action=mark-connection chain=prerouting comment="====> 4 WebTV" content=\
    .flv disabled=no new-connection-mark=webtv passthrough=yes
add action=mark-connection chain=prerouting content=.hlv disabled=no \
    new-connection-mark=webtv passthrough=yes
add action=mark-connection chain=prerouting content=.f4v disabled=no \
    new-connection-mark=webtv passthrough=yes
add action=mark-packet chain=postrouting connection-mark=webtv disabled=no \
    new-packet-mark=WebTV-up passthrough=no src-address-list=local \
    src-address-type=""
add action=mark-packet chain=prerouting connection-mark=webtv disabled=no \
    new-packet-mark=WebTV-down passthrough=no src-address-type=!local
add action=mark-connection chain=prerouting comment="====> 3 Web" disabled=no \
    dst-port=80 new-connection-mark=Web_80_conn passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=443 \
    new-connection-mark=Web_80_conn passthrough=yes protocol=tcp \
    src-address-type=""
add action=mark-connection chain=prerouting disabled=no dst-port=8000 \
    new-connection-mark=Web_80_conn passthrough=yes protocol=udp
add action=mark-connection chain=prerouting disabled=no dst-port=8291 \
    new-connection-mark=small-conn passthrough=yes protocol=tcp
add action=mark-packet chain=postrouting connection-mark=Web_80_conn \
    disabled=no new-packet-mark=Web-small-up packet-size=0-512 passthrough=no \
    src-address-list=local src-address-type=""
add action=mark-packet chain=postrouting connection-mark=Web_80_conn \
    disabled=no new-packet-mark=Web-big-up packet-size=513-1500 passthrough=\
    no src-address-list=local src-address-type=""
add action=mark-packet chain=prerouting connection-mark=Web_80_conn disabled=\
    no new-packet-mark=Web-small-down packet-size=0-512 passthrough=no \
    src-address-type=!local
add action=mark-packet chain=prerouting connection-mark=Web_80_conn disabled=\
    no new-packet-mark=Web-big-down packet-size=513-1500 passthrough=no \
    src-address-type=!local
add action=mark-connection chain=prerouting comment=other_conn disabled=no \
    new-connection-mark=other_conn passthrough=yes
add action=mark-packet chain=postrouting connection-mark=other_conn disabled=\
    no new-packet-mark=other-up passthrough=no src-address-list=local
add action=mark-packet chain=prerouting connection-mark=other_conn disabled=\
    no new-packet-mark=other-down passthrough=no src-address-type=!local

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=400k \
    max-limit=400k name="A all-up" packet-mark="" parent=global-out priority=\
    8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=50k \
    max-limit=200k name="3 Web-big-up" packet-mark=Web-big-up parent=\
    "A all-up" priority=3 queue=Web-big-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=90k \
    max-limit=100k name="8 Other-up" packet-mark="" parent="A all-up" \
    priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=3500k \
    max-limit=3500k name="A all-down" packet-mark="" parent=global-in \
    priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=1M \
    max-limit=3M name="3 Web-big-down" packet-mark=Web-big-down parent=\
    "A all-down" priority=3 queue=Web-big-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=1M \
    max-limit=3M name="5 Other-down" packet-mark="" parent="A all-down" \
    priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=100k \
    max-limit=500k name="2 web-small-down" packet-mark=Web-small-down parent=\
    "A all-down" priority=2 queue=Small-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=50k \
    max-limit=100k name="1 Small-up" packet-mark=Small-up parent="A all-up" \
    priority=1 queue=Small-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=300k \
    max-limit=1M name="2 P2P-down" packet-mark=P2P-down parent="5 Other-down" \
    priority=8 queue=P2P-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=400k \
    max-limit=3M name="1 WebTV-down" packet-mark=WebTV-down parent=\
    "5 Other-down" priority=7 queue=WebTV-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=30k \
    max-limit=100k name="1 WebTV-up" packet-mark=WebTV-up parent="8 Other-up" \
    priority=7 queue=WebTV-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=30k \
    max-limit=100k name="2 P2P-up" packet-mark=P2P-up parent="8 Other-up" \
    priority=8 queue=P2P-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=300k \
    max-limit=1M name=other-down packet-mark=other-down parent="5 Other-down" \
    priority=8 queue=other-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=30k \
    max-limit=100k name="2 other-up" packet-mark=other-up parent="8 Other-up" \
    priority=8 queue=other-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=100k \
    max-limit=200k name=1-small-down packet-mark=Small-down parent=\
    "A all-down" priority=1 queue=Small-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=50k \
    max-limit=200k name="2 Web-small-up" packet-mark=Web-small-up parent=\
    "A all-up" priority=2 queue=Small-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=500k \
    max-limit=3M name="4 mail-down" packet-mark=mail_packet_down parent=\
    "A all-down" priority=2 queue=mail-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=100k \
    max-limit=200k name="4 mail-up" packet-mark=mail_packet_up parent=\
    "A all-up" priority=2 queue=mail-up

/queue type
set 0 kind=pfifo name=default pfifo-limit=50
set 1 kind=pfifo name=ethernet-default pfifo-limit=50
set 2 kind=sfq name=wireless-default sfq-allot=1514 sfq-perturb=5
set 3 kind=red name=synchronous-default red-avg-packet=1000 red-burst=20 \
    red-limit=60 red-max-threshold=50 red-min-threshold=10
set 4 kind=sfq name=hotspot-default sfq-allot=1514 sfq-perturb=5
add kind=pcq name=WebTV-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=WebTV-up pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=Web-big-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=Web-big-up pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=P2P-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=100k \
    pcq-src-address-mask=32 pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=P2P-up pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=Small-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=Small-up pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=PCQ-Down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=PCQ-UP pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=other-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=1M pcq-src-address-mask=\
    32 pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=other-up pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=mail-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=mail-up pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
set 19 kind=none name=only-hardware-queue
set 20 kind=mq-pfifo mq-pfifo-limit=50 name=multi-queue-ethernet-default
set 21 kind=pfifo name=default-small pfifo-limit=10

/ip firewall layer7-protocol
add name="Extension \" .all \"" regexp="^.*get.+(\\.iso|\\.exe|\\.zip|\\.rar|\
    \\.7z|\\.gho|\\.avi|\\.mkv|\\.mp4|\\.rm|\\.rmvb).*\$"


routeros
回复

使用道具 举报

发表于 2012-9-20 17:16:54 | 显示全部楼层

你的脚本在3.30下不能导入 复制进去也不行 那个TYPE的脚本提示错误 格式可能有问题
routeros
回复

使用道具 举报

发表于 2012-9-20 22:00:05 | 显示全部楼层
本帖最后由 gdlin 于 2012-9-20 22:02 编辑
wfndh 发表于 2012-9-20 17:16
你的脚本在3.30下不能导入 复制进去也不行 那个TYPE的脚本提示错误 格式可能有问题


转自szzj111   
ROS_配置_4M_ADSL_进出分流-精确流控-限制Web_TV P2P

办公网络用,上网秒开,
不同带宽请自行修改,

ROS-5.20

注意导入先后:   

/ip firewall layer7-protocol
/queue type
/queue tree
/ip firewall mangle
  


导入不成功可手工输入
/ip firewall mangle
add action=change-mss chain=forward disabled=no new-mss=1440 passthrough=yes \
    protocol=tcp tcp-flags=syn
add action=mark-connection chain=prerouting comment="====> 1 Small" disabled=\
    no new-connection-mark=small-conn passthrough=yes protocol=icmp
add action=mark-connection chain=prerouting disabled=no dst-port=53 \
    new-connection-mark=small-conn passthrough=yes protocol=udp
add action=mark-packet chain=postrouting connection-mark=small-conn disabled=\
    no new-packet-mark=Small-up passthrough=no src-address-list=local
add action=mark-packet chain=prerouting connection-mark=small-conn disabled=\
    no new-packet-mark=Small-down passthrough=no src-address-type=!local
add action=mark-connection chain=prerouting comment="====> 2 Email" disabled=\
    no dst-port=25,110,3669-3671,9956-9959 new-connection-mark=mail_conn \
    passthrough=yes protocol=tcp
add action=mark-packet chain=postrouting connection-mark=mail_conn disabled=\
    no new-packet-mark=mail_packet_up passthrough=no src-address-list=local
add action=mark-packet chain=prerouting connection-mark=mail_conn disabled=no \
    new-packet-mark=mail_packet_down passthrough=no src-address-type=!local
add action=mark-connection chain=prerouting comment="====> 5 P2P" disabled=no \
    layer7-protocol="Extension \" .all \"" new-connection-mark=p2p_conn \
    passthrough=yes
add action=mark-connection chain=prerouting disabled=no new-connection-mark=\
    p2p_conn p2p=all-p2p passthrough=yes
add action=mark-packet chain=postrouting connection-mark=p2p_conn disabled=no \
    new-packet-mark=P2P-up passthrough=no src-address-list=local \
    src-address-type=""
add action=mark-packet chain=prerouting connection-mark=p2p_conn disabled=no \
    new-packet-mark=P2P-down passthrough=no src-address-type=!local
add action=mark-connection chain=prerouting comment="====> 4 WebTV" content=\
    .flv disabled=no new-connection-mark=webtv passthrough=yes
add action=mark-connection chain=prerouting content=.hlv disabled=no \
    new-connection-mark=webtv passthrough=yes
add action=mark-connection chain=prerouting content=.f4v disabled=no \
    new-connection-mark=webtv passthrough=yes
add action=mark-packet chain=postrouting connection-mark=webtv disabled=no \
    new-packet-mark=WebTV-up passthrough=no src-address-list=local \
    src-address-type=""
add action=mark-packet chain=prerouting connection-mark=webtv disabled=no \
    new-packet-mark=WebTV-down passthrough=no src-address-type=!local
add action=mark-connection chain=prerouting comment="====> 3 Web" disabled=no \
    dst-port=80 new-connection-mark=Web_80_conn passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=443 \
    new-connection-mark=Web_80_conn passthrough=yes protocol=tcp \
    src-address-type=""
add action=mark-connection chain=prerouting disabled=no dst-port=8000 \
    new-connection-mark=Web_80_conn passthrough=yes protocol=udp
add action=mark-connection chain=prerouting disabled=no dst-port=8291 \
    new-connection-mark=small-conn passthrough=yes protocol=tcp
add action=mark-packet chain=postrouting connection-mark=Web_80_conn \
    disabled=no new-packet-mark=Web-small-up packet-size=0-512 passthrough=no \
    src-address-list=local src-address-type=""
add action=mark-packet chain=postrouting connection-mark=Web_80_conn \
    disabled=no new-packet-mark=Web-big-up packet-size=513-1500 passthrough=\
    no src-address-list=local src-address-type=""
add action=mark-packet chain=prerouting connection-mark=Web_80_conn disabled=\
    no new-packet-mark=Web-small-down packet-size=0-512 passthrough=no \
    src-address-type=!local
add action=mark-packet chain=prerouting connection-mark=Web_80_conn disabled=\
    no new-packet-mark=Web-big-down packet-size=513-1500 passthrough=no \
    src-address-type=!local
add action=mark-connection chain=prerouting comment=other_conn disabled=no \
    new-connection-mark=other_conn passthrough=yes
add action=mark-packet chain=postrouting connection-mark=other_conn disabled=\
    no new-packet-mark=other-up passthrough=no src-address-list=local
add action=mark-packet chain=prerouting connection-mark=other_conn disabled=\
    no new-packet-mark=other-down passthrough=no src-address-type=!local

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=400k \
    max-limit=400k name="A all-up" packet-mark="" parent=global-out priority=\
    8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=50k \
    max-limit=200k name="3 Web-big-up" packet-mark=Web-big-up parent=\
    "A all-up" priority=3 queue=Web-big-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=90k \
    max-limit=100k name="8 Other-up" packet-mark="" parent="A all-up" \
    priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=3500k \
    max-limit=3500k name="A all-down" packet-mark="" parent=global-in \
    priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=1M \
    max-limit=3M name="3 Web-big-down" packet-mark=Web-big-down parent=\
    "A all-down" priority=3 queue=Web-big-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=1M \
    max-limit=3M name="5 Other-down" packet-mark="" parent="A all-down" \
    priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=100k \
    max-limit=500k name="2 web-small-down" packet-mark=Web-small-down parent=\
    "A all-down" priority=2 queue=Small-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=50k \
    max-limit=100k name="1 Small-up" packet-mark=Small-up parent="A all-up" \
    priority=1 queue=Small-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=300k \
    max-limit=1M name="2 P2P-down" packet-mark=P2P-down parent="5 Other-down" \
    priority=8 queue=P2P-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=400k \
    max-limit=3M name="1 WebTV-down" packet-mark=WebTV-down parent=\
    "5 Other-down" priority=7 queue=WebTV-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=30k \
    max-limit=100k name="1 WebTV-up" packet-mark=WebTV-up parent="8 Other-up" \
    priority=7 queue=WebTV-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=30k \
    max-limit=100k name="2 P2P-up" packet-mark=P2P-up parent="8 Other-up" \
    priority=8 queue=P2P-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=300k \
    max-limit=1M name=other-down packet-mark=other-down parent="5 Other-down" \
    priority=8 queue=other-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=30k \
    max-limit=100k name="2 other-up" packet-mark=other-up parent="8 Other-up" \
    priority=8 queue=other-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=100k \
    max-limit=200k name=1-small-down packet-mark=Small-down parent=\
    "A all-down" priority=1 queue=Small-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=50k \
    max-limit=200k name="2 Web-small-up" packet-mark=Web-small-up parent=\
    "A all-up" priority=2 queue=Small-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=500k \
    max-limit=3M name="4 mail-down" packet-mark=mail_packet_down parent=\
    "A all-down" priority=2 queue=mail-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=100k \
    max-limit=200k name="4 mail-up" packet-mark=mail_packet_up parent=\
    "A all-up" priority=2 queue=mail-up

/queue type
set 0 kind=pfifo name=default pfifo-limit=50
set 1 kind=pfifo name=ethernet-default pfifo-limit=50
set 2 kind=sfq name=wireless-default sfq-allot=1514 sfq-perturb=5
set 3 kind=red name=synchronous-default red-avg-packet=1000 red-burst=20 \
    red-limit=60 red-max-threshold=50 red-min-threshold=10
set 4 kind=sfq name=hotspot-default sfq-allot=1514 sfq-perturb=5
add kind=pcq name=WebTV-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=WebTV-up pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=Web-big-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=Web-big-up pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=P2P-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=100k \
    pcq-src-address-mask=32 pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=P2P-up pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=Small-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=Small-up pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=PCQ-Down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=PCQ-UP pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=other-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=1M pcq-src-address-mask=\
    32 pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=other-up pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=mail-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=mail-up pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000
set 19 kind=none name=only-hardware-queue
set 20 kind=mq-pfifo mq-pfifo-limit=50 name=multi-queue-ethernet-default
set 21 kind=pfifo name=default-small pfifo-limit=10

/ip firewall layer7-protocol
add name="Extension \" .all \"" regexp="^.*get.+(\\.iso|\\.exe|\\.zip|\\.rar|\
    \\.7z|\\.gho|\\.avi|\\.mkv|\\.mp4|\\.rm|\\.rmvb).*\$"
routeros
回复

使用道具 举报

发表于 2012-9-20 22:15:02 | 显示全部楼层
gdlin 发表于 2012-9-20 22:00
转自szzj111   
ROS_配置_4M_ADSL_进出分流-精确流控-限制Web_TV P2P

 我的版本是3.30的 这么说就是不能用了?? 手动输入也不行
routeros
回复

使用道具 举报

发表于 2012-9-22 01:27:36 | 显示全部楼层
在5.20版本下,我好像导入成功了。
routeros
回复

使用道具 举报

发表于 2012-9-25 17:54:39 | 显示全部楼层
wfndh 发表于 2012-9-20 22:15
 我的版本是3.30的 这么说就是不能用了?? 手动输入也不行

把pcq-burst-rate=0 pcq-burst-threshold=0  pcq-burst-time=10s pcq-dst-address-mask=32   pcq-dst-address6-mask=128  pcq-src-address-mask=32     pcq-src-address6-mask=128删了就可以了

如add kind=pcq name=WebTV-down pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32 \
    pcq-src-address6-mask=128 pcq-total-limit=2000

改为
add kind=pcq name=WebTV-down pcq-classifier=dst-address pcq-limit=50 pcq-rate=0  pcq-total-limit=2000


routeros
回复

使用道具 举报

发表于 2012-9-26 08:29:22 | 显示全部楼层
/queue type
set 0 kind=pfifo name=default pfifo-limit=50
set 1 kind=pfifo name=ethernet-default pfifo-limit=50
set 2 kind=sfq name=wireless-default sfq-allot=1514 sfq-perturb=5
set 3 kind=red name=synchronous-default red-avg-packet=1000 red-burst=20 \
    red-limit=60 red-max-threshold=50 red-min-threshold=10
set 4 kind=sfq name=hotspot-default sfq-allot=1514 sfq-perturb=5
add kind=pcq name=WebTV-down pcq-classifier=dst-address pcq-limit=50 pcq-rate=0  pcq-total-limit=2000
add kind=pcq name=WebTV-up pcq-classifier=src-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000
add kind=pcq name=Web-big-down pcq-classifier=dst-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000
add kind=pcq name=Web-big-up pcq-classifier=src-address pcq-limit=50 pcq-rate=0  pcq-total-limit=2000
add kind=pcq name=P2P-down pcq-classifier=dst-address pcq-limit=50 pcq-rate=100k pcq-total-limit=2000
add kind=pcq name=P2P-up  pcq-classifier=src-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000
add kind=pcq name=Small-down pcq-classifier=dst-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000
add kind=pcq name=Small-up pcq-classifier=src-address pcq-limit=50 pcq-rate=0  pcq-total-limit=2000
add kind=pcq name=PCQ-Down pcq-classifier=dst-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000
add kind=pcq name=PCQ-UP pcq-classifier=src-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000
add kind=pcq name=other-down pcq-classifier=dst-address pcq-limit=50 pcq-rate=1M pcq-total-limit=2000
add kind=pcq name=other-up pcq-classifier=src-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000
add kind=pcq name=mail-down pcq-classifier=dst-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000
add kind=pcq name=mail-up pcq-classifier=src-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000
set 19 kind=none name=only-hardware-queue
set 20 kind=mq-pfifo mq-pfifo-limit=50 name=multi-queue-ethernet-default
set 21 kind=pfifo name=default-small pfifo-limit=10
routeros
回复

使用道具 举报

发表于 2012-9-29 01:14:54 | 显示全部楼层
我总觉得这种同M宽带的什么策略就是折腾,带宽为王。
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 02:56 , Processed in 0.052266 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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