Overview
QoS settings operate on two levels:
Controlling the priority of outbound packets moving through the switch: Configuring a new 802.1p priority value allows you to set the outbound priority queue to which a packet is sent. For example, you can configure an 802.1p priority of 0 through 7 for an outbound packet. When the packet is sent to a port, the QoS priority determines the outbound queue to which the packet is assigned as shown in the following table:
802.1p priority settings and outbound queue assignment
802.1p priority setting Outbound port queue 1 and 2 Low priority (1) 0 or 3 Normal priority (2) 4 and 5 Medium priority (3) 6 and 7 High priority (4) (In an 802.1Q VLAN environment with VLAN-tagged ports, if QoS is not configured on the switch, but is configured on an upstream device, the priorities carried in the packets determine the forwarding queues in the switch.)
Configuring a priority for outbound packets and a service (priority) policy for use by downstream devices:
DSCP Policy: This feature enables you to set a priority policy in outbound IP packets. (You can configure downstream devices to read and use this policy.) This method is not dependent on VLAN-tagged ports to carry priority policy to downstream devices, and can:
— Change the codepoint (the upper 6 bits) in the ToS byte.
— Set a new 802.1p priority for the packet.
(Setting DSCP policies requires IPv4 inbound packets.)
802.1p priority rules: An outbound, VLAN-tagged packet carries an 802.1p priority setting that was configured (or preserved) in the switch. This priority setting ranges from 0 to 7, and can be used by downstream devices having up to eight outbound port queues. Thus, if packets within the switch move at the four priority levels shown in 802.1p priority settings and outbound queue assignment, they still can carry an 802.1p priority that can be used by downstream devices having more or less than the four priority levels in the switches covered in this guide. Also, if the packet enters the switch with an 802.1p priority setting, QoS can override this setting if configured with an 802.1p priority rule to do so.
NOTE: If your network uses only one VLAN (and therefore does not require VLAN-tagged ports), you can still preserve 802.1p priority settings in your traffic by configuring the ports as tagged VLAN members on the links between devices you want to honor traffic priorities.
Rule and policy limits: The switches covered in this guide allow up to 120 802.1p priority rules and/or DSCP policies in any combination.
You can configure a QoS priority of 0 through 7 for an outbound packet. When the packet is then sent to a port, the QoS priority determines which outbound queue the packet uses:
QoS priority settings and operation
QoS priority settings | Outbound port queue |
---|---|
1, 2 | Low priority |
0, 3 | Normal priority |
4, 5 | Medium priority |
6, 7 | High priority |
If a packet is not in a VLAN-tagged port environment, then the QoS settings in QoS priority settings and operation control only to which outbound queue the packet goes. Without VLAN tagging, no 802.1p priority is added to the packet for downstream device use. But if the packet is in a VLAN-tagged environment, then the above setting is also added to the packet as an 802.1p priority for use by downstream devices and applications (shown in Mapping switch QoS priority settings to device queues). In either case, an IP packet can also carry a priority policy to downstream devices by using DSCP-marking in the ToS byte.
Mapping switch QoS priority settings to device queues
Priority setting | Outbound port queues in the switch | 802.1p priority setting added to tagged VLAN packets exiting the switch | Queue assignment in downstream devices with: | ||
---|---|---|---|---|---|
8 queues | 3 queues | 2 queues | |||
1 | Queue 1 | 1 (low priority) | Queue 1 | Queue 1 | Queue 1 |
2 | 2 | Queue 2 | |||
0 | Queue 2 | 0 (normal priority) | Queue 3 | Queue 2 | |
3 | 3 | Queue 4 | |||
4 | Queue 3 | 4 (medium priority) | Queue 5 | Queue 3 | Queue 2 |
5 | 5 | Queue 6 | |||
6 | Queue 4 | 6 (high priority) | Queue 7 | ||
7 | 7 | Queue 8 |
NOTE: The QoS queue configuration feature can change the number of outbound port queues in the switch from four (the default) to two queues. For more information, see QoS queue configuration. | |
Classifiers for prioritizing outbound packets
NOTE: Regarding using multiple criteria: Hewlett Packard Enterprise recommends that you configure a minimum number of the available QoS classifiers for prioritizing any given packet type. Increasing the number of active classifier options for a packet type increases the complexity of the possible outcomes and consumes switch resources. | |
Packet classifiers and evaluation order
The switches covered in this guide provide six types of globally-configured QoS classifiers (match criteria) to select packets for QoS traffic marking.
Classifier search order and precedence
Search order | Precedence | Global QoS classifier |
---|---|---|
1 | 1 (highest) | UDP/TCP application type (port) |
2 | 2 | Device priority (destination or source IP address) |
3 | 3 | IP type of service (ToS): precedence and DSCP bit sets (IP packets only) |
4 | 4 | IP protocol (IP, IPX, ARP, AppleTalk, SNA, and NetBeui) |
5 | 5 | VLAN ID |
6 | 6 | Incoming source-port on the switch |
Default | 7 (lowest) | The incoming 802.1p priority (present in tagged VLAN environments) is preserved if no global QoS classifier with a higher precedence matches. |
The switch uses the lowest-to-highest search order shown in Classifier search order and precedence to identify the highest-precedence classifier to apply to any given packet. If there is only one configured type that matches a given packet, then the switch applies the QoS policy specified in that type. If multiple configured types match a given packet, the switch applies each one in turn to the packet and concludes with the QoS policy for the highest-precedence type.
If the highest-precedence classifier is configured to apply a DSCP policy, then both the DSCP in the packet and the 802.1p priority applied to the packet can be changed.
If the highest-precedence classifier is configured to apply an 802.1p priority rule, then only the 802.1 priority in the final QoS match for the packet can be changed.
NOTE: Intermixing lower-precedence types configured with DSCP policies and higher-precedence types configured with 802.1p priority rules, is not recommended, as this can result in a packet with an 802.1p priority assigned by one type and a DSCP policy by another type. This is because the search order would allow a lower-precedence type configured with a DSCP policy to change both the DSCP and the 802.1p setting in a packet, and then would allow a subsequent, higher-precedence type configured with an 802.1p priority rule to change only the 802.1p setting. To avoid this problem, a DSCP policy option should be applied only on the highest-precedence type in use on the switch, or apply to all QoS types in use on the switch. | |