ROS最完美限速-根据带宽进行限速(共2页).doc

上传人:飞****2 文档编号:14078595 上传时间:2022-05-02 格式:DOC 页数:2 大小:15KB
返回 下载 相关 举报
ROS最完美限速-根据带宽进行限速(共2页).doc_第1页
第1页 / 共2页
ROS最完美限速-根据带宽进行限速(共2页).doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《ROS最完美限速-根据带宽进行限速(共2页).doc》由会员分享,可在线阅读,更多相关《ROS最完美限速-根据带宽进行限速(共2页).doc(2页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、精选优质文档-倾情为你奉上ROS最完美限速-根据带宽进行限速在用脚本之前我们都是使用Simple Queue简单限速来进行客户机的限速,他的缺点是固定了每台客户机的最大上传下载速度,这样在人比较少,带宽占用不高的情况下,客人还是只能按高峰期的最大上传下载速度来上网,体现不了我们光纤极速上网的优势。 今天看了一天的资料 看的我是头昏脑胀看什么都模糊了最后看好这个脚本最重要的 不浪费我们的一点带宽 以下脚本,是网通百兆 电信10M的双线 的带宽带了256台客户机 进行智能pcq限速。 现在 暂时上传脚本 不会的朋友 等我到时候发个教程帖子 给出详细设置 具体设置 1、总下载带宽高于85M时,启动限

2、速,每台机设置下载限速为4.5M。 2、总下载带宽低于40M时,取消限速。 3、总上传带宽高于60M时,启动限速,每台机设置上传限速为6M。 4、总上传带宽低于25M时,取消限速。 使用前,请先将原来的 Simple Queue 中设定的限速指令删除。 同时,外网连接的名称要为 wan /ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=all passthrough=no /queue type add name=PCQ_download kind=pcq pcq-rate= pcq-clas

3、sifier=dst-address /queue type add name=PCQ_upload kind=pcq pcq-rate= pcq-classifier=src-address /queue tree add name=PCQdown parent=global-in queue=PCQ_download packet-mark=all /queue tree add name=PCQup parent=global-out queue=PCQ_upload packet-mark=all / tool traffic-monitor add name=PCQdownon in

4、terface=wan traffic=received trigger=above threshold= on-event=downon comment= disabled=no / tool traffic-monitor add name=PCQdownoff interface=wan traffic=received trigger=below threshold= on-event=downoff comment= disabled=no / tool traffic-monitor add name=PCQupon interface=wan traffic=transmitte

5、d trigger=above threshold= on-event=upon comment= disabled=no / tool traffic-monitor add name=PCQupoff interface=wan traffic=transmitted trigger=below threshold= on-event=upoff comment= disabled=no / system script add name=upon source=:if ( /queue tree get /queue tree find name=PCQup disable =true )

6、 do=/queue tree enable PCQup policy=password,read,reboot,write,policy,test / system script add name=upoff source=:if (/queue tree get /queue tree find name=PCQup disable =false ) do=/queue tree disable PCQup policy=password,read,reboot,write,policy,test / system script add name=downon source=:if (/q

7、ueue tree get /queue tree find name=PCQdown disable =true ) do=/queue tree enable PCQdown policy=password,read,reboot,write,policy,test / system script add name=downoff source=:if (/queue tree get /queue tree find name=PCQdown disable =false ) do=/queue tree disable PCQdown policy=password,read,reboot,write,policy,test 其中的最大带宽触发数量,每台机触发后限制的带宽;以及最小带宽触发数量,这些需要根据实际运用中不断调整,才能达到最佳的效果。专心-专注-专业

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 教案示例

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com