QoS Queues

Configuring QoS queues

QoS queue configuration reduces the number of outbound queues that all switch ports use to buffer packets for 802.1p user priorities.

By default the switches covered in this guide use eight queues. Change the default QoS queue configuration to four-queue mode or two-queue mode to increase the available bandwidth per queue.

Use the following commands to change the number of queues per port and display the current priority queue configuration on the switch.

Syntax:

qos queue-config 2-queues | 4-queues | 8-queues

Configures the number of outbound priority queues for all ports on the switch using one of the following options: 2-queues, 4-queues, or 8-queues.

Default: 8-queues

The new configuration will:

  • Remove any previously configured bandwidth-min output settings

  • Set the new number of outbound port queues

    If you select anything but yes for this operation, the operation is aborted and a message stating Operation aborted appears.


[CAUTION: ]

CAUTION: This command will execute a write memory followed by an immediate reboot, replacing the Startup configuration with the content of the current Running configuration.


Changing the number of priority queues (Example)

To change the number of outbound priority queues for all ports on the switch, use the qos queue-config command.


[CAUTION: ]

CAUTION: The qos queue-config command executes a write memory followed by an immediate reboot, replacing the Startup configuration with the contents of the current Running configuration. Setting the number of outbound port queues, the new configuration will remove any previously configured bandwidth-min output settings.


To change the number of outbound priority queues for all ports on the switch from eight queues (the default) to four:

  1. Configure the number of outbound priority queues by using the qos queue-config command.

    HP Switch(config)#: qos queue-config 4-queues
    

    A caution message is displayed (see the Caution note above) concluding with the following prompt.

    Do you wish to proceed? [Proceed/Cancel]
    
  2. Type Proceed to continue.

    A second confirmation prompt appears:

    Please confirm reset. [Yes/Cancel]
    
  3. Type Yes to initiate a write memory followed by an immediate reboot. (If you enter Cancel at either of the two prompts, the command is aborted and the current queue configuration is maintained on the switch).

    The changes will be committed to the startup configuration and the switch will reboot automatically with the new priority queue changes in effect. See Default GMB percentage allocations per QoS queue configuration for a listing of the default GMB percentages that are allocated per queue.

Viewing the QoS queue configuration

Syntax:

show qos queue-config

Displays the current priority queue configuration and memory allocations per queue. For example:

HP Switch#: show qos queue-config

        802.1p
Queue   Priority   Memory %
-----   --------   --------
   1       1–2        10
   2       0,3        70
   3       4–5        10
   4       6–7        10

Using the outbound queue monitor


[NOTE: ]

NOTE: Outbound queue monitoring is not supported on HP 3800 switches.


When QoS is used to prioritize traffic, different kinds of traffic can be assigned to different egress queues. If there is a great deal of traffic, it is desirable to be able determine if some traffic to the lower priority queues was dropped. This feature allows the egress queues for one port to be monitored for dropped packets.

Syntax:

[no] qos watch-queue port out

Configures the switch to start monitoring the specified port for the dropped packets for each queue. Disabling and then re-enabling monitoring on a port clears the per-queue dropped packet counters. For example:

HP Switch(config)#: qos watch-queue 5 out

The no form of the command stops the collection of dropped traffic information. (Default: disabled)

Viewing per-queue counts

The show interface queues command displays the number of dropped packets for each queue for the configured port. The port must have been configured with the qos watch-queue command. Ports that have not been configured display zero values for the queue counts.

Monitoring egress queues on a port

HP Switch(config)#: show interface queues 5

Status and Counters - Queue Counters for port 5

  Name  :
  MAC Address      : 001c2e-95ab3f
  Link Status      : Up
  Port Totals (Since boot or last clear) :
   Rx Ucast Pkts   : 142,181              Tx Ucast Pkts  : 552
   Rx B/Mcast Pkts : 10,721,488           Tx B/Mcast Pkts : 11,765
   Rx Bytes        : 1,267,216,218        Tx Bytes       : 2,652,372
   Rx Drop Packets : 0                    Tx Drop Packets : 0
  Egress Queue Totals (Since boot or last clear) : 
   Queue CoS  Dropped Packets
   1     1-2  123456789012345
   2     0,3  12345678
   3     4-5  1234
   4     6-7  0

QoS Port Egress Queue DropCounters

Port egress-queue drop counters help customers debug network behavior and performance issues.

Egress-queue drop counters can be used to detect congestion on outbound ports, and help troubleshoot the network. The additional status display by this command show egress port-queue drop and transmits, the sum of which should be all traffic intended for the outbound port.

Command Line Support

Syntax

show interfaces queues... | config | custom ... | display | port-utilization | transceiver ... | status ... | tunnel ... | ethernet PORT-LIST

Show port configuration and status information.

show interfaces ...

show interface queues a1
Status and Counters - Port Counters for port A1

Name  : 
MAC Address      : a01d48-8f99ff
Link Status      : Down
Port Totals (Since boot or last clear) :

Rx Packets      : 0                  Tx Packets      : 0
Rx Bytes        : 0                  Tx Bytes        : 0
Rx Drop Packets : 0                  Tx Drop Packets : 0
Rx Drop Bytes   : 0                  Tx Drop Bytes   : 0

Egress Queue Totals (Since boot or last clear) :
Tx Packets      Dropped Packets  Tx Bytes         Dropped Bytes
Q1 123456789012    123456789012     123456789012     123456789012
Q2 12345678        12345678         12345678         12345678 
Q3 1234            1234             1234             1234  
Q4 0               0                0                0 

Mapping of outbound port queues

This table shows the mapping of 802.1p priorities to outbound port queues.

Mapping 802.1p priorities to outbound port queues

802.1p priority 8 Queues (default) 4 Queues 2 Queues
1 (lowest) 1 1 1
2 2
0 (normal) 3 2
3 4
4 5 3 2
5 6
6 7 4
7 (highest) 8