CN102638483B - A kind of defining method of content distribution nodes, equipment and system - Google Patents
A kind of defining method of content distribution nodes, equipment and system Download PDFInfo
- Publication number
- CN102638483B CN102638483B CN201110038305.8A CN201110038305A CN102638483B CN 102638483 B CN102638483 B CN 102638483B CN 201110038305 A CN201110038305 A CN 201110038305A CN 102638483 B CN102638483 B CN 102638483B
- Authority
- CN
- China
- Prior art keywords
- content distribution
- node
- identification information
- index server
- user
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000002776 aggregation Effects 0.000 claims description 45
- 238000004220 aggregation Methods 0.000 claims description 45
- 230000008569 process Effects 0.000 claims description 24
- 238000011156 evaluation Methods 0.000 claims description 9
- 230000004931 aggregating effect Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 16
- 230000004044 response Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 235000008694 Humulus lupulus Nutrition 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000013441 quality evaluation Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种内容分发节点的确定方法、设备及系统,用以确定为用户提供服务的最佳的内容分发节点,其中,所述方法包括:域索引服务器获得用户的访问请求;以及根据所述访问请求中携带的用户请求访问的网页的网址信息,在网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找所述网址信息对应的各内容分发节点的节点标识信息;域索引服务器在查找到的各节点标识信息对应的内容分发节点中,确定为所述用户提供服务的内容分发节点。
The invention discloses a method, device and system for determining a content distribution node, which are used to determine the best content distribution node for providing services to users, wherein the method includes: a domain index server obtains a user's access request; and according to The URL information of the webpage that the user requests to visit carried in the access request is searched for the correspondence between the URL information of the webpage and the node identification information of each content distribution node that stores the webpage content of the webpage. The node identification information of each content distribution node; the domain index server determines the content distribution node that provides services for the user among the content distribution nodes corresponding to the found node identification information.
Description
技术领域 technical field
本发明涉及网络技术领域,尤其涉及一种内容分发节点的确定方法、设备及系统。The present invention relates to the field of network technology, in particular to a method, device and system for determining a content distribution node.
背景技术 Background technique
网站将用户提交的对某一网址的访问请求通过公共域名系统(DNS,DomainNameSystem)引导到内容分发网络(CDN,ContentDeliveryNetwork)系统,然后选择距离用户最近的内容分发节点来为用户提供网页内容,以实现网页的快速分发,解决由于网络带宽小、用户访问量大、网点分布不均匀等原因造成的用户访问网站响应速度慢的问题。其中,各个公共DNS之间的结构为树形结构,其中该树形结构中的每个节点均代表一个公共DNS,只有位于该树形结构中的叶子节点可以称为本地DNS,用户发送的访问请求首先到达本地DNS。The website guides the access request submitted by the user to a certain website through the public domain name system (DNS, Domain Name System) to the content distribution network (CDN, Content Delivery Network) system, and then selects the content distribution node closest to the user to provide the user with web content, so as to Realize the rapid distribution of web pages, and solve the problem of slow response speed of users visiting websites due to reasons such as small network bandwidth, large number of user visits, and uneven distribution of outlets. Among them, the structure between each public DNS is a tree structure, wherein each node in the tree structure represents a public DNS, and only the leaf nodes located in the tree structure can be called local DNS. The request first hits the local DNS.
现有技术中,同一域内的所有用户对同一网址的访问请求都会被引导至同一CDN系统,即预先设置了网址和CDN系统之间一对一的对应关系。现有技术一般按照如下过程处理用户的访问请求:1、用户向浏览器提交访问请求,该访问请求中包含用户请求访问的网页的网址;2、浏览器将访问请求发送给本地DNS;3、本地DNS在本域的各CDN系统中,查找与该访问请求中的网址对应的CDN系统;4、本地DNS将用户的访问请求发送给查找到的CDN系统中的接管DNS(现有技术中,每个CDN系统均配置一接管DNS);5、接管DNS在该CDN系统的各CDN缓存服务器中,基于用户的地理位置信息,确定出距离该用户最近的CDN缓存服务器,其中,用户的地理位置一般根据用户的互联网协议(IP,InternetProtocol)地址确定,接管DNS将确定出的CDN缓存服务器的IP地址返回给本地DNS;6、本地DNS将接收到的IP地址返回给浏览器;7、浏览器根据该IP地址,向CDN缓存服务器提交访问请求,该访问请求中包含用户请求访问的网页的网址;8、CDN缓存服务器接收到访问请求后,若保存有该网页的网页内容,则直接向浏览器返回网页内容,若没有保存该网页的网页内容,则向源站获取相应的网页内容后返回给浏览器,并在本地保存获取到的网页内容。In the prior art, the access requests of all users in the same domain to the same website will be directed to the same CDN system, that is, a one-to-one correspondence between the website and the CDN system is preset. The prior art generally processes the user's access request according to the following process: 1. The user submits an access request to the browser, which includes the URL of the webpage the user requests to visit; 2. The browser sends the access request to the local DNS; 3. The local DNS searches for the CDN system corresponding to the website address in the access request in each CDN system of the domain; 4. The local DNS sends the user's access request to the takeover DNS in the found CDN system (in the prior art, Each CDN system is all configured with a takeover DNS); 5. Taking over the DNS in each CDN cache server of the CDN system, based on the user's geographic location information, determines the CDN cache server closest to the user, wherein the user's geographic location Generally determined according to the user's Internet Protocol (IP, Internet Protocol) address, the takeover DNS returns the IP address of the determined CDN cache server to the local DNS; 6, the local DNS returns the received IP address to the browser; 7, the browser According to the IP address, an access request is submitted to the CDN cache server, and the access request includes the URL of the web page requested by the user; The browser returns the webpage content. If the webpage content of the webpage is not saved, the corresponding webpage content is obtained from the source site and returned to the browser, and the obtained webpage content is saved locally.
目前,任何一个单一的CDN系统均无法覆盖某一地域的所有位置,因此CDN系统服务商在同一域内会部署多个CDN系统,以实现地域覆盖的互补性。但是现有技术中,由于网址和CDN系统采用一对一的固定配置,即本地DNS只能够将用户的访问请求引导到本域中与用户请求访问的网址对应的CDN系统中,并从该CDN系统中基于用户的地理位置信息选择距离用户最近的CDN缓存服务器(也称为内容分发节点)为用户提供服务,即为用户提供将要访问的网址对应的网页内容,该内容分发节点只是对应的CDN系统中距离用户最近的内容分发节点,而不一定是所有CDN系统中分发质量最好或者距离用户最近的内容分发节点,即使其他CDN系统中的内容分发节点也存储了该网页的网页内容,且这些内容分发节点距离用户更近或者分发质量更好,本地DNS依然将该用户的访问请求导向本域与该网址对应的CDN系统中的内容分发节点,使得最后为用户提供服务的内容分发节点并不是最佳的内容分发节点,因此造成内容分发节点为用户提供网页内容时的处理效率较低。At present, any single CDN system cannot cover all locations in a certain region, so CDN system service providers will deploy multiple CDN systems in the same region to achieve complementary geographical coverage. However, in the prior art, since the website and the CDN system adopt a one-to-one fixed configuration, that is, the local DNS can only guide the user's access request to the CDN system corresponding to the website requested by the user in this domain, and from the CDN Based on the geographical location information of the user, the system selects the CDN cache server (also called the content distribution node) closest to the user to provide services for the user, that is, to provide the user with the webpage content corresponding to the URL to be accessed. The content distribution node is only the corresponding CDN The content distribution node closest to the user in the system, not necessarily the content distribution node with the best distribution quality or the closest distance to the user in all CDN systems, even if content distribution nodes in other CDN systems also store the web page content of the web page, and These content distribution nodes are closer to the user or have better distribution quality. The local DNS still directs the user's access request to the content distribution node in the CDN system corresponding to the domain and the URL, so that the content distribution node that finally provides services to the user does not It is not an optimal content distribution node, so the processing efficiency of the content distribution node to provide users with webpage content is low.
发明内容 Contents of the invention
本发明实施例提供一种内容分发节点的确定方法、设备及系统,用以确定为用户提供服务的最佳的内容分发节点,提高内容分发节点为用户提供网页内容时的处理效率。Embodiments of the present invention provide a method, device, and system for determining a content distribution node, which are used to determine the best content distribution node for providing services to users, and improve the processing efficiency of the content distribution node when providing webpage content for users.
本发明实施例提供一种内容分发节点的确定方法,包括:An embodiment of the present invention provides a method for determining a content distribution node, including:
域索引服务器获得用户的访问请求;以及The domain index server obtains the user's access request; and
根据所述访问请求中携带的用户请求访问的网页的网址信息,在网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找所述网址信息对应的各内容分发节点的节点标识信息;According to the URL information of the webpage requested by the user carried in the access request, search for the URL information in the corresponding relationship between the URL information of the webpage and the node identification information of each content distribution node storing the webpage content of the webpage Node identification information of each corresponding content distribution node;
域索引服务器在查找到的各节点标识信息对应的内容分发节点中,确定为所述用户提供服务的内容分发节点。The domain index server determines the content distribution node that provides the service for the user among the content distribution nodes corresponding to the identified node identification information.
本发明实施例提供一种域索引服务器,包括:An embodiment of the present invention provides a domain index server, including:
存储单元,用于存储网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系;The storage unit is used for storing the corresponding relationship between the URL information of the webpage and the node identification information of each content distribution node storing the webpage content of the webpage;
获得单元,用于获得用户的访问请求;an obtaining unit, configured to obtain a user's access request;
查找单元,用于根据所述获得单元获得的访问请求中携带的用户请求访问的网页的网址信息,在所述存储单元存储的网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找所述网址信息对应的各内容分发节点的节点标识信息;The search unit is configured to use the website address information of the webpage that the user requests to visit carried in the access request obtained by the obtaining unit, the website address information of the webpage stored in the storage unit, and the information of each content distribution node that stores the webpage content of the webpage In the corresponding relationship between the node identification information, look up the node identification information of each content distribution node corresponding to the website information;
确定单元,用于在所述查找单元查找到的各节点标识信息对应的内容分发节点中,按照预设的确定规则,确定为所述用户提供服务的内容分发节点。The determining unit is configured to determine, among the content distribution nodes corresponding to each node identification information searched by the search unit, according to a preset determination rule, a content distribution node that provides services for the user.
本发明实施例提供一种内容分发节点的确定方法,包括:An embodiment of the present invention provides a method for determining a content distribution node, including:
全局索引服务器接收第一域索引服务器发送的访问请求;以及The global index server receives the access request sent by the first domain index server; and
根据所述访问请求中携带的用户请求访问的网页的网址信息,查找所述网址信息对应的第二域索引服务器的服务器标识信息;According to the website address information of the webpage requested by the user carried in the access request, search for the server identification information of the second domain index server corresponding to the website address information;
全局索引服务器在查找到的各服务器标识信息对应的第二域索引服务器中,确定出满足预设条件的第二域索引服务器;并The global index server determines a second domain index server that satisfies a preset condition among the second domain index servers corresponding to the identified server identification information; and
将所述访问请求发送给确定出的第二域索引服务器,指示所述第二域索引服务器确定为所述用户提供服务的内容分发节点。Sending the access request to the determined second domain index server, instructing the second domain index server to determine a content distribution node that provides services for the user.
本发明实施例提供一种全局索引服务器,包括:An embodiment of the present invention provides a global index server, including:
存储单元,用于存储网页的网址信息与存储有网页的网页内容的各内容分发节点所属的第二域索引服务器的服务器标识信息对应关系;The storage unit is used to store the corresponding relationship between the URL information of the webpage and the server identification information of the second domain index server to which each content distribution node that stores the webpage content of the webpage belongs;
接收单元,用于接收第一域索引服务器发送的、用户的访问请求,所述访问请求中携带有用户请求访问的网页的网址信息;The receiving unit is configured to receive the user's access request sent by the first domain index server, the access request carrying the URL information of the webpage the user requests to visit;
查找单元,用于根据接收单元接收到的用户的访问请求中携带的网址信息,在所述存储单元存储的网页的网址信息与存储有网页的网页内容的各内容分发节点所属的第二域索引服务器的服务器标识信息对应关系中,查找所述网址信息对应的第二域索引服务器的服务器标识信息;The search unit is configured to, according to the website information carried in the user's access request received by the receiving unit, store the website information of the webpage stored in the storage unit and the second domain index to which each content distribution node that stores the webpage content of the webpage belongs to In the corresponding relationship of the server identification information of the server, search for the server identification information of the second domain index server corresponding to the URL information;
确定单元,用于在查找到的各服务器标识信息对应的第二域索引服务器中,确定出满足预设条件的第二域索引服务器;A determining unit, configured to determine, among the second domain index servers corresponding to the searched server identification information, a second domain index server that satisfies a preset condition;
发送单元,用于将所述访问请求发送给所述确定单元确定出的第二域索引服务器,指示所述第二域索引服务器确定为所述用户提供服务的内容分发节点。A sending unit, configured to send the access request to the second domain index server determined by the determining unit, and instruct the second domain index server to determine a content distribution node that provides services for the user.
本发明实施例提供一种内容分发节点的确定系统,包括:An embodiment of the present invention provides a system for determining a content distribution node, including:
第一域索引服务器,用于获得用户的访问请求,所述访问请求中携带有用户请求访问的网页的网址信息;根据所述访问请求中携带的网址信息,在网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找所述网址信息对应的各内容分发节点的节点标识信息;在查找到的各节点标识信息对应的内容分发节点中,按照预设的确定规则,确定为所述用户提供服务的内容分发节点;以及在未确定出为所述用户提供服务的内容分发节点时,将所述获得的用户的访问请求发送给全局索引服务器,所述访问请求中携带有用户请求访问的网页的网址信息;The first domain index server is used to obtain the user's access request, and the access request carries the URL information of the web page that the user requests to visit; according to the URL information carried in the access request, the URL information of the web page and the web page are stored In the corresponding relationship between the node identification information of each content distribution node of the webpage content, search for the node identification information of each content distribution node corresponding to the website information; in the found content distribution node corresponding to each node identification information, According to a preset determination rule, determine a content distribution node that provides services for the user; and when no content distribution node that provides services for the user is determined, send the obtained user's access request to the global index server , the access request carries URL information of the webpage requested by the user;
所述全局索引服务器,用于接收所述第一域索引服务器发送的、用户的访问请求;根据所述访问请求中携带的网址信息,查找所述网址信息对应的第二域索引服务器的服务器标识信息;在查找到的各服务器标识信息对应的第二域索引服务器中,确定出满足预设条件的第二域索引服务器;并将所述访问请求发送给确定出的第二域索引服务器,指示所述第二域索引服务器确定为所述用户提供服务的内容分发节点;The global index server is configured to receive the user's access request sent by the first domain index server; according to the URL information carried in the access request, search for the server identifier of the second domain index server corresponding to the URL information information; among the second domain index servers corresponding to the searched server identification information, determine the second domain index server that meets the preset condition; and send the access request to the determined second domain index server, indicating The second domain index server determines a content distribution node that provides services for the user;
所述第二域索引服务器,用于确定为用户提供服务的内容分发节点,其中,所述第二域服务器确定为用户提供服务的内容分发节点时,根据所述访问请求中携带的网址信息,在网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找所述网址信息对应的各内容分发节点的节点标识信息,针对查找到的每个节点标识信息对应的内容分发节点,分别确定该内容分发节点的分发权重值,根据确定出的各分发权重值,在查找到的各节点标识信息对应的内容分发节点中,确定为所述用户提供服务的内容分发节点。The second domain index server is configured to determine a content distribution node that provides services to the user, wherein, when the second domain server determines the content distribution node that provides services to the user, according to the URL information carried in the access request, In the corresponding relationship between the network address information of the web page and the node identification information of each content distribution node that stores the content of the web page, search for the node identification information of each content distribution node corresponding to the network address information, and for each found The content distribution node corresponding to the node identification information respectively determines the distribution weight value of the content distribution node, and according to the determined distribution weight values, among the content distribution nodes corresponding to the found node identification information, determine to provide The content distribution node of the service.
本发明实施例提供的内容分发节点的确定方法、设备及系统,域索引服务器根据获得的用户的访问请求中携带的网页的网址信息,首先查找缓存了该网址信息对应的网页内容的所有内容分发节点的节点标识信息,之后按照预设的确定规则,从查找到的节点标识信息对应的内容分发节点中确定为所述用户提供服务的内容分发节点,这样,由于域索引服务器按照预设的规则,从缓存了该网址信息对应的网页内容的所有内容分发节点中确定为用户提供服务的内容分发节点,而不再是从该网址信息对应的一个CDN系统中查找内容分发节点,因此最终确定出的为用户提供服务的内容分发节点为最佳的内容分发节点,有效地提高了内容分发节点为用户提供服务时的处理效率。In the method, device, and system for determining a content distribution node provided by the embodiments of the present invention, the domain index server first searches for and caches all content distribution sites that have cached the web page content corresponding to the web address information according to the obtained web address information carried in the user's access request. The node identification information of the node, and then according to the preset determination rules, determine the content distribution node that provides services for the user from the content distribution nodes corresponding to the found node identification information. In this way, because the domain index server follows the preset rules , determine the content distribution node that provides services to users from all the content distribution nodes that have cached the web page content corresponding to the URL information, instead of searching for the content distribution node from a CDN system corresponding to the URL information, so finally determine the The content distribution node that provides services for users is the best content distribution node, which effectively improves the processing efficiency of content distribution nodes when providing services for users.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明 Description of drawings
图1为域索引服务器侧内容分发节点的确定方法的实施流程示意图;Fig. 1 is a schematic diagram of the implementation process of the method for determining the content distribution node on the domain index server side;
图2为本发明实施例中,域索引服务器查找到相应的内容分发节点的各节点标识信息时,确定为用户提供服务的内容分发节点的实施流程示意图;FIG. 2 is a schematic diagram of an implementation process for determining a content distribution node that provides services to users when the domain index server finds the identification information of each node of the corresponding content distribution node in an embodiment of the present invention;
图3为本发明实施例中,域索引服务器在未查找到相应的内容分发节点的各节点标识信息时,确定为用户提供的服务的内容分发节点的实施流程示意图;FIG. 3 is a schematic diagram of an implementation process for determining a content distribution node that provides services to users when the domain index server does not find the identification information of each node of the corresponding content distribution node in an embodiment of the present invention;
图4为本发明实施例中,第一域索引服务器负载过重时,确定为用户提供服务的内容分发节点的实施流程示意图;FIG. 4 is a schematic diagram of an implementation process for determining a content distribution node that provides services to users when the first domain index server is overloaded in an embodiment of the present invention;
图5为本发明实施例中,域索引服务器一种可能的结构示意图;FIG. 5 is a schematic diagram of a possible structure of a domain index server in an embodiment of the present invention;
图6为本发明实施例中,全局服务器侧内容分发节点的确定方法的实施流程示意图;FIG. 6 is a schematic diagram of an implementation flow of a method for determining content distribution nodes on the global server side in an embodiment of the present invention;
图7为本发明实施例中,全局索引服务器一种可能的结构示意图;FIG. 7 is a schematic diagram of a possible structure of a global index server in an embodiment of the present invention;
图8为本发明实施例中,内容分发节点的确定系统一种可能的结构示意图。FIG. 8 is a schematic diagram of a possible structure of a system for determining a content distribution node in an embodiment of the present invention.
具体实施方式 detailed description
为了实现确定为用户提供服务的最佳的内容分发节点,以提高内容分发节点为用户提供网页内容时的处理效率的目的,本发明实施例提供了一种内容分发节点的确定方法、设备及系统。In order to achieve the purpose of determining the best content distribution node for providing services to users, and to improve the processing efficiency of content distribution nodes when providing web page content for users, the embodiments of the present invention provide a method, device and system for determining content distribution nodes .
以下结合说明书附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明,并且在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention, and in the absence of conflict, the present invention The embodiments and the features in the embodiments can be combined with each other.
本发明涉及的内容分发节点不限于Web系统、WebCache系统和CDN系统中的内容分发节点,也可以是具有服务能力的用户节点。The content distribution nodes involved in the present invention are not limited to the content distribution nodes in the Web system, WebCache system and CDN system, and may also be user nodes with service capabilities.
如图1所示,为本发明实施例中,域索引服务器侧内容分发节点的确定方法的实施流程示意图,包括;As shown in FIG. 1, it is a schematic flow diagram of the implementation process of the method for determining the content distribution node on the domain index server side in the embodiment of the present invention, including;
S11、域索引服务器获得用户的访问请求;S11. The domain index server obtains the user's access request;
S12、根据所述访问请求中携带的用户请求访问的网页的网址信息,在网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找该网址信息对应的各内容分发节点的节点标识信息;S12. According to the URL information of the webpage requested by the user carried in the access request, search for the URL in the corresponding relationship between the URL information of the webpage and the node identification information of each content distribution node storing the webpage content of the webpage Node identification information of each content distribution node corresponding to the information;
S13、域索引服务器在查找到的各节点标识信息对应的内容分发节点中,按照预设的确定规则,确定为该用户提供服务的内容分发节点。S13. The domain index server determines, among the content distribution nodes corresponding to the searched node identification information, a content distribution node that provides services for the user according to a preset determination rule.
具体实施中,域索引服务器可以以表格的格式存储网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系。对应关系的存储格式不限于此,只要是便于存储及管理的格式都可以。In a specific implementation, the domain index server may store the correspondence between the URL information of the web page and the node identification information of each content distribution node storing the web content of the web page in a table format. The storage format of the corresponding relationship is not limited to this, as long as it is a format that is convenient for storage and management.
具体实施中,内容分发节点的节点标识信息通常用IP地址表示。In a specific implementation, the node identification information of the content distribution node is usually represented by an IP address.
一种可能的存储格式如表1所示:A possible storage format is shown in Table 1:
表1Table 1
其中,字段“类型”包括两种,分别以“0”和“1”进行标识,当类型为“0”时,表示缓存有该网址信息对应的网页内容的内容分发节点属于本域;当类型为“1”时,表示缓存有该网址信息对应的网页内容的内容分发节点属于除本域以外的其它域。域的划分可以简单的根据IP地址进行划分,也可以根据路由的跳数,或者其他的方法进行划分。其中,对于类型为“1”的记录,域索引服务器可以根据一定时间段内,本域内的用户对对应的网址信息的访问数量、预先设置的热点判断条件(如1小时内用户的访问数量达到100次),当该网址信息的访问量达到热点判断条件时,域索引服务器向本域内的所有的内容分发节点发送通知消息,通知各内容分发节点增加对该网址信息对应的网页内容的缓存,各内容分发节点根据接收到的通知消息,增加对该网址信息对应的网页内容的缓存后,上报域索引服务器,域索引服务器根据各内容分发节点上报的消息,在自身存储的网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,增加相应的记录。Among them, the field "type" includes two types, which are marked with "0" and "1" respectively. When the type is "0", it means that the content distribution node that caches the webpage content corresponding to the URL information belongs to this domain; when the type When it is "1", it means that the content distribution node that caches the webpage content corresponding to the URL information belongs to other domains except this domain. Domains can be divided simply based on IP addresses, or based on routing hops, or other methods. Among them, for the records whose type is "1", the domain index server can base on the number of visits to the corresponding website information by users in the domain within a certain period of time, and the preset hotspot judgment conditions (such as the number of visits by users within 1 hour reaches 100 times), when the number of visits of the website information reaches the hotspot judgment condition, the domain index server sends a notification message to all content distribution nodes in the domain, notifying each content distribution node to increase the cache of the webpage content corresponding to the website information, Each content distribution node increases the cache of the web page content corresponding to the URL information according to the received notification message, and then reports to the domain index server, and the domain index server stores the URL information and A corresponding record is added to the corresponding relationship between the node identification information of each content distribution node that stores the web page content of the web page.
步骤S12中涉及的确定规则可以但不限于以下两种方式:The determination rules involved in step S12 can be but not limited to the following two ways:
方式一method one
基于用户地理位置最近原则:在查找到的各节点标识信息对应的内容分发节点中,确定距离该用户位置最近的内容分发节点为为所述用户提供服务的内容分发节点。即基于用户的地理位置信息原则,在所有缓存了用户请求访问的网址对应的网页内容的分发节点中,将地理位置上距离用户最近的内容分发节点确定为为用户提供服务的内容分发节点。Based on the principle of the closest geographical location of the user: among the content distribution nodes corresponding to the searched node identification information, determine the content distribution node closest to the user's location as the content distribution node that provides services for the user. That is, based on the user's geographic location information principle, among all the distribution nodes that have cached the webpage content corresponding to the URL requested by the user, the content distribution node that is geographically closest to the user is determined as the content distribution node that provides services for the user.
方式二way two
基于各内容分发节点分发权重值原则:针对查找到的每个节点标识信息对应的内容分发节点,分别确定该内容分发节点的分发权重值;根据确定出的各分发权重值,在查找到的各节点标识信息对应的内容分发节点中,确定为所述用户提供服务的内容分发节点。Based on the distribution weight value principle of each content distribution node: for the content distribution node corresponding to each found node identification information, respectively determine the distribution weight value of the content distribution node; Among the content distribution nodes corresponding to the node identification information, a content distribution node that provides services for the user is determined.
具体的,各内容分发节点的分发权重值,可以按照如下方式确定:Specifically, the distribution weight value of each content distribution node can be determined as follows:
获取该内容分发节点的各节点参数的参数值;Acquiring parameter values of each node parameter of the content distribution node;
根据获取的各节点参数的参数值以及各节点参数的权重因子,确定该内容分发节点的分发权重值。The distribution weight value of the content distribution node is determined according to the obtained parameter value of each node parameter and the weight factor of each node parameter.
其中,节点参数可以包括但不限于内容分发节点的评估参数、质量参数以及链路参数等。Wherein, the node parameters may include but not limited to evaluation parameters, quality parameters and link parameters of the content distribution node.
实施例一Embodiment one
以下以CDN系统中的内容分发节点的分发权重值的确定方法为例进行说明。为了便于描述,CDN系统中的内容分发节点的以分发权重值的确定方法Q(N)表示内容分发节点的评估参数,以Q(P)表示内容分发节点的质量参数,以Q(L)表示内容分发节点的链路参数。其中,内容分发节点的评估参数可以包括:该内容分发节点的负载、带宽、处理能力以及健康情况等信息;质量参数可以包括:用户请求的网页的刷新频率等,不同的系统中网页的刷新频率设置不同;链路参数可以包括网络连通性、响应速度等,具体的可以以往返时延(RTT,Round-TripTime)等参数表示。以上各参数均可以从CDN系统中获取。具体实施中,可以将每个参数的取值范围划分为连续的n个不同的区间,对于每个区间给出一个评分值,评分值的值域为[0,1],以质量参数为例,可以预先设置网页的刷新频率在5s~10s之间对应的评分值为0.9,网页的刷新频率在10s~15s之间对应的评分制为0.856一次类推,不同的刷新频率对应的评分值不同。这样,可以确定不同的评估参数、质量参数以及链路参数各自对应的评分值。并对各项质量评估值进行归一处理,各内容分发节点的分发权重值可以根据归一处理后的各项评估值采用分类加权的方法确定。即为评估参数、质量参数以及链路参数预先设置权重因子,各权重因子的取值范围为[0,1],各权重因子之和为1,分发权重值Q可以通过如下公式确定:The method for determining the distribution weight value of the content distribution node in the CDN system is taken as an example to describe below. For ease of description, the content distribution node in the CDN system uses the distribution weight value determination method Q(N) to represent the evaluation parameter of the content distribution node, Q(P) to represent the quality parameter of the content distribution node, and Q(L) to represent Link parameters for content distribution nodes. Among them, the evaluation parameters of the content distribution node may include: information such as the load, bandwidth, processing power, and health status of the content distribution node; the quality parameters may include: the refresh frequency of the web page requested by the user, etc. The settings are different; link parameters may include network connectivity, response speed, etc., and may be specifically expressed by parameters such as round-trip delay (RTT, Round-TripTime). All the above parameters can be obtained from the CDN system. In specific implementation, the value range of each parameter can be divided into n consecutive different intervals, and a scoring value is given for each interval, and the value range of the scoring value is [0, 1]. Take the quality parameter as an example , you can pre-set the score value corresponding to the refresh frequency of the webpage between 5s and 10s to 0.9, and the score system corresponding to the refresh frequency of the webpage between 10s and 15s to be 0.856. By analogy, different refresh frequencies correspond to different score values. In this way, score values corresponding to different evaluation parameters, quality parameters and link parameters can be determined. Each quality evaluation value is normalized, and the distribution weight value of each content distribution node can be determined by using a classification weighting method according to the normalized evaluation values. That is, weight factors are preset for evaluation parameters, quality parameters, and link parameters. The value range of each weight factor is [0, 1], and the sum of each weight factor is 1. The distribution weight value Q can be determined by the following formula:
Q=uQ(N)+vQ(P)+rQ(l),u+v+l=1Q=uQ(N)+vQ(P)+rQ(l), u+v+l=1
其中,u、v、l分别表示评估参数、质量参数以及链路参数的权重因子。这样得到分发权重值越大,代表该内容分发节点的综合评价越好,域索引服务器可以将分发权重值最大的内容分发节点确定为为用户提供服务的内容分发节点。Among them, u, v, and l represent the weighting factors of evaluation parameters, quality parameters, and link parameters, respectively. In this way, the greater the distribution weight value, the better the comprehensive evaluation of the content distribution node, and the domain index server can determine the content distribution node with the largest distribution weight value as the content distribution node that provides services for users.
具体实施中,如果基于各内容分发节点分发权重值原则确定内容分发节点时,域索引服务器还需要存储各内容分发节点与各内容分发节点的分发权重值之间的对应关系,具体的,域索引服务器可以以表格的格式存储并对该表格进行管理,但是对应关系的存储格式不限于此,只要是便于存储及管理的格式都可以。In specific implementation, if the content distribution nodes are determined based on the distribution weight value principle of each content distribution node, the domain index server also needs to store the corresponding relationship between each content distribution node and the distribution weight value of each content distribution node, specifically, the domain index The server may store and manage the table in a table format, but the storage format of the corresponding relationship is not limited to this, as long as it is convenient for storage and management.
一种可能的存储格式如表2所示:A possible storage format is shown in Table 2:
表2Table 2
较佳的,域索引服务器也可以以一个表格存储各网址信息、缓存了该网址信息对应的网页内容的分发节点及各内容分发节点对应的分发权重值。一种可能的表格结构如表3所示,为了便于描述,本发明实施例中将表3称为内容分发节点选择表:Preferably, the domain index server may also store each URL information, the distribution node that has cached the webpage content corresponding to the URL information, and the distribution weight value corresponding to each content distribution node in a table. A possible table structure is shown in Table 3. For the convenience of description, Table 3 is referred to as the content distribution node selection table in the embodiment of the present invention:
表3table 3
具体实施中,与索引服务器可以根据预先设置的轴系,周期性的向自身存储的网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中的各节点标识信息对应的个内容分发节点(包括本域内的内容分发节点和其他域的内容分发节点)发送节点参数上报消息,并根据接收到的响应消息更新对应关系中的相应记录,以保证域索引服务器能够获得不断增加的记录以及各内容分发节点的节点参数更新数据。In specific implementation, each of the corresponding relationships between the URL information of the webpage stored by the index server and the node identification information of each content distribution node storing the webpage content of the webpage can be periodically sent to the index server according to the preset axis system. The content distribution nodes corresponding to the node identification information (including content distribution nodes in this domain and content distribution nodes in other domains) send a node parameter report message, and update the corresponding records in the corresponding relationship according to the received response message, so as to ensure the domain index The server can obtain continuously increasing records and node parameter update data of each content distribution node.
具体实施中,内容分发节点的确定方法,还包括:In specific implementation, the method for determining the content distribution node also includes:
域索引服务器根据该访问请求中包含的用户标识信息,将确定出的内容分发节点的节点标识信息,发送给该用户,指示该用户从接收到的节点标识信息对应的内容分发节点中获取请求访问的网页的网页内容。According to the user identification information contained in the access request, the domain index server sends the determined node identification information of the content distribution node to the user, instructing the user to obtain the requested access from the content distribution node corresponding to the received node identification information. The page content of the page.
实施例二Embodiment two
具体实施中,域索引服务器在接收到本域内的用户通过网页浏览器提交的访问请求后,如果该域索引服务器在自身存储的网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找到相应的内容分发节点的各节点标识信息时,则按照如下过程确定为用户提供服务的内容分发节点。具体的,如图2所示,为该域索引服务器确定为用户提供的服务的内容分发节点的实施流程示意图,包括如下步骤:In the specific implementation, after the domain index server receives the access request submitted by the user in the domain through the web browser, if the domain index server stores the web address information of the web page itself and the content distribution nodes that store the web page content In the corresponding relationship between the node identification information, when the identification information of each node of the corresponding content distribution node is found, the content distribution node that provides services for the user is determined according to the following process. Specifically, as shown in FIG. 2 , a schematic diagram of an implementation process for determining a content distribution node that provides services to users for the domain index server includes the following steps:
S21、域索引服务器接收本域内的用户通过浏览器提交的访问请求,该访问请求中携带有该用户的用户标识信息和用户请求访问的网页的网址信息;S21. The domain index server receives the access request submitted by the user in the domain through the browser, and the access request carries the user identification information of the user and the website address information of the webpage requested by the user;
S22、域索引服务器在自身存储的内容分发节点选择表中查找到缓存了该网址信息的内容分发节点的节点标识信息;S22. The domain index server finds the node identification information of the content distribution node that caches the URL information in the content distribution node selection table stored by itself;
S23、根据查找到的各节点标识信息,确定每个节点标识信息对应的分发权重值,或者确定距离用户最近的内容分发节点的节点标识信息;S23. According to the found identification information of each node, determine the distribution weight value corresponding to each node identification information, or determine the node identification information of the content distribution node closest to the user;
S24、将分发权重值最大的节点标识信息发送给用户,或者将距离用户最近的内容分发节点的节点标识信息发送给用户。S24. Send the node identification information with the largest distribution weight value to the user, or send the node identification information of the content distribution node closest to the user to the user.
实施例三Embodiment three
具体实施中,如果域索引服务器在自身存储的网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,未查找到相应的内容分发节点的各节点标识信息时,则将获得的所述访问请求发送给全局索引服务器。In specific implementation, if the domain index server does not find each node of the corresponding content distribution node in the corresponding relationship between the URL information of the web page stored by itself and the node identification information of each content distribution node that stores the web page content of the web page When identifying information, the obtained access request is sent to the global index server.
具体的,域索引服务器将访问请求中包含的用户标识信息替换为自身的服务器标识信息后,发送给全局索引服务器。Specifically, the domain index server replaces the user identification information contained in the access request with its own server identification information, and then sends it to the global index server.
具体实施中,内容分发节点的确定方法,还包括:In specific implementation, the method for determining the content distribution node also includes:
域索引服务器接收其他域索引服务器发送的内容分发节点的节点标识信息;The domain index server receives the node identification information of the content distribution node sent by other domain index servers;
将接收到的内容分发节点的节点标识信息发送给用户,指示该用户从接收到的节点标识信息对应的内容分发节点中获取请求访问的网页的网页内容。Sending the received node identification information of the content distribution node to the user, instructing the user to obtain the web page content of the web page requested to be accessed from the content distribution node corresponding to the received node identification information.
具体实施中,内容分发节点的确定方法,还包括:In specific implementation, the method for determining the content distribution node also includes:
域索引服务器接收其他域索引服务器发送的内容分发节点的节点标识信息;The domain index server receives the node identification information of the content distribution node sent by other domain index servers;
域索引服务器根据接收到的节点标识信息,对存储的、网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系进行更新。According to the received node identification information, the domain index server updates the stored correspondence between the URL information of the web page and the node identification information of each content distribution node storing the content of the web page.
具体实施中,如果域索引服务器获得的访问请求中包含用户所在域的域索引服务器的服务器标识信息时,内容分发节点的确定方法,还包括:In specific implementation, if the access request obtained by the domain index server includes the server identification information of the domain index server in the domain where the user is located, the method for determining the content distribution node further includes:
根据该用户所在域的域索引服务器的服务器标识信息,将确定出的内容分发节点的节点标识信息,发送给该用户所在域的域索引服务器。According to the server identification information of the domain index server of the user's domain, the determined node identification information of the content distribution node is sent to the domain index server of the user's domain.
如图3所示,为域索引服务器在未查找到相应的内容分发节点的各节点标识信息时,确定为用户提供的服务的内容分发节点的实施流程示意图。为了便于理解,以用户对新闻网页news.people.cn/w/2010-11-16/193621481681.shtml提交访问请求为例进行说明。为了便于描述,将用户的访问请求首先到达的域索引服务器称为第一域索引服务器,将确定为用户提供服务的内容分发节点的域索引服务器称为第二域索引服务器,具体的,包括如下步骤:As shown in FIG. 3 , it is a schematic diagram of an implementation flow for determining a content distribution node that provides services to a user when the domain index server does not find the corresponding node identification information of the content distribution node. For ease of understanding, an example is taken in which a user submits an access request to a news webpage news.people.cn/w/2010-11-16/193621481681.shtml. For ease of description, the domain index server that the user's access request first reaches is called the first domain index server, and the domain index server that determines the content distribution node that provides services for the user is called the second domain index server. Specifically, it includes the following step:
S31、第一域索引服务器接收本域内的用户通过浏览器提交的访问请求,该访问请求中携带有该用户的用户标识信息和用户请求访问的网页的网址信息;S31. The first domain index server receives an access request submitted by a user in the domain through a browser, and the access request carries the user identification information of the user and the website address information of the webpage requested by the user;
具体的,用户通过浏览器向第一域索引服务器提交访问news.people.cn/w/2010-11-16/193621481681.shtml的访问请求,该访问请求中携带了用户的用户标识信息(假设为IP地址196.153.24.26),news.people.cn/w/2010-11-16/193621481681.shtml;Specifically, the user submits an access request for accessing news.people.cn/w/2010-11-16/193621481681.shtml to the first domain index server through the browser, and the access request carries the user's user identification information (assumed to be IP address 196.153.24.26), news.people.cn/w/2010-11-16/193621481681.shtml;
S32、第一域索引服务器在自身存储的内容分发节点选择表中未查找到缓存了该网址信息的内容分发节点的节点标识信息;S32. The first domain index server does not find the node identification information of the content distribution node that caches the URL information in the content distribution node selection table stored by itself;
具体的,第一域索引服务器,在自身存储的内容分发节点选择表中未查找到网址信息为news.people.cn/w/2010-11-16/193621481681.shtml的记录;Specifically, the first domain index server did not find a record with the URL information news.people.cn/w/2010-11-16/193621481681.shtml in the content distribution node selection table stored by itself;
S33、第一域索引服务器将接收到的用户的访问请求发送给全局索引服务器;S33. The first domain index server sends the received user access request to the global index server;
具体的,第一域索引服务器将用户的访问请求中携带的用户的IP地址修改为自身的服务器标识信息(可以为IP地址,假设为10.196.28.22)后,发送给全局索引服务器;Specifically, the first domain index server modifies the user's IP address carried in the user's access request to its own server identification information (which may be an IP address, assuming 10.196.28.22), and then sends it to the global index server;
S34、全局索引服务器查找存储有该网址信息对应的各域索引服务器的服务器标识信息,如果查找到,则执行步骤S37;如果未查找到,则执行步骤S35;S34. The global index server searches for and stores the server identification information of each domain index server corresponding to the website information, if found, executes step S37; if not found, executes step S35;
具体的,全局索引服务器在自身存储的网页的网址信息与存储有该网页的网页内容的各内容分发节点所属的域索引服务器的服务器标识信息对应关系中,查找存储有该网址信息对应的各域索引服务器的服务器标识信息;Specifically, the global index server searches for each domain corresponding to the URL information stored in the corresponding relationship between the URL information of the webpage stored by itself and the server identification information of the domain index server to which each content distribution node storing the webpage content of the webpage belongs. The server identification information of the index server;
S35、全局索引服务器根据预设的网址聚合层次,对访问请求中携带的网址信息进行聚合;S35. The global index server aggregates the URL information carried in the access request according to the preset URL aggregation level;
具体的,假设全局索引服务器对网址信息news.people.cn/w/2010-11-16/193621481681.shtml第一次聚合后得到的网址news.people.cn/w/2010-11-16/;Specifically, assume that the URL news.people.cn/w/2010-11-16/ is obtained after the first aggregation of the URL information news.people.cn/w/2010-11-16/193621481681.shtml by the global index server;
S36、全局索引服务器根据聚合后的网址信息,查找存储有该聚合后的网址信息对应的各域索引服务器的服务器标识信息;S36. According to the aggregated URL information, the global index server searches for and stores the server identification information of each domain index server corresponding to the aggregated URL information;
具体的,全局索引服务器在自身存储的网页的网址信息与存储有该网页的网页内容的各内容分发节点所属的域索引服务器的服务器标识信息对应关系中,查找存储有该聚合后的网址对应的各域索引服务器的服务器标识信息,如果未查找到第一次聚合后的网址信息对应的各域索引服务器的服务器标识信息;则对第一次聚合后的网址信息进行第二次聚合news.people.cn/w/2010-11-16/第二次聚合后的网址信息news.people.cn/w/,依次类推,由于全局索引服务器记录所有的网址的不同聚合层次的聚合后的网址,由于全局索引服务器记录所有的网址的不同聚合层次的聚合后的网址,因此,只要网络内存在该网页的缓存,便可以查找到;Specifically, the global index server searches for the URL corresponding to the aggregated URL stored in the corresponding relationship between the URL information of the webpage stored by itself and the server identification information of the domain index server to which each content distribution node that stores the webpage content of the webpage belongs. The server identification information of each domain index server, if the server identification information of each domain index server corresponding to the URL information after the first aggregation is not found; perform the second aggregation on the URL information after the first aggregation news.people .cn/w/2010-11-16/ URL information after the second aggregation news.people.cn/w/, and so on, because the global index server records the aggregated URLs of different aggregation levels of all URLs, because The global index server records the aggregated URLs of different aggregation levels of all URLs, so as long as there is a cache of the webpage in the network, it can be found;
S37、全局索引服务器从查找到的各域索引服务器的标识信息对应的各域索引服务器中,确定满足预设条件的域索引服务器为第二域索引服务器;S37. The global index server determines, from among the domain index servers corresponding to the found identification information of each domain index server, that the domain index server that meets the preset condition is the second domain index server;
具体的,预设条件可以设置为聚合层次最低的域索引服务器;Specifically, the preset condition can be set as the domain index server with the lowest aggregation level;
S38、全局索引服务器将接收到的访问请求转发给确定出的第二域索引服务器的服务器标识信息对应的第二域索引服务器;S38. The global index server forwards the received access request to the second domain index server corresponding to the determined server identification information of the second domain index server;
S39、第二域索引服务器根据接收到的访问请求中携带的网址信息确定为用户提供服务的内容分发节点;S39. The second domain index server determines, according to the URL information carried in the received access request, a content distribution node that provides services for the user;
具体的,第二域服务器根据访问请求中携带的news.people.cn/w/2010-11-16/193621481681.shtml,在网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找news.people.cn/w/2010-11-16/193621481681.shtml对应的各内容分发节点的节点标识信息,针对查找到的每个节点标识信息对应的内容分发节点,分别确定该内容分发节点的分发权重值,根据确定出的各分发权重值,在查找到的各节点标识信息对应的内容分发节点中,确定为用户提供服务的内容分发节点;Specifically, according to the news.people.cn/w/2010-11-16/193621481681.shtml carried in the access request, the second domain server, in the URL information of the webpage and the node of each content distribution node storing the webpage content of the webpage In the correspondence between identification information, search for the node identification information of each content distribution node corresponding to news.people.cn/w/2010-11-16/193621481681.shtml, and for the content corresponding to each node identification information found The distribution node determines the distribution weight value of the content distribution node respectively, and determines the content distribution node that provides services for the user among the content distribution nodes corresponding to the found identification information of each node according to the determined distribution weight values;
S310、第二域索引服务器将确定出的内容分发节点的节点标识信息发送给第一域索引服务器;S310. The second domain index server sends the determined node identification information of the content distribution node to the first domain index server;
具体的,第二域索引服务器根据接收到的访问请求中携带的第一域索引服务器的服务器标识信息发送给第一域索引服务器;Specifically, the second domain index server sends the server identification information of the first domain index server carried in the received access request to the first domain index server;
S311、第一域索引服务器将接收到的内容分发节点的节点标识信息转发给用户,并在内容分发节点选择表中添加相应的记录。S311. The first domain index server forwards the received node identification information of the content distribution node to the user, and adds a corresponding record in the content distribution node selection table.
具体实施中,用户根据接收到的节点标识信息。向该节点标识信息对应的内容分发节点请求相应的网页内容。In a specific implementation, the user identifies information according to the received node. The corresponding web page content is requested from the content distribution node corresponding to the node identification information.
具体实施中,如果第二域索引服务器在自身存储的网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,未查找到news.people.cn/w/2010-11-16/193621481681.shtml对应的各内容分发节点的节点标识信息时,向第一域索引服务器返回结果为空的响应消息,第一域索引服务器将本域内所有的内容分发节点中距离用户最近或者分发权重值最高的内容分发节点的节点标识信息发送给用户,当用户根据接收到的内容分发节点的节点标识信息向对应的内容分发节点请求news.people.cn/w/2010-11-16/193621481681.shtml对应的网页内容时,内容分发节点的自有未命中机制处理用户的请求,一般的,内容分发节点在未命中用户请求的网页对应的网页内容时,会向源站获取相应的网页内容后,为用户提供请求的网页内容,并缓存在该网页内容,并通知第一域索引服务器,第一域索引服务器将当前内容分发节点的节点标识信息与网址信息以及该内容分发节点的分发权重值添加到网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中。In specific implementation, if the second domain index server does not find news.people.cn/ When w/2010-11-16/193621481681.shtml corresponds to the node identification information of each content distribution node, a response message with an empty result is returned to the first domain index server, and the first domain index server sends all the content distribution nodes in the domain The node identification information of the content distribution node closest to the user or with the highest distribution weight value is sent to the user. When the user requests news.people.cn/w/2010 from the corresponding content distribution node based on the received node identification information of the content distribution node -11-16/193621481681.shtml corresponding to the webpage content, the content distribution node's own miss mechanism processes the user's request. Generally, when the content distribution node misses the webpage content corresponding to the webpage requested by the user, it will send a request to the source After obtaining the corresponding webpage content, the website provides the requested webpage content for the user, caches the webpage content, and notifies the first domain index server, and the first domain index server sends the node identification information and URL information of the current content distribution node and the The distribution weight value of the content distribution node is added to the correspondence between the URL information of the webpage and the node identification information of each content distribution node storing the webpage content of the webpage.
实施例四Embodiment four
此外,当某域内的存在大量用户同时请求访问同一网页,该网页为热点网页,那么会将所有访问请求均导向本域内最佳的内容分发节点,从而造成该内容分发节点负载过重,则可能导致该内容分发节点为用户分发内容的分发效率出现瓶颈,严重时可能导致内容分发节点无法正常工作。In addition, when a large number of users in a domain request to access the same web page at the same time, and the web page is a hot web page, all access requests will be directed to the best content distribution node in the domain, causing the content distribution node to be overloaded. This results in a bottleneck in the distribution efficiency of the content distribution node for distributing content to users, and in serious cases may cause the content distribution node to fail to work normally.
为了解决上述问题,本发明实施例提供的内容分发节点的确定方法,还包括:若第一域索引服务器在查找接收到的访问请求中携带的网址信息对应的各内容分发节点的节点标识信息之前,检测到自身的负荷超过了预设的规定阈值时,将获得的访问请求发送给全局索引服务器。In order to solve the above problem, the method for determining the content distribution node provided by the embodiment of the present invention further includes: if the first domain index server searches for the node identification information of each content distribution node corresponding to the URL information carried in the received access request , when it detects that its own load exceeds the preset threshold, it sends the obtained access request to the global index server.
具体的,第一域索引服务器对接收到的访问请求将不做任何处理直接转发给全局索引服务器。Specifically, the first domain index server directly forwards the received access request to the global index server without any processing.
如图4所示,为本发明实施例提供的第一域索引服务器负载过重时,确定为用户提供服务的内容分发节点的实施流程示意图,包括如下步骤:As shown in FIG. 4 , when the load of the first domain index server provided by the embodiment of the present invention is too heavy, the implementation flow diagram of determining the content distribution node that provides services to users includes the following steps:
S41、第一域索引服务器接收本域内的用户通过浏览器提交的访问请求,该访问请求中携带有该用户的用户标识信息和用户请求访问的网页的网址信息;S41. The first domain index server receives the access request submitted by the user in the domain through the browser, and the access request carries the user identification information of the user and the URL information of the webpage requested by the user;
S42、第一域索引服务器检测到自身的负载过重;S42. The first domain index server detects that its own load is too heavy;
步骤S43步骤S48的实施过程与步骤S33~步骤S38的实施过程类似,这里不再赘述;The implementation process of step S43 and step S48 is similar to the implementation process of step S33 to step S38, and will not be repeated here;
S49、第二域索引服务器将确定出的内容分发节点的节点标识信息发送给用户;S49. The second domain index server sends the determined node identification information of the content distribution node to the user;
具体的,第二域索引服务器根据接收到的访问请求中携带的用户标识信息将确定出的内容分发节点的节点标识信息发送给用户。Specifically, the second domain index server sends the determined node identification information of the content distribution node to the user according to the user identification information carried in the received access request.
具体实施中,用户接收到内容分发节点的节点标识信息后,请求相应的网页内容的过程及第二域索引服务器未确定出为用户提供服务的内容分发节点的节点标识信息的处理过程与实施例三中类似,这里不再赘述。In the specific implementation, after the user receives the node identification information of the content distribution node, the process of requesting the corresponding web page content and the processing process and embodiment of the second domain index server not determining the node identification information of the content distribution node that provides services for the user The three are similar and will not be repeated here.
一般来说,本发明中涉及的内容分发节点的节点标识信息为内容分发节点的IP地址、用户的用户标识信息为用户的IP地址以及域索引服务器的服务器标识信息为域索引服务器的IP地址。Generally speaking, the node identification information of the content distribution node involved in the present invention is the IP address of the content distribution node, the user identification information of the user is the user's IP address, and the server identification information of the domain index server is the IP address of the domain index server.
基于同一发明构思,本发明实施例中还提供了一种域索引服务器、另一种内容分发节点的确定方法、一种全局索引服务器以及一种内容分发节点的确定系统,由于这些设备和方法解决问题的原理与上述内容分发节点的确定方法相似,因此这些设备和方法的实施可以参见上述内容分发节点的确定方法的实施,重复之处不再赘述。Based on the same inventive concept, an embodiment of the present invention also provides a domain index server, another method for determining a content distribution node, a global index server, and a system for determining a content distribution node. Since these devices and methods solve The principle of the problem is similar to the method for determining the content distribution node above, so the implementation of these devices and methods can refer to the implementation of the method for determining the content distribution node above, and the repetition will not be repeated.
如图5所示,为本发明实施例提供的域索引服务器一种可能的结构示意图,包括;As shown in FIG. 5, it is a schematic structural diagram of a possible domain index server provided by the embodiment of the present invention, including;
存储单元51,用于存储网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系;The storage unit 51 is used to store the correspondence between the URL information of the webpage and the node identification information of each content distribution node storing the webpage content of the webpage;
获得单元52,用于获得用户的访问请求,该访问请求中携带有用户请求访问的网页的网址信息;Obtaining unit 52, configured to obtain the user's access request, the access request carrying the URL information of the webpage the user requests to visit;
查找单元53,用于根据获得单元52获得的访问请求中携带的用户请求访问的网页的网址信息,在存储单元51存储的网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找所述网址信息对应的各内容分发节点的节点标识信息;The search unit 53 is used to obtain the website address information of the webpage that the user requests to visit carried in the access request obtained by the obtaining unit 52, the website address information of the webpage stored in the storage unit 51 and the nodes of each content distribution node that stores the webpage content of the webpage In the corresponding relationship between the identification information, look up the node identification information of each content distribution node corresponding to the website information;
确定单元54,用于在查找单元53查找到的各节点标识信息对应的内容分发节点中,按照预设的确定规则,确定为用户提供服务的内容分发节点。The determining unit 54 is configured to determine, among the content distribution nodes corresponding to each node identification information searched by the searching unit 53, a content distribution node that provides services for the user according to a preset determination rule.
其中,获得单元52获得的访问请求中还包含用户的用户标识信息;以及域索引服务器还包括:Wherein, the access request obtained by the obtaining unit 52 also includes the user identification information of the user; and the domain index server also includes:
第一发送单元55,用于根据获得单元52获得的访问请求中包含的用户标识信息,将确定单元54确定出的内容分发节点的节点标识信息,发送给该用户,指示该用户从接收到的节点标识信息对应的内容分发节点中获取请求访问的网页的网页内容。The first sending unit 55 is configured to send the node identification information of the content distribution node determined by the determining unit 54 to the user according to the user identification information contained in the access request obtained by the obtaining unit 52, and instruct the user to obtain The web page content of the web page requested to be accessed is obtained from the content distribution node corresponding to the node identification information.
具体的,获得单元52用于接收本域内的用户通过网页浏览器提交的访问请求。Specifically, the obtaining unit 52 is configured to receive an access request submitted by a user in the domain through a web browser.
具体实施中,域索引服务器还包括:In specific implementation, the domain index server also includes:
第二发送单元56,用于若查找单元53在存储单元51存储的对应关系中未查找到该网址信息对应的内容分发节点的节点标识信息时,将获得单元52获得的获得的访问请求发送给全局索引服务器。The second sending unit 56 is used to send the obtained access request obtained by the obtaining unit 52 to Global index server.
具体的,第二发送单元56用于将访问请求中包含的用户标识信息替换为域索引服务器的服务器标识信息后,发送给全局索引服务器。Specifically, the second sending unit 56 is configured to replace the user identification information contained in the access request with the server identification information of the domain index server, and then send it to the global index server.
具体实施中,域索引服务器还包括:In specific implementation, the domain index server also includes:
第一接收单元57,用于接收其他域服务器发送的内容分发节点的节点标识信息;The first receiving unit 57 is configured to receive node identification information of content distribution nodes sent by other domain servers;
第一发送单元55,还用于将第一接收单元57接收到的内容分发节点的节点标识信息,发送给用户,指示该用户从接收到的节点标识信息对应的内容分发节点中获取请求访问的网页的网页内容。The first sending unit 55 is further configured to send the node identification information of the content distribution node received by the first receiving unit 57 to the user, instructing the user to obtain the requested access information from the content distribution node corresponding to the received node identification information. The web content of the web page.
具体实施中,域索引服务器,还包括:In specific implementation, the domain index server also includes:
第二接收单元58,用于接收其他域索引服务器发送的内容分发节点的节点标识信息;The second receiving unit 58 is configured to receive node identification information of content distribution nodes sent by other domain index servers;
更新单元59,用于根据第二接收单元58接收到的节点标识信息,对存储的、网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系进行更新。The updating unit 59 is configured to update the stored correspondence between the URL information of the webpage and the node identification information of each content distribution node storing the webpage content of the webpage according to the node identification information received by the second receiving unit 58 .
具体实施中,域索引服务器还包括:In specific implementation, the domain index server also includes:
第三发送单元510,用于若域索引服务器在查找网址信息对应的各内容分发节点的节点标识信息之前,检测到自身的负荷超过了预设的规定阈值时,将获得单元52获得的访问请求发送给全局索引服务器。The third sending unit 510 is used to obtain the access request obtained by the obtaining unit 52 if the domain index server detects that its own load exceeds a preset threshold before searching for the node identification information of each content distribution node corresponding to the website information. Sent to the global index server.
具体的,获得单元52用于接收全局索引服务器发送的、用户的访问请求。Specifically, the obtaining unit 52 is configured to receive a user's access request sent by the global index server.
具体实施中,获得单元获得的访问请求中包含所述用户所在域的域索引服务器的服务器标识信息;以及In a specific implementation, the access request obtained by the obtaining unit includes the server identification information of the domain index server of the domain where the user is located; and
域索引服务器,还包括:Domain Index Server, also includes:
第四发送单元511,用于根据用户所在域的域索引服务器的服务器标识信息,将确定单元54确定出的内容分发节点的节点标识信息,发送给该用户所在域的域索引服务器。The fourth sending unit 511 is configured to send the node identification information of the content distribution node determined by the determining unit 54 to the domain index server of the user's domain according to the server identification information of the domain index server of the user's domain.
具体实施中,确定单元54可以采用以下任意一种方式确定为用户提供服务的内容分发节点:In a specific implementation, the determination unit 54 may determine the content distribution node that provides services for the user in any of the following ways:
方式一method one
确定单元54用于在查找到的各节点标识信息对应的内容分发节点中,确定距离该用户位置最近的内容分发节点为为该用户提供服务的内容分发节点。The determining unit 54 is configured to determine, among the content distribution nodes corresponding to the searched node identification information, the content distribution node closest to the user's location as the content distribution node that provides services for the user.
方式二way two
确定单元54包括第一确定子单元和第二确定子单元,其中:The determining unit 54 includes a first determining subunit and a second determining subunit, wherein:
第一确定子单元,用于针对查找单元53查找到的每个节点标识信息对应的内容分发节点,分别确定该内容分发节点的分发权重值;The first determination subunit is configured to respectively determine the distribution weight value of the content distribution node for each content distribution node corresponding to the node identification information found by the search unit 53;
第二确定子单元,用于根据第一确定子单元确定出的各分发权重值,在查找到的各节点标识信息对应的内容分发节点中,确定为该用户提供服务的内容分发节点。The second determination subunit is configured to determine a content distribution node that provides services for the user among the content distribution nodes corresponding to the searched node identification information according to the distribution weight values determined by the first determination subunit.
具体的,第一确定子单元包括获取模块和确定模块,其中:Specifically, the first determination subunit includes an acquisition module and a determination module, wherein:
获取模块,用于获取该内容分发节点的各节点参数的参数值;An acquisition module, configured to acquire parameter values of each node parameter of the content distribution node;
确定模块,用于根据获取模块获取到的各节点参数的参数值以及各节点参数的权重因子,确定该内容分发节点的分发权重值。The determination module is configured to determine the distribution weight value of the content distribution node according to the parameter values of each node parameter and the weight factor of each node parameter acquired by the acquisition module.
如图6所示,为本发明实施例提供全局服务器侧内容分发节点的确定方法的实施流程示意图,包括如下步骤:As shown in FIG. 6 , it provides a schematic flow diagram of the implementation process of the method for determining the content distribution node on the global server side according to the embodiment of the present invention, including the following steps:
S61、全局索引服务器接收第一域索引服务器发送的、用户的访问请求,该访问请求中携带有用户请求访问的网页的网址信息;S61. The global index server receives the user's access request sent by the first domain index server, and the access request carries URL information of the webpage requested by the user;
S62、根据所述用户的访问请求中携带的网址信息,查找该网址信息对应的第二域索引服务器的服务器标识信息;S62. According to the website information carried in the user's access request, search for the server identification information of the second domain index server corresponding to the website information;
S63、在查找到的各服务器标识信息对应的第二域索引服务器中,确定出满足预设条件的第二域索引服务器;S63. Among the second domain index servers corresponding to the searched server identification information, determine the second domain index server that meets the preset condition;
S64、将访问请求发送给确定出的第二域索引服务器,指示该第二域索引服务器确定为用户提供服务的内容分发节点;S64. Send the access request to the determined second domain index server, instructing the second domain index server to determine a content distribution node that provides services for the user;
具体的,步骤S62中,可以按照如下过程,查找用户的访问请求中携带的网址信息对应的第二域索引服务器的服务器标识信息:Specifically, in step S62, the server identification information of the second domain index server corresponding to the URL information carried in the user's access request can be searched according to the following process:
根据所述用户的访问请求中携带的网址信息,在网页的网址信息与存储有网页的网页内容的各内容分发节点所属的第二域索引服务器的服务器标识信息的对应关系中,查找对应的第二域索引服务器的服务器标识信息;According to the URL information carried in the user's access request, in the corresponding relationship between the URL information of the web page and the server identification information of the second domain index server to which each content distribution node storing the web content of the web page belongs, search for the corresponding second domain index server. The server identification information of the second domain index server;
若查找到,则查找过程结束;If found, the search process ends;
若未查找到,则按照网址聚合层次由低到高的顺序,选择第一个网址聚合层次;If not found, select the first URL aggregation level in descending order of URL aggregation levels;
根据选择的该网址聚合层次,对所述访问请求中携带的网址信息进行聚合;Aggregating the URL information carried in the access request according to the selected URL aggregation level;
根据聚合后的网址信息,在网页的网址信息与存储有网页的网页内容的各内容分发节点所属的第二域索引服务器的服务器标识信息的对应关系中,查找聚合后的网址信息对应的的第二域索引服务器的服务器标识信息;According to the aggregated URL information, in the corresponding relationship between the URL information of the webpage and the server identification information of the second domain index server to which each content distribution node that stores the webpage content of the webpage belongs, search for the first URL corresponding to the aggregated URL information The server identification information of the second domain index server;
若查找到,则查找过程结束;否则If found, the search process ends; otherwise
按照网址聚合层次由低到高的顺序,选择下一个网址聚合层次,并返回继续执行对网址信息进行聚合、根据聚合后的网址信息查找聚合后的网址信息对应的的第二域索引服务器的服务器标识信息的操作。According to the order of URL aggregation levels from low to high, select the next URL aggregation level, and return to the server that continues to aggregate URL information and search for the second domain index server corresponding to the aggregated URL information according to the aggregated URL information Operations that identify information.
其中,步骤S64中,第二域索引服务器确定为用户提供服务的内容分发节点时,根据所述访问请求中携带的网址信息,在网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找所述网址信息对应的各内容分发节点的节点标识信息,针对查找到的每个节点标识信息对应的内容分发节点,分别确定该内容分发节点的分发权重值,根据确定出的各分发权重值,在查找到的各节点标识信息对应的内容分发节点中,确定为所述用户提供服务的内容分发节点。Wherein, in step S64, when the second domain index server determines the content distribution node that provides services for the user, according to the URL information carried in the access request, the URL information of the webpage and each content distribution node that stores the webpage content of the webpage In the corresponding relationship between the node identification information, look up the node identification information of each content distribution node corresponding to the website information, and determine the distribution of the content distribution node for each content distribution node corresponding to the found node identification information. For the weight value, according to the determined distribution weight values, among the content distribution nodes corresponding to the found identification information of each node, the content distribution node that provides the service for the user is determined.
较佳的,预设条件为网址的聚合层次最低。Preferably, the preset condition is that the aggregation level of the URL is the lowest.
如图7所示,为本发明实施例提供的全局索引服务器一种可能的结构示意图,包括:As shown in FIG. 7, it is a schematic diagram of a possible structure of the global index server provided by the embodiment of the present invention, including:
存储单元71,用于存储网页的网址信息与存储有网页的网页内容的各内容分发节点所属的第二域索引服务器的服务器标识信息对应关系;The storage unit 71 is used to store the corresponding relationship between the URL information of the webpage and the server identification information of the second domain index server to which each content distribution node that stores the webpage content of the webpage belongs;
接收单元72,用于接收第一域索引服务器发送的、用户的访问请求,该访问请求中携带有用户请求访问的网页的网址信息;The receiving unit 72 is configured to receive the user's access request sent by the first domain index server, and the access request carries the URL information of the webpage that the user requests to visit;
查找单元73,用于根据接收单元72接收到的用户的访问请求中携带的网址信息,在存储单元71存储的网页的网址信息与存储有网页的网页内容的各内容分发节点所属的第二域索引服务器的服务器标识信息对应关系中,查找该网址信息对应的第二域索引服务器的服务器标识信息;The search unit 73 is configured to, according to the website information carried in the user's access request received by the receiving unit 72, the website information of the webpage stored in the storage unit 71 and the second domain to which each content distribution node that stores the webpage content of the webpage belongs In the corresponding relationship of the server identification information of the index server, search for the server identification information of the second domain index server corresponding to the URL information;
确定单元74,用于在查找到的各服务器标识信息对应的第二域索引服务器中,确定出满足预设条件的第二域索引服务器;A determination unit 74, configured to determine, among the second domain index servers corresponding to the searched server identification information, a second domain index server that satisfies a preset condition;
发送单元75,用于将访问请求发送给确定单元75确定出的第二域索引服务器,指示第二域索引服务器确定为用户提供服务的内容分发节点,其中第二域服务器确定为用户提供服务的内容分发节点时,根据访问请求中携带的网址信息,在网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找该网址信息对应的各内容分发节点的节点标识信息,针对查找到的每个节点标识信息对应的内容分发节点,分别确定该内容分发节点的分发权重值,根据确定出的各分发权重值,在查找到的各节点标识信息对应的内容分发节点中,确定为用户提供服务的内容分发节点。The sending unit 75 is configured to send the access request to the second domain index server determined by the determining unit 75, and instruct the second domain index server to determine a content distribution node that provides services for the user, wherein the second domain server determines the content distribution node that provides services for the user In the case of a content distribution node, according to the URL information carried in the access request, in the corresponding relationship between the URL information of the webpage and the node identification information of each content distribution node storing the webpage content of the webpage, search for each content corresponding to the URL information For the node identification information of the distribution node, for each content distribution node corresponding to the found node identification information, respectively determine the distribution weight value of the content distribution node, and according to the determined distribution weight values, in each found node identification information Among the corresponding content distribution nodes, a content distribution node that provides services for the user is determined.
具体的,查找单元73包括:第一查找子单元,选择子单元,聚合子单元,第二查找子单元,第二选择子单元,其中:Specifically, the search unit 73 includes: a first search subunit, a selection subunit, an aggregation subunit, a second search subunit, and a second selection subunit, wherein:
第一查找子单元,用于根据用户的访问请求中携带的网址信息,在网页的网址信息与存储有网页的网页内容的各内容分发节点所属的第二域索引服务器的服务器标识信息的对应关系中,查找对应的第二域索引服务器的服务器标识信息;The first search subunit is configured to, according to the website information carried in the user's access request, find out the correspondence between the website information of the webpage and the server identification information of the second domain index server to which each content distribution node storing the webpage content belongs. , look up the server identification information of the corresponding second domain index server;
选择子单元,用于在第一查找子单元未查找到对应的第二域索引服务器的服务器标识信息时,按照网址聚合层次由低到高的顺序,选择第一个网址聚合层次,以及在第二查找子单元未查找到对应的第二域索引服务器的服务器标识信息时,按照网址聚合层次由低到高的顺序,选择下一个网址聚合层次;The selection sub-unit is used to select the first URL aggregation level according to the order of the URL aggregation levels from low to high when the first search sub-unit does not find the server identification information of the corresponding second domain index server, and in the 2. When the search subunit does not find the server identification information of the corresponding second domain index server, select the next URL aggregation level in the order of the URL aggregation levels from low to high;
聚合子单元,用于根据选择子单元选择的网址聚合层次,对访问请求中携带的网址信息进行聚合;The aggregation subunit is used to aggregate the URL information carried in the access request according to the URL aggregation level selected by the selection subunit;
第二查找子单元,用于根据聚合子单元聚合后的网址信息,在网页的网址信息与存储有网页的网页内容的各内容分发节点所属的第二域索引服务器的服务器标识信息的对应关系中,查找聚合后的网址信息对应的的第二域索引服务器的服务器标识信息。The second search subunit is used to, according to the URL information aggregated by the aggregation subunit, in the corresponding relationship between the URL information of the webpage and the server identification information of the second domain index server to which each content distribution node storing the webpage content belongs , look up the server identification information of the second domain index server corresponding to the aggregated URL information.
如图8所示,为本发明实施例提供的内容分发节点的确定系统一种可能的结构示意图,包括:As shown in FIG. 8 , it is a schematic structural diagram of a possible system for determining a content distribution node provided by an embodiment of the present invention, including:
第一域索引服务器81,用于获得用户的访问请求,该访问请求中携带有用户请求访问的网页的网址信息;根据该访问请求中携带的网址信息,在网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找该网址信息对应的各内容分发节点的节点标识信息;在查找到的各节点标识信息对应的内容分发节点中,按照预设的确定规则,确定为所述用户提供服务的内容分发节点;以及在未确定出为所述用户提供服务的内容分发节点时,将获得的用户的访问请求发送给全局索引服务器,该访问请求中携带有用户请求访问的网页的网址信息;The first domain index server 81 is used to obtain the user's access request, which carries the website address information of the webpage that the user requests to visit; In the corresponding relationship between the node identification information of each content distribution node of the web content, search for the node identification information of each content distribution node corresponding to the website information; The determination rule is set to determine the content distribution node that provides services for the user; and when the content distribution node that provides services for the user is not determined, the obtained user's access request is sent to the global index server, and the access request Carry the URL information of the webpage that the user requests to visit;
全局索引服务器82,用于接收第一域索引服务器81发送的、用户的访问请求;根据访问请求中携带的网址信息查找该网址信息对应的第二域索引服务器的服务器标识信息;在查找到的各服务器标识信息对应的第二域索引服务器中,确定出满足预设条件的第二域索引服务器;并将访问请求发送给确定出的第二域索引服务器83,指示第二域索引服务器83确定为所述用户提供服务的内容分发节点;The global index server 82 is configured to receive the user's access request sent by the first domain index server 81; search for the server identification information of the second domain index server corresponding to the URL information according to the URL information carried in the access request; Among the second domain index servers corresponding to the server identification information, determine the second domain index server that satisfies the preset condition; and send the access request to the determined second domain index server 83, instructing the second domain index server 83 to determine a content distribution node that provides services to said users;
第二域索引服务器83,用于确定为用户提供服务的内容分发节点,其中,第二域索引服务器83确定为用户提供服务的内容分发节点时,根据访问请求中携带的网址信息,在网页的网址信息和存储有网页的网页内容的各内容分发节点的节点标识信息之间的对应关系中,查找该网址信息对应的各内容分发节点的节点标识信息,针对查找到的每个节点标识信息对应的内容分发节点,分别确定该内容分发节点的分发权重值,根据确定出的各分发权重值,在查找到的各节点标识信息对应的内容分发节点中,确定为用户提供服务的内容分发节点。The second domain index server 83 is used to determine the content distribution node that provides services for the user, wherein, when the second domain index server 83 determines the content distribution node that provides services for the user, according to the URL information carried in the access request, in the web page In the corresponding relationship between the website information and the node identification information of each content distribution node that stores the webpage content of the webpage, search for the node identification information of each content distribution node corresponding to the website information, and correspond to each node identification information found. determine the distribution weight value of the content distribution node respectively, and determine the content distribution node that provides services for the user among the content distribution nodes corresponding to the found identification information of each node according to the determined distribution weight values.
具体的,全局索引服务器82根据用户的访问请求中携带的网址信息,在网页的网址信息与存储有网页的网页内容的各内容分发节点所属的第二域索引服务器的服务器标识信息的对应关系中,查找对应的第二域索引服务器的服务器标识信息;若查找到,则查找过程结束;若未查找到,则按照网址聚合层次由低到高的顺序,选择第一个网址聚合层次;根据选择的该网址聚合层次,对所述访问请求中携带的网址信息进行聚合;根据聚合后的网址信息,在网页的网址信息与存储有网页的网页内容的各内容分发节点所属的第二域索引服务器的服务器标识信息的对应关系中,查找聚合后的网址信息对应的的第二域索引服务器的服务器标识信息;若查找到,则查找过程结束;否则按照网址聚合层次由低到高的顺序,选择下一个网址聚合层次,并返回继续执行对网址信息进行聚合、根据聚合后的网址信息查找聚合后的网址信息对应的的第二域索引服务器的服务器标识信息的操作。Specifically, according to the URL information carried in the user's access request, the global index server 82, in the corresponding relationship between the URL information of the webpage and the server identification information of the second domain index server to which each content distribution node storing the webpage content belongs, , to search for the server identification information of the corresponding second domain index server; if found, the search process ends; if not found, select the first URL aggregation level in the order of the URL aggregation levels from low to high; according to the selection According to the website aggregation level, the website information carried in the access request is aggregated; according to the aggregated website information, the website website information of the webpage and the second domain index server to which each content distribution node that stores the webpage content of the webpage belongs In the corresponding relationship of the server identification information, search for the server identification information of the second domain index server corresponding to the aggregated URL information; if found, the search process ends; otherwise, according to the order of the URL aggregation level from low to high, select to the next URL aggregation level, and return to continue performing the operations of aggregating the URL information and finding the server identification information of the second domain index server corresponding to the aggregated URL information according to the aggregated URL information.
本发明实施例提供的内容分发节点的确定方法、设备及系统,域索引服务器根据获得的用户的访问请求中携带的网页的网址信息,首先查找缓存了该网址信息对应的网页内容的所有内容分发节点的节点标识信息,之后按照预设的确定规则,从查找到的节点标识信息对应的内容分发节点中确定为所述用户提供服务的内容分发节点,这样,由于域索引服务器按照预设的规则,从缓存了该网址信息对应的网页内容的所有内容分发节点中确定为用户提供服务的内容分发节点,而不再是从该网址信息对应的一个CDN系统中查找内容分发节点,因此最终确定出的为用户提供服务的内容分发节点为最佳的内容分发节点,有效地提高了内容分发节点为用户提供服务时的处理效率。In the method, device, and system for determining a content distribution node provided by the embodiments of the present invention, the domain index server first searches for and caches all content distribution sites that have cached the web page content corresponding to the web address information according to the obtained web address information carried in the user's access request. The node identification information of the node, and then according to the preset determination rules, determine the content distribution node that provides services for the user from the content distribution nodes corresponding to the found node identification information. In this way, because the domain index server follows the preset rules , determine the content distribution node that provides services to users from all the content distribution nodes that have cached the web page content corresponding to the URL information, instead of searching for the content distribution node from a CDN system corresponding to the URL information, so finally determine the The content distribution node that provides services for users is the best content distribution node, which effectively improves the processing efficiency of content distribution nodes when providing services for users.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.
Claims (29)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110038305.8A CN102638483B (en) | 2011-02-15 | 2011-02-15 | A kind of defining method of content distribution nodes, equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110038305.8A CN102638483B (en) | 2011-02-15 | 2011-02-15 | A kind of defining method of content distribution nodes, equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102638483A CN102638483A (en) | 2012-08-15 |
CN102638483B true CN102638483B (en) | 2016-01-27 |
Family
ID=46622726
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110038305.8A Expired - Fee Related CN102638483B (en) | 2011-02-15 | 2011-02-15 | A kind of defining method of content distribution nodes, equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102638483B (en) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103888999B (en) * | 2012-12-19 | 2018-06-05 | 中国移动通信集团公司 | A kind of WebCache services and the fusion method and equipment of CDN service |
CN104468475B (en) * | 2013-09-16 | 2019-02-05 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN103873604B (en) * | 2014-03-24 | 2017-03-22 | 成都博宇科技有限公司 | Network access method based on analysis of CDN data |
CN104052808A (en) * | 2014-06-13 | 2014-09-17 | 乐视网信息技术(北京)股份有限公司 | Digital content acquiring method and system based on CDN |
CN104010046B (en) * | 2014-06-13 | 2018-02-09 | 湖南网数科技有限公司 | A kind of server selection method and system, record server, measurement server |
CN104506637B (en) * | 2014-12-29 | 2018-03-23 | 国家电网公司 | Solve caching method, system and the URL forwarding servers of network congestion |
CN105045866A (en) * | 2015-07-14 | 2015-11-11 | 深圳市云宙多媒体技术有限公司 | Short-URL query-based CDN node hopping method and system |
CN106899703B (en) * | 2015-12-17 | 2021-08-20 | 北京奇虎科技有限公司 | A kind of IP address correction method and device |
CN107370690B (en) * | 2016-05-13 | 2020-05-12 | 中国移动通信有限公司研究院 | Service content transmission method, terminal and network side equipment |
CN108696561B (en) * | 2017-04-11 | 2021-05-25 | 中国移动通信集团河北有限公司 | Resource push method and device |
CN109218363B (en) * | 2017-07-03 | 2021-06-08 | 中国移动通信有限公司研究院 | Content distribution method, network node and storage medium |
CN108234319B (en) * | 2017-12-29 | 2021-10-19 | 北京奇虎科技有限公司 | A data transmission method and device |
CN109873855B (en) * | 2018-04-13 | 2022-01-25 | 贵州白山云科技股份有限公司 | Resource acquisition method and system based on block chain network |
US10623508B2 (en) * | 2018-09-12 | 2020-04-14 | Citrix Systems, Inc. | Systems and methods for integrated service discovery for network applications |
CN111628879B (en) * | 2019-02-27 | 2024-10-29 | 北京奇虎科技有限公司 | Service network realization method and device |
CN110401657B (en) * | 2019-07-24 | 2020-09-25 | 网宿科技股份有限公司 | Processing method and device for access log |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101287011A (en) * | 2008-05-26 | 2008-10-15 | 蓝汛网络科技(北京)有限公司 | Method, system and device for responding service request from user in content distributing network |
CN101662802A (en) * | 2009-09-18 | 2010-03-03 | 中兴通讯股份有限公司 | Cell handover method, mobile communication system and mobile switching center |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7159235B2 (en) * | 2000-01-28 | 2007-01-02 | Sedna Patent Services, Llc | Method and apparatus for content distribution via non-homogeneous access networks |
-
2011
- 2011-02-15 CN CN201110038305.8A patent/CN102638483B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101287011A (en) * | 2008-05-26 | 2008-10-15 | 蓝汛网络科技(北京)有限公司 | Method, system and device for responding service request from user in content distributing network |
CN101662802A (en) * | 2009-09-18 | 2010-03-03 | 中兴通讯股份有限公司 | Cell handover method, mobile communication system and mobile switching center |
Also Published As
Publication number | Publication date |
---|---|
CN102638483A (en) | 2012-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102638483B (en) | A kind of defining method of content distribution nodes, equipment and system | |
US8762477B2 (en) | Method for collaborative caching for content-oriented networks | |
CN102523256B (en) | Content management method, device and system | |
CN103347068B (en) | A kind of based on Agent cluster network-caching accelerated method | |
US9906436B2 (en) | Scalable name-based centralized content routing | |
US9172632B2 (en) | Optimized content distribution based on metrics derived from the end user | |
US10015243B2 (en) | Optimized content distribution based on metrics derived from the end user | |
US7565450B2 (en) | System and method for using a mapping between client addresses and addresses of caches to support content delivery | |
CN102647357B (en) | A kind of contents processing method for routing and device | |
JP5885310B2 (en) | Sharing content between mobile devices | |
CN102571921B (en) | Network access method and device for mobile equipment | |
CN107645525A (en) | Detection processing, dispatching method and related device, the node of content distributing network | |
US20130205045A1 (en) | Updating routing information based on client location | |
EP3567881A2 (en) | Request routing and updating routing information utilizing client location information | |
CN104022911A (en) | Content route managing method of fusion type content distribution network | |
CN103973834A (en) | Domain name resolution (DNS) acceleration method and device based on home gateway | |
CN102045403A (en) | Method, device and system for processing data of distributed network | |
CN105357281B (en) | A mobile access network distributed content cache access control method and system | |
EP3066577B1 (en) | Content node selection using network performance profiles | |
CN108418855B (en) | Active caching method, device and system based on named data network NDN | |
CN108234632A (en) | A kind of data distributing method and device of content distributing network CDN | |
Li et al. | SCOM: A scalable content centric network architecture with mobility support | |
CN103825916A (en) | Resource downloading method and resource downloading system | |
Tortelli et al. | CCN forwarding engine based on bloom filters | |
CN106534390B (en) | Method and system for storing and managing server data of authoritative domain name system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160127 |
|
CF01 | Termination of patent right due to non-payment of annual fee |