Diffserv Class Configuration

Use the Diffserv Class Configuration page to define the criteria to associate with a DiffServ class. As packets are received or transmitted, these DiffServ classes are used to classify and prioritize packets. Each class can contain multiple match criteria.

After you select the class to configure from the Class menu, use the buttons to perform the following tasks:

To access this page, click QoS > Diffserv > Class Configuration in the navigation menu.

Click to expand in new window

Diffserv Class Configuration Fields

Field Description
Class The name of the class. To configure match criteria for a class, select its name from the menu.
Type The class type, which is one of the following:
  • All: All the various match criteria defined for the class should be satisfied for a packet match. All signifies the logical AND of all the match criteria.
  • Any: Any of various match criteria defined for the class can be satisfied for a packet match.
  • ACL: The criteria defined in the associated ACL is used to match packets. When adding a class in the Add Match Criteria window, the ACL (IP) option is available only if at least one IP ACL exists on the device. Similarly, the ACL (MAC) option is available only if at least one MAC ACL exists on the device.
L3 Protocol The Layer 3 protocol to use for filtering class types, which is either IPv4 or IPv6.
Match Criteria The type of match criteria defined for the selected class. If the Type is ACL, no information about the match criteria is available on this page.
Value The configured value of the match criteria that corresponds to the match type.

After you click Add Match Criteria, the Add Match Criteria window opens and allows you to define the match criteria for the selected class. The window lists the match criteria that are available for the class. To add match criteria, select the checkbox for the criteria type. The fields to configure the match values appear after you select the match type. Each match criteria type can be used only once within a class. If a reference class includes the match criteria type, it cannot be used as an additional match type within the class, and the match criteria type cannot be selected or configured.

Each match type other than the Reference Class includes an option to match any value within the match criteria type except the configured value. This is the Exclude option, which indicates a logical NOT for a match criteria type.

Click to expand in new window

Add Match Criteria Fields

Field Description
Any Select this option to specify that all packets are considered to match the specified class. There is no need to configure additional match criteria if Any is selected because a match will occur on all packets.
Reference Class Select this option to reference another class for criteria. The match criteria defined in the referenced class is as match criteria in addition to the match criteria you define for the selected class. After selecting this option, the classes that can be referenced are displayed. Select the class to reference. A class can reference at most one other class of the same type.
CoS (Class of Service) Select this option to require the Class of Service (CoS) value in an Ethernet frame header to match the specified CoS value.
Secondary Class of Service Select this option to require the secondary CoS value in an Ethernet frame header to match the specified secondary CoS value.
Ethertype Select this option to require the EtherType value in the Ethernet frame header to match the specified EtherType value. After you select this option, specify the EtherType value in one of the following two fields:
  • Ethertype Keyword: The menu includes several common protocols that are mapped to their EtherType values.
  • Ethertype Value: This field accepts custom EtherType values.
VLAN Select this option to require a packet's VLAN ID to match a VLAN ID or a VLAN ID within a continuous range. If you configure a range, a match occurs if a packet's VLAN ID is the same as any VLAN ID within the range. After you select this option, use the following fields to configure the VLAN match criteria:
  • VLAN ID Start: The VLAN ID to match or the VLAN ID with the lowest value within a range of VLANs.
  • VLAN ID End: The VLAN ID with the highest value within the range of VLANs. This field is not required if the match criteria is a single VLAN ID.
Secondary VLAN Select this option to require a packet's VLAN ID to match a secondary VLAN ID or a secondary VLAN ID within a continuous range. If you configure a range, a match occurs if a packet's secondary VLAN ID is the same as any secondary VLAN ID within the range. After you select this option, use the following fields to configure the secondary VLAN match criteria:
  • Secondary VLAN ID Start: The secondary VLAN ID to match or the secondary VLAN ID with the lowest value within a range of VLANs.
  • Secondary VLAN ID End: The secondary VLAN ID with the highest value within the range of VLANs. This field is not required if the match criteria is a single VLAN ID.
Source MAC Address Select this option to require a packet's source MAC address to match the specified MAC address. After you select this option, use the following fields to configure the source MAC address match criteria:
  • MAC Address: The source MAC address to match.
  • MAC Mask: The MAC mask, which specifies the bits in the source MAC address to compare against an Ethernet frame. Use F's and zeros to configure the MAC mask. An F means that the bit is checked, and a zero in a bit position means that the data is not significant.

    For example, if the MAC address is aa:bb:cc:dd:ee:ff, and the mask is ff:ff:00:00:00:00, all MAC addresses with aa:bb:xx:xx:xx:xx result in a match (where x is any hexadecimal number). Note that this is not a wildcard mask, which ACLs use.

Destination MAC Address Select this option to require a packet's destination MAC address to match the specified MAC address. After you select this option, use the following fields to configure the destination MAC address match criteria:
  • MAC Address: The destination MAC address to match.
  • MAC Mask: The MAC mask, which specifies the bits in the destination MAC address to compare against an Ethernet frame. Use Fs and zeros to configure the MAC mask. An F means that the bit is checked, and a zero in a bit position means that the data is not significant.

    For example, if the MAC address is aa:bb:cc:dd:ee:ff, and the mask is ff:ff:00:00:00:00, all MAC addresses with aa:bb:xx:xx:xx:xx result in a match (where x is any hexadecimal number). Note that this is not a wildcard mask, which ACLs use.

Source IPv6 Address Select this option to require the source IPv6 address in a packet header to match the specified values. After you select this option, use the following fields to configure the source IPv6 address match criteria:
  • Source Prefix: The source IPv6 prefix to match.
  • Source Prefix Length: The IPv6 prefix length.
Destination IPv6 Address Select this option to require the destination IPv6 address in a packet header to match the specified values. After you select this option, use the following fields to configure the destination IPv6 address match criteria:
  • Destination Prefix: The destination IPv6 prefix to match.
  • Destination Prefix Length: The IPv6 prefix length.
Source L4 Port Select this option to require a packet's TCP/UDP source port to match the specified port or the port number within a range of port numbers. If you configure a range, a match occurs if a packet's source port number is the same as any source port number within the range. After you select this option, use the following fields to configure a source port keyword, source port number, or source port range for the match criteria:
  • Protocol: Select the desired L4 keyword from the list on which the match is based. If you select a keyword, the other source port configuration fields are not available.
  • Port End: A user-defined L4 source port number to match or the source port number with the lowest value within a range of ports.
  • Port Start: The source port with the highest value within the range of ports. This field is not required if the match criteria is a single port.
Destination L4 Port Select this option to require a packet's TCP/UDP destination port to match the specified port or the port number within a range of port numbers. If you configure a range, a match occurs if a packet's destination port number is the same as any destination port number within the range. After you select this option, use the following fields to configure a destination port keyword, destination port number, or destination port range for the match criteria:
  • Protocol: Select the desired L4 keyword from the list on which the match is based. If you select a keyword, the other destination port configuration fields are not available.
  • Port End: A user-defined L4 destination port number to match or the destination port number with the lowest value within a range of ports.
  • Port Start: The destination port with the highest value within the range of ports. This field is not required if the match criteria is a single port.
IP DSCP Select this option to require the packet's IP DiffServ Code Point (DSCP) value to match the specified value. The DSCP value is defined as the high-order six bits of the Service Type octet in the IP header. After you select this option, use one of the following fields to configure the IP DSCP match criteria:
  • IP DSCP Keyword: The IP DSCP keyword code that corresponds to the IP DSCP value to match. If you select a keyword, you cannot configure an IP DSCP Value.
  • IP DSCP Value: The IP DSCP value to match.
IP Precedence Select this option to require the packet's IP Precedence value to match the number configured in the IP Precedence Value field. The IP Precedence field in a packet is defined as the high-order three bits of the Service Type octet in the IP header.
IP TOS Select this option to require the packet's Type of Service (ToS) bits in the IP header to match the specified value. The IP ToS field in a packet is defined as all eight bits of the Service Type octet in the IP header. After you select this option, use the following fields to configure the ToS match criteria:
  • IP TOS Bits: Enter a two-digit hexadecimal number to match the bits in a packet's ToS field.
  • IP TOS Mask: Specify the bit positions that are used for comparison against the IP ToS field in a packet.
Protocol Select this option to require a packet header's Layer 4 protocol to match the specified value. After you select this option, use one of the following fields to configure the protocol match criteria:
  • Protocol: The L4 keyword that corresponds to value of the IANA protocol number to match. If you select a keyword, you cannot configure a Protocol Value.
  • Protocol Value: The IANA L4 protocol number value to match.
Flow Label Select this option to require an IPv6 packet's flow label to match the configured value. The flow label is a 20-bit number that is unique to an IPv6 packet, used by end stations to signify quality-of-service handling in routers.

Click Refresh to update the page with the most current data from the switch.