Help Center Help Articles Professional Support Professional Integrators Community RMA & Warranty Downloads Tech Specs

UniFi QoS and Traffic Shaping

UniFi offers advanced Quality of Service (QoS) and Traffic Shaping tools that let you prioritize critical applications and limit nonessential traffic, helping ensure optimal performance across all connected devices. 

If you’re deploying A/V equipment and want to use pre-configured Port Profiles for Dante, Q-SYS, SDVoE, and other AV systems, refer to our guide on Pro AV Traffic Optimization on UniFi Switches.

For a full overview of UniFi’s Traffic and Policy Management capabilities, see here.

For a full overview of UniFi's Network and Cyber Security capabilities, see here.

Configuring QoS and Traffic Shaping Rules On The Gateway

In general, we recommend applying QoS and Traffic Shaping at the gateway, as it allows for granular control over all Internet-bound traffic and inter-VLAN routing. However, for deployments without a UniFi gateway—or when more localized control is needed for traffic that stays within the LAN—we also support applying QoS and traffic shaping on UniFi access points and switch ports. To do so:

  1. Navigate to QoS Rules: Follow the path depending on your UniFi Network version:
    1. Network 9.4: Settings > Policy Table > Create New Policy > QoS
    2. Network 9.3: Settings > Policy Engine > QoS > Configure
  2. Create Name: Assign a name to the rule.
  3. Select an Objective
    • Prioritize: Moves selected traffic into a higher-priority queue to improve performance.
    • Limit: Restricts selected traffic to a specific upload/download speed.
    • Prioritize and Limit: Moves selected traffic into a higher-priority queue and enforces a maximum upload/download speed.
  4. Select Interface(s): The rule can apply to a VPN Tunnel, WAN interface, or all WANs.
  5. Configure Source and Destination: The Objective configured in (2) will apply to traffic meeting all specified criteria.
    1. Source
      1. Any: Applies to any traffic originating from inside the local network.
      2. Device: Specify certain client devices.
      3. Network: Specify certain network(s) (VLANs).
    2. Destination
      1. Any: Applies to any, no matter what its destination is.
      2. App: Specify specific applications or categories of applications.
      3. IP: Specify certain IP addresses or IP address ranges, and ports associated with the destination traffic.
      4. Domain: Specify one or more domains associated with the destination traffic.
        Note: Requires the client devices to use the UniFi gateway as the DNS server.
      5. Region: Specify one or more countries associated with the destination traffic.
    3. (Optional) Set a Schedule: Set up a Schedule for when the rule should apply.
  6. Customize the rule for your desired outcome.
    • Source: Choose a Network, Device, etc.
    • Destination: Choose a specific App, Domain, IP, or Region.
  7. Click Add.

Once added, your rule will appear in the table and take effect immediately.

Example QoS Configuration

  • Bandwidth Limit Devices: Restrict specific devices or applications from consuming excessive bandwidth.
    • Objective: Limit
    • Source: Select Device
    • Destination: Select App (e.g., Windows Update)
    • Download/Upload Limits: 10 Mbps each
    • Schedule: Always
  • Prioritize Streaming Services: Improve video call or streaming stability.
    • Objective: Prioritize
    • Source: Select Device (e.g., work laptop)
    • Destination: Select App (e.g., Zoom, Netflix) or Category (Media Streaming Service)

Important Considerations for QoS Actions

Enabling QoS rules disables hardware offloading on the gateway, which may reduce maximum throughput across all clients and networks—not just those affected by the rule. The performance impact varies based on your gateway model and traffic conditions, and may reduce speeds by 24–45% for traffic exceeding 1 Gbps.

WiFi Speed Limits

  1. Navigate to Settings > Profiles > WiFi Speed Limits > Create New.
  2. Name the rule.
  3. Specify Upload and Download bandwidth limits.
  4. Click Add.
  5. Apply the bandwidth limitation to a WiFi SSID: Settings > WiFi > Select WiFi > Enable WiFi Speed Limit > Select Profile.

Switch Port Egress Limiting and DSCP Configuration

Egress Rate Limiting

  1. Navigate to the specific port, or Port Profile the configuration will apply to.
    1. Individual Port: Ports > Select a Port > Manual > Enable Egress Rate Limit.
    2. Port Profile: Settings > Profiles > Ethernet Ports > Manual > Enable Egress Rate Limit.
  2. Specify the limit.

DSCP Tags and IP Precedence

  1. Navigate to the specific port, or Port Profile the configuration will apply to.
    1. Individual Port: Ports > Select a Port > Manual > Enable QoS.
    2. Port Profile: Settings > Profiles > Ethernet Ports > Manual > Enable QoS.
  2. Specify the Protocol of traffic that should be added to this QoS queue.
  3. Select the Match Type:Match on a specific DSCP or IP Precedence value. None matches on all traffic regardless of value.
  4. Select a Code.
  5. Remark Traffic: Optionally remark matched traffic with a specific DSCP or CoS value. If not specified, forwarded traffic keeps its originally set value. 
  6. Specify a Queue: Assign matched traffic to a queue in order to prioritize it over other traffic. The queue range is 0 to 7 with 0 being the lowest priority.

If you’re deploying A/V equipment and want to use pre-configured Port Profiles for Dante, Q-SYS, SDVoE, and other AV systems, refer to our guide on Pro AV Traffic Optimization on UniFi Switches.

802.11e  / WMM Specifications for UniFi APs

All UniFi APs support 802.11e / WMM by default with the following mapping of WMM values and DSCP codes. There is no admin action required to take advantage of this traffic prioritization for latency sensitive traffic.

DSCP Range NanoHD/BeaconHD/FlexHD/IW-HD
U6-Lite/U6-LR
U7-LR
AC-Lite/AC-LR/AC-Pro
AC-M/AC-M-Pro
AC-HD/AC-SHD/UAP-XG/UWB-XG
U6-Pro/U6-IW/U6-Mesh/U6-Extender
U6-Enterprise/U6-Enterprise-IW
U6-Mesh-Pro
U7-Pro/U7-Pro-Max/U7-Pro-XG/U7-Pro-XGS
E7/E7-Campus/E7-Audience
U7-Outdoor/U7-Pro-Outdoor
U7-Pro-Wall/U7-Pro-XG-Wall
U7-Mesh/U7-IW/U7-Lite
0-7 AC_BE AC_BE
8-15 AC_BK AC_BK; AF11/12/13 --> AC_BE
16-23 AC_BK AC_BK; CS2 and AF21/22/23 --> AC_BE
24-31 AC_BE AC_BE; CS3 and AF31/32/33 --> AC_VI
32-39 AC_VI AC_VI
40-47 AC_VI AC_VI; VA44 and EF46 --> AC_VO
48-55 AC_VO AC_VO
56-63 AC_VO AC_VO
Was this article helpful?