This chapter provides information to configure access egress QoS policies using the CLI.
This section provides an overview of access egress QoS policies.
On the 7210 SAS-R6 and 7210 SAS-R12 platforms, an access egress policy allows users to define the marking values for the traffic sent out of the access ports towards the customer. Access egress QoS policies map FC flows to marking values. In addition, based on the queuing mode used on access egress, these policies also define the per-port queue parameters.
In SAP-based queuing mode,the 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 L2 SAPs, that is, SAPs configured in Epipe and VPLS services. If users enable 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, 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.
Port-based marking is supported primarily for L3 SAPs (that is, SAPs configured in VPRN services and IES services). SAP based marking is not supported for L3 SAPs.
On 7210 SAS-R6 and 7210 SAS-R12, no explicit CLI command is provided to choose between port-based marking and SAP-based marking for L2 SAPs. The user can configure SAP-based marking by enabling remarking in the SAP egress policy attached to the L2 SAP, or configure 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 L2 SAP is configured.
A remarking policy can be defined for each access-egress policy and remarking is disabled by default. Only remarking policies of the type dot1p, dot1p-lsp-exp-shared, dscp, or dot1p-dscp can be used with access-egress policies. The following is the marking behavior with different remark policy types.
![]() | Note:
|
On the 7210 SAS-R6 and 7210 SAS-R12, in addition to marking values, the access-egress QoS policy provides an option to define port-based queues and scheduling. when per-port egress queues are used for SAPs configured on access ports.
Users can configure either port-based egress queuing and shaping or SAP-based egress queuing and shaping for SAPs configured on access ports or hybrid ports. The config system global-resource-profile qos port-scheduler-mode command allows the user to select the mode used for SAPs configured on all the ports of the node.
When port-scheduler-mode is enabled, eight egress queues are used per access port, and all the SAPs configured on the port share the eight egress queues for traffic sent out of that port. In this mode, SAPs configured on hybrid ports share the egress queues with network port traffic. Enabling port-scheduler-mode affects the behavior for all the SAPs configured on either access or hybrid ports. This means that port-based egress queues are mutually exclusive to the 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. 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 policies of the type dot1p, dot1p-lsp-exp-shared, dscp, or dot1p-dscp can be used with access-egress policies. The following is the marking behavior with different remark policy types.
![]() | Note:
|
On the 7210 SAS-R6 and 7210 SAS-R12, access-egress QoS policies define egress queues and map FC flows to queues, if port-scheduler-mode is enabled. In port-scheduler-mode, the system allocates eight egress queues to access port egress by default. To define a basic access-egress QoS policy, the following are required:
The parameters that can be configured for a queue are described in Queue Parameters.
Optional service egress QoS policy elements include:
On the 7210 SAS-R6 and 7210 SAS-R12, when port-based queuing is used, the FC-to-queue map is fixed and the queue priority is determined by the queue number, where higher queue numbers have higher priority. The user can configure a queue as a strict queue and change the scheduling behavior for that queue. See Port-based Scheduling and Queuing on Access Ports for more information.
The following is a sample configuration output showing a default access-egress policy for the 7210 SAS-R6 and 7210 SAS-R12.
The following QoS policy queue parameters can be overridden using the configure port ethernet access egress queue-override command:
Refer to the “Port Ethernet QoS Commands” section in the 7210 SAS-M, T, R6, R12, Mxp, Sx, S Interface Configuration Guide for command description details for the 7210 SAS-R6 and 7210 SAS-R12.
A basic access-egress QoS policy must conform to the following:
The following is a sample port-scheduler-mode policy configuration output for the 7210 SAS-R6 and 7210 SAS-R12.
Apply access egress policies to the following entities:
A policy can be applied to the ports that are in access mode.
Use the following syntax to apply an access-egress policy to an Ethernet port.
The following is a sample port configuration output for 7210 SAS-R6 and 7210 SAS-R12.
Existing policies and entries can be edited through the CLI or NMS. The changes are applied immediately to all services where the policy is used.
To prevent configuration errors perform the following.
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 in use, the following error occurs.
Use the following syntax to remove a policy from the QoS configuration.
The following example shows the command usage to remove a policy from the QoS configuration.