8. Network queue QoS policies

This chapter provides information to configure network queue QoS policies using the CLI.

8.1. Overview

Network queue policies define the egress network queuing for the traffic egressing on the access uplink ports. Network queue policies are used at the Ethernet port and define the bandwidth distribution for the FC traffic egressing on the Ethernet port.

On 7210 SAS-D and 7210 SAS-Dxp, all network-queue policies contain eight queues. The user cannot allocate fewer queues or change the mapping of FC to queue. Each of these queues is shared by unicast and multicast traffic.

8.2. Basic configurations

A basic network queue QoS policy must conform to the following:

  1. Each network queue QoS policy must have a unique policy name.
  2. Queue parameters can be modified but cannot be deleted.

8.2.1. Creating a network queue QoS policy

Configuring and applying QoS policies other than the default policy is optional. A default network queue policy is applied to all access uplink ports:

To create a network queue policy, define the following:

  1. network queue policy name
    The system does not dynamically assign a name.
  2. description
    The description provides a brief overview of policy features.

On 7210 SAS-D and 7210 SAS-Dxp, FCs are mapped to eight queues available at the port according to FC-to-queue ID map.

Use the following syntax to create a network queue QoS policy.

CLI Syntax:
config>qos
network-queue policy-name
description description-string
queue queue-id
rate cir cir-percent [pir pir-percent]
adaptation-rule [cir adaptation-rule] [pir adaptation-rule]
*A:7210SASD>config>qos>network-queue# info detail
----------------------------------------------
            description "Default network queue QoS policy."
            queue 1
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 2
                rate cir 25 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 3
                rate cir 25 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 4
                rate cir 25 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 5
                rate cir 100 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 6
                rate cir 100 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 7
                rate cir 10 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 8
                rate cir 10 pir 100
                adaptation-rule cir closest pir closest
            exit
----------------------------------------------
*7210SASD>config>qos>network-queue# 
 
 
*7210SASDxp>config>qos>network-queue# info detail 
----------------------------------------------
            description "Default network queue QoS policy."
            queue 1 
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 2 
                rate cir 10 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 3 
                rate cir 10 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 4 
                rate cir 10 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 5 
                rate cir 15 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 6 
                rate cir 15 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 7 
                rate cir 5 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 8 
                rate cir 10 pir 100
                adaptation-rule cir closest pir closest
            exit

8.2.2. Applying network queue configuration in access-uplink mode

Use the following syntax to apply a network queue policy to an Ethernet port.

CLI Syntax:
config>port#
ethernet
access
uplink
queue-policy policy-name
#--------------------------------------------------
echo "Port Configuration"
#--------------------------------------------------
    port 1/1/1
        ethernet
            mode access uplink
            access
                uplink
                    queue-policy "nq1-cbs"
                exit
            exit
        exit
        no shutdown
    exit

8.3. Default network queue policy values

The default network queue policies are identified as policy-id default. The default policies cannot be modified or deleted. The following table lists the network queue policy defaults for 7210 SAS-D.

Table 33:  Network queue policy defaults for 7210 SAS-D 

Field

Default

description

Default network queue QoS policy.

queue 1

rate

cir

0

pir

100

queue 2

rate

cir

25

pir

100

queue 3

rate

cir

25

pir

100

queue 4

rate

cir

25

pir

100

queue 5

rate

cir

100

pir

100

queue 6

rate

cir

100

pir

100

queue 7

rate

cir

10

pir

100

queue 8

rate

cir

10

pir

100

The following table lists the network queue policy defaults for 7210 SAS-Dxp.

Table 34:  Network queue policy defaults for 7210 SAS-Dxp 

Field

Default

description

Default network queue QoS policy.

queue 1

rate

cir

0

pir

100

queue 2

rate

cir

10

pir

100

queue 3

rate

cir

10

pir

100

queue 4

rate

cir

10

pir

100

queue 5

rate

cir

15

pir

100

queue 6

rate

cir

15

pir

100

queue 7

rate

cir

5

pir

100

queue 8

rate

cir

10

pir

100

The following displays network queue default policy parameters for 7210 SAS-D.

*A:dut-a>config>qos>network-queue# info detail 
----------------------------------------------
            description "Default network queue QoS policy."
            queue 1 
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 2 
                rate cir 25 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 3 
                rate cir 25 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 4 
                rate cir 25 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 5 
                rate cir 100 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 6 
                rate cir 100 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 7 
                rate cir 10 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 8 
                rate cir 10 pir 100
                adaptation-rule cir closest pir closest
            exit

The following displays network queue default policy parameters for 7210 SAS-Dxp.

*A:dut-a>config>qos>network-queue# info detail 
----------------------------------------------
            description "Default network queue QoS policy."
            queue 1 
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 2 
                rate cir 10 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 3 
                rate cir 10 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 4 
                rate cir 10 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 5 
                rate cir 15 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 6 
                rate cir 15 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 7 
                rate cir 5 pir 100
                adaptation-rule cir closest pir closest
            exit
            queue 8 
                rate cir 10 pir 100
                adaptation-rule cir closest pir closest
            exit

8.4. Service management tasks

This section describes the service management tasks.

8.4.1. Deleting network queue QoS policies

A network queue policy is associated by default with all access uplink ports. You can replace the default policy with a customer-configured policy, but you cannot entirely remove a QoS policy. When you remove a QoS policy, the policy association reverts to the default network-queue policy default.

Use the following syntax to delete a user-created network queue policy.

CLI Syntax:
config>qos# no network-queue policy-name

The following example shows the command usage to delete a user-created network queue policy.

Example:
config>qos# no network-queue nq1

8.4.2. Copying and overwriting network queue QoS policies

You can copy an existing network queue policy, rename it with a new policy ID name, or overwrite an existing network queue policy. The overwrite option must be specified or an error occurs if the destination policy ID exists.

Use the following syntax to copy and overwrite a QoS policy.

CLI Syntax:
config>qos# copy network-queue source-policy-id dest-policy-id [overwrite]

The following example shows the command usage to copy and overwrite a QoS policy.

Example:
config>qos# copy network-queue nq1-cbs nq2-cbs

The following is a sample configuration output showing copied policies.

*A:card-1>config>qos# info
#--------------------------------------------------
echo "QoS Slope and Queue Policies Configuration"
#--------------------------------------------------
.......
        network-queue "nq1-cbs" create
            queue 1
                rate cir 0 pir 32
                adaptation-rule cir max
            exit
            queue 2
            exit
            queue 3
            exit
            queue 4
            exit
            queue 5
            exit
            queue 6
                rate cir 0 pir 4
            exit
            queue 7
                rate cir 3 pir 93
            exit
            queue 8
                rate cir 0 pir 3
            exit
        exit
        network-queue "nq2-cbs" create
            queue 1
                rate cir 0 pir 32
                adaptation-rule cir max
            exit
            queue 2
            exit
            queue 3
            exit
            queue 4
            exit
            queue 5
            exit
            queue 6
                rate cir 0 pir 4
            exit
            queue 7
                rate cir 3 pir 93
            exit
            queue 8
                rate cir 0 pir 3
            exit
        exit
----------------------------------------------
*A:card-1>config>qos# info

8.4.3. Editing network queue QoS policies

You can change existing policies, except the default policies, and entries in the CLI. The changes are applied immediately to all ports where the policy is applied. To prevent configuration errors, use the copy command to make a duplicate of the original policy to a work area, make the edits, and then overwrite the original policy.