8.6. Network Queue QoS Policy Command Reference

8.6.1. Command Hierarchies

8.6.1.1. Configuration Commands

config
— qos
network-queue policy-name [create]
description description-string
queue queue-id
adaptation-rule [cir adaptation-rule] [pir adaptation-rule]
queue-mgmt name
— no queue-mgmt
queue-mode queue-mode
— no queue-mode
rate [cir cir-percent] [pir pir-percent]
— no rate
weight weight
— no weight

8.6.1.2. Operational Commands

config
— qos
copy network-queue src-name dst-name [overwrite]

8.6.1.3. Show Commands

show
— qos
network-queue [network-queue-policy-name] [detail]

8.6.2. Command Descriptions

8.6.2.1. Configuration Commands

8.6.2.1.1. Generic Commands

description

Syntax 
description description-string
no description
Context 
config>qos>network-queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates a text description stored in the configuration file for a configuration context.

The description command associates a text string with a configuration context to help identify the context in the configuration file.

The no form of this command removes any description string from the context.

Parameters 
description-string—
Specifies a text string describing the entity. Allowed values are any string up to 80 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes.

8.6.2.1.2. Network Queue QoS Policy Commands

network-queue

Syntax 
[no] network-queue policy-name [create]
Context 
config>qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to configure a network queue policy.

Network queue policies define the egress network queuing for the traffic egressing on the network ports and hybrid port. Network queue policies define the bandwidth distribution for the various FC traffic egressing on the port. By default, network queue policy defines eight queues and a mapping of FC-to-queue.

Default 

default

Parameters 
policy-name—
Specifies the name of the network queue policy. Valid names consist of any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes.
create—
Keyword to create a network queue policy.

queue

Syntax 
queue queue-id
Context 
config>qos>network-queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a QoS network-queue policy queue.

The FCs are mapped to queues, see FC-to-Queue ID Map for more information. Only one FC can be mapped to one queue. Queue ID 8 is the highest priority and queue ID 1 is the lowest priority. Network queues carry both the unicast and multicast traffic and no segregation is performed.

The hardware port scheduler prioritizes the queue according to the priority for each queue. High priority traffic should be mapped to high priority FCs. Mapping traffic to high priority FCs does not necessarily guarantee high priority treatment, because the scheduler policy can influence the relative priority among the queues.

See Schedulers for more information about scheduling behavior and the queue parameters considered by the scheduler.

Parameters 
queue-id—
Specifies the queue within the policy.
Values—
1 to 8

 

adaptation-rule

Syntax 
adaptation-rule [cir adaptation-rule] [pir adaptation-rule]
no adaptation-rule
Context 
config>qos>network-queue>queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command defines the method used by the system to derive the operational CIR and PIR rates when the queue is provisioned in hardware. For the cir and pir parameters, the system attempts to find the best operational rate depending on the defined constraint.

The no form of this command removes any explicitly defined constraints used to derive the operational CIR and PIR created by the application of the policy. When a specific adaptation-rule is removed, the default constraints for cir and pir apply.

Default 

adaptation-rule cir closest pir closest

Parameters 
cir adaptation-rule—
Specifies the adaptation rule and defines the constraints enforced when adapting the CIR rate defined using the queue queue-id rate command. The cir parameter requires a qualifier that defines the constraint used to derive the operational CIR rate for the queue. When the cir parameter is not specified, the default constraint applies. The max (maximum), min (minimum), and closest qualifiers are mutually exclusive. See Table 22 for information about supported hardware step-size rates.
Default—
closest
Values—
max — Specifies that the operational CIR value is less than or equal to the specified rate, taking into account the hardware step size. The hardware step size varies based on the rate and the platform.
min — Specifies that the operational CIR value is greater than or equal to the specified rate, taking into account the hardware step size. The hardware step size varies based on the rate and the platform.
closest — Specifies that the operational CIR value is equal to the closest specified rate, taking into account the hardware step size. The hardware step size varies based on the rate and the platform.

 

pir adaptation-rule—
Specifies the adaptation rule and defines the constraints enforced when adapting the PIR rate defined using the queue queue-id rate command. The pir parameter requires a qualifier that defines the constraint used when deriving the operational PIR rate for the queue. When the pir command is not specified, the default constraint applies. The max (maximum), min (minimum), and closest qualifiers are mutually exclusive. See Table 22 for information about supported hardware step-size rates.
Default—
closest
Values—
max — Specifies that the operational PIR value is less than or equal to the specified rate, taking into account the hardware step size. The hardware step size varies based on the rate and the platform.
min — Specifies that the operational PIR value is greater than or equal to the specified rate, taking into account the hardware step size. The hardware step size varies based on the rate and the platform.
closest — Specifies that the operational PIR value is equal to the closest specified rate, taking into account the hardware step size. The hardware step size varies based on the rate and the platform.

 

queue-mgmt

Syntax 
queue-mgmt name
no queue-mgmt
Context 
config>qos>network-queue>queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the WRED and buffer parameters associated with the queue.

All of the queues in the system allocate buffers from the system pool.

Parameters 
name
Specifies the name of the queue-management policy.

queue-mode

Syntax 
queue-mode queue-mode
no queue-mode
Context 
config>qos>network-queue>queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies whether the queue operates in strict or weighted mode.

The no form of this command reverts the queue mode to the default value.

Default 

weighted

Parameters 
queue-mode—
Specifies the mode of operation for the queue.
Values—
strict — If a queue is configured in strict mode, the scheduler schedules the queues in order of their priority in the two passes, the CIR loop and the PIR loop.
weighted — If a queue is configured in weighted mode, the scheduler examines these queues in two passes, CIR loop and a PIR loop. In the CIR loop, it distributes the available bandwidth to all the strict and then weighted queues in a round-robin manner, up to the configured CIR rate. It examines the weighted queues in the PIR loop, after examining all the strict queues and distributes the available bandwidth, if any, in the proportion of the configured weights.

 

rate

Syntax 
rate [cir cir-percent] [pir pir-percent]
no rate
Context 
config>qos>network-queue>queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command defines the administrative PIR and the administrative CIR parameters for the queue. The PIR defines the maximum rate at which the queue can transmit packets through the port. Defining a PIR does not necessarily guarantee that the queue can transmit at the intended rate. The actual rate sustained by the queue can be limited by over-subscription factors or available egress bandwidth. The CIR defines the rate at which the system prioritizes the queue over other queues competing for the same bandwidth.

The rate command can be executed at any time, changing the PIR and CIR rates for all queues created on the access ports.

The no form of this command reverts all queues created with the queue-id by association with the QoS policy to the default PIR (100) and CIR (0) values.

Parameters 
cir percent
Specifies the percentage of the guaranteed rate allowed for the queue. When the rate command is executed, a valid CIR setting must be explicitly defined. When the rate command has not been executed, the default is assumed. Fractional values are not allowed and the value must be a positive integer.

The actual CIR rate is dependent on the queue adaptation-rule parameters and the actual hardware where the queue is provisioned.

Values—
0 to 100 percent

 

Default—
0
pir percent
Specifies the percentage of the maximum rate allowed for the queue. When the rate command is executed, the PIR setting is optional. When the rate command has not been executed, or the PIR parameter is not explicitly specified, the default PIR of 100 is assumed. Fractional values are not allowed and the value must be a positive integer.
Values—
1 to 100 percent

 

Default—
100

weight

Syntax 
weight weight
no rate
Context 
config>qos>network-queue>queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the weight of the queue.

The configured weight determines the proportion of available bandwidth that is given to this queue in comparison to other queues contending for bandwidth at the same priority level.

The no form of this command reverts the weight to the default value.

Parameters 
weight—
Specifies the weight of the queue.
Values—
1 to 15

 

Default—
1

8.6.2.2. Operational Commands

copy

Syntax 
copy network-queue src-name dst-name [overwrite]
Context 
config>qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command copies or overwrites existing network queue QoS policies to another network queue policy ID.

The copy command is a configuration level maintenance tool used to create new policies using existing policies. It also allows bulk modifications to an existing policy with the use of the overwrite keyword.

Parameters 
network-queue src-name dst-name
Specifies the source policy ID that the copy command attempts to copy from, and the destination policy ID to which the command copies a duplicate of the policy. This parameter indicates that the source policy ID and the destination policy ID are network-queue policy IDs.
overwrite—
Specifies to replace the existing destination policy. Everything in the existing destination policy is overwritten with the contents of the source policy. If overwrite is not specified and the destination policy ID exists, an error occurs and a message is generated.
Example:
SR>config>qos# copy network-queue nq1 nq2
MINOR: CLI Destination "nq2" exists - use {overwrite}.
SR>config>qos# copy network-queue nq1 nq2 overwrite

8.6.2.3. Show Commands

network-queue

Syntax 
network-queue [network-queue-policy-name] [detail]
Context 
show>qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays network queue policy information.

Parameters 
network-queue-policy-name—
Specifies the name of the network queue policy. Valid names consist of any string up to 32 characters long composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes.
detail—
Displays each queue’s rates and adaptation rule, and CBS details. It also displays FC to queue mapping details.
Output 

The following output is an example of network queue QoS policy information, and Table 40 describes the output fields.

Sample Output
*A:SAS>config>qos>network-queue#  show qos network-queue default 
===============================================================================
QoS Network Queue Policy
===============================================================================
-------------------------------------------------------------------------------
Network Queue Policy (default)
-------------------------------------------------------------------------------
Policy         : default                      
Accounting     : packet-based                 
Description    : Default network queue QoS policy.
 
-------------------------------------------------------------------------------
Associations
-------------------------------------------------------------------------------
Port-id : 1/1/10                                                               
Port-id : 1/1/19                                                               
Port-id : 1/1/20                                                               
Port-id : 1/1/24                                                               
===============================================================================
 
*A:SAS>config>qos>network-queue#  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 Rates and Rules
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId        CIR(%)       CIR Adpt Rule        PIR(%)       PIR Adpt Rule
-------------------------------------------------------------------------------
Queue1          0              closest            100            closest  
Queue2          25             closest            100            closest  
Queue3          25             closest            100            closest  
Queue4          25             closest            100            closest  
Queue5          100            closest            100            closest  
Queue6          100            closest            100            closest  
Queue7          10             closest            100            closest  
Queue8          10             closest            10             closest  
-------------------------------------------------------------------------------
Parent Details
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId          Port       CIR Level      PIR Weight
-------------------------------------------------------------------------------
Queue1          True             1             1  
Queue2          True             2             1  
Queue3          True             3             1  
Queue4          True             4             1  
Queue5          True             5             1  
Queue6          True             6             1  
Queue7          True             7             1  
Queue8          True             8             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
-------------------------------------------------------------------------------
Queue1          def            def           7
Queue2          def            def           7
Queue3          def            def           7
Queue4          def            def           7
Queue5          def            def           7
Queue6          def            def           7
Queue7          def            def           7
Queue8          def            def 
 
Table 40:  Output Fields: Network Queue Policy 

Label

Description

Policy

The policy name that uniquely identifies the policy

Description

A text string that helps identify the policy context in the configuration file

Associations

Displays the physical port identifier where the network queue policy is applied

Queue

Displays the queue ID

CIR(%)

Displays the committed information rate

CIR Adapt Rule

Displays the adaptation rule in use

PIR(%)

Displays the peak information rate

PIR Adapt Rule

Displays the adaptation rule in use

Port

Indicates if the parent scheduler is a port scheduler

CIR Level

Displays the priority of the queue in the CIR loop

PIR Weight

Displays the weight of the queue used in the PIR loop

High Slope

Displays the WRED high-slope parameters

Low Slope

Displays the WRED low-slope parameters

Burst Sizes (CBS/MBS)

Displays the configured CBS and MBS value

Time Avg Factor

Displays the WRED Time Average Factor value in use

FC and UcastQ

Displays the FC-to-queue association