This topic describes how to create or delete a quality of service (QoS) policy.
Create a QoS policy
Create a QoS policy that consists of traffic throttling rules and traffic classification rules. Then, Smart Access Gateway (SAG) classifies network traffic and allocates bandwidth resources based on these rules.
- Log on to the SAG console.
- In the top navigation bar, select the region where the SAG instance is deployed.
- In the left-side navigation pane, click QoS Policy.
- On the QoS Policy page, click Create QoS Policy.
- On the Create QoS Policy page, set the following parameters and click Create.
Section Parameter Description Basic Settings Resource Group Select a resource group for the QoS policy. QoS Policy Name Enter a name for the QoS policy. QoS Policy Description Enter a description for the QoS policy. Rule Rule Priority Enter a priority for the rule. If bandwidth resources are insufficient during data transmission, bandwidth resources are allocated based on the priorities of the throttling rules.
Valid values are from 1 to 3. A smaller value represents a higher priority.
Throttling Policy You can select one of the following options to create a throttling rule: - By Percentage: ensures that the percentage of bandwidth resources allocated to the specified type of service is not lower than the specified percentage.
If you select By Percentage, you must select the bandwidth type and set the minimum and maximum percentages. SAG supports the following bandwidth types:
- CCN Bandwidth: The bandwidth resources used to transfer data from the on-premises network to Alibaba Cloud.
- Total Internet Bandwidth: The bandwidth resources used to transfer data from the on-premises network to the Internet.
For example, the bandwidth used to transfer data from the on-premises network to the Internet is 20 Mbit/s, and the bandwidth required for transferring audio data to the Internet is between 10 and 15 Mbit/s. In this case, you can select Total Internet Bandwidth and create a 5-tuple. In the 5-tuple, set the minimum percentage to 50% and the maximum to 75%.
- By Bandwidth: specifies the minimum and maximum bandwidth values for a specified type of service.
Traffic Classification Rules 5-Tuple Name Enter a name for the 5-tuple. 5-Tuple Description Enter a description for the 5-tuple. Protocol Type Select a protocol for the data packets. The supported protocols provided in this topic are for reference only. The information in the console shall prevail.
Effective Period Specify the beginning and end of the validity period of the 5-tuple. Source CIDR Block Enter the source CIDR block from which the data packets are sent. Source Port Enter the source port from which the data packets are sent. Valid values: 1 to 65535 and -1.
Set the source port range in one of the following formats: 1/200 and 80/80. A value of -1/-1 specifies all ports.
Destination CIDR Block Enter the destination CIDR block to which the data packets are sent. Destination Port Enter the destination port to which the data packets are sent. Valid values: 1 to 65535 and -1.
Set the source port range in one of the following formats: 1/200 and 80/80. A value of -1/-1 specifies all ports.
Application Group Select an application group to which the 5-tuple applies. An application group may contain multiple applications. After you select an application group, the 5-tuple applies to all applications in the group.
The supported application groups provided in this topic are for reference only. The supported application groups in the console shall prevail.
Application Select an application to which the 5-tuple applies. You can select an application from the specified application group.
The supported applications provided in this topic are for reference only. The supported applications in the console shall prevail.
Note- If you select an Application Group or an Application, the QoS policy is an application-aware QoS policy. Application-aware QoS policies can be applied only to SAG instances that have the deep packet inspection (DPI) feature enabled. For more information about how to enable the DPI feature, see Manage DPI.
- If you select both an Application Group and an Application, the QoS policy is applied to all applications in the specified application group and the specified Application.
- By Percentage: ensures that the percentage of bandwidth resources allocated to the specified type of service is not lower than the specified percentage.
Delete a QoS policy
- Log on to the SAG console.
- In the top navigation bar, select the region where the SAG instance is deployed.
- In the left-side navigation pane, click QoS Policy.
- On the QoS Policy page, find the QoS policy that you want to delete and click Delete in the Actions column.
- In the Delete QoS Policy message, confirm the QoS policy and click OK.
References
- What is a QoS policy?
- CreateQos: creates a QoS policy.
- CreateQosPolicy: adds a traffic classification rule to a QoS policy.
- CreateQosCar: adds a traffic throttling rule to a QoS policy.
- DeleteQos: deletes a QoS policy.
- DeleteQosPolicy: deletes a traffic classification rule from a QoS policy.
- DeleteQosCar: deletes a traffic throttling rule from a QoS policy.