Add and configure a DiffServ class
You can add a new DiffServ class and define the criteria that must be associated with the DiffServ class.
To add and configure a DiffServ class:
- Open a web browser and log in to the device UI using your login details and device admin password.
The Dashboard page displays.
- Select QoS > DiffServ > Class Configuration.
The Class Configuration page displays.
- Click the Add New button.
The Add Class Configuration pop-up window displays.
- In the Class Name field, type a class name.
The class name must start with a letter and can be 1 to 31 alphanumeric characters in length.Note: The only option in the Class Type menu is All. You do not need to select this option because it is automatically applied. All means that all match criteria that you define for the class must be satisfied for a packet match. That is, 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.
- Click the Save button.
Your settings are saved and the new class is added.
- After creating the class, click the class name, which is a hyperlink.
The page adjusts and shows the Class Information section with the class name and the class type, and the DiffServ Class Configuration section.
The following steps refer to the DiffServ Class Configuration section.
- From the Class Configuration menu, select the criteria that must be associated with the DiffServ class:
- Match Every: Adds a match condition that considers all packets to belong to the class. In the field below the Class Configuration menu, the automatic selection for this option is Any.
- Reference Class: References 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.
From the menu below the Class Configuration menu, select the class to reference. A class can reference only one other class of the same type.
- Class of Service: Requires the Class of Service (CoS) value in an Ethernet frame header to match the specified CoS value.
From the menu below the Class Configuration menu, select a match criterion in the range 0 to 7.
- VLAN: Requires the packet’s VLAN ID to match a VLAN ID that you set in the VLAN field. Type a VLAN ID in the range from 1 to 4093.
- Ethernet Type: Requires the EtherType value in the Ethernet frame header to match the protocol that you select from the Ethernet Type menu. You can also select User Value from the Ethernet Type menu and, in the field to the right, type a value in the hexadecimal range from 600 to ffff.
- Source MAC: Requires the packet’s source MAC address to match the MAC address and mask that you type in the Address and Mask fields:
- Address: The source MAC address that must 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: Requires the packet’s destination MAC address to match the MAC address and mask that you type in the Address and Mask fields:
- Address: The destination MAC address that must 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: Requires the packet’s Layer 4 protocol to match the protocol that you select from the menu below the Class Configuration menu. To define an unnamed protocol, select Other from the menu and, in the field to the right, type a protocol number from 0 to 255.
- Source IP: Requires a packet’s source IP address to match the IP address and mask that you type in the Address and Mask fields:
- Address: The source IPv4 address that must match, in dotted-decimal format.
- Mask: The bit mask in IP dotted-decimal format indicating which parts of the source IPv4 address to use for matching against packet content.
- Source L4 Port: Requires the packet’s TCP/UDP source port to match the protocol that you select from the menu below the Class Configuration menu. To define a port number, select Other from the menu. Then, in the field to the right, type the port number from 0 to 65535.
- Destination IP: Requires the packet’s destination IP address to match the IP address and mask that you type in the Address and Mask fields:
- Address: The destination IPv4 address that must match, in dotted-decimal format.
- Mask: The bit mask in IP dotted-decimal format indicating which parts of the destination IPv4 address to use for matching against packet content.
- Destination L4 Port: Requires the packet’s TCP/UDP destination port to match the protocol that you select from the menu below the Class Configuration menu. To define a port number, select Other from the menu. Then, in the field to the right, type the port number from 0 to 65535.
- IP DSCP: Requires the packet’s IP DiffServ Code Point (DSCP) value to match the IP DSCP keyword code that you select from the menu below the Class Configuration menu. To define an IP DSCP value, select Other from the menu. Then, in the field to the right, type 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: Requires the packet’s IP precedence value to match the value that you select from the menu below the Class Configuration menu. You can select a value from 0 to 7.
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: Requires the packet’s Type of Service (ToS) bits in the IP header to match the value that you type in the Bit Value and Bit Type fields:
- Bit Value: Type 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: Type the bit positions that are used for comparison against the IP ToS field in a packet.
The IP ToS field in a packet is defined as all 8 bits of the service type octet in the IP header.
- To add more criteria to the DiffServ class, repeat the previous step.
You can add multiple criteria to a single DiffServ class.
- Click the Apply button.
Your settings are saved.
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 |