Smart Access Gateway (SAG) supports quality of service (QoS) policies. QoS policies classify network traffic distributed across applications and services. You can use QoS policies to allocate bandwidth resources based on business requirements and improve network quality.

Overview

QoS policies can be used to reduce network latency and network congestion. You can apply a QoS policy to an SAG instance to allocate bandwidth resources based on business requirements, reduce network latency, and improve network resource usage.

A QoS policy consists of one or more traffic throttling rules. A traffic throttling rule consists of one or more traffic classification rules. A QoS policy classifies network traffic based on the traffic classification rules and allocates bandwidth resources based on the priorities of the traffic throttling rules.

You can use the following methods to create a QoS policy:
  • Create a 5-tuple
    A 5-tuple includes the following elements:
    • Protocol: The protocol of data packets. The supported protocols provided in this topic are for reference only. The information in the console shall prevail.
    • Source CIDR block: The source CIDR block from which data packets are sent.
    • Destination CIDR block: The destination CIDR block to which data packets are sent.
    • Source port: The source port from which data packets are sent.
    • Destination port: The destination port to which data packets are sent.
  • Create an application-aware classification rule

    QoS policies can use the deep packet inspection (DPI) feature to classify network traffic based on an application or an application group. The supported applications and application groups provided in this topic are for reference only. The information in the console shall prevail.

    Note To classify network traffic based on applications or application groups, you must enable the DPI feature. Only SAG instances that have the DPI feature enabled support application-aware classification rules. For more information about how to enable the DPI feature, see Manage DPI. For more information about the DPI feature, see Overview.

Procedure

  1. Create a QoS policy.

    Create traffic throttling rules and traffic classification rules for the QoS policy. For more information, see Create and manage a QoS policy.

  2. Apply the QoS policy to an SAG instance.

    Apply the QoS policy to an SAG instance. For more information, see Associate with or disassociate from an SAG instance.

Limits

  • After you apply a QoS policy to an SAG instance, the QoS policy takes effect based on the following rules:
    • If the version of the software that your SAG device uses is 2.3.2 or later, the QoS policy throttles inbound and outbound traffic by default.
    • If the version of the software that your SAG device uses is earlier than 2.3.2, the QoS policy throttles outbound traffic by default.
  • When you create a 5-tuple, make sure that the values in the 5-tuple do not overlap with each other.
  • When you create a QoS policy that throttles traffic based on a specific bandwidth range, the system does not check whether the minimum and maximum bandwidth values specified in the policy meet the bandwidth requirements of the SAG instances to which the policy applies.
  • The following table describes the limits of QoS policies.
    ItemLimitAdjustable
    The maximum number of QoS policies that can be applied to an SAG instance1N/A
    The maximum number of traffic throttling rules that can be created in a QoS policy3Not supported
    The maximum number of QoS policies that can be created in an Alibaba Cloud account10Submit a ticket
    The maximum number of traffic classification rules that can be created for a traffic throttling rule50Submit a ticket