Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to build CDN?

Shulou Source: shulou.com Published: 2022-06-03 07:31:33 09月21日 Update

After purchasing the CDN service, users will be more concerned about the actual effect in the process of using it. First of all, make sure that it has been activated successfully, and then follow the basic steps to add accelerated domain names and configure CNAME. After all, you can test whether the CDN acceleration is successful. Many users will ask questions about CDN deployment. Let me give you a brief introduction today.

How to deploy cdn? Setting up cdn is a very tedious task, which costs a lot of money to rent or purchase bandwidth and servers all over the country. If it is less than a certain scale, it is not recommended to build your own cdn. The cost and performance are not as good as using professional CDN services.

If you want to build your own CDN, you need to deploy a certain amount of servers on each node, purchase the operator's bandwidth, and other CDN-related systems and software, such as load balancing. And there needs to be a strong management background.

Each CDN node consists of two parts: a load balancing device and a cache server. The specific operation process of CDN network implementation:

1. As an ICP, you only need to hand over the right of domain name interpretation to CDN operators, without any modification in other aspects. During operation, ICP modifies its domain name resolution record, which generally points to the address of the CDN network Cache server by cname.

two。 As a CDN operator, first of all, you need to provide public resolution for the domain name of ICP. In order to implement sortlist, you usually point the domain name interpretation result of ICP to a CNAME record.

3. When sorlist is needed, CDN operators can use DNS to carry out special treatment on the domain name resolution process pointed to by CNAME, so that the DNS server can return different IP addresses of the same domain name according to the IP address of the client when it receives the client request.

4. Because of the IP address obtained from cname and with hostname information, Cache must know the IP address of the source server after the request arrives at Cache, so an internal DNS server is maintained within the CDN operator to interpret the real IP address of the domain name accessed by the user.

5. When maintaining the internal DNS server, you also need to maintain an authorization server to control which domain names can be cached and which are not, so as to avoid open proxies.

The above is the answer to how cdn is deployed.

Tags: Service domain name server address operator operation success pointing user cache process interpretation equilibrium customer bandwidth network node different powerful special Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Tech Info Shulou Information Redmi Huawei