Add and configure a DiffServ class
You can add a DiffServ class and configure the criteria that must be associated with it.
To add and configure a DiffServ class:
- Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
The System Information page displays.
- Select QoS > DiffServ > Advanced > Class Configuration.
The Class Configuration page displays.
- In the Class Name field, enter a class name.
The Class Name field also lists all existing DiffServ class names, from which you can select one for modification or deletion. The class name can be 1 to 31 alphanumeric characters in length.
- From the Class Type menu, select one of the following options:
-
All: All match criteria that you define for the class must be satisfied for a packet match. All signifies the logical AND of all the match criteria.
For example, if the class includes one criterion for an IP address and another criterion for a MAC address, the traffic must match both criteria.
-
Any: Any match criterion that you define for the class must be satisfied for a packet match.
For example, if the class includes one criterion for an IP address and another criterion for a MAC address, the traffic must match either one of the criteria but does not need to match both criteria.
You can select the class type only when you are creating a new class. After the class is created, you cannot modify the type of class.
-
- Click the Add button.
The new class is added.
- After creating the class, click the class name.
The class name is a hyperlink to the page on which you can define the class configuration (see the following figure).
- Define the criteria that must be associated with the DiffServ class by selecting one of the following radio buttons:
-
Match Every: Select this radio button to add a match condition that considers all packets to belong to the class. The only selection from the Match Every menu is Any.
-
Reference Class: Select this radio button to reference another class for criteria. The match criteria defined in the reference class function as match criteria in addition to the match criteria that you define for the selected class. After you select the radio button, the classes that can be referenced are displayed. Select the class to reference. A class can reference only one other class of the same type.
-
Class of Service: Select this radio button to require the Class of Service (CoS) value in an Ethernet frame header to match the specified CoS value. This option lists all the values for the Class of Service match criterion in the range 0 to 7 from which you can select one.
-
VLAN: Select this radio button to require a packet’s VLAN ID to match a VLAN ID. The VLAN value is in the range from 1 to 4093.
-
Secondary Class of Service: Select this radio button to require the secondary Class of Service (CoS) value in an Ethernet frame header to match the specified secondary CoS value.
-
Secondary VLAN: Select this radio button to require a packet’s VLAN ID to match a secondary VLAN ID. The VLAN value is in the range from 1 to 4093.
-
Ethernet Type: Select this radio button to require the EtherType value in the Ethernet frame header to match the specified EtherType value. After you select the radio button, select the EtherType keyword from the menu of common protocols that are mapped to their Ethertype value. You can also select User Value from the menu and enter a value in the hexadecimal range from 600 to ffff.
-
Source MAC: Select this radio button to require a packet’s source MAC address to match the specified MAC address. After you select this radio button, use the following fields to configure the source MAC address match criteria:
-
Address: The source MAC address to match. The source MAC address is specified as six two-digit hexadecimal numbers separated by colons.
-
Mask: The MAC mask, which specifies the bits in the source MAC address to compare against the 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.
-
-
Destination MAC: Select this radio button to require a packet’s destination MAC address to match the specified MAC address. After you select the radio button, use the following fields to configure the destination MAC address match criteria:
-
Address: The destination MAC address to match. The destination MAC address is specified as six two-digit hexadecimal numbers separated by colons.
-
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.
-
-
Protocol Type: Select this radio button to require a packet’s Layer 4 protocol to match the specified protocol, which you must select from the menu. You can also select Other from the menu and enter a protocol number from 0 to 255.
-
Source IP: Select this radio button to require a packet’s source IP address to match the specified IP address. After you select the radio button, use the following fields to configure the source IP address match criteria:
-
Address: The source IP address format to match in dotted-decimal.
-
Mask: The bit mask in IP dotted-decimal format indicating which parts of the source IP address to use for matching against packet content.
-
-
Source L4 Port: Select this radio button to require a packet’s TCP/UDP source port to match the specified protocol, which you must select from the menu. You can also select Other from the menu and enter a port number from 0 to 65535.
-
Destination IP: Select this radio button to require a packet’s destination IP address to match the specified IP address. After you select the radio button, use the following fields to configure the destination IP address match criteria:
-
Address: The destination IP address format to match in dotted-decimal.
-
Mask: The bit mask in IP dotted-decimal format indicating which parts of the destination IP address to use for matching against packet content.
-
-
Destination L4 Port: Select this radio button to require a packet’s TCP/UDP destination port to match the specified protocol. You can also select Other from the menu and enter a port number from 0 to 65535.
-
IP DSCP: Select this radio button to require the packet’s IP DiffServ Code Point (DSCP) value to match the specified IP DSCP keyword code, which you must select from the menu. You can also select Other from the menu and enter an IP DSCP value from 0 to 63. The DSCP value is defined as the high-order 6 bits of the Service Type octet in the IP header.
-
Precedence Value: Select this radio button to require the packet’s IP precedence value to match the specified number from 0 to 7, which you must select from the menu. The IP Precedence field in a packet is defined as the high-order 3 bits of the Service Type octet in the IP header.
-
IP ToS: Select this radio button 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 8 bits of the service type octet in the IP header. After you select the radio button, use the following fields to configure the ToS match criteria:
-
Bit Value: Enter a two-digit hexadecimal number octet value in the range from 00 to ff to match the bits in a packet’s ToS field.
-
Bit Mask: Specify the bit positions that are used for comparison against the IP ToS field in a packet.
-
-
- Click the Apply button.
Your settings are saved.
- To save the settings to the running configuration, click the Save icon.
The following table describes the view-only fields in the Class Summary section.
|
Field |
Description |
|---|---|
|
Match Criteria |
The configured match criteria for the specified class. |
|
Values |
The values of the configured match criteria. |