All Products
Search
Document Center

Smart Access Gateway:What is a QoS policy?

Last Updated:Apr 01, 2026

Smart Access Gateway (SAG) uses quality of service (QoS) policies to classify and prioritize network traffic across applications and services. Attach a QoS policy to an SAG instance to reduce network latency, prevent congestion, and ensure business-critical applications get the bandwidth they need.

How it works

A QoS policy consists of one or more traffic throttling rules, and each traffic throttling rule consists of one or more traffic classification rules, organized in two layers:

  • Traffic classification rules — identify traffic by matching packet attributes (5-tuple or application type) and assign it to a throttling rule.

  • Traffic throttling rules — define bandwidth limits and priorities. The QoS engine processes rules in priority order and allocates bandwidth accordingly.

When traffic arrives at an SAG instance, the QoS policy inspects each packet, matches it to a classification rule, and applies the bandwidth limits of the corresponding throttling rule.

Example: To prioritize video conferencing over file backups, create two throttling rules — one for video conferencing traffic (higher priority, guaranteed bandwidth) and one for backup traffic (lower priority, limited bandwidth). Traffic that does not match any rule follows the default behavior.

Traffic classification methods

SAG supports two methods for classifying traffic:

5-tuple

A 5-tuple rule matches traffic by five network attributes:

AttributeDescription
ProtocolThe protocol of the data packets
Source CIDR blockThe source network from which packets originate
Destination CIDR blockThe destination network to which packets are sent
Source portThe port from which packets are sent
Destination portThe port to which packets are sent

When you create a 5-tuple, make sure that the values in the 5-tuple do not overlap with each other.

Application-aware classification

Use deep packet inspection (DPI) to classify traffic by application or application group — for example, to isolate video conferencing or VoIP traffic without knowing its IP addresses or ports.

Application-aware classification requires DPI to be enabled on the SAG instance. Only SAG instances with DPI enabled support this method. To enable DPI, see Manage DPI. For an overview of the DPI feature, see Overview.

The supported protocols, applications, and application groups are listed in the console. Console information takes precedence over any reference in this topic.

Get started

  1. Create a QoS policy. Define traffic throttling rules and traffic classification rules for the policy. See Create and manage a QoS policy.

  2. Attach the policy to an SAG instance. See Associate with or disassociate from an SAG instance.

Limitations

Traffic direction

SAG software versionTraffic throttled
2.3.2 or laterInbound and outbound (by default)
Earlier than 2.3.2Outbound only (by default)

Bandwidth range validation

When a QoS policy throttles traffic based on a bandwidth range, SAG does not validate whether the minimum and maximum bandwidth values meet the requirements of the attached SAG instances. Verify these values manually before applying the policy.

Quotas

ResourceLimitAdjustable
QoS policies per SAG instance1No
Traffic throttling rules per QoS policy3No
QoS policies per Alibaba Cloud account10Submit a ticket
Traffic classification rules per traffic throttling rule50Submit a ticket