Configuring QoS egress scheduling

Follow the below steps to configure QoS egress scheduling.

  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter interface configuration mode for port-channel 1.
    device(config)# interface port-channel 1
    
  3. Specify the option for strict priority mode to determine strict priority queues.
    device(port-channel-1)# qos queue scheduler strict-priority 4
    
    There are seven traffic classes. Specify the weight for the priority If the priority is in WFQ mode.
  4. Return to privileged exec mode.
    device(port-channel-1)# end
    
  5. Verify the configuration.
    device# show qos interface port-channel 1
    
  6. View the VOQ statistics.
    device# show tm voq-stat ingress-device ethernet 0/15 egress-port ethernet 0/125
    
    VOQ-Counters:
    ====================================================
    
    Priority 0 
    ----------------------------------------------
    EnQue Pkt Count                          0                                        
    EnQue Bytes Count                        0                                        
    Total Discard Pkt Count                  0                                        
    Total Discard Bytes Count                0                                        
    Current Queue Depth                      0                                        
    Maximum Queue Depth since Last read      0                                        
    
    Priority 1 
    ----------------------------------------------
    EnQue Pkt Count                          0                                        
    EnQue Bytes Count                        0                                        
    Total Discard Pkt Count                  0                                        
    Total Discard Bytes Count                0                                        
    Current Queue Depth                      0                                        
    Maximum Queue Depth since Last read      0                                        
    
    Priority 2 
    ----------------------------------------------
    EnQue Pkt Count                          0                                        
    EnQue Bytes Count                        0                                        
    Total Discard Pkt Count                  0                                        
    Total Discard Bytes Count                0                                        
    Current Queue Depth                      0                                        
    Maximum Queue Depth since Last read      0                                        
    
    Priority 3 
    ----------------------------------------------
    EnQue Pkt Count                          0                                        
    EnQue Bytes Count                        0                                        
    Total Discard Pkt Count                  0                                        
    Total Discard Bytes Count                0                                        
    Current Queue Depth                      0                                        
    Maximum Queue Depth since Last read      0                                        
    
    Priority 4 
    ----------------------------------------------
    EnQue Pkt Count                          0                                        
    EnQue Bytes Count                        0                                        
    Total Discard Pkt Count                  0                                        
    Total Discard Bytes Count                0                                        
    Current Queue Depth                      0                                        
    Maximum Queue Depth since Last read      0                                        
    
    Priority 5 
    ----------------------------------------------
    EnQue Pkt Count                          0                                        
    EnQue Bytes Count                        0                                        
    Total Discard Pkt Count                  0                                        
    Total Discard Bytes Count                0                                        
    Current Queue Depth                      0                                        
    Maximum Queue Depth since Last read      0                                        
    
    Priority 6 
    ----------------------------------------------
    EnQue Pkt Count                          0                                        
    EnQue Bytes Count                        0                                        
    Total Discard Pkt Count                  0                                        
    Total Discard Bytes Count                0                                        
    Current Queue Depth                      0                                        
    Maximum Queue Depth since Last read      0                                        
    
    Priority 7 
    ----------------------------------------------
    EnQue Pkt Count                          0                                        
    EnQue Bytes Count                        0                                        
    Total Discard Pkt Count                  0                                        
    Total Discard Bytes Count                0                                        
    Current Queue Depth                      0                                        
    Maximum Queue Depth since Last read      0                                          
    
  7. Save the configuration.
    device# copu running-config startup-config
    

QoS egress scheduling configuration example

device# configure terminal
device(config)# interface port-channel 1
device(port-channel-1)# qos queue scheduler strict-priority 4
device(port-channel-1)# end
device# show qos interface port-channel 1
device# show tm voq-stat ingress-device ethernet 0/15 egress-port ethernet 0/125
device# copy running-config startup-config