找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 42378|回复: 64

[限速] 2M 光纤 10人用 pcq+connection-rate限速,用了一年多,没人抱怨,免铜板了!!!

  [复制链接]
发表于 2011-6-29 14:52:11 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 vrai 于 2011-6-29 16:54 编辑

可能是大家的要求不高,所以没什么抱怨,至少两三个人疯狂下载,其他人还是可以比较顺畅的qq 开网页

线路极限:下载2.2Mb 上传在800k左右,情况不同 个别数值,自己微调吧,此外,防火墙上限制每ip tcp 80个连接数

qos.rar (759 Bytes, 下载次数: 67, 售价: 10 铜板)

最近这段时间,看到铜板没什么增长,唉,大家都不容易啊!!!


x.x.x.x/16 改成自己的实际情况 具体的数值,请根据个人网络速度,自己微调

/ip firewall mangle
add action=mark-connection chain=forward comment="" connection-mark=\
    !heavy_traffic_conn disabled=no new-connection-mark=all_conn \
    passthrough=yes
add action=mark-connection chain=forward comment="" connection-bytes=\
    500000-0 connection-mark=all_conn connection-rate=150k-100M disabled=\
    no new-connection-mark=heavy_traffic_conn passthrough=yes protocol=\
    tcp
add action=mark-connection chain=forward comment="" connection-bytes=\
    500000-0 connection-mark=all_conn connection-rate=150k-100M disabled=\
    no new-connection-mark=heavy_traffic_conn passthrough=yes protocol=\
    udp
add action=mark-packet chain=forward comment="" connection-mark=\
    heavy_traffic_conn disabled=no new-packet-mark=up_heavy_traffic \
    passthrough=no src-address=x.x.x.x/16
add action=mark-packet chain=forward comment="" connection-mark=\
    heavy_traffic_conn disabled=no dst-address=x.x.x.x/16 \
    new-packet-mark=down_heavy_traffic passthrough=no
add action=mark-packet chain=forward comment="" connection-mark=all_conn \
    disabled=no new-packet-mark=up_other_traffic passthrough=no \
    src-address=x.x.x.x/16
add action=mark-packet chain=forward comment="" connection-mark=all_conn \
    disabled=no dst-address=x.x.x.x/16 new-packet-mark=\
    down_other_traffic passthrough=no

/queue type
add kind=pcq name=pcq-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-heavy pcq-classifier=src-address pcq-limit=50 \
    pcq-rate=224000 pcq-total-limit=2000
add kind=pcq name=pcq-down-heavy pcq-classifier=dst-address pcq-limit=50 \
    pcq-rate=768000 pcq-total-limit=2000


/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=\
    640k max-limit=768k name=upload parent=wan priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=\
    1800k max-limit=2100k name=download parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=\
    420k max-limit=420k name=other_upload packet-mark=up_other_traffic \
    parent=upload priority=1 queue=pcq-up
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=\
    220k max-limit=640k name=heavy_upload packet-mark=up_heavy_traffic \
    parent=upload priority=8 queue=pcq-up-heavy
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=\
    1200k max-limit=1200k name=other_download packet-mark=\
    down_other_traffic parent=download priority=1 queue=pcq-down
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=\
    600k max-limit=1800k name=heavy_download packet-mark=\
    down_heavy_traffic parent=download priority=8 queue=pcq-down-heavy

routeros
发表于 2011-6-29 15:16:17 | 显示全部楼层
是么,三个人开qvod试试
routeros
回复

使用道具 举报

发表于 2011-6-29 17:23:02 | 显示全部楼层
不错 。。。。。。
routeros
回复

使用道具 举报

发表于 2011-6-30 00:38:10 | 显示全部楼层
路过,看看……
routeros
回复

使用道具 举报

发表于 2011-6-30 01:05:40 | 显示全部楼层
测试一下效果,谢谢楼主.
routeros
回复

使用道具 举报

发表于 2011-6-30 01:35:16 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2011-6-30 08:38:51 | 显示全部楼层
baobao87 发表于 2011-6-30 01:35
我这边是4M一条的ADSL。。。不用三个人。。。一个人就可以把一条ADSL充满了。。

那是你限速没做好````````````
routeros
回复

使用道具 举报

发表于 2011-6-30 10:21:40 | 显示全部楼层
经典之作啊!!!
routeros
回复

使用道具 举报

发表于 2011-6-30 10:50:52 | 显示全部楼层
感谢楼主分享  
routeros
回复

使用道具 举报

发表于 2011-7-1 00:20:29 | 显示全部楼层
我还是买了,支持一下你,呵呵
routeros
回复

使用道具 举报

发表于 2011-7-1 08:49:41 | 显示全部楼层
貌似是官方的
routeros
回复

使用道具 举报

 楼主| 发表于 2011-7-1 09:00:47 | 显示全部楼层
回复 macxie 的帖子

很多地方有细微的调整,官方的不能用在nat环境下,我这个是可以的,而且这个脚本对一些细节进行了优化。
routeros
回复

使用道具 举报

发表于 2011-7-1 20:31:53 | 显示全部楼层
这也要钱啊。。明抢啊。
routeros
回复

使用道具 举报

发表于 2011-7-4 17:17:41 | 显示全部楼层
公开了。我就顶一顶
routeros
回复

使用道具 举报

发表于 2011-7-4 23:38:52 | 显示全部楼层
2M10人, 确实不简单
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-2 16:11 , Processed in 0.088179 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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