本檔案介紹如何在Cisco Nexus 6000系列交換器上設定服務品質(QoS)。
思科建議您瞭解以下主題:
本文檔中的資訊基於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 |
初始版本 |