New! View global litigation for patent families

CN102196060A - Method and system for selecting source station by Cache server - Google Patents

Method and system for selecting source station by Cache server Download PDF

Info

Publication number
CN102196060A
CN102196060A CN 201110160398 CN201110160398A CN102196060A CN 102196060 A CN102196060 A CN 102196060A CN 201110160398 CN201110160398 CN 201110160398 CN 201110160398 A CN201110160398 A CN 201110160398A CN 102196060 A CN102196060 A CN 102196060A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
source
response
station
server
cache
Prior art date
Application number
CN 201110160398
Other languages
Chinese (zh)
Inventor
黄勇
Original Assignee
北京蓝汛通信技术有限责任公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date

Links

Abstract

The invention provides a method for selecting a source station by a Cache server. The method comprises the following steps of: receiving an IP address query request sent by the Cache server, and resolving an IP address corresponding to the domain name; determining a response source station with shorter response time according to the storage records of response source stations and corresponding response time; selecting the response source station with shorter response time as a preferable source station, and sending the IP address information corresponding to the preferable source station to the Cache server; and accessing the preferable source station by the Cache server. By regularly and circularly sending a detection request, storing the response source stations and the corresponding response time and performing intelligent selection in the stored response source stations, the high-quality source station is provided, the load conditions of the source stations can be balanced, the investment cost is reduced, and availability and reliability of a web site are improved.

Description

一种Cache服务器选择源站的方法和系统 The source station for a Cache server selection method and system

技术领域 FIELD

[0001] 本发明涉及互联网CDN(Content Delivery Network,内容分发网络)网络领域,尤其涉及一种Cache服务器选择源站的方法和系统。 [0001] The present invention relates to Internet CDN (Content Delivery Network, the content distribution network) network, and more particularly, to a source station Cache server selection method and system.

背景技术 Background technique

[0002] 在互联网CDN(Content Delivery Network,内容分发网络)网络中进行域名访问时,需要解析该域名,获取该域名对应的IP (Internet Protocol,互联网协议)地址,所谓IP地址就是分配给连接在互联网上的每个主机的一个32比特地址,一个域名对应一个或多个IP地址。 [0002] When domain names on the Internet CDN (Content Delivery Network, the content distribution network) network, needs to resolve the domain name to obtain the domain name corresponding to the IP (Internet Protocol, Internet Protocol) address, called an IP address is assigned to the connection a 32-bit address, a domain name for each host on the Internet corresponding to one or more IP addresses. Cache服务器根据解析得到的IP地址和一个IP地址对应的源站建立连接并进行通信。 Cache connections to the server according to the IP address resolution and the obtained IP address corresponding to a source station and communicate.

[0003] 当一个域名对应多个IP地址时,目前有三种确定域名IP地址的技术方案,分别为: [0003] When a plurality of IP addresses corresponding to a domain name, there are three aspect of the domain name to determine the IP address, respectively:

[0004] 1、当Cache服务器访问一个域名时,Cache服务器向指定的外部DNS (Domain Name System,域名系统)服务器发起解析域名的请求,DNS根据其保存的域名和IP地址的对应关系解析出域名对应的IP地址,并将解析出的IP地址通知Cache服务器。 [0004] 1, when the Cache server to access a domain name, Cache servers in initiating a request to resolve domain names to a specified external DNS (Domain Name System, DNS), DNS parse the domain name according to the corresponding relation save domain names and IP addresses the corresponding IP address, and notifies the Cache server to resolve the IP address. Cache服务器根据接收到的IP地址和DNS首先解析到的IP地址对应的源站建立连接并进行通信。 Cache Server establishes a connection according to the received IP address and DNS to resolve the IP address of the first source station and corresponding to communicate.

[0005] 2、当Cache服务器访问一个域名时,Cache服务器向本机LDNS(Local Domain Name System,本机域名系统)服务器发起获取某一域名对应的源站地址的请求,本机LDNS服务器根据其保存的域名和IP的对应关系的配置文件解析出域名对应的IP地址,并将解析出的IP地址通知Cache服务器。 [0005] 2, when a Cache access the domain name server, the server initiates a server Cache native LDNS (Local Domain Name System, the native domain name system) acquisition request source station address corresponding to a domain name, the machine according to its server LDNS saved correspondence between domain names and IP configuration file parse out the IP address corresponding to the domain name, and will notify the Cache server to resolve the IP address. Cache服务器根据接收到的IP地址和LDNS首先解析到的IP地址对应的源站建立连接并进行通信。 Cache Server establishes a connection according to the received IP address and the first LDNS resolve the IP address corresponding to the source station and communicate.

[0006] 3、当Cache服务器访问一个域名时,Cache服务器根据其内部集成的软件保存的域名和IP的对应关系的配置文件,解析出域名对应的IP地址。 [0006] 3, when a domain name server to access the Cache, Cache server based on the stored internal integration software domain names and IP configuration file corresponding relationship, parse out the IP address corresponding to the domain name. Cache服务器随机选择一个IP地址,和该IP地址对应的源站建立连接并进行通信。 Cache server randomly selects an IP address, and the IP address corresponding to the source station to establish a connection and communicate. 如果该源站宕机,源站返回宕机提示给Cache服务器,Cache服务器内部集成的软件标记该源站不可用,该软件保证该源站一段时间内不被查询到。 If the source station down, down prompt return to the source station Cache server, server integration software Cache tag inside the source station is not available, the software is not guaranteed to query the source station within a period of time. Cache服务器和其它随机选择的IP地址对应的源站建立连接并进行 Cache servers and other randomly selected IP address corresponding to the source station and establish a connection

ififn。 ififn.

[0007] 上述技术方案都是解析出域名对应的全部IP地址,Cache服务器根据IP地址被解析出的先后顺序或随机选择一个IP地址对应的源站建立连接并进行通信,不能和符合某一定制化条件的目标源站进行通信,这样就会存在如下缺陷:当Cache服务器随机选择的IP地址对应的源站已经有很大的负载,源站就不会及时快速的响应Cache服务器的请求, 降低通信效率。 [0007] The above technical solutions are all the parsed IP address corresponding to the domain name, Cache server, or randomly select a source station to establish a connection IP address corresponding to the IP address and communicating the order to be parsed, and can not meet some customization conditions for communication target source station, there is such a defect will be: Cache server randomly selected when the IP address corresponding to the source station has been a great load, the source station will not respond to the request as quickly Cache server, reducing communication efficiency.

发明内容 SUMMARY

[0008] 本发明提供一种使用户的请求能够得到更快响应以提高通信效率的Cache服务器选择源站的方法和系统。 [0008] The present invention provides a user makes a request can be obtained quickly in response to increase communication efficiency Cache server selection method and system of the source station. [0009] 本发明提供了一种Cache服务器择优选择源站的方法,包括以下步骤: [0009] The present invention provides a source station Cache servers choose the best method, comprising the steps of:

[0010] 接收Cache服务器发送的IP地址查询请求,所述查询请求中至少包含用户请求的域名信息,并解析出所述域名对应的IP地址; [0010] Cache receives the IP address query request sent by the server, the domain name information query request includes at least the user's request, and to parse out the IP address corresponding to the domain name;

[0011] 根据响应源站及对应响应时间的存储记录,确定出响应时间较短的响应源站;所述存储记录为:向全部IP地址对应的源站发送探测请求后,存储的返回探测响应的响应源站以及所述响应源站对应的响应时间的相关记录; [0011] The stored records and the corresponding response to the source station in response time, a shorter response time is determined in response to the source station; storing the records is: after a source station transmits a probe request to all IP addresses corresponding to the stored return probe response the source station in response to the response of related records corresponding to the source station in response to time;

[0012] 将响应时间较短的响应源站作为优选源站,并将所述优选源站对应的IP地址信息发送给所述Cache服务器; [0012] The short response times in response to the source station as a preferred source station, and sending the source station preferably corresponding IP address information to the Cache server;

[0013] 所述Cache服务器访问所述优选源站。 [0013] Preferably the Cache accesses the server source station.

[0014] 本发明还提供了一种Cache服务器选择源站的系统,包括: [0014] The present invention further provides a system for selecting a source server Cache station, comprising:

[0015] IP地址选择装置,用于接收Cache服务器发送的IP地址查询请求,并解析出所述查询请求中的域名对应的IP地址; [0015] IP address selecting means, for receiving the IP address query request sent by Cache server, parsing the query request and the IP address corresponding to the domain name;

[0016] 用于向全部IP地址对应的源站发送探测请求后,存储的返回探测响应的响应源站对应的IP地址以及所述响应源站对应的响应时间的相关记录;并根据响应源站及对应响应时间的存储记录,确定出响应时间较短的响应源站;以及 [0016] for the source station transmits a probe request to all the corresponding IP address, stored in the probe response returned in response to the source station and the corresponding IP address corresponding to the source station in response to the recording-related response time; and the source station based on the response and store the response corresponding to the recording time determined in response to a short response time the source station; and

[0017] 用于将响应时间较短的响应源站作为优选源站,并将所述优选源站对应的IP地址信息发送给所述Cache服务器; [0017] for a short response time in response to the source station as a preferred source station, and transmits the IP address information of the source station preferably corresponding to the Cache server;

[0018] Cache服务器,用于将所述IP地址查询请求发送给所述IP地址选择装置,并对所述IP地址选择装置返回的优选源站进行访问。 [0018] Cache server, a query for the IP address request to the IP address selecting means, and the IP address of the source station to select a preferred access means is returned.

[0019] 本发明与现有技术相对比,具有以下优点: [0019] The present invention and the prior art contrast, has the following advantages:

[0020] 本发明提供的一种Cache服务器选择源站的方法:接收Cache服务器发送的IP地址查询请求,解析出所述查询请求中域名对应的IP地址;根据响应源站及对应响应时间的存储记录,确定出响应时间较短的响应源站;所述存储记录为:向全部IP地址对应的源站发送探测请求后,存储的返回探测响应的响应源站以及所述响应源站对应的响应时间的相关记录;将响应时间较短的响应源站作为优选源站,并将所述优选源站对应的IP地址信息发送给所述Cache服务器;所述Cache服务器访问所述优选源站。 [0020] The present invention provides for a Cache Server source station selection method of: receiving an IP address query request sent by the Cache server, parsing the query request an IP address corresponding to the domain name; response based on the response of the storage time corresponding to the source station and recording, in response to determining that a shorter response time of the source station; storing the records is: after a source station transmits a probe request to all IP addresses corresponding to the stored return probe response in response to the source station and said source station in response to a corresponding response Related recording time; shorter response time in response to the source station as a preferred source station and the source station preferably transmits the IP address information corresponding to the Cache server; preferably the Cache accesses the server source station.

[0021] 与现有技术相比,本发明提供的方法可以定时循环向各个IP地址对应的源站发送探测请求,并将返回探测响应的响应源站更新存储,当接受到Cache服器发送的IP地址查询请求以后,可以在存储的响应源站里选择出优选源站。 [0021] Compared with the prior art, the present invention provides a method may be a timing cycle corresponding to the source station sends a probe request to each IP address, and returns a response to the source station updates the stored probe response, when the server sends the received Cache after the IP address query request, the source station can be selected is preferably stored in a source station in response. 本技术发明提供的方法提高了用户访问源站的服务质量,减少了Cache服器的请求时间,保证在某一时间选择服务质量好的源站回源,比随机选择源站服务质量更有保证。 The method of the present invention provides a technique to improve the quality of service users access the source station, the request to reduce the time server's Cache, selected to ensure a good quality of service at a certain time the source station back to the source, the source station than the service quality of random selection to ensure better .

附图说明 BRIEF DESCRIPTION

[0022] 图1为本发明方法的流程图; [0022] FIG. 1 is a flowchart of a method of the present invention;

[0023] 图2为本发明系统的结构示意图; [0023] Fig 2 a schematic structural diagram of the system of the present invention;

[0024] 图3为本发明实施例的系统结构图。 [0024] FIG 3 a system configuration diagram of an embodiment of the present invention.

具体实施方式 detailed description

[0025] 本发明提供一种使用户的请求能够得到更快响应以提高通信效率的Cache服务 [0025] The present invention provides a user makes a request can be obtained quickly in response to increase communication efficiency Cache service

5器选择源站的方法和系统。 5 the source station selection method and system.

[0026] 本发明提供了一种Cache服务器选择源站的方法,包括以下步骤: [0026] The present invention provides a source station Cache server selection method, comprising the steps of:

[0027] 接收Cache服务器发送的IP地址查询请求,所述查询请求中至少包含用户请求的域名信息,并解析出所述域名对应的IP地址; [0027] Cache receives the IP address query request sent by the server, the domain name information query request includes at least the user's request, and to parse out the IP address corresponding to the domain name;

[0028] 根据响应源站及对应响应时间的存储记录,确定出响应时间较短的响应源站;所述存储记录为:向全部IP地址对应的源站发送探测请求后,存储的返回探测响应的响应源站以及所述响应源站对应的响应时间的相关记录; [0028] The stored records and the corresponding response to the source station in response time, a shorter response time is determined in response to the source station; storing the records is: after a source station transmits a probe request to all IP addresses corresponding to the stored return probe response the source station in response to the response of related records corresponding to the source station in response to time;

[0029] 将响应时间较短的响应源站作为优选源站,并将所述优选源站对应的IP地址信息发送给所述Cache服务器; [0029] The short response times in response to the source station as a preferred source station, and sending the source station preferably corresponding IP address information to the Cache server;

[0030] 所述Cache服务器访问所述优选源站。 [0030] Preferably the Cache accesses the server source station.

[0031] 所述方法,向各IP地址对应的源站发送探测请求,具体为: [0031] The method, the source station sends a probe request to each of the corresponding IP address, in particular:

[0032] 向各所述IP地址对应的源站定时循环发送探测请求。 [0032] each corresponding to the IP address of the source station transmits a probe request timed cycle.

[0033] 所述方法,所述存储记录为,具体为: [0033] The method, the record is stored, in particular:

[0034] 最近一次向全部IP地址对应的源站发送探测请求后,存储的返回探测响应的响应源站以及所述响应源站对应的响应时间的相关记录; [0034] When the source station sends a probe request to all corresponding most recent IP address, stored in the probe response is returned to the source station in response to the response, and associated records corresponding to the source station in response to time;

[0035] 所述方法,将响应时间较短的源站作为优选源站前,进一步包括: Before [0035] the method, the source station in response to a short time as a preferred source station, further comprising:

[0036] 将所述查询请求中包含的用户请求类型与所述响应源站的服务类型进行匹配,确定出类型相同或近似的源站; [0036] The user query request includes a request type matching the type of service in response to the source station, it is determined that the same or similar type of source station;

[0037] 所述将响应时间较短的响应源站作为优选源站,具体为: [0037] The shorter the response time in response to the source station as a preferred source station, specifically:

[0038] 将响应时间较短且确定出的所述类型相同或近似的源站作为优选源站。 [0038] A short response time is determined and the same or similar type of the source station as a preferred source station.

[0039] 所述方法,将响应时间较短的源站作为优选源站前,进一步包括: Before [0039] the method, the source station in response to a short time as a preferred source station, further comprising:

[0040] 将所述查询请求中包含的用户客户端地理位置与所述响应源站的地理位置进行匹配,确定出地理位置相同或相近的源站; [0040] The client user location query request includes a match with the source station location response, the same or similar to determine the geographic location of the source station;

[0041] 所述将响应时间较短的响应源站作为优选源站,具体为: [0041] The shorter the response time in response to the source station as a preferred source station, specifically:

[0042] 将响应时间较短且确定出的所述地理位置相同或相近的源站作为优选源站。 [0042] The short response time and the determined geographic location of the same or similar source station as a preferred source station.

[0043] 所述方法,在解析出所述域名对应的IP地址之前,进一步包括: [0043] The method, prior to the parsing the corresponding IP address, further comprising:

[0044] 对所述查询请求进行判定,确定所述查询请求为异常访问或类似攻击访问时,将特定源站对应的IP地址信息发送给所述Cache服务器,所述Cache服务器访问所述特定源站。 [0044] The determination of the query request, the query request is determined abnormal access or access to similar attacks, a particular IP address information corresponding to the source station transmits to the Cache server, the server accesses a particular source Cache station.

[0045] 一种Cache服务器选择源站的系统,包括: [0045] A source station selected Cache server system, comprising:

[0046] IP地址选择装置,用于接收Cache服务器发送的IP地址查询请求,并解析出所述查询请求中的域名对应的IP地址; [0046] IP address selecting means, for receiving the IP address query request sent by Cache server, parsing the query request and the IP address corresponding to the domain name;

[0047] 用于向全部IP地址对应的源站发送探测请求后,存储的返回探测响应的响应源站以及所述响应源站对应的响应时间的相关记录;并根据响应源站及对应响应时间的存储记录,确定出响应时间较短的响应源站;以及 [0047] for the source station transmits a probe request to all the corresponding IP address, a source station in response to the stored return probe response and the response of the corresponding source station associated response time record; response time and according to a response corresponding to the source station and record storage, short response times determined in response to the source station; and

[0048] 用于将响应时间较短的响应源站作为优选源站,并将所述优选源站对应的IP地址信息发送给所述Cache服务器; [0048] for a short response time in response to the source station as a preferred source station, and transmits the IP address information of the source station preferably corresponding to the Cache server;

[0049] Cache服务器,用于将所述IP地址查询请求发送给所述IP地址选择装置,并对所述IP地址选择装置返回的优选源站进行访问。 [0049] Cache server, a query for the IP address request to the IP address selecting means, and the IP address of the source station to select a preferred access means is returned. [0050] 在所述系统中,所述IP地址选择装置还用于: [0050] In the system, the IP address selection means is further configured to:

[0051] 将所述查询请求中包含的用户请求类型与所述响应源站的服务类型进行匹配,确定出类型相同或近似的源站,将响应时间较短且确定出的所述类型相同或近似的源站作为优选源站。 [0051] The user query request includes a request type matching the type of service in response to the source station, it is determined that the same or similar type of the source station, the same short response time and the determined type or approximate source station as a preferred source station.

[0052] 在所述系统中,所述IP地址选择装置还用于: [0052] In the system, the IP address selection means is further configured to:

[0053] 将所述查询请求中包含的用户客户端地理位置与所述响应源站的地理位置进行匹配,确定出地理位置相同或相近源站,将响应时间较短且确定出的所述地理位置相同或相近的源站作为优选源站。 [0053] The geographic location of the user client query request contained in the response matches the location of the source station, it is determined that the same or similar geographic source station, the response time is short and the determined geographical the the same or similar location of the source station as a preferred source station.

[0054] 在所述系统中,所述IP地址选择装置还用于: [0054] In the system, the IP address selection means is further configured to:

[0055] 对所述查询请求进行判定,确定所述查询请求为异常访问或类似攻击访问时,将特定源站对应的IP地址信息发送给所述Cache服务器。 [0055] determines the query request, the query request is determined abnormal access or access to similar attacks, a particular IP address information corresponding to the source station transmits to the server Cache.

[0056] 在所述系统中,所述IP地址选择装置集成于所述Cache服务器内,或设置于所述Cache服务器外。 [0056] In the system, the IP address selection means integrated within the Cache server, or the server provided on the outside of the Cache.

[0057] 所述系统,还包括:源站,用于接收所述IP地址选择装置发送的所述探测请求,并返回探测响应。 The [0057] system, further comprising: a source station to receive the IP address of the selected device transmits a probe request and probe response is returned.

[0058] 如图1所示,本发明提供了一种Cache服务器选择源站的方法,包括以下步骤: [0058] As shown in FIG. 1, the present invention provides a method of selecting a source server Cache station, comprising the steps of:

[0059] SlOl :接收Cache服务器发送的IP地址查询请求,所述查询请求中至少包含用户请求的域名信息,并解析出所述域名对应的IP地址; [0059] SlOl: IP address for receiving query request sent by Cache server, the domain name information query request includes at least the user's request, and to parse out the IP address corresponding to the domain name;

[0060] S102 :根据响应源站及对应响应时间的存储记录,确定出响应时间较短的响应源站;所述存储记录为:向全部IP地址对应的源站发送探测请求后,存储的返回探测响应的响应源站以及所述响应源站对应的响应时间的相关记录; [0060] S102: The store records in response to the source station and the corresponding response time, determining the short response times in response to the source station; storing the records is: after a source station transmits a probe request to all IP addresses corresponding to the stored return source station in response to the probe response and the response corresponding to the source station associated response time record;

[0061] S103 :将响应时间较短的响应源站作为优选源站,并将所述优选源站对应的IP地址信息发送给所述Cache服务器; [0061] S103: In response to a short response time of the source station as a preferred source station and the source station preferably corresponding IP address information is sent to the Cache server;

[0062] S104 :所述Cache服务器访问所述优选源站。 [0062] S104: The Cache accesses the server preferred source station.

[0063] 如图2所示,一种Cache服务器选择源站的系统,包括: [0063] As shown, the server selecting the source station for a Cache system 2 comprising:

[0064] IP地址选择装置2向源站A3a、源站B3b、源站C3c、源站D3d等全部源站发出探测请求,查询结果是源站D3d宕机,没有响应,其他源站A3a、源站B3b、源站C3c为响应源站, IP地址选择装置2将源站A3a、源站B3b、源站C3c的对应标示及响应时间记录并存储下来; 当接收到Cache服务器1发送来的IP地址查询请求后,进行解析所述查询请求中域名对应的IP地址。 [0064] IP address of the source station selecting apparatus 2 A3a, source station B3b., C3c source station, the source station D3d, and all the source station sends a probe request, the query result is the source station D3d down, there is no response, the source station other A3a, source station B3b., source station C3c response to the source station, the IP address selection 2 to the source station A3a apparatus, the source station B3b., source station C3c corresponding labeling, and the response time recorded and stored down; when receiving the IP address to the Cache server 1 transmitted after the query request, the query request analyzing the corresponding IP address.

[0065] IP地址选择装置2将所述查询请求中包含的用户请求类型与最近一次发送探测响应后,存储记录的的响应源站的服务类型进行匹配,确定出类型相同或近似的源站;同时,IP地址选择装置2将查询请求中包含的用户客户端地理位置与响应源站的地理位置进行匹配,确定出地理位置相同或相近源站;结合类型相同或近似的源站及地理位置相同或相近源站的响应时间,发现源站B!3b响应时间较短,然后IP地址选择装置2将优选源站B!3b 对应的IP地址信息返回给Cache服务器1,Cache服务器1对源站B3b直接进行访问。 [0065] IP address selecting means 2 to the querying user request includes a request type matched with the most recent sending a probe response, the source station in response to the service type stored in the record, it is determined that the same or similar type of source station; At the same time, IP address, location selecting means 2 user client location query response request includes the source station to match, it is determined that the same or similar geographic source station; binding the same or similar type and location of the same source station or similar response time of the source station, the source station found B! 3b in response to a short time, and then select the IP address of the source station apparatus 2 will preferably B! 3b corresponding to the IP address of the server information back to the Cache. 1, Cache server pair of source station B3b 1 direct access.

[0066] 本发明实施例中,在择优选择源站时,根据为用户所在地区的配置提供服务,用户的配置信息一般包括请求类型、地理位置,比如:访问静态内容或动态内容,本发明通过IP 地址选择装置实现了定制化调度,为用户提供对应的目标源站,均衡了源站负载状况,使得 [0066] The embodiments of the present invention, when the preferred source station selected according to service areas where the user is configured, the user configuration information typically includes a request type, geographic location, such as: access static content or dynamic content, by the present invention IP address selecting means to achieve a customized scheduling, to provide users with corresponding target source station, the source station load balancing condition, such that

7Cache服务器回源的时间缩短,改善了网民的访问体验。 7Cache server back to the source to reduce the time and improve the visitor experience of Internet users. 并且降低了投资成本,提高了网站的可用性和可靠性。 And reduce investment costs and improve the availability and reliability of the site.

[0067] 下面以一个优选实施例详细介绍本发明提供的一种Cache服务器选择源站的方法。 [0067] In the following detailed description a preferred embodiment the present invention provides for a Cache Server source station selection method.

[0068] 本优选实施例提供的一种Cache服务器择优选择源站的方法,如图3所示,具体包括如下步骤: [0068] A preferred Cache server provided in the present preferred embodiment of the method of selecting the source station, shown in Figure 3, includes the following steps:

[0069] IP地址选择装置向全国的源站进行定时循环的探测。 [0069] IP address selection means to detect the timing cycle of the country source station.

[0070] 例如,IP地址选择装置向北京地区、上海等地区的服务器发出探测请求,探测北京、上海等全国各地的服务器的响应时间、负载情况、是否宕机,根据返回所述探测响应记录保存响应源站,包括响应源站的类型、响应源站的响应时间,响应源站的地理位置。 [0070] For example, IP addresses sent to the server selecting means Beijing China, Shanghai Area probe request, probe response time of the server Beijing and Shanghai, the country, load, whether downtime and save the probe response returned in accordance with the recording in response to the source station, the source station comprises a location type of the response, the response time in response to the source station, the source station in response.

[0071] 当用户需要访问某一指定网站时,用户通过所在客户端输入该网站的域名,所述客户端根据用户输入的域名生成请求访问消息,并将该请求访问消息发送给Cache服务 [0071] When a user needs to access a given site, where the users enter the domain name of the client site, the client in the domain name is generated according to the request access message, and transmits the request message to the access service Cache

ο ο

[0072] Cache服务器收到该请求访问消息后,将至少包含用户请求的域名信息发送给IP 地址选择装置,IP地址选择装置判断出用户服务器所在的地区。 After [0072] Cache server receives the access request message, the request comprising at least the user name information to the IP address selection means, selection means determines that the IP address of the server where the user area.

[0073] 例如,北京的用户,其客户端所在地区,也就是被服务地区为北京,如果选择位于北京的服务器为其服务,则服务地区就是北京,如果选择位于上海的服务器为其服务,则服务地区就是上海。 [0073] For example, a Beijing users, areas where its clients, which is being served for the Beijing area, if the server is located in Beijing's choice for its services, the service area is Beijing, if you select a server located in Shanghai for its service, the service area is Shanghai. 例如:用户输入www. sina. com. cn,则用户所在客户端生成请求访问消息,并将该请求访问消息发送给Cache服务器,其中,请求访问消息中包含用户输入的域名信息以及用户的IP地址等信息。 For example: a user input www sina com cn, the user's access client generates a request message, and transmits the request message to the Cache access server, wherein the access request message includes the IP address of the domain name input by the user and the user's information... and other information.

[0074] 由于位于北京地区的若干台服务器、上海地区的若干台服务器以及全国各地的其他服务地区的若干台服务器相连。 [0074] As the number of servers located in the Beijing area, connected to several servers in Shanghai several servers and other service areas across the country. 那么在北京若干服务器将会响应速度更快,因为同一服务地区的所有服务器响应时间一般相差不大,因此,还需考虑到负载均衡。 Then the number of server Beijing will respond faster, because all servers in the same service area of ​​response time or less general, therefore, the need to take into account load balancing. 如果配置了HTTP 模式,IP地址选择装置将会向源站发送探测URL,并且根据响应时间长短进行比较,首先确定出地理位置在北京地区的源站响应时间较短。 If the configuration mode of HTTP, IP address, the device will select the source station transmits a probe to the URL, and compared to the length of time according to the response, first determine the location of the source station in Beijing short response time.

[0075] 根据最近一次探测请求的确定的各响应源站及对应的响应时间,在北京地区的若干台服务器中,西城、朝阳、海淀的服务器负载太大,丰台服务器空闲,而丰台服务器的响应时间最短,并且可以提供新浪网站的内容,而其余服务器则用于提供其他网站的内容,丰台服务器提供的类型也与用户发出的请求访问类型相同。 [0075] According to a recent request to determine the response time of each probe and the corresponding response to the source station, the plurality of servers in Beijing, the West, Chaoyang, Haidian too much server load, server Fengtai idle, the server responds Fengtai the shortest time and can provide content Sina Web site, and the same request access to the remaining servers are used to provide content from other sites, the type of Fengtai provided by the server also sends the user types.

[0076] IP地址选择装置根据最后一次探测结束后保存的各响应源站的类型、地理位置以及响应时间,通过定制化的调度,将最终选出的优选源站反馈给Cache服务器。 [0076] IP address of the selected type of response for each source station apparatus according saved after the last detection, location and response time, customized by scheduling, the final selection is preferably fed back to the source station Cache server. 例如,在北京地区的各个服务器中,丰台的服务器是优选出来的源站,因此Cache服务器将可以直接对丰台的服务器进行通讯。 For example, each server in the Beijing area, the Fengtai server is the preferred source out of the station, so the server can Fengtai Cache server communicate directly.

[0077] 另外,本发明提供的所述方法,在解析出所述域名对应的IP地址之前,进一步包括: [0077] Further, the present invention provides the method, prior to the parsing the corresponding IP address, further comprising:

[0078] 对所述查询请求进行判定,确定所述查询请求为异常访问或类似攻击访问时,将特定源站对应的IP地址信息发送给所述Cache服务器,所述Cache服务器访问所述特定源站。 [0078] The determination of the query request, the query request is determined abnormal access or access to similar attacks, a particular IP address information corresponding to the source station transmits to the Cache server, the server accesses a particular source Cache station.

[0079] 本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。 [0079] skilled in the art should understand that the embodiments of the present invention may provide a method, system, or computer program product. 因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。 Thus, embodiments of the present invention may be employed entirely hardware embodiment, an entirely software embodiment, or an embodiment in conjunction with the form of software and hardware aspects. 而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。 Further, in the present invention may comprise one or more of which computer usable storage medium having computer-usable program code (including but not limited to disk storage, and optical storage) in the form of a computer program product implemented on.

[0080] 本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。 [0080] The present invention has been described in accordance with the method of Example of the present invention, apparatus (systems) and computer program products flowchart and / or block diagrams described. 应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。 It should be understood and implemented by computer program instructions and block, and the flowchart / or block diagrams each process and / or flowchart illustrations and / or block diagrams of processes and / or blocks. 可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。 These computer program instructions may be provided to a processor a general purpose computer, special purpose computer, embedded processor or other programmable data processing apparatus to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing apparatus generating in a device for implementing the flow chart or more flows and / or block diagram block or blocks in a specified functions.

[0081] 这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。 [0081] These computer program instructions may also be stored in a computer can direct a computer or other programmable data processing apparatus to function in a particular manner readable memory produce an article of manufacture such that the storage instruction means comprises a memory in the computer-readable instructions the instruction means implemented in a flowchart or more flows and / or block diagram block or blocks in a specified function.

[0082] 这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。 [0082] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps on the computer or other programmable apparatus to produce a computer implemented so that the computer or other programmable apparatus execute instructions to provide processes for implementing a process or flows and / or block diagram block or blocks a function specified step.

[0083] 显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。 [0083] Obviously, those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. 这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 Thus, if these modifications and variations of the present invention fall within the claims of the invention and the scope of equivalents thereof, the present invention intends to include these modifications and variations.

Claims (12)

  1. 1. 一种Cache服务器选择源站的方法,其特征在于,包括以下步骤:接收Cache服务器发送的IP地址查询请求,所述查询请求中至少包含用户请求的域名信息,并解析出所述域名对应的IP地址;根据响应源站及对应响应时间的存储记录,确定出响应时间较短的响应源站;所述存储记录为:向全部IP地址对应的源站发送探测请求后,存储的返回探测响应的响应源站以及所述响应源站对应的响应时间的相关记录;将响应时间较短的响应源站作为优选源站,并将所述优选源站对应的IP地址信息发送给所述Cache服务器;所述Cache服务器访问所述优选源站。 A source station Cache server selection method comprising the steps of: receiving an IP address query request sent by the Cache server, the domain name information query request includes at least a user request and the corresponding domain name parsing IP address; memory recording the source station based on the response and the corresponding response time, short response time is determined in response to the source station; storing the records is: a source station transmits a probe request to all the corresponding IP address, stored in the return probe in response to the source station in response to the source station and the response corresponds to the response time of the related records; short response time in response to the source station as a preferred source station, and sending the source station preferably corresponding IP address information to the Cache server; preferably the Cache accesses the server source station.
  2. 2.根据权利要求1所述的Cache服务器选择源站的方法,其特征在于,向各IP地址对应的源站发送探测请求,具体为:向各IP地址对应的源站定时循环发送探测请求。 Cache server according to claim 1, the method of selecting the source station, wherein each IP address corresponding to the source station sends a probe request, specifically: the IP address corresponding to each source station transmits a probe request timed cycle.
  3. 3.根据权利要求1所述的Cache服务器选择源站的方法,其特征在于,所述存储记录为,具体为:最近一次向全部IP地址对应的源站发送探测请求后,存储的返回探测响应的响应源站对应的IP地址以及所述响应源站对应的响应时间的相关记录。 The Cache server according to claim 1 selected source station, characterized in that the record is stored, in particular: a source station transmits a probe request after the last corresponding to all the IP address, the stored probe response is returned the source station in response to the corresponding IP address and associated records corresponding to the source station in response to the response time.
  4. 4.根据权利要求1所述的Cache服务器选择源站的方法,其特征在于,将响应时间较短的源站作为优选源站前,进一步包括:将所述查询请求中包含的用户请求类型与所述响应源站的服务类型进行匹配,确定出类型相同或近似的源站;所述将响应时间较短的响应源站作为优选源站,具体为: 将响应时间较短且确定出的所述类型相同或近似的源站作为优选源站。 The Cache server according to claim 1 selected source station, characterized in that the response time shorter before the source station as the source station preferably further comprises: the query the user request includes a request type the source station in response to the service type matching, it is determined that the same or similar type of source station; the shorter response time as a preferred source station in response to the source station, specifically: a short response time and the determined the same or similar type of said source station as a preferred source station.
  5. 5.根据权利要求1所述的Cache服务器选择源站的方法,其特征在于,将响应时间较短的源站作为优选源站前,进一步包括:将所述查询请求中包含的用户客户端地理位置与所述响应源站的地理位置进行匹配, 确定出地理位置相同或相近的源站;所述将响应时间较短的响应源站作为优选源站,具体为:将响应时间较短且确定出的所述地理位置相同或相近的源站作为优选源站。 The Cache server according to claim 1 selected source station, characterized in that the response time shorter before the source station as the source station preferably further comprises: the query user client request includes the geographic in response to the position of the source station location matching, it is determined that the same or similar location of the source station; the shorter response time as a preferred source station in response to the source station, specifically: a short response time and determining the same or similar geographic location of the source station as a preferred source station.
  6. 6.根据权利要求1所述的Cache服务器选择源站的方法,其特征在于,在解析出所述域名对应的IP地址之前,进一步包括:对所述查询请求进行判定,确定所述查询请求为异常访问或类似攻击访问时,将特定源站对应的IP地址信息发送给所述Cache服务器,所述Cache服务器访问所述特定源站。 6. The method of claim 1 Cache server selects the source station as claimed in claim, wherein, prior to the parsing the corresponding IP address, further comprising: determining the query request, the query request is determined abnormal access or access to similar attacks, a particular source station transmits corresponding address information to the IP server Cache, the Cache server accessing the particular source station.
  7. 7. —种Cache服务器选择源站的系统,其特征在于,包括:IP地址选择装置,用于接收Cache服务器发送的IP地址查询请求,并解析出所述查询请求中的域名对应的IP地址;用于向全部IP地址对应的源站发送探测请求后,存储的返回探测响应的响应源站以及所述响应源站对应的响应时间的相关记录;并根据响应源站及对应响应时间的存储记录,确定出响应时间较短的响应源站;以及用于将响应时间较短的响应源站作为优选源站,并将所述优选源站对应的IP地址信息发送给所述Cache服务器;Cache服务器,用于将所述IP地址查询请求发送给所述IP地址选择装置,并对所述IP 地址选择装置返回的优选源站进行访问。 7. - Species Cache server selection system of the source station, characterized by, comprising: IP address selecting means, for receiving the IP address query request sent by Cache server, parsing the query request and the IP address corresponding to the domain name; for a source station sends a probe request to all the corresponding IP address, a source station in response to the stored return probe response and the response corresponding to the source station associated response time record; and storing the response time record according to the source station and the corresponding response , short response time is determined in response to the source station; and means for short response time as a preferred source station in response to the source station, and sending the source station preferably corresponding IP address information to the Cache server; Cache server for the IP address query request to the IP address selecting means, and the IP address of the source station to select a preferred access means is returned.
  8. 8.根据权利要求7所述的一种Cache服务器选择源站的系统,其特征在于,所述IP地址选择装置还用于:将所述查询请求中包含的用户请求类型与所述响应源站的服务类型进行匹配,确定出类型相同或近似的源站,将响应时间较短且确定出的所述类型相同或近似的源站作为优选源站。 8. The server according to claim 7, for a Cache source station selection system, wherein the IP address selection means further configured to: query the user request includes a request type as the source station in response to matching the type of service, it is determined that the same or similar type of the source station, the response time is short and it is determined that the same or similar type of the source station as a preferred source station.
  9. 9.根据权利要求7或8所述的一种Cache服务器选择源站的系统,其特征在于,所述IP地址选择装置还用于:将所述查询请求中包含的用户客户端地理位置与所述响应源站的地理位置进行匹配, 确定出地理位置相同或相近的源站,将响应时间较短且确定出所述地理位置相同或相近的源站作为优选源站。 Cache system according to claim server selection source station 7 or claim 8, wherein said selecting means is further configured IP address: the geographic location of the user client query request and being included in source station in response to said location match, it is determined that the same or similar geographic source station, the response time is short and it is determined that the same or similar location of the source station as a preferred source station.
  10. 10.根据权利要求7所述的一种Cache服务器选择源站的系统,其特征在于,所述IP地址选择装置还用于:对所述查询请求进行判定,确定所述查询请求为异常访问或类似攻击访问时,将特定源站对应的IP地址信息发送给所述Cache服务器。 10. The server according to claim 7, for a Cache source station selection system, wherein said selecting means is further configured IP address: determining the query request, the query request is determined to be abnormal access or Similarly access attack, the source station sends specific information of the corresponding IP address to the Cache server.
  11. 11.根据权利要求7所述的一种Cache服务器选择源站的系统,其特征在于,所述IP地址选择装置集成于所述Cache服务器内,或设置于所述Cache服务器外。 11. The server according to claim 7, for a Cache source station selection system, wherein the IP address selection means integrated within the Cache server, or the server provided on the outside of the Cache.
  12. 12.根据权利要求7所述的一种Cache服务器选择源站的系统,其特征在于,还包括: 源站,用于接收所述IP地址选择装置发送的所述探测请求,并返回所述探测响应。 12. The server according to claim 7, for a Cache source station selection system, characterized by, further comprising: a source station, for receiving said IP address request means transmits the probe selection, and returns the probe response.
CN 201110160398 2011-06-15 2011-06-15 Method and system for selecting source station by Cache server CN102196060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110160398 CN102196060A (en) 2011-06-15 2011-06-15 Method and system for selecting source station by Cache server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110160398 CN102196060A (en) 2011-06-15 2011-06-15 Method and system for selecting source station by Cache server

Publications (1)

Publication Number Publication Date
CN102196060A true true CN102196060A (en) 2011-09-21

Family

ID=44603424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110160398 CN102196060A (en) 2011-06-15 2011-06-15 Method and system for selecting source station by Cache server

Country Status (1)

Country Link
CN (1) CN102196060A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917067A (en) * 2012-10-24 2013-02-06 网宿科技股份有限公司 Method and device for increasing response speed based on self-adaption concurrency control of client
CN103888552A (en) * 2012-12-24 2014-06-25 中国电信股份有限公司 Fast Internet accessing method and system and terminal device
CN104702619A (en) * 2015-03-25 2015-06-10 广东睿江科技有限公司 Method and device for intelligently determining service node in CDN (Content Distribution Network)
CN104811477A (en) * 2015-03-26 2015-07-29 广东睿江科技有限公司 Automatic network distance measuring method and device
WO2016086482A1 (en) * 2014-12-02 2016-06-09 网宿科技股份有限公司 Method and system for guaranteeing resource utilization rate of website using content distribution network
WO2016145753A1 (en) * 2015-03-17 2016-09-22 网宿科技股份有限公司 Method, device and system for processing traffic of mobile terminal based on content delivery network
CN103731404B (en) * 2012-10-12 2016-12-28 北京百度网讯科技有限公司 Cdn network data access methods, apparatus and systems based
CN103618810B (en) * 2013-11-29 2017-12-26 北京奇安信科技有限公司 ip address recognition method and apparatus for the source station cdn

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1332924A (en) * 1998-11-09 2002-01-23 艾利森电话股份有限公司 Internet system and method for selecting closest server from plurality of alternative servers
CN1410909A (en) * 2001-09-27 2003-04-16 因特国风网络软件有限公司 Resolving method of internet keyword and system thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1332924A (en) * 1998-11-09 2002-01-23 艾利森电话股份有限公司 Internet system and method for selecting closest server from plurality of alternative servers
CN1410909A (en) * 2001-09-27 2003-04-16 因特国风网络软件有限公司 Resolving method of internet keyword and system thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731404B (en) * 2012-10-12 2016-12-28 北京百度网讯科技有限公司 Cdn network data access methods, apparatus and systems based
CN102917067A (en) * 2012-10-24 2013-02-06 网宿科技股份有限公司 Method and device for increasing response speed based on self-adaption concurrency control of client
CN102917067B (en) * 2012-10-24 2015-06-10 网宿科技股份有限公司 Method and device for increasing response speed based on self-adaption concurrency control of client
CN103888552A (en) * 2012-12-24 2014-06-25 中国电信股份有限公司 Fast Internet accessing method and system and terminal device
CN103618810B (en) * 2013-11-29 2017-12-26 北京奇安信科技有限公司 ip address recognition method and apparatus for the source station cdn
WO2016086482A1 (en) * 2014-12-02 2016-06-09 网宿科技股份有限公司 Method and system for guaranteeing resource utilization rate of website using content distribution network
WO2016145753A1 (en) * 2015-03-17 2016-09-22 网宿科技股份有限公司 Method, device and system for processing traffic of mobile terminal based on content delivery network
CN104702619A (en) * 2015-03-25 2015-06-10 广东睿江科技有限公司 Method and device for intelligently determining service node in CDN (Content Distribution Network)
CN104811477A (en) * 2015-03-26 2015-07-29 广东睿江科技有限公司 Automatic network distance measuring method and device

Similar Documents

Publication Publication Date Title
US8521851B1 (en) DNS query processing using resource identifiers specifying an application broker
US9021128B2 (en) Request routing using network computing components
US8676918B2 (en) Point of presence management in request routing
US8732309B1 (en) Request routing utilizing cost information
US20150172379A1 (en) Point of presence management in request routing
US9021129B2 (en) Request routing utilizing client location information
US9106701B2 (en) Request routing management based on network components
US8688837B1 (en) Dynamically translating resource identifiers for request routing using popularity information
US20160028644A1 (en) Request routing in a networked environment
US20130311605A1 (en) Managing cdn registration by a storage provider
CN103731481A (en) Request routing and updating routing information utilizing client location information
US9444759B2 (en) Service provider registration by a content broker
CN102340554A (en) Optimal application server selection method and device for domain name system (DNS)
WO2009124006A2 (en) Request routing
US20110320522A1 (en) Context-specific network resource addressing model for distributed services
CN102364468A (en) User network behavior analysis method, device and system
CN102546836A (en) Method, terminal, server and system for uploading files
CN101094129A (en) Method for accessing domain name, and client terminal
CN102202073A (en) Distributed system and data synchronization method thereof
US20100281146A1 (en) Dynamic domain name service system and automatic registration method
CN101951417A (en) Method, system and trunk equipment for assigning multiple server addresses
US20120136984A1 (en) Service realizing method and service system
CN101178651A (en) Method, system and device for prompting software version update
US20110040892A1 (en) Load balancing apparatus and load balancing method
CN102025795A (en) DNS response message processing method, DNS server and system

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C12 Rejection of a patent application after its publication