This chapter provides information about Quality of Service (QoS) policy management.
Note: The terms “meter” and “policer” are used interchangeably in this guide. |
The 7210 SAS devices are designed with ingress and egress QoS mechanisms to support multiple services for each physical port. The 7210 SAS devices provide extensive and flexible capabilities to classify, police, queue, shape, and mark traffic.
Note: Not all QoS capabilities are supported on all 7210 SAS platforms. The following chapters describe what is supported on different 7210 SAS platforms. |
In the Nokia service router service model, a service is provisioned on the provider-edge (PE) equipment. Service data is encapsulated and then sent in a service tunnel to the far-end Nokia service router where the service data is delivered.
The operational theory of a service tunnel is that the encapsulation of the data between the two Nokia service routers behave like a Layer 2 path to the service data; however, the data is really traversing an IP or IP/MPLS core. The tunnel from one edge device to the other edge device is provisioned with encapsulation, and the services are mapped to the tunnel that most appropriately supports the service needs.
The 7210 SAS supports the following FCs, internally named: Network-Control, High-1, Expedited, High-2, Low-1, Assured, Low-2, and Best-Effort. See Forwarding classes for more information about the FCs.
The 7210 SAS supports the use of different types of QoS policies to handle the specific QoS needs at each point in the service delivery model within the device. QoS policies are defined in a global context in the 7210 SAS and only take effect when the policy is applied to an entity.
QoS policies are uniquely identified with a policy ID number or name. Typically, Policy ID 1 or Policy ID “default” is reserved for the default policy, which is used if no policy is explicitly applied. There are a few instances where the default QoS policy uses a different ID.
The QoS policies supported on the 7210 SAS can be divided into the following main types:
When configured to operate in access-uplink mode, 7210 SAS-T QoS policies are applied on service ingress, access port egress, and access-uplink port ingress and egress. These policies allow users to configure the following:
Several types of QoS policies exist:
Service ingress, access egress, and network QoS policies are defined with a scope of either template or exclusive. Template policies can be applied to multiple entities (such as SAPs and ports); exclusive policies can only be applied to a single entity.
One service ingress QoS policy can be applied to a specific SAP. An access egress policy can be applied to an access port. One access egress QoS policy can be applied to the access port. One network QoS policy can be applied to an access-uplink port when operating in access-uplink mode. A network QoS policy defines both ingress and egress behavior. One network queue policy can be applied to an access-uplink port. If no QoS policy is explicitly applied to a SAP, port, or interface, a default QoS policy is applied.
The following table describes the major functions performed by the QoS policies.
Note: Not all policies are supported on all platforms. See the following sections and chapters for more information. |
Policy type | Applied at… | Description | Section |
Service Ingress | SAP ingress |
| |
Access Egress | Access port |
| |
Network | Access-uplink port |
| |
Network Queue | Access-uplink port |
| |
Slope | Access ports and access-uplink ports |
| |
Port scheduler | Access ports and access-uplink ports |
|
QoS policies are applied on service ingress, access port egress, network port ingress and egress, and on network IP interface ingress when configured to operate in network mode.
These policies allow user to configure the following:
Several types of QoS policies exist:
Service ingress, access egress, and network QoS policies are defined with a scope of either template or exclusive. Template policies can be applied to multiple entities (such as SAPs and ports) whereas exclusive policies can only be applied to a single entity.
One service ingress QoS policy can be applied to a specific SAP access egress policy. One access egress QoS policy can be applied to the access port. One network QoS policy can be applied to a specific IP interface or network port, based on the type of network QoS policy, when operating in network mode. One network QoS policy can be applied to an access-uplink port when operating in access-uplink mode. A network QoS policy defines both ingress and egress behavior. One network queue policy can be applied to the network port or a access-uplink port.
If no QoS policy is explicitly applied to a SAP, port, or interface, a default QoS policy is applied.
The following table describes the major functions performed by QoS policies.
Note: Not all policies are supported on all platforms. See the following sections and chapters for more information. |
Policy type | Applied at… | Description | Section |
Service Ingress | SAP ingress |
| |
Access Egress | Access port |
| Service egress QoS policies on 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 |
Network (of type “ip-interface”) | IP interface |
| |
Network (of type “port”) | Network and hybrid ports |
| |
Network Queue | Network ports and hybrid ports |
| |
Slope | Access ports, network ports and hybrid ports |
| |
Port scheduler | Access ports, Network ports and Hybrid ports |
| |
Remark (Only on 7210 SAS-T) | Network ports, access ports, and hybrid ports |
|
QoS policies are applied on service ingress, access port egress, network port ingress and egress, and network IP interfaces ingress when configured to operate in network mode.
These policies allow users to configure the following:
Several types of QoS policies exist:
Note: This policy is available only when the node is operating in sap-scale mode high. Refer to the 7210 SAS-Mxp, S, Sx, T Services Guide and 7210 SAS-Mxp, R6, R12, S, Sx, T Basic System Configuration Guide for more information about the sap-scale-mode command. |
The 7210 SAS-Mxp provides an option to use port-based queuing on access ports. This is a per-node configuration option and is mutually exclusive to the use of SAP-based egress queues (configured through service egress policies). When enabled, all SAPs on the access port share a set of 8 (eight) queues configured on the port and the access egress policy is used to define the queue parameters for port-based queues.
Service ingress, service egress, access egress, and network QoS policies are defined with a scope of either template or exclusive. Template policies can be applied to multiple entities (such as SAPs and ports); exclusive policies can only be applied to a single entity.
The following policies are supported:
If no QoS policy is explicitly applied to a SAP, port, or interface, a default QoS policy is applied.
The 7210 SAS-Mxp can operate in either the low SAP scale mode or high SAP scale mode. In low SAP scale mode, SAP and service scaling is limited by the amount of CAM resources available for the SAP-ingress policy (both classification and meters). In the high SAP scale mode, SAP and service scaling is significantly higher compared to the low SAP scale mode and use table-based classification with ingress service meters. The use of network port policies remains unchanged when the system is operating in the high SAP scale mode.
SAPs configured on ports operating in hybrid mode cannot be configured to use access ingress QoS policies. Therefore, the access-ingress-qos port-mode option is not supported for ports configured in hybrid mode.
The following QoS policies are supported on access ports and SAPs in the low SAP scale mode:
The following QoS policies are supported on access ports and SAPs in the high SAP scale mode:
A summary of the major functions performed by the QoS policies is listed in the following table.
Note: Not all policies are supported on all platforms. See the following sections and chapters for more information. |
Policy type | Applied at… | Description | Section |
Service Ingress | SAP ingress |
| |
Service Egress | SAP Egress |
| Service egress QoS policies on 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 |
Access Ingress | Access Port |
| |
Access Egress | Access Port |
| |
Network (of type’ip-interface’) | IP interface |
| |
Network (of type’port’) | Network Ports and Hybrid Ports |
| |
Network Queue | Network Ports and Hybrid Ports |
| |
Slope | Access ports, Network ports and Hybrid ports |
| |
Remark | Network Port, Access ports and Hybrid Ports |
|
7210 SAS-R6 and 7210 SAS-R12 QoS policies are applied on service ingress, service egress, access port egress, network port ingress and egress, and network IP interface ingress. These policies allow users to configure the following:
The 7210 SAS-R6 IMM-b, 7210 SAS-R12 IMM-b, 7210 SAS-R6 IMM-c, and 7210 SAS-R12 IMM-c support the following types of QoS policies:
Note: Access ingress policies are available only when the node is operating in sap-scale mode high. Refer to the 7210 SAS-Mxp, S, Sx, T Services Guide and 7210 SAS-Mxp, R6, R12, S, Sx, T Basic System Configuration Guide for more information about this command. |
Service ingress, access ingress, service egress, access egress, and network QoS policies are defined with a scope of either template or exclusive. Template policies can be applied to multiple entities (such as SAPs and ports); exclusive policies can only be applied to a single entity.
One service ingress and one service egress QoS policy can be applied to a specific SAP access egress policy, which can then be applied to an access port. One network QoS policy can be applied to a specific IP interface or network port based on the type of network QoS policy. A network QoS policy defines both ingress and egress behavior. One network queue policy can be applied to the network port.
If no QoS policy is explicitly applied to a SAP, port, or interface, a default QoS policy is applied.
The 7210 SAS-R6 and 7210 SAS-R12 can operate in either the low SAP scale mode or high SAP scale mode. In low SAP scale mode, SAP and service scaling is limited by the amount of CAM resources available for the SAP ingress policy (both classification and meters). In the high SAP scale mode, SAP and service scaling are significantly higher compared to the low SAP scale mode and use access port ingress policies. The use of network port policies remains unchanged when the system is operating in high SAP scale mode; however, the high SAP scale mode assumes that the user requires Layer 2 uplinks, and uses access port ingress and egress policies on those uplinks.
SAPs configured on ports operating in hybrid mode cannot be configured to use access ingress QoS policies. Therefore, the access-ingress-qos port-mode option is not supported for ports configured in hybrid mode.
The following QoS policies are supported on access ports and SAPs in the low SAP scale mode:
The following QoS policies are supported on access ports and SAPs in the high SAP scale mode:
The following table describes the major functions performed by QoS policies for 7210 SAS-R6 and 7210 SAS-R12.
Policy type | Applied at | Description | Section |
Service ingress | Access SAP ingress |
| |
Service egress | SAP egress |
| Service egress QoS policies on 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 |
Access Ingress | Access Port |
| |
Access egress | Access port | In port-based egress queuing mode, the access egress QoS policy supports the following:
In SAP-based egress queuing mode, access egress is used to configure the FC-to-remarking map values | |
Network (type = ip-interface) | Network IP interface |
| |
Egress rate | Access and network port |
| |
Network (type = port) | Network and hybrid ports |
| |
Network queue | Network and hybrid ports |
| |
Queue management policies | Queues at service ingress, service egress, and network egress |
| Queue management policies for 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 |
Remark | SAP egress, network egress (port and IP interface) |
|
QoS policies are applied on service ingress, access port egress, network port ingress and egress, and network IP interfaces ingress when configured 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE operates with MPLS uplinks.
These policies allow users to configure the following:
There are several types of QoS policies:
Note: This policy is available only when the node is operating in sap-scale mode high. Refer to the 7210 SAS-Mxp, S, Sx, T Services Guide and 7210 SAS-Mxp, R6, R12, S, Sx, T Basic System Configuration Guide for more information about the sap-scale-mode command. |
The characteristics of the FC meters, including the number of FC meters for unicast traffic and the meter characteristics (like CIR, PIR, and so on) are defined within the policy. Each FC can be associated with different unicast parameters. A service ingress QoS policy also defines up to three (3) meters per FC to be used for multipoint traffic for multipoint services. Up to 32 meters, in total, are supported per Service ingress QoS policies.
In the case of the VPLS, the following types of forwarding are supported (which is not to be confused with FCs): unicast, multicast, broadcast, and unknown. Multicast, broadcast, and unknown types are flooded to all destinations within the service, while the unicast forwarding type is handled point-to-point in the service.
The FCs are mapped to 16 queues at the port level (8 for unicast and 8 for multicast). FC-to-queue mapping is static and not configurable. The number of queues is not user configurable and the software allocates 16 queues at the port level. An access egress policy also defines the remarking of the FC-to-packet header bits (for example, IEEE 802.1p bits in the Layer 2 VLAN header, and others.).
The following applies to the use of QoS policies on hybrid ports:
Note: If DSCP remarking or both is specified, the DSCP field is not marked for the traffic sent out of the Layer 2 SAPs. |
Service ingress, access egress, and network QoS policies are defined with a scope of either template or exclusive. Template policies can be applied to multiple entities (such as SAPs and ports); exclusive policies can be applied to only a single entity. One service ingress QoS policy can be applied to a specific SAP.
An access ingress policy is applied to the physical port instead of the SAP; the policy applies to all SAPs configured on the specific access port. At ingress, the access ingress QoS policy uses dot1p, DEI with dot1p, or IP DSCP values to assign a forwarding class and profile to traffic, which facilitates the classification of traffic received on the access port. The FC is associated with meters at ingress. An access ingress QoS policy allows the user to define up to one meter per forwarding class for unicast traffic, and up to one meter per forwarding class for multipoint traffic (that is, broadcast, multicast, and unknown-unicast) for multipoint services. The system supports up to 16 meters per access ingress QoS policy.
An access egress policy can be applied to an access port. One access egress QoS policy can be applied to the access port. One network QoS policy can be applied to a specific IP interface, network port, or hybrid port based on the type of network QoS policy. A network QoS policy defines both ingress and egress behavior. One network queue policy can be applied to the network port or hybrid port. If no QoS policy is applied to a SAP, port, or interface, a default QoS policy is applied.
The 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE can operate in either the low SAP scale mode or high SAP scale mode. In low SAP scale mode, SAP and service scaling is limited by the amount of CAM resources available for the SAP ingress policy (both classification and meters). In the high SAP scale mode, SAP and service scaling are significantly higher compared to the low SAP scale mode and use access port ingress policies. The use of network port policies remains unchanged when the system is operating in high SAP scale mode; however, the high SAP scale mode assumes that the user requires Layer 2 uplinks, and uses access port ingress and egress policies on those uplinks.
SAPs configured on ports operating in hybrid mode cannot be configured to use access ingress QoS policies. Therefore, the access-ingress-qos port-mode option is not supported for ports configured in hybrid mode.
The following QoS policies are supported on access ports and SAPs in the low SAP scale mode:
The following QoS policies are supported on access ports and SAPs in the high SAP scale mode:
The following table describes the major functions performed by QoS policies.
Policy type | Applied at… | Description | Section |
Service ingress | SAP ingress |
| |
Access egress | Access port |
| Access egress QoS policies on 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-Sx 10/100GE |
Access Ingress | Access Port |
| |
Network (of type “ip-interface”) | IP interface |
| |
Network (of type “port”) | Network and hybrid ports |
| |
Network queue | Network ports and hybrid ports |
| |
Slope | Access ports, network ports, and hybrid ports |
| |
Port scheduler | Access ports, network ports, and hybrid ports |
| |
Remark | Network port, access ports, and hybrid ports |
|
The QoS mechanism within the 7210 SAS is specialized for the type of traffic on the interface. For customer interfaces, service ingress and access service egress traffic exists, and for IP interfaces, network ingress and network egress traffic exists (as shown in the following figure).
When operating in access-uplink mode, the QoS mechanisms available are similar to network mode, except that network ingress and network egress traffic is associated with access-uplink interfaces instead of network IP interface or network ports (as shown in the following figure).
The 7210 SAS uses QoS policies applied to a SAP, a network port, access port, or access-uplink port to define queuing, queue attributes, meter/policer attributes and QoS marking interpretation.
The 7210 SAS supports the following types of network and service QoS policies: Network QoS policies in network mode, Network queue QoS policies, Service ingress QoS policies, and Service egress QoS policies on 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12.
The following applies to QoS policies configured in network mode.
Network QoS policies of the ip-interface type define ingress FC meters and map traffic to those meters for IP interfaces. When a network QoS policy is created, it always has two meters defined that cannot be deleted: one for the unicast traffic and one for the multipoint traffic. These meters exist within the definition of the policy. The meters are used by the hardware only when the policy is applied to an IP interface. This policy also defines the FC to EXP bit marking, on the egress mode.
A network QoS policy defines both the ingress and egress handling of QoS on the network IP interface and network port. The following functions are defined for a network policy of the ip-interface type:
Note: See Remark policies for more information about MPLS EXP, IP DSCP, and dot1p marking using network QoS policies. |
The required elements to be defined in a network QoS policy are:
Optional network QoS policy elements include:
Network policy ID 2 is reserved as the default network QoS policy of the ip-interface type. The default policy cannot be deleted or changed.
Default network QoS policy 2 is applied to all IP interfaces that do not have another network QoS policy assigned.
The network QoS policy applied at network egress (for example, on an IP interface) determines how or whether the profile state is marked in packets transmitted to the service core network. If the profile state is marked in the service core packets, out-of-profile packets are preferentially dropped over in-profile packets at congestion points in the core network. For network egress, traffic remarking in the network QoS policy is disabled. The following table lists the default mapping of FC-to-EXP values.
FC-ID | FC name | FC label | Egress EXP marking | |
In-profile | Out-of-profile | |||
7 | Network Control | nc | 111 - 7 | 111 - 7 |
6 | High-1 | h1 | 110 - 6 | 110 - 6 |
5 | Expedited | ef | 101 - 5 | 101 - 5 |
4 | High-2 | h2 | 100 - 4 | 100 - 4 |
3 | Low-1 | l1 | 011 - 3 | 010-2 |
2 | Assured | af | 011-3 | 010 - 2 |
1 | Low-2 | l2 | 001 - 1 | 001 - 1 |
0 | Best Effort | be | 000 - 0 | 000 - 0 |
For network ingress, the following table lists the default mapping of EXP values to FC and profile state for the default network QoS policy. Color-aware policing is supported on network ingress.
EXP value | FC ingress | Profile |
0 | be | Out |
1 | l2 | In |
2 | af | Out |
3 | af | In |
4 | h2 | In |
5 | ef | In |
6 | h1 | In |
7 | nc | In |
Network QoS policy of the port type defines ingress FC meters and maps traffic to the meters for only IP traffic received on network and hybrid ports. When a network policy of this type is created, it has a single unicast meter that cannot be deleted. These meters exist within the definition of the policy. The meters are instantiated in hardware only when the policy is applied to a network port. This policy also defines the FC-to-DSCP or dot1p marking used for packets sent out through that port.
A network QoS policy of the port type defines both the ingress and egress handling of QoS on the network port.
The following functions are defined:
The following are the required elements defined in a network QoS policy of the port type:
Optional network QoS policy elements include the following:
Network policy ID 1 is reserved as the default network QoS policy of the port type. The default policy cannot be deleted or changed.
The default network QoS policy is applied to all network ports that do not have another network QoS policy assigned.
The following table lists the default mapping of FC-to-dot1p and DSCP values.
FC-ID | FC name | FC label | Egress DSCP marking | Egress dot1p marking | ||
In-profile | Out-of-profile | In-profile | Out-of-profile | |||
7 | Network Control | nc | nc2 | nc2 | 111 - 7 | 111 - 7 |
6 | High-1 | h1 | nc1 | nc1 | 110-6 | 110-6 |
5 | Expedited | ef | ef | ef | 101-5 | 101-5 |
4 | High-2 | h2 | af41 | af41 | 100-4 | 100-4 |
3 | Low-1 | l1 | af21 | af22 | 011-3 | 010-2 |
2 | Assured | af | af11 | af12 | 011-3 | 010-2 |
1 | Low-2 | l2 | cs1 | cs1 | 001-1 | 001-1 |
0 | Best Effort | be | be | be | 000-0 | 000-0 |
The following table lists the default mapping of dot1p or DSCP values to FC and profile state for the default network QoS policy of the port type for network ingress. Color-aware policing is supported on network ingress.
DSCP value | Dot1p value | FC ingress | Profile |
be | 0 | be | Out |
cs1 | 1 | l2 | In |
af12 | 2 | af | Out |
af11 | 3 | af | In |
af41 | 4 | h2 | In |
ef | 5 | ef | In |
nc1 | 6 | h1 | In |
nc2 | 7 | nc | In |
Network QoS policies define ingress FC meters and map traffic to the meters for access-uplink ports. A network QoS policy always has two meters/policers defined that cannot be deleted, one for the unicast traffic and one for multipoint traffic. These meters exist within the definition of the policy. The meters are instantiated in hardware only when the policy is applied to an access-uplink port. The policy also defines the FC-to-priority bit marking, on egress.
A network QoS policy defines both the ingress and egress handling of QoS on the access-uplink ports. The following functions are defined:
The following are the required elements defined in a network QoS policy:
Optional network QoS policy elements include the following:
Network policy ID 1 is reserved as the default network QoS policy which cannot be deleted or changed. The default network QoS policy is applied to all access-uplink ports that do not have another network QoS policy assigned. The network QoS policy applied at network egress (for example, on an access-uplink port) determines how or whether the profile state is marked in packets transmitted into the service core network.
If the profile state is marked in the service core packets, out-of-profile packets are preferentially dropped over in-profile packets at congestion points in the core network. For network egress, traffic remarking in the network QoS policy is always enabled. The following table lists the default mapping of FC-to-dot1p values.
FC-ID | FC Name | FC Label | DiffServ Name | Egress dot1p marking | |
In-profile | Out-of-profile | ||||
7 | Network Control | nc | NC2 | 111-7 | 111-7 |
6 | High-1 | h1 | NC1 | 110-6 | 110-6 |
5 | Expedited | ef | EF | 101-5 | 101-5 |
4 | High-2 | h2 | AF4 | 100-4 | 100-4 |
3 | Low-1 | l1 | AF2 | 011-3 | 010-2 |
2 | Assured | af | AF1 | 011-3 | 010-2 |
1 | Low-2 | l2 | CS1 | 00-1 | 001-1 |
0 | Best Effort | be | BE | 000-0 | 000-0 |
For network ingress, the following table lists the default mapping of dot1p values to FC and profile state for the default network QoS policy. Color-aware policing is supported on ingress for access-uplink ports.
dot1pvalue | FC ingress | Profile |
0 | be | Out |
1 | l2 | In |
2 | af | Out |
3 | af | In |
4 | h2 | In |
5 | ef | In |
6 | h1 | In |
7 | nc | In |
This section provides information about network queue QoS policies.
In the network mode of operation, network queue policies define the network FC queue characteristics. Network queue policies are applied on egress on network and hybrid ports for 7210 SAS-Mxp, 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T operating in network mode. The system allocates a fixed number of queues for the network port, and FCs are mapped to the queues. All policies use a fixed number of queues, like the default network queue policy.
The following is the number of queues allocated for a network queue policy:
On 7210 SAS-Mxp, 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T, the network queues on hybrid ports are used for MPLS, IP, and SAP traffic sent out of IP interfaces and SAPs configured on hybrid ports.
The following queue characteristics can be configured on a per-FC basis:
Network queue policies are identified with a unique policy name, which conforms to the standard 7210 SAS alphanumeric naming conventions. The system default network queue policy is named “default” and cannot be edited or deleted.
Note: CBS and MBS values are system-defined and cannot be provisioned by the user on the 7210 SAS-R6 IMM-c, 7210 SAS-R12 IMM-c, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T. |
The following table lists the default network queue policy definition for the 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T configured in network mode.
Forwarding class | Queue | Definition |
Network-Control (nc) | Queue 8 |
|
High-1 (h1) | Queue 7 |
|
Expedited (ef) | Queue 6 |
|
High-2 (h2) | Queue 5 |
|
Low-1 (l1) | Queue 4 |
|
Assured (af) | Queue 3 |
|
Low-2 (l2) | Queue 2 |
|
Best-Effort (be) | Queue 1 |
|
The following table lists the default network queue policy definition for the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 configured in network mode.
Forwarding class | Queue | Definition |
Network-Control (nc) | Queue 8 |
|
High-1 (h1) | Queue 7 |
|
Expedited (ef) | Queue 6 |
|
High-2 (h2) | Queue 5 |
|
Low-1 (l1) | Queue 4 |
|
Assured (af) | Queue 3 |
|
Low-2 (l2) | Queue 2 |
|
Best-Effort (be) | Queue 1 |
|
In access-uplink mode of operation, network queue policies are applied at egress of access-uplink ports for 7210 SAS-T devices operating in access-uplink mode. The system allocates 8 (eight) queues for the network port and FCs are mapped to the 8 (eight) queues. All policies uses 8 (eight) queues, like the default network queue policy.
The following queue characteristics can be configured on a per-FC basis:
Network queue policies are identified with a unique policy name, which conforms to the standard 7210 SAS alphanumeric naming conventions. The system default network queue policy is named “default” and cannot be edited or deleted. CBS values cannot be provisioned. The following table lists the default network queue policy definition in access-uplink mode.
Forwarding class | Queue | Definition |
Network-Control (nc) | Queue 8 |
|
High-1 (h1) | Queue 7 |
|
Expedited (ef) | Queue 6 |
|
High-2 (h2) | Queue 5 |
|
Low-1 (l1) | Queue 4 |
|
Assured (af) | Queue 3 |
|
Low-2 (l2) | Queue 2 |
|
Best-Effort (be) | Queue 1 |
|
Service ingress QoS policies define ingress service FC meters and map flows to the meters. When a service ingress QoS policy is created, it has a single meter defined that cannot be deleted and is used for all the traffic (both unicast and multicast traffic). These meters exist within the definition of the policy, but are instantiated in hardware only when the policy is applied to a SAP. In the case where the service does not have multipoint traffic, the multipoint meters are not instantiated.
In the simplest service ingress QoS policy, all traffic is handled as a single flow and mapped to a single meter, including all flooded traffic. The required elements to define a service ingress QoS policy are the following:
Optional service ingress QoS policy elements include the following:
The following options are available when using resources for classification and policing:
Each meter can have unique meter parameters to allow individual policing of the flow mapped to the FC. The following figure shows service traffic being classified into three different FCs.
Mapping a flow to an FC is controlled by comparing each packet to the match criteria in the QoS policy. The ingress packet classification to FC requires a provisioned classification policy.
When using CAM-based classification on 7210 SAS devices, at SAP ingress users have an option to use either MAC criteria or IP criteria, or both IPv4 and MAC criteria to allow users to use the available CAM classification resources effectively.
The following options are available:
Among the preceding supported criteria, the following can be configured in a single policy:
Note: When specifying both MAC and IP criteria in a SAP ingress policy, only an IPv6 DSCP match is allowed. Other IPv6 fields, such as src-address and dst-address, are not allowed. |
In addition to the preceding list of classification rules, the user can set the DEI bit for identifying the ingress profile and enabling color-aware policing. See Discard eligibility indicator-based (DEI-based) classification and marking and Service ingress QoS policies for more information. The packet fields that can be used as match criteria for SAP ingress classification are described in Table 19 and Table 20.
Note: To determine the resource allocation required for each of these different criteria, see Service ingress QoS policies. |
The IP and MAC match criteria can be very basic or quite detailed. IP and MAC match criteria are constructed using policy entries. An entry is identified by a unique, numerical entry ID. A single entry cannot contain more than one match value for each match criteria. Each match entry has an action that specifies the FC of packets that match the entry.
The entries are evaluated in numerical order based on the entry ID, from the lowest to highest ID value. The first entry that matches all match criteria has its action performed.
Match criteria | Description |
IP criteria | IP DSCP value/mask and IP Precedence value (available for SAPs in VPLS, VLL, PBB Epipe I-SAP, PBB VPLS I-SAP, IES and VPRN, and R-VPLS services) |
IP source and mask, IP destination and mask, IP protocol, TCP/UDP source port, TCP/UDP destination port, (available only for SAPs in VPLS, VLL, PBB Epipe I-SAP, PBB VPLS I-SAP, IES and VPRN services) | |
IPv6 criteria | IP DSCP value/mask and IP Precedence value (available for SAPs in VPLS, VLL, PBB services) |
IPv6 128-bit source and mask, IPv6 128-bit destination and mask, IP protocol/next-header, TCP/UDP source port, TCP/UDP destination port, (available only for SAPs in VPLS, VLL, PBB Epipe I-SAP,PBB VPLS I-SAP) | |
MAC criteria | IEEE 802.1p/dot1p value/mask, Source MAC address/mask, Destination MAC address/mask, EtherType Value/Mask (available for VLL, VPLS, PBB (Epipe I-SAP, VPLS I-SAP, B-SAP), IES, VPRN, and R-VPLS services) |
Match criteria | Description |
IP criteria | IP DSCP value/mask and IP Precedence value (available for access SAPs in VPLS, VLL, IES, and R-VPLS services) |
IP source and mask, IP destination and mask, IP protocol, TCP/UDP source port, TCP/UDP destination port, (available only for access SAPs in VPLS, VLL, and IES services) | |
IPv6 criteria | IP DSCP value/mask and IP Precedence value (available for SAPs in VPLS, and VLL services) |
IPv6 128-bit source and mask, IPv6 128-bit destination and mask, IP protocol/next-header, TCP/UDP source port, TCP/UDP destination port, (available only for SAPs in VPLS and VLL services) | |
MAC criteria | IEEE 802.1p/dot1p value/mask, Source MAC address/mask, Destination MAC address/mask, EtherType Value/Mask (available for VLL, VPLS, IES, and R-VPLS services) |
The following table lists the MAC match criteria that can be used for an Ethernet frame, which depends on the frame format.
Frame format | Description |
802.3 | IEEE 802.3 Ethernet frame. Only the source MAC, destination MAC and IEEE 802.1p value are compared for match criteria. |
Ethernet-II | Ethernet type II frame where the 802.3 length field is used as an Ethernet type (Etype) value Etype values are two byte values greater than 0x5FF (1535 decimal). |
The following table lists the criteria that can be matched for the various MAC frame types.
Frame format | Source MAC | Dest MAC | IEEE 802.1p value | Etype value |
802.3 | Yes | Yes | Yes | No |
ethernet-II | Yes | Yes | Yes | Yes |
Service ingress QoS policy ID 1 is reserved for the default service ingress policy. The default policy cannot be deleted or changed.
The default service ingress policy is implicitly applied to all SAPs that do not have another service ingress policy assigned. In the default policy, no queues are defined. All traffic is mapped to the default FC, which uses one meter by default. The following table lists the characteristics of the default policy.
Item | Definition |
Meter 1 | 1 (one) meter all unicast traffic:
|
Default FC (be) | 1 (one) flow defined for all traffic:
|
When using CAM-based classification and policing, available ingress CAM hardware resources can be allocated as needed, for use with different QoS classification match criteria. By default, the system allocates a single meter and 2 classification entries, so that all traffic is mapped to a single FC and the FC uses a single meter. Users can modify the resource allocation based on the need to scale the number of entries or the number of associations (that is, the number of SAPs using a policy that uses a particular match criterion).
If no resources are allocated to a particular match criterion used in the policy, the association of that policy to a SAP fails. Allocation of classification entries also allocates meter resources, which are used to implement the per-FC per-traffic type policing function. See Resource allocation for service ingress QoS policies using CAM-based classification for information about resource usage and allocation to SAP ingress policies.
The 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 provide an option to use table-based classification using either IP DSCP or dot1p classification to assign both an FC and profile on SAP ingress for use with color-aware meters. See Table-based classification using dot1p and IP DSCP for assigning FC and profile on SAP ingress for the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 for more information.
Hierarchical ingress policing allows users to specify the amount of traffic admitted into the system per SAP. It also allows users to share the available bandwidth per SAP among the different FCs of the SAP. For example, users can allow packets classified as Internet data to use the entire SAP bandwidth when other FCs do not have traffic.
Hierarchical ingress policing provides an option to configure a SAP aggregate policer per SAP on SAP ingress. Users should configure the PIR and, optionally, the burst size of the aggregate policer.
The aggregate policer monitors the traffic on different FCs and determines whether the packet is forwarded to an identified profile or dropped. The final behavior of the packet is based on the operating rate of the following items:
Refer to the command description of aggregate-meter-rate command in the 7210 SAS-Mxp, S, Sx, T Services Guide for information about the final color assigned of the packet.
The meter mode “trtcm2” (RFC 4115) is used only on SAP ingress. When the SAP aggregate policer is configured, the per FC policer can be only configured in “trtcm2” mode. The meter modes “srtCM” and “trtcm1” (formerly “trtcm”, as per RFC 2698) are used in the absence of an aggregate meter.
Note: Before using a per-SAP aggregate meter/policer, meter resources must be allocated using the config system resource-profile ingress-internal-tcam sap-aggregate-meter command.When the amount of resources allocated for a SAP aggregate meter is changed, the node must be rebooted. The amount of resources allocated for this feature determines the number of SAPs that can use the aggregate meter/policer. Refer to the “System Resource Allocation” section of the 7210 SAS-Mxp, R6, R12, S, Sx, T Basic System Configuration Guide for more information. |
Service egress queues are implemented at the transition from the service core network to the service access network and are available when SAP-based egress queues and shaping is enabled by using the configure>system>resource-profile>qos>no port-scheduler-mode command on the 7210 SAS-Mxp and the configure>system>global-resource-profile>qos>no port-scheduler-mode command on the 7210 SAS-R6 IMM-b and 7210 SAS-R12 IMM-b. The advantages of per-service queuing before transmission into the access network are:
Note:
|
The sub-rate capabilities and per-service scheduling control are required to make multiple services per physical port possible. Without egress shaping, it is not possible to support more than one service per port with QoS differentiation among services. There is no way to prevent service traffic from bursting to the available port bandwidth and starving other services.
For accounting purposes, per-service statistics can be logged. When statistics from service ingress queues are compared with service egress queues, the ability to conform to per-service QoS requirements within the service core can be measured.
Service egress QoS policies define egress queues and map FC flows to queues. The system allocates 8 (eight) queues to service egress by default. To define a basic egress QoS policy, the following are required:
The optional service egress QoS policy elements include specifying a remark policy that defines IEEE 802.1p priority value remarking based on FC.
The user has an option to use SAP-based marking. With SAP-based marking the remark policy defined in the SAP egress policy associated with each SAP is used to mark the packets egressing out of SAP if marking is enabled. See the Service egress policies on 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 and the Remark policies for more information about marking behavior and the available options. The user can also enable port-based marking, in which case the remark policy defined in the access egress policy associated with the access port determines the marking values for all the SAPs defined on the port. See Access egress QoS policies on 7210 SAS-Mxp for more information.
Note:
|
Each queue in a policy is associated with one of the FCs. Each queue can have individual queue parameters allowing individual rate shaping of the FCs mapped to the queue. The FC per service egress packet is determined at ingress. If the packet ingressed the service on the same node, the service ingress classification rules determine the FC of the packet. If the packet is received, the FC is marked in the tunnel transport encapsulation.
The FC-to-queue map is fixed, and the queue priority is determined by the queue number, with the higher queue number having the higher priority. The user can configure a queue to be a strict queue to change the scheduling behavior for that queue. See Schedulers on 7210 SAS-Mxp and Schedulers on 7210 SAS-R6 and 7210 SAS-R12 for more information.
Note: On 7210 SAS-Mxp, only unicast traffic sent out of RVPLS SAPs uses per-SAP egress queues. BUM traffic sent out of RVPLS SAPs uses per-port egress queues. |
Service egress QoS policy ID 1 is reserved as the default service for those that do not have another service egress policy explicitly assigned. The following table lists the characteristics of the default policy.
Characteristic | Item | Definition |
Queues | Queue 1-8 | 1 (one) queue defined for each traffic class |
Network-Control (nc) | Queue 8 |
|
High-1 (h1) | Queue7 |
|
Expedited (ef) | Queue 6 |
|
High-2 (h2) | Queue 5 |
|
Low-1 (l1) | Queue 4 |
|
Assured (af) | Queue 3 |
|
Low-2 (l2) | Queue 2 |
|
Best-Effort (be) | Queue 1 |
|
This section describes the access ingress QoS policies supported on the 7210 SAS-Mxp, 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-Sx/S 1/10GE (standalone), and 7210 SAS-Sx 10/100GE (standalone).
An access ingress QoS policy defines the ingress QoS processing for packets received on the access port when the configure port ethernet access-ingress-qos-mode command is set to port-mode.
When the access-ingress-qos-mode command is set to sap-mode, no access ingress QoS policy can be attached to the port. When the access-ingress-qos-mode command is set to port-mode, access ingress policy 1 is attached by default, and this policy can be replaced with a user-defined access ingress QoS policy.
The access ingress QoS policy defines the ingress classification rule that uses dot1p and IP DSCP values from the packet header to map traffic flows to up to eight (8) FCs and assign a profile at ingress. In addition, an option exists to use DEI with dot1p classification for color assignment. Each FC can be associated with up to two (2) meters: one meter for unicast traffic and another for multipoint traffic (that is, broadcast, multicast and unknown-unicast traffic). The user can configure meter characteristics, such as CIR and PIR rates, committed burst size (CBS) and maximum burst size (MBS), and so on.
Define the following to configure a basic access ingress QoS policy:
Access ingress QoS policy ID 1 is reserved as the default policy for access ports to which an access ingress policy is not explicitly assigned. The following table lists the characteristics of the default policy.
Item | Definition |
Meter 1 | 1 (one) meter all unicast traffic:
|
Meter 9 | 1 (one) meter all multicast traffic:
|
Default FC (be) | 1 (one) flow defined for all traffic:
|
This section describes access egress QoS policies.
An access egress policy defines the access port queues, the FC- to-queue mapping, and the marking characteristics for the traffic egressing toward the customer on the access ports. By configuring queue shaping rates, the individual FC traffic can be managed so that each FC traffic is within SLA limits and does not impact the serviceability of other FCs.
The number of queues available per access port on different 7210 SAS platforms is the following:
To define a basic access egress QoS policy, the following are required:
On the 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-Sx 10/100GE, remarking of dot1p or DSCP or both bits by default is disabled and can be enabled by the remarking command, with options to remark dot1p, dscp, or both present under access-egress context.
The following options are available on different platforms:
The FC determination per service egress packet is determined at ingress. If the packet ingressed the service on the same router, the service ingress classification rules determine the FC of the packet.
The FC is determined as follows for network mode and access-uplink mode:
Access egress QoS policy ID 1 is reserved as the default for access ports that do not have another access egress policy explicitly assigned. The following table lists the characteristics of the default policy.
Characteristic | Item | Definition | |
Queues | Queue 1-8 | 1 (one) queue defined for each traffic class | |
Network-Control (nc) | Queue 8 |
| |
| |||
| |||
High-1 (h1) | Queue7 |
| |
| |||
| |||
Expedited (ef) | Queue 6 |
| |
| |||
| |||
High-2 (h2) | Queue 5 |
| |
| |||
| |||
Low-1 (l1) | Queue 4 |
| |
| |||
| |||
Assured (af) | Queue 3 |
| |
| |||
| |||
Low-2 (l2) | Queue 2 |
| |
| |||
| |||
Best-Effort (be) | Queue 1 |
| |
| |||
| |||
Flows | Default Action | All FCs are mapped to corresponding Queues and dot1p values are marked as follows: | |
In-profile | Out-profile | ||
Network-Control (nc) | 7 | 7 | |
High-1 (h1) | 6 | 6 | |
Expedited (ef) | 5 | 5 | |
High-2 (h2) | 4 | 4 | |
Low-1 (l1) | 3 | 3 | |
Assured (af) | 2 | 2 | |
Low-2 (l2) | 1 | 1 |
On 7210 SAS-Mxp, the users have an option to use either port-based egress queuing and shaping or SAP-based egress queuing and shaping for SAPs configured on access ports or hybrid ports. Use the configure system resource-profile qos port-scheduler-mode command to select the mode for SAPs configured on all the ports of the node.
On 7210 SAS-Mxp platforms, an access egress policy provides different functionality based on the queuing mode in use, as described in the following sections.
When SAP-based egress queues are in use, 7210 SAS-Mxp supports SAP-based marking for access SAPs and port-based egress marking on access ports. SAP-based marking is only supported for Layer 2 SAPs (configured in Epipe and VPLS services).
If the user enables remarking in the SAP egress policy attached to the SAP, 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, the remark policy configured under the access egress policy associated with the egress access port is used to mark all packets sent out of the Layer 2 SAP configured on the access port. This is known as port-based marking. Port-based marking is supported primarily for Layer 3 SAPs (configured in VPRN and IES services). SAP-based marking is not supported for Layer 3 SAPs.
On 7210 SAS-Mxp, no explicit CLI command is provided to choose between port-based marking and SAP-based marking for Layer 2 SAPs. Choose SAP-based marking by enabling remarking in the SAP egress policy attached to the Layer 2 SAP or choose 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 Layer 2 SAP is configured.
See Access egress QoS policies for 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 for more information about marking behavior with different remark policy types.
Access egress QoS policy ID 1 is reserved as the default access egress policy. The default policy cannot be deleted or changed. The default access egress policy is applied to all access ports which do not have another access egress policy explicitly assigned. By default sap-qos-marking is enabled.
On 7210 SAS-Mxp, when port-based queues are enabled, in addition to marking values, the access egress QoS policy provides an option to define port-based queues and scheduling.
When port-scheduler-mode is enabled, the software uses 8 (eight) egress queues per access port or hybrid port and all the SAPs configured on the port share the 8 (eight) egress queues for traffic sent out of that port. When port-scheduler-mode is enabled, the queue parameters for the access port egress queues are defined using the access egress policies.
Individual queue parameters for a specific queue can be modified using the queue override feature. See Queue overrides for access egress QoS policies on the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 for more information.
Additionally, the marking values used to mark traffic from different FCs are defined by the remark policy in the access egress policy. Per-SAP marking cannot be used when port-based queuing mode is used. See Access egress QoS policies for 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 for more information about marking behavior with different remark policy types.
On 7210 SAS-Mxp, 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 8 (eight) queues to access port egress by default. To define a basic access egress QoS policy, the following are required:
Optional service egress QoS policy elements include specifying a remark policy that defines IEEE 802.1p priority value remarking based on the FC.
On 7210 SAS-Mxp, when port-based queuing is used, the FC-to-queue map is fixed and the queue priority is determined by the queue number, with the higher queue number having the higher priority. The user can configure a queue to be a strict queue to change the scheduling behavior for that queue. See Schedulers on 7210 SAS-Mxp for more information about scheduling.
On the 7210 SAS-R6 and 7210 SAS-R12, 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, it also defines the per-port queue parameters.
Note: The SAP-based queuing mode is supported only on the 7210 SAS-R6 IMM-b and 7210 SAS-R12 IMM-b. It is not supported on the 7210 SAS-R6 IMM-c and 7210 SAS-R12 IMM-c. |
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, which are SAPs configured in Epipe and VPLS services. If users enable remarking in the SAP-egress policy attached to the SAP, the configured remark policy is used to mark the packets sent out of the SAP. If remarking is disabled in the SAP-egress policy attached to the SAP, the 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.
No explicit CLI command is provided to choose between port-based marking and SAP-based marking for L2 SAPs. The user can choose SAP-based marking by enabling remarking in the SAP-egress policy attached to the L2 SAP, or 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 where the L2 SAP is configured.
See Access egress QoS policies for 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 for more information about marking behavior with different remark policy types.
Note: The port-based queuing mode is supported on IMM-b and IMM-c cards. On IMM-c cards, it is the default and the only supported queuing mode. |
When port-based queues are enabled in addition to marking values, the access egress QoS policy provides an option to define port-based queues and scheduling.
Users have an option to use 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 users to select the mode used for SAPs configured on all the ports of the node (this is a per-node setting). When port-scheduler-mode is enabled, the software uses eight egress queues per access port, and all the SAPs configured on the port share the eight egress queues for traffic sent out of that port.
When port-scheduler-mode is enabled, the queue parameters for the access port egress queues are defined using the access egress policies.
Modify queue parameters for a specific queue using the queue override feature. See QoS overrides for meters/policers for more information.
Additionally, the marking values used to mark traffic from different FCs are defined by the remark policy in the access egress policy. Per-SAP marking cannot be used when port-based queuing mode is used. See Access egress QoS policies for 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 for more information about marking behavior with different remark policy types.
Access egress QoS policies define egress queues and map FC flows to queues, if port-scheduler-mode is enabled. Using port-scheduler-mode, the system allocates eight queues to access port egress by default. To define a basic access egress QoS policy, the following are required:
See Queue parameters for information about the parameters that can be configured for a queue.
Optional service egress QoS policy elements include the following:
When port-based queuing is used, the FC-to-queue map is fixed and the queue priority is determined by the queue number, with higher queue numbers having the higher priority. The user can configure a queue to be a strict queue to change the scheduling behavior for the queue.
Access egress QoS policy ID 1 is reserved as the default access egress policy. The default policy cannot be deleted or changed. The default access egress policy is applied to all access ports that do not have another access egress policy explicitly assigned. By default, sap-qos-marking is enabled. Table 27 and Table 28 list the characteristics of the default policy.
Characteristic | Item | Definition |
Network-Control (nc) | Queue 8 |
|
High-1 (h1) | Queue7 |
|
Expedited (ef) | Queue 6 |
|
High-2 (h2) | Queue 5 |
|
Low-1 (l1) | Queue 4 |
|
Assured (af) | Queue 3 |
|
Low-2 (l2) | Queue 2 |
|
Best-Effort (be) | Queue 1 |
|
The marking values used to mark traffic from different FCs are defined by the remark policy in the access egress policy. The following table lists the remarking policy for type dot1p for 7210 SAS-R6 and 7210 SAS-R12.
FC | In-profile | Out-profile |
Network-Control (nc) | 7 | 7 |
High-1 (h1) | 6 | 6 |
Expedited (ef) | 5 | 5 |
High-2 (h2) | 4 | 4 |
Low-1 (l1) | 3 | 2 |
Assured (af) | 3 | 2 |
Low-2 (l2) | 1 | 1 |
Best-Effort (be) | 0 | 0 |
The queue override feature for access egress QoS policies allows users to override the queue parameter settings of an access egress QoS policy applied to a port. An access egress QoS policy defines the QoS behavior on access port egress. Queue override is used when port-based queues with shaping and scheduling are configured for use instead of per-SAP egress queues.
Queue override support on access egress ports allows the user to override queue parameters, such as adaptation rule, percent CIR and PIR rates, queue management policy, queue mode, CIR and PIR rates, and queue weight. See Queue parameters for parameter descriptions.
When the queue override feature is not used, queue parameters for the port are taken from the access egress QoS policy assigned to the port.
Queue override commands are supported on all Ethernet access ports.
Refer to the 7210 SAS-Mxp, R6, R12, S, Sx, T Interface Configuration Guide for CLI command descriptions of the queue override parameters.
The following is a sample queue override parameter configuration output.
This policy allows the user to define the FC-to-egress marking values. Based on the packet encapsulation used to send out the service packets, the remark policy allows the user to define and associate policies to service egress and network egress QoS policies.
The 7210 SAS-Mxp, 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T (network mode) supports the following types of remark policies:
Each of these remark policy types can be associated with only specific QoS policies, as in the preceding list.
Note: On the 7210 SAS-R6 and 7210 SAS-R12, when the port-based scheduling mode is enabled per-node for SAPs, only per-port egress marking policies are supported; per-SAP egress marking is not supported for L2 and L3 SAPs. |
The required elements to define a remark QoS policy are:
See Remark policies for more information.
The 7210 SAS supports port egress rate limiting, which allows the user to limit the bandwidth available on the egress of the port to a value less than the maximum possible link bandwidth. It also allows the user to control the amount of burst sent out.
7210 SAS devices support multiple FCs and class-based queuing, so the concept of FCs is common to all QoS policies.
Each FC (also called Class of Service (CoS)) is important only in relation to the other FCs. An FC provides to network elements a method to weigh the relative importance of one packet over another in a different FC.
Queues are created for a specific FC to determine the manner in which the queue output is scheduled. The FC of the packet, along with the in-profile or out-of-profile state, determines how the packet is queued and handled (the per-hop behavior (PHB)) at each hop along its path to a destination egress point. 7210 SAS devices support 8 (eight) FCs. The following table describes the default definitions for the FCs.
FC-ID | FC name | FC designation | DiffServ name | Notes |
7 | Network Control | NC | NC2 | Intended for network control traffic. |
6 | High-1 | H1 | NC1 | Intended for a second network control class or delay/jitter sensitive traffic. |
5 | Expedited | EF | EF | Intended for delay/jitter sensitive traffic. |
4 | High-2 | H2 | AF4 | Intended for delay/jitter sensitive traffic. |
3 | Low-1 | L1 | AF2 | Intended for assured traffic. Also is the default priority for network management traffic. |
2 | Assured | AF | AF1 | Intended for assured traffic. |
1 | Low-2 | L2 | CS1 | Intended for BE traffic. |
0 | Best Effort | BE | BE |
The FC behavior, in terms of ingress marking interpretation and egress marking, can be changed by using Network QoS policies in network mode. All FC queues support the concept of in-profile and out-of-profile.
There are 8 (eight) FCs supported on 7210 SAS devices. Each FC is mapped to a specific queue. By mapping FCs to different queues the differential treatment is imparted to various classes of traffic.
On the 7210 SAS devices, there are only 8 (eight) queues available at the port level for all ports. These 8 (eight) queues are created by default per port. Users cannot create or delete the queues nor the queue ID. Only the queue parameters can be changed. The queue ID is not configurable, and queue IDs 1 to 8 are, by default, used to identify the 8 (eight) queues available on the port. Queue parameters for the 8 (eight) queues can be configured using the different QoS policies based on the capabilities available on different 7210 SAS platforms. See QoS policies for more information.
The queue IDs 1 to 8 are assigned to each of the 8 (eight) queues. Queue-ID 8 is the highest priority and queue-id 1is the lowest priority. FCs are correspondingly mapped to these queue IDs according to their priority. The following table describes the system-defined map.
FC-ID | FC name | FC designation | Unicast queue-ID |
7 | Network control | NC | 8 |
6 | High-1 | H1 | 7 |
5 | Expedited | EF | 6 |
4 | High-2 | H2 | 5 |
3 | Low-1 | L1 | 4 |
2 | Assured | AF | 3 |
1 | Low-2 | L2 | 2 |
0 | Best-Effort | BE | 1 |
There are 8 FCs supported on the device. Each of these FC is mapped to two queues, one used for unicast traffic mapped to the FC and another used for multicast/BUM traffic mapped to the FC. By mapping an FC to different queues, the differential treatment is imparted to various classes of traffic.
In the 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE devices, there are 16 queues available at the port level for all ports on the device. These 16 queues are created by default per port. Users cannot create or delete the queues or the queue ID. Only the queue parameters can be changed. On 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE, the queue ID represents one of the 8 scheduling nodes corresponding to 8 FCs. It is not a configurable entity and queue ID 1 to 8 are, by default, used to identify these 8 FC scheduling nodes available on the port. Parameters for these 8 FCs can be configured as part of the access egress QoS policy that is applied on the access ports, and network queue policy that is applied on the network ports and hybrid ports.
The queue IDs 1 to 8 are assigned to each of the 8 FCs. Queue ID 8 is the highest priority scheduling node and queue ID 1 is the lowest priority scheduling node. FCs are correspondingly mapped to these queue IDs according to their priority. The following table describes the system-defined map.
FC-ID | FC name | FC designation | Unicast queue-ID | Multicast queue-ID |
7 | Network control | NC | 8 | 8 |
6 | High-1 | H1 | 7 | 7 |
5 | Expedited | EF | 6 | 6 |
4 | High-2 | H2 | 5 | 5 |
3 | Low-1 | L1 | 4 | 4 |
2 | Assured | AF | 3 | 3 |
1 | Low-2 | L2 | 2 | 2 |
0 | Best-Effort | BE | 1 | 1 |
Services are configured with default QoS policies. Additional policies must be explicitly created and associated. There is one default service ingress QoS policy, one default access egress QoS policy, two default network QoS policies (one each for the network QoS policy of the ip-interface type and of the port type) and two default port scheduler policies. Only one ingress QoS policy and one egress QoS policy can be applied to a SAP, access port, IP interface, network port, hybrid port, or access uplink port (the support for QoS policy association is different on different 7210 SAS platforms).
When creating a QoS policy, default values are provided for most parameters, with the exception of the policy ID and descriptions. Each policy has a scope, default action, description, meters for ingress policies, and queues for egress policies. The queue is associated with an FC.
QoS policies can be applied to the following service types on 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T (based on the service supported in the particular mode of operation):
QoS policies can be applied to the following entities on the 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T:
On the 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T, all SAPs across all services on a specific port share the egress port queues, which can be configured using the access egress policy and port scheduler policy on an access port.
QoS policies can be applied to the following service types on the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 in SAP-based egress queuing mode. SAP-egress policies are not supported when port-based egress queuing mode is configured:
Note: SAP egress policies are not supported when port-based egress queueing mode is configured. Instead, access egress policies must be used when port-based scheduling is configured and all the SAPs on the port share the egress port queues. |
QoS policies can be applied to the following entities on the 7210 SAS-R6 and 7210 SAS-R12, and 7210 SAS-Mxp:
QoS policies allow operators to prioritize traffic according to the FC and use congestion management to control access ingress, access egress, and network traffic (network port or access-uplink port), enqueuing packets according to their priority (color).
This section provides an overview of QoS policy support on hybrid ports:
Note: See Remark policies for more information about dot1p and IP DSCP marking. |
This section provides an overview of QoS policy support on hybrid ports:
Note: See Remark policies for more information about dot1p and IP DSCP marking. |
Note: SAP-based egress QoS policies are not supported on the 7210 SAS-R6 IMM-c and 7210 SAS-R12 IMM-c. |
This section provides an overview of QoS policy support on hybrid ports.
The following policies are available when SAP-based queues are enabled:
Note: See Remark policies for more information about dot1p and IP DSCP marking. |
When port-based queues are enabled for SAPs, the QoS policies available for use with hybrid ports is the same as the preceding list, with the following exceptions:
This section provides information about meters/policers
This section describes the meter parameters available. Meters are available for use in both network mode and access-uplink mode with the following policies.
In network mode of operation meter/policer is available with the following:
In access-uplink mode of operation meter/policer is available with the following:
The meter ID is used to uniquely identify the meter. The meter ID is only unique within the context of the QoS policy where the meter is defined.
The committed information rate (CIR) for a meter is the long term average rate at which traffic is considered as conforming traffic or in-profile traffic. The higher the rate, the greater the expected throughput. The user is able to burst above the CIR and up to PIR for brief periods of time. The time and profile of the packet is decided based on the burst sizes, as explained in the following sections.
When defining the CIR for a meter, the value specified is the administrative CIR for the meter. The 7210 SAS devices have a number of native rates in hardware that are used to determine the operational CIR for the meter. The user has some control over how the administrative CIR is converted to an operational CIR if the hardware does not support the exact CIR and PIR combination specified. See the interpretation of the administrative CIR in Adaptation rule for meters.
The CIR for meters is provisioned on service ingress and network ingress within service ingress QoS policies and network QoS policies, respectively.
The peak information rate (PIR) defines the maximum rate at which packets are allowed to exit the meter. It does not specify the maximum rate at which packets may enter the meter; this is determined by the ability of the meter to absorb bursts and is defined by its maximum burst size (MBS).
When defining the PIR for a meter, the value specified is the administrative PIR for the meter. The 7210 SAS devices have a number of native rates in hardware that are used to determine the operational PIR for the meter. The user has some control over how the administrative PIR is converted to an operational PIR if the hardware does not support the exact CIR and PIR combination specified. Refer to the interpretation of the administrative PIR in Adaptation rule for meters.
The PIR for meters is provisioned on service ingress and access uplink ports or network port ingress within service ingress QoS policies and network QoS policies, respectively.
The 7210 SAS devices support color-aware policing at network ingress, whereas at service ingress a policing option is provided to use either color-aware policing or color-blind policing. In color-aware policing, users can define the color of the packet using the classification and send the colored packets to the meter. A color-aware meter treats the packets according to the color defined:
The profile marked by the meter is used to determine the eligibility of the packet to be enqueued into a buffer at egress (that is, when a slope policy is configured at the egress).
In color-blind mode, the profile (color) assigned to the packet on ingress is ignored. The CIR and PIR rates configured for the meter determine the final profile (color) for the packet. If the packet is within the CIR, the final profile (color) assigned to the packet is in-profile (green). If the packet exceeds the CIR and is within the PIR, the final profile (color) assigned to the packet is out-of-profile (yellow). Packets that exceed the PIR rate (red) are dropped.
In color-aware mode, the meter uses the profile assigned to the packet on ingress. The profile can be assigned on ingress either by enabling DEI classification as done on access ports or by assigning profile based on either dot1p or DEI as done on network ports and access-uplink ports. On the 7210 SAS-Mxp, 7210 SAS-R6 and 7210 SAS-R12, the profile can also be assigned on service (or SAP) ingress by using a DSCP classification policy to set FC and profile. See Table-based classification using dot1p and IP DSCP for assigning FC and profile on SAP ingress for the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 for more information about table-based classification.
The adaptation rule provides the QoS provisioning system with the ability to adapt the administrative rates provisioned for CIR and PIR, to derive the operational rates based on the underlying capabilities of the hardware. The administrative CIR and PIR rates are translated to actual operational rates enforced by the hardware meter. The rule provides a constraint when the exact rate is not available as a result of hardware capabilities.
The following table lists the hardware rate step-size for the 7210 SAS-Mxp, 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-T.
Rate (kbits_sec) | Burst (kbits_burst) | Rate step size (bits) | Burst step size (bits) |
0 to 4194296 | 0 to 16773 | 8000 | 4096 |
4194297 to 8388592 | 16774 to 33546 | 16000 | 8192 |
8388593 to 16777184 | 33547 to 67092 | 32000 | 16384 |
16777185 to 33554368 | 67093 to 134184 | 64000 | 32768 |
33554369 to 67108736 | 134185 to 268369 | 128000 | 65536 |
67108737 to 134217472 | 268370 to 536739 | 256000 | 131072 |
134217473 to 268434944 | 536739 to 1073479 | 512000 | 262144 |
268434945 to 536869888 | 1073480 to 2146959 | 1024000 | 524288 |
The following table lists the hardware rate step-size for the 7210 SAS-Sx 10/100GE.
Rate (kbits_sec) | Burst (kbits_burst) | Rate step size (kb/s) | Burst step size (bits) |
8 to 16777208 | 4 to 16773 | 8 | 4096 |
16777209 to 33554416 | 16774 to 33546 | 16 | 8192 |
33554417 to 67108832 | 33547 to 67092 | 32 | 16384 |
67108833 to 134217664 | 67093 to 134184 | 64 | 32768 |
134217665 to 268435328 | 134185 to 268369 | 128 | 65536 |
268435329 to 536870656 | 268370 to 536739 | 256 | 131072 |
536870657 to 1073741312 | 536739 to 1073479 | 512 | 262144 |
1073741313 to 2147482624 | 1073480 to 2146959 | 1024 | 524288 |
The system attempts to find the best operational rate depending on the defined constraint. The supported constraints are the following:
The following table lists the rate values configured in the hardware when different PIR or CIR rates are specified in the CLI.
Administrative rate | Operation rate (min) | Operation rate (max) | Operation rate (closest) |
8 | 8 | 8 | 8 |
10 | 16 | 8 | 8 |
118085 | 11808 | 11800 | 11808 |
46375 | 46376 | 46368 | 46376 |
If the user has configured any value greater than 0 and less than 648, the operation rate configured on hardware is 648 kbps, regardless of the constraint used.
Note: The configured burst size affects the rate step-size used by the system. The system uses the step size so that both the burst-size and rate parameter constraints are met. For example, if the rate specified is less than 4 Gbps but the configured burst size is 17 Mbits, the system uses a rate step size of 16 Kbits and a burst step size of 8192 bits (see Table 32, row 2). If the meter is a srTCM meter, both rate and burst constraints specified for both CBS and MBS are considered together to determine the step-size to use for CIR, CBS, and MBS parameters. If the meter is a trTCM1 meter, the CIR rate and CBS burst parameters are considered together to determine the step-size to use for CIR and CBS parameters, and the PIR rate and MBS burst parameters are considered together to determine the step-size to use for PIR and MBS parameters. If the meter is a trTCM2 meter, the CIR rate and CBS burst parameters are considered together to determine the step-size to use for CIR and CBS parameters, and the PIR (EIR) rate and MBS (EBS) burst parameters are considered together to determine the step-size to use for PIR (EIR) and MBS (EBS) parameters. |
The committed burst size (CBS) parameter specifies the maximum burst size that can be transmitted by the source at the CIR while still complying with the CIR. If the transmitted burst is lower than the CBS value, the packets are marked as in-profile by the meter to indicate that the traffic is complying with meter configured parameters.
The operational CBS set by the system is adapted from the user configured value by using the minimum constraint.
Note: See Table 32 for information about the burst parameter step-size. |
For trTCM, the maximum burst size parameter specifies the maximum burst size that can be transmitted by the source at the PIR while complying with the PIR. If the transmitted burst is lower than the MBS value, the packets are marked as out-profile by the meter to indicate that the traffic is not complying with CIR, but complying with PIR.
For srTCM, the maximum burst size parameter specifies the maximum burst size that can be transmitted by the source while not complying with the CIR. If the transmitted burst is lower than the MBS value, the packets are marked as out-profile by the meter to indicate that the traffic is not complying with CIR. If the packet burst is higher than MBS, packets that are marked as red are dropped.
The operational MBS set by the system is adapted from the user-configured value by using the minimum constraint.
Note: See Table 32 for information about the burst parameter step-size. |
The 7210 SAS devices maintain counters for meters within the system for granular billing and accounting. Each meter maintains the following counters:
The 7210 SAS devices support the following meter modes:
In srtcm, the CBS and MBS token buckets are replenished at single rate, that is, CIR. Whereas in the case of trtcm, CBS and MBS buckets are individually replenished at CIR and PIR rates, respectively. trtcm1 implements the policing algorithm defined in RFC 2698, and trtcm2 implements the policing algorithm defined in RFC 4115.
Support for the QoS override feature on an access SAP allows the user to override the meter parameters, such as CBS, MBS, rate (CIR and PIR), mode, and adaptation rule (CIR and PIR) at the SAP context.
When meter parameter values are not overridden, the values are taken from the SAP ingress policy. That is, QoS override is not used.
Meter override commands are supported on all types of access SAP.
The configuration guidelines for QoS override are as follows:
The following is a sample meter override parameter configuration output.
This section provides information about QoS queue management.
This section describes the queue parameters available for queues. Queues are available for use in both network mode and access-uplink mode with the following policies.
In network mode of operation, queue is configured with the following QoS policies on 7210 SAS platforms:
In access-uplink mode of operation, a queue is available with the following platforms:
The queue ID is used to uniquely identify the queue. The queue ID is only unique within the context of the QoS policy where the queue is defined. On the 7210 SAS, the queue ID is not a user configurable entity, but the queue ID is statically assigned to the 8 queues on the port according to the FC-QID map listed in Table 29.
The CIR for a queue performs the following distinct functions:
Queues at the egress never mark the packets as in-profile or out-profile based on the queue CIR and PIR values. The in-profile and out-profile state of the queue interacts with the scheduler mechanism and provides the minimum and maximum bandwidth guarantees.
When defining the CIR for a queue, the value specified is the administrative CIR for the queue. The user has some control over how the administrative CIR is converted to an operational CIR if the hardware does not support the exact CIR and PIR combination specified. See Adaptation rule for queues for information about the interpretation of the administrative CIR.
Although the 7210 SAS is flexible in how the CIR can be configured, there are conventional ranges for the CIR based on the FC of a queue. A access egress queue associated with the high-priority class normally has the CIR threshold equal to the PIR rate, although the 7210 SAS allows the CIR to be provisioned to any rate below the PIR if this behavior is required.
The CIR for a queue is provisioned in the appropriate queue policy associated with the service object (that is, a network or hybrid port, or an access SAP, as applicable).
The PIR defines the maximum rate at which packets are allowed to exit the queue. It does not specify the maximum rate at which packets may enter the queue; this is determined by the ability of the queue to absorb bursts. The actual transmission rate of an egress queue depends on more than just its PIR. Each queue is competing for transmission bandwidth with other queues. Each queue PIR, CIR, and the relative priority and weight of the scheduler serving the queue, all combine to affect a queue's ability to transmit packets.
When defining the PIR for a queue, the value specified is the administrative PIR for the queue.The user has some control over how the administrative PIR is converted to an operational PIR if the hardware does not support the exact CIR and PIR values specified. See Adaptation rule for queues for information about the interpretation of the administrative PIR.
The PIR for a queue is provisioned in the appropriate queue policy associated with the service object (that is, a network, hybrid, or access port, or and access SAP, as applicable).
The adaptation rule provides the QoS provisioning system with the ability to adapt specific CIR and PIR defined administrative rates to the underlying capabilities of the hardware where the queue is created to derive the operational rates. The administrative CIR and PIR rates are translated to actual operational rates enforced by the hardware queue. The rule provides a constraint used when the exact rate is not available as a result of hardware implementation trade-offs.
For the CIR and PIR parameters individually, the system attempts to find the best operational rate, depending on the defined constraint. The supported constraints are:
Depending on the hardware on which the queue is provisioned, the actual operational CIR and PIR settings used by the queue depend on the method the hardware uses to implement and represent the mechanisms that enforce the CIR and PIR rates.
The 7210 SAS uses a single rate step value to define the granularity for both the CIR and PIR rates. The adaptation rule controls the method the system uses to choose the rate step based on the administrative rates defined by the rate command.
Table 35 lists the supported hardware rate steps that correspond to the CIR and PIR ranges between 0 and 1 Gb/s on 7210 SAS-T and 7210 SAS-Sx/S 1/10GE devices. Table 36 lists the supported hardware rate steps that correspond to the CIR and PIR range values between 0 to 1 Gb/s for the 7210 SAS-Mxp. Table 37 lists the supported hardware rate steps that correspond to the CIR and PIR range values between 0 to 1 Gb/s for the 7210 SAS-R6 and 7210 SAS-R12. Table 38 lists the supported hardware rate steps that correspond to the CIR and PIR ranges between 0 to 10 Gbps on 10-Gig ports on all platforms. Table 39 lists the supported hardware rate steps that correspond to the CIR and PIR range values between 0 to 1 Gb/s for the 7210 SAS-Sx 10/100GE.
Hardware rate steps | Rate range |
8 kbps | 0 to 16770 kbps |
16 kbps | 16780 to 33540 kbps |
32 kbps | 33550 to 67090 kbps |
64 kbps | 67100 to 134180 kbps |
128 kbps | 134190 to 268360 kbps |
256 kbps | 268370 to 536730 kpbs |
512 kbps | 536740 to 1000000 kbps |
Hardware rate steps | Rate range |
8 kbps | 0 to 16383 kbps |
16 kbps | 16384 to 32767 kbps |
32 kbps | 32768 to 65535 kbps |
64 kbps | 65536 to 131071 kbps |
128 kbps | 131072 to 262143 kbps |
256 kbps | 262144 to 524287 kpbs |
512 kbps | 524288 to 1000000 kbps |
Hardware rate steps | Rate range |
8 kbps | 0 to 2047 kbps |
8 kbps | 2048 to 4095 kbps |
8 kbps | 4096 to 8191 kbps |
8 kbps | 8192 to 16383 kbps |
16 kbps | 16384 to 32767 kbps |
32 kbps | 32768 to 65535 kbps |
64 kbps | 65536 to 131071 kbps |
128 kbps | 131072 to 262143 kbps |
256 kbps | 262144 to 524287 kbps |
512 kbps | 524288 to 1048575 kbps |
1024 kbps | 1048576 to 2097151 kbps |
2048 kbps | 2097152 to 4194303 kbps |
4096 kbps | 4194304 to 8388607 kbps |
8192 kbps | 8388608 to max |
Hardware rate steps | Rate range |
8 kbps | 0 to 16383 kbps |
16 kbps | 16384 to 32767 kbps |
32 kbps | 32768 to 65535 kbps |
64 kbps | 65536 to 131071 kbps |
128 kbps | 131072 to 262143 kbps |
256 kbps | 262144 to 524287 kpbs |
512 kbps | 524288 to 1048575 kbps |
1024 kbps | 1048576 to 2097151 kbps |
2048 kbps | 2097152 to 4194303 kbps |
4096 kbps | 4194304 to 8388607 kbps |
8192 kbps | 8388608 to 10000000 kbps |
Hardware rate steps | Rate range |
8 kbps | 8 to 16777208 kbps |
16 kbps | 16777209 to 33554416 kbps |
32 kbps | 33554417 to 67108832 kbps |
64 kbps | 67108833 to 134217664 kbps |
128 kbps | 134217665 to 268435328 kbps |
256 kbps | 268435329 to 536870656 kpbs |
512 kbps | 536870657 to 1073741312 kbps |
1024 kbps | 1073741313 to 2147482624 kbps |
To illustrate how the adaptation rule constraints of minimum, maximum, and closest are evaluated in determining the operational CIR or PIR for the 7210 SAS, assume there is a queue where the administrative CIR and PIR values are 90 Kbps and 150 Kbps, respectively.
If the adaptation rule is minimum, the operational CIR and PIR values are 96 Kbps and 152 Kbps respectively, as the native hardware rate is greater than or equal to the administrative CIR and PIR values.
If the adaptation rule is maximum, the operational CIR and PIR values are 88 Kbps and 144 Kbps.
If the adaptation rule is closest, the operational CIR and PIR values are 88 Kbps and 152 Kbps, respectively, as those are the closest matches for the administrative values that are even multiples of the 8 Kbps rate step.
The CBS and MBS parameters configure the amount of buffers that a queue can use. The CBS parameter specifies the amount of buffer reserved for a queue in the queue buffer pool. The MBS parameter specifies the portion that a queue can contend for in the shared buffer space. When all reserved buffers for a specific queue are used, the queue contends with other queues for additional buffer resources up to the configured MBS.
On the 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T, the CBS parameter for queues is not configurable for access, network, and access-uplink ports. The CBS is set to system-defined values.
On 7210 SAS-Mxp, and 7210 SAS-R6 and 7210 SAS-R12 equipped with IMM-b cards, the CBS and MBS values for the queues are configurable for the service egress and network port queues. The CBS and MBS is set to default values that address the specific FC needs to maintain differential treatment.
On the 7210 SAS-T (network and access-uplink mode), the node can be operated with either a per-port or per-node MBS pool. The decommissioning feature is supported in the per-port MBS pool mode, which increases the per-port MBS pool by taking away packet buffers from other ports. In this case, the maximum MBS per queue, assuming no other queue has traffic on that port, depends on the user configuration. For example, assuming one port is decommissioned and its buffers are allocated to port 1/1/1, the maximum MBS per queue on port 1/1/1, assuming no other queues have any traffic, is 93 Kbytes. The show pools port-id network-egress, show pools port-id access-egress, and show pools port-id access-uplink-egress CLI commands display the values in use depending on the port mode (network, access, and access-uplink).
The following table lists the default CBS and MBS values for the 7210 SAS platforms.
Platform | CBS (KBytes) | MBS (KBytes) | ||
Network queue and access-uplink queue | Access queue | Network queue and access-uplink queue | Access queue | |
7210 SAS-T (MBS Pool = Port) 1 | 3.375 | 3.375 | 33 2 | 33 2 |
1.68 | 1.68 | 1458 3 | 1458 3 | |
7210 SAS-Mxp | 128 | 10 | 256 | 64 |
7210 SAS-R6 (IMM-b) | 128 | 10 | 256 | 64 |
7210 SAS-R12 (IMM-b) | 128 | 10 | 256 | 64 |
7210 SAS-R6 IMM-c 5 | 1.6 | 1.6 | 1255 6 | 1255 6 |
7210 SAS-R12 IMM-c 5 | 1.6 | 1.6 | 1150 6 | 1150 6 |
7210 SAS-Sx/S 1/10GE 24-port variant 5 | 1.6 | 1.6 | 905 6 | 905 6 |
7210 SAS-Sx/S 1/10GE 48-port variant 5 | 1.6 | 1.6 | 698.34 6 | 698.34 6 |
7210 SAS-Sx 10/100GE 5 | 1.6 | 1.6 | 4158.4 6 | 4158.4 6 |
7210 SAS-Sx/S 1/10GE (standalone-VC) 5 | 1.6 | 1.6 | 712.7 6 | 712.7 6 |
Notes:
The available buffer space is partitioned into buffer pools. The buffers for a queue are allocated from the available buffer pool.
This section provides information about buffer pools for 7210 SAS platforms.
The 7210 SAS devices, when operating in network mode and access-uplink mode, support either one or both of the two modes of buffer pool allocation for port egress queues - per port MBS pool and per node MBS pool. The buffer pools take care of the buffer requirements at the port level for various queue shaping/ scheduling mechanisms. In addition, in per port MBS pool mode, an option is provided to decommission the port and allocate its buffers towards other ports. The following sections provides more information about these two modes.
When the decommission entries are not configured, during system initialization, based on the maximum number of ports supported on the device, the total buffer is distributed into per port egress buffer pool for access ports, network ports, access-uplink ports and hybrid ports. Each port on the system gets an equal portion of the available buffers. From the buffers allocated to a port, each queue gets its CBS amount of buffers. The remaining buffers are allocated towards the shared MBS pool per port. All the queues of the port can use the buffers from the shared MBS pool. This model of buffer pool allocation is called per port MBS pool.
With the per port MBS pool, each queue is allocated with a small fixed amount of buffers towards the CBS (Committed burst size) and each port is allocated with a shared pool of buffers towards the MBS (Maximum Burst Size). The queue’s CBS portion of buffers guarantees that the queue does not starve due to lack of buffers.
The buffers allocated towards the MBS pool, allow each port to handle some amount of burst. Per port MBS pool/portion of buffers is shared by all the queues of the port and allows any queue or a small group of queues of the port to absorb larger bursts assuming that, not all the queues receive burst simultaneously. In a typical network, the router/switch in the ingress traffic is usually a mix of packets of different sizes and different flows burst at different time intervals, which allows for better burst absorption capability per queue using shared resources.
In the per node MBS pool mode, each of the queue on a port, is allocated a CBS amount of committed buffers. The remaining amount of buffers is allocated towards the MBS pool that is available for sharing among all the queues across all the ports of the node. The queue’s CBS portion of buffers guarantees that the queue does not starve due to lack of buffers.
The buffers allocated towards the node’s MBS pool, allows each port to handle some amount of burst. Per port MBS pool of buffers is shared by all the queues of the port and allows any queue or a group of queues across multiple ports to absorb larger bursts, assuming that not all the queues on all the ports receive burst simultaneously. In a typical network, the router/switch in the ingress traffic is usually a mix of packets of different sizes and different flows burst at different time intervals, which allows for better burst absorption capability per queue using shared resources.
The hardware implements an algorithm to handle requests for allocation of buffers from the MBS pool (in both models) assuming that not all the ports and queues burst at the same time. This allows some queues to utilize a larger portion of the buffers when it is available, allowing them to handle larger bursts. At the same time, the algorithm ensures that all the queues get fair share of the buffers, so that the throughput on those ports is not affected.
When hardware receives a packet, before it decides to queue up the packet on the egress queue of the destination port, it determines the discard threshold for the queue based on the oversubscription factor and the total amount of free buffers available at that point of time.
The queue’s discard threshold is higher if the amount of free buffers available is larger (which indicates other queues on the node have lesser congestion), allowing the queue to absorb larger bursts. The queue’s discard threshold is lower if there are fewer free buffers available (which indicates that other queues are heavily congested on the node), which results in the packet being dropped. At the same time, algorithm allocates the available free buffers to queues which are using lesser amount of buffers or not using any buffers. This allows equal sharing of available buffers and maintains a good throughput for less congested queues.
On 7210 SAS-T (in both access-uplink and network mode), 2MB of buffers are available and by default per node MBS pool is used and an option is available to user to change it to per port MBS pool.
Note:
|
To allow operators better control over which ports get larger portion of queue buffers, the operator is provided with an option to use per-port MBS pool and decommission ports. The decommissioning of ports is only allowed when the node is booted with the option to use per-port MBS pool.
With the decommissioning feature, the user is provided with an option to make efficient use of the available port egress queue buffer pool by allocating queue buffers of the unused ports to in-use ports. It allows the user to specify the unused front-panel ports which cannot be used to deploy any services. The software does not allocate any queue buffers to these unused ports and assigns it to a specific port or a group of ports. The user is provided with a CLI command to decommission a port and make it unavailable to deploy services. This mechanism allows operators who use limited number of ports to deploy services, to increase the amount of queue buffers allocated to them by decommissioning ports that will not be used to deploy any services.
Note:
|
This feature enables the user to make efficient use of the available port egress queue buffer pool by allocating queue buffers of the unused ports to ports. Services cannot be configured on the unused ports as software takes away all the queue buffer resources from these ports that need increased amount of buffers to handle larger bursts. This allows the operators who use limited number of ports to deploy services, to increase the amount of queue buffers allocated to them by decommissioning ports that are not used to deploy services.
The amount of credit of queue buffers received by a port is used to increase the MBS portion of the buffer pool of the port. This allows any queue on the port to use the buffers, if needed. The CBS portion of the queue is not modified with this feature.
Note: The system has to be rebooted after decommissioning of ports for the queue buffers to be reallocated and the configuration to take effect. |
The users have an option to specify the groups of ports which receive the credit of queue buffers freed up using the decommission command. With this option, the user can specify a port or group of ports which receives the credit of queue buffers. For example, it is possible for the user to configure decommissioning of 4 fixed copper ports and allocate the freed queue buffers to the remaining copper ports in the system or decommission 5 fiber ports and allocate the freed up queue buffers to the 10G XFP ports, and so on. This mechanism allows the operators to provide higher amount of queue buffers to a specific port or a group of ports, allowing them to pick and choose ports that need the extra buffers for burst absorption.
The user is allowed to increase the per port MBS pool limit so that more buffers are available to absorb larger bursts, at the cost of decommissioning ports which are not used to configure services.
The configure system resource-profile decommission entry CLI command allows the user to configure the list of ports to be decommissioned and the list of ports that need more buffers. The system does not allocate any packet buffers to the ports which are decommissioned. For more information, see the CLI command description for details on the functionality provided by the command.
Packet buffers are added to the MBS pool of the port (the MBS pool is shared by the 8 (eight) queues on the port) and the CBS portion of the queues are not modified.
The user can modify the list of ports or update to the list of ports specified with the decommission command (and also entry command) when the node is up.
The software maintains two lists of entries, one is the current list of ports and another which has been modified by the user and takes effect only after the next reboot. These lists can be displayed using the show command. The configuration file always stores the list of entries as configured by the user, so that when rebooted the modified entries and new entries (if any) takes effect.
A port must be in administrative down (shutdown) state before it is in a decommission entry. An attempt to configure a port which is administratively up (no shutdown) state results in an error. The administrative state or the operational state of the port is not affected by configuring the port in a decommission entry.
The decommissioned port cannot be used in any service configuration or as a loopback port. An attempt to do so results in an error.
The decommissioned port must not be configured with BOF parameter, ‘no-service-ports’.
Buffer allocation to a port should is possible for access ports, network ports or hybrid ports. In other words, irrespective of port mode, it is possible to assign more buffer resources to the port.
The user needs to ensure that enough buffers are available for the internal loopback ports or front-panel ports assigned for loopback. It is not recommended to take away buffers allocated to these ports and assign it to other ports. This might cause unintended behavior of the system. The system software does not check for this, but expects users to ensure this through proper configuration.
During system boot up, while executing the commands in the configuration file software checks if the no-service-ports are configured under the decommission entries. If there is match, software throws an error and stops execution of further commands in the configuration file. When this happens, user needs to correct the configuration file or the BOF file, to either remove the ports from the decommission entries or not configure them as no-service-ports in the BOF, save the BOF file or the configuration file based on where the change was made and reboot the node.
On 7210 SAS-T, the decommission command takes affect only if the per port MBS pool is in use, that is, the user needs to configure the configure system resource-profile qos mbs-pool port CLI command, before using the decommission port feature.
The following configuration sample shows the ports to be decommissioned and the ports that need more buffers.
Note: Refer to the 7210 SAS-Mxp, R6, R12, S, Sx, T Basic System Configuration Guide for more information about the decommission commands. |
The 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE has 4MB of packets buffers and it supports only a single mode of operation, per node MBS pool, in this release. In this mode, the MBS pool is shared across all queues on all ports. In the per node MBS pool mode, each of the 16 egress queues available on a port, is allocated a CBS amount of committed buffers. The remaining amount of buffers is allocated towards the per node MBS pool that is available for sharing among all the queues across all the ports of the node.
Note: The system internal ports, such as internal loopback ports used for mirroring, port loopback with mac-swap, and others, are allocated with some buffers. Some buffers are reserved for system internal use (for example, CPU queues). |
The amount of buffers remaining after allocating buffers for system internal use is available for allocation towards MBS buffers for all egress queues and per node MBS pool.
The hardware implements an algorithm to handle requests for allocation of buffers from the MBS pool assuming that not all the ports and queues burst at the same time. This allows some queues to utilize a larger portion of the buffers when it is available, allowing them to handle larger bursts. At the same time, the algorithm ensures that all the queues get fair share of the buffers, so that the throughput on those ports are not affected. When the hardware receives a packet, before it decides to queue up the packet on the egress queue of the destination port, it determines the discard threshold for the queue based on the oversubscription factor and the total amount of free buffers available at that point of time.
The queue’s discard threshold is higher, if the amount of free buffers available is larger (which indicates other queues on the node have lesser congestion), allowing the queue to absorb larger bursts. The queue’s discard threshold is lower, if there is lesser amount of free buffers available (which indicates that other queues are heavily congested on the node), which results in the packet being dropped. At the same time, algorithm allocates the available free buffers to queues which are using lesser amount of buffers or not using any buffers. This allows equal sharing of available buffers and maintains a good throughput for less congested queues.
Note:
|
The 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 have a single buffer pool per node, the system pool. All the queues created by the system are allocated buffers from this system pool. Queues come up with default buffers, and the buffers change accordingly when they are associated with a network port or SAP. Queue management policies allow the user to specify the parameters that determine buffer allocation to the queues. Buffer pools cannot be created or deleted in the 7210 SAS.
Note: The 7210 SAS-R6 IMM-c and 7210 SAS-R12 IMM-c do not support the user configuration of CBS and MBS queue parameters. These values are system-defined and configured values in queue management policies are ignored. On the 7210 SAS-R6 IMM-c and 7210 SAS-R12 IMM-c, only the WRED slope parameters are used from the queue management policy. References to allocation of queue buffers in this section applies only to the 7210 SAS-R6 IMM-b, 7210 SAS-R12 IMM-b, and 7210 SAS-Mxp. |
Queue management policies allows the user to define the queue buffer and WRED slope parameters. The device supports a single buffer pool per node. All the queues created in the system are allocated buffers from this system pool. The default buffers are allocated to the queues accordingly when they are associated with a SAP or a network port.
Queue management policies allow the user to define the CBS, MBS and WRED parameters for use by the queue. The CBS and MBS parameters are used to allocate the appropriate amount of buffers from the system pool to the queues. The WRED parameters allow the user to define the WRED slope characteristics.
You can define a high-slope and a low-slope for each of the queues. High-slope is used for in-profile packets being enqueued into the queues and low-priority slope is used for out-of-profile packets being enqueued into the queues. By default each queue is associated with a default queue-management policy. The default policy allocates the appropriate amount of CBS and MBS buffers based on whether the queue is associated with a SAP or network port.
Note: If WRED is not configured, taildrop is used. |
The elements required to define a queue management policy are:
Queue management policy ID default is reserved for the default queue management policy. The default policy cannot be deleted or changed. The default policy is implicitly applied to all queues that do not have another queue management policy explicitly assigned. The following table lists the default values for the default slope policy.
Parameter | Description | Setting |
Policy ID | Queue management policy ID | Default (for default queue management policy) |
CBS | Committed Burst size | Default (in kilobytes) |
MBS | Maximum Burst size | Default (in kilobytes) |
High (RED) slope | Administrative state | Shutdown |
start-avg | 70% utilization | |
max-avg | 90% utilization | |
max-prob | 75% | |
Low (RED) slope | Administrative state | Shutdown |
start-avg | 50% utilization | |
max-avg | 75% utilization | |
max-prob | 75% | |
TAF | time-average-factor | 7 |
See Table 40 for the default CBS and MBS queues on the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12.
On 7210 SAS platforms RED slopes support is as follows:
The high-priority RED slope manages access to the shared portion of the buffer pool for high-priority or in-profile packets. The low-priority RED slope manages access to the shared portion of the buffer pool for low-priority or out-of-profile packets.
By default, all slopes are disabled.
The WRED uses average queue lengths, queue thresholds provisioned, and drop probability to calculate the packet’s eligibility to be enqueued. The committed portion of the buffer pool is exclusively used by a queue to enqueue traffic within committed rate.
For the queues within a buffer pool, packets are either queued using committed burst size (CBS) buffers or shared buffers. The CBS buffers are simply buffer memory that has been allocated to the queue while the queue depth is at or below its CBS threshold.
When a queue depth exceeds the queue’s CBS, packets received on that queue must contend with other queues exceeding their CBS for shared buffers. To resolve this contention, the buffer pool uses two RED slopes to determine buffer availability on a packet by packet basis. A packet that was either classified as high priority or considered in-profile is handled by the high-priority RED slope. This slope should be configured with RED parameters that prioritize buffer availability over packets associated with the low-priority RED slope. Packets that had been classified as low priority or out-of-profile are handled by this low-priority RED slope.
The following is a simplified overview of how a RED slope determines shared buffer availability on a packet basis:
Plotting any value of shared buffer average utilization will result in a value for packet discard probability from 0 to 1. Changing the values for start-avg, max-avg and max-prob allows the adaptation of the RED slope to the needs of the access or network queues using the shared portion of the buffer pool, including disabling the RED slope.
The 7210 SAS allows tuning the calculation of the Shared Buffer Average Utilization (SBAU) after assigning buffers for a packet entering a queue as used by the RED slopes to calculate a packet’s drop probability. It implements a time average factor (TAF) parameter in the buffer policy which determines the contribution of the historical shared buffer utilization and the instantaneous Shared Buffer Utilization (SBU) in calculating the SBAU. The TAF defines a weighting exponent used to determine the portion of the shared buffer instantaneous utilization and the previous shared buffer average utilization used to calculate the new shared buffer average utilization. To derive the new shared buffer average utilization, the buffer pool takes a portion of the previous shared buffer average and adds it to the inverse portion of the instantaneous shared buffer utilization (SBU). The formula used to calculated the average shared buffer utilization is shown in the following figure.
where:
SBAUn = Shared buffer average utilization for event n
SBAUn-1 = Shared buffer average utilization for event (n-1)
SBU = The instantaneous shared buffer utilization
TAF = The time average factor
The following table describes the effect the allowed values of TAF have on the relative weighting of the instantaneous SBU and the previous SBAU (SBAUn-1) has on the calculating the current SBAU (SBAUn).
TAF | 2TAF | Equates to | Shared buffer instantaneous utilization portion | Shared buffer average utilization portion |
0 | 20 | 1 | 1/1 (1) | 0 (0) |
1 | 21 | 2 | 1/2 (0.5) | 1/2 (0.5) |
2 | 22 | 4 | 1/4 (0.25) | 3/4 (0.75) |
3 | 23 | 8 | 1/8 (0.125) | 7/8 (0.875) |
4 | 24 | 16 | 1/16 (0.0625) | 15/16 (0.9375) |
5 | 25 | 32 | 1/32 (0.03125) | 31/32 (0.96875) |
6 | 26 | 64 | 1/64 (0.015625) | 63/64 (0.984375) |
7 | 27 | 128 | 1/128 (0.0078125) | 127/128 (0.9921875) |
8 | 28 | 256 | 1/256 (0.00390625) | 255/256 (0.99609375) |
9 | 29 | 512 | 1/512 (0.001953125) | 511/512 (0.998046875) |
10 | 210 | 1024 | 1/1024 (0.0009765625) | 1023/2024 (0.9990234375) |
11 | 211 | 2048 | 1/2048 (0.00048828125) | 2047/2048 (0.99951171875) |
12 | 212 | 4096 | 1/4096 (0.000244140625) | 4095/4096 (0.999755859375) |
13 | 213 | 8192 | 1/8192 (0.0001220703125) | 8191/8192 (0.9998779296875) |
14 | 214 | 16384 | 1/16384 (0.00006103515625) | 16383/16384 (0.99993896484375) |
15 | 215 | 32768 | 1/32768 (0.000030517578125) | 32767/32768 (0.999969482421875) |
The value specified for the TAF affects the speed at which the shared buffer average utilization tracks the instantaneous shared buffer utilization. A low value weights the new shared buffer average utilization calculation more to the shared buffer instantaneous utilization. When TAF is zero, the shared buffer average utilization is equal to the instantaneous shared buffer utilization. A high value weights the new shared buffer average utilization calculation more to the previous shared buffer average utilization value. The TAF value applies to all high and low priority RED slopes for ingress and egress buffer pools controlled by the buffer policy.
Note: On 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12, queue management policies are used to configure the WRED slopes. See Queue management policies for 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 for more information. |
Slope policies define the RED slope characteristics as a percentage of the size of the queue on which the policy is applied when the per-port MBS pool configuration is used. When per node MBS pool is in use, the slope parameters are interpreted as a percentage of the logical size for the queue and is not a percentage of the total MBS pool size.
On 7210 SAS-T (network mode and access-uplink mode), default buffer pools exist (logically) at the port levels, when configured to use per port MBS pool and is dependent on the physical port mode:
By default, each queue on the port is associated with slope-policy default which disables the high-slope, low-slope, and non-TCP slope within the pool.
On the 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 1/10GE and 7210 SAS-Sx 10/100GE configured in standalone and standalone-VC mode, default buffer pools exist (logically) at the port levels and is dependent on the port mode:
By default, each queue on the port is associated with slope-policy “default”, which disables the high-slope and low-slope.
Note: If WRED is not configured, taildrop is used. |
The elements required to define a slope policy are:
All slopes are available per queue and the following parameters are configurable for each slope:
A slope policy is defined with generic parameters so that it is not inherently an access or a network policy. A slope policy defines access egress buffer management properties, when it is associated with an access port buffer pool and network egress buffer management properties, when it is associated with a network port buffer pool.
Slope policy ID default is reserved for the default slope policy. The default policy cannot be deleted or changed. The default slope policy is implicitly applied to all access and network buffer pools which do not have another slope policy explicitly assigned.
The following table lists the default values for 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-Sx 10/100GE in network mode.
Parameter | Description | Setting |
Policy ID | policy ID | default (for default policy) |
High (RED) slope | Administrative state | Shutdown |
start-avg | 70% utilization | |
max-avg | 90% utilization | |
max-prob | 75% | |
Low (RED) slope | Administrative state | Shutdown |
start-avg | 50% utilization | |
max-avg | 75% utilization | |
max-prob | 75% |
The packets that are destined to the CPU are prioritized based on the application. Some of the applications that are prioritized are Layer 2 data packets (a copy of which is sent to CPU for MAC learning), EFM, CFM, STP, LACP, ICMP, and so on The CPU provides 8 (eight) queues from BE (0) to NC (7). The packets destined to the CPU are classified internally and are put into the correct queue.
These packets are rate-limited to prevent DoS attacks. The software programs the classification entries to identify these packets and assigns appropriate bandwidth and priority to them. It is not configurable by the user.
This section provides information about QoS schedulers.
The scheduling modes interact with the minimum and maximum bandwidth CoS queue and maximum bandwidth egress port shaping specifications. Each egress port may be configured to have a specific scheduling mode. The scheduler first services the queues to meet their CIR and then services the queues to meet the PIR. There are five possibilities as follows:
QoS queue name | Minimum bandwidth | Maximum bandwidth |
7 | 10 Mbps | 1 Gbps |
6 | 10 Mbps | 1 Gbps |
5 | 50 Mbps | 1 Gbps |
4 | 50 Mbps | 1 Gbps |
3 | 50 Mbps | 1 Gbps |
2 | 50 Mbps | 1 Gbps |
1 | 50 Mbps | 1 Gbps |
0 | 50 Mbps | 1 Gbps |
Port scheduler policies control the traffic behavior on a per-port basis. Associated with each egress port is a set of 8 (eight) class of service (CoS) queues and a default port-scheduler-policy named “default”. This default policy makes the port to behave in strict mode. The default policy cannot be modified. The user can attach another policy to the port to change its scheduling behavior.
The scheduler that provides the arbitration across the 8 (eight) CoS queues is a scheduler that is configured in a variety of modes. A major aspect of the arbitration mechanism is the ability to provide minimum and maximum bandwidth guarantees. This is accomplished by tightly integrating a network queue and access egress policies into the scheduler. After the packets are mapped into a COS queue, they are forwarded/conditioned using one of these schedulers (such as Strict Priority (SP), Round-Robin (RR), Weighted Round-Robin (WRR), Weighted Deficit Round-Robin (WDRR), (WRR+SP, WDRR+SP). The traffic shaping aspect is tightly integrated with the scheduler.
The 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE support port-based scheduling with the following:
See Schedulers on 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE for more information about scheduler behavior and to understand the queue parameters considered by the scheduler.
7210 SAS-Mxp supports scheduling as follows:
See the Schedulers on 7210 SAS-Mxp chapter for more information about scheduling behavior and to understand the queue parameters considered by the scheduler.
The 7210 SAS-R6 and 7210 SAS-R12 support scheduling as follows.
See Schedulers on 7210 SAS-R6 and 7210 SAS-R12 for more information about scheduling behavior and queue parameters considered by the scheduler.
The following information describes QoS implementation caveats: