找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 6030|回复: 4

[限速] 请教PCQ限速无效问题

[复制链接]
发表于 2009-7-20 15:44:30 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 夕夜如风 于 2009-7-20 15:52 编辑

一直都很想用PCQ限速,但不知道为什么我用PCQ老是觉得限速不成功。

网吧环境:50M光纤,100台机器,ros 3.22版本。

使用脚本:
/ queue type add name="PCQ-up" kind=pcq pcq-rate=3000000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=10000
/ queue type add name="PCQ-down" kind=pcq pcq-rate=3000000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=10000
/ ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=all-mark passthrough=yes
/ queue tree add name="PCQdown" parent=wan queue=PCQ-down packet-mark=all-mark
/ queue tree add name="PCQup" parent=wan queue=PCQ-up packet-mark=all-mark

/ tool traffic-monitor add name="PCQdownon" interface=wan traffic=received trigger=above threshold=45000000 on-event=downon comment="" disabled=no
/ tool traffic-monitor add name="PCQdownoff" interface=wan traffic=received trigger=below threshold=20000000 on-event=downoff comment="" disabled=no
/ tool traffic-monitor add name="PCQupon" interface=wan traffic=transmitted trigger=above threshold=45000000 on-event=upon comment="" disabled=no
/ tool traffic-monitor add name="PCQupoff" interface=wan traffic=transmitted trigger=below threshold=20000000 on-event=upoff comment="" disabled=no
/ system script add name="upon" source=":if ([/queue tree get [/queue tree find  name=\"PCQup\"] disable ]=true ) do={/queue tree enable PCQup}" policy=ftp,password,read,reboot,sniff,telnet,web,write,local,policy,ssh,test,winbox
/ system script add name="upoff" source=":if ([/queue tree get [/queue tree find  name=\"PCQup\"] disable ]=false ) do={/queue tree disable PCQup}" policy=ftp,password,read,reboot,sniff,telnet,web,write,local,policy,ssh,test,winbox
/ system script add name="downon" source=":if ([/queue tree get [/queue tree find name=\"PCQdown\"] disable ]=true ) do={/queue tree enable PCQdown}" policy=ftp,password,read,reboot,sniff,telnet,web,write,local,policy,ssh,test,winbox
/ system script add name="downoff" source=":if ([/queue tree get [/queue tree find name=\"PCQdown\"] disable ]=false ) do={/queue tree disable PCQdown}" policy=ftp,password,read,reboot,sniff,telnet,web,write,local,policy,ssh,test,winbox

根据网上高手的说明,原意是想在使用带宽到了 上下行 45M时,实施每台机3M的限速,上下行小于20M时,取消限速。

但发觉即使到了45M(PCQ限速已经启用),个别机器的流量还是非常地大,单独某台机甚至达到30多M,很快将全场带宽用完。

即使将 Rate 改成了 50k,个别机器的流量还能达到接近20M。(见附图)
pcq.jpg
这是什么原因?是不是我对从参数的理解不对?请高手指教!不胜感激~!~
routeros
 楼主| 发表于 2009-7-23 11:00:11 | 显示全部楼层
没有高手指教一下么?
routeros
回复

使用道具 举报

发表于 2009-11-19 16:41:26 | 显示全部楼层
顶一下贴,我也觉得没用。
routeros
回复

使用道具 举报

发表于 2010-1-20 01:09:25 | 显示全部楼层
哥哥呢你哪个有点象是HTB方式,PCQ不是那么搞的,你去官方看
routeros
回复

使用道具 举报

发表于 2010-5-9 15:07:04 | 显示全部楼层
设置错了吧。限速貌似没起作用
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-17 17:52 , Processed in 0.067822 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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