Catalyst 6000上不同線路卡的輸出隊列能力 假如您并不確定某個端口的隊列能力,那么首先要做的就是發出 show queueing interface <gig fast et> <mod/port> 命令。以下是SUP1A線路卡上一個端口的 show queueing interface 命令輸出的前幾行:
1.首先啟用QoS。請記住,QoS默認值禁用。當QOS禁用時,無論您對CoS映射作何種配置,都不會影響結果。系統只會以先進先出(FIFO)的方式處理一條隊列,所有數據包將被丟棄。 cosmos#conf t Enter configuration commands, one per line. End with CNTL/Z. cosmos(config)#mls qos
QoS is enabled globally Microflow policing is enabled globally
QoS global counters: Total packets: 552638 ip shortcut packets: 0 Packets dropped by policing: 0 IP packets with TOS changed by policing: 0 IP packets with COS changed by policing: 0 Non-IP packets with CoS changed by policing: 0
wrr-queue cos-map<Q number (1-2)> <threshold_number (1-2)> <cos value 1> <cos value 2> priority-queue cos-map<Q number (always 1)> <cos value 1> <cos value 2>
cosmos#conf t Enter configuration commands, one per line. End with CNTL/Z. cosmos(config)#int gig 1/1 cosmos(config-if)#wrr-queue bandwidth ? <1-255> enter bandwidth weight between 1 and 255 cosmos(config-if)#wrr-queue bandwidth 20 80 !-- 隊列 1消耗20%的時間, 隊列 2將消耗80%的時間。 cosmos(config-if)#
檢查配置:
cosmos#show queueing interface gig 1/1 Interface GigabitEthernet1/1 queueing strategy: Weighted Round-Robin Port QoS is enabled Port is untrusted Default cos is 0 Transmit queues [type = 1p2q2t]: Queue Id Scheduling Num of thresholds ----------------------------------------- 1 WRR low 2 2 WRR high 2 3 Priority 1
檢查配置: cosmos#show queueing interface gig 1/2 Interface GigabitEthernet1/2 queueing strategy: Weighted Round-Robin Port QoS is enabled Port is untrusted Default cos is 0 Transmit queues [type = 1p2q2t]: Queue Id Scheduling Num of thresholds ----------------------------------------- 1 WRR low 2 2 WRR high 2 3 Priority 1
cosmos(config)#int fast e 3/1 cosmos(config-if)#wrr-queue threshold ? <1-2> enter threshold queue id (1-2) cosmos(config-if)#wrr-queue threshold 1 ? <1-100> enter percent of queue size between 1 and 100 cosmos(config-if)#wrr-queue threshold 1 50 100 !-- 我們將隊列1(低優先級)2q2t接口沒有尾數的閥值設置為50, !-- 并填滿整個緩沖器: threshold configured on: Fa3/1 Fa3/2 Fa3/3 Fa3/4 Fa3/5 Fa3/6 Fa3/7 Fa3/8 Fa3/9 Fa3/10 Fa3/11 Fa3/12 cosmos(config-if)# cosmos(config-if)# cosmos(config-if)#wrr-queue threshold 2 40 100 !-- 我們將隊列2(高優先級)2q2t接口沒有尾數的閥值設置為40, !-- 并填滿整個緩沖器: threshold configured on: Fa3/1 Fa3/2 Fa3/3 Fa3/4 Fa3/5 Fa3/6 Fa3/7 Fa3/8 Fa3/9 Fa3/10 Fa3/11 Fa3/12 cosmos(config-if)#
檢查配置: cosmos#show queueing int gig 1/1 Interface GigabitEthernet1/1 queueing strategy: Weighted Round-Robin Port QoS is enabled Port is untrusted Default cos is 0 Transmit queues [type = 1p2q2t]: Queue Id Scheduling Num of thresholds ----------------------------------------- 1 WRR low 2 2 WRR high 2 3 Priority 1
cosmos#show queueing int fa 3/1 Interface FastEthernet3/1 queueing strategy: Weighted Round-Robin Port QoS is enabled Port is untrusted Default cos is 0 Transmit queues [type = 2q2t]: Queue Id Scheduling Num of thresholds ----------------------------------------- 1 WRR low 2 2 WRR high 2