This chapter provides information about Quality of Service (QoS) policy management.
The 7210 SAS devices are designed with ingress and egress QoS mechanisms to support multiple services for each physical port. The 7210 SAS devices provide extensive and flexible capabilities to classify, police, queue, shape, and mark traffic.
Note: Not all QoS capabilities are supported on all 7210 SAS platforms. The following chapters describe what is supported on different 7210 SAS platforms. |
In the Nokia service router service model, a service is provisioned on the provider-edge (PE) equipment. Service data is encapsulated and then sent in a service tunnel to the far-end Nokia service router where the service data is delivered.
The operational theory of a service tunnel is that the encapsulation of the data between the two Nokia service routers behave like a Layer 2 path to the service data; however, the data is really traversing an IP or IP/MPLS core. The tunnel from one edge device to the other edge device is provisioned with encapsulation, and the services are mapped to the tunnel that most appropriately supports the service needs.
The 7210 SAS supports the following FCs, internally named: Network-Control, High-1, Expedited, High-2, Low-1, Assured, Low-2, and Best-Effort. See Forwarding Classes for more information about the FCs.
The 7210 SAS supports the use of different types of QoS policies to handle the specific QoS needs at each point in the service delivery model within the device. QoS policies are defined in a global context in the 7210 SAS and only take effect when the policy is applied to an entity.
QoS policies are uniquely identified with a policy ID number or name. Typically, Policy ID 1 or Policy ID “default” is reserved for the default policy, which is used if no policy is explicitly applied. There are a few instances where the default QoS policy uses a different ID.
The QoS policies supported on the 7210 SAS can be divided into the following main types:
When configured to operate in access-uplink mode, 7210 SAS-M and 7210 SAS-T QoS policies are applied on service ingress, access port egress, and access-uplink port ingress and egress. These policies allow users to configure the following:
Several types of QoS policies exist:
Service-ingress, access-egress, and network QoS policies are defined with a scope of either template or exclusive. Template policies can be applied to multiple entities (such as SAPs and ports); exclusive policies can only be applied to a single entity.
One service-ingress QoS policy can be applied to a specific SAP. And 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.
Table 5 describes the major functions performed by the QoS policies.
Note: Not all policies are supported on all platforms. See the following sections and chapters for more information. |
Policy Type | Applied at… | Description | Section |
Service Ingress | SAP ingress |
| |
Access Egress | Access port |
| |
Network | Access-uplink port |
| |
Network Queue | Access-uplink port |
| |
Slope | Access ports and access-uplink ports |
| |
Port scheduler | Access ports and access-uplink ports |
| Port Scheduler Policies for 7210 SAS-M, 7210 SAS-T, 7210 SAS-Sx 10/100GE, and 7210 SAS-Sx/S 1/10GE |
QoS policies are applied on service ingress, access port egress, network port ingress and egress, and on network IP interface ingress when configured to operate in network mode.
These policies allow user to configure the following:
Several types of QoS policies exist:
Service-ingress, access-egress, and network QoS policies are defined with a scope of either template or exclusive. Template policies can be applied to multiple entities (such as SAPs and ports) whereas exclusive policies can only be applied to a single entity.
One service-ingress QoS policy can be applied to a specific SAP access-egress policy. One access-egress QoS policy can be applied to the access port. One network QoS policy can be applied to a specific IP interface or network port, based on the type of network QoS policy, when operating in network mode. One network QoS policy can be applied to an access-uplink port when operating in access-uplink mode. A network QoS policy defines both ingress and egress behavior. One network queue policy can be applied to the network port or a access-uplink port.
If no QoS policy is explicitly applied to a SAP, port, or interface, a default QoS policy is applied.
Table 6 describes the major functions performed by QoS policies.
Note: Not all policies are supported on all platforms. See the following sections and chapters for more information. |
Policy Type | Applied at… | Description | Section |
Service Ingress | SAP ingress |
| |
Access Egress | Access port |
| |
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 |
| Port Scheduler Policies for 7210 SAS-M, 7210 SAS-T, 7210 SAS-Sx 10/100GE, and 7210 SAS-Sx/S 1/10GE |
Remark (Only on 7210 SAS-T) | Network ports, access ports, and hybrid ports |
|
QoS policies are applied on service ingress, access port egress, network port ingress and egress, and network IP interfaces ingress when configured to operate in network mode.
These policies allow users to configure the following:
Several types of QoS policies exist:
The 7210 SAS-Mxp provides an option to use port-based queuing on access ports. This is a per-node configuration option and is mutually exclusive to the use of SAP-based egress queues (configured through service egress policies). When enabled, all SAPs on the access port share a set of 8 (eight) queues configured on the port and the access-egress policy is used to define the queue parameters for port-based queues.
Service-ingress, service-egress, access-egress, and network QoS policies are defined with a scope of either template or exclusive. Template policies can be applied to multiple entities (such as SAPs and ports); exclusive policies can only be applied to a single entity.
The following policies are supported:
If no QoS policy is explicitly applied to a SAP, port, or interface, a default QoS policy is applied.
The 7210 SAS-Mxp can operate in either the low SAP scale mode or high SAP scale mode. In low SAP scale mode, SAP and service scaling is limited by the amount of CAM resources available for the SAP-ingress policy (both classification and meters). In the high SAP scale mode, SAP and service scaling is significantly higher compared to the low SAP scale mode and use table-based classification with ingress service meters. The use of network port policies remains unchanged when the system is operating in the high SAP scale mode.
SAPs configured on ports operating in hybrid mode cannot be configured to use access-ingress QoS policies. Therefore, the access-ingress-qos port-mode option is not supported for ports configured in hybrid mode.
The following QoS policies are supported on access ports and SAPs in the low SAP scale mode:
The following QoS policies are supported on access ports and SAPs in the high SAP scale mode:
A summary of the major functions performed by the QoS policies is listed in Table 7.
Note: Not all policies are supported on all platforms. See the following sections and chapters for more information. |
Policy Type | Applied at… | Description | Section |
Service Ingress | SAP ingress |
| |
Service Egress | SAP Egress |
| |
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 |
|
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 user to configure the following:
There are several types of QoS policies:
Service ingress QoS policies are applied to the customer-facing Service Access Points (SAPs). Traffic that enters through the SAP is classified to map it to a Forwarding Class (FC). FC is associated with meters/policer on ingress. The mapping of traffic to meters can be based on combinations of customer QoS marking (IEEE 802.1p bits), IP and MAC criteria.
The characteristics of the FC meters are defined within the policy as to the number of FC meters for unicast traffic and the meter characteristics (like 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 policies.
In the case of the VPLS, four 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 in a point-to-point fashion within the service.
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 given port. An access egress QoS policy maps the traffic egressing out on the customer facing ports into various queues and marks the traffic accordingly.
The FCs are mapped onto the queues. There are 16 queues at the port level (8 for unicast and 8 for multicast). FC-to-queue mapping is static and is not configurable. The number of queues is not user configurable and software allocates 16 queues at the port level. An access egress policy also defines how to remark the FC to packet header bits (e.g. IEEE 802.1p bits in the Layer 2 VLAN header, and others.).
On 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE, there are two types of network QoS policies, one applied to a network IP interface and the other is applied 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 and/or dot1p values for IP traffic to be transmitted into the core network.
Network queue policies are applied on egress to network ports or hybrid ports when operating in network mode. The policies define the FC queue characteristics for these entities. The FCs are mapped onto the queues. There are 16 queues at the port level. FC-to-queue mapping is static and is not configurable. The number of queues is not user configurable and software allocates 16 queues at the port level.
The usage of QoS policies on hybrid ports is described below.
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 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 or 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 explicitly applied to a SAP, port or interface, a default QoS policy is applied.
A summary of the major functions performed by the QoS policies is listed in Table 8.
Note: Not all policies are supported on all platforms. See the following sections and chapters for more information. |
Policy Type | Applied at… | Description | Section |
Service Ingress | SAP ingress |
| |
Access Egress | Access port |
| Access Egress QoS Policies on 7210 SAS-M, 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-Sx 10/100GE |
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 |
| Port Scheduler Policies for 7210 SAS-M, 7210 SAS-T, 7210 SAS-Sx 10/100GE, and 7210 SAS-Sx/S 1/10GE |
Remark | Network Port, Access ports and Hybrid Ports |
|
The QoS mechanisms within the 7210 SAS platforms are specialized for the type of traffic on the interface. For customer interfaces, there is service ingress and access service egress traffic, and for IP interfaces, there is network ingress and network egress traffic (Figure 1).
When operating in access-uplink mode, the QoS mechanisms available are similar to network mode, expect that network ingress and network egress traffic is associated with access-uplink interfaces instead of network IP interface or network port (as shown in Figure 2).
The 7210 SAS uses the following QoS policies applied to a SAP or a network port or an access port or an access-uplink port to define queuing, queue attributes, policer/meter attributes and QoS marking interpretation.
The 7210 SAS supports the following types of network and service QoS policies:
The following information applies to QoS policies configured in network mode.
Network QoS policies (ip-interface type) define ingress FC meters and maps 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 all the unicast traffic and one for all the multipoint traffic. These meters exist within the definition of the policy. The meters only get noticed in the hardware when the policy is applied to an IP interface. It 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 network policy type ip-interface:
The required elements to be defined in a network QoS policy are:
Optional network QoS policy elements include:
Network policy ID 2 is reserved as the default network QoS policy of type IP interface. The default policy cannot be deleted or changed.
Default network QoS policy 2 is applied to all IP interfaces which do not have another network QoS policy explicitly 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 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 disabled. Table 9 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, Table 10 lists the default mapping of EXP values to FC and profile state for the default network QoS policy. Color-aware policing is supported on network ingress.
EXP Value | FC Ingress | Profile |
0 | be | Out |
1 | l2 | In |
2 | af | Out |
3 | af | In |
4 | h2 | In |
5 | ef | In |
6 | h1 | In |
7 | nc | In |
Network QoS policy of type port defines ingress FC meters and maps traffic to those 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 which cannot be deleted. These meters exist within the definition of the policy. The meters get instantiated in hardware, only when the policy is applied to a network port. It also defines the FC to DSCP and/or dot1p marking to be used for packets sent out through that port.
A network QoS policy of type port defines both the ingress and egress handling of QoS on the network port.
The following functions are defined:
The required elements to be defined in a network QoS policy of port type are:
Optional network QoS policy elements include:
Network policy ID 1 is reserved as the default network QoS policy of type port. The default policy cannot be deleted or changed.
The default network QoS policy is applied to all network ports which do not have another network QoS policy explicitly assigned.
Table 11 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 |
Table 12 lists the default mapping of dot1p/DSCP values to FC and profile state for the default network QoS policy of type port, for network ingress. Color-aware policing is supported on network ingress.
dot1p/DSCP 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 policies define ingress FC meters and maps traffic to those meters for access uplink ports. When a network QoS policy is created, it always has two meters/policers defined that cannot be deleted, one for the all unicast traffic and one for all multipoint traffic. These meters exist within the definition of the policy. The meters only get instantiated in hardware when the policy is applied to an access uplink port. It also defines the FC to priority bit marking, on the egress.
A network QoS policy defines both the ingress and egress handling of QoS on the access uplink ports. The following functions are defined:
The required elements to be defined in a network QoS policy are:
Optional network QoS policy elements include:
Network policy ID 1 is reserved as the default network QoS policy. The default policy cannot be deleted or changed. The default network QoS policy is applied to all access uplink ports which do not have another network QoS policy explicitly assigned. The network QoS policy applied at network egress (for example, on an access uplink port) determines how or if 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. Table 13 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, Table 14 lists the default mapping of dot1p values to FC and profile state for the default network QoS policy. Color-aware policing is supported on ingress for access-uplink ports.
dot1pValue | FC Ingress | Profile |
0 | be | Out |
1 | l2 | In |
2 | af | Out |
3 | af | In |
4 | h2 | In |
5 | ef | In |
6 | h1 | In |
7 | nc | In |
This section contains overview information about network queue QoS policy topics.
In 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-M, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE and 7210 SAS-Mxp operating in network mode. The system allocates a fixed number of queues for the network port and FCs are mapped to these queues. All policies uses a fixed number queues like the default network queue policy.
The number of queues allocated for a network queues policy is given below:
On 7210 SAS-M, 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-Mxp, the network queues on hybrid ports are used for MPLS traffic, IP traffic and SAP traffic sent out of IP interfaces and SAPs configured on hybrid ports.
The queue characteristics that can be configured on a per-FC basis are:
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. Table 15 describes the default network queue policy definition in network mode.
Forwarding Class | Queue | Definition |
Network-Control (nc) | Queue 8 |
|
High-1 (h1) | Queue 7 |
|
Expedited (ef) | Queue 6 |
|
High-2 (h2) | Queue 5 |
|
Low-1 (l1) | Queue 4 |
|
Assured (af) | Queue 3 |
|
Low-2 (l2) | Queue 2 |
|
Best-Effort (be) | Queue 1 |
|
In access-uplink mode of operation Network queue policies are applied on egress of access uplink ports for 7210 SAS-M and 7210 SAS-T devices operating in access uplink mode. The system allocates 8 (eight) queues for the network port and FCs are mapped to these 8 (eight) queues. All policies uses 8 (eight) queues like the default network queue policy.
The queue characteristics that can be configured on a per-FC basis are:
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. Table 16 describes the default network queue policy definition in access-uplink mode.
Forwarding Class | Queue | Definition |
Network-Control (nc) | Queue 8 |
|
High-1 (h1) | Queue 7 |
|
Expedited (ef) | Queue 6 |
|
High-2 (h2) | Queue 5 |
|
Low-1 (l1) | Queue 4 |
|
Assured (af) | Queue 3 |
|
Low-2 (l2) | Queue 2 |
|
Best-Effort (be) | Queue 1 |
|
Service ingress QoS policies define ingress service FC meters and map flows to those 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 only get instantiated in hardware when the policy is applied to a SAP. In the case where the service does not have multipoint traffic, the multipoint meters will not be instantiated.
In the simplest service ingress QoS policy, all traffic is treated as a single flow and mapped to a single meter, including all flooded traffic. The required elements to define a service ingress QoS policy are the following:
Optional service ingress QoS policy elements include:
The user has the following options when using resources for classification and policing:
Each meter or queue can have unique meter or queue parameters to allow individual policing or shaping of the flow mapped to the FC. Figure 3 shows service traffic being classified into three different FCs.
Mapping a flow to an FC is controlled by comparing each packet to the match criteria in the QoS policy. The ingress packet classification to FC requires a provisioned classification policy.
When using CAM-based classification on 7210 SAS devices, at SAP ingress users have an option to use either MAC criteria or IP criteria, or both IPv4 and MAC criteria
to allow users to use the available CAM classification resources effectively. The following options are available:
Among the above supported criteria the following can be configured together in a single policy:
Note: When specifying both MAC and IP criteria in a SAP ingress policy, only an IPv6 DSCP match is allowed. Other IPv6 fields, such as src-address and dst-address, are not allowed. |
In addition to the classification rules listed above, the user has an option to use the DEI bit for identifying the ingress profile and enabling color-aware policing. See Discard Eligibility Indicator-based (DEI-based) Classification and Marking. The packet fields that can be used as match criteria for SAP ingress classification are described in Table 17 and Table 18.
Note: To determine the resource allocation required for each of these different criteria, see Service Ingress QoS Policies. |
The IP and MAC match criteria can be very basic or quite detailed. IP and MAC match criteria are constructed from 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 which 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 MAC match criteria that can be used for an Ethernet frame depends on the frame format. See Table 19.
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). |
Table 20 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 explicitly 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 characteristics of the default policy are listed in Table 21.
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 per user needs 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 criteria used in the policy, the association of that policy to a SAP will fail. Allocation of classification entries also allocates meter resources, which are used to implement the per FC per traffic type policing function. Refer to Resource Allocation for Service Ingress QoS Policies Using CAM-based Classification for details on resource usage and allocation to SAP ingress policies.
The 7210 SAS-Mxp also provides 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 Service Ingress QoS Policies for more information.
Hierarchical ingress policing allows users to specify the amount of traffic admitted into the system per SAP. It also allows users to share the available bandwidth per SAP among the different FCs of the SAP. For example, users can allow packets classified as Internet data to use the entire SAP bandwidth when other FCs do not have traffic.
Hierarchical ingress policing provides an option to configure SAP aggregate policer per SAP on SAP ingress. Users should configure the PIR of the aggregate policer. Users can optionally configure the burst size of the aggregate policer.
The aggregate policer monitors the traffic on different FCs and determines whether the packet is forwarded to an identified profile or dropped. The final behavior of the packet is based on the operating rate of the following items:
Refer to the command description of aggregate-meter-rate command in the 7210 SAS-M, T, Mxp, Sx, S Services Guide for more information on 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 aggregate meter.
Note: Before using a per-SAP aggregate meter/policer, meter resources must be allocated using the config system resource-profile ingress-internal-tcam sap-aggregate-meter command.When the amount of resources allocated for SAP aggregate meter is changed, the node must be rebooted. The amount of resources allocated for this feature determines the number of SAPs that can use the aggregate meter/policer. Refer to the “System Resource Allocation” section in the 7210 SAS-M, T, R6, R12, Mxp, Sx, S Basic System Configuration Guide for more information. |
Service egress queues are implemented at the transition from the service core network to the service access network and is available when SAP-based egress queues and shaping is enabled, using the command configure>system>resource-profile>qos>no port-scheduler-mode. The advantages of per-service queuing before transmission into the access network are:
The sub-rate capabilities and per-service scheduling control are required to make multiple services per physical port possible. Without egress shaping, it is not possible to support more than one service per port with QoS differentiation among services. There is no way to prevent service traffic from bursting to the available port bandwidth and starving other services. For accounting purposes, per-service statistics can be logged. When statistics from service ingress queues are compared with service egress queues, the ability to conform to per-service QoS requirements within the service core can be measured.
Service egress QoS policies define egress queues and map FC flows to queues. The system allocates 8 (eight) queues to service egress by default. To define a basic egress QoS policy, the following are required:
The optional service egress QoS policy elements include specifying a remark policy that defines IEEE 802.1p priority value remarking based on FC.
In 7210 SAS-Mxp, 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 for 7210 SAS-Mxp and the Remark Policies to know about more marking behavior and options available. The user also has an option to 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 to use for all the SAPs defined on that port. See Access Egress QoS Policies on 7210 SAS-Mxp for more information.
Note:
|
Each queue in a policy is associated with one of the FCs. Each queue can have an individual queue parameters allowing individual rate shaping of the FC(es) mapped to the queue. The FC determination 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's priority is determined by the queue number, with 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.
Note: On 7210 SAS-Mxp, only unicast traffic sent out of RVPLS SAPs uses per-SAP egress queues. BUM traffic sent out of RVPLS SAPs uses per-port egress queues. |
Service egress QoS policy ID 1 is reserved as the default service which do not have another service egress policy explicitly assigned. The characteristics of the default policy are listed in Table 22.
Item | Definition |
Queue 1-8 | 1 (one) queue defined for each traffic class |
Queue 8 |
|
| |
| |
| |
| |
Queue7 |
|
| |
| |
| |
| |
Queue 6 |
|
| |
| |
| |
| |
Queue 5 |
|
| |
| |
| |
| |
Queue 4 |
|
| |
| |
| |
| |
Queue 3 |
|
| |
| |
| |
| |
Queue 2 |
|
| |
| |
| |
| |
Queue 1 |
|
| |
| |
| |
| |
Default Action | All FCs are mapped to corresponding Queues and dot1p values are marked as follows: |
This section describes the access ingress QoS policies supported on the 7210 SAS-Mxp.
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 is 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, the user also has an option 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, CBS and MBS, and so on.
Define the following to configure a basic access ingress QoS policy:
Access ingress QoS policy ID 1 is reserved as the default policy for access ports to which an access ingress policy is not explicitly assigned. Table 23 lists the characteristics of the default policy.
Item | Definition |
Meter 1 | 1 (one) meter all unicast traffic:
|
Meter 9 | 1 (one) meter all multicast traffic:
|
Default FC (be) | 1 (one) flow defined for all traffic:
|
This section describes access-egress QoS policies.
An access egress policy defines the access port queues, the FC (FC) to queue mapping, and the marking characteristics for the traffic egressing towards the customer on the access ports. By configuring appropriate queue shaping rates the individual FC traffic can be managed so that each FC traffic is well within SLA limits and does not impact the serviceability of other FCs.
The number of queues available per access port on different 7210 platforms is as given below:
To define a basic access egress QoS policy, the following are required:
On the 7210 SAS-M, 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. It can be enabled by the remarking command with options to remark dot1p/dscp/both present under access-egress context.
The following options are available on different platforms.
The FC determination per service egress packet is determined at ingress. If the packet ingressed the service on the same router, the service ingress classification rules determine the FC of the packet.
The FC is determined as follows for network mode and access-uplink mode:
Access egress QoS policy ID 1 is reserved as the default for access ports that do not have another access egress policy explicitly assigned. The characteristics of the default policy are listed in Table 24.
Characteristic | Item | Definition | |
Queues | Queue 1-8 | 1 (one) queue defined for each traffic class | |
Network-Control (nc) | Queue 8 |
| |
| |||
| |||
High-1 (h1) | Queue7 |
| |
| |||
| |||
Expedited (ef) | Queue 6 |
| |
| |||
| |||
High-2 (h2) | Queue 5 |
| |
| |||
| |||
Low-1 (l1) | Queue 4 |
| |
| |||
| |||
Assured (af) | Queue 3 |
| |
| |||
| |||
Low-2 (l2) | Queue 2 |
| |
| |||
| |||
Best-Effort (be) | Queue 1 |
| |
| |||
| |||
Flows | Default Action | All FCs are mapped to corresponding Queues and dot1p values are marked as follows: | |
In-Profile | Out-Profile | ||
Network-Control (nc) | 7 | 7 | |
High-1 (h1) | 6 | 6 | |
Expedited (ef) | 5 | 5 | |
High-2 (h2) | 4 | 4 | |
Low-1 (l1) | 3 | 3 | |
Assured (af) | 2 | 2 | |
Low-2 (l2) | 1 | 1 |
On 7210 SAS-Mxp, the users have an option to use either port-based egress queuing and shaping or SAP-based egress queuing and shaping for SAPs configured on access ports or hybrid ports. The command configure>system> resource-profile>qos>port-scheduler-mode lets users select the mode for SAPs configured on all the ports of the node (in other words, this is a per node setting).
On 7210 SAS-Mxp platforms, an access egress policy provides different functionality based on the queuing mode in use as described in the following sections.
When SAP-based egress queues are in use, 7210 SAS-Mxp supports SAP-based marking for access SAPs and port-based egress marking on access ports. SAP-based marking is only supported for Layer 2 SAPs, that is, SAPs configured in Epipe and VPLS service.
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 (that is, SAPs configured in VPRN services and IES services). In other words, SAP-based marking is not supported for Layer 3 SAPs.
On 7210 SAS-Mxp, no explicit CLI command is provided to choose between port-based marking and SAP-based marking for Layer 2 SAPs. The user can 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.
A remarking policy can be defined for each access egress policy and remarking is disabled by default. Only remarking policy of type dot1p, dot1p-lsp-exp-shared, dscp or dot1p-dscp can be used with access-egress policy. The following is the marking behavior with different remark policy types (see the note below):
Note:
|
Access egress QoS policy ID 1 is reserved as the default access egress policy. The default policy cannot be deleted or changed. The default access egress policy is applied to all access ports which do not have another access egress policy explicitly assigned. By default sap-qos-marking is enabled.
On 7210 SAS-Mxp, when port-based queues are enabled, in addition to marking values, the access egress QoS policy provides an option to define port-based queues and scheduling.
When port-scheduler-mode is enabled, software uses 8 (eight) egress queues per access port or hybrid port and all the SAPs configured on the port will 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 for more information.
Additionally, the marking values used to mark traffic from different FCs is defined by the remark policy in the access egress policy. In other words, per SAP marking cannot be used when port-based queuing mode is used. A remarking policy can be defined for each access egress policy and remarking is disabled by default. Only remarking policy of type dot1p, dot1p-lsp-exp-shared, dscp or dot1p-dscp can be used with access-egress policy. The following list provides the marking behavior with different remark policy types.
Note:
|
On 7210 SAS-Mxp, access egress QoS policies define egress queues and map FC flows to queues, if port-scheduler-mode is enabled. In port-scheduler-mode, the system allocates 8 (eight) queues to access port egress by default. To define a basic access egress QoS policy, the following are required:
Optional service egress QoS policy elements include specifying a remark policy that defines IEEE 802.1p priority value remarking based on FC.
On 7210 SAS-Mxp, when port-based queuing is used, the FC to queue map is fixed and the queue's priority is determined by the queue number, with 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.
The queue override for access egress QoS policies feature 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 is supported on the 7210 SAS-Mxp.
Queue override support on access egress ports allows the user to override queue parameters such as adaptation rule, percent CIR and PIR rates, queue management policy, queue mode, CIR and PIR rates, and queue weight. See Queue Parameters for parameter descriptions.
When the queue override feature is not used, queue parameters for the port are taken from the access egress QoS policy assigned to the port.
Queue override commands are supported on all Ethernet access ports.
Refer to the 7210 SAS-M, T, R6, R12, Mxp, Sx, S Interface Configuration Guide for CLI command descriptions of the queue override parameters.
The following is a sample queue override parameter configuration output.
This policy allows the user to define the FC to egress marking values. Based on the packet encapsulation used to send out the service packets, the remark policy allows the user to define and associate appropriate policies to service egress and network egress QoS policies.
The 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-Sx 10/100GE network Mode supports the following types of remark policies:
Each of these remark policy type can be associated with only appropriate QoS policies as listed above.
The required elements to define a remark QoS policy are:
See the Remark Policies chapter for more information.
The 7210 SAS supports port egress rate limiting. This features allows the user to limit the bandwidth available on the egress of the port to a value less than the maximum possible link bandwidth. It also allows the user to control the amount of burst sent out.
7210 SAS devices support multiple FCs and class-based queuing, so the concept of FCs is common to all of the QoS policies.
Each FC (also called Class of Service (CoS)) is important only in relation to the other FCs. an FC provides 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, described in Table 25.
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 |
Table 25 describes the default definitions for the FCs. The FC behavior, in terms of ingress marking interpretation and egress marking, can be changed by a Network QoS Policies in Network Mode. All FC queues support the concept of in-profile and out-of-profile.
There are 8 (eight) FCs supported on 7210 SAS devices. Each of these FC is mapped to a specific queue. By mapping FC to different queues the differential treatment is imparted to various classes of traffic.
In 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 or the queue ID. Only the queue parameters can be changed. The queue-id is not a configurable entity and queue ID 1 to 8 are, by default, used to identify these 8 (eight) queues available on the port. Queue parameters for these 8 (eight) queues can be configured as part of the access egress QoS policy which is applied on the access uplink ports (only in access-uplink mode) and network queue policy which is applied on the access network ports and hybrid ports.
The queue ID 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 system defined map is described in Table 26.
FC-ID | FC Name | FC Designation | Unicast Queue-ID |
7 | Network control | NC | 8 |
6 | High-1 | H1 | 7 |
5 | Expedited | EF | 6 |
4 | High-2 | H2 | 5 |
3 | Low-1 | L1 | 4 |
2 | Assured | AF | 3 |
1 | Low-2 | L2 | 2 |
0 | Best-Effort | BE | 1 |
There are 8 FCs supported on the device. Each of these FC is mapped to two queues, one used for unicast traffic mapped to the FC and another used for multicast/BUM traffic mapped to the FC. By mapping 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 on all ports of 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 which is applied on the access ports and network queue policy which is applied on the network ports and hybrid ports.
The queue ID 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 system defined map is described in Table 27.
FC-ID | FC Name | FC Designation | Unicast Queue-ID | Multicast Queue-ID |
7 | Network control | NC | 8 | 8 |
6 | High-1 | H1 | 7 | 7 |
5 | Expedited | EF | 6 | 6 |
4 | High-2 | H2 | 5 | 5 |
3 | Low-1 | L1 | 4 | 4 |
2 | Assured | AF | 3 | 3 |
1 | Low-2 | L2 | 2 | 2 |
0 | Best-Effort | BE | 1 | 1 |
Services are configured with default QoS policies. Additional policies must be explicitly created and associated. There is one default service ingress QoS policy, one default access egress QoS policy, two default network QoS policy (one each for network QoS policy of type ip-interface and of type port) and two default port scheduler policy. 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 ports (the support for QoS policy association is different on different 7210 platforms as explained in the sections above).
When you create a new QoS policy, default values are provided for most parameters with the exception of the policy ID, descriptions. Each policy has a scope, default action, a description, and 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-M and 7210 SAS-T (based on the service supported in the particular mode of operation):
QoS policies can be applied to the following service types on 7210 SAS-Mxp in SAP-based egress queuing mode. SAP egress policies are not supported when port-based egress queuing mode is configured.
QoS policies can be applied to the following entities:
QoS policies allow operators to prioritize traffic according to the FC and uses congestion management to control access ingress, access egress, and network traffic (network port or access-uplink port), enqueuing packets according to their priority (color).
An overview of QoS policy support on hybrid ports is described below. For more details refer to the following chapters.
An overview of QoS policy support on hybrid ports is described below. For more details refer to the following chapters.
The usage of QoS policies on hybrid ports is described below:
An overview of QoS policy support on hybrid ports is described below. Refer to the 7210 SAS-M, T, Mxp, Sx, S Quality of Service Guide for more information.
The following policies are available when SAP-based queues is enabled.
When port-based queues are enabled for SAPs, the QoS policies available for use with hybrid port is the same as above, with the following exceptions:
Note: If DSCP marking or both is specified, traffic sent out of SAPs configured in a Layer 2 services, are not marked with IP DSCP. |
This section provides information about meters/policers
This section describes the meter parameters available for meter. Meters are available for use in both network mode and access-uplink mode with the following policies.
In network mode of operation meter/policer is available with the following:
In access-uplink mode of operation meter/policer is available with the following:
The meter ID is used to uniquely identify the meter. The meter ID is only unique within the context of the QoS policy within which the meter is defined.
The committed information rate (CIR) for a meter is the long term average rate at which traffic is considered as conforming traffic or in-profile traffic. The higher the rate, the greater the throughput user can expect. The user will be able to burst above the CIR and up to PIR for brief periods of time. The time and profile of the packet is decided based on the burst sizes as explained in the following sections.
When defining the CIR for a meter, the value specified is the administrative CIR for the meter. The 7210 SAS devices have a number of native rates in hardware that it uses to determine the operational CIR for the meter. The user has some control over how the administrative CIR is converted to an operational CIR should the hardware not support the exact CIR and PIR combination specified. Refer to the interpretation of the administrative CIR in Adaptation Rule for Meters.
The CIR for meter is provisioned on service ingress and network ingress within service ingress QoS policies and network QoS policies, respectively.
The peak information rate (PIR) defines the maximum rate at which packets are allowed to exit the meter. It does not specify the maximum rate at which packets may enter the meter; this is governed by the meter's ability 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 it uses to determine the operational PIR for the meter. The user has some control over how the administrative PIR is converted to an operational PIR should the hardware not support the exact CIR and PIR combination specified. Refer to the interpretation of the administrative PIR in Adaptation Rule for Meters.
The PIR for meter is provisioned on service ingress and access uplink port or network port ingress within service ingress QoS policies and network QoS policies, respectively.
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 due to hardware capabilities.
The hardware rate step-size is listed in Table 28.
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 16384 | 1024000 | 524288 |
The system attempts to find the best operational rate depending on the defined constraint. The supported constraints are listed below:
Table 29 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 then the operation rate configured on hardware would be 648 kbps, regardless of the constraint used.
Note: The burst size configured by the user 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, then the system uses a rate step size of 16 Kbits and a burst step size of 8192 bits (see Table 28, row 2). If the meter is a srTCM meter, then 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, then 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, then the CIR rate and CBS burst parameters are considered together to determine the step-size to use for CIR and CBS parameters, and the PIR (EIR) rate and MBS (EBS) burst parameters are considered together to determine the step-size to use for PIR (EIR) and MBS (EBS) parameters. |
The committed burst size 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 then the packets are marked as in-profile by the meter to indicate that the traffic is complying meter configured parameters.
The operational CBS set by the system is adapted from the user configured value by using the minimum constraint.
Note: See Table 28 for information about the burst parameter step-size. |
For trTCM, the maximum burst size parameter specifies the maximum burst size that can be transmitted by the source at the PIR while complying with the PIR. If the transmitted burst is lower than the MBS value then 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 then 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 then packets are marked as red are dropped.
The operational MBS set by the system is adapted from the user configured value by using the minimum constraint.
Note: See Table 28 for information about the burst parameter step-size. |
The 7210 SAS devices maintains the following counters for meters within the system for granular billing and accounting. Each meter maintains the following counters:
The 7210 SAS devices supports following meter modes:
In srtcm the CBS and MBS Token buckets are replenished at single rate, that is, CIR where as in case of trtcm CBS and MBS buckets are individually replenished at CIR and PIR rates, respectively. trtcm1 implements the policing algorithm defined in RFC2698 and trtcm2 implements the policing algorithm defined in RFC4115.
The 7210 SAS devices support color-aware policing at network ingress, whereas at service ingress a policing option is provided to use either color-aware policing or color-blind policing. In color-aware policing users can define the color of the packet using the classification and send the colored packets to the meter. A color-aware meter treats the packets according to the color defined.
The profile marked by the meter is used to determine the packet’s eligibility 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 are used to 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, the profile can also be assigned on service (or SAP) ingress by using DSCP classification policy to set FC and profile.
Support for the QoS override feature on an access SAP allows the user to override the meter parameters such as CBS, MBS, rate (CIR and PIR), mode, and adaptation rule (CIR and PIR) at the SAP context.
When meter parameter values are not overridden, the values are taken from the SAP ingress policy. That is, QoS override is not used.
Meter override commands are supported on all types of access SAP.
The configuration guidelines of QoS override are as follows.
The following is a sample meter override parameter configuration output.
This section provides information about QoS queue management.
This section describes the queue parameters available for queue. Queues are available for use in both network mode and access-uplink mode with the following policies.
In network mode of operation, queue is available with the following platforms:
In access-uplink mode of operation, a queue is available with the following platform:
The queue ID is used to uniquely identify the queue. The queue ID is only unique within the context of the QoS policy within which the queue is defined. On 7210 SAS M, the queue ID is not a user configurable entity but the queue ID is statically assigned to the 8 (eight) queues on the port according to FC-QID map table listed in Table 25.
The committed information rate (CIR) for a queue performs two distinct functions:
Queues at the egress never mark the packets as in-profile or out-profile based on the queue CIR, 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 should the hardware not support the exact CIR and PIR combination specified. The interpretation of the administrative CIR is discussed below in Adaptation Rule for Queues.
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 should this behavior be required.
The CIR for a queue is provisioned on egress within access egress QoS policy.
The CIR for the network port queues (for 7210 SAS-M, 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Mxp in network mode) and access-uplink port queues (for 7210 SAS-M and 7210 SAS-T in access-uplink mode) are defined within network queue policies based on the FC. The CIR for the network queues is specified as a percentage of the network interface bandwidth.
The peak information rate (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 governed by the queue's ability to absorb bursts. The actual transmission rate of a egress queue depends on more than just its PIR. Each queue is competing for transmission bandwidth with other queues. Each queue's PIR, CIR and the relative priority and/or weight of the scheduler serving the queue, all combine to affect a queue's ability to transmit packets.
The PIR is provisioned on egress queues within access egress QoS policies.
The PIR for network queues are defined within network queue policies based on the FC. The PIR for the network queues is specified as a percentage of the network interface bandwidth.
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 should the hardware not support the exact CIR and PIR values specified. The interpretation of the administrative PIR is discussed below in 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 the queue will be created on 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 due to hardware implementation trade-offs.
For the CIR and PIR parameters individually, the system will attempt to find the best operational rate depending on the defined constraint. The supported constraints are:
Depending on the hardware upon which the queue is provisioned, the actual operational CIR and PIR settings used by the queue depend on the method the hardware uses to implement and represent the mechanisms that enforce the CIR and PIR rates.
The 7210 SAS uses a single rate step value to define the granularity for both the CIR and PIR rates. The adaptation rule controls the method the system uses to choose the rate step based on the administrative rates defined by the rate command.
Table 30 lists the supported hardware rate steps that correspond to the CIR and PIR ranges between 0 and 1 Gbps on 7210 SAS-M, 7210 SAS-T, and 7210 SAS-Sx/S 1/10GE Devices. Table 31 lists the supported hardware rate steps that correspond to the CIR and PIR range values between 0 to 1 Gbps for the 7210 SAS-Mxp. Table 32 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.
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 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 |
To illustrate how the adaptation rule constraints 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 will be 96 Kbps and 152 Kbps respectively, as it is the native hardware rate greater than or equal to the administrative CIR and PIR values.
If the adaptation rule is maximum, the operational CIR and PIR values will be 88 Kbps and 144 Kbps.
If the adaptation rule is closest, the operational CIR and PIR values will be 88 Kbps and 152 Kbps, respectively, as those are the closest matches for the administrative values that are even multiples of the 8 Kbps rate step.
The committed burst size and maximum burst size (CBS and MBS) parameters specify the amount of buffers reserved for a queue and up to how much of buffers a queue can contend for in the shared buffer space respectively that can be drawn from the reserved buffer portion of the queue’s buffer pool. Once the reserved buffers for a given queue have been used, the queue contends with other queues for additional buffer resources up to the maximum burst size.
On 7210 SAS-M, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-T, CBS for the queues is not configurable entity for the access, network ports and access uplink ports. The CBS value for the queues is set to appropriate default values which takes care of specific FC needs in terms of maintaining the differential treatment.
On 7210 SAS-Mxp, the CBS and MBS for the queues are configurable entities for the service egress queues and network port queues. The CBS and MBS value for the queues is set to appropriate default values which takes care of specific FC needs in terms of maintaining the differential treatment. Table 33 lists the default values.
Platform | CBS (KBytes) | MBS (KBytes) | ||
Network Queue and Access-uplink Queue | Access Queue | Network Queue and Access-uplink Queue | Access Queue | |
SAS-T (MBS Pool = Node) | 1.68 | 1.68 | See 1 | See 1 |
SAS-T (MBS Pool = Port) | 3.375 | 3.375 | See 1 | See 1 |
SAS-M | 8.4 | 8.4 | See 2 | See 2 |
SAS-Mxp | 128 | 10 | 256 | 64 |
Notes:
The available buffer space is partitioned into buffer pools. The buffers for a queue are allocated from the available buffer pool.
This section provides information about the following topics:
The 7210 SAS devices, when operating in network mode and access-uplink mode, support either one or both of the two modes of buffer pool allocation for port egress queues - per port MBS pool and per node MBS pool. The buffer pools take care of the buffer requirements at the port level for various queue shaping/ scheduling mechanisms. In addition, in per port MBS pool mode, an option is provided to decommission the port and allocate its buffers towards other ports. The following sections provides more information about these two modes.
When the decommission entries are not configured, during system initialization, based on the maximum number of ports supported on the device, the total buffer is distributed into per port egress buffer pool for access ports, network ports, access-uplink ports and hybrid ports. Each port on the system gets an equal portion of the available buffers. From the buffers allocated to a port, each queue gets its CBS amount of buffers. The remaining buffers are allocated towards the shared MBS pool per port. All the queues of the port can use the buffers from the shared MBS pool. This model of buffer pool allocation is called per port MBS pool.
With the per port MBS pool, each queue is allocated with a small fixed amount of buffers towards the CBS (Committed burst size) and each port is allocated with a shared pool of buffers towards the MBS (Maximum Burst Size). The queue’s CBS portion of buffers guarantees that the queue does not starve due to lack of buffers.
The buffers allocated towards the MBS pool, allow each port to handle some amount of burst. Per port MBS pool/portion of buffers is shared by all the queues of the port and allows any queue or a small group of queues of the port to absorb larger bursts assuming that, not all the queues receive burst simultaneously. In a typical network, the router/switch in the ingress traffic is usually a mix of packets of different sizes and different flows burst at different time intervals, which allows for better burst absorption capability per queue using shared resources.
In the per node MBS pool mode, each of the queue on a port, is allocated a CBS amount of committed buffers. The remaining amount of buffers is allocated towards the MBS pool that is available for sharing among all the queues across all the ports of the node. The queue’s CBS portion of buffers guarantees that the queue does not starve due to lack of buffers.
The buffers allocated towards the node’s MBS pool, allows each port to handle some amount of burst. Per port MBS pool of buffers is shared by all the queues of the port and allows any queue or a group of queues across multiple ports to absorb larger bursts, assuming that not all the queues on all the ports receive burst simultaneously. In a typical network, the router/switch in the ingress traffic is usually a mix of packets of different sizes and different flows burst at different time intervals, which allows for better burst absorption capability per queue using shared resources.
The hardware implements an algorithm to handle requests for allocation of buffers from the MBS pool (in both models) assuming that not all the ports and queues burst at the same time. This allows some queues to utilize a larger portion of the buffers when it is available, allowing them to handle larger bursts. At the same time, the algorithm ensures that all the queues get fair share of the buffers, so that the throughput on those ports is not affected.
When hardware receives a packet, before it decides to queue up the packet on the egress queue of the destination port, it determines the discard threshold for the queue based on the oversubscription factor and the total amount of free buffers available at that point of time.
The queue’s discard threshold is higher if the amount of free buffers available is larger (which indicates other queues on the node have lesser congestion), allowing the queue to absorb larger bursts. The queue’s discard threshold is lower if there are fewer free buffers available (which indicates that other queues are heavily congested on the node), which results in the packet being dropped. At the same time, algorithm allocates the available free buffers to queues which are using lesser amount of buffers or not using any buffers. This allows equal sharing of available buffers and maintains a good throughput for less congested queues.
On 7210 SAS-M (in both access-uplink mode and network mode), 4MB of buffers are available and by default per port MBS pool is used. Per node MBS pool of buffers is not supported
On 7210 SAS-T (in both access-uplink and network mode), 2MB of buffers are available and by default per node MBS pool is used and an option is available to user to change it to per port MBS pool.
Note:
|
To allow operators better control over which ports get larger portion of queue buffers, the operator is provided with an option to use per-port MBS pool (like what is available on 7210 SAS-M) and decommission ports. The decommissioning of ports is only allowed when the node is booted with the option to use per-port MBS pool.
With the decommissioning feature, the user is provided with an option to make efficient use of the available port egress queue buffer pool by allocating queue buffers of the unused ports to in-use ports. It allows the user to specify the unused front-panel ports which cannot be used to deploy any services. The software does not allocate any queue buffers to these unused ports and assigns it to a specific port or a group of ports. The user is provided with a CLI command to decommission a port and make it unavailable to deploy services. This mechanism allows operators who use limited number of ports to deploy services, to increase the amount of queue buffers allocated to them by decommissioning ports that will not be used to deploy any services.
Note:
|
This feature enables the user to make efficient use of the available port egress queue buffer pool by allocating queue buffers of the unused ports to ports. Services cannot be configured on the unused ports as software takes away all the queue buffer resources from these ports that need increased amount of buffers to handle larger bursts. This allows the operators who use limited number of ports to deploy services, to increase the amount of queue buffers allocated to them by decommissioning ports that are not used to deploy services.
The amount of credit of queue buffers received by a port is used to increase the MBS portion of the buffer pool of the port. This allows any queue on the port to use the buffers, if needed. The CBS portion of the queue is not modified with this feature.
Note: The system has to be rebooted after decommissioning of ports for the queue buffers to be reallocated and the configuration to take effect. |
The users have an option to specify the groups of ports which receive the credit of queue buffers freed up using the decommission command. With this option, the user can specify a port or group of ports which receives the credit of queue buffers. For example, it is possible for the user to configure decommissioning of 4 fixed copper ports and allocate the freed queue buffers to the remaining copper ports in the system or decommission 5 fiber ports and allocate the freed up queue buffers to the 10G XFP ports, and so on. This mechanism allows the operators to provide higher amount of queue buffers to a specific port or a group of ports, allowing them to pick and choose ports that need the extra buffers for burst absorption.
The user is allowed to increase the per port MBS pool limit so that more buffers are available to absorb larger bursts, at the cost of decommissioning ports which are not used to configure services.
The configure system resource-profile decommission entry CLI command allows the user to configure the list of ports to be decommissioned and the list of ports that need more buffers. The system does not allocate any packet buffers to the ports which are decommissioned. For more information, see the CLI command description for details on the functionality provided by the command.
Packet buffers are added to the MBS pool of the port (the MBS pool is shared by the 8 (eight) queues on the port) and the CBS portion of the queues are not modified.
The user can modify the list of ports or update to the list of ports specified with the decommission command (and also entry command) when the node is up, but the changes are effected by software only after a reboot of the 7210 SAS-M node.
The software maintains two lists of entries, one is the current list of ports and another which has been modified by the user and takes effect only after the next reboot. These lists can be displayed using the show command. The configuration file always stores the list of entries as configured by the user, so that when rebooted the modified entries and new entries (if any) takes effect.
A port must be in administrative down (shutdown) state before it is in a decommission entry. An attempt to configure a port which is administratively up (no shutdown) state results in an error. The administrative state or the operational state of the port is not affected by configuring the port in a decommission entry.
The decommissioned port cannot be used in any service configuration or as a loopback port. An attempt to do so results in an error.
The decommissioned port must not be configured with BOF parameter, ‘no-service-ports’.
Buffer allocation to a port should is possible for access ports, network ports or hybrid ports. In other words, irrespective of port mode, it is possible to assign more buffer resources to the port.
The user needs to ensure that enough buffers are available for the internal loopback ports or front-panel ports assigned for loopback. It is not recommended to take away buffers allocated to these ports and assign it to other ports. This might cause unintended behavior of the system. The system software does not check for this, but expects users to ensure this through proper configuration.
During system boot up, while executing the commands in the configuration file software checks if the no-service-ports are configured under the decommission entries. If there is match, software throws an error and stops execution of further commands in the configuration file. When this happens, user needs to correct the configuration file or the BOF file, to either remove the ports from the decommission entries or not configure them as no-service-ports in the BOF, save the BOF file or the configuration file based on where the change was made and reboot the node.
On 7210 SAS-T, the decommission command takes affect only if the per port MBS pool is in use, that is, the user needs to configure the configure system resource-profile qos mbs-pool port CLI command, before using the decommission port feature.
The following configuration sample shows the ports to be decommissioned and the ports that need more buffers.
Note: Refer to the 7210 SAS-M, T, R6, R12, Mxp, Sx, S Basic System Configuration Guide for more information about the decommission commands. |
The 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE has 4MB of packets buffers and it supports only a single mode of operation, per node MBS pool, in this release. In this mode, the MBS pool is shared across all queues on all ports. In the per node MBS pool mode, each of the 16 egress queues available on a port, is allocated a CBS amount of committed buffers. The remaining amount of buffers is allocated towards the per node MBS pool that is available for sharing among all the queues across all the ports of the node.
Note: The system internal ports, such as internal loopback ports used for mirroring, port loopback with mac-swap, and others, are allocated with some buffers. Some buffers are reserved for system internal use (for example, CPU queues). |
The amount of buffers remaining after allocating buffers for system internal use is available for allocation towards MBS buffers for all egress queues and per node MBS pool.
The hardware implements an algorithm to handle requests for allocation of buffers from the MBS pool assuming that not all the ports and queues burst at the same time. This allows some queues to utilize a larger portion of the buffers when it is available, allowing them to handle larger bursts. At the same time, the algorithm ensures that all the queues get fair share of the buffers, so that the throughput on those ports are not affected. When the hardware receives a packet, before it decides to queue up the packet on the egress queue of the destination port, it determines the discard threshold for the queue based on the oversubscription factor and the total amount of free buffers available at that point of time.
The queue’s discard threshold is higher, if the amount of free buffers available is larger (which indicates other queues on the node have lesser congestion), allowing the queue to absorb larger bursts. The queue’s discard threshold is lower, if there is lesser amount of free buffers available (which indicates that other queues are heavily congested on the node), which results in the packet being dropped. At the same time, algorithm allocates the available free buffers to queues which are using lesser amount of buffers or not using any buffers. This allows equal sharing of available buffers and maintains a good throughput for less congested queues.
Note:
|
The 7210 SAS-Mxp has 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 allows the user to define the queue buffer and WRED slope parameters. The device supports a single buffer pool per node. All the queues created in the system are allocated buffers from this system pool. The default buffers are allocated to the queues accordingly when they are associated with a SAP or a network port.
Queue management policies allow the user to define the CBS, MBS and WRED parameters for use by the queue. The CBS and MBS parameters are used to allocate the appropriate amount of buffers from the system pool to the queues. The WRED parameters allow the user to define the WRED slope characteristics.
You can define a high-slope and a low-slope for each of the queues. High-slope is used for in-profile packets being enqueued into the queues and low-priority slope is used for out-of-profile packets being enqueued into the queues. By default each queue is associated with a default queue-management policy. The default policy allocates the appropriate amount of CBS and MBS buffers based on whether the queue is associated with a SAP or network port.
Note: If WRED is not configured, taildrop is used. |
The elements required to define a queue management policy are:
Queue management policy ID default is reserved for the default queue management policy. The default policy cannot be deleted or changed. The default policy is implicitly applied to all queues which do not have another queue management policy explicitly assigned. Table 34 lists the default values for the default slope policy for the 7210 SAS-Mxp.
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% |
On 7210 SAS platforms RED slopes support is as follows:
The high-priority RED slope manages access to the shared portion of the buffer pool for high-priority or in-profile packets. The low-priority RED slope manages access to the shared portion of the buffer pool for low-priority or out-of-profile packets. The non-TCP slope manages access to the shared portion of the buffer pool for non-TCP packets (such as MPLS packets received on network ingress).
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.
The percentage of the buffers that are to be reserved for CBS buffers is configured by the software (cannot be changed by user). This setting indirectly assigns the amount of shared buffers on the pool. This is an important function that controls the ultimate average and total shared buffer utilization value calculation used for RED slope operation. The CBS setting can be used to dynamically maintain the buffer space on which the RED slopes operate.
When a queue depth exceeds the queue’s CBS, packets received on that queue must contend with other queues exceeding their CBS for shared buffers. To resolve this contention, the buffer pool uses two RED slopes to determine buffer availability on a packet by packet basis. A packet that was either classified as high priority or considered in-profile is handled by the high-priority RED slope. This slope should be configured with RED parameters that prioritize buffer availability over packets associated with the low-priority RED slope. Packets that had been classified as low priority or out-of-profile are handled by this low-priority RED slope.
The following is a simplified overview of how a RED slope determines shared buffer availability on a packet basis:
Plotting any value of shared buffer average utilization will result in a value for packet discard probability from 0 to 1. Changing the values for start-avg, max-avg and max-prob allows the adaptation of the RED slope to the needs of the access or network queues using the shared portion of the buffer pool, including disabling the RED slope.
The 7210 SAS allows tuning the calculation of the Shared Buffer Average Utilization (SBAU) after assigning buffers for a packet entering a queue as used by the RED slopes to calculate a packet’s drop probability. It implements a time average factor (TAF) parameter in the buffer policy which determines the contribution of the historical shared buffer utilization and the instantaneous Shared Buffer Utilization (SBU) in calculating the SBAU. The TAF defines a weighting exponent used to determine the portion of the shared buffer instantaneous utilization and the previous shared buffer average utilization used to calculate the new shared buffer average utilization. To derive the new shared buffer average utilization, the buffer pool takes a portion of the previous shared buffer average and adds it to the inverse portion of the instantaneous shared buffer utilization (SBU). The formula used to calculated the average shared buffer utilization is shown in Figure 5.
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
Table 35 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.
The elements required to define a slope policy are:
All slopes are available per queue and the following parameters are configurable for each slope:
A slope policy is defined with generic parameters so that it is not inherently an access or a network policy. A slope policy defines access egress buffer management properties, when it is associated with an access port buffer pool and network egress buffer management properties, when it is associated with a network port buffer pool.
Slope policy ID default is reserved for the default slope policy. The default policy cannot be deleted or changed. The default slope policy is implicitly applied to all access and network buffer pools which do not have another slope policy explicitly assigned.
Table 36 lists the default values for the default slope policy for 7210 SAS-M in network mode. Similarly, Table 37 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% | |
Non-TCP (RED) slope | Administrative State | Shutdown |
start-avg | 50% utilization | |
max-avg | 75% utilization | |
max-prob | 75% |
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% |
Note: On 7210 SAS-Mxp, queue management policies are used to configure the WRED slopes. See Queue Management Policies for 7210 SAS-Mxp for more information. |
Slope policies define the RED slope characteristics as a percentage of pool size for the pool on which the policy is applied. When 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-M and 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.
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 7210 SAS-M (network mode and access-uplink mode) access, network pools (in network mode) and access-uplink pools (in access uplink mode) are created at the port level when per port MBS pool is configured, adn creation is dependent on the physical port mode (network, access, or access uplink).
Note: If WRED is not configured, taildrop is used. |
The packets that are destined to the CPU are prioritized based on the application. Some of the applications that are prioritized are Layer 2 data packets (a copy of which is sent to CPU for MAC learning), EFM, CFM, STP, LACP, ICMP, and so on The CPU provides 8 (eight) queues from BE (0) to NC (7). The packets destined to the CPU are classified internally and are put into the correct queue.
These packets are rate-limited to prevent DoS attacks. The software programs the classification entries to identify these packets and assigns appropriate bandwidth and priority to them. It is not configurable by the user.
This section provides information about QoS schedulers.
Note: See the Schedulers on 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE chapter for information about using schedulers on the 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE. |
The scheduling modes interact with the minimum and maximum bandwidth CoS queue and maximum bandwidth egress port shaping specifications. Each egress port may be configured to have a specific scheduling mode. The scheduler first services the queues to meet their CIR and then services the queues to meet the PIR. There are five possibilities as follows:
QoS Queue Name | Minimum Bandwidth | Maximum Bandwidth |
7 | 10 Mbps | 1 Gbps |
6 | 10 Mbps | 1 Gbps |
5 | 50 Mbps | 1 Gbps |
4 | 50 Mbps | 1 Gbps |
3 | 50 Mbps | 1 Gbps |
2 | 50 Mbps | 1 Gbps |
1 | 50 Mbps | 1 Gbps |
0 | 50 Mbps | 1 Gbps |
Port scheduler policies control the traffic behavior on a per-port basis. Associated with each egress port is a set of 8 (eight) class of service (CoS) queues and a default port-scheduler-policy named “default”. This default policy makes the port to behave in strict mode. The default policy cannot be modified. The user can attach another policy to the port to change its scheduling behavior.
The scheduler that provides the arbitration across the 8 (eight) CoS queues is a scheduler that is configured in a variety of modes. A major aspect of the arbitration mechanism is the ability to provide minimum and maximum bandwidth guarantees. This is accomplished by tightly integrating a network queue and access egress policies into the scheduler. After the packets are mapped into a COS queue, they are forwarded/conditioned using one of these schedulers (such as Strict Priority (SP), Round-Robin (RR), Weighted Round-Robin (WRR), Weighted Deficit Round-Robin (WDRR), (WRR+SP, WDRR+SP). The traffic shaping aspect is tightly integrated with the scheduler.
7210 SAS-Mxp supports scheduling as follows:
See the Schedulers on 7210 SAS-Mxp chapter for more information about scheduling behavior and to understand the queue parameters considered by the scheduler.
The following information describes QoS implementation caveats: