Add and configure a DiffServ policy
You can add a policy, configure the type of the policy, add a member class to the policy, and then configure the policy attributes.
To add and configure a DiffServ policy:
- 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 > Policy Configuration.
The Policy Configuration page displays.
- In the Policy Name field, enter a policy name.
The policy class name can be 1 to 31 alphanumeric characters in length.
- From the Policy Type menu, select the traffic flow direction to which the policy must be applied:
-
In: The policy is applied to inbound traffic.
-
Out: The policy is applied to outbound traffic.
-
- From the Member Class menu, select an existing class that you want to associate with the new policy.
- Click the Add button.
The new policy is added.
- After creating the policy, click the policy name.
The policy name is a hyperlink.
The page that displays lets you define the policy attributes.
- Configure the policy attributes by selecting one of the following radio buttons:
-
Assign Queue: Select this radio button to specify that traffic must be assigned to a queue, which you must select from the menu. The queue is expressed as a value in the range from 0 to 7.
-
Drop: Select this radio button to require each packet to be dropped.
-
Mark VLAN CoS: Select this radio button to specify the VLAN priority, which you must select from the menu. The VLAN priority is expressed as a value in the range from 0 to 7.
-
Mark IP Precedence: Select this radio button to require packets to be marked with an IP precedence value before being forwarded. You must select an IP precedence value from 0 to 7 from the menu.
-
Mirror: Select this radio button to require packets to be mirrored to an interface or LAG, one of which you must select from the menu.
-
Redirect: Select this radio button to require packets to be redirected to an interface or LAG, one of which you must select from the menu.
-
Mark IP DSCP: Select this radio button to require packet to be marked with an IP DSCP keyword code, which you must select from the menu. The DSCP value is defined as the high-order 6 bits of the Service Type octet in the IP header.
-
Simple Policy: Select this radio button to define that matching packets are treated by a simple traffic policy, which is color blind and for which color classes do not apply.
A simple policy supports a single data rate and results in an action for packets that conforms to the policy and an action for packets that violate the policy. You can configure the action for packets that conform to the policy, but the action for packets that violate the policy is always Drop, that is, these packets are always dropped.
- Specify the traffic rate and bust size for packets that conform to the simple policy.
- Committed Rate. From the menu, select Percent or Kbps, and then specify the committed rate that is applied to conforming packets by entering a value in the range from 1 to 100 percent or from 1 to 4294967295 kilobits-per-second (Kbps). The committed rate is used to limit the arrival rate of conforming traffic.
- Committed Burst Size. Specify the burst size that is applied to conforming packets by entering a value in the range from 1 to 128 KBytes (KB). The committed burst size is used to limit the amount of conforming traffic.
- Confirm Action: Specify a policy action for packets that conform to the simple policy.
- Send: Packets are forwarded unmodified. This is the default confirming action.
- Drop: Packets are dropped.
- Mark CoS: Packets are marked by DiffServ with the specified CoS value before being forwarded. This selection requires that the Mark CoS field is set. You must select a CoS value from 0 to 7 from the menu.
- Mark IP Precedence: These packets are marked by DiffServ with the specified IP Precedence value before being forwarded. This selection requires that the Mark IP Precedence field is set. You must select an IP precedence value from 0 to 7 from the menu.
-
Mark IP DSCP: Packets are marked by DiffServ with the specified DSCP value before being forwarded. This selection requires that the DSCP field is set. You must either select a DSCP code from the menu or enter an IP DSCP value from 0 to 63 in the field next to the menu. A value that you enter in the field overrides any selection from the menu. The DSCP value is defined as the high-order six bits of the Service Type octet in the IP header.
- Violate Action: Specify a policy action for packets that violate the simple policy.
- Send: Packets are forwarded unmodified. This is the default violating action.
- Drop: Packets are dropped.
- Mark CoS: Packets are marked by DiffServ with the specified CoS value before being forwarded. This selection requires that the Mark CoS field is set. You must select a CoS value from 0 to 7 from the menu.
- Mark IP Precedence: These packets are marked by DiffServ with the specified IP Precedence value before being forwarded. This selection requires that the Mark IP Precedence field is set. You must select an IP precedence value from 0 to 7 from the menu.
-
Mark IP DSCP: Packets are marked by DiffServ with the specified DSCP value before being forwarded. This selection requires that the DSCP field is set. You must either select a DSCP code from the menu or enter an IP DSCP value from 0 to 63 in the field next to the menu. A value that you enter in the field overrides any selection from the menu. The DSCP value is defined as the high-order six bits of the Service Type octet in the IP header.
- Specify the traffic rate and bust size for packets that conform to the simple policy.
-
Two Rate: Select this radio button to define a two-rate traffic policing style for the class. A two-rate policy differs from a simple policy in that the two-rate policy allows you to define a peak rate and a peak burst size, in addition to the committed rate and committed burst size.
A two-rate policy supports two data rates and results in and action for packets that conform to the policy and an action for packets that violate the policy.
By default, the two-rate policy is color blind, and color classes do not apply.
- Specify the traffic rates and bust sizes for packets that conform to the two-rate policy.
- Committed Rate: From the menu, select Percent or Kbps, and then specify the committed rate that is applied to conforming packets by entering a value in the range from 1 to 100 percent or from 1 to 4294967295 kilobits-per-second (Kbps). The committed rate is used to guarantee the allowed bandwidth of conforming traffic.
- Committed Burst Size: Specify the burst size that is applied to conforming packets by entering a value in the range from 1 to 128 KBytes (KB). The committed burst size is used to limit the maximum number of bytes in a burst (a very short instance) of conforming traffic.
- Peak Rate: Specify the peak rate that is applied to conforming packets by entering a value in the range from 1 to 4294967295 kilobits-per-second (Kbps). The peak rate is used to limit how much a burst of conforming traffic can exceed the committed rate.
- Peak Burst Size: Specify the peak burst size that is applied to conforming packets by entering a value in the range from 1 to 128 KBytes (KB). The peak burst size is used to limit how much a burst of conforming traffic can exceed the peak rate.
- Conform Action: Specify a policy action for packets that conform to the two-rate policy.
- Send: Packets are forwarded unmodified. This is the default confirming action.
- Drop: Packets are dropped.
- Mark CoS: Packets are marked by DiffServ with the specified CoS value before being forwarded. This selection requires that the Mark CoS field is set. You must select a CoS value from 0 to 7 from the menu.
- Mark IP Precedence: These packets are marked by DiffServ with the specified IP Precedence value before being forwarded. This selection requires that the Mark IP Precedence field is set. You must select an IP precedence value from 0 to 7 from the menu.
- Mark IP DSCP: Packets are marked by DiffServ with the specified DSCP value before being forwarded. This selection requires that the DSCP field is set. You must either select a DSCP code from the menu or enter an IP DSCP value from 0 to 63 in the field next to the menu. A value that you enter in the field overrides any selection from the menu.
The DSCP value is defined as the high-order six bits of the Service Type octet in the IP header.
- Exceed Action: Specify a policy action for packets that exceed the two-rate policy.
- Send: Packets are forwarded unmodified. This is the default violating action.
- Drop: Packets are dropped.
- Mark CoS: Packets are marked by DiffServ with the specified CoS value before being forwarded. This selection requires that the Mark CoS field is set. You must select a CoS value from 0 to 7 from the menu.
- Mark IP Precedence: These packets are marked by DiffServ with the specified IP Precedence value before being forwarded. This selection requires that the Mark IP Precedence field is set. You must select an IP precedence value from 0 to 7 from the menu.
- Mark IP DSCP: Packets are marked by DiffServ with the specified DSCP value before being forwarded. This selection requires that the DSCP field is set. You must either select a DSCP code from the menu or enter an IP DSCP value from 0 to 63 in the field next to the menu. A value that you enter in the field overrides any selection from the menu.
The DSCP value is defined as the high-order six bits of the Service Type octet in the IP header.
- Violate Action: Specify a policy action for packets that violate the two-rate policy.
- Send: Packets are forwarded unmodified. This is the default violating action.
- Drop: Packets are dropped.
- Mark CoS: Packets are marked by DiffServ with the specified CoS value before being forwarded. This selection requires that the Mark CoS field is set. You must select a CoS value from 0 to 7 from the menu.
- Mark IP Precedence: These packets are marked by DiffServ with the specified IP Precedence value before being forwarded. This selection requires that the Mark IP Precedence field is set. You must select an IP precedence value from 0 to 7 from the menu.
- Mark IP DSCP: Packets are marked by DiffServ with the specified DSCP value before being forwarded. This selection requires that the DSCP field is set. You must either select a DSCP code from the menu or enter an IP DSCP value from 0 to 63 in the field next to the menu. A value that you enter in the field overrides any selection from the menu.
The DSCP value is defined as the high-order six bits of the Service Type octet in the IP header.
- Specify the traffic rates and bust sizes for packets that conform to the two-rate policy.
-
- 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 on the page.
|
Field |
Description |
|---|---|
|
Policy Name |
The name of the DiffServ policy |
|
Policy Type |
The type of the policy (In or Out) |
|
Member Class Name |
The class instances that are associated within the policy |