International network connections usually have to cross lots of different Internet Service Providers(ISP).
More network vendors in between often lead to a decreased quality of service in terms of latency and packet loss.
Cross-border bandwidth demand between different geographic regions is steadily growing due to an ever increasing need of global system and application integration projects.
Often, however, the public internet bandwidth is limited and not reliable without any quality of service guarantees.
In such scenarios, Global Accelerator(GA) is a good choice to optimize the quality of service and latency.
Based on the backbone network of Alibaba Cloud, a stable and low latency cross-region network can be created in just a few steps.
Network latency between Mainland China and the rest of the world is inevitable, because of the unpredictable network connection.
Therefore, latency of cross-region (including cross-border) data transfer is about at a factor three times bigger than usual.
For enterprise services or cross-region services, cross-border connectivity will be the worst bottleneck.
Main public cloud providers such as Azure and
can not provide a satisfying solution for this problem: using a Content Delivery Network(CDN) still results in content being transferred over public internet and also does not give any bandwidth guarantees.
Global Accelerator is a network acceleration service, benefiting from the high-quality bandwidth and global transmission networks that are provided by Alibaba Cloud.
Global Accelerator enables nearby access to the Internet and cross-region deployment of applications, improving the user experience of internet services.
Global Accelerator features high network quality, high security, high availability, and low latency.
In addition, Global Accelerator can be deployed and configured within several minutes, making service deployments faster and more agile.
You will find the technical documentation of GA here https://www.alibabacloud.com/help/en/doc-detail/153189.html.
Terms of GA:
Accelerated IP After you add a region to an acceleration area, GA assigns an accelerated IP address to the region. Clients can connect to the access point that is closest to the clients through the accelerated IP address. The access point receives client requests and forwards the requests to the Alibaba Cloud global network.
Listener A listener listens for connection requests and distributes the requests to endpoints based on the port and 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 optimal endpoints in the endpoint group.
Endpoint Endpoints are destinations of client requests. Endpoints can be SLB instances, ECS instances, Alibaba Cloud public IP addresses, or IP addresses and domain names of origin servers outside of Alibaba Cloud.
Basic bandwidth plan A basic bandwidth plan provides bandwidth for data transfer over the Internet and within internal networks of Alibaba Cloud. However, the basic bandwidth plan is not applicable to data transfer between Mainland China and areas outside of Mainland China.
Cross-border bandwidth plan If you require data transfer acceleration between mainland China and areas outside mainland China, you must purchase a cross-border acceleration bandwidth plan.
Compared to Alibaba Cloud's Cloud Enterprise Network CEN service,
GA strictly focuses on accelerating public endpoints through Alibaba Cloud's private backbone network whereas CEN focuses on peering virtual private cloud VPC networks both inner- and intra-region wise.
In this scenario, we will accelerate the access to a web-based endpoint (e.g. website or REST-API) that is hosted in Germany off of Alibaba Cloud from Mainland China.
The last-mile in Germany and Mainland China will both be served by the public internet. One the request hits the public endpoint of GA it is then transmitted through GA which is using Alibaba Cloud's private backbone network which gives you a dedicated bandwidth you can set yourself and very low latency. For example, between Shanghai and Frankfurt we usually see latency of around 130ms. Generally, the end-to-end latency can be reduced by more than 40% based on our experience. You can do a performance test yourself as described in this example.
GA will bring the following benefits:
If your static assets are already hosted on our object storage (OSS) you can also have your data automatically sync with any of our 23 OSS locations world-wide and direct your CDN to a localized origin.
For a deeper discussion on this topic please refer to Alibaba Cloud GA.
For a PoC, an additional reverse proxy is added that is hosted on an ECS instance in the service area on Alibaba Cloud. The reverse proxy is used as router to origin sites which takes care of filtering traffic and restricting domains that can be possibly reached from the accelerated IP. It also helps in defining more complex routing rules and HTTP modifications.
We recommend this architecture for any kind of production scenarios, or whenever you are in need for more complex routing rules for your backend endpoints. In particular, it enables you to:
The entire setup as described above can be deployed and configured in two ways:
The following resources will be created.
Designed by Alibaba Cloud CADT. For a beginner of Terraform or simple architecture, we recommend the Tool CADT. You can design your cloud environment and directly deploy all resources on Alibaba Cloud.
GA Global Accelerator with an accelerated IP in HongKong and back endpoints in Germany.
VPC one Virtual Private Cloud VPC network for all resources.
vSwitch two vSwitch in two different Availability Zones for high availability HA.
SLB one Server Load Balancer SLB instance for HA.
ECS two Elastic Compute Service ECS instances for HA. ECS instance is used for deploying
NGINX server as reverse proxy.
EIP three Elastic IP EIP for public network access. EIPs will be associated to ECS instance and SLB.
Download and checkout https://github.com/zchome/alicloud-ga-reverse-proxy from Github and follow the instructions of the project page.
common_vars.yaml that lets you specify the accelerated and service region and bandwidth specification.
ALICLOUD_REGION variables to your environment.
terragrunt run-all init &
terraform run-all apply in the project's root directory.
NginxReverse Proxy config is not include in the project, you can follow the guidance of
We will go through the following configuration flow as depicted in below picture.
You can visit instances specification for more information.
Bandwidth Manage tab, you can manage a bandwidth package and assign it to a specific GA instance.
If you want to accelerate traffic from Hong Kong region, you have to choose
You can visit bandwidth types for more information.
If you want to accelerate traffic from mainland China, you have to buy both
Cross-Border Bandwidth Plan and
Basic Bandwidth Plan.
You can visit cross-border bandwidth for more information.
Endpoint Group of listener is very important. It is the output endpoint of GA.
Please choose the same region of your backend services.
Note: For different listeners, you can define different ports and protocols.
For performance comparison, especially speed comparison, you can use the following command to measure the connection time and content loading.
curl -w "@curl-format.txt" -H "Cache-Control: no-cache" -o /dev/null https://www.accelerated.domain
The following table shows an example comparison. You can use above command to test by yourself every several minutes. Then you can get an average value.
|GA + Self-Build Proxy
Client Affinity feature.
If HTTPS protocol is chosen please use a valid SSL certificate in the
Before you choose an SSL certificate, you need to upload an existing SSL certificate or purchase an SSL certificate from Alibaba Cloud's
Certificate Management Service.
Endpoints config of
HTTPS Listener, you can choose HTTP or HTTPS as backend service. Additionally, you can map a requested port to other ports.
By using HTTPS protocol on GA, for different security requirement, you can choose one of following solutions.
For example, when you add a
HTTP listener with
following IPs will allocated to the endpoints.
Endpoint Group IPs (80)
log_format main '$remote_addr - $remote_user [$time_local] $host$request_uri "$request" '
'$status $body_bytes_sent "$http_referer" '
On the backend server, you will get the access log as following text. As an example, the following logs are retrieved from the reverse proxy server.
188.8.131.52 - - [30/Nov/2021:23:38:15 +0800] ###########/login?next_url=/ "GET /login?next_url=/ HTTP/1.1" 200 59350 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15" "184.108.40.206"
220.127.116.11 is one of listener endpoint group IPs. Due to
Client Affinity feature is enabled, source IP is added in HTTP header and forward to backend servers.
18.104.22.168 is the source IP of end users who try to access accelerated domains.
If the reverse proxy server is located on Alibaba Cloud, you can use
Log Service (SLS) to collect, store, analyze and visualize the log files.
With SLS, you can analyze requests and create dashboard to monitor high risk requests. Please visit Log Service for more information.
sub.domain.com ---(1)---> GA
Accelerated IP ---(2)---> Origin Site
Set up customize domain on SaaS vendor portal.
If required, please upload ssl certificate to the SaaS vendor.
Update DNS record with GA
Config traffic to origin site.
Global Accelerator is the most simple and cost efficient solution to accelerate public network access and increasing the network reliability at the same time, including any connections to and from Mainland China.
Additionally, GA is easy to deploy and to configure and is usually setup in short time. We also provide Terraform scripts that will automate the entire provisioning as described in this blog post earlier.
Alibaba Clouder - March 15, 2020
Alibaba Clouder - January 13, 2021
Alibaba Clouder - March 3, 2021
Alibaba Clouder - March 2, 2021
Alibaba Clouder - April 7, 2021
Alibaba Clouder - April 7, 2021
A scalable and high-performance content delivery service for accelerated distribution of content to users across the globeLearn More
Save egress traffic cost. Eliminate all complexity in managing storage cost.Learn More
An all-in-one service that provides elastic, stable, and widely distributed computing, network, and storage resources to help you deploy businesses on the edge nodes of Internet Service Providers (ISPs).Learn More
Dynamic Content Delivery Network (DCDN) is a high-performance, reliable, and secure whole site acceleration solution.Learn More
More Posts by Cheng