Compared with BGP (Multi-ISP), BGP (Multi-ISP) Pro lines optimize data transmission to China and improve connection quality for international services. Compared with BGP (Multi-ISP), when BGP (Multi-ISP) Pro provides services to users in mainland China (excluding data centers), cross-border connections are established by using mainland China ISP services. This reduces network latency. You can associate a BGP (Multi-ISP) Pro elastic IP address (EIP) with an Elastic Compute Service (ECS) instance. Then, users in mainland China can access web services deployed in the China (Hong Kong) region with low latency.

Prerequisites

A web service is deployed on an ECS instance in the China (Hong Kong) region. For more information, see Create an instance by using the wizard.

Background information

The following scenario is used as an example in this topic. A web service is deployed on an ECS instance in the China (Hong Kong) region. The ECS instance is associated with a BGP (Multi-ISP) EIP. Network latency is high when users in mainland China access the web service deployed in the China (Hong Kong) region.
You can associate a BGP (Multi-ISP) Pro EIP with the ECS instance. Then, users in mainland China can access the web service deployed in the China (Hong Kong) region without using international ISP services. This reduces network latency. Scenarios

Procedure

Procedure

Step 1: Purchase a BGP (Multi-ISP) Pro EIP

The following example describes how to purchase a BGP (Multi-ISP) Pro EIP that is billed on a subscription basis.

  1. Log on to the Elastic IP Address console.
  2. On the Elastic IP Addresses page, click Create EIP.
  3. On the buy page, select Subscription, and set the following parameters.
    • Region: Select the region where you want to create the EIP. In this example, China (Hong Kong) is selected.
    • Connection Type: Select the line type.

      In this example, BGP (Multi-ISP) Pro is selected.

    • Network Type: Select a network type. Internet is selected in this example.
    • Bandwidth value: Select the maximum bandwidth value as needed. 10 Mbit/s is selected in this example.
    • Name: Enter a name for the EIP.

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

    • Resource Group: Select the resource group to which the EIP belongs.
    • Quantity: Select the number of EIPs that you want to buy.
    • Service Time: Select a subscription duration.
  4. Click Buy Now and complete the payment.
  5. Click Console and return to the Elastic IP Addresses page.
After you return to the Elastic IP Addresses page, you can find the EIP that you created. The Connection Type of the EIP is BGP (Multi-ISP) Pro. BGP (Multi-ISP) Pro

Step 2: Associate the EIP with an ECS instance

You can associate the EIP with an ECS instance that is deployed in a virtual private cloud (VPC). ECS instances can communicate with the Internet after they are associated with elastic IP addresses.

Perform the following steps to associate the EIP with an ECS instance:

  1. On the Elastic IP Addresses page, find the EIP that you created in Step 1: Purchase a BGP (Multi-ISP) Pro EIP, and click Bind Resource in the Actions column.
  2. In the Bind Elastic IP Address to Resources dialog box, set the following parameters.
    • Instance Type: Select the type of the instance that you want to associate with the EIP. ECS Instance is selected in this example.
    • Binding Mode: Select a binding mode.
      Only Normal is supported. In Normal mode:
      • Both the private and public IP addresses of the ECS instance are available.
      • The EIP is not displayed in the operating system. You must call the DescribeInstances operation to query the public IP address of the ECS instance. For more information, see DescribeInstances.
      • The EIP does not support NAT application layer gateway (ALG) protocols such as H.323, Session Initiation Protocol (SIP), Domain Name System (DNS), Real Time Streaming Protocol (RTSP), or Trivial File Transfer Protocol (TFTP).
    • Select an Instance to Bind: Select an ECS instance to be associated with the EIP.
  3. Click OK.

Step 3: Test the network latency

After you associate the EIP with the ECS instance, you can test the network latency between a client in mainland China and the ECS instance that is deployed in the China (Hong Kong) region.

  1. Open the CLI on an on-premises machine that is deployed in mainland China.
  2. Run the ping command to ping the EIP that is associated with the ECS instance.
    The test result shows that the network latency is reduced when users in mainland China use the BGP (Multi-ISP) Pro EIP to access the ECS instance.
    Figure 1. Network latency between the BGP (Multi-ISP) Pro EIP and the ECS instance
    Network latency between the BGP (Multi-ISP) Pro EIP and the ECS instance
    Figure 2. Network latency between the BGP (Multi-ISP) EIP and the ECS instance
    Access services deployed in the China (Hong Kong) region
    Note The preceding test result is for reference only. The actual network latency varies based on the network quality of the ISP.

Why am I unable to associate an EIP with an ECS instance?

Possible causes:

  • You can associate an EIP with only one ECS instance that is deployed in a VPC. If the ECS instance is not deployed in a VPC, you cannot associate an EIP with the ECS instance.
  • The EIP and ECS instance are deployed in different regions.
  • The ECS instance is in a state that does not allow you to associate an EIP with the ECS instance. You can associate an EIP with only an ECS instance that is in the Running or Stopped state.
  • The ECS instance is assigned a public IP address or another EIP is associated with the ECS instance.