Last updated: 2020-01-19 15:03:17PDF
What is Content Delivery Network?
Content Delivery Network (CDN) is a new layer of network architecture built on the existing internet. It consists of servers distributed across regions to accelerate internet content delivery. These high-performance cache nodes store your content based on caching policies. When a user makes a content request, it will be routed to the node closest to the user, reducing access latency and improving availability.
CDN offers an effective solution to the following network issues:
- Long physical distance between the user and business server requires the request to be forwarded multiple times, leading to high latency and instability.
- The ISP used by the user is different from that used by the business server, so the request needs to be forwarded between ISPs after they are interconnected with each other.
- The business server has limited bandwidth and processing capability, resulting in slow response and low availability when massive amounts of user requests occur.
CDN is easy to use. You do not need to adjust your business structure or manage any complex configurations. For more information, please see Getting Started.
How acceleration works
For example, if your business origin server's domain name is
www.test.com, which has been connected with the CDN to activate the acceleration service, when a user makes an HTTP request, the request will be processed as shown below:
Details are as follows:
- When a user makes an access request for an image resource (e.g., 1.jpg) at
www.test.com, a domain name resolution request will be initiated to the local DNS.
- When the local DNS resolves
www.test.com, it finds that CNAME
www.test.com.cdn.dnsv1.comhas been configured, so the resolution request will be sent to Tencent DNS (GSLB), the proprietary scheduling system of Tencent Cloud, which will assign the optimal node IP for the request.
- The local DNS receives the resolved IP returned by Tencent DNS.
- The user receives the resolved IP.
- The user makes an access request for 1.jpg to the received IP.
- If the CDN node corresponding to the IP has already cached 1.jpg, data will be directly returned to the user (10), and the request ends; otherwise, the CDN node will initiate a request for 1.jpg to the origin server (6, 7, and 8). After receiving the resource, the CDN node will cache it (9) based on the caching policy configured (please see Cache Expiration Configuration) and return it to the user (10) to end the request.