25、ROS PCQ原理及简单实例

一、PCQ:每次连接队列(Per Connection Queues)

  一种高效的限速方法,用来做QOS。 

二、操作步骤:

  1、标记上传和下载的包

  IP —— Firewall —— Mangle —— 点击加号 —— (General)—— Chain:prerouting ——Src.Address:192.168.1.0/24 —— (Action)—— Action:mark packet —— New Packet Mark:上传 —— OK

  IP —— Firewall —— Mangle —— 点击加号 —— (General)—— Chain:postrouting ——Dst.Address:192.168.1.0/24 —— (Action)—— Action:mark packet —— New Packet Mark:下载 —— OK

  2、设置限速类型—PCQ队列:

  Queues —— Queue Types —— 点击加号 —— Type Name:PCQ_Download —— Kind:pcq —— Rate:1M(限制速度) —— Classifier:选择(根据具体情况) —— OK

  

  Queues —— Queue Types —— 点击加号 —— Type Name:PCQ_Upload —— Kind:pcq —— Rate:512k(限制速度) —— Classifier:选择(根据具体情况) —— OK

  

  3、设置限速树:

  Queues —— Queue Tree —— 点击加号 —— (General)—— Name: —— parent:global_out —— Packet Marks:选择 —— Queue Type:选择PCQ_Download —— OK

posted on 2018-03-24 14:49  王鹏举  阅读(997)  评论(0编辑  收藏  举报