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.

  1. Log on to the SAG console.
  2. In the top navigation bar, select the region where the SAG instance is deployed.
  3. In the left-side navigation pane, click QoS Policy.
  4. On the QoS Policy page, click Create QoS Policy.
  5. On the Create QoS Policy page, set the following parameters and click Create.
    SectionParameterDescription
    Basic SettingsResource GroupSelect a resource group for the QoS policy.
    QoS Policy NameEnter a name for the QoS policy.
    QoS Policy DescriptionEnter a description for the QoS policy.
    RuleRule PriorityEnter 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 PolicyYou 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 Rules5-Tuple NameEnter a name for the 5-tuple.
    5-Tuple DescriptionEnter a description for the 5-tuple.
    Protocol TypeSelect 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 PeriodSpecify the beginning and end of the validity period of the 5-tuple.
    Source CIDR BlockEnter the source CIDR block from which the data packets are sent.
    Source PortEnter 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 BlockEnter the destination CIDR block to which the data packets are sent.
    Destination PortEnter 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 GroupSelect 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.

    ApplicationSelect 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.

Delete a QoS policy

  1. Log on to the SAG console.
  2. In the top navigation bar, select the region where the SAG instance is deployed.
  3. In the left-side navigation pane, click QoS Policy.
  4. On the QoS Policy page, find the QoS policy that you want to delete and click Delete in the Actions column.
  5. In the Delete QoS Policy message, confirm the QoS policy and click OK.

References