All Products
Search
Document Center

Global Accelerator:Accelerate access to a backend service at a specific IP address

Last Updated:Sep 24, 2026

If high latency or packet loss affects the user experience of your application, use Global Accelerator (GA) to route access requests into the Alibaba Cloud acceleration network through a nearby access point. This topic describes how to use Global Accelerator to accelerate access to a backend service at a specific IP address and improve access speed and the user experience.

Use case

A company headquartered in US (Silicon Valley) deploys an enterprise application on a self-managed server. Employees at the China (Hong Kong) office experience high latency, jitter, and packet loss when accessing the application over the unstable public network.

image

Configure Global Accelerator so that traffic from the China (Hong Kong) office reaches the US server through an accelerated IP address. The traffic enters the Alibaba Cloud acceleration network at the China (Hong Kong) access point and is forwarded to the endpoint through intelligent routing, improving access speed and the user experience.

This example uses a pay-as-you-go standard Global Accelerator instance to accelerate access to a backend service at a specific IP address. Before you purchase a pay-as-you-go standard Global Accelerator instance, note the following:

  • Pay-as-you-go GA instances use Pay-By-Data-Transfer for bandwidth billing. You do not need to associate a bandwidth package. Cloud Data Transfer (CDT) handles traffic billing.

  • The first time you use a pay-as-you-go GA instance, you must Activate the Service.

Step 1: Configure basic instance information

  1. Log on to the GA console.

  2. On the Instances page, click Create Standard Pay-as-you-go Instance.

  3. On the Basic Instance Configuration wizard page, configure the following parameters and click Next.

    Parameter

    Description

    GA Instance Name

    Enter a name for the GA instance.

    Instance Billing Method

    The default billing method is Pay-As-You-Go.

    A standard Global Accelerator instance that uses the pay-as-you-go billing method incurs instance fees, capacity unit (CU) fees, and data transfer fees.

    Resource Group

    Select the resource group to which the standard Global Accelerator instance belongs.

Step 2: Configure an acceleration area

Configure an acceleration area for the Global Accelerator instance to specify the regions where clients require accelerated access to the backend service and allocate acceleration bandwidth to those regions.

On the Configure acceleration areas page, configure the following parameters and click Next.

Parameter

Description

Acceleration Area

Select one or more regions to accelerate and click Add to List.

In this example, the China (Hong Kong) region in the Asia Pacific area is selected.

Assign Bandwidth

Maximum Bandwidth

Set the bandwidth for the acceleration region. Valid range: 2 to 10,000 Mbps per region. In this example, the default value of 200 Mbps is used.

The maximum bandwidth only limits the traffic rate. Data transfer fees are billed by CDT.

Important

If the maximum bandwidth is too low, traffic may be dropped due to speed limiting. Plan the maximum bandwidth based on your business requirements.

IP Protocol

Select the IP protocol used to access the Global Accelerator service. In this example, the default value IPv4 is used.

ISP Line Type

Select the ISP line type used to access the Global Accelerator service. In this example, BGP (Multi-ISP) is selected.

Step 3: Configure a listener

A listener listens for connection requests and distributes the requests to endpoints based on the port and the protocol that you specify. Each listener is associated with an endpoint group. You can associate an endpoint group with a listener by specifying the region to which you want to distribute network traffic. After you associate an endpoint group with a listener, network traffic is distributed to the optimal endpoint in the endpoint group.

On the Configure Listeners page, configure the following parameters and click Next.

Parameter

Description

Listener Name

Enter a name for the listener.

Routing Type

Select a routing type. In this example, Intelligent Routing is selected.

Protocol

Select a protocol for the listener. In this example, TCP is selected.

Port

Specify the listener port for receiving and forwarding requests. Valid values: 1 to 65499. In this example, port 80 is used.

Client Affinity

Specify whether to enable client affinity. When client affinity is enabled, requests from the same client can be directed to the same endpoint for stateful applications. In this example, Source IP Address is selected.

Step 4: Configure an endpoint group and endpoints

  1. On the Configure an Endpoint Group page, configure the endpoint group and endpoints based on the following information, and then click Next.

    Parameter

    Description

    Region

    Select the region where the endpoint group is deployed. In this example, US (Silicon Valley) is selected.

    Endpoint Configuration

    Configure the destination servers (endpoints) that process client requests:

    • Backend Service Type: Select Custom Public IP.

    • Backend Service: Enter the IP address of the backend service that you want to accelerate.

    • Weight: Enter a weight for the endpoint. Valid values: 0 to 255. Global Accelerator routes traffic to endpoints based on the weights that you configure. In this example, the default value of 255 is used.

    Warning

    If the weight of an endpoint is set to 0, Global Accelerator stops distributing traffic to that endpoint. Proceed with caution.

    Preserve Client IP

    Select whether to preserve client IP addresses. In this example, this feature is disabled.

    When client IP address preservation is enabled, backend servers can obtain client source IP addresses. If you enable this feature for a TCP listener, configure the backend servers as required for the backend service type. For more information, see Preserve client IP addresses.

    Traffic Distribution Ratio

    Configure the traffic ratio for different endpoint groups. In this example, the default value of 100% is used.

    Valid values: 0 to 100.

    Health Check

    Enable or disable health checks. In this example, this feature is disabled by default.

    When enabled, health checks determine the status of endpoints. For more information, see Enable and manage health checks.

  2. On the Configuration Review page, review the settings and click Submit. Creating a GA instance takes about 3 to 5 minutes.

  3. Optional: After the creation task is complete, click Go to Instance Details below the task details list. On the instance details page, view the instance configurations on tabs such as Instance Information, Listeners, and Acceleration Areas.

Step 5: Test the acceleration performance

  1. Open a command-line window on a computer in the access region, which is China (Hong Kong) in this example.

  2. Run the following command to check access latency.

    The acceleration performance of the Global Accelerator service depends on your actual business tests.
    curl -o /dev/null -s -w "time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" "http[s]://<accelerated IP>[:<port>]"

    Take note of the following parameters:

    • time_connect: The period of time that is required to establish a TCP connection. Unit: seconds.

    • time_starttransfer: The start time of data transfer. The start time refers to the amount of time from when the client sends a request to the backend server to when the first byte is sent to the client. Unit: seconds.

    • time_total: The total connection time. The total connection time refers to the period of time from the time when the client sends a request to the time when the client receives the last byte from the backend server. Unit: seconds.

(Optional) Step 6: Configure a CNAME record

If you have a domain name for your enterprise application, such as example.com, configure the following:

  • Add a CNAME record to map the domain name www.example.com to the CNAME that is assigned to the Global Accelerator instance.

  • Add an A record to map the domain name www.example.com to the IP address of the backend service in the US (Silicon Valley) region, and set the query source to North America_United States.

Alibaba Cloud DNS uses the Free Edition by default. To return DNS results based on the region of the end user, upgrade to the Enterprise Ultimate or Premium Edition. If you use a different DNS provider, follow its instructions.
  1. On the Domain Name Resolution page, find the business domain name. In the Actions column, click DNS Settings.

    If your domain name is not registered with Alibaba Cloud, add it to the Alibaba Cloud DNS console before configuring DNS records. For more information, see Add a domain name. If your domain name is registered with Alibaba Cloud, skip this step.

  2. On the Settings page, click Add Record. Add a CNAME record and an A record based on the following information and click OK.

    Parameter

    Description

    Record Type

    Select CNAME.

    Select A.

    Hostname

    Enter a prefix for your domain name. In this example, enter www.

    DNS Request Source

    Keep the default value.

    Select Region, Outside Chinese Mainland, North America, and United States in sequence.

    TTL

    The time for which DNS records are cached by DNS servers. A shorter TTL allows DNS record changes to take effect sooner across regions. In this example, the default value of 10 minutes is used.

    Value

    Enter the CNAME assigned to the Global Accelerator instance.

    On the Instances page, you can view the CNAME assigned to the Global Accelerator instance.

    Enter the IP address of the backend service in the US (Silicon Valley) region.

After configuration, employees access the enterprise application through the domain name www.example.com. US employees connect directly to the backend service in US (Silicon Valley). Employees in China (Hong Kong) and other regions are routed through Global Accelerator.

More information

You can also use the quick configuration template provided by Resource Orchestration Service (ROS) to accelerate IP-based access from clients in China (Hong Kong) to the backend service in US (Silicon Valley). Open the quick configuration template and follow the on-screen instructions to configure Global Accelerator.