This chapter provides information to configure SAP ingress QoS policies using the CLI.
There is one default service ingress policy. The default policy has two classification resources and one meter (the num-qos-classifiers set to value 2). No queues are allocated by default. SAP-ingress policies with policing and queuing is supported for SAPs configured on access ports and hybrid ports.
![]() | Note: SAP-egress queues and network port and hybrid port egress queues are supported on all 7210 SAS platforms as described in this document. |
Each policy can have up to 32 ingress meters. The default policies can be copied and modified but cannot be deleted. The default policies are identified as policy ID 1.
The default SAP-ingress policy is applied to access ingress SAPs. You must explicitly associate other QoS policies, if desired.
Refer to the CLI usage chapter in the 7210 SAS-M, T, R6, R12, Mxp, Sx, S Basic System Configuration Guide for information about the tasks and commands necessary to access the CLI and to configure and maintain the 7210 SAS devices.
The default policy 1 maps all traffic to default forwarding class “be” and maps FC “be” to meter 1. Meter 1 is configured with cir 0 and pir max.
The following is a sample configuration output.
Table 41 lists the SAP-ingress policy defaults.
Field | Default |
description | “Default SAP ingress QoS policy.” |
num-qos-classifiers | 2 |
scope | template |
meter | 1 |
mode | trtcm1 |
adaptation-rule | cir closest pir closest |
rate | pir = max, cir= 0 |
mbs | default |
cbs | default |
default-fc | be |
The 7210 SAS devices use an index file to store the map that indicates the QoS resource allocation to the SAPs. This file is used on reboot to ensure that all the SAPs that were created successfully before 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. There is no guarantee that resources will be allocated to all SAPs. When the index file is not present, it is possible that the saved configuration did not execute successfully after the reboot.
![]() | Note: The index file used for QoS maps is different from the one used for storing Interface indexes. |
The system allows the sharing of a single meter for both unicast and multipoint traffic. The user can configure any of the available meters for multipoint traffic. The use of the multipoint keyword during meter creation is deprecated, except for use with meter 11, as described in the following paragraphs.
When the multipoint keyword is specified with meter 11, the software interprets it to be the default multipoint meter. The default multipoint meter is used for all FCs that do not have explicit multipoint meters configured.The software performs resource checks to ensure that the resources needed to use the multipoint meter with all the FCs are available before allowing this change.
![]() | Note:
|
This section provides configuration examples of several uses of the multipoint meter.
Example 1
In example 1, all FCs in the SAP-ingress policy use the default meter 1 (for all traffic types). If the configure qos sap-ingress id meter 11 multipoint create command is executed, it attaches the default meter 11 with all the FCs defined in the SAP-ingress policy.
After configuring meter 11 multipoint, all the FCs in this policy use two meters: default meter 1, to meter unicast traffic for all the FCs; and meter 11, to meter BUM traffic for all the FCs. In this example, because only the default FC “be” is in use, the multipoint meter is used to meter BUM traffic associated with default FC “be”.
The following example shows the policy after the configuration is changed.
Deleting the multipoint meter 11 removes all the FCs associated with the multicast-meter, assuming all the FCs are using the default multicast meter and do not have any other multicast meter explicitly configured. Executing the configure qos sap-ingress id no meter 11 command disassociates meter 11 from the FCs, and the FCs use only meter 1 (if no other meter is configured explicitly).
Example 2
Starting with the policy in example 2, if the user now executes the configure qos sap-ingress id meter 11 multipoint create command, the FC “be” continues to use meter 3 and the FC “af” uses meter 11 for BUM traffic. In this example, if the user executes the configure qos sap-ingress id fc be no multicast-meter command, the default meter 11 is also used for FC “be”.
Example 3
Upon executing the configure qos sap-ingress id meter 11 multipoint create command, FC "be" unknown-unicast traffic type continues to use meter 3, and broadcast and multicast traffic types use meter 11.
In example3, if a broadcast-meter was initially configured in the SAP-ingress policy and was followed by executing the configure qos sap-ingress id meter 11 multipoint create command, FC “be” changes to use meter 11 for multicast traffic, and broadcast traffic continues to use meter 3 for unknown-unicast traffic and meter 3 for unicast traffic.
Also in example 3, if the user executes the configure qos sap-ingress id fc be no unknown-meter command, meter 3 is used for all traffic types classified to FC “be”. But, if the default meter 11 is defined in the policy, FC “be” uses meter 11 for BUM traffic.
This section describes the rules for meter selection by different traffic types under various configurations for VPLS services.
In the default policy, only meter 1 is defined. All FC and all traffic types use meter 1 by default. Meter 11 is not created by default and is not available for use.
The following is a sample default policy configuration output.
The following describes the use of meters when meter 11 in a VPLS service is not configured in the policy.
The following describes the use of meters when meter 11 in a VPLS service is defined in the policy.
The following are rules for meter selection for Epipe, IES, and VPRN services,
![]() | Note: These rules apply to IES services when PIM is not enabled in the service. |
The following are rules for meter selection for IES and VPRN services when PIM/multicast is enabled in the service and describes the use of meters when meter 11 is not configured in the policy.
The following are rules for meter selection for IES and VPRN services when PIM/multicast is enabled in the service and meter 11 is defined in the policy.
The num-qos-classifiers command cannot be modified when the policy is in use (for example, when it is associated with a SAP). Other parameters in the SAP-ingress policy can be changed.
When changing other parameters (for example, FC meter map or FC classification match criteria entries) for a policy that is in use, the system recomputes the resources required to accommodate the change. If the resources required exceed the configured value for num-qos-classifiers, the change is not allowed.
If more resources are needed than are configured in num-qos-classifiers for a existing policy, the following options are available.
![]() | Note: Both of these options have side effects; for example, they can reset the statistics associated with the meters and potentially cause existing traffic classification not to take effect. However, the system ensures that the default policy is used during the period when policy changes are being made after the two options are performed. |
The following are additional service ingress policy configuration considerations.
See Resource Allocation for Service Ingress QoS Policies for more information.
The available global pool of ingress internal CAM hardware resources can be allocated based on user needs and shared among different features, such as SAP-ingress QoS policy, ingress ACLs, and so on. SAP-ingress QoS classification and meter resources can be allocated from this pool.
In addition, resources can be allocated for different SAP-ingress QoS policy classification match criteria based on operator needs. Users can modify the resources allocated to scale the number of entries available per match criteria or scale the number of SAPs. Resources from the global ingress internal CAM pool are allocated in fixed slices. The number of classification entries and meters per slice varies across 7210 SAS platforms.
Refer to the 7210 SAS-M, T, R6, R12, Mxp, Sx, S Basic System Configuration Guide for more information about the number of slices that can be allocated to a feature. For example, on a 7210 SAS-R6 IMM-b card, each slice allows 256 classification entries and 128 meters. The number of slices allotted for a SAP-ingress QoS policy is configured using the configure system resource-profile ingress-internal-tcam qos-sap-ingress-resource command.
Users can configure the resources available for SAP-ingress QoS policies and can limit the amount of resources used per match criteria supported for SAP-ingress QoS policies. A specific slice can be used for MAC criteria, IP criteria, or IPv6 criteria, or both IP and MAC criteria. Allocation of classification entries also allocates meter/policer resources that are used to implement per-FC per-traffic-type policing.
![]() | Note: In addition to CAM-based resource allocation, the 7210 SAS-R6 and 7210 SAS-R12 support table-based resource allocation for DSCP-classification on SAP ingress. See Table-based Classification Using Dot1P and IP DSCP for Assigning FC and Profile on SAP Ingress for more information. |
By default, the system allocates resources for SAP-ingress QoS policies to maintain backward compatibility with Release 4.0 and allocates resources for MAC criteria and IP criteria (by setting num-resources to max). Setting the num-resources value to max allows each match criterion to use the available SAP-ingress QoS resources on a first-come-first-served model. By default, the software does not allocate resources for use by ingress IPv6 classification or for using both IP (any) and MAC (any) criteria in a single SAP-ingress policy. Users must allocate resources before associating a SAP with an IPv6 SAP-ingress policy or both IP (any) and MAC (any) criteria in a SAP-ingress policy. Until appropriate resources are allocated, attempts to use the policy associated with a SAP fail.
If the configure system resource-profile qos-sap-ingress-resource command is used to allocate resources for SAP-ingress QoS policies, the system allocates resources in slices for a fixed number of entries; the entries allocated per slice is platform-dependent. Table 42 describes the use of these entries by different types of match criteria.
Type of Match Criteria | Description |
mac-criteria (any) | Before using SAP-ingress policies with mac-criteria (any), use the configure system resource-profile ingress-internal-tcam qos-sap-ingress-resource mac-match-enable CLI command to allocate resources from the SAP-ingress QoS resource pool. Resources are allocated for SAP-ingress policies that use mac-criteria (any and dot1p-only). Each entry in the SAP-ingress QoS policy that is configured to use mac-criteria uses one entry from the slices in the hardware resource pool allocated to mac-criteria. For example, assume that on the 7210 SAS-R6 a SAP ingress policy is configured to use mac-criteria with 50 entries, and uses the configure system resource-profile ingress-internal-tcam qos-sap-ingress-resource mac-match-enable 1 CLI command to configure one slice for use by mac-criteria (allowing a total of 256 entries for use by policies that use mac-criteria). In this case, the user can configure 10 SAPs that use the mac-criteria SAP ingress policy and consume 25 entries. |
ipv4-criteria (any) | The use of ipv4-criteria (any) match criteria is the same as the mac-criteria. Use the configure system resource-profile ingress-internal-tcam qos-sap-ingress-resource ipv4-match-enable CLI command to allocate resources. Additionally, IPv4 criteria can share entries allocated for IPv6 criteria. The SR OS automatically allocates entries from an IPv6 criteria slice to IPv4 criteria policies, if no entries are available in the allocated IPv4 criteria slices and no slices are available for allocation to IPv4 criteria from the SAP-ingress QoS resource pool. If an IPv4 criteria entry uses IPv6 criteria slices, the number of hardware entries used is the same as required by an IPv6 criteria entry (see ipv6-criteria (any) 1 for more information). |
ipv6-criteria (any) 1 | Before using ipv6-criteria match criteria, use the configure system resource-profile ingress-internal-tcam qos-sap-ingress-resource ipv6-ipv4-match-enable CLI command and specify the ipv6 keyword for the num-qos-classifiers command to allocate resources from the SAP-ingress QoS resource pool. Each ipv4-criteria match entry or ipv6-criteria configured in the QoS policy that uses ipv6-criteria uses two entries from the slices allocated for use by ipv6-criteria (128-bit) in the hardware. The system allocates entries from the ipv6-criteria pool in the following cases:
For example, assume that on the 7210 SAS-R6 a QoS policy is configured to use ipv6-criteria with 50 entries and the configure system resource-profile ingress-internal-tcam qos-sap-ingress-resource ipv4-ipv6-128-match-enable 1 command is used to configure one slice for ipv6-criteria. This allows a total of 128 entries for use by SAPs using SAP ingress QoS policies with ipv6-criteria (because each IPv6 entry uses two entries in hardware). In this example, the user can configure two SAPs that use this policy and consume a total of 100 entries. These resources can be shared with policies that use IPv4 criteria, though each IPv4 criteria entry consumes two entries in the hardware. IPv4 criteria policies can consume spare IPv6 resources; however, if a larger number of IPv4 criteria policies are planned, it is good practice to allocate more resources for use with IPv4 criteria. |
IPv4 (any) and MAC (any) match | Before using IP-criteria (any) and MAC-criteria (any) in a single policy, use the configure system resource-profile ingress-internal-tcam qos-sap-ingress-resource ipv4-mac-match-enable command to allocate resources from the SAP-ingress QoS resource pool. Each IPv4-criteria match entry or MAC-criteria match entry configured in the QoS policy uses two entries from the allocated slices. The system allocates entries from the ipv4-mac-match-enable pool if the SAP-ingress QoS policy uses both ip-criteria (any) and ipv6-criteria (any). The system also allocates entries for all other criteria, if there are no resources available to use in the pool allocated to those criteria. That is, if no resources are available in other pools, the following criteria are allocated resources from this pool: only mac-criteria any, only ip-criteria any, mac-criteria dot1p-only, ip-criteria dscp-only, ipv4-criteria dscp-only. 2 |
dot1p-only, IPv4 dscp-only, IPv6 dscp-only, and default SAP-ingress QoS policies | Use the dot1p-only or dscp-only option if only dot1p bits or only IP DSCP bits or only IP precedence bits are used for SAP-ingress classification. This facilitates efficient use of available hardware resources and better scaling. SAP-ingress policies that use only dot1p bits or only IPv4/IPv6 DSCP or IPv4/IPv6 precedence or default SAP-ingress QoS policy bits can use the resources from slices currently allocated for use by either IP-criteria or MAC-criteria or IPv6 criteria. The following is a list of special cases for resource allocation for default, dot1p-only, and dscp-only SAP-ingress policies.
|
Notes:
The SAP-ingress resource slices described in this section are different from the resources that are configured using the num-qos-classifiers command.The num-qos-classifiers command sets the limit on the resources needed per SAP-ingress QoS policy. The qos-sap-ingress-resource resources set the maximum limit on the resources available to all the SAP-ingress policies that are in use simultaneously on the system.
The SR OS manages the resource slices allocated to the SAP-ingress QoS policy pool and allocates the slice entries when a SAP-ingress QoS policy is associated with a SAP. A SAP specifies the number of QoS resources it needs using the num-qos-classifiers command (in the SAP-ingress policy), while the system allocates the resources required by the SAP from the qos-sap-ingress-resource slices, depending on whether the SAP-ingress policy uses ip-criteria, mac-criteria, or ipv6-criteria.
Use the tools dump system-resources command to view the current use and availability of system resources. One or more entries per slice are reserved for system use.
When a SAP is associated with a default SAP-ingress QoS policy and there are no resources available in the pool of slices already allocated for different criteria that are in use, a new slice is allocated and set to either mac-match criteria, ipv4-match criteria, or ip-dscp-port-if-match criteria. This allocation can result in a single slice getting consumed and becoming unavailable for other classification criteria, even if the mac-match criteria, ipv4-match criteria, or ip-dscp-port-if-match criteria are not used. To prevent this scenario, the SAP ingress resource configuration can be set to the specific number of slices for each criterion in use so that the SR OS can allocate the slices based on user requirement without allocating resources for any of the mac-match criteria, ipv4-match criteria, or ip-dscp-port-if-match criteria.
The user can configure the number of classification entries the SAP requires (TQ). The value of TQ is set using the num-qos-classifiers command, where TQ is the total number of QoS resources required by the SAP. To determine TQ, see Determining the Number of Policers/Meters per Policy (TP).
Number of meters allocated automatically by system = TQ / 2 (up to a maximum of 32 meters)
To calculate the number of SAPs allowed, assume all SAPs are configured to use “TQ” QoS resources per SAP.
Number of SAPs allowed = maximum classification entries / TQ
![]() | Note: The number of SAPs arrived at using the preceding equation is subject to system limits. This equation is used to derive the limit on the number of SAPs due to QoS resources only. |
The user is allowed to mix and match SAPs with different QoS resources (that is, using different values of TQ).
The following items determine the number of QoS resources to be allocated for a SAP:
Only those FCs that are in use by the match-criteria classification entries are considered for the number of FCs. These FCs are referred to as “FCs in use.”
This section describes the rules and methods of determining the number of classification entries.
Knowing the number of traffic types to use per “FC in use,” the following rules apply for a SAP in a VPLS service to determine the number of classification entries per FC in use.
For calculating the number of classification entries per FC for a SAP in a VLL or VPRN service or IES service with PIM disabled, the following rules apply.
Knowing the number of traffic types to use per “FC in use,” the following rules apply for a SAP in an IES and VPRN service enabled with PIM/multicast enabled to arrive at a number of classification entries per FC in use.
Apply the rules to determine the number of classification entries per FC (only for the FCs in use) using the following equation:
C(i) = SFCi (unicast) + FCi (multicast) + FCi (broadcast) + FCi (unknown_unicast)
i = nc, h1, ef, h2, l1, af, l2, be
where:
If the user does not configure meters explicitly for the FC and multipoint meter 11 is not created, the default unicast meter is used for all traffic types; therefore, only one classification entry in hardware is required by the FC. If the user does not configure meters explicitly for the FC and multipoint meter 11 is created, the default unicast meter and the default multicast meter are used. By default, two classification entries in hardware are required by an FC.
Taking into account the number of match criteria and the number of FCs used, use the following equation to determine total number of classification entries per policy.
TC = S E(i) * C(i)
i = nc, h1, ef, h2, l1, af, l2, be
where:
Determine the number of policers or meters to use (TP). A maximum of 32 meters per policy are available. The number of policers/meters is determined by the number of meters associated with FCs in the SAP-ingress QoS policy.
Use the values of TC and TP to determine the required number of QoS resources (TQ).
Only those meters associated with FCs are considered for number of meters. Note that only “FC in use” is considered.
Total QoS resources required (TQ) = max [(TC), (2 * TP))
The resulting number is rounded up to the next multiple of 2, greater than TQ obtained using the preceding equation; for example, if TC = 5 and TP = 2, max (5, (2 * 2)) is 5, and TQ is rounded up to 6.
The user configures the value of TQ using the num-qos-classifiers CLI command.
For examples and more information about resource calculation, see the following sections:
Using an IP DSCP classification policy and a dot1p classification policy is another method used to assign the FC and profile on SAP ingress for use with color-aware meters. This is supported along with the capability to use other header fields in MAC and IP packets through the use of the mac-criteria, ipv4-criteria, and ipv6-criteria commands. When using SAP-ingress color-aware meters and policers, users can configure DEI to assign the initial profile on ingress and can configure either MAC criteria or IP criteria (or both) to assign the FC.
On the 7210 SAS-R6 and 7210 SAS-R12, users have the option of using an IP DSCP classification policy as a second method to assign FC and profile on SAP ingress for use with color-aware meters, as is the case on network ingress.
To implement DSCP classification on the 7210 SAS-R6 and 7210 SAS-R12, users create a DSCP classification policy, associate the policy with a SAP-ingress QoS policy or an Ethernet ingress port, apply the SAP-ingress QoS policy to the SAP or port, and enable the use of the policy. DSCP classification uses classification resources from a table classifier and, potentially, fewer resources from the CAM resources, thereby saving CAM resources for other purposes. When a table-based classification policy is enabled, CAM-based classifications from the SAP-ingress QoS policy are ignored.
The 7210 SAS-R6 and 7210 SAS-R12 support IP DSCP and Dot1p classification as described in this section.
For SAPs in Layer 2 services (Epipe and VPLS) configured to use table-based classification, use the config qos sap-ingress table-classification-criteria CLI command, which provides the option to select one of the following: dot1p or IP DSCP, or both dot1p and IP DSCP, or none. This command is applicable only to SAPs configured in Layer 2 services; it is ignored for Layer 3 services (IES, VPRN, and RVPLS services).
The following behavior is supported with table-based classification for SAPs configured in Layer 2 services, depending on the configuration option selected using the config qos sap-ingress table-classification-criteria CLI command.
Table-based classification for SAPs configured in Layer 3 services (IES and VPRN) does not allow classification options using the config qos sap-ingress table-classification-criteria CLI command. It must always be set to both-dscp-dot1p. The following behavior is supported:
![]() | Note: All SAPs in an RVPLS service can use either table-based classification or CAM-based classification entries. There cannot be a mix of SAPs, where some SAPs use table-based classification and others use CAM entries. |
The following is the order of match for packets with table-based classification in Layer-3 services.
The 7210 SAS-R6 and 7210 SAS-R12 support IP DSCP classification as follows:
The following describes the order of match for packets.
The following default-fc command assignment rules apply for SAPs configured in Layer 3 services, including RVPLS services.
The following precedence rules pertain to the use of DSCP classification policies, DEI profile assignment, and IP- and MAC-criteria entries.
IP DSCP and dot1p classification policies can be used at SAP ingress, allowing users to define the mapping of an IP DSCP or dot1p value to an FC and profile.
The default values for the default-dscp-fc and default-dot1p-fc command are FC “be” and profile “out”. Newly-created classification policies contain the default “be” and “out” values as the default entries. The default-dscp-fc or default-dot1p-fc command assigns the default FC to any IP DSCP or dot1p value that is not explicitly configured by a user.
Up to 50 unique DSCP or dot1p classification policies can be supported on the 7210 SAS-R6 and 7210 SAS-R12.
Use the following syntax to create a DSCP classification QoS policy.
The following example shows the command to create a DSCP classification QoS policy.
Use the following syntax to create a dot1p classification QoS policy.
The following example shows the command to create a dot1p classification policy.
The resources for IP DSCP classification policies are taken from hardware tables, which is referred to as table-based classification to differentiate it from CAM-based classification. Table-based resources do not use many CAM entries for classification. Only a fixed number of CAM resources are needed to match the FC and traffic type and to assign a meter/policer. Table-based classification uses CAM resources more efficiently than CAM-based classification.
To calculate the number of resources needed, see the following sections:
When CAM-based classification is used from the SAP-ingress resource pool, CAM resources are used to match the FC and the traffic type (unicast, broadcast, multicast, and unknown) and to assign a meter to the FC. The maximum number of DSCP entries required is 36 entries (8 FCs * 4 traffic types + 1 default FC * 4 traffic types). The maximum number of CAM resources required is 32, which assumes the use of VPLS service with one meter per traffic type, regardless of the number of IP DSCP classification entries. Even if 64 IP DSCP values are matched, only 32 classification resources in the SAP-ingress CAM resource pool are needed. For Epipe services, the number of entries is reduced to nine (8 FCs + 1 default FC) because all traffic is treated as unicast.
To allocate resources to meters for a SAP ingress QoS policy that is using table-based DSCP classification, use the ip-dscp-port-if-match-enable num-resources command, found under the configure>system>resource-profile>ingress-internal-tcam>qos-sap-ingress-resource context. The command supports up to 10 resources (meters).
Use the following syntax to allocate resources to meters for table-based classification.
The following example shows the allocation of resources to meters for table-based classification.
A DSCP or dot1p classification policy must be associated with a SAP-ingress QoS policy or an Ethernet port to be able to map flows to an FC and profile for IP traffic received on SAP ingress.
The dscp-classification policy-id or dot1p-classification policy-id value identifies which classification policy is used to match IP packets and map the IP DSCP or dot1p to an FC and profile. The no form of the dscp-classification or dot1p-classification command associates the default classification policy (policy 1). The default policy maps all IP DSCP or dot1p values to FC “be” and profile “out”. If a packet does not match any explicitly configured criteria in the policy, the default-fc mapping is used. See IP DSCP and Dot1p Classification Policy Support for information about Layer 2 and Layer 3 scenarios.
The num-qos-classifiers command allocates meters from the resources allocated towards the qos-sap-ingress pool, from the ingress-internal-tcam resource pool.
MAC, IPv4, and IPv6 criteria do not need to be defined because DSCP classification or dot1p classification is being used.
Use the following syntax to associate an IP DSCP classification policy with a SAP-ingress policy.
The following example shows the command usage to associate an IP DSCP classification policy with a SAP-ingress policy.
Use the following syntax to associate a dot1p classification policy with a SAP-ingress policy.
The following example shows the command usage to associate a dot1p classification policy with a SAP-ingress policy.
Use the following syntax to configure the classification policy to classify traffic to a forwarding class.
The following example shows the command usage to configure the classification policy to classify traffic to a forwarding class.
Users associate an IP DSCP classification policy with an Ethernet port using the configure port ethernet access ingress dscp-classification command.
Users associate a dot1p classification policy with an Ethernet port using the configure port ethernet access ingress dot1p-classification command.
Use the following syntax to associate an IP DSCP classification policy with an Ethernet port.
The following example shows the command usage to associate an IP DSCP classification policy with an Ethernet port.
Use the following syntax to associate a dot1p classification policy with an Ethernet port.
The 7210 SAS-R6 and 7210 SAS-R12 support table-based classification to assign an initial FC and profile on SAP ingress for Epipe and VPLS SAPs, VPRN and IES interface SAPs, and RVPLS SAPs. The use of table-based classification (IP DSCP) and CAM-based classification are mutually exclusive. That is, when table-based classification is used, any CAM-based classification configured from the SAP-ingress QoS policy is ignored.
Within Epipe and VPLS services, SAPs can be configured with an IP DSCP or dot1p classification policy per SAP. This applies to SAPs configured on an access port and on a hybrid port. Using the enable-table-classification command means the SAP uses table-based policies along with the meters defined in the SAP-ingress policy. CAM-based resources from the SAP-ingress policy are ignored.
The enable-table-classification command enables the use of IP DSCP or dot1p tables per SAP ingress to assign an FC and profile. Using table-based classification means ignoring CAM classification in the service ingress policy, using only meters from the service ingress policy, and using the IP DSCP classification policy or dot1p classification policy that is configured in the SAP-ingress policy. The default FC is assigned per SAP.
The num-qos-classifiers command allocates meters from the IFP, with resources taken from the ingress-internal-tcam resource pool towards qos-sap-ingress.
The dscp-classification command configures the classification that policy is used to match IP packets and to map an IP DSCP value to an FC and profile.
The dot1p-classification command configures the classification that policy is used to match IP packets and to map a dot1p value to an FC and profile.
The table-classification-criteria command provides an option for all traffic to use either dot1p classification, DSCP classification, or both IP DSCP and dot1p classification, or assign default-fc (none option) to all traffic. The default-fc command configures the FC assigned to all untagged packets. All untagged packets are mapped to the profile “out”.
MAC, IPv4, and IPv6 criteria do not need to be defined because DSCP or dot1p classification is being used.
Use the following syntax to enable table classification for an Epipe and a VPLS service.
The following is an example of SAP-ingress QoS policy 1000 configured with DSCP classification policy 101 and default-fc “be”. It is followed by a sample Epipe ingress SAP configured to use SAP-ingress policy 1000 with table-based classification enabled.
Within IES and VPRN services, SAPs can be configured with an IP DSCP classification policy per SAP. This applies to SAPs configured on an access port and on a hybrid port. Using the enable-table-classification command means the SAP uses table-based policies along with the meters defined in the SAP-ingress policy.
The enable-table-classification, num-qos-classifiers, dscp-classification, and default-fc commands for IES and VPRN interface SAPs operate similarly to Epipe and VPLS SAPs (see Assigning and Enabling Policies to Epipe and VPLS SAPs).
MAC, IPv4, and IPv6 criteria do not need to be configured because DSCP classification is being used.
Use the following syntax to enable table-based classification for an IES and a VPRN service.
The following is an example of SAP-ingress QoS policy 1000 configured with DSCP classification policy 101 and default-fc “be”. It is followed by a sample ingress SAP on an IES service interface configured to enable table-based classification using SAP-ingress policy 1000.
For RVPLS SAPs configured on an access port, the 7210 SAS-R6 and 7210 SAS-R12 support RVPLS service with per-port IP DSCP classification policies for bridged traffic received on SAPs configured in the RVPLS service. For routed traffic, per-IP interface IP DSCP classification policies (that is, the QoS override policy) are used.
For RVPLS SAPs configured on a hybrid port, the network QoS policy of the port type associated with network port ingress is used for RVPLS SAP bridged traffic classification and profile. Only traffic classification is used from the network policy. Meters are still used from the SAP-ingress policy attached on the RVPLS SAP. For routed traffic received on a hybrid port, the IP DSCP policy (that is, the QoS override policy) associated with the RVPLS IP interface is used for traffic classification and profile.
Only meters configured in the SAP-ingress policy associated with RVPLS SAPs are used when table-based classification is enabled under the SAP associated with an RVPLS service.
![]() | Note: All SAPs in an RVPLS service can use either table-based classification or CAM-based entries. There cannot be a mix of SAPs, where some SAPs use table-based classification and others use CAM entries. |
The following examples create and assign a SAP ingress QoS policy to an RVPLS SAP. Table-based classification is enabled in the override policy associated with the IES interface that is associated with the RVPLS service. In this case, only meters from the SAP ingress QoS policy are used. Ingress CAM entries are ignored (not used).
For routed packets, although the DSCP classification is based on the DSCP policy attached to the interface, the enable-table-classification command must also be set on RVPLS SAPs for table-based classification to work correctly. If enable-table-classification is not set on an RVPLS SAP, only profile is taken from the routed-override-qos policy for that SAP. In this case, traffic classification (as per TCAM-based classification) and meters are taken from the SAP-ingress policy attached to the RVPLS SAP.
The following syntax enables table-based classification and specifies the QoS override classification policy in the IES or VPRN interface RVPLS configuration. The policy-id specified in the routed-override-qos-policy command identifies the DSCP policy configured using the configure qos dscp-classification command.
For bridged packets, although the DSCP classification is based on the DSCP policy attached to the port, the enable-table-classification command must also be set in the IES or VPRN interface context, as well as the respective RVPLS SAP context for table-based classification to work correctly (as shown in the example in this section). If enable-table-classification is not set on the respective RVPLS SAP, only profile is taken from the port policy for that SAP. In this case, classification (as per TCAM-based classification) and meters are taken from the SAP-ingress policy.
The following syntax enables table-based classification on an Ethernet port and specifies the DSCP classification policy in the port ethernet access ingress command.
This section provides examples for calculating the resources required for SAP-ingress policy classification.
This section provides examples for calculating the amount of resources needed for a service ingress policy when CAM-based classification is used. See Examples: Calculating Resources Required for IP DSCP Table-based Classification for calculations when IP DSCP table-based classification is used.
The resource calculation shown for VLL is also applicable for VPRN services.
The examples in this section use the following equations to calculate the value for num-qos-classifiers used in the SAP-ingress QoS policy. See Computation of Resources Used per SAP-ingress Policy for CAM-based Classification for information about these equations.
In addition, the examples show how to determine the number of classification entries for each forwarding class. For example, FCh2 (shown in example 1) is the sum of four traffic types: (unicast (U), broadcast (B), multicast (M), and unknown-unicast (U-u)). See Determining the Number of Classification Entries for more information.
If BUM entries are not explicit and multipoint traffic is expected, meter "11" is used and the "M" traffic type is given a "1".
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, compute the number of classification entries per FC as follows.
Because FCh2 uses a unicast meter, an entry is needed to identify this traffic type explicitly. Another entry is needed to classify broadcast, multicast and unknown-unicast traffic type to the same FC and use the default meter 11.
Use the following equation to calculate the total classification entries used by this policy.
TC = (0 * 0)nc + (0 * 0)h1 + (0 * 0)ef + (1 * 2)h2 + (1 * 2)l1 + (1 * 2)af + (0 * 0)l2 + (1 * 2)be = 8
Three explicit match criteria entries are used to map traffic to each of FC H2, FC L1, and FC AF, along with a default classification entry for FC BE.
The total number of meters used = 3 (because FCs use meter 1, meter 3 and meter 11).
In this example, num-qos-classifiers 8 is used (maximum of (8, (2 * 3))).
If the same policy were used for a SAP in an Epipe service, because all traffic is classified to a unicast traffic type and only unicast meters are used, the following computation is used.
Using the preceding equation, total classification entries used = 4 and meters used = 2.
This example shows that using the same policy for Epipe SAP can lead to inefficient use of resources. Nokia recommends creating a different policy with the required number of resources (that is, with num-qos-classifiers 4).
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, compute the number of classification entries per FC as follows.
Because FCh2 uses unicast meter for all traffic types, an entry to classify all traffic types to FCh2 explicitly is required.
Use the following equation to calculate the total classification entries used by this policy.
TC = (0 * 0)nc + (0 * 0)h1 + (0 * 0)ef + (1 * 1)h2 + (1 * 1)l1 + (1 * 1)af + (0 * 0)l2 + (1 *1)be = 4
(three explicit match criteria entries are used to map traffic to each of FC H2, FC L1, and FC AF along with a default classification entry for FC BE)
The total number of meters used = 2 (because FCs use meter 1 and meter 3).
In this example, num-qos-classifiers 4 is used (maximum of (4, (2 * 2))). The use of unicast meter for all traffic-types allows QoS resources to be used efficiently.
If the same policy were used for a SAP in an Epipe service, all traffic is classified to a unicast traffic type, and only unicast meters are used, the following equations are used.
Using the preceding equation for TC calculation, total classification entries used = 4 and meters used = 2.
This example shows that using the same policy for Epipe SAP can lead to inefficient use of resources. Nokia recommends creating a different policy with the required number of resources (that is, with num-qos-classifiers 4).
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, classification entries used per FC, use the following computation.
Because FCh2 uses unicast meter and broadcast meter, so two entries are needed to identify these traffic types explicitly. Another entry is needed to classify multicast and unknown-unicast traffic type to FCh2 and use the default meter 11.
Using the preceding equation for TC calculation, to get the total classification entries used = 12 (three explicit match criteria entries map to each of FC H2, L1, and AF along with a default classification rule for BE).
The number of meters used = 3 (because FCs use only meter 2, meter 3, and meter 11).
In this example, num-qos-classifiers 16 is used (that is, a maximum of (12, (2*3))).
If the same policy were used for a SAP in an Epipe service, all traffic is classified to a unicast traffic type and only unicast meters are used, use the following computations.
Using the preceding equation, the total classification entries used = 4 and meters used = 1.
This example shows that using the same policy for Epipe SAP can lead to inefficient use of resources. Nokia recommends creating a different policy with the required number of resources (that is, with num-qos-classifiers 4).
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, classification entries used per FC us the following computation.
Because this FC uses unicast meter for unicast, multicast, unknown-unicast traffic and broadcast meter for broadcast traffic, two entries are needed.
Using this equation to get the total classification, entries used = 8 ( three explicit match criteria entries map to each of FC H2, L1, and AF along with a default classification rule for BE).
The number of meters used = 2 (because FCs use only meter 2 and meter 3).
In this example, num-qos-classifiers 8 is used (that is, maximum of (8, (2*2))).
If the same policy were used for a SAP in an Epipe service, all traffic is classified to a unicast traffic type and only unicast meters are used, use the following computation.
Using the preceding equation, the total classification entries used = 4 and meters used = 1.
This example shows that using the same policy for Epipe SAP can lead to inefficient use of resources. Nokia recommends creating a different policy with the required number of resources (that is, with num-qos-classifiers 4).
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, the classification entries used per FC are the following.
Because FCh1 uses unicast, broadcast, multicast and unknown-unicast meter, four entries are needed to identify these traffic types explicitly.
Because FCh2 uses unicast meter and broadcast meter, two entries are needed to identify these traffic types explicitly. Another entry is needed to classify multicast and unknown-unicast traffic type to the same FC and use the default meter 11.
Because FCl1 uses only unicast meter, an entry is needed to identify this traffic type explicitly. Another entry is needed to classify broadcast, multicast, and unknown-unicast traffic type to the same FC and use the default meter 11.
Becasue FCaf uses unicast, broadcast and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as the multicast traffic type and uses the same meter.
Using the preceding equation, the total classification entries used = 15 and meters used = 6.
If the same policy were used for a SAP in an Epipe service, and all traffic is classified to a unicast traffic type and only unicast meters are used, the following is used.
Using the preceding equation, the total classification entries used = 5 and meters used = 3 (because all FCs used only meter 1, meter 3 and meter 5).
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, the classification entries used per FC are the following.
Because FCh1 uses unicast, broadcast, multicast, and unknown-unicast meter, four entries are needed to identify these traffic types explicitly.
Because FCh2 uses unicast meter and broadcast meter, two entries are needed to identify these traffic types explicitly. Multicast and unknown-unicast traffic use the same resource as the unicast traffic.
Because FCl1 uses unicast meter and broadcast meter, two entries are needed to identify these traffic types explicitly. Multicast and unknown-unicast traffic use the same resource as the unicast traffic.
Because FCaf uses unicast, broadcast, and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as multicast traffic type and uses the same meter.
Because no explicit meters are configured for FC be, it uses meter 1 for all traffic types and needs one entry to identify these traffic types.
Using the preceding equation, the total classification entries used = 12 and meters used = 5. The num-qos-classifiers can be set to 12 (the minimum value).
If the same policy were used for a SAP in an Epipe service, all traffic is classified to a unicast traffic type and only unicast meters are used, use the following.
Using the preceding equation, the total classification entries used = 5 and meters used = 3 (because all FCs used only meter 1, meter 3, and meter 5). For Epipe service, a policy with num-qos-classifiers set to 6 can be used.
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, compute the classification entries per FC, as follows.
Because FCnc uses unicast, broadcast, and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as the multicast traffic type and uses the same meter.
Because FCh1 uses unicast, broadcast, multicast, and unknown-unicast meter, four entries are needed to identify these traffic types explicitly.
Because FCef uses unicast, broadcast, and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as the multicast traffic type and uses the same meter.
Because FCh2 uses unicast meter and broadcast meter, two entries are needed to identify these traffic types explicitly. Another entry is needed to classify multicast and unknown-unicast traffic types to the same FC and use the default meter 11.
Because FCaf uses unicast, broadcast, and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as the multicast traffic type and uses the same meter.
Using the preceding equation, the total classification entries used = 21 and meters used = 8.
If the same policy were used for a SAP in an Epipe service, and because all traffic is classified to a unicast traffic type and only unicast meters are used, use the following.
Using the preceding equation, the total classification entries used = 7 and meters used = 4.
This example shows that using the same policy for Epipe SAPs can lead to inefficient use of resources. Nokia recommends creating a different policy with the required number of resources (that is, with num-qos-classifiers 8).
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, compute the classification entries per FC as follows.
Because FCnc uses unicast, broadcast, and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as the multicast traffic type and uses the same meter.
Because FCh1 uses unicast, broadcast, multicast, and unknown-unicast meter, four entries are needed to identify these traffic types explicitly.
Because FCef uses unicast, broadcast, and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as the multicast traffic type and uses the same meter.
Because FCh2 uses unicast meter and broadcast meter, two entries are needed to identify these traffic types explicitly. Multicast and unknown-unicast traffic of the same FC use the unicast resources (both meter and classification entry).
Because FCaf uses unicast, broadcast and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as the multicast traffic type and uses the same meter.
Because FCbe uses a single meter for all traffic-types, only a single meter and single entry is needed.
Using the preceding equation, the total classification entries used = 20 and meters used = 7, num-qos-classifiers to use is 20 (the minimum value).
If the same policy were used for a SAP in an Epipe service, because all traffic is classified to a unicast traffic type and only unicast meters are used, use the following.
Using the preceding equation, the total classification entries used = 7 and meters used = 4.
This example shows that using the same policy for Epipe SAP can lead to inefficient use of resources. Nokia recommends creating a different policy with the required number of resources (that is, with num-qos-classifiers 8).
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, use the following to find the classification entries used per FC.
Because FCnc uses unicast, broadcast, and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as multicast traffic type and uses the same meter.
Because FCh1 uses unicast, broadcast, multicast, and unknown-unicast meter, four entries are needed to identify these traffic types explicitly.
Because no meters are explicitly configured, FCef uses the appropriate default that meters all the traffic types (that is, unicast traffic uses unicast meter 1 and broadcast, multicast, and unknown-unicast traffic uses multipoint meter 11).
Because FCh2 uses unicast meter and broadcast meter, two entries are needed to identify these traffic types explicitly. Another entry is needed to classify multicast and unknown-unicast traffic types to the same FC and use the default meter 11.
Because FCaf uses unicast, broadcast, and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as that multicast traffic type and uses the same meter.
Using the preceding equation, the total classification entries used = 20 and meters used = 8.
If the same policy were used for a SAP in an Epipe service, because all traffic is classified to a unicast traffic type and only unicast meters are used, the following is true.
Using the preceding equation, the total classification entries used = 7 and meters used = 4.
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, the following represents the number of classification entries per FC.
Because FCl1 uses unicast meter and multicast meter, an entry is needed to identify these traffic types explicitly. Broadcast and unknown-unicast traffic are also classified using the same entry as multicast and use the same meter.
Becasue FCaf uses unicast meter, an entry is needed to identify these traffic types explicitly. Another entry is needed to classify broadcast, multicast, and unknown-unicast traffic types to the same FC and use the default meter 11.
Using the above equation, the total classification entries used = 8 and meters used = 4.
If the same policy were used for a SAP in an Epipe service, all traffic is classified to a unicast traffic type and only unicast meters are used, so the following is true.
Using the above equation, the total classification entries used = 4 and meters used = 2.
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, the following are the number of classification entries per FC.
Because FCaf uses unicast meter, an entry is needed to identify these traffic types explicitly. Another entry is needed entry to classify broadcast, multicast, and unknown-unicast traffic type to the same FC and use the default meter 11.
Because FCbe uses unicast, broadcast, and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as the multicast traffic type and uses the same meter.
Using the preceding equation, the total classification entries used = 5 and meters used = 4.
If the same policy were used for a SAP in an Epipe service, because all traffic is classified to a unicast traffic type and only unicast meters are used, the following is true.
Using the preceding equation, the total classification entries used = 2 and meters used = 2.
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, the following represents number of classification entries per FC.
Because FCaf uses unicast meter, an entry is needed to identify these traffic types explicitly. Another entry is needed to classify broadcast, multicast, and unknown-unicast traffic types to the same FC and use the default meter 11.
Because FCbe uses unicast, broadcast, and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as the multicast traffic type and uses the same meter.
Using the equation, calculate the total classification entries used by this policy, as follows.
TC = (0 * 0)nc + (0 * 0)h1 + (0 * 0)ef + (0 * 0)h2 + (0 * 0)l1 + (3 * 2)af + (0 * 0)l2 + (1 * 3)be = 9
The number of meters used in this policy = 4.
In this example, num-qos-classifiers 16 is used (that is, a maximum of (9, (2 * 4))).
If the same policy were used for a SAP in an Epipe service, because all traffic is classified to a unicast traffic type and only unicast meters are used, the following is true:
Using the equation, calculate the total classification entries used by this policy, as follows.
TC = (0 * 0)nc + (0 * 0)h1 + (0 * 0)ef + (0 * 0)h2 + (0 * 0)l1 + (3 * 1)af + (0 * 0)l2 + (1 * 1)be = 4
The number of meters used in this policy = 2.
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, the following represents the number of classification entries per FC.
Because FCaf uses unicast meter, an entry is needed to identify these traffic types explicitly. Another entry is needed to classify broadcast, multicast, and unknown-unicast traffic types to the same FC and use the default meter 11.
Becasue FCbe uses unicast, broadcast, and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as the multicast traffic type and uses the same meter.
Using the equation, calculate the total classification entries used by this policy, as follows.
TC = (0 * 0)nc + (0 * 0)h1 + (0 * 0)ef + (0 * 0)h2 + (0 * 0)l1 + (50 * 3)af + (0 * 0)l2 + (1 * 3)be = 153
The number of meters used in this policy = 4.
In this example num-qos-classifiers 256 is used (maximum of (153, (2 * 4)) = 153, rounded to the next multiple of 2, which is 154).
If the same policy were used for a SAP in an Epipe service, because all traffic is classified to a unicast traffic type and only unicast meters are used, the following is true.
Using the equation, calculate the total classification entries used by this policy, as follows.
TC = (0 * 0)nc + (0 * 0)h1 + (0 * 0)ef + (0 * 0)h2 + (0 * 0)l1 + (50 * 1)af + (0 * 0)l2 + (1 * 1)be = 51
The number of meters used in this policy = 2.
For Epipe SAPs, Nokia recommends defining another SAP-ingress policy with num-qos-classifiers 64 (that is, maximum of (51, (2 * 2)) = 51, rounded to the next multiple of 2, which is 52).
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, the following shows the number of classification entries per FC.
Because FCaf uses unicast, broadcast, and multicast meter, three entries are required to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as the multicast traffic type and uses the same meter. Additionally, note that meter 11 is not defined to be a multipoint meter but is used as a normal unicast meter.
Because FCbe uses unicast, broadcast, and multicast meter, three entries are needed to identify these traffic types explicitly. The unknown-unicast traffic type is classified using the same entry as the multicast traffic type and uses the same meter. Additionally, note that meter 11 is not defined to be a multipoint meter but is used as a normal unicast meter.
Using the equation, calculate the total classification entries used by this policy, as follows.
TC = (0 * 0)nc + (0 * 0)h1 + (0 * 0)ef + (0 * 0)h2 + (0 * 0)l1 + (50 * 3)af + (0 * 0)l2 + (1 * 3)be = 153
The number of meters used in this policy = 4. In this example, num-qos-classifiers 154 is used (maximum of (153, (2 * 4)) = 153, rounded to the next multiple of 2, which is 154).
If the same policy were used for a SAP in an Epipe service, because all traffic is classified to a unicast traffic type and only unicast meters are used, the following is true.
Using the equation, calculate the total classification entries used by this policy, as follows.
TC = (0 * 0)nc + (0 * 0)h1 + (0 * 0)ef + (0 * 0)h2 + (0 * 0)l1 + (50 * 1)af + (0 * 0)l2 + (1 * 1)be = 51
The number of meters used in this policy = 2.
For Epipe SAP it is recommended to define another SAP-ingress policy where num-qos-classifiers 52 is used (that is, maximum of (51, (2 * 2)) = 51, rounded to the multiple of 2, which is 52).
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, compute the number of classification entries per FC, as follows.
Using the equation, calculate the total classification entries used by this policy, as follows.
TC = (0 * 0)nc + (0 * 0)h1 + (0 * 0)ef + (0 * 0)h2 + (0 * 0)l1 + (1 * 2)af + (1 * 2)l2 + (0 * 0)be = 4
The number of meters used = 2 (because both FCs use meter 1 and meter 11).
In this example, num-qos-classifiers 4 is used (that is, maximum of (4, (2 * 2))).
If the same policy were used for a SAP in an Epipe service, because all traffic is classified to a unicast traffic type and only unicast meters are used, the following is true.
Using the preceding equation, calculate the total classification entries used = 2 and meters used = 1.
As this example shows, for Epipe SAPs with the same amount of resources allocated, more FCs can be used, if required.
In the preceding example, assuming the policy is attached to a SAP in a VPLS service, compute the number of classification entries per FC, as follows.
Using the equation, calculate the total classification entries used by this policy, as follows.
TC = (0 * 0)nc + (0 * 0)h1 + (0 * 0)ef + (0 * 0)h2 + (0 * 0)l1 + (0 * 0)af + (1 * 2)l2 + (0 * 0)be = 2
The number of meters used = 2 (because default FC uses meter 1 and meter 11).
In this example, num-qos-classifiers 4 is used (that is, maximum of (2, (2 * 2))).
If the same policy were used for a SAP in an Epipe service, because all traffic is classified to a unicast traffic type and only unicast meters are used, the following is true.
Using the preceding equation, total classification entries used = 1 and meters used = 1.
As this example shows, for Epipe SAPs with the same amount of resources allocated, more FCs can be used, if required.
This section provides examples for calculating the amount of resources needed for a service ingress policy when using IP DSCP table-based classification. See Examples: Calculating Resources Required for CAM-based Classification for calculations when CAM-based classification is used.
The examples in this section use the following equations to calculate the value for num-qos-classifiers used in the SAP-ingress QoS policy. See Computation of Resources Used per SAP-ingress Policy for CAM-based Classification for details about these equations.
![]() | Note: The default-fc command uses additional resources, even if all the eight FCs are configured. |
In addition, the examples show how to determine the number of classification entries for each forwarding class. For example, FCh2 (shown below) is the sum of four traffic types: (unicast (U), broadcast (B), multicast (M), and unknown-unicast (U-u)). See Calculating the Number of Classification Entries per FC for more information.
If BUM entries are not explicit and multipoint traffic is expected, meter 11 is used and the "M" traffic type is given a "1".
Consider the following items when calculating the resources required when using IP DSCP table-based classification.
In the preceding example, all eight FCs are configured and eight meters are configured. For an Epipe service, only the unicast traffic-type is identified. This requires one classification entry per FC configured and an additional one for the default-fc assignment, for a total of 9 classification entries.
TC = 1*1 (FC-nc) + 1*1 (FC-h1) + 1*1 (FC-ef) + 1*1 (FC-h2) + 1*1 (FC-l1) + 1*1 (FC-af) + 1*1 (FC-l2) + 1*1 (FC-be) + 1*1 (default-fc) = 9
TP = total meters used is 8
In this example, num-qos-classifiers is set to (maximum (9, (8*2)) = 16.
If the same policy is attached to an IES or VPRN SAP without multicast enabled (VPRN example shown below, IES is similar), the num-qos-classifiers required are the same as that for an Epipe service (that is, 16). The calculations are the same as for an Epipe service.
In the preceding example, all eight FCs are configured and eight meters are configured. In addition, multipoint meter 11 is configured for use. For the VPLS service, four traffic types are identified (unicast and BUM). Because multicast meter 11 is defined, the BUM traffic type for all FCs use meter 11. The number of classification entries required is as follows.
TC = 1*2 (FC-nc) + 1*2 (FC-h1) + 1*2 (FC-ef) + 1*2 (FC-h2) + 1*2 (FC-l1) + 1*2 (FC-af) + 1*2 (FC-l2) + 1*2 (FC-be) + 1*2 (default-fc) = 18
TP = total meters used is 8
In this example, num-qos-classifiers is set to (maximum (18, (8*2)) = 18.
If the same policy is attached to an IES or VPRN service with multicast enabled, the number of resources required is 18 (that is, num-qos-classifiers needs to be set to 18). The calculations are the same as those for a VPLS service (shown above).
In this example, the SAP-ingress policy in Example 2: VPLS Using Unicast and BUM Meter with IES or VPRN Using Multicast is changed to define additional meters and applied to a SAP configured in a VPLS service.
For the VPLS service, four traffic types are identified (unicast and BUM). Because multicast meter 11 is defined, BUM traffic types for all FCs use meter 11 (because the user has not configured an explicit multicast-meter for the FC). The number of classification entries required is determined as shown in the following.
TC = 1*2 (FC-nc) + 1*3 (FC-h1) + 1*3 (FC-ef) + 1*3 (FC-h2) + 1*4 (FC-l1) + 1*3 (FC-af) + 1*3 (FC-l2) + 1*2 (FC-be) + 1*2 (default-fc) = 25
TP = total meters used is 11
In this example, num-qos-classifiers is calculated as (maximum (25, (11*2)) = 25, but is set to 26 after rounding to the next highest even number.
If the same policy is attached to an IES or an VPRN service with multicast enabled, the number of resources required is 18 (that is, num-qos-classifiers needs to be set to 18). This is because for IES and VPRN only unicast and multicast traffic types are supported; broadcast and unknown-unicast traffic types are not supported and do not consume any resources. The calculation is as follows.
TC = 1*2 (FC-nc) + 1*2 (FC-h1) + 1*2 (FC-ef) + 1*2 (FC-h2) + 1*2 (FC-l1) + 1*2 (FC-af) + 1*2 (FC-l2) + 1*2 (FC-be) + 1*2 (default-fc) = 18
TP = total meters used is 8 (meter 20, meter 21, and meter 22 are not used because they are associated with broadcast and unknown-unicast traffic types, which are not supported for IES and VPRN)
Hence, in this example num-qos-classifiers is set to (maximum (18, (8*2)) = 18.
IES service and routed VPLS service configuration is as follows.
The configuration for the DSCP-classification policy associated with the access port where the RVPLS SAP is configured, and that is used for classifying bridged packets, is shown as follows:
For the bridged traffic in a VPLS service, four traffic types are identified (unicast and BUM). Because multicast meter 11 is defined, BUM traffic type for all FCs use meter 11 (note that an explicit multicast-meter for the FC has not been configured). The number of classification entries required is as follows.
TC = 1*2 (FC-nc) + 1*3 (FC-h1) + 1*3 (FC-ef) + 1*3 (FC-h2) + 1*4 (FC-l1) + 1*3 (FC-af) + 1*3 (FC-l2) + 1*2 (FC-be) + 1*2 (default-fc) = 25
TP = total meters used is 11
In this example num-qos-classifiers is set to (maximum (25, (11*2)) = 25), which means 26 after rounding to the next highest even number.
![]() | Note: For routed traffic in the routed VPLS service, only the unicast traffic type is currently supported. This does not change the amount of resources needed because bridged traffic requires higher amount of resources. To reduce the amount of resources, users can dedicate a single meter for BUM traffic from all FCs, as shown in the following example (note that meter 11 is used for all FCs automatically when meter 11 is defined in the policy). |
In the preceding example all, eight FCs are configured and nine meters are configured, with multipoint meter 11 dedicated to all BUM traffic for all FCs in use. For the VPLS service, four traffic-types are identified (unicast and BUM). Because multicast meter 11 is defined, BUM traffic type for all FCs use meter 11. The number of classification entries required is as follows.
TC = 1*2 (FC-nc) + 1*2 (FC-h1) + 1*2 (FC-ef) + 1*2 (FC-h2) + 1*2 (FC-l1) + 1*2 (FC-af) + 1*2 (FC-l2) + 1*2 (FC-be) + 1*2 (default-fc) = 18
TP = total meters used is 9
In this example num-qos-classifiers is set to (maximum (18, (9*2)) = 18.
The IES service and routed VPLS service configuration is as follows.
The configuration for the network port policy for a hybrid port, followed by associating the policy with hybrid port 1/1/3, is shown in the following. This configuration is used for classifying RVPLS SAP bridged packets, and also for classifying IP traffic received and processed in the context of the network port IP interface.
For the bridged traffic in a VPLS, four traffic types are identified (unicast and BUM). Because multicast meter 11 is defined, BUM traffic types for all FCs use meter 11 (note the user has not configured an explicit multicast meter for the FC). The number of classification entries required is as follows.
TC = 1*2 (FC-nc) + 1*3 (FC-h1) + 1*3 (FC-ef) + 1*3 (FC-h2) + 1*4 (FC-l1) + 1*3 (FC-af) + 1*3 (FC-l2) + 1*2 (FC-be) + 1*2 (default-fc) = 25
TP = total meters used is 11
In this example, num-qos-classifiers is calculated as (maximum (25, (11*2)) = 25, but is set to 26 after rounding to the next highest even number.
This example is similar to Example 5: Routed VPLS Service on a Hybrid Port Using Unicast, Broadcast, Multicast and Unknown-unicast for Some FCs, except that FCs in use from the port policy and the override policy are considered. The following configuration shows the policy association with two SAPs configured in the routed VPLS, with one SAP on the access port and the other SAP on the hybrid port.
The IES service and routed VPLS service configurations are as follows.
The configuration of the network port policy for a hybrid port, followed by associating the policy with hybrid port 1/1/3 is shown in the following output example. This configuration is used for classifying RVPLS SAP bridged packets and also for classifying IP traffic received and processed in the context of the network port IP interface.
The configuration of the DSCP classification policy associated with the access port, which is the port where the RVPLS SAP is configured, is shown in the following example. The policy is used for classifying bridged packets.
To determine the resources needed for RVPLS SAP 1/1/3:201 consider the FCs configured in the DSCP classification policy configured in access port 1/1/3 context—there are three FCs (be, af, ef) configured. In addition, consider the FCs configured in the DSCP classification policy configured in the context of IES IP interface—there are three FCs (be, af, ef) configured. The total number of resources for RVPLS SAP 1/1/3:201 is computed as follows using the meter configuration under SAP-ingress policy 24.
TC = 0*2 (FC-nc) + 0*3 (FC-h1) + 1*3 (FC-ef) + 0*3 (FC-h2) + 0*4 (FC-l1) + 1*3 (FC-af) + 0*3 (FC-l2) + 1*2 (FC-be) + 1*2 (default-fc) = 10
TP = total meters used is 4 (meter 11, meter 9, meter 22, and meter 14)
To use the available resources efficiently for the RVPLS SAP 1/1/3:201 a policy with num-qos-classifiers set to (maximum (10, (4*2)) = 10 is required.
To determine the resources needed for RVPLS SAP 1/1/24:201 consider the FCs configured in the network port policy 123, which is associated with network port 1/1/24—all eight FCs are configured. In addition, consider the FCs configured in the DSCP classification policy configured in the context of IES IP interface—three FCs (be, af, ef) are configured. The total number of resources for RVPLS SAP 1/1/24:201 is computed as follows, using the meter configuration under the SAP-ingress policy 24.
TC = 1*2 (FC-nc) + 1*3 (FC-h1) + 1*3 (FC-ef) + 1*3 (FC-h2) + 1*4 (FC-l1) + 1*3 (FC-af) + 1*3 (FC-l2) + 1*2 (FC-be) + 1*2 (default-fc) = 25
TP = total meters used is 11
For RVPLS SAP /1/124:201, a policy is required with num-qos-classifiers in the policy is calculated (maximum (25, (11*2)) = 25, but is set to 26 after rounding to the next highest even number.
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 meter parameters, perform the following.
The following is a sample ingress meter configuration output.
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.
Apply SAP ingress policies to the following service 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 a VPRN service configuration.
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 examples 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 copy and overwrite QoS policies.
The following is sample configuration output.
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.