怎么配置Cisco QOS-CQ
思科cisco公司制造的路由器、交换机和其他设备承载了全球80%的互联网通信,成为了网络应用的成功实践者之一,那么你知道怎么配置Cisco QOS-CQ吗?下面是读文网小编整理的一些关于怎么配置Cisco QOS-CQ的相关资料,供你参考。
配置Cisco QOS-CQ的方法:
Customized Queue用户定制队列
CQ使用了17个子队列(其中0子队列是PQ队列,优先级很高,留给系统使用),CQ使用WRR(Round-Robin)机制。首先谈谈RR机制,RR在处理完一个队列的一个数据包之后,会接着处理另一个队列的一个数据包,一直下去,最后又从第一个队列开始轮流处理每个队列中的数据包,RR中的每个队列的优先级都是一样的。RR的改进版是WRR(WeightedRound-Robin),WRR允许用户为每个队列分配一个权值,根据这个权值,每个队列都能获得一定的接口带宽。在CQ中,权值就是一次轮循中可以转发的字节数。
前面说到了0队列是PQ队列,实际上可以把其他队列也设置成PQ队列:
可以通过以下命令来设置:
queue-listlist-number lowest-customqueue-number
比如命令queue-list 1 lowest-custom3,说明0,1,2都是优先级队列,3以及3以上编号的队列都是定制队列。
CQ configuration:
r2(config)#
r2(configaccess-list101 permit ip any any precedence 5
r2(config)#
r2(configqueue-list16 protocol ip1 list 101 https://把ACL101定义的数据流映射到子队列1中https://
r2(configqueue-list16queue 1 limit 40 https://设置子队列1的队列深度为40个数据包https://
r2(configqueue-list16lowest-custom 2 https://设置queue 0,1为优先级队列PQ,其余的为CQhttps://
r2(configqueue-list16 interfaces0/0 2 https://把s0/0接口进入的流量映射到子队列2中https://
r2(configqueue-list16queue 2 byte-count 3000 https://设置子队列2在一个轮循内可以传输3000字节数据包
r2(configqueue-list16 protocol ip3 https://把所有IP流量映射到子队列3中https://
r2(configqueue-list16 queue 3 byte-count 5000
r2(configqueue-list16 default 4https://其它所有流量映射到子队列4中https://
r2(config)#
r2(config)#
r2(configints0/1
r2(config-ifcustom-queue-list16https://应用CQ到接口s0/1上https://
r2(config)#
QOS-PQ
PQ使用了4个子队列,优先级分别是high,medium,normal,low。PQ会先服务高优先级的子队列,若高优先级子队列里没有数据后,再服务中等优先级子队列,依次类推。如果PQ正在服务中等优先级子队列,但是高优先级里又来了数据包,则PQ会中断中等优先级子队列的服务,转而服务高优先级子队列。每一个子队列都有一个最大队列深度(queue-size),如果达到了最大队列深度,则进行尾丢弃。
PQ优点
1.对高优先级的数据流提供了低延迟的转发
2.大多数平台上都支持该队列机制
3.支持所有的IOS版本(10.0以上)
PQ缺点
1.对单一子队列而言,会继承FIFO队列的所有缺点
2.对低优先级的数据流而言,可能会被“饿死”,因为只有高优先级队列里有数据,PQ就不会服务低优先级队列
3.需要在每一跳上都手工的配置分类
PQConfiguration:
PQ(config)#
PQ(configpriority-list1 protocolip high list 101 https://把Acl101定义的数据映射到high优先级队列https://
PQ(configpriority-list1 interface s0/0medium https://把来自s0/1口的流量映射到Medium优先级队列https://
PQ(configpriority-list1default normal https://所有其它流量映射到Normal优先级队列https://
PQ(configpriority-list1queue-limit 20 30 40 50 https://分别设置高,中,普通,低优先级队列长度https://
PQ(config)#
PQ(configints0/1
PQ(config-ifpriority-group1https://把PQ映射到接口s0/1上https://
PQ(config)#
查看:
PQ#
PQshowqueueing int s0/1
Interface Serial0/1 queueing strategy: priority
Output queue utilization(queue/count)
high/13 medium/0 normal/2056 low/0
PQ#
PQ#
PQshowqueueingpriority
Current DLCI priority queueconfiguration:
Current priority queue configuration:
ListQueue Args
1 high protocol ip list 101
1 medium interfaceSerial0/0
1 medium limit 30
1 normal limit 40
1 low limit 50
PQ#
QOS-LLQ
Low LatencyQueueing(低延迟队列LLQ)
i、特点
在CBWFQ中添加一个优先级队列用于实时的流量。
* 高优先级队列得到如下保障:
a)低延迟的报文转发
b)带宽
注:在拥塞发生时,高优先级的流量同时受到管制—即它们占用的带宽不能超过它们所保障的带宽。
* 低优先级队列使用CBWFQ。
ii、配置LLQ
priority带宽值—-为一个类分配固定的带宽值确保快速转发;若拥塞时,超过该带宽的流量将被丢弃。(若没有拥塞,将不会使用管制)
LLQ基本可以满足企业中融合的网络应用
支持语音对网络的低延迟,抖动小,保障带宽
对其它流量提供公平处理
LLQ= CBWFQ+PQ
LLQ configuration:
LLQ(config)#
LLQ(configclass-mapVOIP
LLQ(config-cmap)matchip precedence 5
LLQ(config)#
LLQ(configclass-mapcbwfq1
LLQ(config-cmap)matchip precedence 3 4
LLQ(config)#
LLQ(configclass-mapcbwfq2
LLQ(config-cmap)matchip precedence 1 2
LLQ(config)#
LLQ(configpolicy-mapLLQ
LLQ(config-pmap)classVOIP
LLQ(config-pmap-cprioritypercent 10https://针对VOIP类流量使用PQ,这路流量在任何情况下都优先发送
LLQ(config-pmap-c)# 同时最大带宽可以为接口带宽的10%https://
LLQ(config-pmap)#classcbwfq1
LLQ(config-pmap-cbandwidthpercent30
LLQ(config-pmap-c)#
LLQ(config-pmap)classcbwfq2
LLQ(config-pmap-cbandwidthpercent20 https://CBWFQ方式进行调度,分别保障30%和20%接口带宽https://
LLQ(config-pmap-c)#
LLQ(config-pmap)classclass-default
LLQ(config-pmap-CFair-queuehttps://剩下其它队列采用缺省的WFQ调度https://
LLQ(config-pmap-c)#
LLQ(config)#
LLQ(configints0/0
LLQ(config-ifservice-policyoutput LLQ
LLQ(config)#
看过文章“怎么配置Cisco QOS-CQ”