Configure an Egress QoS Queue Profile

Configure a queue profile to apply the configured egress queue parameters to queues and ports.

About this task

After you make a configuration change to a queue profile, you must apply the profile before the changes take effect.

Note

Note

The switch supports six queue profiles. The default queue profile, with the name default and ID 1, is automatically created during system startup and cannot be deleted.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Configure the minimum weight for a specific queue:

    qos queue-profile queue <1–6> <0-7> min-weight <1-100>

  3. Enable rate limiting on a weighted queue:

    qos queue-profile queue <1–6> <0-7> rate-limit-enable

  4. Add a queue-profile port member:

    qos queue-profile <1–6> member add {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

  5. Add a queue-profile name:

    qos queue-profile <1–6> name WORD<0–64>

  6. Apply the queue profile:

    qos queue-profile <1–6> apply

  7. Verify the egress queue configuration:

    show qos queue-profile [<1–6> queue <0–7>|all]

  8. Optional: Configure the default settings for an egress queue:
    • Configure the default minimum weight using one of the following commands:

      default qos queue-profile queue <1–6> <0-7> min-weight

      no qos queue-profile queue <1–6> <0-7> min-weight

    • Configure the default rate limiting on a weighted queue using one of the following commands:

      default qos queue-profile queue <1–6> <0-7> rate-limit-enable

      no qos queue-profile queue <1–6> <0-7> rate-limit-enable

Examples

Configure the queue profile for queue 6 to use a weight of 20.

Switch:1(config)#qos queue-profile 6
Switch:1(config)#qos queue-profile queue 6 1 min-weight 20 
Switch:1(config)#qos queue-profile 6 apply

View the queue profile configuration.

Switch:1#show qos queue-profile

==========================================================================================
                               Qos Queue Profile
==========================================================================================


Profile Profile    Profile
ID      Name       Port List
------------------------------------------------------------------------------------------
1       default    1/1-1/42,2/1-2/42
6				 profile-6

The value in the Weight Applied column is the maximum bandwidth for Strict Priority queues (Rate Limit Enabled) and the weight in the WRR scheduling algorithm applied per queue. Strict Priority queues are serviced first and limited to the configured percentage of bandwidth. WRR queues (no rate limit applied) have no upper boundary, other than the delta between the available bandwidth per port and the one consumed by Strict Priority queues. For WRR queues, there is no association with the bandwidth percentage servicing this queue; the bandwidth that can be served is relative to the available bandwidth at a certain moment and the load of other queues.

Switch:1(config)#show qos queue-profile 1 queue 1

=================================================================================
                            Qos Queue Profile Table

=================================================================================

Profile Profile Queue Weight  Weight     Rate-limit Rate-limit
ID      Name    ID    Applied Configured Applied    Configured
---------------------------------------------------------------------------------
1      default  1     0       20         ENABLE     DISABLE
Switch:1(config)#show qos queue-profile 1 queue all
 
=================================================================================
                            Qos Queue Profile Table
=================================================================================
 
Profile Profile       Queue Weight  Weight     Rate-limit Rate-limit
ID      Name          ID    Applied Configured Applied    Configured
---------------------------------------------------------------------------------
1       default       0     10      10         DISABLE    DISABLE  
1       default       1     20      20         DISABLE    DISABLE  
1       default       2     30      30         DISABLE    DISABLE  
1       default       3     40      40         DISABLE    DISABLE  
1       default       4     50      50         DISABLE    DISABLE  
1       default       5     50      50         DISABLE    DISABLE  
1       default       6     50      50         DISABLE    ENABLE   
1       default       7     5       5          ENABLE     ENABLE 

Variable Definitions

The following table defines parameters for the qos queue-profile queue command.

Variable

Value

<1–6>

Specifies the queue profile ID.

Note:

The switch supports six queue profiles. The default queue is 1.

<0-7>

Specifies the egress queue to configure.

min-weight <1-100>

Configures the queue weight for weighted round robin (WRR), or the rate-limit in percentage of the link rate for queue shaping enabled on the queue.

For rate-limit-enabled queues, 50 indicates 50% bandwidth. The overall rate-limit-enabled queues cannot sum higher than 100 min-weight.

If rate-limiting is not enabled, this parameter configures the weight in the WRR scheduler. These values are not associated with bandwidth percentage.

The following list identifies the default minimum weight for each queue:

  • Queue 0 — 10

  • Queue 1 — 20

  • Queue 2 — 30

  • Queue 3 — 40

  • Queue 4 — 50

  • Queue 5 — 50

  • Queue 6 — Rate limited to 50% of configured shaper rate

  • Queue 7 — Rate limited to 5% of configured shaper rate

member add {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Specifies a port member of the queue-profile to add or remove.

name WORD<0–64>

Specifies a profile name.

rate-limit-enable

Enables rate limiting on the queue. By default, rate limiting is enabled for queues 6 and 7 only; it is disabled for queues 0 through 5.

The following table defines parameters for the show qos queue-profile command.

Variable

Value

<1–6>

Specifies the queue profile ID. If you do not include a queue profile ID, the command output displays all configured profiles.

Note:

The switch supports six queue profiles. The default queue is 1.

<0-7>

Specifies the egress queue.

Displays configuration settings of the specified egress queue.

all

The command output displays the configuration settings of all eight egress queues of the queue profile.