arica1985e 发表于 2008-10-16 17:23:21

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

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

queue simple set 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-limitburst-limit burst-threshold burst-time 的值

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

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

欢迎讨论

[ 本帖最后由 arica1985e 于 2008-10-16 17:24 编辑 ]

ksw520 发表于 2008-10-16 19:13:57

原帖由 arica1985e 于 2008-10-16 17:23 发表 http://bbs.routerclub.com/images/common/back.gif
一般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 ]]] 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 编辑 ]

benben418 发表于 2008-10-16 23:55:29

看了没明白。。。

chyhc 发表于 2008-10-17 00:13:36

讲得明白点嘛

专卖精品 发表于 2008-10-17 00:53:12

晕死,摆脱好好看看官方的文档,里面写的清清楚楚,哪里用那么复杂的方法啊!

ksw520 发表于 2008-10-17 15:40:37

帮人帮到底,送佛送到西。

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

keris 发表于 2008-12-3 00:52:30

可以用这个方法动态限制PPPOE的速度呢

wwjun 发表于 2008-12-3 18:27:03

原帖由 keris 于 2008-12-3 00:52 发表 http://bbs.routerclub.com/images/common/back.gif
可以用这个方法动态限制PPPOE的速度呢

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

wangyuan979 发表于 2013-3-28 20:31:28

very good 领教受用了

toskyline 发表于 2013-3-28 21:03:41

:')没注意有这用法。哈哈。

lsdeng 发表于 2013-3-29 00:18:13

ksw520 发表于 2008-10-17 15:40 static/image/common/back.gif
帮人帮到底,送佛送到西。

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

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

lxgit 发表于 2013-5-11 21:06:45

谢谢6楼的,管用。。

lovellh 发表于 2013-5-11 21:25:49

谢谢6楼的,管用。。
页: [1]
查看完整版本: 让 PPPOE limit rate 限速更加【人性化】