找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 9190|回复: 12

[限速] 让 PPPOE limit rate 限速更加【人性化】

[复制链接]
发表于 2008-10-16 17:23:21 | 显示全部楼层 |阅读模式

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

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

×
一般pppoe用户情况多或者用地址池分配pppoe ip的情况下 我们比较喜欢用pppoe profile里面的limit rate来限速
但是这样限速在simple queue里面只有 limit at 更人性化的最大速度 爆发速度,爆发时间等却没有使用到。
这里可以用个笨方法来使PPPOE  limit rate 限速更加人性化。
脚本如下

queue simple set [find dyn=yes burst-limit=0/0] limit-at=0/0 max-limit=200000/800000 burst-limit=320000/1000000 burst-threshold=160000/600000 burst-time=20/20

说明: 就是在simple queue 里面查找 动态(pppoe限速在simple queue里面是动态显示的 dyn=yes)并且burst-limit=0/0(这条是为了不重复修改,这条脚步没运行时simple queue里面的pppoe限速列表的burst-limit都是空的)的项目的 limit-at max-limit  burst-limit burst-threshold burst-time 的值  

可以根据自己的网络情况修改限速大小 脚步放在计划任务设置为几分钟执行一次好了  pppoe profile里面的limit rate 保留着不用去掉

    如果对你有用就帮顶下吧 谢谢哈  如果对你没有用也帮顶下 让有需要的人可以看到

欢迎讨论

[ 本帖最后由 arica1985e 于 2008-10-16 17:24 编辑 ]
routeros
发表于 2008-10-16 19:13:57 | 显示全部楼层
原帖由 arica1985e 于 2008-10-16 17:23 发表
一般pppoe用户情况多或者用地址池分配pppoe ip的情况下 我们比较喜欢用pppoe profile里面的limit rate来限速
但是这样限速在simple queue里面只有 limit at 更人性化的最大速度 爆发速度,爆发时间等却没有使用到。 ...


pppoe profile里面的limit rate来限速  同样可以设置 人性化的最大速度 爆发速度,爆发时间等。
看看ros的radius 的type 部分 你就明白了。

Mikrotik-Rate-Limit - Datarate limitation for clients. Format is: rx-rate[/tx-rate] [rx-burst-rate[/tx-burst-rate] [rx-burst-threshold[/tx-burst-threshold] [rx-burst-time[/tx-burst-time] [priority] [rx-rate-min[/tx-rate-min]]]] from the point of view of the router (so "rx" is client upload, and "tx" is client download). All rates should be numbers with optional 'k' (1,000s) or 'M' (1,000,000s). If tx-rate is not specified, rx-rate is as tx-rate too. Same goes for tx-burst-rate and tx-burst-threshold and tx-burst-time. If both rx-burst-threshold and tx-burst-threshold are not specified (but burst-rate is specified), rx-rate and tx-rate is used as burst thresholds. If both rx-burst-time and tx-burst-time are not specified, 1s is used as default. Priority takes values 1..8, where 1 implies the highest priority, but 8 - the lowest. If rx-rate-min and tx-rate-min are not specified rx-rate and tx-rate values are used. The rx-rate-min and tx-rate-min values can not exceed rx-rate and tx-rate values.

[ 本帖最后由 ksw520 于 2008-10-16 19:17 编辑 ]
routeros
回复

使用道具 举报

发表于 2008-10-16 23:55:29 | 显示全部楼层
看了没明白。。。
routeros
回复

使用道具 举报

发表于 2008-10-17 00:13:36 | 显示全部楼层
讲得明白点嘛
routeros
回复

使用道具 举报

发表于 2008-10-17 00:53:12 | 显示全部楼层
晕死,摆脱好好看看官方的文档,里面写的清清楚楚,哪里用那么复杂的方法啊!
routeros
回复

使用道具 举报

发表于 2008-10-17 15:40:37 | 显示全部楼层
帮人帮到底,送佛送到西。

还不明白就自己挖个坑,看准了跳。
p.jpg
routeros
回复

使用道具 举报

发表于 2008-12-3 00:52:30 | 显示全部楼层
可以用这个方法动态限制PPPOE的速度呢
routeros
回复

使用道具 举报

发表于 2008-12-3 18:27:03 | 显示全部楼层
原帖由 keris 于 2008-12-3 00:52 发表
可以用这个方法动态限制PPPOE的速度呢


结合两种方法,脚本动态限制pppoe客户的速度,不失为一种不错的方法。就这点,支持这贴。
routeros
回复

使用道具 举报

发表于 2013-3-28 20:31:28 | 显示全部楼层
very good 领教受用了
routeros
回复

使用道具 举报

发表于 2013-3-28 21:03:41 | 显示全部楼层
没注意有这用法。哈哈。
routeros
回复

使用道具 举报

发表于 2013-3-29 00:18:13 | 显示全部楼层
ksw520 发表于 2008-10-17 15:40
帮人帮到底,送佛送到西。

还不明白就自己挖个坑,看准了跳。

这个四个值分别是代表什么呀?
routeros
回复

使用道具 举报

发表于 2013-5-11 21:06:45 | 显示全部楼层
谢谢6楼的,管用。。
routeros
回复

使用道具 举报

发表于 2013-5-11 21:25:49 | 显示全部楼层
谢谢6楼的,管用。。
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 21:12 , Processed in 0.235165 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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