To create a DiffServ Class/Policy and attach it to a switch interface, follow these steps:
- On the QoS Class Configuration page, create a new class with the following settings:
-
Class Name: Class1
-
Class Type: All
- Click the Class1 hyperlink to display the DiffServ Class Configuration page for this class.
- Configure the following settings for Class1:
-
Protocol Type: UDP
-
Source IP Address: 192.12.1.0.
-
Source Mask: 255.255.255.0.
-
Source L4 Port: Other, and enter 4567 as the source port value.
-
Destination IP Address: 192.12.2.0.
-
Destination Mask: 255.255.255.0.
-
Destination L4 Port: Other, and enter 4568 as the destination port value.
- Click the Apply button.
- On the Policy Configuration page, create a new policy with the following settings:
-
Policy Selector: Policy1
-
Member Class: Class1
- Click the Add button.
- Click the Policy1 hyperlink to display the Policy Class Configuration page for this policy.
- Configure the Policy attributes as follows:
-
Assign Queue: 3
-
Policy Attribute: Simple Policy
-
Color Mode: Color Blind
-
Committed Rate: 1000000 Kbps
-
Committed Burst Size: 128 KB
-
Confirm Action: Send
-
Violate Action: Drop
- On the Service Configuration page, select the check box next to interfaces 7 and 8 to attach the policy to these interfaces, and then click the Apply button. (See Configure the DiffServ service interface.)
All UDP packet flows destined to the 192.12.2.0 network with an IP source address from the 192.12.1.0 network that include a Layer 4 Source port of 4567 and Destination port of 4568 from this switch on ports 7 and 8 are assigned to hardware queue 3.
On this network, traffic from streaming applications uses UDP port 4567 as the source and 4568 as the destination. This real-time traffic is time sensitive, so it is assigned to a high-priority hardware queue. By default, data traffic uses hardware queue 0, which is designated as a best-effort queue.
Also the confirmed action on this flow is to send the packets with a committed rate of 1000000 Kbps and burst size of 128 KB. Packets that violate the committed rate and burst size are dropped.