CN110708256A - CDN scheduling method, device, network device and storage medium - Google Patents
CDN scheduling method, device, network device and storage medium Download PDFInfo
- Publication number
- CN110708256A CN110708256A CN201910789874.2A CN201910789874A CN110708256A CN 110708256 A CN110708256 A CN 110708256A CN 201910789874 A CN201910789874 A CN 201910789874A CN 110708256 A CN110708256 A CN 110708256A
- Authority
- CN
- China
- Prior art keywords
- user
- preset
- requested
- cdn
- classification label
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明实施方式涉及内容分发网络领域,公开了一种CDN调度方法,该CDN调度方法包括:接收用户请求,获取所述用户请求的特征信息,所述用户请求为N个,所述N为正整数;对所述特征信息进行分类,并根据分类的结果获取每一所述用户请求的分类标签;根据所述用户请求的所述分类标签获取预设调度策略;根据所述预设调度策略将所述用户请求调度至相应的CDN节点。本发明实施方式还提供了一种CDN装置、网络设备及存储介质。本发明实施方式提供的CDN调度方法、装置、网络设备及存储介质可以保证CDN调度的及时性,提高CDN调度的效率。
Embodiments of the present invention relate to the field of content distribution networks, and disclose a CDN scheduling method. The CDN scheduling method includes: receiving a user request, and acquiring feature information of the user request, where the number of user requests is N, and N is a positive Integer; classify the feature information, and obtain the classification label requested by each user according to the classification result; obtain a preset scheduling policy according to the classification label requested by the user; The user request is scheduled to the corresponding CDN node. The embodiments of the present invention also provide a CDN device, a network device, and a storage medium. The CDN scheduling method, device, network device and storage medium provided by the embodiments of the present invention can ensure the timeliness of CDN scheduling and improve the efficiency of CDN scheduling.
Description
技术领域technical field
本发明涉及内容分发网络领域,特别涉及一种CDN调度方法、装置、网络设备及存储介质。The present invention relates to the field of content distribution networks, and in particular, to a CDN scheduling method, device, network equipment and storage medium.
背景技术Background technique
内容分发网络(Content Delivery Network,简称CDN)是构建在现有网络基础之上的智能虚拟网络,依靠部署在各地的边缘服务器,通过中心平台的负载均衡、内容分发、调度等功能模块,使用户就近获取所需内容,降低网络拥塞,提高用户访问响应速度和命中率。Content Delivery Network (CDN for short) is an intelligent virtual network built on the basis of existing networks, relying on edge servers deployed in various places, through the load balancing, content distribution, scheduling and other functional modules of the central platform, enabling users Get the desired content nearby, reduce network congestion, and improve user access response speed and hit rate.
然而,目前CDN的调度均是通过对CDN这些后端的节点信息进行统计后再进行调度,由于这些节点信息统计有滞后性,因此CDN的调度也存在滞后性,效率较低。However, the current CDN scheduling is based on the statistics of the back-end node information of the CDN before scheduling. Since the statistics of these nodes have a lag, the CDN scheduling also has a hysteresis, and the efficiency is low.
发明内容SUMMARY OF THE INVENTION
本发明实施方式的目的在于提供一种CDN调度方法、装置、网络设备及存储介质,使得CDN的调度及时,效率提高。The purpose of the embodiments of the present invention is to provide a CDN scheduling method, apparatus, network device and storage medium, so that the CDN scheduling is timely and the efficiency is improved.
为解决上述技术问题,本发明的实施方式提供了一种CDN调度方法,包含以下步骤:接收用户请求,获取用户请求的特征信息,用户请求为N个,N为正整数;对特征信息进行分类,并根据分类的结果获取每一用户请求的分类标签;根据用户请求的分类标签获取预设调度策略;根据预设调度策略将用户请求调度至相应的CDN节点。In order to solve the above-mentioned technical problem, an embodiment of the present invention provides a CDN scheduling method, which includes the following steps: receiving a user request, acquiring feature information requested by the user, the number of user requests being N, and N being a positive integer; classifying the feature information , and obtain the classification label of each user request according to the classification result; obtain the preset scheduling policy according to the classification label requested by the user; schedule the user request to the corresponding CDN node according to the preset scheduling policy.
本发明的实施方式还提供了一种CDN调度装置,包含:特征信息获取模块,用于接收用户请求,获取用户请求的特征信息,用户请求为N个,N为正整数;分类标签获取模块,用于对特征信息进行分类,并根据分类的结果获取每一用户请求的分类标签;调度策略获取模块,用于根据用户请求的分类标签获取预设调度策略;节点调度模块,用于根据预设调度策略将用户请求调度至相应的CDN节点。Embodiments of the present invention also provide a CDN scheduling device, comprising: a feature information acquisition module, configured to receive a user request and acquire feature information requested by the user, where the number of user requests is N, where N is a positive integer; a classification label acquisition module, It is used to classify the feature information, and obtain the classification label requested by each user according to the classification result; the scheduling strategy obtaining module is used to obtain the preset scheduling strategy according to the classification label requested by the user; the node scheduling module is used to obtain the preset scheduling strategy according to the preset The scheduling policy schedules user requests to the corresponding CDN nodes.
本发明的实施方式还提供了一种网络设备,包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行如上述的CDN调度方法。Embodiments of the present invention also provide a network device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by at least one processor. A processor executes to enable at least one processor to execute the CDN scheduling method as described above.
本发明的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时实现如上述的CDN调度方法。Embodiments of the present invention further provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned CDN scheduling method is implemented.
本发明实施方式相对于现有技术而言,通过获取与用户请求相关的特征信息,再对这些特征信息进行分类,可以获得每一用户请求的分类标签;根据用户请求的分类标签获取相应的预设调度策略,从而根据预设调度策略将用户请求调度至相应的CDN节点,实现了在前端对用户请求的特征信息进行分析,进而根据前端分析的结果进行主动调度,避免根据后端CDN节点信息进行调度的滞后性,保证了CDN调度的及时性,提高了CDN调度的效率。Compared with the prior art, the embodiment of the present invention can obtain the classification label of each user request by acquiring the feature information related to the user request and then classifying the feature information; Set a scheduling policy, so that user requests are scheduled to the corresponding CDN nodes according to the preset scheduling policy, and the characteristic information of user requests is analyzed at the front end, and then active scheduling is performed according to the results of the front-end analysis, avoiding the need for back-end CDN node information. The hysteresis of scheduling ensures the timeliness of CDN scheduling and improves the efficiency of CDN scheduling.
另外,根据分类的结果获取每一用户请求的分类标签,包括:采用预设的分类标签标识分类的结果,获得每一用户请求的分类标签。根据预设的分类标签来标识分类的结果,可以使用户请求的分类标签统一和规范,方便后续根据分类标签来选取相应的CDN调度策略。In addition, obtaining the classification label requested by each user according to the classification result includes: using a preset classification label to identify the classification result, and obtaining the classification label requested by each user. The classification results are identified according to the preset classification labels, so that the classification labels requested by the user can be unified and standardized, and it is convenient for subsequent selection of the corresponding CDN scheduling policy according to the classification labels.
另外,特征信息包括被请求资源;在根据用户请求的分类标签获取预设调度策略之前,还包括:获取被请求资源相同的用户并发数;根据用户请求的分类标签获取预设调度策略,包括:根据用户请求的分类标签和用户并发数获取预设调度策略。通过获取被请求资源相同的用户并发数,再根据用户并发数和用户请求的分类标签来获取预设调度策略,可以使预设调度策略更加准确,在高并发的情况下也能保证用户请求对CDN节点的正常访问,提高CDN节点访问的稳定性。In addition, the feature information includes the requested resource; before obtaining the preset scheduling policy according to the classification label requested by the user, it also includes: obtaining the same number of concurrent users of the requested resource; obtaining the preset scheduling policy according to the classification label requested by the user, including: Obtain the preset scheduling policy according to the classification label requested by the user and the number of concurrent users. By obtaining the number of concurrent users with the same requested resources, and then obtaining the preset scheduling strategy according to the number of concurrent users and the classification label of user requests, the preset scheduling strategy can be more accurate, and in the case of high concurrency, it can also ensure that user requests are correct. The normal access of CDN nodes improves the stability of CDN node access.
另外,在根据用户请求的分类标签获取预设调度策略之前,还包括:获取预设用户画像,预设用户画像为根据历史用户请求和历史用户请求的分类标签得到的;根据用户请求的分类标签获取预设调度策略,包括:将用户请求和用户请求的分类标签作为待定用户画像;若待定用户画像与预设用户画像相同,则预设调度策略为将用户请求调度至预设访问CDN节点,预设访问CDN节点为历史用户请求最新访问或访问频次最高的CDN节点。通过用户请求对应的用户画像进行比较,若待定用户画像与预设用户画像相同,则将用户请求调度至预设访问CDN节点,可以使CDN调度更加快速,降低调度的时延,提高用户访问的体验。In addition, before obtaining the preset scheduling policy according to the classification label requested by the user, the method further includes: obtaining a preset user portrait, where the preset user portrait is obtained according to the historical user request and the classification label of the historical user request; according to the classification label requested by the user Obtaining the preset scheduling policy includes: taking the user request and the classification label of the user request as the pending user portrait; if the pending user portrait is the same as the preset user portrait, the preset scheduling policy is to schedule the user request to the preset access CDN node, The default access CDN node is the CDN node with the latest access or the highest access frequency requested by historical users. The user profiles corresponding to the user requests are compared. If the pending user profile is the same as the preset user profile, the user request is scheduled to the preset access CDN node, which can make CDN scheduling faster, reduce scheduling delay, and improve user access. experience.
另外,分类标签包括用户请求的IP、用户归属省份、发出用户请求的客户端类型、被请求资源的热度、被请求资源的内容和被请求资源的类型中的至少一项。分类标签的设置可以方便调度服务器根据分类标签来获取预设调度策略。In addition, the classification label includes at least one of the IP requested by the user, the province where the user belongs, the type of the client that issued the user request, the popularity of the requested resource, the content of the requested resource, and the type of the requested resource. The setting of the classification label can facilitate the scheduling server to obtain the preset scheduling policy according to the classification label.
另外,分类标签包括被请求资源的热度、用户归属省份和用户请求的IP;根据用户请求的分类标签获取预设调度策略,包括:若被请求资源的热度大于第一预设值,则判断用户归属省份的CDN节点的负载是否达到预设负载;若CDN节点的负载小于或等于预设负载,则预设调度策略为将用户请求调度至用户归属省份的CDN节点;若CDN节点的负载大于预设负载,则预设调度策略为采用轮询的方式将用户请求调度至离用户请求的IP最近的空闲外省CDN节点。通过被请求资源的热度的判断来获取预设调度策略,可使用户对热点资源或非热点资源的访问被调度服务器合理调度,保证每个用户请求都能被满足;在被请求资源的热度判断的基础上,进一步对CDN节点的负载进行判断,可以结合CDN节点的实际情况进行调度,使CDN节点的负载在合理范围内,保证CDN节点访问的稳定性。In addition, the classification label includes the popularity of the requested resource, the province to which the user belongs, and the IP requested by the user; obtaining a preset scheduling policy according to the classification label requested by the user includes: if the popularity of the requested resource is greater than the first preset value, judging that the user Whether the load of the CDN node of the home province reaches the preset load; if the load of the CDN node is less than or equal to the preset load, the preset scheduling policy is to schedule the user request to the CDN node of the user's home province; if the load of the CDN node is greater than the preset load If the load is set, the preset scheduling policy is to schedule the user request to the idle CDN node in the province closest to the IP requested by the user in a round-robin manner. The preset scheduling policy is obtained by judging the heat of the requested resources, so that the user's access to hot or non-hot resources can be reasonably scheduled by the scheduling server to ensure that each user request can be satisfied; On the basis of , the load of CDN nodes can be further judged, and scheduling can be carried out in combination with the actual situation of CDN nodes, so that the load of CDN nodes is within a reasonable range and the stability of CDN node access is guaranteed.
另外,分类标签包括被请求资源的热度和用户请求的IP;根据用户请求的分类标签和用户并发数获取预设调度策略,包括:若被请求资源的热度大于第二预设值,则判断用户并发数是否大于或等于预设用户并发数;若用户并发数大于或等于预设用户并发数,则预设调度策略为将预设比例的用户请求调度至离用户请求的IP最近的空闲外省CDN节点。结合用户并发数和分类标签来进行用户请求的调度,将预设比例的用户请求主动调度至外省CDN节点,可以主动平衡用户请求与CDN节点,保证CDN访问资源的稳定性。In addition, the classification label includes the popularity of the requested resource and the IP requested by the user; the preset scheduling policy is obtained according to the classification label requested by the user and the number of concurrent users, including: if the popularity of the requested resource is greater than the second preset value, judging that the user Whether the number of concurrent users is greater than or equal to the preset number of concurrent users; if the number of concurrent users is greater than or equal to the preset number of concurrent users, the preset scheduling strategy is to schedule a preset proportion of user requests to the idle provincial CDN closest to the IP requested by the user node. Combining the number of concurrent users and classification labels to schedule user requests, proactively schedule a preset proportion of user requests to CDN nodes in other provinces, which can actively balance user requests and CDN nodes to ensure the stability of CDN access resources.
附图说明Description of drawings
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments.
图1是本发明第一实施方式提供的CDN调度方法的流程示意图;1 is a schematic flowchart of a CDN scheduling method provided by a first embodiment of the present invention;
图2是本发明第一实施方式提供的CDN调度方法的另一流程示意图;FIG. 2 is another schematic flowchart of the CDN scheduling method provided by the first embodiment of the present invention;
图3是本发明第一实施方式提供的CDN调度方法的另一流程示意图;3 is another schematic flowchart of the CDN scheduling method provided by the first embodiment of the present invention;
图4是本发明第一实施方式提供的CDN调度方法的原理示例图;FIG. 4 is a schematic diagram of the principle example of the CDN scheduling method provided by the first embodiment of the present invention;
图5是本发明第二实施方式提供的CDN调度装置的模块结构图;Fig. 5 is the module structure diagram of the CDN scheduling apparatus provided by the second embodiment of the present invention;
图6是本发明第三实施方式提供的网络设备的结构示意图。FIG. 6 is a schematic structural diagram of a network device provided by a third embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。In order to make the objectives, technical solutions and advantages of the present invention clearer, each embodiment of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can appreciate that, in the various embodiments of the present invention, many technical details are set forth in order for the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be realized.
本发明的第一实施方式涉及一种CDN调度方法,通过接收用户请求,获取用户请求的特征信息;对特征信息进行分类,并根据分类的结果获取每一用户请求的分类标签;根据用户请求的分类标签获取预设调度策略;根据预设调度策略将用户请求调度至相应的CDN节点。通过在前端对用户请求进行分析,根据分析的分类标签来获取预设调度策略,再根据预设调度策略将用户请求调度至相应的CDN节点,实现了前端分析和主动调度,保证了CDN调度的及时性,提高了CDN调度的效率。The first embodiment of the present invention relates to a CDN scheduling method. By receiving a user request, the feature information requested by the user is obtained; the feature information is classified, and the classification label of each user request is obtained according to the classification result; The classification label obtains the preset scheduling policy; according to the preset scheduling policy, the user request is scheduled to the corresponding CDN node. By analyzing user requests at the front end, obtaining preset scheduling policies according to the analyzed classification labels, and then scheduling user requests to the corresponding CDN nodes according to the preset scheduling policies, front-end analysis and active scheduling are realized, and CDN scheduling is ensured. Timeliness improves the efficiency of CDN scheduling.
应当说明的是,本实施方式提供的CDN调度方法的执行主体可以为但不限于CDN的调度服务器,以下以CDN的调度服务器(以下简称调度服务器)为例进行说明。It should be noted that the execution body of the CDN scheduling method provided by this embodiment may be, but is not limited to, a CDN scheduling server. The following description will take the CDN scheduling server (hereinafter referred to as the scheduling server) as an example.
本实施方式提供的CDN调度方法具体流程示意图如图1所示,具体包括以下步骤:The specific flowchart of the CDN scheduling method provided by this embodiment is shown in FIG. 1 , which specifically includes the following steps:
S101:接收用户请求,获取用户请求的特征信息,用户请求为N个,N为正整数。S101: Receive a user request, and acquire feature information requested by the user, where the number of user requests is N, and N is a positive integer.
其中,用户请求是指用户通过客户端发送的请求,例如请求一个网页、一段视频或一段音频等。特征信息是指与用户请求相关的信息,当调度服务器接收到用户请求时,可以获取到用户请求的IP、统一资源定位符(Uniform Resource Locator,URL)和请求时间等信息。调度服务器再根据这些信息获取特征信息,其中,特征信息可以包括但不限于用户请求的IP、用户归属省份、发出用户请求的客户端类型、被请求资源的热度、被请求资源的内容等。例如,可以通过对用户请求的IP进行解析,可以获取到用户归属省份;通过对URL中请求头信息进行解析,可以获取到用户请求的客户端类型等等。The user request refers to a request sent by the user through the client, such as requesting a web page, a video, or an audio. The feature information refers to the information related to the user request. When the scheduling server receives the user request, it can obtain information such as the IP, Uniform Resource Locator (Uniform Resource Locator, URL) and request time requested by the user. The scheduling server then obtains feature information according to the information, wherein the feature information may include but is not limited to the IP requested by the user, the province to which the user belongs, the type of client that issued the user request, the popularity of the requested resource, the content of the requested resource, and the like. For example, by analyzing the IP requested by the user, the province to which the user belongs can be obtained; by analyzing the request header information in the URL, the client type requested by the user can be obtained, and so on.
由于调度服务器在同一时间可能接收到多个用户发出的用户请求,因此,用户请求的个数为N个,N为正整数。Since the scheduling server may receive user requests from multiple users at the same time, the number of user requests is N, where N is a positive integer.
S102:对特征信息进行分类,并根据分类的结果获取每一用户请求的分类标签。S102: Classify the feature information, and obtain a classification label requested by each user according to the classification result.
可选地,调度服务器根据用户请求的IP、用户归属省份、发出用户请求的客户端类型、被请求资源的热度和被请求资源的类型等特征信息进行分类,分类后再以标签标识分类的结果,从而可以获得每一用户请求的分类标签。例如,对用户归属省份进行分类,分为“北京”、“上海”和“广州”等;又例如,对用户请求的客户端类型进行分类,分为“手机”、“平板电脑”和“笔记本电脑”等;又例如,对被请求资源的热度进行分类,分为“热点资源”和“非热点资源”等。Optionally, the scheduling server classifies according to feature information such as the IP requested by the user, the province to which the user belongs, the client type that sends the user request, the popularity of the requested resource, and the type of the requested resource, and then identifies the result of the classification with a label. , so that the classification label requested by each user can be obtained. For example, classify the province to which the user belongs, into "Beijing", "Shanghai" and "Guangzhou", etc.; for another example, classify the client type requested by the user into "mobile phone", "tablet" and "notebook" For another example, classify the popularity of the requested resources into "hot resources" and "non-hot resources", etc.
分类标签可以直接以分类的结果进行标识,例如,以“北京”、“手机”、“热点资源”进行标识,也可以以字母简写或全拼等进行标识,这里不做具体限制。The classification label can be directly identified with the classification result, for example, identified with "Beijing", "Mobile Phone", "Hot Resource", or it can be identified with abbreviated letters or full spelling, etc. There is no specific limitation here.
可选地,分类标签包括用户请求的IP、用户归属省份、发出用户请求的客户端类型、被请求资源的热度、被请求资源的内容和被请求资源的类型中的至少一项。其中,被请求资源是指URL指向的资源。Optionally, the classification label includes at least one of the IP requested by the user, the province where the user belongs, the type of the client that sent the user request, the popularity of the requested resource, the content of the requested resource, and the type of the requested resource. The requested resource refers to the resource pointed to by the URL.
在一个具体的例子中,调度服务器采用预设的分类标签标识分类的结果,从而获得每一用户请求的分类标签。可选地,预设的分类标签存储于调度服务器的数据库中,调度服务器对分类的结果进行判断,若分类的结果符合预设的分类标签,则以预设的分类标签对用户请求进行标识,从而获取每一用户请求的分类标签。In a specific example, the scheduling server uses a preset classification label to identify the classification result, so as to obtain the classification label requested by each user. Optionally, the preset classification label is stored in the database of the scheduling server, and the scheduling server judges the classification result, and if the classification result conforms to the preset classification label, the user request is identified with the preset classification label, Thereby, the classification label requested by each user is obtained.
可以理解,根据预设的分类标签来标识分类的结果,可以使用户请求的分类标签统一和规范,方便后续根据分类标签来选取相应的CDN调度策略。It can be understood that the classification results are identified according to the preset classification labels, so that the classification labels requested by the user can be unified and standardized, and it is convenient for subsequent selection of the corresponding CDN scheduling policy according to the classification labels.
S103:根据用户请求的分类标签获取预设调度策略。S103: Acquire a preset scheduling policy according to the classification label requested by the user.
其中,预设调度策略存储于调度服务器的数据库中。可选地,可以形成分类标签与预设调度策略的映射表存储于调度服务器的数据库中,调度服务器可以根据该映射表获取到与用户请求的分类标签对应的预设调度策略。预设调度策略可以根据实际需要进行预先设置,这里不做具体限制。The preset scheduling policy is stored in the database of the scheduling server. Optionally, a mapping table between classification labels and preset scheduling policies may be formed and stored in the database of the scheduling server, and the scheduling server may obtain the preset scheduling policies corresponding to the classification tags requested by the user according to the mapping table. The preset scheduling policy can be preset according to actual needs, and there is no specific limitation here.
例如,一用户请求的分类标签为“北京”、“手机”和“非热点资源”,由于用户请求的为非热点资源,则预设的调度策略可以为将用户请求直接调度至北京市的CDN节点;由于用户请求的客户端类型为手机,则预设的调度策略可以为将用户请求调度至北京市的存储手机资源的CDN节点。For example, the classification labels of a user's request are "Beijing", "mobile phone" and "non-hot resources". Since the user requests are non-hot resources, the preset scheduling policy may be to directly schedule the user request to the CDN in Beijing node; since the client type requested by the user is a mobile phone, the preset scheduling policy may be to schedule the user request to a CDN node in Beijing that stores mobile phone resources.
可选地,调度服务器可以在设置预设调度策略时,可以结合传统的CDN调度方式,如距离优先或轮询等调度方式。例如在上述例子中,在满足用户请求的分类标签“北京”、“手机”和“非热点资源”的前提下,预设调度策略可以为根据距离优先的调度方式、将用户请求调度至与用户请求的IP距离最近的北京市的存储手机资源的CDN节点。Optionally, the scheduling server may combine traditional CDN scheduling methods, such as distance priority or round robin, when setting the preset scheduling policy. For example, in the above example, on the premise that the classification labels "Beijing", "mobile phone" and "non-hotspot resources" requested by the user are satisfied, the preset scheduling policy may be a scheduling method based on distance priority, scheduling the user request to the same location as the user The requested IP is the nearest CDN node in Beijing that stores mobile phone resources.
S104:根据预设调度策略将用户请求调度至相应的CDN节点。S104: Schedule the user request to the corresponding CDN node according to the preset scheduling policy.
具体地,当调度服务器获取到预设调度策略后,根据预设调度策略将用户请求调度至相应的CDN节点。Specifically, after obtaining the preset scheduling policy, the scheduling server schedules the user request to the corresponding CDN node according to the preset scheduling policy.
与现有技术相比,本实施方式的CDN调度方法通过获取与用户请求相关的特征信息,再对这些特征信息进行分类,可以获得每一用户请求的分类标签;根据用户请求的分类标签可以获取到相应的预设调度策略,从而根据预设调度策略将用户请求调度至相应的CDN节点,实现了在前端对信息进行分析,根据前端分析的结果进行主动调度,保证了CDN调度的及时性,提高了CDN调度的效率。Compared with the prior art, the CDN scheduling method of this embodiment obtains the feature information related to the user request, and then classifies the feature information to obtain the classification label of each user request; according to the classification label requested by the user, it is possible to obtain According to the preset scheduling policy, the user request is scheduled to the corresponding CDN node, which realizes the analysis of information at the front end, and performs active scheduling according to the result of the front-end analysis, which ensures the timeliness of CDN scheduling. Improve the efficiency of CDN scheduling.
在一个具体的例子中,特征信息包括被请求资源。请参考图2,其为本实施方式提供的CDN调度方法的另一流程示意图,具体包括以下步骤:In a specific example, the characteristic information includes the requested resource. Please refer to FIG. 2 , which is another schematic flowchart of the CDN scheduling method provided in this embodiment, which specifically includes the following steps:
S201:接收用户请求,获取用户请求的特征信息,用户请求为N个,N为正整数。S201: Receive a user request, and acquire feature information requested by the user, where the number of user requests is N, and N is a positive integer.
S202:对特征信息进行分类,并根据分类的结果获取每一用户请求的分类标签。S202: Classify the feature information, and obtain a classification label requested by each user according to the classification result.
S203:获取被请求资源相同的用户并发数。S203: Acquire the concurrent number of users with the same requested resource.
S204:根据用户请求的分类标签和用户并发数获取预设调度策略。S204: Acquire a preset scheduling policy according to the classification label requested by the user and the number of concurrent users.
S205:根据预设调度策略将用户请求调度至相应的CDN节点。S205: Schedule the user request to the corresponding CDN node according to the preset scheduling policy.
其中,S201、S202和S205与上述S101、S102和S104相同,这里不再赘述。Wherein, S201, S202 and S205 are the same as the above-mentioned S101, S102 and S104, and will not be repeated here.
S203中,调度服务器根据用户请求的URL进行判断,若URL对应的被请求资源相同,则将用户并发数的数量加1,从而统计出被请求资源相同的用户并发数。In S203, the scheduling server judges according to the URL requested by the user, and if the requested resources corresponding to the URLs are the same, the number of concurrent users is increased by 1, so as to count the concurrent number of users with the same requested resources.
S204中,调度服务器在根据用户请求的分类标签获取预设调度策略时,结合用户并发数的因素选取相应的预设调度策略。可选地,可以根据用户并发数设置一个判断条件,当用户并发数小于一个数值和用户并发数大于或等于该数值时,选取不同的预设调度策略。例如,当被请求资源相同的用户并发数小于500时,按照距离优先的方式将用户请求调度至与分类标签对应的CDN节点;当被请求资源相同的用户并发数大于或者于500时,按照轮询的方式将用户请求调度至与分类标签对应的CDN节点。In S204, when obtaining the preset scheduling policy according to the classification label requested by the user, the scheduling server selects the corresponding preset scheduling policy in combination with the factor of the number of concurrent users. Optionally, a judgment condition may be set according to the number of concurrent users, and when the number of concurrent users is less than a numerical value and the number of concurrent users is greater than or equal to the numerical value, different preset scheduling policies are selected. For example, when the number of concurrent users with the same requested resource is less than 500, the user request is scheduled to the CDN node corresponding to the classification label in a distance-first manner; The user request is dispatched to the CDN node corresponding to the classification label in the way of query.
通过获取被请求资源相同的用户并发数,再根据用户并发数和用户请求的分类标签来获取预设调度策略,可以使预设调度策略更加准确,在高并发的情况下也能保证用户请求对CDN节点的正常访问,提高CDN节点访问的稳定性。By obtaining the number of concurrent users with the same requested resources, and then obtaining the preset scheduling strategy according to the number of concurrent users and the classification label of user requests, the preset scheduling strategy can be more accurate, and in the case of high concurrency, it can also ensure that user requests are correct. The normal access of CDN nodes improves the stability of CDN node access.
在一个具体的例子中,请参考图3,其为本实施方式提供的CDN调度方法的另一流程示意图,具体包括以下步骤:In a specific example, please refer to FIG. 3 , which is another schematic flowchart of the CDN scheduling method provided in this embodiment, which specifically includes the following steps:
S301:接收用户请求,获取用户请求的特征信息,用户请求为N个,N为正整数。S301: Receive a user request, and obtain feature information requested by the user, where the number of user requests is N, and N is a positive integer.
S302:对特征信息进行分类,并根据分类的结果获取每一用户请求的分类标签。S302: Classify the feature information, and obtain a classification label requested by each user according to the classification result.
S303:获取预设用户画像,预设用户画像为根据历史用户请求和历史用户请求的分类标签得到的。S303: Obtain a preset user portrait, where the preset user portrait is obtained according to historical user requests and classification labels of historical user requests.
S304:将用户请求和用户请求的分类标签作为待定用户画像。S304: Use the user request and the classification label requested by the user as the pending user portrait.
S305:若待定用户画像与预设用户画像相同,则预设调度策略为将用户请求调度至预设访问CDN节点,预设访问CDN节点为历史用户请求最新访问或访问频次最高的CDN节点。S305: If the undetermined user profile is the same as the preset user profile, the preset scheduling policy is to schedule the user request to the preset access CDN node, and the preset access CDN node is the CDN node with the latest or highest access frequency of historical user requests.
S306:根据预设调度策略将用户请求调度至相应的CDN节点。S306: Schedule the user request to the corresponding CDN node according to the preset scheduling policy.
其中,S301、S302和S306与上述相同,这里不再赘述。Among them, S301, S302 and S306 are the same as the above, and will not be repeated here.
S303中,可选地,调度服务器可以将每一历史用户请求和与每一历史用户请求对应的分类标签作为一个预设用户画像。可以理解的是,每一历史用户请求与对应的分类标签作为一个整体,预设用户画像可以描述这个整体的行为,相同的历史用户请求和分类标签作为一个预设用户画像。可选地,调度服务器可以根据相同的历史用户请求和分类标签出现的次数来设置预设用户画像,例如,将出现次数超出一定值的历史用户请求和分类标签作为一个预设用户画像,出现次数不超过该定值的历史用户请求和分类标签则不设为预设用户画像。预设用户画像可以根据实际需要进行设置,这里不做具体限制。In S303, optionally, the scheduling server may use each historical user request and a classification label corresponding to each historical user request as a preset user portrait. It can be understood that each historical user request and the corresponding category label are taken as a whole, and the preset user portrait can describe the behavior of the whole, and the same historical user request and category label are used as a preset user portrait. Optionally, the scheduling server can set preset user portraits according to the same historical user request and the number of times the classification label appears. Historical user requests and category tags that do not exceed this value are not set to default user portraits. The preset user portrait can be set according to actual needs, and there are no specific restrictions here.
S304和S305中,具体地,调度服务器将用户请求和用户请求对应的分类标签作为待定用户画像,将待定用户画像与预设用户画像进行比较,若待定用户画像与预设用户画像相同,则将待定用户画像对应的用户请求调度至预设访问CDN节点。其中,预设访问CDN节点是指预设用户画像中的历史用户请求最新访问或访问频次最高的CDN节点。可选地,若待定用户画像与预设用户画像不相同,则根据用户请求的分类标签获取预设调度策略,再根据预设调度策略将用户请求调度至相应的CDN节点。In S304 and S305, specifically, the scheduling server takes the user request and the classification label corresponding to the user request as the pending user portrait, compares the pending user portrait with the preset user portrait, and if the pending user portrait is the same as the preset user portrait, then The user request corresponding to the pending user profile is dispatched to the preset access CDN node. The preset access CDN node refers to the CDN node with the latest access or the highest access frequency requested by historical users in the preset user profile. Optionally, if the to-be-determined user portrait is different from the preset user portrait, a preset scheduling policy is obtained according to the classification label requested by the user, and then the user request is scheduled to the corresponding CDN node according to the preset scheduling policy.
通过用户请求对应的用户画像进行比较,若待定用户画像与预设用户画像相同,则将用户请求调度至预设访问CDN节点,可以使CDN调度更加快速,降低调度的时延,提高用户访问的体验。The user profiles corresponding to the user requests are compared. If the pending user profile is the same as the preset user profile, the user request is scheduled to the preset access CDN node, which can make CDN scheduling faster, reduce scheduling delay, and improve user access. experience.
在一个具体的例子中,分类标签包括被请求资源的热度、用户归属省份和用户请求的IP,S103中,根据用户请求的分类标签获取预设调度策略,具体包括:若被请求资源的热度大于第一预设值,则判断用户归属省份的CDN节点的负载是否达到预设负载;若CDN节点的负载小于或等于预设负载,则预设调度策略为将用户请求调度至用户归属省份的CDN节点;若CDN节点的负载大于预设负载,则预设调度策略为采用轮询的方式将用户请求调度至用户请求的IP最近的空闲外省CDN节点。In a specific example, the classification label includes the popularity of the requested resource, the province to which the user belongs, and the IP requested by the user. In S103, a preset scheduling policy is obtained according to the classification label requested by the user, which specifically includes: if the popularity of the requested resource is greater than The first preset value is to determine whether the load of the CDN node in the province to which the user belongs reaches the preset load; if the load of the CDN node is less than or equal to the preset load, the preset scheduling policy is to schedule the user request to the CDN of the user's home province. node; if the load of the CDN node is greater than the preset load, the preset scheduling policy is to use a round-robin method to schedule the user request to the idle provincial CDN node with the nearest IP requested by the user.
其中,被请求资源的热度可通过被请求资源的访问用户人数来统计,也可以通过其它方式来统计。第一预设值可根据实际情况进行设置,这里不做具体限制。可选地,也可以通过被请求资源是否属于热点资源来判定,其中,被请求资源是否属于热点资源可以由相应的门户网站提供。CDN节点的负载可以通过CDN节点的CPU使用率或内存使用率等进行衡量,预设负载可以根据实际需要进行设置,这里也不做具体限制。The popularity of the requested resource may be counted by the number of users accessing the requested resource, or may be counted by other methods. The first preset value can be set according to the actual situation, and no specific limitation is made here. Optionally, it can also be determined by whether the requested resource belongs to a hotspot resource, wherein whether the requested resource belongs to a hotspot resource can be provided by a corresponding portal website. The load of the CDN node can be measured by the CPU usage or memory usage of the CDN node. The preset load can be set according to actual needs, and there are no specific restrictions here.
具体地,调度服务器对分类标签中的被请求资源的热度进行判断,若大于第一预设值,则进一步判断用户归属省份的CDN节点的负载是否达到预设负载。可选地,若被请求资源的热度小于或等于第一预设值,则预设调度策略可以为直接将用户请求调度至用户归属省份的CDN节点。进一步判断时,若用户归属省份的CDN节点的负载小于或等于预设负载,则预设调度策略为将用户请求调度至用户归属省份的CDN节点;可选地,预设调度策略将用户请求调度至离用户IP最近的用户归属省份的CDN节点。若用户归属省份的CDN节点的负载大于预设负载,则预设调度策略为采用轮询的方式将用户请求调度至离用户请求的IP最近的空闲外省CDN节点。可选地,CDN节点是否空闲可通过CDN节点的访问用户数是否达到一个阈值来判断。Specifically, the scheduling server judges the heatness of the requested resource in the classification label, and if it is greater than the first preset value, further judges whether the load of the CDN node in the user's home province reaches the preset load. Optionally, if the popularity of the requested resource is less than or equal to the first preset value, the preset scheduling policy may be to directly schedule the user request to the CDN node of the user's home province. In further judgment, if the load of the CDN node in the province to which the user belongs is less than or equal to the preset load, the preset scheduling policy is to schedule the user request to the CDN node in the province to which the user belongs; optionally, the preset scheduling policy schedules the user request. To the CDN node of the user's home province closest to the user's IP. If the load of the CDN node of the user's home province is greater than the preset load, the preset scheduling strategy is to use a round-robin method to schedule the user request to the idle CDN node in the province that is closest to the IP requested by the user. Optionally, whether the CDN node is idle can be determined by whether the number of access users of the CDN node reaches a threshold.
通过被请求资源的热度的判断来获取预设调度策略,可使用户对热点资源或非热点资源的访问被调度服务器合理调度,保证每个用户请求都能被满足;在被请求资源的热度判断的基础上,进一步对CDN节点的负载进行判断,可以结合CDN节点的实际情况进行调度,使CDN节点的负载在合理范围内,保证CDN节点访问的稳定性。The preset scheduling policy is obtained by judging the heat of the requested resources, so that the user's access to hot or non-hot resources can be reasonably scheduled by the scheduling server to ensure that each user request can be satisfied; On the basis of , the load of CDN nodes can be further judged, and scheduling can be carried out in combination with the actual situation of CDN nodes, so that the load of CDN nodes is within a reasonable range and the stability of CDN node access is guaranteed.
在一个具体的例子中,分类标签包括被请求资源的热度和用户请求的IP;在S204中,根据用户请求的分类标签和用户并发数获取预设调度策略,具体可以包括:若被请求资源的热度大于第二预设值,则判断用户并发数是否大于或等于预设用户并发数;若用户并发数大于或等于预设用户并发数,则预设调度策略为将预设比例的用户请求调度至离用户请求的IP最近的空闲外省CDN节点。In a specific example, the classification label includes the popularity of the requested resource and the IP requested by the user; in S204, a preset scheduling policy is obtained according to the classification label requested by the user and the number of concurrent users, which may specifically include: if the requested resource is If the heat is greater than the second preset value, it is determined whether the number of concurrent users is greater than or equal to the preset number of concurrent users; if the number of concurrent users is greater than or equal to the preset number of concurrent users, the preset scheduling policy is to schedule a preset proportion of user requests To the idle out-of-province CDN node closest to the IP requested by the user.
其中,第二预设值与上述第一预设值可以相同也可以不同。预设用户并发数可以根据实际需要进行设置,这里不做具体限制。预设比例可以根据用户并发数超出预设用户并发数占的比例来设置,也可以根据其它需要进行相应设置,这里不做具体限制。The second preset value and the first preset value may be the same or different. The preset number of concurrent users can be set according to actual needs, and there is no specific limit here. The preset ratio can be set according to the proportion of the number of concurrent users exceeding the preset number of concurrent users, or it can be set according to other needs, which is not limited here.
具体地,调度服务器对分类标签中的被请求资源的热度进行判断,若大于第二预设值,则进一步判断用户并发数是否大于或等于预设用户并发数。可选地,若被请求资源的热度小于或等于第二预设值,则预设调度策略可以将用户请求调度至离用户请求的IP最近的用户归属省份的CDN节点。在进一步判断时,若用户并发数大于或等于预设用户并发数,则预设调度策略为将预设比例的用户请求调度至离用户请求的IP最近的空闲外省CDN节点;可选地,若用户并发数小于预设用户并发数,则预设调度策略为将用户请求调度至离用户请求的IP最近的用户归属省份的CDN节点。可选地,将用户请求调度至离用户请求的IP最近的用户归属省份的CDN节点时,可采用轮询的方式。Specifically, the scheduling server judges the popularity of the requested resource in the classification label, and if it is greater than the second preset value, further judges whether the concurrent number of users is greater than or equal to the preset concurrent number of users. Optionally, if the popularity of the requested resource is less than or equal to the second preset value, the preset scheduling policy may schedule the user request to the CDN node of the user's home province closest to the IP requested by the user. In further judgment, if the number of concurrent users is greater than or equal to the preset number of concurrent users, the preset scheduling strategy is to schedule a preset proportion of user requests to the idle CDN node in the province closest to the IP requested by the user; optionally, if If the number of concurrent users is less than the preset number of concurrent users, the preset scheduling policy is to schedule the user request to the CDN node in the province to which the user belongs, which is closest to the IP requested by the user. Optionally, when scheduling the user request to the CDN node of the user's home province closest to the IP requested by the user, a polling manner may be adopted.
结合用户并发数和分类标签来进行用户请求的调度,将预设比例的用户请求主动调度至外省CDN节点,可以主动平衡用户请求与CDN节点,保证CDN访问资源的稳定性。Combining the number of concurrent users and classification labels to schedule user requests, proactively schedule a preset proportion of user requests to CDN nodes in other provinces, which can actively balance user requests and CDN nodes to ensure the stability of CDN access resources.
应当说明的是,上述实施例中,也可以按照用户请求的归属城市来划分而不限于归属省份;并且,预设调度策略可以将以上的方式进行其它组合后得到。It should be noted that, in the above embodiment, the division can also be based on the home city requested by the user, not limited to the home province; and the preset scheduling strategy can be obtained by combining the above methods in other ways.
请参考图4,其为本实施方式提供的CDN调度方法的原理示例图。具体地,用户通过客户端发出用户请求,请求访问资源。分析器可以为调度服务器中的一个模块,用于获取用户请求的特征信息,再对特征信息进行分类,获得分类标签;然后对用户请求的分类标签进行汇总,调度服务器对汇总的信息进行策略分析,获取预设调度策略;再进行调度触发,将用户请求调度至CDN节点,在调度至CDN节点时,可通过距离优先方式或轮询方式来调度至相应的CDN节点。Please refer to FIG. 4 , which is a schematic diagram of the principle example of the CDN scheduling method provided in this embodiment. Specifically, the user sends a user request through the client to request access to the resource. The analyzer can be a module in the scheduling server, which is used to obtain the feature information requested by the user, and then classify the feature information to obtain the classification label; then summarize the classification labels requested by the user, and the scheduling server performs policy analysis on the aggregated information. , obtain the preset scheduling policy; then perform scheduling triggering to schedule the user request to the CDN node, when scheduling to the CDN node, it can be scheduled to the corresponding CDN node by distance priority or round-robin.
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包含相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The step division of the above various methods is only for the purpose of describing clearly. During implementation, it can be combined into one step or some steps can be split and decomposed into multiple steps, as long as they contain the same logical relationship, they are all within the protection scope of this patent. ;Adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.
本发明第二实施方式涉及一种CDN调度装置,如图5所示,包含:特征信息获取模块401、分类标签获取模块402、调度策略获取模块403和节点调度模块404。The second embodiment of the present invention relates to a CDN scheduling apparatus. As shown in FIG. 5 , it includes: a feature
特征信息获取模块401,用于接收用户请求,获取用户请求的特征信息,用户请求为N个,N为正整数;A feature
分类标签获取模块402,用于对特征信息进行分类,并根据分类的结果获取每一用户请求的分类标签;The classification
调度策略获取模块403,用于根据用户请求的分类标签获取预设调度策略;a scheduling
节点调度模块404,用于根据预设调度策略将用户请求调度至相应的CDN节点。The
进一步地,分类标签获取模块402还用于:采用预设的分类标签标识分类的结果,获得每一用户请求的分类标签。Further, the classification
进一步地,特征信息包括被请求资源,在根据用户的分类标签获取预设调度策略之前,还包括:获取被请求资源相同的用户并发数;调度策略获取模块403还用于:根据用户请求的分类标签和用户并发数获取预设调度策略。Further, the feature information includes the requested resource, and before obtaining the preset scheduling strategy according to the user's classification label, it also includes: obtaining the same number of concurrent users of the requested resource; the scheduling
进一步地,在根据用户请求的分类标签获取预设调度策略之前,还包括:获取预设用户画像,预设用户画像为根据历史用户请求和历史用户请求的分类标签得到的;调度策略获取模块403还用于:将用户请求和用户请求的分类标签作为待定用户画像;若待定用户画像与预设用户画像相同,则预设调度策略为将用户请求调度至预设访问CDN节点,预设访问CDN节点为历史用户请求最新访问或访问频次最高的CDN节点。Further, before obtaining the preset scheduling strategy according to the classification label requested by the user, it also includes: obtaining a preset user portrait, the preset user portrait is obtained according to the historical user request and the classification label of the historical user request; the scheduling
进一步地,分类标签包括用户请求的IP、用户归属省份、发出用户请求的客户端类型、被请求资源的热度、被请求资源的内容和被请求资源的类型中的至少一项。Further, the classification label includes at least one of the IP requested by the user, the province where the user belongs, the type of the client that sent the user request, the popularity of the requested resource, the content of the requested resource, and the type of the requested resource.
进一步地,分类标签包括被请求资源的热度、用户归属省份和用户请求的IP;调度策略获取模块403还用于:Further, the classification label includes the heat of the requested resource, the province to which the user belongs, and the IP requested by the user; the scheduling
若被请求资源的热度大于第一预设值,则判断用户归属省份的CDN节点的负载是否达到预设负载;If the heat of the requested resource is greater than the first preset value, determine whether the load of the CDN node of the user's home province reaches the preset load;
若CDN节点的负载小于或等于预设负载,则预设调度策略为将用户请求调度至用户归属省份的CDN节点;If the load of the CDN node is less than or equal to the preset load, the preset scheduling policy is to schedule the user request to the CDN node of the user's home province;
若CDN节点的负载大于预设负载,则预设调度策略为采用轮询的方式将用户请求调度至离用户请求的IP最近的空闲外省CDN节点。If the load of the CDN node is greater than the preset load, the preset scheduling strategy is to use a round-robin method to schedule the user request to the idle CDN node in the province closest to the IP requested by the user.
进一步地,分类标签包括被请求资源的热度和用户请求的IP;调度策略获取模块403还用于:Further, the classification label includes the popularity of the requested resource and the IP requested by the user; the scheduling
若被请求资源的热度大于第二预设值,则判断用户并发数是否大于或等于预设用户并发数;If the heat of the requested resource is greater than the second preset value, determine whether the concurrent number of users is greater than or equal to the preset number of concurrent users;
若用户并发数大于或等于预设用户并发数,则预设调度策略为将预设比例的用户请求调度至离用户请求的IP最近的空闲外省CDN节点。If the number of concurrent users is greater than or equal to the preset number of concurrent users, the preset scheduling policy is to schedule a preset proportion of user requests to idle CDN nodes in other provinces that are closest to the IP requested by the user.
不难发现,本实施方式为与第一实施方式相对应的装置实施例,本实施方式可与第一实施方式互相配合实施。第一实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第一实施方式中。It is not difficult to find that this embodiment is a device example corresponding to the first embodiment, and this embodiment can be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not repeated here in order to reduce repetition. Correspondingly, the related technical details mentioned in this embodiment can also be applied to the first embodiment.
值得一提的是,本实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本发明的创新部分,本实施方式中并没有将与解决本发明所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。It is worth mentioning that each module involved in this embodiment is a logical module. In practical applications, a logical unit may be a physical unit, a part of a physical unit, or multiple physical units. A composite implementation of the unit. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.
本发明第三实施方式涉及一种网络设备,如图6所示,包括至少一个处理器501;以及,与至少一个处理器501通信连接的存储器502;其中,存储器502存储有可被至少一个处理器501执行的指令,指令被至少一个处理器501执行,以使至少一个处理器501能够执行上述的CDN调度方法。The third embodiment of the present invention relates to a network device, as shown in FIG. 6 , comprising at least one
其中,存储器502和处理器501采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器501和存储器502的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器501处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器501。The
处理器501负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器502可以被用于存储处理器501在执行操作时所使用的数据。
本发明第四实施方式涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。A fourth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The above method embodiments are implemented when the computer program is executed by the processor.
即,本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium and includes several instructions to make a device (which can be It is a single-chip microcomputer, a chip, etc.) or a processor (processor) that executes all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.
本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Those skilled in the art can understand that the above-mentioned embodiments are specific examples for realizing the present invention, and in practical applications, various changes in form and details can be made without departing from the spirit and the spirit of the present invention. scope.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910789874.2A CN110708256B (en) | 2019-08-26 | 2019-08-26 | CDN scheduling method, CDN scheduling device, network equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910789874.2A CN110708256B (en) | 2019-08-26 | 2019-08-26 | CDN scheduling method, CDN scheduling device, network equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110708256A true CN110708256A (en) | 2020-01-17 |
| CN110708256B CN110708256B (en) | 2023-05-02 |
Family
ID=69193962
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910789874.2A Active CN110708256B (en) | 2019-08-26 | 2019-08-26 | CDN scheduling method, CDN scheduling device, network equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110708256B (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111614736A (en) * | 2020-04-30 | 2020-09-01 | 北京金山云网络技术有限公司 | Network content resource scheduling method, domain name scheduling server and electronic equipment |
| CN113204430A (en) * | 2021-05-31 | 2021-08-03 | 世纪龙信息网络有限责任公司 | Resource scheduling method, scheduling management platform, device and medium |
| CN113377519A (en) * | 2021-07-07 | 2021-09-10 | 江苏云工场信息技术有限公司 | CDN-based content scheduling method |
| CN113448738A (en) * | 2021-08-31 | 2021-09-28 | 成都派沃特科技股份有限公司 | Method, device, equipment and storage medium for adjusting availability of server |
| CN113810450A (en) * | 2020-06-17 | 2021-12-17 | 中兴通讯股份有限公司 | CDN node scheduling method, GSLB server and storage medium |
| CN114268672A (en) * | 2021-12-20 | 2022-04-01 | 北京字节跳动网络技术有限公司 | CDN node distribution method, device, electronic equipment, medium and program product |
| CN114338725A (en) * | 2021-12-31 | 2022-04-12 | 深圳市瑞云科技有限公司 | A Distributed Storage Scheduling Method to Improve the Rendering Upper Limit of Large-scale Clusters |
| CN118972386A (en) * | 2024-08-13 | 2024-11-15 | 中国移动通信集团浙江有限公司 | CDN acceleration strategy generation method, generation device and electronic device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101035264A (en) * | 2007-04-09 | 2007-09-12 | 中兴通讯股份有限公司 | Content distribution network system and its content and service scheduling method |
| CN105847403A (en) * | 2016-04-26 | 2016-08-10 | 乐视控股(北京)有限公司 | Scheduling method and system |
| CN107277150A (en) * | 2017-06-28 | 2017-10-20 | 湖南科创信息技术股份有限公司 | CDN intelligent dispatching methods and system |
-
2019
- 2019-08-26 CN CN201910789874.2A patent/CN110708256B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101035264A (en) * | 2007-04-09 | 2007-09-12 | 中兴通讯股份有限公司 | Content distribution network system and its content and service scheduling method |
| CN105847403A (en) * | 2016-04-26 | 2016-08-10 | 乐视控股(北京)有限公司 | Scheduling method and system |
| CN107277150A (en) * | 2017-06-28 | 2017-10-20 | 湖南科创信息技术股份有限公司 | CDN intelligent dispatching methods and system |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111614736A (en) * | 2020-04-30 | 2020-09-01 | 北京金山云网络技术有限公司 | Network content resource scheduling method, domain name scheduling server and electronic equipment |
| CN113810450A (en) * | 2020-06-17 | 2021-12-17 | 中兴通讯股份有限公司 | CDN node scheduling method, GSLB server and storage medium |
| CN113204430A (en) * | 2021-05-31 | 2021-08-03 | 世纪龙信息网络有限责任公司 | Resource scheduling method, scheduling management platform, device and medium |
| CN113377519A (en) * | 2021-07-07 | 2021-09-10 | 江苏云工场信息技术有限公司 | CDN-based content scheduling method |
| CN113448738A (en) * | 2021-08-31 | 2021-09-28 | 成都派沃特科技股份有限公司 | Method, device, equipment and storage medium for adjusting availability of server |
| CN114268672A (en) * | 2021-12-20 | 2022-04-01 | 北京字节跳动网络技术有限公司 | CDN node distribution method, device, electronic equipment, medium and program product |
| CN114268672B (en) * | 2021-12-20 | 2024-01-12 | 北京字节跳动网络技术有限公司 | CDN node allocation method, device, electronic equipment, media and program products |
| CN114338725A (en) * | 2021-12-31 | 2022-04-12 | 深圳市瑞云科技有限公司 | A Distributed Storage Scheduling Method to Improve the Rendering Upper Limit of Large-scale Clusters |
| CN114338725B (en) * | 2021-12-31 | 2024-01-30 | 深圳市瑞云科技有限公司 | Distributed storage scheduling method for improving upper limit of large-scale cluster rendering |
| CN118972386A (en) * | 2024-08-13 | 2024-11-15 | 中国移动通信集团浙江有限公司 | CDN acceleration strategy generation method, generation device and electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110708256B (en) | 2023-05-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110708256B (en) | CDN scheduling method, CDN scheduling device, network equipment and storage medium | |
| US10812358B2 (en) | Performance-based content delivery | |
| CN110109953B (en) | Data query method, device and equipment | |
| US8176037B2 (en) | System and method for SQL query load balancing | |
| CN106657379A (en) | Implementation method and system for NGINX server load balancing | |
| CN103338252B (en) | Realizing method of distributed database concurrence storage virtual request mechanism | |
| US11416564B1 (en) | Web scraper history management across multiple data centers | |
| CN102104631B (en) | Method for ensuring quality of service of knowledge system based on cloud computing technology | |
| CN109831524B (en) | Load balancing processing method and device | |
| CN107426332B (en) | A kind of load-balancing method and system of web server cluster | |
| CN110830565B (en) | Resource downloading method, device, system, electronic equipment and storage medium | |
| CN109672757B (en) | File access method and file access processing device | |
| EP4227828A1 (en) | Web scraping through use of proxies, and applications thereof | |
| CN102075554A (en) | Service processing method and system based on SOA (Service Oriented Architecture) | |
| US9817698B2 (en) | Scheduling execution requests to allow partial results | |
| US20140337536A1 (en) | Method and apparatus for data communication | |
| CN109002364A (en) | Optimization method, electronic device and the readable storage medium storing program for executing of interprocess communication | |
| CN118433253A (en) | Information security data storage method, system and electronic device | |
| CN109063142A (en) | Web page resources method for pushing and server | |
| CN105516271B (en) | Transaction processing system, method for processing business and device | |
| CN106210120B (en) | A kind of recommended method and its device of server | |
| CN107257388A (en) | A kind of information-pushing method and device based on distributed cluster system | |
| KR101512647B1 (en) | Method For Choosing Query Processing Engine | |
| Horincar et al. | Best-effort refresh strategies for content-based rss feed aggregation | |
| CN109460293B (en) | Computing resource selection method under distributed computing environment in wireless cloud computing system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |