QoS policies
This chapter provides information about Quality of Service (QoS) policy management.
The terms ‟meter” and ‟policer” are used interchangeably in this guide.
QoS policies overview
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.
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:
QoS policies that are used for classification, defining metering and queuing attributes, and defining marking behavior.
Slope policies that are used to define default buffer allocations and weighted random early detection (WRED) slope definitions.
Port scheduler policies, SAP ingress and egress policies, and network and network-queue policies that determine how queues are scheduled.
Overview of QoS policies on 7210 SAS-T in access-uplink mode
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:
classification rules for how traffic is mapped to FCs
FC association with meters and meter parameters used for policing (rate limiting)
queuing parameters for shaping and buffer allocation
QoS marking and interpretation
Several types of QoS policies exist:
service ingress policies for access SAP ingress
Service ingress QoS policies are applied to the customer-facing SAPs. Traffic that enters through the SAP is classified to map it to an FC. FCs are associated with a meter or policer on ingress. The mapping of traffic to meters can be based on combinations of customer QoS marking (IEEE 802.1p bits), IP criteria, and MAC criteria. The characteristics of the FC meters are defined within the policy with regard to the number of FC meters for unicast traffic and the meter characteristics (such as CIR, PIR, and so on). Each of the FCs 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. There can be up to 32 meters in total per service ingress QoS policy. In the case of the VPLS, four forwarding types (which is not to be confused with forwarding classes) are supported: 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 in a point-to-point manner within the service.
access egress policies for access port egress
An access egress policy is analogous to a SAP-egress policy, as defined in the 7x50 SR series of products. The difference is the point of attachment. An access egress policy is applied on the physical port as opposed to the logical port (SAP) for SAP-egress policy. It applies to all the SAPs on the port. An access egress QoS policy maps the traffic egressing the customer facing ports into various queues and marks the traffic accordingly. The FCs are mapped to the queues. There are 8 (eight) queues at the port level. FC-to-queue mapping is not configurable. The number of queues is not user-configurable and software always allocates 8 (eight) queues at the port level. An access egress policy also defines how to remark the FC-to-packet header bits (for example, IEEE 802.1p bits in the Layer 2 VLAN header, and so on).
network policies for access-uplink port, ingress and egress
Network queue policies are applied on egress of access-uplink ports when operating in access-uplink mode. The policies define the FC queue characteristics for these entities. The FCs are mapped to the queues. There are 8 (eight) queues at the port level. FC-to-queue mapping is system-defined and not user-configurable. The number of queues is not user-configurable and software always allocates 8 (eight) queues at the port level.
For devices configured to operate in access-uplink mode, network QoS policies apply to access-uplink ports. Access-uplink ports in access-uplink mode are analogous to network ports in network mode. On ingress, the policy applied to an access-uplink port maps incoming dot1p values to FC and profile state for the traffic received from the core network. On egress, the policy maps FC and profile state to packet header values (for example, IEEE 802.1p value in the Layer 2 header) for traffic to be transmitted into the core network.
slope policies
Slope policies are applied to the egress queues on the access, network, and hybrid ports. These policies define the WRED congestion management attributes, such as drop probability and thresholds for high-profile and low-profile traffic.
network-queue policies for access-uplink port, egress
port-scheduler policies for access port and access-uplink port egress
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.
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 |
|
Overview of QoS policies on 7210 SAS-T in network mode
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:
classification rules to map traffic to FCs
FC association with meters and meter parameters used for policing (rate-limiting)
queuing parameters for shaping
QoS marking and interpretation
Several types of QoS policies exist:
service ingress policies for access SAP ingress
Service ingress QoS policies are applied to customer-facing SAPs. Traffic that enters through the SAP is classified to map it to an FC. FCs are associated with meters or policers on ingress. The mapping of traffic to meters can be based on combinations of customer QoS marking (IEEE 802.1p bits), IP criteria, and MAC criteria. The characteristics of the FC meters are defined in the policy as to the number of FC meters for unicast traffic and the meter characteristics (such as CIR, PIR, and so on). Each of the FCs 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. There can be up to 32 meters in total per service ingress QoS policy. In the case of VPLS, four forwarding types (which are not to be confused with FCs) are supported: 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 in a point-to-point manner within the service.
access egress policies for access port egress
An access egress policy is analogous to a SAP-egress policy, as defined in the 7x50 SR series of products. The difference is the point of attachment. An access egress policy is applied on the physical port as opposed to the logical port (SAP) for SAP egress policies. It applies to all the SAPs on the port. An access egress QoS policy maps the traffic egressing on the customer-facing ports into various queues and marks the traffic. The FCs are mapped to the queues. There are 8 (eight) queues at the port level. FC-to-queue mapping is static and not configurable. The number of queues is not user-configurable and the software allocates 8 (eight) queues at the port level. An access egress policy also defines how to remark the FC-to-packet header bits (for example, IEEE 802.1p bits in the Layer 2 VLAN header).
network policies for network and hybrid port, ingress and egress
For devices configured to operate in network mode, there are two types of network QoS policies, one applied to a network IP interface and the other is applied to a network port. Network QoS policies are applied to IP interfaces. On ingress, the policy applied to an IP interface maps incoming MPLS LSP EXP values to FC and profile state for the traffic received from the core network. On egress, the policy maps FC and profile state to MPLS LSP EXP values for traffic to be transmitted into the core network. The network policy applied to a network port maps incoming IP packets, DSCP or dot1p values, to the FC and the profile state for the traffic received from the core network. On egress, the policy maps FC and profile state to DSCP and/or dot1p values for IP traffic to be transmitted into the core network.
network-queue policies for network and hybrid port egress
Network queue policies are applied on egress to network ports when operating in network mode. The policies define the FC queue characteristics for these entities. The FCs are mapped to the queues. There are 8 (eight) queues at the port level. FC-to-queue mapping is static and not configurable. The number of queues is not user-configurable and the software allocates 8 (eight) queues at the port level.
port-scheduler policies for access port, network port and hybrid port egress
Port scheduler policies are applied on egress for access, network, and hybrid ports. These policies allow the user to define queue scheduling attributes, such as strict-priority queuing and weighted queuing.
slope policies
Slope policies are applied to the egress queues on the access, network, and hybrid ports. These policies define the WRED congestion management attributes, such as drop probability and thresholds for high-profile and low-profile traffic.
remark policies for access port, network port, and hybrid port egress marking
Remark policies are applied to access ports/SAPs, network ports/IP interfaces, and hybrid ports/SAPs/IP interfaces to configure the marking values for different forwarding classes and profiles.These policies enable marking of packet header QoS fields for packets that are forwarded out of the port, SAP, or IP interface. See Remark policies for more information.
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.
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 |
|
Overview of QoS policies on 7210 SAS-Mxp in network mode
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:
classification rules for how traffic is mapped to FCs
FC association with meters and meter parameters used for policing (rate-limiting)
queuing parameters for shaping
QoS marking/interpretation
Several types of QoS policies exist:
service ingress policies for access SAP ingress
Service ingress QoS policies are applied to customer-facing SAPs. Traffic that enters through the SAP is classified to map to an FC. FCs are associated with meters or policers on ingress. Mapping traffic meters can be based on combinations of customer QoS marking (IEEE 802.1p bits), IP criteria, and MAC criteria. The policy defines the number of FC meters for unicast traffic and other meter characteristics (such as CIR, PIR, and so on). Each FC can be associated with different unicast parameters.
A service ingress QoS policy also defines up to three meters per FC for multipoint traffic for use with multipoint services. The system supports the configuration of up to 32 meters per service ingress QoS policy. In the case of VPLS, four forwarding types (not to be confused with forward classes) are supported: 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 in a point-to-point fashion within the service.
service egress policies for access SAP egress
Service egress QoS policies are applied to SAPs and map FCs to service egress queues for a service. The system allocates a maximum of eight queues per SAP for the eight FCs; this is not user configurable. All traffic types (unicast and BUM) share the same service egress queue. A service egress QoS policy defines the FC queue characteristics and how the FC to priority bits in the packet header are remarked (for example, IEEE 802.1p bits in the Ethernet VLAN tag) in the customer traffic.
On the 7210 SAS-Mxp, the user has a per-node or per-chassis option of configuring the SAP-based or access port-based egress queuing mode. The SAP-based egress queuing mode (port-scheduler-mode command disabled) uses a service egress QoS policy with the capability to use eight egress queues per SAP. The access port-based egress queuing mode (port-scheduler-mode command enabled) uses an access egress policy with the capability to use eight egress queues for all SAPs configured on the access port.
A service egress QoS policy or access egress policy also defines how to remark the FC-to-IEEE 802.1p bits in the customer traffic.
access egress policies for access port egress
An access egress policy is applied to all SAPs on the physical port (and not the logical port (SAP)) for SAP-egress policies. It applies to all the SAPs on the port. Access egress policies provide different capabilities based on the egress queuing mode applied to the node. In SAP-based egress queuing mode, an access egress policy defines the remarking of the FC-to-packet header bits. For example, IEEE 802.1p bits in the Layer 2 VLAN header.
In port-based egress queuing mode, the access egress policy, in addition to remarking, is used to define the queuing and scheduling behavior for the port-based egress queues. Access egress QoS policies are applied to ports and map forwarding classes (FCs) to port egress queues. The system allocates a maximum of eight queues per port for the eight FCs. The allocation is not user-configurable. All traffic types, (unicast and BUM traffic types) share the same queue on port egress.
An access egress QoS policy defines the FC queue characteristics and the remarking of the FC to priority bits in the packet header (for example, IEEE 802.1p bits in the Ethernet VLAN tag) in the customer traffic.
access ingress policies for access port ingress
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 an FC and profile to traffic, which facilitates the classification of traffic received on the access port.
An option is provided to share an access ingress policy across multiple access ports so that the classification policy and the policer rate applies to all access SAPs configured across all access ports that share the policy. In shared mode, the access ingress policy provides an option to use dot1p, DEI, IP DSCP, and IP criteria (with or without a port range) classification entries to assign an FC and profile to traffic received on the access port.
The FC assigned using the classification entry is associated with meters at ingress and allows the user to define up to one meter per FC for unicast traffic, and up to one meter per FC for multipoint traffic (broadcast, multicast, and unknown-unicast) for multipoint services. The system supports up to 16 meters per access ingress QoS policy.
Note:This policy is available only when the node is operating in sap-scale mode high. See 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.
network policies for network and hybrid port, ingress and egress
For devices configured to operate in network mode, two types of network QoS policies are supported: one that is applied to a network IP interface and the other to a network port. Network QoS policies are applied to IP interfaces. On ingress, the policy applied to an IP interface maps incoming MPLS LSP EXP values to FC and profile state for traffic received from the core network. On egress, the network policy maps FC and profile state to MPLS LSP EXP values for traffic transmitted into the core network. The network policy applied to a network port maps incoming IP packets, DSCP, or dot1p values to the FC and the profile state for the traffic received from the core network. On egress, the network policy maps FC and profile state to DSCP or dot1p values for IP traffic transmitted into the core network.
network queue policies for network and hybrid port, egress
Network queue policies are applied on egress to network ports when operating in network mode. The policies define the FC queue characteristics for these entities. The FCs are mapped to the queues. The FC-to-queue mapping is static and not configurable. The number of queues is not user-configurable and the software allocates eight queues at the port level.
port scheduler policies for access port, network port and hybrid port egress
Port scheduler policies are applied on egress for access, network, and hybrid ports. These policies allow the user to define queue scheduling attributes, such as strict-priority queuing and weighted queuing.
slope policies
Slope policies are applied to the egress queues on the access, network, and hybrid ports. These policies define the WRED congestion management attributes, such as drop probability and thresholds for high-profile and low-profile traffic.
remark policies for access port, network port and hybrid port egress marking
Remark policies are applied to access ports/SAPs, network ports/IP interfaces, and hybrid ports/SAPs/IP interfaces to configure the marking values for different forwarding classes and profiles.These policies enable marking of packet header QoS fields for packets that are forwarded out of the port, SAP, or IP interface. See Remark policies for more information.
queue management policies for buffer allocation and slope configuration on service egress and network port egress
Queue management policies are applied to service egress, access port egress, network port egress, and hybrid port egress to configure CBS and MBS parameters for the egress queues and the WRED slope parameters for the queues.
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 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.
The following policies are supported:
one service ingress QoS policy and one service egress QoS policy applied to a specific SAP
one access ingress and one access egress QoS policy applied to an access port
one network QoS policy 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 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-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:
service ingress policy for SAP ingress classification and metering using the following:
CAM-based classification and metering/policing
table-based classification and CAM-based metering/policing
table-based classification and service-meter pool, also called table-based meter/policer pool, for metering/policing
service egress policy for SAP egress queuing, shaping, and scheduling with an egress policy for marking only
access egress policy for access port egress queuing, shaping, scheduling, and marking (this policy is mutually exclusive with the use of service egress policies)
-
Supports a choice of an access port ingress policy on access service delivery ports or SAP ingress policies on access ports. Nokia recommends using an access port ingress policy for higher SAP scaling.
- If using a service ingress policy for SAP ingress classification and metering,
the following QoS policies are recommended:
- Epipe and VPLS SAPs using ingress table-based classification and table-based policing on service delivery ports for higher SAP scaling
- IES and VPRN SAPs using table-based classification or CAM-based classification
- R-VPLS SAPs using CAM-based classification and policing
- If using an access ingress policy for access port ingress classification and
metering, the following QoS policies are recommended:
- access ingress policy for access port ingress to classify and police traffic
- the user has an option to use a single policy per access port or share a single access port ingress policy with multiple access ports to reduce resource consumption
-
Access egress policy for access port egress queuing, shaping, scheduling, and marking. This policy is mutually exclusive with the use of service egress policies.
A summary of the major functions performed by the QoS policies is listed in the following table.
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 |
|
Overview of QoS policies on 7210 SAS-R6 and 7210 SAS-R12
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:
classification rules to map traffic to FCs
FC association with meters and meter parameters used for policing (rate-limiting)
queuing parameters for shaping, scheduling, and buffer allocation
QoS marking and interpretation
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:
service ingress policies for access SAP ingress
Service ingress QoS policies are applied to customer-facing SAPs. Traffic that enters through the SAP is classified to map to an FC. FCs are associated with meters or policers on ingress. Mapping traffic meters can be based on combinations of customer QoS marking (IEEE 802.1p bits), IP criteria, and MAC criteria. The policy defines the number of FC meters for unicast traffic and other meter characteristics (such as CIR, PIR, and so on). Each FC can be associated with different unicast parameters.
A service ingress QoS policy also defines up to three meters per FC for multipoint traffic for use with multipoint services. The system supports the configuration of up to 32 meters per service ingress QoS policy. In the case of VPLS, four forwarding types (not to be confused with forward classes) are supported: 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 in a point-to-point fashion within the service.
Service ingress QoS policies are supported on the 7210 SAS-R6 IMM-b, 7210 SAS-R12 IMM-b, 7210 SAS-R6 IMM-c, and 7210 SAS-R12 IMM-c.
service egress policies for access SAP egress
Service egress QoS policies are applied to SAPs and map FCs to service egress queues for a service. The system allocates a maximum of eight queues per SAP for the eight FCs; this is not user configurable. All traffic types (unicast and BUM) share the same service egress queue. A service egress QoS policy defines the FC queue characteristics and how the FC to priority bits in the packet header are remarked (for example, IEEE 802.1p bits in the Ethernet VLAN tag) in the customer traffic.
On the 7210 SAS-R6 and 7210 SAS-R12, the user has a per-node or per-chassis option of configuring the SAP-based or access port-based egress queuing mode. The SAP-based egress queuing mode (port-scheduler-mode command disabled) uses a service egress QoS policy with the capability to use eight egress queues per SAP. The access port-based egress queuing mode (port-scheduler-mode command enabled) uses an access egress policy with the capability to use eight egress queues for all SAPs configured on the access port.
A service egress QoS policy or access egress policy also defines how to remark the FC-to-IEEE 802.1p bits in the customer traffic.
Service egress policies are supported only on 7210 SAS-R6 IMM-b and 7210 SAS-R12 IMM-b. 7210 SAS-R6 IMM-c and 7210 SAS-R12 IMM-c support only the port-based egress queuing mode and use access egress policies to configure the access port egress queues.
access egress policies for access port egress
An access egress policy is applied to all SAPs on the physical port (and not the logical port (SAP)) for SAP-egress policies. It applies to all the SAPs on the port. Access egress policies provide different capabilities based on the egress queuing mode applied to the node. In SAP-based egress queuing mode, an access egress policy defines the remarking of the FC-to-packet header bits. For example, IEEE 802.1p bits in the Layer 2 VLAN header.
In port-based egress queuing mode, the access egress policy, in addition to remarking, is used to define the queuing and scheduling behavior for the port-based egress queues. Access egress QoS policies are applied to ports and map forwarding classes (FCs) to port egress queues. The system allocates a maximum of eight queues per port for the eight FCs. The allocation is not user-configurable. All traffic types, (unicast and BUM traffic types) share the same queue on port egress.
An access egress QoS policy defines the FC queue characteristics and the remarking of the FC to priority bits in the packet header (for example, IEEE 802.1p bits in the Ethernet VLAN tag) in the customer traffic.
Access egress policies are supported on the 7210 SAS-R6 IMM-b, 7210 SAS-R12 IMM-b, 7210 SAS-R6 IMM-c, and 7210 SAS-R12 IMM-c. On IMM-b cards, when SAP-based egress queuing is configured, an access egress policy is used to configure marking. When port-based egress queuing is configured, an access egress policy is used to define port egress queue shaping and scheduling parameters, and configure marking.
access ingress policies for access port ingress
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 an FC 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 FC for unicast traffic, and up to one meter per FC for multipoint traffic (broadcast, multicast, and unknown-unicast) for multipoint services. The system supports up to 16 meters per access ingress QoS policy.
This policy is supported on the 7210 SAS-R6 IMM-b, 7210 SAS-R12 IMM-b, 7210 SAS-R6 IMM-c, and 7210 SAS-R12 IMM-c.
Note:Access ingress policies are available only when the node is operating in sap-scale mode high. See 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.
network policies for network port and hybrid port ingress and egress, and network IP interface ingress
For devices configured to operate in network mode, two types of network QoS policies are supported: one that is applied to a network IP interface and the other to a network port. On ingress, the policy applied to an IP interface maps incoming MPLS LSP EXP values to FC and profile state for traffic received from the core network. On egress, the network policy maps FC and profile state to MPLS LSP EXP values for traffic transmitted into the core network. The network policy applied to a network port maps incoming IP packets, DSCP, or dot1p values to the FC and the profile state for the traffic received from the core network. On egress, the network policy maps FC and profile state to DSCP or dot1p values for IP traffic transmitted into the core network.
These network policies are supported on the 7210 SAS-R6 IMM-b, 7210 SAS-R12 IMM-b, 7210 SAS-R6 IMM-c, and 7210 SAS-R12 IMM-c.
network queue policies for network port and hybrid port, egress
Network queue policies are applied on egress to network ports when operating in network mode. The policies define the FC queue characteristics for these entities. The FCs are mapped to the queues. The FC-to-queue mapping is static and not configurable. The number of queues is not user-configurable and the software allocates eight queues at the port level.
These network queue policies are supported on the 7210 SAS-R6 IMM-b, 7210 SAS-R12 IMM-b, 7210 SAS-R6 IMM-c, and 7210 SAS-R12 IMM-c.
remark policies for service egress, access port egress, network port and hybrid port egress, and network IP interface egress marking
Remark policies are applied to access ports/SAPs, network ports/IP interfaces, and hybrid ports/SAPs/IP interfaces to configure the marking values for different forwarding classes and profiles.These policies enable marking of packet header QoS fields for packets that are forwarded out of the port, SAP, or IP interface. See Remark policies for more information.
queue management policies for buffer allocation and slope configuration on service egress and network port egress
Queue management policies are applied to service egress, access port egress, network port egress, and hybrid port egress to configure CBS and MBS parameters for the egress queues and the WRED slope parameters for the queues.
This policy is supported on the 7210 SAS-R6 IMM-b, 7210 SAS-R12 IMM-b, 7210 SAS-R6 IMM-c, and 7210 SAS-R12 IMM-c. On the 7210 SAS-R6 IMM-c and 7210 SAS-R12 IMM-c, the CBS and MBS parameters are system-defined and not user-configurable. The values configured in the queue management policy for CBS and MBS parameters are ignored and only the WRED slope parameters are used.
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:
service ingress policy for SAP ingress classification and metering using the following:
CAM-based classification and metering
table-based classification and CAM-based metering
service egress policy for SAP egress queuing, shaping, and scheduling with an egress policy for marking only
access egress policy for access port egress queuing, shaping, scheduling, and marking (this policy is mutually exclusive with the use of service egress policies)
The following QoS policies are supported on access ports and SAPs in the high SAP scale mode:
the choice of an access port ingress policy on access service delivery ports or per-SAP ingress policies; Nokia recommends using an access port ingress policy for higher SAP scaling
access egress policy for port egress queuing, shaping, scheduling, and marking (this policy is mutually exclusive with the use of service egress policies)
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) |
|
Overview of QoS policies on 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE
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:
classification rules for how traffic is mapped to FCs
FC association with meters and meter parameters used for policing (rate-limiting)
queuing parameters for shaping
QoS marking/interpretation
There are several types of QoS policies:
service ingress policies for access SAP ingress
Service ingress QoS policies are applied to the customer-facing SAPs. Traffic that enters through the SAP is classified to map it to an FC. FCs are associated with meters/policers on ingress. The mapping of traffic to meters can be based on combinations of customer QoS marking (IEEE 802.1p bits), IP criteria, and MAC criteria.
access egress policies for access port egress
Access egress policies are analogous to SAP egress policies as defined in the 7750 SR series of products. The difference is the point of attachment. An access egress policy is applied on the physical port as opposed to the logical port (SAP) for SAP egress policy. It applies to all SAPs on a port. An access egress QoS policy maps the traffic egressing on customer facing ports into various queues and marks the traffic accordingly.
access ingress policies for access port ingress
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 an FC 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 FC for unicast traffic, and up to one meter per FC 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.
Note:This policy is available only when the node is operating in sap-scale mode high. See 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.
network policies for network and hybrid port, ingress and egress
The 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE support two types of network QoS policies, one applied to a network IP interface and the other to a network port or a hybrid port. Network QoS policies are applied to IP interfaces. On ingress, the policy applied to an IP interface maps incoming MPLS LSP EXP values to FC and profile state for the traffic received from the core network. On egress, the policy maps FC and profile state to MPLS LSP EXP values for traffic to be transmitted into the core network. The network policy applied to a network port maps incoming IP packets, DSCP, or dot1p values, to the FC and the profile state for the traffic received from the core network. On egress, the policy maps FC and profile state to DSCP or dot1p values for IP traffic to be transmitted into the core network.
network queue policies for network and hybrid port, egress
Network queue policies are applied on egress to network or hybrid ports when operating in network mode. The policies define the FC queue characteristics for these entities. The FCs are mapped to the queues. There are 16 queues at the port level. 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.
port scheduler policies for access port, network port, and hybrid port egress
Port scheduler policies are applied on egress for access, network, and hybrid ports. These policies allow the user to define queue scheduling attributes, such as strict-priority queuing and weighted queuing.
slope policies
Slope policies are applied to the egress queues on the access, network, and hybrid ports. These policies define the WRED congestion management attributes, such as drop probability and thresholds for high-profile and low-profile traffic.
remark policies for access port, network port, and hybrid port egress marking
Remark policies are applied to access ports/SAPs, network ports/IP interfaces, and hybrid ports/SAPs/IP interfaces to configure the marking values for different forwarding classes and profiles.These policies enable marking of packet header QoS fields for packets that are forwarded out of the port, SAP, or IP interface. See Remark policies for more information.
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:
Network queue policies are supported for queue configuration of egress queues on hybrid ports. These egress queues are shared by traffic sent out of SAPs and network IP interfaces configured on hybrid ports.
Network QoS policies of type ‟ip-interface” are supported for network IP interfaces on hybrid ports. The behavior is similar to the existing behavior for network IP interfaces on network ports. It supports per IP interface ingress classification and policing and egress marking (only EXP marking for MPLS traffic).
Network QoS (type = port) policies are supported for hybrid ports. The behavior is similar to existing behavior for network ports. It supports per port ingress classification and policing and egress marking (dot1p and/or DSCP marking) for IP control packets.
SAP ingress QoS policies are supported for SAPs configured on hybrid ports. The behavior is similar to existing behavior for access SAP ingress. It supports per SAP ingress classification and policing.
For marking traffic sent out of SAPs and IP traffic sent out of IP interfaces configured on hybrid ports, users must use the network QoS policy of type ‟port”, with an option to mark dot1p, DSCP, or both.
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:
service ingress policy for SAP ingress classification and metering using the following:
CAM-based classification and metering
table-based classification and CAM-based metering
service egress policy for SAP egress queuing, shaping, and scheduling with an egress policy for marking only
access egress policy for access port egress queuing, shaping, scheduling, and marking (this policy is mutually exclusive with the use of service egress policies)
The following QoS policies are supported on access ports and SAPs in the high SAP scale mode:
the choice of an access port ingress policy on access service delivery ports or per-SAP ingress policies; Nokia recommends using an access port ingress policy for higher SAP scaling
access egress policy for port egress queuing, shaping, scheduling, and marking (this policy is mutually exclusive with the use of service egress policies)
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 |
|
Network and service QoS policies
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.
Network QoS policies in network mode
The following applies to QoS policies configured in network mode.
The following types of network QoS policies can be defined: ip-interface and port. By default, when a network QoS policy is created, it is of the ip-interface type.
Create a network QoS policy of the ip-interface type using the configure>qos>network context.
Create a network QoS policy of the port type using the configure>qos>network context.
When a network QoS policy of the ip-interface type is applied to an IP interface configured on network port and hybrid ports, the policy is used for classification of MPLS packets received based on LSP-EXP bits and marking of MPLS-EXP bits for MPLS traffic sent out of the IP interface.
When a network QoS policy of the port type is applied to a network and hybrid port, it is used for classification of IP packets, based on the DSCP or dot1p bits and marking of DSCP or dot1p bits for packets sent out of network or hybrid ports.
On 7210 SAS-R6 and 7210 SAS-R12, an option is available to reallocate resources needed by network QoS ingress to other features sharing the ingress-internal-tcam resource pool. Users must ensure that sufficient resources are available for network ingress QoS, if the user intends to use network ports and network IP interfaces.
Network QoS policy ‟ip-interface” type
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:
Ingress
defines EXP value mapping to FCs. Ingress profile assignment using MPLS EXP values is configured using the mpls-lsp-exp-profile-map policy.
defines FC to meter mapping. By default, meters are color aware. The user cannot disable the meters or change the meter color mode (the meter color mode is always set to color-aware).
Egress
defines the FC to EXP value markings
remarking of QoS bits can be enabled or disabled
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:
a unique network QoS policy ID
egress FC-to-EXP value mappings for each FC
a default ingress FC and in-profile/out-of-profile state
at least one default unicast FC meter. See Meter/policer parameters for information about the parameters that can be configured for a meter.
optional multipoint FC meter
Optional network QoS policy elements include:
additional unicast meters up to a total of 8
additional multipoint meters up to 8
EXP value to FC and profile state mappings for all EXP values received
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 ‟port” type
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:
Ingress
defines DSCP or dot1p value mapping to FCs. Only one type is supported, such as DSCP or dot1p, per policy, with an option to use the DEI bit along with dot1p classification for profile assignment.
defines FC-to-meter mapping. By default, meters are color aware. The user cannot disable meters or change the meter color mode (meter color mode is always set to color-aware).
Egress
specifies the remark policy that defines FC-to-DSCP or dot1p (or both) value markings. See Remark policies for more information.
The following are the required elements defined in a network QoS policy of the port type:
a unique network QoS policy ID and network-policy-type set to port
egress FC-to-DSCP or dot1p (or both) value mappings for each FC
a default ingress FC and in-profile/out-of-profile state
at least one default unicast FC meter. See Meter/policer parameters for information about the parameters that can be configured for a meter.
Optional network QoS policy elements include the following:
additional unicast meters up to a total of 8
additional multipoint meter up to a total of 8
DSCP or dot1p (or both) value to FC and profile state mappings for all DSCP or dot1p values received
option to use the DEI bit along with dot1p classification for profile state mapping
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 in access-uplink mode
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:
Ingress
defines dot1p value mapping to FCs and profiles with an option to use the DEI bit along with dot1p classification (DSCP is not available for use)
defines FC to meter mapping
Egress
option to define the FC to dot1p value and IP DSCP value for marking
remarking of QoS bits can be enabled or disabled
The following are the required elements defined in a network QoS policy:
unique network QoS policy ID
egress FC to dot1p value mappings for each FC
default ingress FC and in-profile/out-of-profile state
at least one default unicast FC meter. See Meter/policer parameters for information about the parameters that can be configured for a meter.
at least one multipoint FC meter
Optional network QoS policy elements include the following:
additional unicast meters up to a total of 8
additional multipoint meters up to 8
dot1p value to FC and profile state mappings for all dot1p values received
option to use the DEI bit along with dot1p classification for profile state mapping
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.
Dot1p 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 queue QoS policies
This section provides information about network queue QoS policies.
Network queue policies in network mode
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, and 7210 SAS-T, 8 (eight) queues are allocated and 8 (eight) FCs are mapped to the 8 (eight) queues. Forwarding class to queue-ID map lists the FC-to-queue mapping.
On 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE, 16 queues are allocated, with 2 queues per FC, one each for unicast traffic and multicast (BUM) traffic. Forwarding class-to-queue ID map for 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE lists the FC-to-queue mapping.
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:
peak information rate (PIR) as a percentage of egress port bandwidth
committed information rate (CIR) as a percentage of egress port bandwidth
committed burst size (CBS) (using the queue-management policies); supported only on the 7210 SAS-Mxp, 7210 SAS-R6 IMM-b, and 7210 SAS-R12 IMM-b
maximum burst size (MBS) (using the queue-management policies); supported only on the 7210 SAS-Mxp, 7210 SAS-R6 IMM-b, and 7210 SAS-R12 IMM-b
queue-mode, strict or weighted; supported only on the 7210 SAS-Mxp, 7210 SAS-R6 IMM-b, and 7210 SAS-R12 IMM-b
adaptation rules for CIR and PIR
WRED slope parameters
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 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 |
|
Network queue policies in access-uplink mode
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:
Peak Information Rate (PIR) as a percentage of egress port bandwidth
Committed Information Rate (CIR) as a percentage of egress port bandwidth
adaptation rule for CIR and PIR
WRED slope parameters
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
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:
unique service ingress QoS policy ID
QoS policy scope of template or exclusive
number of classification and meter resources to allocate for this policy
allocation of resources from the ingress internal CAM resource pool for use with service ingress QoS policies
Additionally, the allocation of resources to the appropriate classification match criteria.
at least one default FC meter
See Meter/policer parameters for information about the parameters that can be configured for a meter.
Optional service ingress QoS policy elements include the following:
additional unicast meters up to a total of 8 (eight)
additional multipoint meters up to 32
QoS policy match criteria to map packets to an FC
option to use dot1p or IP DSCP table-based classification in Layer 2 services (Epipe and VPLS) on 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12
option to use IP DSCP table-based classification in Layer 3 services on the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12
option to use meters from either CAM-based meter resource pool or table-based service-meter resource pool on 7210 SAS-Mxp
The following options are available when using resources for classification and policing:
CAM-based classification and policing
Resources for both classification and policing are allocated from the CAM-based classification and meter resource pool. Configure resources from the CAM-based pool using the configure>system>resource-profile>ingress-internal-tcam>qos-sap-ingress-resource command. The user has the flexibility to use IP criteria (both IPv4 and IPv6) and MAC criteria for classification of traffic flows to an FC (FC). Using this option allows each SAP to define its FC-to-meter map, which is the default option that is enabled when the system boots up using the default configuration. This option is supported on the following platforms: 7210 SAS-Mxp, 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T (in network and access-uplink mode). This is available with all services (Epipe SAPs, VPLS SAPs, VPRN SAPs, IES SAPs, and R-VPLS SAPs).
table-based classification and CAM-based policing
Resources for classification are allocated from the table-based classification pool of resources, and policing resources are allocated from the CAM-based meter resource pool. Configure resources for the CAM-based pool using the configure>system>resource-profile>ingress-internal-tcam>qos-sap-ingress-resource command. See Service ingress QoS policies for examples that show how to configure this option. Using this option, the classification of traffic flows can be done only using IP DSCP and or dot1p bits. (See Service ingress QoS policies for information about classification support details.) The use of IP and MAC criteria are mutually exclusive. Using this option allows each SAP to define its FC-to-meter map. This option is supported only on the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12. This is available with all services (Epipe SAPs, VPLS SAPs, VPRN SAPs, IES SAPs, and R-VPLS SAPs).
table-based classification and service-meter based policing
Resources for classification are allocated from the table-based classification pool of resources, and policing resources are allocated from the table-based service-meter resource pool. See Service ingress QoS policies for examples that show how to configure this option. With this option, the classification of traffic flows can be done only using IP DSCP or dot1p bits (for classification support details, see Service ingress QoS policies). The use of IP and MAC criteria is not available. All SAPs in the node must use a single FC-to-meter map (other than the default). This option is only supported on the 7210 SAS-Mxp and is only available for Epipe SAPs, VPLS SAPs, VPRN SAPs, and IES SAPs. It is not available for R-VPLS SAPs.
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.
CAM-based classification
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:
supported MAC header fields using the mac-criteria any option
only dot1p bits in the MAC header using the mac-criteria dot1p-only option
supported IPv4 header fields using the ip-criteria any option
only IPv4 DSCP in the IPv4 header using the ip-criteria dscp-only option
supported IPv6 header fields using the ipv6-criteria any option
only IPv6 DSCP bits in the IPv6 header using the ipv6-criteria dscp-only option
both MAC and IPv4 header fields using the both MAC and IPv4 criteria option together in a policy
Among the preceding supported criteria, the following can be configured in a single policy:
mac-criteria any
mac-criteria dot1p-only
ip-criteria any and/or ipv6-criteria any or ipv6-criteria dscp-only
ip-criteria dscp-only and/or ipv6-criteria any or ipv6-criteria dscp-only
mac-criteria any and ip-criteria any or ip-criteria dscp-only and/or ipv6-criteria dscp-only
mac-criteria dot1p-only and ip-criteria any or ip-criteria dscp-only and/or ipv6-criteria dscp-only
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 Service ingress QoS policy match criteria 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 in network mode and Service ingress QoS policy criteria for 7210 SAS-T in access-uplink mode.
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.
Table-based classification
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
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:
per FC policer
per SAP aggregate policer
See 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.
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. See the ‟System Resource Allocation” section of the 7210 SAS-Mxp, R6, R12, S, Sx, T Basic System Configuration Guide for more information.
Service egress QoS policies on 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12
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:
per-service egress subrate capabilities especially for multipoint services
more granular, fairer scheduling per-service into the access network
per-service statistics for forwarded and discarded service packets
On egress of access ports, use either port-based egress queuing and shaping, or SAP-based egress queuing and shaping for SAPs configured on the port. Use the config>system>resource-profile>qos>port-scheduler-mode command on the 7210 SAS-Mxp or the config>system>global-resource-profile>qos>port-scheduler-mode command on the 7210 SAS-R6 IMM-b and 7210 SAS-R12 IMM-b to select the mode for SAPs configured on either access ports or hybrid ports. This per-node setting affects all SAPs and access ports.
When port-scheduler-mode is enabled, the software uses eight egress queues per port (access port or hybrid port). See Service egress QoS policies on 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12 for more information. When port-scheduler-mode is disabled, the software allocates eight egress queues per SAP, which are configured using service egress policies.
The 7210 SAS-R6 IMM-c and 7210 SAS-R12 IMM-c support only port-based egress queues (with eight egress queues per port) and port-based scheduling. These platforms do not support per-SAP service egress policies.
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:
a unique service egress QoS policy ID
a QoS policy scope of template or exclusive
See Queue parameters for information about the parameters that can be configured for a queue.
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.
Use either port-based egress queuing and shaping or SAP-based egress queuing and shaping for SAPs configured on access ports or hybrid ports. Using the configure system resource-profile qos port-scheduler-mode command on the 7210 SAS-Mxp or the configure system global-resource-profile qos port-scheduler-mode command on the 7210 SAS-R6 IMM-b and 7210 SAS-R12 IMM-b, select the per-node mode for SAPs configured on the ports.
For Layer 2 SAPs, if remarking is enabled in the SAP egress policy and port-based marking is disabled, the dot1p values configured in the SAP egress policy are used. For Layer 3 SAPs no marking is done.
For Layer 2 SAPs, if remarking and port-based marking are enabled in the SAP egress policy, the dot1p values configured in the SAP egress policy are used. For Layer 3 SAPs, the dot1p and DSCP values configured in the access egress policy are used. The DSCP values configured in the access egress policy are used to mark the IP traffic sent out of Layer 2 SAPs.
If remarking is disabled for the SAP egress policy and port-based marking is enabled, IP DSCP values are marked, including for the traffic egressing the Layer 2 SAPs configured on the port. To avoid this, it is recommended to use only FC-to-dot1p values when both Layer 2 and Layer 3 SAPs are configured on the same access port.
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.
On the 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 |
|
Access ingress QoS policies
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:
a unique service access QoS policy ID
parameters that can be configured for a meter, as described in Meter/policer parameters
dot1p and DSCP classification policy to map dot1p and IP DSCP values to the FC
an optional configuration to choose either IP DSCP or dot1p values, both, or the default FC values for classification
an optional configuration to assign an access ingress profile for use with a color-aware meter using either a dot1p, DEI with dot1p, or IP DSCP
On the 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-Sx/S 1/10GE, or 7210 SAS-Sx 10/100GE, access ingress QoS policy ID 1 is reserved as the default policy for access ports for an access ingress policy that is not explicitly assigned. On the 7210 SAS-Mxp in non-shared mode, access ingress QoS policy ID 1 is reserved as the default policy for access ports for an access ingress policy that is not explicitly assigned.
On the 7210 SAS-Mxp, an access ingress QoS policy can be shared with multiple access ports. This feature is mutually exclusive with the use of non-shared access ingress Qos policies. To share an access ingress QoS policy, the config>system>resource-profile>qos-access-port-shared-res-mode command must be enabled.
-
a unique service access QoS policy ID
-
the keyword to indicate a shared policy
-
parameters that can be configured for a meter, as described in Meter/policer parameters
-
the classification-criteria command with either the table-criteria or cam-criteria parameters
-
with table-criteria configured, the following options are available for classification:
-
a dot1p and DSCP classification policy to map dot1p and IP DSCP values to the FC
-
an optional configuration to choose either IP DSCP or dot1p values, both, or the default FC values for classification
-
an optional configuration to assign an access ingress profile for use with a color-aware meter using either a dot1p, DEI with dot1p, or IP DSCP
-
-
with cam-criteria configured, users have the option to define IP criteria-based classification entries to map traffic flows to the FC
In shared mode, access ingress QoS policy ID 65536 is reserved as the default policy for access ports for an access ingress policy that is not explicitly assigned.
The following tables lists the characteristics of the default access ingress policy in non-shared mode (default policy ID 1) and shared mode (default policy ID 65536).
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:
|
Item | Definition |
---|---|
Meter 1 |
1 (one) meter all unicast traffic:
|
Default FC (be) |
1 (one) flow defined for all traffic:
|
Access egress QoS policies
This section describes access egress QoS policies.
Access egress QoS policies on 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-Sx 10/100GE
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:
On the 7210 SAS-T, there are 8 (eight) queues always available per access port, and all FC traffic is mapped into these separate 8 (eight) queue as per the FC-to-queue-ID map. See Forwarding class to queue-ID map for more information.
On the 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE, 16 queues are available per access port, with 8 (eight) queues allocated for unicast traffic and 8 (eight) allocated for multicast traffic. For each of the 8 (eight) FCs, unicast and multicast traffic are mapped to two different queues, for a total of 16 queues across 8 (eight) FCs. See Forwarding class-to-queue ID map for 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE for more information.
To define a basic access egress QoS policy, the following are required:
unique service access QoS policy ID
QoS policy scope of template or exclusive
see Queue parameters for information about the parameters configured for a queue
on 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE, access egress policy allows users to specify a single rate for both multicast and unicast queues, meaning that rates cannot be specified individually for the unicast and multicast queue of an FC. Instead, the rate specified for a queue (for example, queue 8) is distributed equally to the unicast queue and multicast queue associated with the FC. See Schedulers on 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE for more information.
remarking (for example, IEEE 802.1p value) based on FC
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:
In 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-Sx 10/100GE, network mode, the user is provided with an option to remark dot1p or DSCP or both.
In 7210 SAS-T access-uplink mode, the user is provided with an option to remark both dot1p bits and IP DSCP bits.
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:
In network mode, if the packet is received over a service transport tunnel on a network port, the FC is typically determined by the MPLS LSP EXP bits.
For 7210 SAS-T in access-uplink mode, if the packet was received on a access-uplink port, the FC is determined by the dot1p bits in the outer tag of the QinQ encapsulation.
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 |
Access egress QoS policies on 7210 SAS-Mxp
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 the 7210 SAS-Mxp platforms, an access egress policy provides different functionality based on the queuing mode in use, as described in the following sections.
Access egress QoS policy for SAP-based queuing mode on 7210 SAS-Mxp
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 the 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.
Access egress QoS policy for port-based queuing mode on 7210 SAS-Mxp
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:
a unique access egress QoS policy ID
a QoS policy scope of template or exclusive
See Queue parameters for information about the parameters that can be configured for a queue.
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.
Access egress QoS policies on 7210 SAS-R6 and 7210 SAS-R12
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 toward 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.
Access egress QoS policies for SAP-based queuing mode
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.
Access egress QoS policy for port-based queuing mode
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:
unique access egress QoS policy ID
QoS policy scope of template or exclusive
See Queue parameters for information about the parameters that can be configured for a queue.
Optional service egress QoS policy elements include the following:
specifying a remark policy that defines IEEE 802.1p priority value remarking based on FC
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. Default access egress QoS policy ‟default” definition for 7210 SAS-R6 and 7210 SAS-R12 and Default remarking policy for dot1p on 7210 SAS-R6 and 7210 SAS-R12 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 the 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 |
Queue overrides for access egress QoS policies on the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12
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.
Configuring access egress QoS policy queue override parameters
See 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.
*7210SAS>config>port>ethernet>access>egress# info
----------------------------------------------
qos 13
queue-override
queue 4
adaptation-rule cir closest pir closest
queue-mgmt default
queue-mode weighted
rate cir 300 pir 400
weight 5
exit
exit
----------------------------------------------
*A:7210SAS>config>service>epipe>sap>ingress#
Remark policies on 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)
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:
dot1p
This type is used for service egress, access port egress, and network QoS (port type).
dscp
This type is used for access port egress and network QoS (port type) policies.
lsp-exp
This type is used for network QoS (ip-interface type) policies.
dot1p-dscp
This type is used for access port egress and network QoS (port type) policies.
dot1p-lsp-exp-shared
This type is used for access port egress, and network QoS (ip-interface type) policies.
Each of these remark policy types can be associated with only specific QoS policies, as in the preceding list.
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:
unique remark QoS policy ID
FC to appropriate marking values
See Remark policies for more information.
Egress port rate limiting
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.
Forwarding classes
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.
Forwarding class-to-queue ID map on 7210 SAS-Mxp, 7210 SAS-R6, 7210 SAS-R12, and 7210 SAS-T
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 |
Forwarding class-to-queue ID map on 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE
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 |
QoS policy entities
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):
Epipe
Only SAP ingress policies are supported on an Epipe service access point (SAP).
VPLS
Only SAP ingress policies are supported on a VPLS SAP.
VPRN
Only SAP ingress policies are supported on a VPRN SAP.
R-VPLS
Only SAP ingress policies are supported on a R-VPLS SAP.
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:
access egress policies and port scheduler policies on access ports
network QoS policies on network ports and hybrid ports in network mode and on access uplink ports in access uplink mode
network queue policies (egress) on network ports and hybrid ports in network mode and on access uplink ports in access uplink mode
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:
Epipe
SAP ingress policies and SAP egress policies are supported on an Epipe SAP.
VPLS
SAP ingress policies and SAP egress policies are supported on a VPLS SAP.
VPRN
SAP ingress policies and SAP egress policies are supported on a VPRN SAP.
IES
SAP-ingress and SAP-egress policies are supported on an IES service.
R-VPLS
SAP ingress policies and SAP egress policies are supported on a R-VPLS SAP.
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:
option to use access egress policies for marking in SAP-based scheduling mode and to configure queues and marking in port-based scheduling mode; access egress policies on access ports
network QoS policies on network ports and hybrid ports in network mode and on access uplink ports in access uplink mode
network queue policies (egress) on network ports and hybrid ports in network mode
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).
QoS policies for hybrid ports on 7210 SAS-T
This section provides an overview of QoS policy support on hybrid ports:
Network queue policies are supported for queue configuration of egress queues on hybrid ports. These egress queues are shared by traffic sent out of SAPs and network IP interfaces configured on hybrid ports.
Network QoS (type = ip-interface) policies are supported for network IP interfaces on hybrid ports. The behavior is similar to the existing behavior for network IP interfaces on network ports. It supports per IP interface ingress classification and policing, and egress marking (only EXP marking for MPLS traffic).
Network QoS (type = port) policies are supported for hybrid ports. The behavior is similar to existing behavior for network ports. It supports per port ingress classification and policing, and egress marking (dot1p and/or DSCP marking) for IP control packets.
SAP ingress QoS policies are supported for SAPs configured on hybrid ports. The behavior is similar to existing behavior for access SAP ingress. It supports per SAP ingress classification and policing.
For marking traffic sent out of SAPs and IP traffic sent out of IP interfaces configured on hybrid ports, the user must use the network QoS policy of the port type, with an option to mark dot1p, DSCP, or both.
Note:See Remark policies for more information about dot1p and IP DSCP marking.
QoS policies for hybrid ports on 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE
This section provides an overview of QoS policy support on hybrid ports:
Network queue policies are supported for queue configuration of egress queues on hybrid ports. The egress queues are shared by traffic sent out of SAPs and network IP interfaces configured on hybrid ports.
Network QoS (type = ip-interface) policies are supported for network IP interfaces on hybrid ports. The behavior is similar to the existing behavior for network IP interfaces on network ports. It supports per IP interface ingress classification and policing, and egress marking (only EXP marking for MPLS traffic).
Network QoS (type = port) policies are supported for hybrid ports. The behavior is similar to existing behavior for network ports. It supports per port ingress classification and policing, and egress marking (dot1p and/or DSCP marking) for IP control packets.
SAP ingress QoS policies are supported for SAPs configured on hybrid ports. The behavior is similar to existing behavior for access SAP ingress. It supports per SAP ingress classification and policing.
For marking traffic sent out of SAPs and IP traffic sent out of IP interfaces configured on hybrid ports, users must use the network QoS policy of the port type, with an option to mark dot1p, DSCP, or both.
Note:See Remark policies for more information about dot1p and IP DSCP marking.
QoS policies for hybrid ports on 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12
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:
Network queue policies are supported for queue configuration of egress queues on hybrid ports. These egress queues are used by traffic sent out of network IP interfaces configured on hybrid port.
Network QoS (type = ip-interface) policies are supported for network IP interfaces on hybrid ports. The behavior is similar to the existing behavior for network IP interfaces on network ports. It supports per IP interface ingress classification and policing, and egress marking (only EXP marking for MPLS traffic).
Network QoS (type = port) policies are supported for hybrid ports. The behavior is similar to existing behavior for network ports. It supports per port ingress classification and policing, and egress marking (dot1p or DSCP marking). For marking IP control traffic sent out of network IP interfaces configured on hybrid port, user needs to use the network QoS policy of the port type, with an option to mark dot1p, DSCP, or both.
SAP ingress QoS policies are supported for SAPs configured on hybrid ports. The behavior is similar to the behavior for access SAP ingress, which supports per SAP ingress classification and policing.
Service egress policies are supported for queue configuration of per SAP egress queues for SAPs configured on hybrid ports. These egress queues are used by traffic sent out of SAPs configured on hybrid ports. For traffic sent out of SAPs configured in Layer 2 services, dot1p can be marked per SAP using the service egress policy. An option is provided to mark only dot1p, only IP DSCP, or both dot1p and IP DSCP, for traffic sent out of SAPs configured in Layer 3 services. One of the options can be used per port by configuring the network QoS port type policy.
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:
Network queue policies are supported for queue configuration of egress queues on hybrid ports. The egress queues are shared by traffic sent out of SAPs and network IP interfaces configured on hybrid ports, which means that per SAP service egress policies are not available for use.
For traffic sent out of SAPs (both for SAPs configured in Layer 2 services and in Layer 3 services) configured on hybrid ports, an option is provided to mark only dot1p, only IP DSCP, or both dot1p and IP DSCP. One of the options can be used per port, by configuring the network QoS port type policy.
Meters/policers
This section provides information about meters/policers
Meter/policer parameters
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:
SAP ingress policies
network QoS policies of the port type, associated with network port ingress or hybrid port ingress
network QoS policy of the ip-interface type, associated with network IP interfaces configured on the network port of hybrid ports
In access-uplink mode of operation meter/policer is available with the following:
SAP ingress policies
network QoS policy associated with access-uplink port ingress
Meter ID
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.
Committed information rate for meters
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 described 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.
Peak information rate for meters
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. See 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.
Color-aware and color-blind policers
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:
If the packet is pre-colored as in-profile (or green packets), depending on the burst size of the packet, the meter can either mark it as in-profile or out-profile.
If the packet is pre-colored as out-profile (or yellow packets), even if the packet burst is less than the current available CBS, the packet is not marked as in-profile, but remains as out-profile.
If the packet burst is higher than the MBS, the packet is marked as red and is dropped by the meter at ingress.
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.
Adaptation rule for meters
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:
minimum
Find the next multiple of step-size that is equal to or greater than the specified rate.
maximum
Find the nex t multiple of step-size that is equal to or less than the specified rate.
closest
Find the next multiple of step-size that is closest to the specified rate.
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.
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 Supported hardware rates and burst step sizes for CIR and PIR values on the 7210 SAS-Mxp, 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-T, 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.
Committed burst size (for meter/policers)
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.
See Supported hardware rates and burst step sizes for CIR and PIR values on the 7210 SAS-Mxp, 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-T for information about the burst parameter step-size.
Maximum burst size (for meter/policers)
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.
See Supported hardware rates and burst step sizes for CIR and PIR values on the 7210 SAS-Mxp, 7210 SAS-R6, 7210 SAS-R12, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-T for information about the burst parameter step-size.
Meter counters
The 7210 SAS devices maintain counters for meters within the system for granular billing and accounting. Each meter maintains the following counters:
counters for packets or octets marked as in-profile by the meter
counters for packets or octets marked as out-of-profile by the meter
optional counter for dropped and forwarded packets and octets is supported
Meter modes
The 7210 SAS devices support the following meter modes:
srtcm - Single Rate Three Color Marking
trtcm - Two Rate Three Color Marking
trtcm1 - Two Rate Three Color Marking1 (applicable only for service ingress QoS policies)
trtcm2 - Two Rate Three Color Marking2 (applicable only for service ingress QoS policies)
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.
QoS overrides for meters/policers
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.
Configuration guidelines for QoS override
The configuration guidelines for QoS override are as follows:
QoS override commands can be used only for the meters or policers defined in the SAP ingress policy.
The 7210 SAS does not support SAP ingress queues.
QoS override commands are not allowed when the attached policy is of an exclusive type.
QoS override commands are not allowed on mirror destination SAPs.
QoS override commands are not allowed when ToD is attached to the SAP.
On 7210 SAS devices configured in access-uplink mode, QoS override commands are not supported for ingress and egress QoS policies used with access-uplink SAPs and ports.
QoS override commands are not supported for ingress and egress QoS policies used with network IP interfaces and network ports.
On the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12, QoS override commands are not supported for SAP-egress queues configured in the SAP-egress QoS policies.
Configuring meter override parameters
The following is a sample meter override parameter configuration output.
*7210SAS>config>service>epipe>sap>ingress# info
----------------------------------------------
qos 13
meter-override
meter 1 create
mode trtcm2
adaptation-rule pir max cir max
cbs 300
mbs 200
rate cir 300 pir 400
exit
exit
----------------------------------------------
*A:7210SAS>config>service>epipe>sap>ingress#
Queue management
This section provides information about QoS queue management.
Queue parameters
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:
On 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T network mode:
network queue policies associated with network port or hybrid port egress
access egress policies associated with access port egress
On 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12:
network queue policies associated with network port or hybrid port egress
SAP egress policies associated with SAP egress (when SAP-based egress queuing and scheduling is enabled for use)
access egress policies associated with access port egress (when port-based egress queuing and scheduling is enabled for use)
In access-uplink mode of operation, a queue is available with the following platforms:
On the 7210 SAS-T access-uplink mode:
network queue policies associated with access-uplink port egress
access egress policies associated with access port egress
Queue ID
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 Forwarding classes.
CIR for queues
The CIR for a queue performs the following distinct functions:
minimum bandwidth guarantees
The egress queue CIR setting provides the bandwidth for this queue as compared to other queues on the port competing for a share of the available link bandwidth. The queue CIR does not necessarily guarantee bandwidth in all scenarios and also depends on factors such as CIR over-subscription and link port bandwidth capacity. For each packet in an egress queue, the CIR is checked with the current transmission rate of the queue. If the current rate is at or below the CIR threshold, the queue is considered in-profile. If the current rate is above the threshold, the queue is considered out-of-profile. This in and out profile state of queue is linked to scheduler prioritizing behavior as discussed in the following point.
scheduler queue priority metric
The scheduler that serves a group of egress queues prioritizes individual queues based on the current CIR and PIR states. Queues operating below their CIR are always served before those queues operating at or above their CIR. See QoS port scheduler policies for 7210 SAS-T, Schedulers on 7210 SAS-Mxp, and Schedulers on 7210 SAS-R6 and 7210 SAS-R12 for information about scheduler behavior.
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).
PIR for queues
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).
Adaptation rule for queues
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:
minimum
Find the hardware supported rate that is equal to or higher than the specified rate.
maximum
Find the hardware supported rate that is less than or equal to the specified rate.
closest
Find the hardware supported rate that is closest to the specified rate.
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.
Supported hardware rates and CIR/PIR values for 7210 SAS-T and 7210 SAS-Sx/S 1/10GE devices 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. Supported hardware rates and CIR/PIR values for 7210 SAS-Mxp 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. Supported hardware rates for CIR and PIR values for 7210 SAS-R6 and 7210 SAS-R12 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. Supported hardware rates and CIR/PIR values for 10-Gig port for all platforms 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. Supported hardware rates and CIR/PIR values for 7210 SAS-Sx 10/100GE 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.
CBS and MBS for queues
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 4 |
1458 4 |
|
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 |
Buffer pools
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.
Buffer pools on 7210 SAS-T
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 toward other ports. The following sections provides more information about these two modes.
Buffer pool allocation - per port MBS pool (7210 SAS-T)
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 toward 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 toward the CBS (Committed burst size) and each port is allocated with a shared pool of buffers toward the MBS (Maximum Burst Size). The queue’s CBS portion of buffers guarantees that the queue does not starve because of lack of buffers.
The buffers allocated toward 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.
Buffer pool allocation - per node MBS pool (7210 SAS-T)
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 toward 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 because of lack of buffers.
The buffers allocated toward 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 use 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.
On the 7210 SAS-T (network mode and access-uplink mode) with either a per-port MBS pool or a per-node MBS pool, system internal ports — such as an internal loopback port used for mirroring, port loopback with mac-swap, and others — are allocated buffers. Some buffers are reserved for internal use.
Buffer pools cannot be created or deleted on the 7210 SAS.
Decommissioning ports with per port MBS pool
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.
Using decommission command for buffer allocation on 7210 SAS-T devices
Using the decommission command for buffer allocation is only supported on the 7210 SAS-T.
This feature is not supported on the 7210 SAS-Mxp.
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.
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.
Configuration guidelines for use of decommission commands on 7210 SAS-T devices
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 may 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 the 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.
A:7210SAS>config>system>res-prof>decom# info detail
----------------------------------------------
entry 15 port 1/2/1,1/2/2 to 1/1/2
entry 23 port 1/1/5 to 1/1/3
----------------------------------------------
A:7210SAS>config>system>res-prof>decom#
See the 7210 SAS-Mxp, R6, R12, S, Sx, T Basic System Configuration Guide for more information about the decommission commands.
Buffer pools on 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE
The 7210 SAS-Sx/S 1/10GE has 4 MB of buffers per node and the 7210 SAS-Sx 10/100GE has 16 MB of buffers per node (CBS and MBS); both platforms support only a single mode of operation per node MBS pool. 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 toward the per node MBS pool that is available for sharing among all the queues across all the ports of the node.
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 toward 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 use 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.
The 7210 SAS-Sx/S 1/10GE does not support per-port MBS pool mode and port decommissioning features in this release.
Buffer pools cannot be created or deleted on the 7210 SAS.
Buffer pools on 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12
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.
Queue management policies for 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12
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.
If WRED is not configured, taildrop is used.
Queue management policy parameters
The elements required to define a queue management policy are:
a unique policy ID
CBS and MBS parameters to allocate buffers to the queues
the RED slope shapes for the buffer-pool, that is, start-average, max-average, max-drop-probability settings for the high-priority and low priority RED slope
the TAF factor for the queue
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 Default CBS and MBS values for the default CBS and MBS queues on the 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12.
RED slopes in network and access-uplink mode
On 7210 SAS platforms RED slopes support is as follows:
On 7210 SAS-T (both network mode and access-uplink mode), each queue, supports a high-priority RED slope and a low-priority RED slope.
On 7210 SAS-Mxp, 7210 SAS-R6, and 7210 SAS-R12, each queue supports a high-priority RED slope and a low-priority RED slope, which are configurable using the queue-management policies.
On 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE, each queue supports a high-priority RED slope and a low-priority RED slope.
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:
The RED function keeps track of shared buffer utilization and shared buffer average utilization.
At initialization, the utilization is 0 (zero) and the average utilization is 0 (zero).
When each packet is received, the current average utilization is plotted on the slope to determine the packet’s discard probability.
A random number is generated associated with the packet and is compared to the discard probability.
The lower the discard probability, the lower the chances are that the random number is within the discard range.
If the random number is within the range, the packet is discarded which results in no change to the utilization or average utilization of the shared buffers.
A packet is discarded if the utilization variable is equal to the shared buffer size or if the used CBS (actually in use by queues, not just defined by the CBS) is oversubscribed and has stolen buffers from the shared size, lowering the effective shared buffer size equal to the shared buffer utilization size.
If the packet is queued, a new shared buffer average utilization is calculated using the time-average-factor (TAF) for the buffer pool. The TAF describes the weighting between the previous shared buffer average utilization result and the new shared buffer utilization in determining the new shared buffer average utilization. (See Tuning the shared buffer utilization calculation.)
The new shared buffer average utilization is used as the shared buffer average utilization next time a packet’s probability is plotted on the RED slope.
When a packet is removed from a queue (if the buffers returned to the buffer pool are from the shared buffers), the shared buffer utilization is reduced by the amount of buffers returned. If the buffers are from the CBS portion of the queue, the returned buffers do not result in a change in the shared buffer utilization.
A RED slope itself is a graph with an X (horizontal) and Y (vertical) axis. The X-axis plots the percentage of shared buffer average utilization, going from 0 to 100 %. The Y-axis plots the probability of packet discard marked as 0 to 1. The actual slope can be defined as four sections in (X, Y) points (as shown in the following figure):
Section A is (0, 0) to (start-avg, 0). This is the part of the slope that the packet discard value is always zero, preventing the RED function from discarding packets when the shared buffer average utilization falls between 0 and start-avg.
Section B is (start-avg, 0) to (max-avg, max-prob). This part of the slope describes a linear slope where packet discard probability increases from zero to max-prob.
Section C is (max-avg, max-prob) to (max-avg, 1). This part of the slope describes the instantaneous increase of packet discard probability from max-prob to one. A packet discard probability of 1 results in an automatic discard of the packet.
Section D is (max-avg, 1) to (100%, 1). On this part of the slope, the shared buffer average utilization value of max-avg to 100% results in a packet discard probability of 1.
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.
Tuning the shared buffer utilization calculation
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.
Slope policies for 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-Sx 10/100GE devices
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:
access egress pool on access ports
network egress pool (in network mode) on network ports and hybrid ports
access uplink egress pool (in access uplink mode) on access ports
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:
access egress pool on access ports
network egress pool on network ports and hybrid ports
By default, each queue on the port is associated with slope-policy default, which disables the high-slope and low-slope.
If WRED is not configured, taildrop is used.
Slope policy parameters
The elements required to define a slope policy are:
a unique policy ID
on 7210 SAS-T, 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE, only two slopes per queue is available
the high and low RED slope shapes for the buffer pool: settings for the high-priority and low-priority RED slopes
All slopes are available per queue and the following parameters are configurable for each slope:
start-avg
max-avg
max-prob
Time average factor (TAF)
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% |
CPU queues
The packets that are destined for 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 for 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.
Schedulers
This section provides information about QoS schedulers.
Scheduler modes on 7210 SAS-T
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:
Strict priority scheduling across CoS queues
The strict priority scheduler provides strict priority access to the egress port across the CoS queue from highest CoS queue index (7) to the lowest (0). The purpose of the strict priority scheduler is to provide lower latency service to the higher CoS classes of traffic. In this mode, the scheduler services the queues in order of their prority in both the CIR and PIR loop.
As described in the following table, CoS queues 7 and 6 each have a minimum bandwidth specification of 10 Mbps, whereas the remaining QoS queues have a minimum bandwidth specification of 50 Mbps. All CoS queues have a maximum bandwidth specification of 1 Gbps.
The goal of these settings is to guarantee the minimum bandwidth settings for each of the queues while also allowing each CoS queue to fully use the egress port capability by having the maximum bandwidth setting at 1 Gbps. The strict priority scheduler mode provides low latency service for CoS queues 6 and 7 while their minimum bandwidth guarantees are being satisfied.
Table 41. Minimum and maximum bandwidth meters example 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
Round robin scheduling across CoS queues
The round robin scheduler mode provides round robin arbitration across the CoS queues. The scheduler visits each backlogged CoS queue, servicing a single packet at each queue before moving on to the next one. The purpose of the round robin scheduler is to provide fair access to the egress port bandwidth (at a packet level). This works best when packet sizes are approximately comparable. In this mode, the scheduler services the queues in round-robin for both the CIR and the PIR loop.
Weighted round robin (WRR)
In WRR mode, the scheduler provides access to each CoS queue in round robin order.When the scheduler is providing access to a particular queue, it services a configurable number of back-to-back packets before moving on to the subsequent CoS queue. A value of strict is used to designate that a particular queue be considered to be a part of a hybrid Strict + WRR configuration.
The values 1 to 15 are used to indicate the number of back-to-back packets to be serviced when the scheduler is servicing a particular CoS queue. If the weight specified is N, but if the number of packets in the queue is lesser than N, the scheduler continues working and moves on to the next backlogged queue. In this mode, with no strict queues configured, the scheduler services the queues in round robin in the CIR loop. The configured weights are not considered in the CIR loop. The weights are used only in the PIR loop.
Weighted deficit round robin (WDRR) scheduling
An inherent limitation of the WRR mode is that bandwidth is allocated in terms of packets. WRR works well if the average packet size for each CoS queue flow is known.WDRR aims at addressing this issue. WDRR provides a bandwidth allocation scheduler mode that takes into account the variably-sized packet issue by maintaining sufficient state information when arbitrating across the CoS queues. In this mode, with no strict queues configured, the scheduler services the queues in round-robin in the CIR loop.
The configured weights are not considered in the CIR loop. The weights are used only in the PIR loop. A weight value of 1 to 15 can be configured for each queue. Based on the weights provided respective amount of bytes is de-queued from the queue. A value of 0 is used to designate that a particular queue be considered to be a part of a hybrid Strict + WDRR configuration. If a weight value of 1 is given for queue 1 and 5 is given for queue 2, we see traffic out of the port in the ratio of 1:5 between the queues (1 and 2), provided no traffic is flowing in the other queues. A weight value of 1 will actually pump out 2Kbytes from that queue, a value of 5 will pump out 10 Kbytes. Twice of the weight value given will be pumped out.
Strict + WRR/WDRR
If the WRR/WDRR weight associated with a particular CoS queue is set to strict, the queue is considered to be in a strict priority mode. This set of strict priority queues is serviced first in the order of their CoS numbering (higher numbered CoS queue receives service before smaller numbered queues). In this mode, the scheduler services the strict queues first and then the queues configured with weights in both the CIR and PIR loop. The scheduler ensures that it meets the CIR of all the queues (both strict queues and queues with weight), if bandwidth is available before scheduling the queues in the PIR loop. If multiple queues are configured as strict, the higher-priority strict queues are serviced first before the lower priority strict queues in both the CIR and the PIR loop. The weights configured for the queues are only considered during the PIR loop.
Port scheduler policies for 7210 SAS-T
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.
Schedulers on 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE
The 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE support port-based scheduling with the following:
per-port egress scheduler for access port
per-port egress scheduler for network and hybrid ports
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.
Schedulers on 7210 SAS-Mxp
7210 SAS-Mxp supports scheduling as follows:
When SAP-based scheduling mode is enabled, the following support is available:
per-SAP egress scheduler for access port and hybrid port.
per-port egress scheduler for network and hybrid port.
When port-based scheduling mode is enabled, the following support is available:
per-port egress scheduler for access port.
per-port egress scheduler for network and hybrid port.
See the Schedulers on 7210 SAS-Mxp chapter for more information about scheduling behavior and to understand the queue parameters considered by the scheduler.
Schedulers on 7210 SAS-R6 and 7210 SAS-R12
The 7210 SAS-R6 and 7210 SAS-R12 support scheduling as follows.
When SAP-based scheduling mode is enabled, the following support is available:
per-SAP egress scheduler for access port and hybrid port
per-port egress scheduler for network and hybrid port
When port-based scheduling mode is enabled, the following support is available:
per-port egress scheduler for access port
per-port egress scheduler for network and hybrid port
See Schedulers on 7210 SAS-R6 and 7210 SAS-R12 for more information about scheduling behavior and queue parameters considered by the scheduler.
Configuration notes
The following information describes QoS implementation restrictions:
Creating additional QoS policies is optional.
Default policies are created for service ingress, access service egress, network, network-queue, slope, and port scheduler.
Associating a service or access uplink or IP interface or network ports with a QoS policy other than the default policy is optional.