12. Service Egress Policies

This chapter provides information to configure service egress QoS policies using the CLI.

12.1. Overview

Note:

On the 7210 SAS-R6 and 7210 SAS-R12, only unicast traffic sent out of RVPLS SAPs uses per-SAP egress queues. BUM traffic sent out of RVPLS SAPs uses per-port egress queues.

The service-egress policy defines the Service Level Agreement (SLA) for service packets as they egress on the access SAP. Service-egress QoS policies allow the definition of queue parameters along with a remark policy.

On the 7210 SAS-R6 and 7210 SAS-R12, service-egress QoS policies are available for use only when per-SAP egress queues (SAP based queuing mode) are used. It is not available when port-based queuing mode (that is, with per-access port egress queues) is in use.

Note:

The 7210 SAS-R6 and 7210 SAS-R12, on port egress, use either port-based egress queuing and shaping or SAP-based egress queuing and shaping for all SAPs configured on the port. The config system global-resource-profile qos port-scheduler-mode command allows the user to select the mode for all SAPs configured on either access ports or hybrid ports. When port-scheduler-mode is enabled, the software uses eight egress queues per port (access port or hybrid port). See Schedulers for more information. When port-scheduler-mode is disabled, the software allocates eight egress queues per SAP, which are configured using service egress policies.

12.1.1. Basic Configurations

To use per-SAP service-egress policies, the following must be configured.

  1. Disable port-scheduler mode using the config system global-res-prof res-prof qos no port-scheduler-mode command.
  2. Ensure resources are available for use by SAP-egress queues in the ingress-internal-tcam resources pool using the config system resource-profile ingress-internal-tcam qos-sap-egress-resource command.

A basic service-egress QoS policy must conform to the following:

  1. have a unique service egress QoS policy ID
  2. have a QoS policy scope of template or exclusive
  3. have at least one forwarding class queue

12.1.2. Creating a SAP Egress Policy

To create a SAP-egress policy, define the following:

  1. a SAP egress policy name
  2. a brief description of the policy features
  3. the queue parameters for all the queues

Use the following syntax to configure a SAP-egress policy.

CLI Syntax:
A:SAS# /configure qos sap-egress 
  - no sap-egress <policy-id>
  - sap-egress <policy-id> [create]
 <policy-id>          : [1..65535]
 <create>             : keyword - mandatory while creating an entry.
 [no] description     - Description for this sap-egress policy
      queue           + Configure a queue
 [no] remark          - Specify Remarking policy for this policy
 [no] remarking       - Enable/disable remarking
 [no] scope           - Specify scope of the policy

The following is a sample SAP-egress policy configuration output.

*A:SAS>config>qos>sap-egress# info detail 
----------------------------------------------
            description "Default SAP egress QoS policy."
            scope template
            no remarking 
            remark 2
            queue 1 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
            exit
            queue 2 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
            exit
            queue 3 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"  
            exit
            queue 4 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
            exit
            queue 5 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
            exit
            queue 6 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
            exit
            queue 7 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
            exit
            queue 8 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
            exit
----------------------------------------------
*A:SAS>config>qos>sap-egress#

The following is a sample SAP-egress policy configuration output.

A:Dut-B>config>qos>sap-egress# info detail
----------------------------------------------
            description "Default SAP egress QoS policy."
            scope template
            no remarking
            remark 2
            queue 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 2
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 3
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 4
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 5
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 6
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 7
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
            queue 8
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
                queue-mode weighted
                weight 1
            exit
----------------------------------------------
A:Dut-B>config>qos>sap-egress#
 
A:SAS>config>qos>sap-egress# info detail 
----------------------------------------------
            description "Default SAP egress QoS policy."
            scope template
            no remarking 
            remark 2
            queue 1 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
            exit
            queue 2 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
            exit
            queue 3 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
            exit                      
            queue 4 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"
            exit
            queue 5 
                port-parent cir-level 1 pir-weight 1
                adaptation-rule pir closest cir closest
                rate cir 0 pir max
                queue-mgmt "default"

12.1.3. 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.