Access egress QoS policies for 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

This section provides information to configure Access Egress QoS policies using the command line interface.

Overview

On 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12, the users have an option to use either port-based egress queuing and shaping or SAP-based egress queuing and shaping for SAPs configured on access ports or hybrid ports. Use the configure system resource-profile qos port-scheduler-mode command on the 7210 SAS-Mxp and the configure system global-res-profile qos port-scheduler-mode command on the 7210 SAS-R6 and 7210 SAS-R12 to select the mode to be used for SAPs configured on all the ports of the node (in other words, this is a per node setting).

On 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12, an access egress policy allows the user to define the marking values for the traffic sent out of the access ports toward the customer. Access egress QoS policies map forwarding class flows to marking values to use. In addition, based on the queuing mode used on access egress, it also defines the per port queue parameters.

Access egress QoS policy for SAP-based queuing mode

The 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 support SAP-based marking for access SAPs and port-based egress marking on access ports. SAP-based marking is only supported for Layer 2 SAPs, that is, SAPs configured in Epipe and VPLS service. If user enables remarking in the SAP egress policy attached to the SAP, the remark policy configured is used to mark the packets sent out of the SAP. If remarking is disabled in the SAP egress policy attached to the SAP, remark policy configured under the access-egress policy associated with the egress access port is used to mark all packets sent out of the Layer 2 SAP configured on the access port. This is known as port-based marking.

Port-based marking is supported primarily for Layer 3 SAPs (that is, SAPs configured in VPRN services and IES services). In other words, SAP-based marking is not supported for Layer 3 SAPs.

On 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12, no explicit CLI command is provided to choose between port-based marking and SAP-based marking for Layer 2 SAPs. The user can choose SAP-based marking by enabling remarking in the SAP egress policy attached to the Layer 2 SAP or choose port-based marking by disabling remarking in the SAP egress policy attached to the SAP and enabling remarking in the access-egress policy associated with the access port on which the Layer 2 SAP is configured.

A remarking policy can be defined for each access egress policy and remarking is disabled by default. Only remarking policy of type dot1p, dot1p-lsp-exp-shared, dscp or dot1p-dscp can be used with access-egress policy. The following is the marking behavior with different remark policy types:

  • If remark policy type is dot1p or dot1p-lsp-exp-shared, then all traffic sent out of Layer 2 SAPs and Layer 3 SAPs configured on that port will have its Dot1p bits marked.

  • If remark policy type is dscp, then all traffic sent out of Layer 2 SAPs and Layer 3 SAPs configured on that port will have its IP DSCP bits marked (assuming Layer 2 SAPs are carrying IP traffic).

  • If remark policy type is of type dot1p-dscp, then all traffic sent out of Layer 2 SAPs and Layer 3 SAPs configured on that port will have its IP DSCP bits (assuming Layer 2 SAPs are carrying IP traffic) and dot1p bits marked.

Note:
  • On the 7210 SAS-Mxp, for Layer 2 SAPs, if remarking is enabled in the SAP egress policy and port-based marking is disabled, the dot1p values configured in the SAP egress policy are used. For Layer 3 SAPs no marking is done.

  • On the 7210 SAS-Mxp, Layer 2 SAPs, if remarking is enabled in the SAP egress policy and port-based marking is enabled, the dot1p values configured in the SAP egress policy are used. For Layer 3 SAPs, the dot1p and DSCP values configured in the access-egress policy are used. In addition, the DSCP values configured in the access-egress policy are used to mark the IP traffic sent out of Layer 2 SAPs.

  • On the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12, if remarking is disabled for the SAP egress policy and port-based marking is enabled, IP DSCP values are marked, including for the traffic egressing from the Layer 2 SAPs configured on the port. To avoid this, it is recommended to use only FC-to-dot1p values when both Layer 2 and Layer 3 SAPs are configured on the same access port.

  • On the 7210 SAS-R6 and 7210 SAS-R12, if remarking is enabled for the SAP egress policy and port based marking is enabled, the values configured in the SAP egress policy are used. For L3 SAPs the values configured in the access-egress policy are used.

Access egress QoS policy for port-based queuing mode

In addition to marking values, the access egress QoS policy provides an option to define port-based queues and scheduling when per port queues are used for SAPs configured on access ports.

Users have an option to use either port-based egress queuing and shaping or SAP-based egress queuing and shaping for SAPs configured on access ports or hybrid ports. Use the configure system resource-profile qos port-scheduler-mode command on 7210 SAS-Mxp or the configure system global-res-profile qos port-scheduler-mode on the 7210 SAS-R6 and 7210 SAS-R12 to select the mode to be used for SAPs configured on all the ports of the node. When port-scheduler-mode is enabled, software uses 8 egress queues per access port and all the SAPs configured on the port will share the 8 egress queues for traffic sent out of that port. In this mode, SAPs configured on hybrid port shares the egress queues with network port traffic. Enabling port-scheduler-mode affects the behavior for all the SAPs configured on either access or hybrid port. That is, port-based egress queues is mutually exclusive to use of SAP-based egress queues. When port-scheduler-mode is enabled, per port egress queues are defined using the access egress policies.

Additionally, the marking values used to mark traffic from different forwarding classes is defined by the remark policy in the access egress policy. In other words, per SAP marking cannot be used when Port-based queuing mode is used. A remarking policy can be defined for each access egress policy and remarking is disabled by default. Only remarking policy of type dot1p, dot1p-lsp-exp-shared, dscp or dot1p-dscp can be used with access-egress policy. The following is the marking behavior with different remark policy types:

  • If the remark policy type is dot1p or dot1p-lsp-exp-shared, all traffic sent out of Layer 2 SAPs and Layer 3 SAPs configured on that port will have its Dot1p bits marked.

  • If the remark policy type is dscp, all traffic sent out of Layer 2 SAPs and Layer 3 SAPs configured on that port will have its IP DSCP bits marked (assuming Layer 2 SAPs are carrying IP traffic).

  • If remark policy is of type dot1p-dscp, all traffic sent out of Layer 2 SAPs and Layer 3 SAPs configured on that port will have its IP DSCP bits (assuming Layer 2 SAPs are carrying IP traffic) and Dot1p bits marked.

Note:
  • When port-scheduler-mode is disabled, per-SAP egress queues are available for use. Per-SAP egress queues are configured in the service egress policies.

  • On the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12, when port-based queuing is enabled, RVPLS SAPs use the port-based egress queues for both unicast and BUM traffic; all the SAPs, including RVPLS SAPs, share the eight egress queues created per port.

Access egress QoS policies define egress queues and map forwarding class flows to queues, if port-scheduler-mode is enabled. In port-scheduler-mode, the system allocates 8 queues to access port egress by default. To define a basic access egress QoS policy, the following are required:

  • unique access egress QoS policy ID

  • QoS policy scope of template or exclusive

The parameters that can be configured for a queue are discussed in Queue parameters.

Optional service egress QoS policy elements include:

  • specify remark policy that defines IEEE 802.1p priority value remarking based on forwarding class

When port-based queuing is used, the FC to queue map is fixed and the queues priority is determined by the queue number, with higher queue number having the higher priority. The user can configure a queue to be a strict queue to change the scheduling behavior for that queue.

The following is a sample configuration output showing a default access-egress policy for the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12.

*A:sasr_dutb>config>qos>access-egress# info detail
----------------------------------------------
            description "Default Access egress QoS policy."
            no remarking
            remark 2
            scope template
            queue 1
                adaptation-rule cir closest pir closest
                rate cir 0 pir max
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
A:sasr_dutb>config>qos>access-egress# 

Access egress QoS policy queue override

The following QoS policy queue parameters can be overridden using the configure>port>ethernet>access>egress>queue-override command. For command description details, see the "Port Ethernet QoS commands" section in the 7210 SAS-Mxp, R6, R12, S, Sx, T Interface Configuration Guide:

  • adaptation rule

    Specifies the criteria used to compute the operational PIR and CIR values for this queue (min, max, or closest).

  • percent rate

    Enables the configuration of queue PIR and CIR as a percentage of the egress port line rate rather that the values set by the rate parameter.

  • queue management

    Associates a queue management policy with the queue.

  • queue mode

    Sets strict or weighted mode for the queue.

  • rate

    Defines the administrative PIR and CIR for the queue.

  • weight

    Determines the proportion of available bandwidth that is given to this queue.

See ‟Port Ethernet QoS commands” in the 7210 SAS-Mxp, R6, R12, S, Sx, T Interface Configuration Guide for more information about the queue-override command.

Basic configurations

A basic access egress QoS policy must conform to the following:

  • have a unique access egress QoS policy ID

  • have a QoS policy scope of template or exclusive

Modifying access egress QoS queues on the 7210 SAS-R6 and 7210 SAS-R12

The following is a sample port-scheduler-mode policy configuration output for the 7210 SAS-R6 and 7210 SAS-R12.

*A:sasr_dutb>config>system>glob-res# info detail
----------------------------------------------
         qos
                no port-scheduler-mode
            exit
----------------------------------------------
*A:sasr_dutb>config>system>glob-res#

Applying access egress QoS policies on the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Apply access egress policies to the following entities:

  • Ethernet ports

A policy can be applied to the ports that are in access mode.

Ethernet ports

Use the following syntax to apply an access-egress policy to an Ethernet port.

config>port#
    ethernet access egress
        qos access-egress-policy-id

The following is a sample port configuration output for 7210 SAS-R6 and 7210 SAS-R12.

*A:Dut-B>config>port# ethernet mode access 
*A:Dut-B>config>port# info detail 
----------------------------------------------
        shutdown
        description "10/100/Gig Ethernet SFP"
        ethernet                      
            mode access 
            no enable-table-classification
            access
                no accounting-policy
                no     collect-stats
                egress
                    qos 1
                exit
            exit
            encap-type null
            exit

Editing QoS policies

Existing policies and entries can be edited through the CLI or NMS. The changes are applied immediately to all services where the policy is applicable.

To prevent configuration errors perform the following:

  1. Copy the policy to a work area.

  2. Edit the policy.

  3. Overwrite the original policy.

Deleting QoS policies

Every access Ethernet port is associated, by default, with the default access egress policy (policy-id 1). You can replace the default policy with a customer-configured policy, but you cannot entirely remove the policy from the port configuration. When you remove a non-default access egress policy, the association reverts to the default policy-id 1.

A QoS policy cannot be deleted until it is removed from all access ports where they are applied.

*A:7210-SAS-1>config>qos# no access-egress 30
MINOR: CLI Could not remove Access egress policy "30" because it is in use.

Removing a policy from the QoS configuration

config>qos# no access-egress policy-id
Example:
config>qos# no access-egress 100
    config>qos# no access-egress 1010

Access egress QoS policy command reference

Command hierarchies

Configuration commands for 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

config
    - qos
        - access-egress policy-id [create]
        - no access-egress policy-id
            - [no] description description-string
            - queue queue-id 
                - [no] adaptation-rule [cir adaptation-rule] [pir adaptation-rule] 
                - percent-rate cir cir-percent [pir pir-percent	 	]
                - no percent-rate 
                - no queue-mgmt
                - queue-mgmt name
                - no queue-mgmt
                - queue-mode queue-mode
                - no queue-mode
                - [no] rate cir cir-rate [pir pir-rate]
                - no rate 
                - weight weight
                - no weight
            - scope {exclusive | template}
            - remark policy-id
            - no remark 
            - remarking
            - no remarking

Show commands

show
    - qos
        - access-egress [policy-id] [association| detail]

Command descriptions

Generic commands

description
Syntax

description description-string

no description

Context

config>qos>access-egress

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

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.

access-egress
Syntax

access-egress policy-id [create]

no access-egress policy-id

Context

config>qos

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description

Commands in this context create or edit an access egress QoS policy. The policy can be applied to multiple access ports. The access egress policy is common to services (SAPs) that are all egressing on a particular port.

On 7210 SAS-Mxp, the access egress policy provides an option to configure remarking parameters and access port egress queue parameters on access port. The remarking parameters are used when SAP-based queuing is configured and port-based marking is in use. The remarking parameters and queue parameters are used when port-based queuing is configured. See Access egress QoS policies on 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-Sx 10/100GE for more information.

Any changes made to an existing policy are applied to all access ports on which the policy is specified.

A policy cannot be deleted until it is removed from all access ports where it is applied. When an access-egress policy is removed from an access port, the access port revert to the default access-egress policy ID 1.

The no form of the policy associated the default policy with the access port.

Parameters
policy-id

Specifies the value that uniquely identifies the access-egress policy.

Values

1 to 65535

create

Keyword to create an access-egress policy. The create keyword requirement can be enabled or disabled in the environment>create context.

queue
Syntax

queue queue-id

Context

config>qos>access-egress

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description

Commands in this context modify queue parameters associated with a particular queue. The queue is identifiable by the queue-id and FCs are mapped into the queues.See Forwarding class to queue-ID map for more information.

Parameters
queue-id

Specifies the access egress queue ID associated with an FC.

Values

1 to 8

remark
Syntax

remark policy-id

no remark

Context

config>qos>access-egress

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description

This command specifies the remarking policy ID to use for marking packets on access egress (also known as, access port egress).

7210 SAS-Mxp supports two different access egress queuing modes. Marking functionality available in these two modes are different as described in the overview below. See Summary of remark policy and attachment points for 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 for more information.

SAP-based queuing mode

The 7210 SAS-Mxp supports SAP-based marking for access SAPs and port-based egress marking on access ports. SAP-based marking is only supported for L2 SAPs, that is, SAPs configured in Epipe and VPLS service. If user enables remarking in the SAP egress policy attached to the SAP, then the remark policy configured is used to mark the packets sent out of the SAP. If remarking is disabled in the SAP egress policy attached to the SAP, then remark policy configured under the access-egress policy associated with the egress access port is used to mark all packets sent out of the L2 SAP configured on the access port. This is known as port-based marking. For more details refer to the details in the chapter above on Access Egress policies. section Access egress QoS policy for SAP-based queuing mode on 7210 SAS-Mxp.

Port-based Queuing Mode

When port-based queues are used, only per port egress marking is supported. In other words, per SAP marking cannot be used when Port-based queuing mode is used. For more details refer to the details in the chapter above on Access Egress policies, section Access egress QoS policy for port-based queuing mode on 7210 SAS-Mxp

The remarking policy ID must be associated with the appropriate access egress policy and remarking must be enabled in the access egress policy to enable marking of packets sent out of all SAPs configured on the access port. Only a remarking policy of the type dot1p, dscp, or dot1p-dscp is allowed to be used when the remark policy is associated with access egress.

See Summary of remark policy and attachment points for 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 for more information.

The no form of this command removes the explicit association of the remark policy and associates the default remark policy. In other words, if remarking is enabled and no remark policy is executed, then the default remark policy is used to mark packets sent out. If no remark policy is executed and remarking is disabled, then packets are not remarked.

Parameters
policy-id

Specifies the remark policy.

Values

1 to 65535

remarking
Syntax

no remarking

remarking

Context

config>qos>access-egress

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description

This command enables the system to remark egress packets sent out of access ports.

When remarking is enabled, the remark policy configured in the QoS policy context is used to determine the FC to QoS bit mapping. For example, when remarking is enabled in the access egress QoS policy, the remark policy associated with access-egress QoS policy is used to determine the FC to dot1p mapping to use for marking packets sent out of access ports.

See Remark policies and Summary of remark policy and attachment points for 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 for the remark policy that can be used to configure FC to priority bit markings in different QoS policies associated with different service entities.

Note:

See Access egress QoS policies on 7210 SAS-Mxp for more information.

The no form of this command disables remarking.

Default

no remarking

Access egress queue QoS policy commands

adaptation-rule
Syntax

adaptation-rule [cir adaptation-rule] [pir adaptation-rule]

no adaptation-rule

Context

config>qos>access-egress>queue

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

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 pir closest cir 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 Supported hardware rates and burst step sizes for CIR and PIR values on the 7210 SAS-Mxp, 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-T 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 Supported hardware rates and burst step sizes for CIR and PIR values on the 7210 SAS-Mxp, 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-T 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.

percent-rate
Syntax

percent-rate [cir cir-percent] [pir pir-percent]

no percent-rate

Context

config>qos>access-egress>queue

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description

This command enables support for a queue’s PIR and CIR to be configured as a percentage of the egress port’s line rate (that is, the port limit). When the rates are expressed as a port limit, the actual rates used per instance of the queue will vary based on the port speed or the configured port egress rate. For example, when the same QoS policy is used on a 1-Gigabit and a 10-Gigabit Ethernet port, the queue’s rates will be 10 times greater on the 10 Gigabit port because of the difference in port speeds. This enables the same QoS policy to be used on SAPs on different ports instead of using different policies to modify a queue’s rate to get the same relative performance from the queue.

If the port’s speed changes after the queue is created, the queue’s PIR and CIR are recalculated based on the defined percentage value.

The rate and percent-rate commands override one another. If the current rate for a queue is defined using the percent-rate command and the rate command is executed, the percent-rate values are deleted. Similarly, the percent-rate command causes any rate command values to be deleted. A queue’s rate may dynamically be changed back and forth from a percentage to an explicit rate at anytime.

The no form of this command reverts the queue to its default shaping rate and CIR values. When no percent-rate is defined within an egress queue-override, the queue reverts to the PIR and CIR defined within the access egress QoS policy associated with the queue.

Parameters
cir cir-percent

Specifies the queue’s CIR as a percentage dependent on the use of the port-limit.

Values

0.00 to 100.00 percent

Default

0.00

pir pir-percent

Specifies the queue’s PIR as a percentage dependent on the use of the port-limit.

Values

0.01 to 100.00 percent

Default

100.00

queue-mgmt
Syntax

queue-mgmt name

no queue-mgmt

Context

config>qos>access-egress>queue

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description

This command associates the specified queue management policy with this queue.

The queue management policy is used to specify the queue buffer parameters and queue slope policy parameters.

The no form of this command associates the default SAP egress queue management policy with this queue.

Parameters
name

Specifies the name of the queue management policy, up to 32 characters.

queue-mode
Syntax

queue-mode queue-mode

no queue-mode

Context

config>qos>access-egress>queue

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description

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

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

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 queue in order of their priority in two (2) passes, the CIR loop and the PIR loop.

weighted — If a queue is configured in weighted mode, then the scheduler examines these queues in two (2) passes, the CIR loop and the PIR loop. In the CIR loop, it distributes the available bandwidth to all the strict and then weighted queues in round-robin 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-rate [pir pir-rate]

no rate

Context

config>qos>access-egress>queue

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description

This command defines the administrative Peak Information Rate (PIR) and the administrative Committed Information Rate (CIR) parameters for the queue. The PIR defines the maximum rate that 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 anytime, altering the PIR and CIR rates for all queues created on the access ports.

The max default specifies the amount of bandwidth in kilobits per second (thousand bits per second). The max value is mutually exclusive to the pir-rate value.

Note:

Queues with a cir-level cir-level parameter value of 8 are treated differently by the software than queues configured with different cir-level values. The PIR rate values configured for the cir-level 8 queues are ignored. Only the CIR rate value is used and PIR is set to the CIR value. In addition, when executing the no form of the rate command for a queue configured at cir-level 8, the default CIR (and PIR) value is set to 1. See the cir-level parameter description under the port-parent command for more information about the scheduler behavior for queues configured with a cir-level value of 8.

The no form of this command reverts all queues created with the queue ID by association with the QoS policy to the default PIR (max) and CIR (0) parameters.

Parameters
cir-rate

Specifies the administrative CIR rate, in kilobits, for the queue. The cir parameter overrides the default administrative CIR used by the queue. When the rate command is executed, a valid CIR setting must be explicitly defined. When the rate command has not been executed or the cir parameter is not explicitly specified, the default CIR (0) is assumed. Fractional values are not allowed and must be given as a positive integer.

Values

0 to 1000000, max (For devices with only 1G ports)

0 to 10000000, max (For devices with both 1G and 10G ports)

Default

0

pir-rate

Specifies the administrative PIR rate, in kilobits, for the queue. When the rate command is executed, a PIR setting is optional. When the rate command has not been executed, the default PIR of max is assumed.

Fractional values are not allowed and must be given as a positive integer.

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

Values

0 to 1000000, max (For devices with only 1G ports)

0 to 10000000, max (For devices with both 1G and 10G ports)

Default

max

weight
Syntax

[no] weight weight

Context

config>qos>access-egress

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description

This command specifies the weight of the queue when the queue mode is set to weighted.

For queues configured in weighted mode, the CIR of the queues are met if bandwidth is available and the configured weights are considered in the PIR loop. The configured weight determines the proportion of available bandwidth that is given to this queue in comparison to other queues configured in weighted mode.

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

Default

1

Parameters
weight

Specifies the proportion of available bandwidth to be allocated to this queue relative to other queues.

Values

1 to 15

scope
Syntax

scope {exclusive | template}

no scope

Context

config>qos>access-egress

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description

This command configures the scope as exclusive or template. The policy’s scope cannot be changed if the policy is applied to multiple ports.

The no form of this command reverts the scope of the policy to the default.

Default

template

Parameters
exclusive

Specifies that the policy can only be applied to one interface port. If a policy with an exclusive scope is assigned to a second interface, an error message is generated. If the policy is removed from the exclusive interface, it will become available for assignment to another exclusive interface. The system default policies cannot be put into the exclusive scope. An error will be generated if scope exclusive is executed in any policies with a policy ID equal to 1.

template

Specifies that the policy can be applied to multiple ports on the router.

Show commands

access-egress
Syntax

access-egress [policy-id] [association | detail]

Context

show>qos

Platforms

7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12

Description

This command displays access egress QoS policy information.

Parameters
policy-id

Displays the policy ID of the access-egress policy.

association

Displays associations related to the specified access-egress policy.

detail

Displays detailed policy information including the policy associations.

Output

The following output is an example of access egress QoS policy information, and Output fields: QoS access egress describes the output fields.

Sample output
A:Dut-A>show>qos# access-egress

===============================================================================
Access Egress Policies
===============================================================================
Policy-Id            Scope     Description
-------------------------------------------------------------------------------
1                    Template  Default Access egress QoS policy.
===============================================================================
A:Dut-A>show>qos#
A:Dut-A>show>qos# access-egress 1 detail

===============================================================================
QoS Access Egress
===============================================================================
-------------------------------------------------------------------------------
Policy-id      : 1                            Scope        : Template
Remark         : False                        Remark Pol Id: 2
Description    : Default Access egress QoS policy.
-------------------------------------------------------------------------------
Queue Rates and Rules
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId        CIR          CIR Adpt Rule        PIR          PIR Adpt Rule
-------------------------------------------------------------------------------
Queue1          0              closest            max            closest
Queue2          0              closest            max            closest
Queue3          0              closest            max            closest
Queue4          0              closest            max            closest
Queue5          0              closest            max            closest
Queue6          0              closest            max            closest
Queue7          0              closest            max            closest
Queue8          0              closest            max            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

-------------------------------------------------------------------------------
Associations
-------------------------------------------------------------------------------
Port-id : 1/1/21
Port-id : 1/1/23
Port-id : 1/1/25
Port-id : 1/1/26
===============================================================================
A:Dut-A>show>qos#
Table 1. Output fields: QoS access egress
Label Description

Policy-Id

The ID that uniquely identifies the policy

Remark

True — Remarking is enabled for all the

Dot1q-tagged packets that egress the ports on which the sap-egress QoS policy is applied and remarking is enabled

False — Remarking is disabled for the policy

Remark Pol Id

Displays the policy ID of the remarking policy

Scope

Exclusive — Implies that this policy can be applied only to a single access egress port

Template — Implies that this policy can be applied to

multiple access ports on the router

Description

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

Queue Rates and Rules

QueueId

Displays the Queue identifier associated with the sap-egress QoS policy

CIR

Specifies the administrative Committed Information Rate (CIR) parameters for the queue

The CIR defines the rate at which the system prioritizes the queue over other queues competing for the same bandwidth.

CIR Adpt Rule

min — The operational CIR for the queue will be equal to or greater than the administrative rate specified using the rate command

max — The operational CIR for the queue will be equal to or less than the administrative rate specified using the rate command

closest — The operational CIR for the queue will be the rate closest to the rate specified using the rate command without exceeding the operational PIR

PIR

Specifies the administrative Peak Information Rate (PIR) parameters for the queue

The PIR defines the maximum rate that the queue can transmit packets through the access port.

PIR Adpt Rule

min — The operational PIR for the queue will be equal to or greater than the administrative rate specified using the rate command

max — The operational PIR for the queue will be equal to or less than the administrative rate specified using the rate command

closest — The operational PIR for the queue will be the rate closest to the rate specified using the rate command

High Slope/Low slope

QueueId

Displays the Queue identifier associated with the sap-egress QoS policy

State

Displays the state of the queue

The state of the queue can be either ‟Up” or ‟Down”

Start Avg

Specifies the low priority or high priority RED slope position for the shared buffer average utilization value where the packet discard probability starts to increase above zero

Max Avg

Specifies the percentage of the shared buffer space for the buffer pool at which point the drop probability becomes ‟1”

This parameter is expressed as a decimal integer.

Max Prob

Specifies the high priority RED slope position for the maximum non-one packet discard probability value before the packet discard probability rises directly to one

Burst Sizes and Time Average Factor

QueueId

Displays the Queue identifier associated with the sap-egress QoS policy

CBS

Displays the configured CBS value

MBS

Displays the configured MBS value

Time Average Factor

Displays the value of the time average factor in use

Queue-Mgmt

Displays the Queue management policy in use