本文档介绍如何在Cisco Nexus 6000系列交换机上配置服务质量(QoS)。
Cisco 建议您了解以下主题:
本文档中的信息基于Cisco Nexus 6000系列交换机。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您使用的是真实网络,请确保您已经了解所有命令的潜在影响。
本文档也可用于以下硬件和软件版本:
默认情况下,在Nexus 6000系列交换机上,QoS已启用,分类在入口受信任,并且所有流量都放在单个先进先出(FIFO)出口队列中。如果要修改此行为,必须配置自己的策略。
所有QoS策略都在硬件级别应用,无论是在入口统一端口控制器(UPC)、交叉开关交换矩阵上,还是在出口UPC上。交换机支持以下QoS策略:
前三个策略分三个阶段应用:
对于本文档中提供的示例,每个策略都应用于交叉开关交换矩阵。此外,根据设计需要,可以使用QoS或排队策略配置接口。
要修改平台上的QoS,请完成以下步骤:
此八类型的以太网光纤通道(FCoE)使用所有QoS组,用于本文档中描述的配置:
使用以下信息配置QoS策略:
class-map type qos match-any VIDEO
match dscp 26,28,30,34,36,38
class-map type qos match-any VOICE
match dscp 46
class-map type qos match-all SIGNALING
match dscp 24class-map type qos match-any TRANSACTIONAL
match dscp 18,20,22
class-map type queuing queueVIDEO
match qos-group 4class-map type queuing queueVOICE
match qos-group 5
class-map type queuing queueSIGNALING
match qos-group 3
class-map type queuing queueTRANSACTIONAL
match qos-group 2
policy-map type qos Global-Classification
class VOICE
set qos-group 5 class VIDEO
set qos-group 4
class SIGNALING
set qos-group 3
class TRANSACTIONAL
set qos-group 2
class class-fcoe
set qos-group 1
使用以下信息配置网络QoS策略:
class-map type network-qos nqVIDEO
match qos-group 4
class-map type network-qos nqVOICE
match qos-group 5
class-map type network-qos nqSIGNALING
match qos-group 3
class-map type network-qos nqTRANSACTIONAL
match qos-group 2
policy-map type network-qos Global-Network-QoS
class type network-qos nqVOICE
queue-limit 20480 bytes
class type network-qos nqVIDEO
queue-limit 40960 bytes
class type network-qos nqSIGNALING
queue-limit 40960 bytes
class type network-qos nqTRANSACTIONAL
queue-limit 40960 bytes
class type network-qos class-fcoe
pause no-drop
mtu 2158
class type network-qos class-default
使用以下信息配置队列策略:
class-map type queuing queueVIDEO
match qos-group 4
class-map type queuing queueVOICE
match qos-group 5
class-map type queuing queueSIGNALING
match qos-group 3
class-map type queuing queueTRANSACTIONAL
match qos-group 2
policy-map type queuing Global-Queuing
class type queuing queueVOICE
priority
class type queuing queueVIDEO
bandwidth percent 10
class type queuing queueSIGNALING
bandwidth percent 20
class type queuing queueTRANSACTIONAL
bandwidth percent 25
class type queuing class-fcoe
bandwidth percent 20
class type queuing class-default
bandwidth percent 25
以下是纵横式交换矩阵应用的示例:
system qos
service-policy type qos input Global-Classification
service-policy type network-qos Global-Network-QoS
service-policy type queuing output Global-Queuing
service-policy type queuing input Global-Queuing
要验证配置是否正常工作,请在CLI中输入show queueing interface <x/y>命令:
Ethernet1/1 queuing information:
TX Queuing
qos-group sched-type oper-bandwidth
0 WRR 25
1 WRR 20
2 WRR 25
3 WRR 20
4 WRR 10
5 priority 0
RX Queuing
qos-group 0
q-size: 100160, HW MTU: 1500 (1500 configured)
drop-type: drop, xon: 0, xoff: 0
Statistics:
Pkts received over the port : 13896
Ucast pkts sent to the cross-bar : 0
Mcast pkts sent to the cross-bar : 13896
Ucast pkts received from the cross-bar : 0
Pkts sent to the port : 0
Pkts discarded on ingress : 0
Per-priority-pause status : Rx (Inactive), Tx (Inactive)
qos-group 1
q-size: 165120, HW MTU: 2158 (2158 configured)
drop-type: no-drop, xon: 62720, xoff: 88320
Statistics:
Pkts received over the port : 0
Ucast pkts sent to the cross-bar : 0
Mcast pkts sent to the cross-bar : 0
Ucast pkts received from the cross-bar : 0
Pkts sent to the port : 0
Pkts discarded on ingress : 0
Per-priority-pause status : Rx (Inactive), Tx (Inactive)
qos-group 2
q-size: 75520, HW MTU: 1500 (1500 configured)
drop-type: drop, xon: 0, xoff: 0
Statistics:
Pkts received over the port : 0
Ucast pkts sent to the cross-bar : 0
Mcast pkts sent to the cross-bar : 0
Ucast pkts received from the cross-bar : 0
Pkts sent to the port : 0
Pkts discarded on ingress : 0
Per-priority-pause status : Rx (Inactive), Tx (Inactive)
qos-group 3
q-size: 75520, HW MTU: 1500 (1500 configured)
drop-type: drop, xon: 0, xoff: 0
Statistics:
Pkts received over the port : 0
Ucast pkts sent to the cross-bar : 0
Mcast pkts sent to the cross-bar : 0
Ucast pkts received from the cross-bar : 0
Pkts sent to the port : 0
Pkts discarded on ingress : 0
Per-priority-pause status : Rx (Inactive), Tx (Inactive)
qos-group 4
q-size: 75520, HW MTU: 1500 (1500 configured)
drop-type: drop, xon: 0, xoff: 0
Statistics:
Pkts received over the port : 0
Ucast pkts sent to the cross-bar : 0
Mcast pkts sent to the cross-bar : 0
Ucast pkts received from the cross-bar : 0
Pkts sent to the port : 0
Pkts discarded on ingress : 0
Per-priority-pause status : Rx (Inactive), Tx (Inactive)
qos-group 5
q-size: 55040, HW MTU: 1500 (1500 configured)
drop-type: drop, xon: 0, xoff: 0
Statistics:
Pkts received over the port : 0
Ucast pkts sent to the cross-bar : 0
Mcast pkts sent to the cross-bar : 0
Ucast pkts received from the cross-bar : 0
Pkts sent to the port : 0
Pkts discarded on ingress : 0
Per-priority-pause status : Rx (Inactive), Tx (Inactive)
目前没有针对此配置的故障排除信息。
版本 | 发布日期 | 备注 |
---|---|---|
1.0 |
22-Apr-2015 |
初始版本 |