国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 網(wǎng)絡(luò)通信 > 正文

用流量監(jiān)控控制限速的開關(guān)

2019-11-04 20:17:53
字體:
供稿:網(wǎng)友

先做好一個PCQ的限速


一個一個限制用simple queue
/ queue simple
add name="queue1" target-address=192.168.0.1/32 dst-address=0.0.0.0/0 /
interface=all queue=default PRiority=8 limit-at=330000/330000 /
max-limit=400000/400000 disabled=no


限制一個網(wǎng)段用PCQ


1. Mark all packets with flow all:用flow all 標(biāo)記所有數(shù)據(jù)包
/ip firewall mangle add action=accept mark-flow=all


2. Create two PCQ queue types - one for download and one for upload. For download traffic:創(chuàng)建兩條PCQ類型,下載和上傳
queues will be classified by dst-address and for upload - by src-address:
/queue type add name=PCQ-Download kind=pcq pcq-rate=768000 /
pcq-classifier=dst-address
/queue type add name=PCQ-Upload kind=pcq pcq-rate=512000 /
pcq-classifier=src-address


3. Add two queue rules - one for download and one for upload:添加PCQ規(guī)則,下載和上傳/
queue tree add parent=Local queue=PCQ-Download flow=all
/queue tree add parent=Public queue=PCQ-Upload flow=all


下邊在開始進(jìn)入正題
ROS的流量監(jiān)控只能監(jiān)控不同網(wǎng)卡的流量收發(fā)
假如wan口的帶寬是10M我們在9M的時候開啟控制條件.
/tool traffic-monitor
add name=pcqon interface=WAN on-event=pcqon threshold=9000000 trigger=above traffic=received


/system script add name="pcqon" source="/queue tree enable queue1 " owner="admin" policy=reboot,read,write,policy,test

在帶寬使用低于7M時關(guān)閉流量控制
/tool traffic-monitor
add name=pcqoff interface=WAN on-event=pcqoff threshold=7000000 trigger=below traffic=received


/system script add name="pcqoff" source="/queue tree disable queue1 " owner="admin" policy=reboot,read,write,policy,test




發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 莱阳市| 监利县| 沧州市| 永清县| 彰化市| 绥滨县| 泰宁县| 英德市| 盖州市| 安西县| 仙游县| 潮州市| 甘肃省| 崇信县| 海南省| 景谷| 海丰县| 通海县| 木兰县| 马公市| 辽中县| 伊金霍洛旗| 镇安县| 千阳县| 微博| 兴山县| 政和县| 公主岭市| 利川市| 奉贤区| 根河市| 嘉善县| 青河县| 勃利县| 禹城市| 柳州市| 广丰县| 绥芬河市| 广东省| 镇安县| 曲水县|