All Products
Search
Document Center

Anti-DDoS:Anti-DDoS Diversion overview

Last Updated:Oct 22, 2026

Anti-DDoS Diversion protects Internet Data Center (IDC) servers outside the Chinese mainland from DDoS attacks. It uses route traction to redirect inbound traffic to the Alibaba Cloud global Anycast scrubbing center, intelligently filters out attack traffic, and reinjects legitimate traffic back into your network. This topic describes Anti-DDoS Diversion.

Features

Anti-DDoS Diversion protects IDC servers outside the Chinese mainland, whether they are deployed in the cloud or on-premises. It provides DDoS protection based on public Classless Inter-Domain Routing (CIDR) blocks. Anti-DDoS Diversion defends against common network layer and transport layer DDoS attacks. Protection does not require changes to your existing business IP addresses or network architecture, and mitigation capacity can reach Tbit/s levels. Anti-DDoS Diversion is suitable for IDC servers and small Internet service providers (ISPs) outside the Chinese mainland.

Anti-DDoS Diversion consists of four parts: attack detection, traffic diversion, traffic reinjection, and mitigation reports.

  • Attack detection.

    When your service becomes abnormal or is interrupted, IDC O&M engineers diagnose and analyze the attack to confirm that the failure is indeed caused by a DDoS attack. For example, extremely high traffic suddenly appears from many different IP addresses, or a specific type of packet increases abnormally. After an attack, IDC O&M engineers must manually start diversion in the traffic security console or by calling an API.

  • Traffic diversion.

    When an attack occurs, the scrubbing center publishes Border Gateway Protocol (BGP) route update announcements to carriers worldwide. All inbound traffic sent to the protected CIDR block is automatically routed to the scrubbing center for DDoS scrubbing.

  • Traffic reinjection.

    After the Alibaba Cloud scrubbing center scrubs abnormal traffic, it sends the traffic back to your IDC through connection methods such as Generic Routing Encapsulation (GRE) tunnels and Cross Connects. This process is based on Layer 2 or Layer 2.5 forwarding in the OSI model of the TCP/IP protocol. It therefore prevents a traffic loop, which would occur if traffic were returned directly to the Internet and then attracted back to the scrubbing center.

  • Mitigation reports.

    For the various types of attack traffic that are detected and scrubbed, Anti-DDoS Diversion provides detailed attack logs and report statistics. These include pre-attack traffic information, post-scrubbing traffic information, and attack traffic volume. This helps you understand network traffic conditions.

Diversion modes

Anti-DDoS Diversion provides two diversion modes: On-demand and Always-on.

On-demand

Under normal conditions, traffic is not redirected to the scrubbing center. When a DDoS attack occurs, IDC O&M engineers manually start diversion protection to pull traffic to the scrubbing center. However, a short time window may exist between attack detection and full activation of protection, and your services may be affected to some extent during this period. This mode is suitable for businesses that are attacked relatively infrequently.

On-demand mode provides two instance types based on the number of mitigation sessions:

  • Insurance mode (2 sessions per month): provides two mitigation sessions per monthMitigation sessions. After you use up these sessions, contact Alibaba Cloud technical support to upgrade to Unlimited mode (unlimited sessions).

  • Unlimited mode (unlimited sessions): provides an unlimited number of mitigation sessions per month.

Always-on

Traffic is always redirected to the scrubbing center, which provides immediate protection when an attack occurs. However, this also means that all traffic goes through additional processing steps even when no attack occurs, which slightly increases latency. Always-on mode provides an unlimited number of mitigation sessions and costs slightly more than On-demand mode. It is suitable for businesses that are frequently attacked.

How it works

The following example uses On-demand mode with GRE tunnel reinjection.

  1. Configure a GRE tunnel between the edge router of your IDC and the Alibaba Cloud scrubbing center. Then establish a BGP peering relationship, in which the two parties communicate and exchange routing information through BGP.

  2. When the O&M engineers of your IDC detect a DDoS attack, start diversion.

  3. The Alibaba Cloud scrubbing center uses AS134963 to start advertising the CIDR block that you want to protect worldwide.

  4. In theory, inbound traffic no longer flows directly to the router of your IDC. Instead, inbound traffic is first routed to the scrubbing center to be scrubbed. Typically, rerouting takes effect for all traffic within two to three minutes. The path of outbound traffic does not change, and outbound traffic still flows directly from your IDC servers to the egress ISP.

  5. If inbound traffic still reaches your IDC directly after diversion starts, check whether Routing Assets Database (RADB) and Resource Public Key Infrastructure (RPKI) are in effect. Also check whether you and the Alibaba Cloud scrubbing center advertise subnets of the same granularity. For example, your IDC servers and Alibaba Cloud both advertise the 1.1.XX.XX/24 CIDR block. In this case, stop the border router of your IDC from sending BGP announcements of the same granularity to the ISP.

  6. After traffic arrives at the scrubbing center, traffic that reaches the configured scrubbing threshold is scrubbed. Attack traffic is filtered out, and the scrubbed traffic is forwarded back to your IDC through the GRE tunnel.

  7. After diversion protection stops, the scrubbing center no longer advertises your network prefix. If your IDC stopped sending new BGP announcements to the ISP in a previous step, make sure that you republish the route announcements before you stop Alibaba Cloud diversion.

Differences between Anti-DDoS Diversion and Anti-DDoS Proxy

Among the DDoS protection products that Alibaba Cloud provides, both Anti-DDoS Diversion and Anti-DDoS Proxy can protect IDCs deployed in the cloud or on-premises. The two products differ in the following ways:

  • Anti-DDoS Diversion mainly defends against DDoS attacks at the network layer (such as ICMP flood and UDP flood) and the transport layer (such as TCP SYN flood). Anti-DDoS Proxy covers both of these layers and also protects against DDoS attacks at the application layer (such as HTTP/HTTPS flood), which provides a more comprehensive security solution.

  • Anti-DDoS Diversion mainly secures the entire infrastructure layer and can provide basic defense support for your network. Anti-DDoS Proxy focuses more on protecting specific applications or business systems from attacks.