8. Network queue QoS policies

This section provides information to configure network queue QoS policies using the command line interface.

8.1. Overview

Network Queue policies define the network egress queue parameters. Network queue policies are associated with the following:

  1. network ports on 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-Mxp in network mode
  2. hybrid ports on 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-Mxp in network mode
  3. access uplink ports on 7210 SAS-T in access uplink mode

Network queue policies define the bandwidth distribution for the network egress queues.

There is one default network queue policy. The default policies can be copied but they cannot be deleted or modified. The default policy is identified as network-queue default. Default network queue policies are applied to all network ports and hybrid port. The user must explicitly create and then associate other network queue QoS policies if the default values need to be modified.

The default network queue policy is defined as follows:

  1. On 7210 SAS-T (both access-uplink and network mode), it defines 8 forwarding classes and assigns 8 queues, one to each FC.
  2. On 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12, it defines 8 forwarding classes and assigns 8 queues, one to each FC.
  3. On 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE, it defines 8 forwarding classes and assigns 16 queues, one each to unicast traffic mapped to the FC and to multicast traffic mapped to the FC, for a total of 2 egress queues per FC.

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. Create 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 network ports (for 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-Mxp in network mode) and access uplink ports (for 7210 SAS-T in access uplink mode).

To create a network queue policy, define the following:

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

FCs are mapped to the queues according to Forwarding class to queue-ID map and Forwarding class-to-queue ID map for 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE

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]

The following is a sample configuration output to create a network queue QoS policy on the 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T.

 
*A:Dut-B>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
----------------------------------------------
*A:Dut-B>config>qos>network-queue# 
 

The following is a sample configuration output to create a network queue QoS policy on the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12.

 
*A:7210SAS>config>qos# info detail
----------------------------------------------
#--------------------------------------------------
echo "QoS Policy Configuration"
#--------------------------------------------------
        network-queue "t" create
            no description
            queue 1
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 2
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 3
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 4
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 5
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 6
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 7
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 8
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
----------------------------------------------
*A:7210SAS>config>qos

8.2.2. Applying network queue policies

Apply network queue policies to the following entities:

  1. Ethernet Ports

8.2.2.1. Applying network queue configuration in network mode

Use the following syntax to apply a network queue policy to an Ethernet port in network mode of operation.

The network-queue policy can only be applied on a network port.

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

8.2.2.2. Applying network queue configuration in access-uplink mode

Use the following syntax to apply a network queue policy to an Ethernet port in access-uplink mode of operation.

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 for 7210 SAS-T (in access-uplink and network modes), 7210 SAS-Sx/S 1/10GE, and 7210 SAS-Sx 10/100GE devices.

A:qos1# show qos network-queue default detail 
===============================================================================
QoS Network Queue Policy
===============================================================================
Network Queue Policy (default)
-------------------------------------------------------------------------------
Policy         : default                                                       
Accounting     : packet-based                                                  
Description    : Default network queue QoS policy.
 
-------------------------------------------------------------------------------
Queue CIR        PIR       CBS 
      CIR Rule   PIR Rule                
-------------------------------------------------------------------------------
1      0         100       12.50                                               
       closest   closest                                                       
2      25        100       12.50                                               
       closest   closest                                                       
3      25        100       12.50                                               
       closest   closest                                                       
4      25        100       12.50                                               
       closest   closest                                                       
5      100       100       12.50                                               
       closest   closest                                                       
6      100       100       12.50                                               
       closest   closest                                                       
7      10        100       12.50                                               
       closest   closest                                                       
8      10        100       12.50                                               
       closest   closest                                                       
                                      
-------------------------------------------------------------------------------
FC    UCastQ                          
-------------------------------------------------------------------------------
be     1                                                                       
l2     2                                                                       
af     3                                                                       
l1     4                                                                       
h2     5                                                                       
ef     6                                                                       
h1     7                                                                       
nc     8                                                                       
                                      
-------------------------------------------------------------------------------
Associations                          
-------------------------------------------------------------------------------
Port-id : 1/1/4                                                                
Port-id : 1/1/8                                                                
Port-id : 1/1/9                                                                
Port-id : 1/1/10                                                               
Port-id : 1/1/12                                                               
Port-id : 1/1/13                                                               
Port-id : 1/1/14                                                               
Port-id : 1/1/15                                                               
Port-id : 1/1/16                                                               
Port-id : 1/1/17                                                               
Port-id : 1/1/18                                                               
Port-id : 1/1/19                                                               
Port-id : 1/1/20                                                               
Port-id : 1/1/21                                                               
Port-id : 1/1/22                                                               
Port-id : 1/1/23                                                               
Port-id : 1/1/24                                                               
Port-id : lag-1                                                                
===============================================================================
A:qos1# 

The following displays default policy parameters for 7210 SAS-T (access-uplink and network modes), 7210 SAS-S 1/10GE, and 7210 SAS-Sx 10/100GE.

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

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

*A:sim_dutc>config>qos>network-queue$ info detail
----------------------------------------------
            no description
            queue 1
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 2
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 3
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 4
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 5
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
 

The following are sample default policy parameters for 7210 SAS-R6 and 7210 SAS-R12.

*A:7210SAS>show>qos# network-queue “default” detail
 
===============================================================================
QoS Network Queue Policy
===============================================================================
-------------------------------------------------------------------------------
Network Queue Policy (t)
-------------------------------------------------------------------------------
Policy         : t
Accounting     : packet-based
Description    : (Not Specified)
Wrr Policy     :
Pkt.Byte Offset: 0
-------------------------------------------------------------------------------
Queue Rates and Rules
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId        CIR(%)       CIR Adpt Rule        PIR(%)       PIR Adpt Rule
-------------------------------------------------------------------------------
Queue1          0              closest            100            closest
Queue2          0              closest            100            closest
Queue3          0              closest            100            closest
Queue4          0              closest            100            closest
Queue5          0              closest            100            closest
Queue6          0              closest            100            closest
Queue7          0              closest            100            closest
Queue8          0              closest            100            closest
-------------------------------------------------------------------------------
Queue Mode and Weight Details
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId           Mode                      Weight
-------------------------------------------------------------------------------
Queue1            weighted                   1
Queue2            weighted                   1
Queue3            weighted                   1
Queue4            weighted                   1
Queue5            weighted                   1
Queue6            weighted                   1
Queue7            weighted                   1
Queue8            weighted                   1
-------------------------------------------------------------------------------
High Slope
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId        State      Start-Avg(%)   Max-Avg(%)   Max-Prob(%)
-------------------------------------------------------------------------------
Queue1          Down            70           90            75
Queue2          Down            70           90            75
Queue3          Down            70           90            75
Queue4          Down            70           90            75
Queue5          Down            70           90            75
Queue6          Down            70           90            75
Queue7          Down            70           90            75
Queue8          Down            70           90            75
-------------------------------------------------------------------------------
Low Slope
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId        State      Start-Avg(%)   Max-Avg(%)   Max-Prob(%)
-------------------------------------------------------------------------------
Queue1          Down            50           75            75
Queue2          Down            50           75            75
Queue3          Down            50           75            75
Queue4          Down            50           75            75
Queue5          Down            50           75            75
Queue6          Down            50           75            75
Queue7          Down            50           75            75
Queue8          Down            50           75            75
-------------------------------------------------------------------------------
Burst Sizes and Time Average Factor
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId         CBS            MBS       Time Average Factor        Queue-Mgmt
-------------------------------------------------------------------------------
Queue1          def            def           7             default
Queue2          def            def           7             default
Queue3          def            def           7             default
Queue4          def            def           7             default
Queue5          def            def           7             default
Queue6          def            def           7             default
Queue7          def            def           7             default
Queue8          def            def           7             default
 
-------------------------------------------------------------------------------
FC    UCastQ    MCastQ    EHsmdaQ
-------------------------------------------------------------------------------
be     1         9         1
l2     2         10        2
af     3         11        3
l1     4         12        4
h2     5         13        5
ef     6         14        6
h1     7         15        7
nc     8         16        8
 
Network-Port Associations
-------------------------------------------------------------------------------
No Matching Entries
 
===============================================================================
*A:7210SAS>show>qos#
 
 
 
*7210SAS>config>qos>network-queue# info detail 
----------------------------------------------
            description "Default hybrid queue QoS policy."
            queue 1 
                port-parent cir-level 1 pir-weight 1
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
            exit
            queue 2 
                port-parent cir-level 1 pir-weight 1
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
            exit
            queue 3 
                port-parent cir-level 1 pir-weight 1
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
            exit
            queue 4 
                port-parent cir-level 1 pir-weight 1
                rate cir 0 pir 100    
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
            exit
            queue 5 
                port-parent cir-level 1 pir-weight 1
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
            exit
            queue 6 
                port-parent cir-level 1 pir-weight 1
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
            exit
            queue 7 
                port-parent cir-level 1 pir-weight 1
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
            exit
            queue 8 
                port-parent cir-level 1 pir-weight 1
                rate cir 0 pir 100
                adaptation-rule cir closest pir closest
                queue-mgmt "default"
            exit
----------------------------------------------
*7210SAS>config>qos>network-queue#

8.4. Default network queue policy values for hybrid ports on 7210 SAS-R6 and 7210 SAS-R12

The default network queue policies are identified as policy-id default and _tmnx_hybrid_default.The MPLS and IP traffic on hybrid ports arrives at the _tmnx_hybrid_default policy if there is no policy applied.

The following is a sample configuration output for default policy parameters for 7210 SAS-R6 and 7210 SAS-R12.

*A:7210SAS>show>qos# network-queue
 
===============================================================================
Network Queue Policies
===============================================================================
Policy-Id                        Description
-------------------------------------------------------------------------------
default                          Default network queue QoS policy.
_tmnx_hybrid_default             Default hybrid queue QoS policy.
===============================================================================
*A:7210SAS>show>qos#

8.5. Service management tasks

This section describes the service management tasks.

8.5.1. Deleting network queue QoS policies

A network queue policy is associated by default with all network ports (for devices operating in network mode) and access uplink ports (for 7210 SAS-T in access-uplink mode). The user 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.

A network-queue policy cannot be deleted until it is removed from all network ports where it is applied.

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

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

8.5.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]
Example:
config>qos# copy network-queue nq1-cbs nq2-cbs

The following is a sample of the copied policies output.

*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.5.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.