Introduction: On August 19, in the third live broadcast of the National Acceleration Festival, Tuozhou, the architect of Ali Cloud CDN solution, shared the theme of “The practice of Ali Cloud full-site acceleration in the media service industry”, introducing the application practice of Ali Cloud full-site acceleration products according to the characteristics and pain points in the Internet media service industry.
On August 19, in the third live broadcast of the National Acceleration Festival, Tuozhou, the architect of Ali Cloud CDN solution, shared the theme of “Full-site acceleration in media service Industry practice”, introducing the application practice of Ali Cloud full-site acceleration products according to the characteristics and pain points in the Internet media service industry.

Characteristics of Internet media services

Internet media service platforms generally include the uploading, sharing and dissemination of massive graphic, audio and video files, and are characterized by large number of users, wide distribution of users, high real-time requirements and sudden hot spots.

Firstly, it has a wide range of content transmission and high requirements for node coverage of CDN. Second, real-time performance. The platform pays great attention to the real-time performance of file uploading and distribution and has high requirements for the response efficiency of CDN. The third is suddenness. The platform generally has the traffic surge caused by hot spots and activities, and has high requirements on bandwidth and other response resources, and has certain requirements on CDN resource reserve and flexibility. Fourth, the business complexity is high, because the media service platform covers a wide range of users, the user groups are very diverse, different users of the network environment is uneven, which leads to the platform’s high requirements for network transmission optimization.

Under the above background, the traditional single-IP access mode of source station cannot meet the business scenarios of high reliability, high efficiency and large concurrency, and needs to rely on DCDN products.

Ali Cloud DCDN technology features

Aiming at the pain points of media service platforms, DCDN products can provide solutions in two aspects of node coverage and stability and efficiency. First of all, THE coverage of DCDN nodes is very extensive. There are more than 2300 nodes in mainland China, covering 31 provincial regions, and a large number of nodes are located in first-tier cities such as provincial capitals, which are areas with good network environment and quality. In addition, it has more than 500 overseas nodes, covering more than 70 countries and regions.

Secondly, DCDN products are very stable and efficient. Based on the guarantee of sufficient nodes and bandwidth, THEY can support hundred-million-level QPS concurrency and provide stable acceleration services. With advanced distributed system architecture, can realize the load balance of the whole network, ensure the availability of nodes; The optimized transport protocol can support HTTP/2 efficient transport protocol, can achieve fast and stable data transmission; In addition, DCDN has the ability of accurate cache, high speed cache, high speed read and write, efficient source return and intelligent scheduling, ensuring the overall stability of the effect.

Case application of DCDN in game industry

One, video, picture files uploaded to the source station to accelerate

The first case is how to speed up the uploading of media clients’ files to the source site. Generally, the service scenarios of media platforms are divided into file production and upload and file distribution. File upload scenarios have high requirements on the network environment and are affected by uncontrollable factors such as fluctuations of the public network and long transmission jitter, resulting in slow transmission rates and low transmission success rates.

After a client adopts Aliyun DCDN to upload, the upload efficiency can be improved by more than 50%. Meanwhile, DCDN supports up to 2G file upload. As shown in the figure below, the comparison of the upload rate of a client’s files with and without DCDN acceleration is shown. In the blue part of the figure, the upload rate increases by more than 60%, reaching more than 1500KB /s, while the green uploading rate without DCDN acceleration falls within the range of 300-500 and 500-1000KB. Therefore, DCDN has a significant effect on the improvement of upload rate and user experience.

! [](https://pic4.zhimg.com/80/v2-a568694a20cb5893a5f242f68f6c9445_720w.png)

Second, the success rate of user distribution and complex network environment is improved

In the case of complicated user distribution and network environment, the user request failure rate is high. As shown in the figure below, before DCDN acceleration, the number of failed requests of a customer source station falls in the range of 15~20. After DCDN product acceleration, the number of failed requests of relevant users can obviously drop to single digits, and the failure rate of relevant user requests is reduced by more than 80%. The main source of benefits lies in the intelligent routing function of DCDN products, which can detect the optimal link environment of the current network in real time and provide the optimal path guarantee when users request, which can improve the stability of DCDN internal links and guarantee the success rate of requests.

! [](https://pic2.zhimg.com/80/v2-d2047a860b266a1105cc336dc6182d7f_720w.png)

Three, major events, more than ten million concurrent requests

When the media service platform has hot spots and major events, the load capacity of the source station is insufficient to support such a big event, so it may not be able to guarantee the smooth progress of the event. At this time, we can access Aliyun DCDN products and realize the cache of static files through the separation of dynamic and static, which can greatly reduce the load capacity of some source sites. In addition, the dynamic source back can also support HTTP/2 protocol, which can reduce the load number of source links and improve the link reuse rate. It can solve the problem of insufficient load capacity of source station. With sufficient redundant resources, DCDN can perfectly undertake major activities.

More applications of DCDN

DCDN products also have many extended applications, mainly introduced in four aspects.

First, DCDN supports IP application acceleration, which is an acceleration at the user level of the non-standard HTTP protocol. This scenario applies to layer 4 Cell protocol service scenarios. When some services are being accelerated, you can ignore the application layer and only perform network acceleration. You can select IP application acceleration.

Second, DCDN products support the websocket protocol to establish full-duplex communication between users and CDN nodes and between CDN nodes and source stations, which can maintain long-term links. In this way, when users initiate a request for the second time, there is no need to establish a link again, which can improve user experience.

Third, DCDN support source station automatic switch, usually there will be a main source to stand for two of the original station, when the primary source station response and usability problems, DCDN real-time detection can timely found the abnormal situation, will be removed, there is a problem of the original station will request access to the alternate source station, so that we can guarantee the stability of the user level to the greatest extent.

Fourth, DCDN supports Ipv6 access. Currently, Ipv6 has covered the three major carriers. In addition, Alibaba’s DCDN products have more related applications to explore.

Author: 樰 Hedge

The original [link] (https://developer.aliyun.com/article/770695?utm_content=g_1000172942)

This article is the original content of Aliyun and shall not be reproduced without permission.