|
楼主 |
发表于 2008-6-7 09:18:07
|
显示全部楼层
稳定了5天,符上PCQ限速.希望还在为这个问题烦的.可以测试:
10M的动态限速...
/ queue type
add name="Down_5M" kind=pcq pcq-rate=5000000 pcq-limit=100 pcq-classifier=dst-address pcq-total-limit=10000
add name="Down_4M" kind=pcq pcq-rate=4000000 pcq-limit=80 pcq-classifier=dst-address pcq-total-limit=9000
add name="Down_3M" kind=pcq pcq-rate=3000000 pcq-limit=60 pcq-classifier=dst-address pcq-total-limit=7000
add name="Down_2M" kind=pcq pcq-rate=2000000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=5000
add name="Down_1M" kind=pcq pcq-rate=1000000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=5000
add name="Down_768k" kind=pcq pcq-rate=768000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=4000
add name="Down_512k" kind=pcq pcq-rate=512000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=3000
add name="Down_384k" kind=pcq pcq-rate=384000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
add name="Down_256k" kind=pcq pcq-rate=256000 pcq-limit=20 pcq-classifier=dst-address pcq-total-limit=2000
add name="Down_128k" kind=pcq pcq-rate=128000 pcq-limit=10 pcq-classifier=dst-address pcq-total-limit=1000
add name="Down_64k" kind=pcq pcq-rate=64000 pcq-limit=10 pcq-classifier=dst-address pcq-total-limit=1000
add name="Up_5M" kind=pcq pcq-rate=5000000 pcq-limit=100 pcq-classifier=src-address pcq-total-limit=10000
add name="Up_4M" kind=pcq pcq-rate=4000000 pcq-limit=80 pcq-classifier=src-address pcq-total-limit=9000
add name="Up_3M" kind=pcq pcq-rate=3000000 pcq-limit=60 pcq-classifier=src-address pcq-total-limit=7000
add name="Up_2M" kind=pcq pcq-rate=2000000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=5000
add name="Up_1M" kind=pcq pcq-rate=1000000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=5000
add name="Up_768k" kind=pcq pcq-rate=768000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=4000
add name="Up_512k" kind=pcq pcq-rate=512000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=3000
add name="Up_384k" kind=pcq pcq-rate=384000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000
add name="Up_256k" kind=pcq pcq-rate=256000 pcq-limit=20 pcq-classifier=src-address pcq-total-limit=2000
add name="Up_128k" kind=pcq pcq-rate=128000 pcq-limit=10 pcq-classifier=src-address pcq-total-limit=1000
add name="Up_64k" kind=pcq pcq-rate=64000 pcq-limit=10 pcq-classifier=src-address pcq-total-limit=1000
/ queue simple
add name="256k" target-addresses=192.168.0.0/21 dst-address=0.0.0.0/0 \
interface=lan parent=none priority=8 \
queue=Up_128k/Down_256k limit-at=0/0 max-limit=0/0 \
total-queue=default disabled=yes
add name="512k" target-addresses=192.168.0.0/22 dst-address=0.0.0.0/0 \
interface=lan parent=none priority=8 \
queue=Up_384k/Down_512k limit-at=0/0 max-limit=0/0 \
total-queue=default disabled=yes
add name="768k" target-addresses=192.168.0.0/22 dst-address=0.0.0.0/0 \
interface=lan parent=none priority=8 \
queue=Up_512k/Down_768k limit-at=0/0 max-limit=0/0 \
total-queue=default disabled=yes
add name="1M" target-addresses=192.168.0.0/22 dst-address=0.0.0.0/0 \
interface=lan parent=none priority=8 queue=Up_768k/Down_1M \
limit-at=0/0 max-limit=0/0 total-queue=default disabled=yes
add name="2M" target-addresses=192.168.0.0/22 dst-address=0.0.0.0/0 \
interface=lan parent=none priority=8 queue=Up_1M/Down_2M \
limit-at=0/0 max-limit=0/0 total-queue=default disabled=yes
add name="3M" target-addresses=192.168.0.0/22 dst-address=0.0.0.0/0 \
interface=lan parent=none priority=8 queue=Up_2M/Down_3M \
limit-at=0/0 max-limit=0/0 total-queue=default disabled=yes
add name="4M" target-addresses=192.168.0.0/22 dst-address=0.0.0.0/0 \
interface=lan parent=none priority=8 queue=Up_3M/Down_4M \
limit-at=0/0 max-limit=0/0 total-queue=default disabled=yes
add name="5M" target-addresses=192.168.0.0/22 dst-address=0.0.0.0/0 \
interface=lan parent=none priority=8 queue=Up_4M/Down_5M \
limit-at=0/0 max-limit=0/0 total-queue=default disabled=no
/ system script
add name="d256" source="/queue sim disablek" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="e256" source="/queue sim enable 256k\n/queue sim enable 512k\n/queue sim enable 768k\n/queue sim enable 1M\n/queue sim enable 2M\n/queue sim enable 3M\n/queue sim enable 4M" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="d512" source="/queue sim disable 512k\n/queue sim disable 256k" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="e512" source="/queue sim enable 512k\n/queue sim enable 768k\n/queue sim enable 1M\n/queue sim enable 2M\n/queue sim enable 3M\n/queue sim enable 4M" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="d768" source="/queue sim disable 768k\n/queue sim disable 512k\n/queue sim disable 256k" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="e768" source="/queue sim enable 768k\n/queue sim enable 1M\n/queue sim enable 2M\n/queue sim enable 3M\n/queue sim enable 4M" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="d1M" source="/queue sim disable 1M\n/queue sim disable 768k\n/queue sim disable 512k\n/queue sim disable 256k" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="e1M" source="/queue sim enable 1M\n/queue sim enable 2M\n/queue sim enable 3M\n/queue sim enable 4M" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="d2M" source="/queue sim disable 2M\n/queue sim disable 1M\n/queue sim disable 768k\n/queue sim disable 512k\n/queue sim disable 256k" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="e2M" source="/queue sim enable 2M\n/queue sim enable 3M\n/queue sim enable 4M" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="d3M" source="/queue sim disable 3M\n/queue sim disable 2M\n/queue sim disable 1M\n/queue sim disable 768k\n/queue sim disable 512k\n/queue sim disable 256k" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="e3M" source="/queue sim enable 3M\n/queue sim enable 4M" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="d4M" source="/queue sim disable 4M\n/queue sim disable 3M\n/queue sim disable 2M\n/queue sim disable 1M\n/queue sim disable 768k\n/queue sim disable 512k\n/queue sim disable 256k" \
policy=ftp,reboot,read,write,policy,test,winbox,password
add name="e4M" source="/queue sim enable 4M" \
policy=ftp,reboot,read,write,policy,test,winbox,password
/ tool traffic-monitor
add name="256kon" interface=wan traffic=received trigger=above \
threshold=8000000 on-event=e256 comment="" disabled=no
add name="256koff" interface=wan traffic=received trigger=below \
threshold=7000000 on-event=d256 comment="" disabled=no
add name="512kon" interface=wan traffic=received trigger=above \
threshold=6000000 on-event=e512 comment="" disabled=no
add name="512koff" interface=wan traffic=received trigger=below \
threshold=5000000 on-event=d512 comment="" disabled=no
add name="768kon" interface=wan traffic=received trigger=above \
threshold=4000000 on-event=e768 comment="" disabled=no
add name="768koff" interface=wan traffic=received trigger=below \
threshold=3000000 on-event=d768 comment="" disabled=no
add name="1Mon" interface=wan traffic=received trigger=above \
threshold=2000000 on-event=e1M comment="" disabled=no
add name="1Moff" interface=wan traffic=received trigger=below \
threshold=1000000 on-event=d1M comment="" disabled=no
add name="2Mon" interface=wan traffic=received trigger=above \
threshold=1000000 on-event=e2M comment="" disabled=no
add name="2Moff" interface=wan traffic=received trigger=below \
threshold=900000 on-event=d2M comment="" disabled=no
add name="3Mon" interface=wan traffic=received trigger=above \
threshold=800000 on-event=e3M comment="" disabled=no
add name="3Moff" interface=wan traffic=received trigger=below \
threshold=700000 on-event=d3M comment="" disabled=no
add name="4Mon" interface=wan traffic=received trigger=above \
threshold=600000 on-event=e4M comment="" disabled=no
add name="4Moff" interface=wan traffic=received trigger=below \
threshold=500000 on-event=d4M comment="" disabled=no |
|