基于ECS的CDN精确调度现网实践与探索
2021-04-03向九松樊士迪
向九松 樊士迪



摘 要:域名服务是因特网最基本的网络服务之一,大部分CDN需要依赖DNS来实现内容调度,域名解析的准确程度和响应速度对整个网络服务质量而言非常重要。通过分析当前传统CDN调度存在的不足,结合谷歌等公司提出的Edns-Client-Subnet扩展协议,文章提出了基于改进版ECS的CDN调度优化方案,并就具体现网实践过程中智能分区、CNAME调度、存储优化等关键要点进行阐述。
关键词:DNS;ECS;CDN
中图分类号:TP393 文献标识码:A文章编号:2096-4706(2021)19-0047-03
Practice and Exploration of CDN Precise Scheduling Current Network Based on ECS
XIANG Jiusong, FAN Shidi
(China Telecom Jiangsu Intelligent Cloud Network Dispatching Operation Center, Nanjing 210037, China)
Abstract: Domain name service is one of the most basic network services on the Internet. Most CDNs need to rely on DNS to realize content scheduling. The accuracy and response speed of domain name resolution are very important to the quality of service of the whole network. By analyzing the shortcomings of the current traditional CDN scheduling, combined with the Edns-Client-Subnet extension protocol proposed by Google and other companies, this paper puts forward the CDN scheduling optimization idea based on the improved version of ECS, and expounds the key points such as intelligent partition, CNAME scheduling and storage optimization in the process of network practice.
Keywords: DNS; ECS; CDN
0 引 言
域名服务是因特网最基本的网络服务之一,通过在网络中构建一个层次化的树状服务结构,建立互联网地址与域名的逻辑映射关系,供互联网应用服务使用。在互联网中几乎每个用户的每次访问都会使用到域名解析,所以域名解析的准确程度和响应速度对整个网络服务质量而言非常重要。如何利用DNS将离用户最近的内容资源精确地调度给用户是运营商和内容服务商同时急切关心的问题。
1 传统CDN调度的不足
传统CDN一般使用DNS获取查询IP,再根据该IP对用户进行地域调度。但这里获取的IP地址一般是运营商LOCAL DNS的递归服务器地址,而不是用户真实的IP地址。运营商通常以大区或省为单位部署DNS,这就导致了传统DNS的调度精度只能局限到省,无法精确到市或者再下一级网络。
为了解决DNS调度不精确的问题,很多CDN区域调度系统会再借用HTTP302重定向技术,从HTTP消息中获取用户的IP地址。但HTTP重定向不仅增加了调度次数和用户时延,重定向服务器自身也容易成为性能瓶颈,另外它只支持基于HTTP的应用,而无法调度其他应用层协议。……
