This chapter provides information to configure SAP ingress QoS policies using the CLI.
There is one default service ingress policy. The default policy allocates a single queue and maps all traffic to the “be” (best-effort) FC. The default policies can be copied and modified but they cannot be deleted. The default policies are identified as policy ID 1. The default policies are applied to the appropriate interface, by default. For example, the default SAP-ingress policy is applied to access ingress SAPs. You must explicitly associate other QoS policies. For information about the tasks and commands necessary to access the command line interface and to configure and maintain your 7210 SAS devices, refer to the CLI Usage chapter in the 7210 SAS-D, Dxp, K 2F1C2T, K 2F6C4T, K 3SFP+ 8C Basic System Configuration Guide.
In a service ingress QoS policy, a user can define up to eight queues or 16 policers/meters per policy, with up to two queues or two meters per FC.
For VPLS, the following types of forwarding are supported:
Multicast, broadcast, and unknown types are flooded to all destinations within the service while the unicast forwarding type is handled in a point-to-point manner within the service. All these traffic types use the same queue or meter (in other words, a separate queue or meter for multicast, broadcast, and unknown unicast traffic types cannot be defined).
Unicast and multipoint traffic can be defined to use the same queue or meter or different queues or meter per FC. In other words, eight queues and 16 policers are shared by unicast and multicast traffic types and if a user allocates a dedicated multicast queue for BUM traffic, the number of queues available for unicast traffic reduces. Similarly, up to 16 meters can be shared by unicast and multicast traffic types.
The configuration guidelines for SAP ingress policies are the following.
The available global pool of ingress internal CAM hardware resources can be allocated as per user needs for use with different features such as SAP ingress QoS policy, ingress ACLs, and so on. SAP ingress QoS can be allocated classification for use from this pool. Resources can be allocated for SAP ingress QoS policy classification IPv4, IPv6, and MAC match criteria, based on the operator needs. Users can modify the resources allocated to scale the number of entries available per match criteria or scale the number of SAPs. The resources from the global ingress internal CAM pool are allocated in slices with a fixed number of entries.
The number of slices to be allotted for a SAP ingress QoS policy is specified using the config system resource-profile ingress-internal-tcam qos-sap-ingress-resource CLI command.
The user can specify a limit for the amount of resources required for SAP ingress QoS policies and also has the option to limit the amount of resources used per match criteria supported for SAP ingress QoS policies. A given slice can be used for MAC criteria, IP criteria, and IPv6 criteria.
Before associating SAP-ingress policy match criteria with a SAP, resources must be allocated. Until resources are allocated for use, attempts to associate a policy with a SAP fail. When the user allocates resources for use by SAP ingress QoS policies using the config system resource-profile ingress-internal-tcam qos-sap-ingress-resource CLI command, the system allocates resources in slices of 510 entries (192 entries for the 7210 SAS-K 3SFP+ 8C).
The above resources set the maximum limit on the resources available for use by all SAP ingress policies in use simultaneously on the system. The software manages the resource slices allocated to the SAP ingress QoS policy pool and allocates the entries in the slices when a SAP ingress QoS policy is associated with a SAP. The software allocates the resources required by a SAP from the slices depending on whether the SAP-ingress policy uses IP criteria, IPv6 criteria, or MAC criteria, and the number of entries configured in the SAP-ingress policy.
When the user allocates slices of resources using the config system resource-profile ingress-internal-tcam qos-sap-ingress-resource CLI command, the resources are used only for classification entries configured under IPv4 criteria or MAC criteria.
If the user needs to use IPv6 criteria, resources must be allocated using the config system resource-profile ingress-internal-tcam qos-sap-ingress-resource mac-ipv4-ipv6-128-match-enable CLI command. The resources allocated using this command are used for classification entries configured under IPv6 criteria, IPv4 criteria, or MAC criteria. Each IPv6, IPv4, or MAC classification entry consumes two resources from this pool, reducing the number of classification entries that can be accommodated in a single slice to 256 (96 entries for the 7210 SAS-K 3SFP+ 8C.) The user can choose to allocate all the slices allocated for SAP ingress QoS classification for IPv6 criteria or allocate only a portion of it.
The tools dump system-resources CLI command displays the current usage and availability of the resources. One or more entries per slice are reserved for system use.
The FC ingress meter and SAP ingress aggregate meter allocate resources for the common meter resource pool. A single FC ingress meter requires one entry from the pool when the policy is associated with the SAP and a single SAP ingress aggregate meter uses a single entry from the pool when the command to enable SAP aggregate meter functionality is executed under the context of the SAP. An increase in FC ingress meter reduces the number of meters available for SAP ingress aggregate meter. The reverse is also true.
The tools dump system-resources CLI command can be used to display the current utilization of the ingress meter resource pool.
The default policy 1 maps all traffic to default FC “be” and maps FC “be” to queue 1. Queue 1 is configured with CIR 0 and PIR max. The following is a sample configuration output of a default SAP-ingress policy.
Table 41 lists the SAP-ingress policy defaults.
Field | Default |
description | “Default SAP-ingress QoS policy.” |
scope | template |
queue | 1 |
adaptation-rule | cir closest pir closest |
rate | pir = max, cir= 0 |
cbs | 10KBytes - default |
mbs | 60KBytes - default |
priority | 1 |
weight | 1 |
default-fc | be |
The 7210 SAS uses an index file to store the map that indicates the QoS resource allocation to the SAPs. This file is used to ensure that all the SAPs that were created successfully before a reboot can be recreated during a reboot. Without an index file, it is possible that all the SAPs that were configured successfully may fail on a reboot after saving the configuration file. The index file is stored in the flash. During a reboot, if the file is found, the system allocates resources as per the stored map. If the file is not found, the system implements a best-fit algorithm and tries to allocate resources for all the SAPs on a first-come-first-served basis. When the index file is not present it is possible that the saved configuration did not execute successfully after the reboot.
Note: The following caveats apply:
|
A basic service ingress QoS policy must conform to the following:
Configuring and applying QoS policies is optional. If no QoS policy is explicitly applied to a SAP, a default QoS policy is applied.
To create a service ingress policy, perform the following.
The following is a sample service ingress policy configuration output.
To create service ingress queue parameters, perform the following.
The following are sample service ingress QoS meters.
The following is a sample SAP ingress FC configuration output with unicast queues and multicast queues.
The following is a sample SAP ingress FC configuration output with a mix of unicast queues and meters, and a mix of multicast queues and meters.
The following is a sample configuration output of dot1p classification policy and IP DSCP classification policy used for ingress classification and its association with SAP-ingress policy.
When specifying SAP ingress match criteria, only one match criteria type can be configured in the SAP ingress QoS policy.
The following is a sample ingress IP criteria configuration output.
To configure service ingress policy MAC criteria, perform the following.
The following is a sample ingress MAC criteria configuration output.
SAP ingress QoS policies are supported only on access SAPs.
The following sample configuration output shows an Epipe service configuration with SAP-ingress policy 100 applied to the SAP.
The following sample configuration output shows a VPLS service configuration with SAP-ingress policy 100.
The following sample configuration output shows an IES service configuration.
This section describes service management tasks.
Every service SAP is associated, by default, with the appropriate ingress policy (policy-id 1). You can replace the default policy with a customer-configured policy, but you cannot entirely remove the policy from the SAP configuration. When you remove a non-default service ingress policy, the association reverts to the default policy-id 1.
A QoS policy cannot be deleted until it is removed from all SAPs where it is applied.
The following Epipe service output samples show that the SAP service ingress reverts to policy-id 1 when the non-default policies are removed from the configuration.
You can copy an existing service ingress policy, rename it with a new policy ID value, or overwrite an existing policy ID. The overwrite option must be specified or an error occurs if the destination policy ID exists.
Use the following syntax to remove a policy from the QoS configuration.
You can change existing QoS policies and entries. The changes are applied immediately to all services where this policy is applied. To prevent configuration errors, copy the policy to a work area, make the edits, and then overwrite the original policy.