This topic describes how to use a basic Global Accelerator (GA) instance to accelerate content delivery and improve user experience.

Background information

Introduction to basic GA instances

You can use basic GA instances to accelerate content delivery at Layer 3 (IP protocols). To implement the acceleration, you need only to specify an acceleration area and an endpoint group.
Note You can use standard GA instances to accelerate content delivery at Layer 4 (TCP and UDP protocols) and Layer 7 (HTTP and HTTPS protocols).

Limits

  • You can add only one acceleration region for each basic GA instance and only IPv4 clients can connect to basic GA instances.
  • You cannot associate basic bandwidth plans whose bandwidth types are Enhanced with basic GA instances.
  • You can add only one endpoint group and one endpoint for each basic GA instance. The endpoint must be a Classic Load Balancer (CLB) instance or a secondary elastic network interface (ENI).
  • However, you cannot add a secondary ENI or CLB instance as an endpoint for a basic GA instance if the secondary ENI or CLB instance is associated with an elastic IP address (EIP).
  • You can associate only subscription basic bandwidth plans with basic GA instances.

Billing

Basic GA instances support only the subscription billing method.

Basic GA service fees = Instance fee + Bandwidth fee
Instance fee = Unit price of the basic GA instance (USD/month) × Subscription duration
Basic bandwidth plan fee = Unit price of the basic bandwidth plan (USD/month) × Bandwidth limit (Mbit/s) × Subscription duration
  • Instance fee: The instance fee is charged for the basic GA instance. For more information,visit the buy page.
  • Bandwidth fee: The bandwidth fee is charged for the basic bandwidth plan that is used to accelerate content delivery over the global transmission network of Alibaba Cloud. If you want to use a basic GA instance to accelerate content delivery, you must purchase a basic bandwidth plan. The price of each basic bandwidth plan varies based on the bandwidth type. For more information,visit the buy page.

Scenario

The scenario in the following figure is used as an example. An enterprise is headquartered in the China (Hangzhou) region. The enterprise deploys an application on an Elastic Compute Service (ECS) instance in a virtual private cloud (VPC). The ECS instance provides services by using an EIP that is associated with the secondary ENI of the ECS instance. Unstable network performance may cause issues such as latency, network jitters, and packet loss when users from the office in the China (Beijing) region connect to the enterprise application deployed in the China (Hangzhou) region over the Internet. Architecture

You can use a basic GA instance to allow users from the office in the China (Beijing) region to connect to the global transmission network of Alibaba Cloud by sending requests to an accelerated IP address. Then, user requests are redirected to an endpoint in the China (Hangzhou) region. This accelerates content delivery and improves user experience.

Prerequisites

Procedure

Procedure

Step 1: Purchase a basic GA instance

  1. Log on to the Global Accelerator console.
  2. In the left-side navigation pane, click Instances.
  3. On the Instances page, click Create Instance.
  4. On the buy page, set the following parameters of the instance, click Buy Now, and then complete the payment.
    Parameter Description
    Type Select the type of the GA instance.

    In this example, Basic is selected.

    Instance By default, Instance is selected.
    Duration Select a subscription duration for the GA instance.

    In this example, 1 Month is selected.

Step 2: Associate a basic bandwidth plan with the GA instance

A basic bandwidth plan provides bandwidth for data transfer over the Internet and within Alibaba Cloud. If you want to use the basic GA instance to accelerate content delivery, you must associate a basic bandwidth with the GA instance.

  1. On the Instances page, find the basic GA instance that you create and click Configure in the Basic Bandwidth column.
  2. In the Bind Basic Bandwidth Plan dialog box, select the basic bandwidth plan that you want to associate and click OK.
    In this example, a basic bandwidth plan whose bandwidth type is Standard is selected.

Step 3: Add an acceleration area

You can add an acceleration area for a basic GA instance and specify the region where the users that require the acceleration service are located.

  1. On the Instances page, find the basic GA instance and click its ID.
  2. Click the Acceleration Areas tab and then click Add Region on the China North tab.
  3. In the Add Acceleration Area dialog box, set the following parameters and click OK.
    Parameter Description
    Region Select the region where the users that require the acceleration service are located.

    In the example, China (Beijing) is selected.

    Internet Protocol Select the Internet protocol that is used by the users to connect to GA. Only IPv4 is supported.

    In this example, IPv4 is selected.

    After you add the region, GA assigns an accelerated IP address to the region. The accelerated IP address is used to accelerate content delivery for users in the region. Accelerated IP address

Step 4: Add an endpoint group

You can add an endpoint group to forward traffic to endpoints in a specified region.

  1. On the details page of the basic GA instance, click the Endpoint Group tab and then click Add Endpoint Group.
  2. In the Add Endpoint Group dialog box, set the following parameters and click OK.
    Endpoint group
    Parameter Description
    Endpoint Group Name Enter a name for the endpoint group.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.

    Region Select a region where you want to create the endpoint group. The backend service that the users want to access must be deployed in the specified region.

    In this example, China (Hangzhou) is selected.

    Endpoint Endpoints are backend services that receive and handle client requests. To add an endpoint, specify the following parameters:
    • Backend Service Type: ENI and CLB are supported.

      In this example, ENI is selected.

    • Backend Service: Select the instance ID of the backend service that you want to accelerate.
    • Weight: Specify a weight for the endpoint.

      Default value: 100.

Step 5: Verify the acceleration performance

After you configure the basic GA instance, the accelerated IP address serves as the public IP address of the backend service. Clients can connect to the global transmission network of Alibaba Cloud by sending requests to the accelerated IP address. This accelerates access to the backend service.

  1. Open the command prompt on a client in the China (Beijing) region.
  2. Run the following command to test the network latency:
    curl -o /dev/null -s -w "time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" "http[s]://<Accelerated IP address assigned by GA>"
    In the command:
    • time_connect: the period of time that it takes 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 amount of time from when the client sends a request to when the client receives the last byte from the backend server. Unit: seconds.