set cos settings

Use this command to configure a Class of Service entry.

Syntax

set cos settings cos-list [priority priority] [tos-value tos-value] [txq-reference txq-reference] [irl-reference irl-reference] [orl-reference orl-reference] [drop-precedence drop-precedence] [flood-ctrl flood-ctrl]

Parameters

cos-list Specifies a Class of Service entry. Valid values are 0 - 255.
priority priority (Optional) Specifies a CoS priority value. Valid values are 0 - 7, with 0 being the lowest priority.
tos-value tos-value (Optional) On the S- and K-Series specifies a Type of Service value with mask in the format of 0 - 255:0 - 255 or 0 - 0xFF:0 - 0xFF. On the 7100-Series specifies a Type of Service value in the format of 0 - 255 or 0 - 0xFF.
txq-reference txq-reference (Optional) Specifies the transmit queue associated with this entry. Valid values are 0 - 15 on the S- and K-Series and 8 - 15 on the 7100-Series.
irl-reference irl-reference (Optional) Specifies the inbound rate limiter associated with this entry. Valid values are 0 - 31.
orl-reference orl-reference (Optional) Specifies the outbound rate limiter associated with this entry. Valid values are 0 - 3 for port type 0 and 0 - 15 for port type 1 (S-, K-Series).
flood-ctrl flood-ctrl (Optional) Specifies the flood rate limiter associated with this entry. Valid values are 0 - 2 (S-, K-Series).
drop-precedence drop-precedence (Optional) Specifies a drop precedence for this entry. Valid values are 0 - 2 (S-, K-Series).

Defaults

If no optional parameters are specified for an already existing CoS, none will be applied. If a new CoS entry is configured with no optional parameters specified, txq-reference is set to 0 for the S- and K-Series and 8 for the 7100-Series. On the S- and K-Series, flood-ctrl is set to disabled; no other options are applied.

Mode

All command modes.

Usage

By default only CoS entries 0 - 7 are configured. On the 7100-Series, changing CoS entries 0 - 7 is not supported. Additional CoS entries may be created by entering a value between 8 - 255 inclusive. If no additional options are specified, the new CoS entry is configured with TxQ set to 0 and flood control set to enabled.

On the S- and K-Series, drop-precedence is a CoS settings option. CoS settings are assigned to a policy rule. In a Flex-Edge context, drop precedence is limited to rules that apply to a single port and specify a traffic classification of either port or macsource. For any packets matching the policy rule, you can assign one of three drop-precedence priority levels:

  • Favored - A drop-precedence value of 0 provides a better chance of being passed on for packet processing than traffic categorized as best-effort.
  • Best-Effort - A drop-precedence value of 1 provides a best-effort level of priority within the Flex-Edge priority scheme.
  • Unfavored - A drop-precedence value of 2 provides a somewhat worse chance of being passed on for packet processing than traffic categorized as best-effort. This is the lowest possible priority setting within the Flex-Edge mechanism.

The 7100-Series does not support the setting bits 1 and 0 for the tos-value option with the end result being that the highest ToS value supported using the tos-value option is 0xFC.

Examples

This S- and K-Series example shows how to create CoS entry 10 with a priority value of 3 and bind it to transmit queue reference ID 5:

System(rw)->set cos settings 10 priority 3 txq-reference 5

This 7100-Series example shows how to create CoS entry 10 with a priority value of 3 and bind it to transmit queue reference ID 8:

System(rw)->set cos settings 10 priority 3 txq-reference 8