CDN Scheduling Systems are intelligent mechanisms that optimize content delivery by efficiently routing user requests to the most suitable edge servers. These systems use advanced algorithms to determine the best server for each request based on multiple factors:
The scheduling system acts as the brain of a CDN, performing two critical functions:
This intelligent routing and load balancing ensures reliable content delivery while maximizing network efficiency and maintaining consistent performance for users worldwide.
Before explaining the scheduling principle, let's take a look at how customers access CDN, or how the customer's traffic input and switching to CDN. Assuming the customer's domain name is: www.test.com, there are roughly the following ways.
The CNAME method is the most common access method, that is, the CDN manufacturer provides a scheduling domain name to the customer, and the customer sets the CNAME of their business domain name to this scheduling domain name, thereby realizing the request to be guided to the CDN.
For example, if your website domain is www.test.com and your CDN provider assigns you www.test.cdn.example.com as the scheduling domain name, you would simply set up a CNAME record pointing www.test.com to www.test.cdn.example.com. Once configured, all requests to your website will be automatically routed through the CDN network.
Behind the CNAME method, there are several modes:
Deep customization of scheduling domain names enables resellers and enterprise customers to maintain brand independence while leveraging CDN services. Through a multi-level CNAME configuration, providers can mask their CDN infrastructure at the DNS level. This setup involves creating a chain where the customer's domain points to a branded intermediary domain, which then connects to a neutral platform domain. For example, when www.test.com points to gslb.mycdn.com, which in turn points to gslb.cdn-platform.com, the entire DNS resolution process remains provider-agnostic, offering complete white-labeling capabilities for CDN resellers.
This mode is uncommon. Taking the domain name www.test.com as an example, if the customer needs to switch the request to CDN, they need to change the NS record of test.com to the NS authoritative server provided by the CDN manufacturer. At this time, the CDN manufacturer plays the role of both the DNS service provider and the CDN service provider.
DNS Scheduling | DNS scheduling is based on the exit IP attribution and operator attributes of the requested local DNS. |
302 Scheduling | 302 redirect scheduling based on the client IP attribution and operator attributes. |
Routing Scheduling | Data center traffic scheduling based on Anycast technology. (BGP routing). |
The scheduling server of the CDN is the NS authoritative server for the scheduling domain, and the TTL of the scheduling domain is deliberately set to be very short. (e.g., three minutes). This ensures that all requests frequently trigger the client's local DNS to resolve a new IP address from the CDN's scheduling server. At this point, the scheduling server relies on the exit address of the local DNS. The DNS scheduling process is as follows:
Scenario:
Access URL | http://p73.ping.dnsv1.com/a.php |
Test machine exit IP | 113.87.117.154 |
DNS server | 202.96.134.133 / 202.96.128.166 |
DNS exit address | 202.96.136.240 |
Target domain name resolution | The DNS resolution of p73.ping.dnsv1.com is as follows: p73.ping.dnsv1.com
|
DNS Scheduling Principle:
Advantages and Disadvantages of DNS Scheduling:
Advantages | Simple and easy to use |
Transparent to users | |
Good client compatibility | |
Disadvantages | Non-real-time scheduling policy implementation. (DNS is a tree-like distributed system and all nodes cache based on the domain name's TTL.) |
Inaccurate scheduling. (A large number of local DNS servers do not support the EDNS protocol, so they cannot obtain the client's real IP address; most of the time, CDN can only make decisions based on the local DNS IP, which is sometimes unreliable.) |
Now let's see what's different between the 302 mode and the previous DNS scheduling.
(http://p73.ping.dnsv1.com/a.php)
In the DNS resolution scheduling mode, when the browser accesses the above URL, under normal circumstances, it will receive a return code 200 and file content from the CDN node, which means the IP resolved by DNS will directly act as the file server responding to the browser request. It's similar to:
HTTP/1.1 200 OK
Server: NWS_S1
Connection: keep-alive
Date: Sun, 11 Dec 2018 19:44:02 GMT
Transfer-Encoding: chunked
Keep-Alive: timeout=120
X-Daa-Tunnel: hop_count=2
X-NWS-LOG-UUID:750246221628030518 0be2170ce2df3d9f634cd70470120401
\r\r\r\n File Content
However, in the 302 redirect mode, when accessing the above URL, the browser will receive a response with a status code of 302:
HTTP/1.1 302 Moved Temporarily
Server: stgw/1.3.6.2_1.13.5
Date: Sun, 16 Dec 2018 19:38:58 GMT
Content-Type: text/html
Content-Length: 168
Connection: keep-alive
Location: http://61.142.166.245/p73.ping.dnsv1.com/a.php
This means telling the browser that it needs to continue to request the actual file content from the URL in the Location. So the browser initiates the second request:
http://61.142.166.245/p73.ping.dnsv1.com/a.php
The IP address in this URL is the CDN node allocated by the CDN scheduling system. Let's see how this IP is obtained.
The process of domain name resolution in 302 redirect mode is the same as DNS-based scheduling, and a group of IPs will be obtained in the end. There are two possible situations for the target IP: 1) The target IP is not the actual edge node of the CDN, but the IP of the 302 scheduling cluster; 2) The IP is a common edge node IP of the CDN.
Advantages | Real-time scheduling (the final IP obtained each time is the result of real-time calculations, so the scheduling strategy takes effect in real time). |
High accuracy (can obtain the exit IP of the request, which makes the client's location closer to the actual situation when not considering NAT or small ISP exit drift, and is not affected by the user's DNS configuration). | |
Disadvantages | Business compatibility (requires the client of the customer's business to support 302 redirects, such as mobile phone firmware or app downloads; if the download client does not recognize the HTTP 302 response code, the download will fail). |
Not suitable for latency-sensitive businesses (each request will involve an additional HTTP interaction, causing the loading time to increase significantly, which is not suitable for web static small resources). |
Therefore, 302 is only suitable for large file download services with good client compatibility.
Anycast routing technology allows physically distributed servers across the globe or different regions to have the same IP address. Client requests for this IP will be guided to the nearest physical server at the routing level.
Anycast BGP routing scheduling mode is similar in appearance to DNreal timeS scheduling:
However, there are also unique features:
Advantages and disadvantages of Anycast routing scheduling:
Advantages | Low DNS resolution performance requirements for CDN authoritative servers (few fixed IPs, long TTL). |
More resistant to interference than DNS and has better compatibility than 302. (CDN nearby access is completed at the routing level.) | |
Fast route policy change implementation, is better than DNS scheduling. | |
When under a DDOS attack, you only need to adjust the route to guide the attack traffic to a high-bandwidth cleaning data center, without removing IPs from the network. | |
Disadvantages | Complex solution (complex network-wide networking, tedious BGP route optimization, prone to network disconnection, longer request latency). |
The high cost (Anycast implementation requires a complete IPC segment and severe IP waste, and to achieve good results and withstand attacks, global data centers need to have sufficient bandwidth). |
Tencent EdgeOne, as a next-generation CDN, not only provides acceleration but also offers advanced CDN and scheduling policies. These allow for a flexible and efficient way to manage network traffic, which ultimately contributes to a more reliable and faster user experience. Here's an extension of more CDN Scheduling services EdgeOne can provide:
EdgeOne offers competitive pricing plans that deliver excellent value for businesses of all sizes. To help you make an informed decision about CDN costs and compare different providers' pricing, check out our comprehensive guide on Cheap CDN Services 2025, where we analyze and compare the most cost-effective CDN solutions available in the market.
Ready to experience enterprise-grade acceleration and security? Start your 14-day free trial with EdgeOne today and get 1TB of data transfer included.