Service Ingress QoS Policies

Service ingress QoS policies define ingress service forwarding class queues and map flows to those queues. When a service ingress QoS policy is created, it always has a default ingress traffic queue defined that cannot be deleted. These queues exist within the definition of the policy. The queues only get created when the policy is applied to a SAP.

In the simplest service ingress QoS policy, all traffic is treated as a single flow and mapped to a single queue. The required elements to define a service ingress QoS policy are:

Optional service ingress QoS policy elements include:

Each queue can have unique queue parameters to allow individual policing and rate shaping of the flow mapped to the forwarding class. Figure: Traffic Queuing Model for Three Queues and Three Classes depicts service traffic being classified into three different forwarding class queues.

Figure: Traffic Queuing Model for Three Queues and Three Classes

Mapping flows to forwarding classes is controlled by comparing each packet to the match criteria in the QoS policy. The ingress packet classification to forwarding class and enqueuing priority is subject to a classification hierarchy. Each type of classification rule is interpreted with a specific priority in the hierarchy.

Table: Forwarding Class and Enqueuing Priority Classification Hierarchy Based on Rule Type is given as an example for an Ethernet SAP (that is, a SAP defined over a whole Ethernet port, over a single VLAN, or over QinQ VLANs). It lists the classification rules in the order in which they are evaluated.

Table: Forwarding Class and Enqueuing Priority Classification Hierarchy Based on Rule Type

Rule

Forwarding Class

Enqueuing Priority

Comments

default-fc

Set to the policy’s default FC.

Set to the policy default

All packets match the default rule

dot1p dot1p-value

Set when an fc-name exists in the policy.

Otherwise, preserve from the previous match.

Set when the priority parameter is high or low.

Otherwise, preserve from the previous match.

Each dot1p-value must be explicitly defined. Each packet can only match a single dot1p rule. For QinQ applications, the dot1p-value used (top or bottom) is specified by the match-qinq-dot1p command.

dscp dscp-name

Set when an fc-name exists in the policy.

Otherwise, preserve from the previous match.

Set when the priority parameter is high or low in the entry.

Otherwise, preserve from the previous match.

Each dscp-name that defines the DSCP value must be explicitly defined. Each packet can only match a single DSCP rule.

The enqueuing priority is specified as part of the classification rule and is set to high or low. The enqueuing priority relates to the forwarding class queue’s high-priority-only allocation, where only packets with a high enqueuing priority are accepted into the queue once the queue’s depth reaches the defined threshold. See High-Priority-Only Buffers.

The mapping of ingress traffic to a forwarding class based on dot1p or DSCP bits is optional. The default service ingress policy is implicitly applied to all SAPs that do not explicitly have another service ingress policy assigned. The characteristics of the default policy are listed in Table: Default Service Ingress Policy ID 1 Definition .

Table: Default Service Ingress Policy ID 1 Definition

Characteristic

Item

Definition

Queues

Queue 1

One queue for all ingress traffic:

  • Forwarding Class: Best Effort (BE)

  • CIR = 0

  • PIR = max (line rate)

  • MBS = default (180 kilobytes)

  • CBS = default (8 kilobytes for 512 byte buffer size, 18 kilobytes for 2304 byte buffer size) 1

  • HP Only = default (10%)

Flows

Default FC

One flow defined for all traffic:

  • all traffic mapped to Best Effort (BE) with a low priority

1 See Table: Buffer Support on Adapter Cards and Platforms for a list of adapter cards and buffer sizes.