9. Access Egress QoS Policies

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

9.1. Overview

An access-egress policy defines the queuing for the traffic egressing on the access ports. Access-egress queue policies are used at the Ethernet access port and define the bandwidth distribution for the various FC/queue traffic egressing on the Ethernet access port.

There is one default access egress policy which is identified as policy ID 1. Each policy has eight queues available. The FC-to-queue mapping is predefined and cannot be changed. Queue parameters, for example CIR, PIR, and so on, can be modified. The default policy can be copied but cannot be deleted or modified.

9.1.1. Basic Configurations

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

  1. have a unique access egress QoS policy ID
  2. have a QoS policy scope of template or exclusive
  3. have queue parameters that can be modified but not deleted

9.1.1.1. Modifying Access Egress QoS Queues

To modify access-egress queue parameters, specify the following:

  1. queue ID value
    Eight queues are identified and are mapped as defined in Table 15.
  2. queue parameters
    Egress queues support configuration of CIR and PIR rates.

The following is a sample access egress QoS policy configuration output.

A:card-1>config>qos# info
#--------------------------------------------------
echo "QoS Policy Configuration"
#--------------------------------------------------
....
        access-egress 30 create
            remarking
            queue 1
                rate cir 100 pir 4500
            exit
            queue 2
            exit
            queue 3
            exit
            queue 4
            exit
            queue 5
            exit
            queue 6
            exit
            queue 7
            exit
            queue 8
            exit
        exit
----------------------------------------------
A:card-1>config>qos#

9.1.1.2. Applying Access Egress QoS Policies

Apply access egress policies to the following entities:

  1. Ethernet ports

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

9.1.1.2.1. Ethernet Ports

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

CLI Syntax:
config>port#
ethernet access egress
qos access-egress-policy-id

The following is a sample port configuration output.

*A:card-1>config>port# info
----------------------------------------------
                 shutdown
                    ethernet
                        access
                            egress
                                qos 30
                            exit
                        exit
                    exit
----------------------------------------------
*A:card-1>config>port# 

9.1.1.3. Default Access Egress QoS Policy Values

The following are sample access egress default policy parameters.

*A:card-1>config>qos>access-egress# info detail
----------------------------------------------
            description "Default Access egress QoS policy."
            no remarking
            scope template
            queue 1
                adaptation-rule cir closest pir closest
                rate cir 0 pir max
            exit
            queue 2
                adaptation-rule cir closest pir closest
                rate cir 0 pir max
            exit
            queue 3
                adaptation-rule cir closest pir closest
                rate 0 pir max
            exit
            queue 4
                adaptation-rule cir closest pir closest
                rate cir 0 pir max
            exit
            queue 5
                adaptation-rule cir closest pir closest
                rate cir 0 pir max
            exit
            queue 6
                adaptation-rule cir closest pir closest
                rate cir 0 pir max
            exit
            queue 7
                adaptation-rule cir closest pir closest
                rate cir 0 pir max
            exit
            queue 8
                adaptation-rule cir closest pir closest
                rate cir 0 pir max
            exit
----------------------------------------------
*A:card-1>config>qos>access-egress#

Table 43 lists the default FC marking values when remarking is enabled on the access egress policy.

Table 43:  Default FC Marking Values for 7210 SAS-D and 7210 SAS-Dxp 

Default FC value

dot1p marking values

af:

dot1p-in-profile 2

dot1p-out-profile 2

be:

dot1p-in-profile 0

dot1p-out-profile 0

ef:

dot1p-in-profile 5

dot1p-out-profile 5

h1:

dot1p-in-profile 6

dot1p-out-profile 6

h2:

dot1p-in-profile 4

dot1p-out-profile 4

l1:

dot1p-in-profile 3

dot1p-out-profile 3

l2:

dot1p-in-profile 1

dot1p-out-profile 1

nc:

dot1p-in-profile 7

dot1p-out-profile 7

9.1.1.4. 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 it is applied.

When a QoS policy is still in use, the following error occurs.

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

9.1.1.5. Removing a Policy from the QoS Configuration

Use the following syntax to remove a policy.

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