qile 发表于 2012-4-6 12:46:50

queue 各时段限速,有突发限速分享

dst-address=0.0.0.0/0 interface=all limit-at=0/0 max-limit=0/0 name=hotws parent=none \
    priority=8 queue=100k/2M_Down target-addresses=192.168.112.0/24 time=\
    17h-23h59m30s,sun,mon,tue,wed,thu,fri,sat total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" direction=both disabled=no \
    dst-address=0.0.0.0/0 interface=all limit-at=0/0 max-limit=0/0 name=hot-baitian parent=none \

priority=8 queue=100k/4M_Down target-addresses=192.168.112.0/24 time=\
    0s-16h59m30s,sun,mon,tue,wed,thu,fri,sat total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" direction=both disabled=yes \
   

qile 发表于 2012-4-6 12:48:51

queue=100k/2M_Down 自己建立


/queue type
set default kind=pfifo name=default pfifo-limit=50
set ethernet-default kind=pfifo name=ethernet-default pfifo-limit=50
set wireless-default kind=sfq name=wireless-default sfq-allot=1514 sfq-perturb=5
set synchronous-default kind=red name=synchronous-default red-avg-packet=1000 red-burst=20 \
    red-limit=60 red-max-threshold=50 red-min-threshold=10
set hotspot-default kind=sfq name=hotspot-default sfq-allot=1514 sfq-perturb=5
add kind=pcq name=2M pcq-classifier="" pcq-limit=40 pcq-rate=2000000 pcq-total-limit=2000
add kind=pcq name=PCQ-up pcq-classifier=src-address pcq-limit=50 pcq-rate=200000 pcq-total-limit=\
    3000
add kind=pcq name=PCQ-down pcq-classifier=dst-address pcq-limit=50 pcq-rate=64000 pcq-total-limit=\
    2000
add kind=pcq name=100k pcq-classifier=src-address pcq-limit=30 pcq-rate=100000 pcq-total-limit=\
    2000
add kind=pcq name=2M_Down pcq-classifier=dst-address pcq-limit=40 pcq-rate=2000000 \
    pcq-total-limit=2000
add kind=pcq name=4M_Down pcq-classifier=dst-address pcq-limit=40 pcq-rate=4000000 \
    pcq-total-limit=8000
add kind=pcq name=3M-Down pcq-classifier=dst-address pcq-limit=40 pcq-rate=3000000 \
    pcq-total-limit=8000
add kind=pcq name=80k pcq-classifier=src-address pcq-limit=30 pcq-rate=80000 pcq-total-limit=2000
add kind=pcq name=2M_up pcq-classifier=src-address pcq-limit=40 pcq-rate=2000000 pcq-total-limit=\
    2000
add kind=pcq name=4M-UP pcq-classifier=src-address pcq-limit=40 pcq-rate=4000000 pcq-total-limit=\
    8000
add kind=pcq name=3M-up pcq-classifier=src-address pcq-limit=40 pcq-rate=3000000 pcq-total-limit=\
    8000
add kind=pcq name=500kup pcq-classifier=src-address pcq-limit=40 pcq-rate=500000 pcq-total-limit=\
    2000

上面是我的

qile 发表于 2012-4-6 12:50:20

实现作用是 在白天 00:01 到
17h-23h59m30s 晚上限速
0s-16h59m30s 白天限速
无法上传图片 所以自己摸索把
页: [1]
查看完整版本: queue 各时段限速,有突发限速分享