CN106686033A - A method, device and system for caching and serving content - Google Patents
A method, device and system for caching and serving content Download PDFInfo
- Publication number
- CN106686033A CN106686033A CN201510760276.4A CN201510760276A CN106686033A CN 106686033 A CN106686033 A CN 106686033A CN 201510760276 A CN201510760276 A CN 201510760276A CN 106686033 A CN106686033 A CN 106686033A
- Authority
- CN
- China
- Prior art keywords
- mark
- url
- content
- cache
- access request
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000014509 gene expression Effects 0.000 claims description 49
- 238000012217 deletion Methods 0.000 claims description 4
- 230000037430 deletion Effects 0.000 claims description 4
- RZTAMFZIAATZDJ-UHFFFAOYSA-N felodipine Chemical compound CCOC(=O)C1=C(C)NC(C)=C(C(=O)OC)C1C1=CC=CC(Cl)=C1Cl RZTAMFZIAATZDJ-UHFFFAOYSA-N 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 6
- 244000089409 Erythrina poeppigiana Species 0.000 description 2
- 235000009776 Rathbunia alamosensis Nutrition 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及互联网领域,尤指一种缓存和服务内容的方法、装置和系统。The invention relates to the field of the Internet, in particular to a method, device and system for caching and serving content.
背景技术Background technique
随着互联网的快速发展,各种互联网应用不断涌现,对宽带资源消耗越来越大,传统的网络内容的获取方式为客户端—服务器端模型,用户的所有访问请求都是发送到服务器去处理,造成了网络拥塞和服务器超载,导致用户的访问时延较大。With the rapid development of the Internet, various Internet applications continue to emerge, which consume more and more broadband resources. The traditional method of obtaining network content is the client-server model, and all user access requests are sent to the server for processing. , resulting in network congestion and server overload, resulting in a large user access delay.
为了提升用户的体验度,缓存系统越来越受运营商欢迎。图1为用户获取网络内容的示意图。如图1所示,用户通过接入网络和路由器向服务器发送访问请求以获取网络内容,缓存系统部署在现有的互联网协议(IP,InternetProtocol)承载网络中,存储互联网中的热点内容或特定内容,通过引导用户的访问请求转发到缓存系统中,由缓存系统为用户提供所需的互联网数据,避免直接从互联网源站的服务器上下载数据,从而有效规避网络链路的拥塞问题,降低用户访问互联网内容的时延,提升用户的数据业务体验度,同时也可以降低因网间流量所产生的结算费用。In order to improve user experience, caching systems are becoming more and more popular with operators. FIG. 1 is a schematic diagram of a user acquiring network content. As shown in Figure 1, users send access requests to servers through access networks and routers to obtain network content, and the cache system is deployed in the existing Internet Protocol (IP, Internet Protocol) bearer network to store hot or specific content on the Internet , by guiding the user's access request to be forwarded to the cache system, the cache system provides the user with the required Internet data, avoiding downloading data directly from the server of the Internet source site, thereby effectively avoiding the congestion problem of the network link and reducing user access The delay of Internet content improves the user's data service experience, and can also reduce the settlement fee generated by the traffic between the Internet.
缓存系统支持对Web(万维网)浏览、文件下载、视频播放等基于超文本传输协议(HTTP,Hypertext Transfer Protocol)的互联网业务进行加速,缓存系统对于本地存储的文件格式、音视频及文件编码方式均没有特定要求,各类互联网音频、视频、图像、文本等文件均可通过缓存系统实现缓存和加速服务。The cache system supports the acceleration of Internet services based on Hypertext Transfer Protocol (HTTP, Hypertext Transfer Protocol) such as Web (World Wide Web) browsing, file download, and video playback. There are no specific requirements, and all kinds of Internet audio, video, image, text and other files can be cached and accelerated through the cache system.
缓存系统支持移动蜂窝网(例如2G、3G或长期演进(LTE,Long TermEvolution))、无线局域网(WLAN,Wireless Local Area Networks)、固定宽带等不同的网络接入方式,并能够同时为个人电脑(PC,PersonalComputer)、移动终端等不同形态的终端提供服务。The caching system supports different network access methods such as mobile cellular networks (such as 2G, 3G or Long Term Evolution (LTE, Long Term Evolution)), wireless local area networks (WLAN, Wireless Local Area Networks), fixed broadband, etc. PC, PersonalComputer), mobile terminals and other different forms of terminals to provide services.
现有的缓存和服务内容的方法大致包括:Existing methods for caching and serving content roughly include:
请求路由(RR,Request Routing)装置劫持用户设备的访问请求;其中,访问请求包括统一资源定位器(URL,Uniform Resource Locator);RR装置向内容负载均衡装置转发访问请求,内容负载均衡装置采用哈希算法计算访问请求中的URL的哈希值,将访问请求转发给计算得到的哈希值对应的缓存设备;缓存设备采用消息摘要算法第五版(MD5,Message Digest Algorithm 5)计算URL对应的路径,并从服务器上下载URL对应的内容,将下载的内容保存到计算得到的路径下,并将下载的内容发送给用户设备。The request routing (RR, Request Routing) device hijacks the access request of the user equipment; wherein, the access request includes a Uniform Resource Locator (URL, Uniform Resource Locator); the RR device forwards the access request to the content load balancing device, and the content load balancing device uses a hash The Greek algorithm calculates the hash value of the URL in the access request, and forwards the access request to the cache device corresponding to the calculated hash value; the cache device uses the fifth version of the message digest algorithm (MD5, Message Digest Algorithm 5) to calculate the URL corresponding to the URL path, and download the content corresponding to the URL from the server, save the downloaded content to the calculated path, and send the downloaded content to the user device.
现有的缓存内容的方法中,将URL作为内容的唯一标识来缓存内容,由于同一内容的URL会因某些参数的不同而出现差异,因此,会多次在缓存系统中保存同一内容,浪费了存储空间,且由于需要多次从服务器上下载内容而降低了带宽的使用率。例如,http://222.132.5.19/edge.v.iask.com/138364612.hlv?KID=sina,viask&Expires=14 35766400&ssig=sjhlPQskgr&sid=138364612_1435653150890_1751_68896&ws hc_tag=1&wsts_tag=55925414&wsid_tag=d233c309&wsiphost=ipdbm和http://218.58.222.57/edge.v.iask.com/138364612.hlv?KID=sina,viask&Expires=1 435766400&ssig=sjhlPQskgr&sid=138364612_1435653263781_643_35962&ws hc_tag=1&wsts_tag=55925485&wsid_tag=d233c309&wsiphost=ipdbm;其中,222.132.5.19和218.58.222.57为客户端的IP地址,edge.v.iask.com为访问的网站名称,138364612.hlv为访问的内容名称,?后面的为URL的参数,这两个URL表示的是同一内容,而URL却因为参数的不同而不同,从而会导致该内容保存两次,浪费了存储空间,且降低了带宽的速率。In the existing method of caching content, the URL is used as the unique identifier of the content to cache the content. Since the URL of the same content will be different due to the difference of some parameters, the same content will be saved in the cache system many times, which is a waste of time. Storage space is saved, and bandwidth usage is reduced due to the need to download content from the server multiple times. For example, http://222.132.5.19/edge.v.iask.com/138364612.hlv? KID=sina,viask&Expires=14 35766400&ssig=sjhlPQskgr&sid=138364612_1435653150890_1751_68896&ws hc_tag=1&wsts_tag=55925414&wsid_tag=d233c309&wsiphost=ipdbm和 http://218.58.222.57/edge.v.iask.com/138364612.hlv? KID=sina,viask&Expires=1 435766400&ssig=sjhlPQskgr&sid=138364612_1435653263781_643_35962&ws hc_tag=1&wsts_tag=55925485&wsid_tag=d233c309&wsiphost=ipdbm ;其中,222.132.5.19和218.58.222.57为客户端的IP地址,edge.v.iask.com为访问的网站名称, 138364612.hlv is the name of the accessed content, ? The latter is the parameters of the URL. These two URLs represent the same content, but the URLs are different due to different parameters, which will cause the content to be saved twice, wasting storage space and reducing the bandwidth rate.
发明内容Contents of the invention
为了解决上述问题,本发明提出了一种缓存和服务内容的方法、装置和系统,能够提高存储空间的利用率,且提高带宽的使用率。In order to solve the above problems, the present invention proposes a method, device and system for caching and serving content, which can improve the utilization rate of storage space and increase the utilization rate of bandwidth.
为了达到上述目的,本发明提出了一种缓存和服务内容的方法,包括:In order to achieve the above purpose, the present invention proposes a method for caching and serving content, including:
请求路由RR装置劫持用户设备的访问请求;requesting a routing RR device to hijack the access request of the user equipment;
RR装置获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;The RR device acquires the identifier corresponding to the URL of the resource locator in the access request, and the obtained identifier cannot be found in the pre-saved identifiers, and sends a pre-cache message to the content load balancing device;
内容负载均衡装置获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备;The content load balancing device obtains the identifier corresponding to the URL in the pre-cached message, and sends the pre-cached message to the cache device corresponding to the obtained identifier;
缓存设备获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息;The caching device obtains the identifier corresponding to the URL in the pre-cached message, calculates the path corresponding to the identifier, caches the content corresponding to the URL downloaded from the server to the calculated path, and sends a cache success message to the RR device;
RR装置保存获得的标识。The RR device saves the obtained identity.
优选地,该方法之前还包括:Preferably, the method also includes:
所述RR装置判断出所述URL对应的内容被访问的次数大于或等于第一预设阈值。The RR device determines that the number of times the content corresponding to the URL is accessed is greater than or equal to a first preset threshold.
优选地,所述RR装置获取访问请求中的URL对应的标识包括:Preferably, the RR device obtaining the identifier corresponding to the URL in the access request includes:
所述RR装置在预先设置的正则表达式和标识之间的对应关系中,查找与所述访问请求中的URL相匹配的正则表达式对应的标识。The RR device searches for the identifier corresponding to the regular expression matching the URL in the access request in the preset correspondence between the regular expression and the identifier.
优选地,所述内容负载均衡装置获取预缓存消息中的URL对应的标识包括:Preferably, the content load balancing device obtaining the identifier corresponding to the URL in the pre-cache message includes:
所述内容负载均衡装置在预先设置的正则表达式和标识之间的对应关系中,查找与所述预缓存消息中的URL相匹配的正则表达式对应的标识。The content load balancing device searches for the identifier corresponding to the regular expression matching the URL in the pre-cached message in the preset correspondence between regular expressions and identifiers.
优选地,所述缓存设备获取预缓存消息中的URL对应的标识包括:Preferably, the cache device obtaining the identifier corresponding to the URL in the pre-cache message includes:
所述缓存设备在预先设置的正则表达式和标识之间的对应关系中,查找与所述预缓存消息中的URL相匹配的正则表达式对应的标识。The caching device searches for the identifier corresponding to the regular expression matching the URL in the pre-cached message in the preset correspondence between the regular expression and the identifier.
优选地,当所述缓存设备判断出缓存的内容超过有效期;或者,判断出缓存的总大小或缓存的个数大于或等于第二预设阈值时,该方法还包括:Preferably, when the caching device judges that the cached content exceeds the validity period; or, when judging that the total size of the cache or the number of caches is greater than or equal to a second preset threshold, the method further includes:
所述缓存设备删除超过有效期的缓存的内容,或删除被访问次数最小的缓存的内容。The caching device deletes the cached content that has expired, or deletes the cached content that has been accessed the least number of times.
优选地,当RR装置在预先保存的标识中查找到获得的标识时,该方法还包括:Preferably, when the RR device finds the obtained identifier in the pre-saved identifiers, the method further includes:
所述RR装置向用户设备发送表示重定向的标识;The RR apparatus sends an identifier indicating redirection to the user equipment;
所述内容负载均衡装置接收到来自所述用户设备的访问请求,获取所述访问请求中的URL对应的标识,向所述用户设备发送表示重定向的标识;The content load balancing device receives an access request from the user equipment, acquires an identifier corresponding to the URL in the access request, and sends an identifier indicating redirection to the user equipment;
获得的标识对应的缓存设备接收到来自所述用户设备的访问请求,获取所述访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。The cache device corresponding to the obtained identifier receives the access request from the user equipment, obtains the identifier corresponding to the URL in the access request, calculates a path corresponding to the identifier, and sends the content in the path to the user equipment.
本发明还提出了一种请求路由RR装置,至少包括:The present invention also proposes a request routing RR device, which at least includes:
劫持模块,用于劫持用户设备的访问请求;A hijacking module, used to hijack the access request of the user equipment;
第一发送模块,用于获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;The first sending module is used to obtain the identifier corresponding to the URL of the resource locator in the access request, and the obtained identifier cannot be found in the pre-saved identifiers, and sends a pre-cache message to the content load balancing device;
第一接收模块,用于接收到来自访问请求中的URL对应的标识对应的缓存设备的缓存成功的消息,保存获得的标识。The first receiving module is configured to receive a cache success message from the cache device corresponding to the identifier corresponding to the URL in the access request, and store the obtained identifier.
优选地,所述劫持模块具体用于:Preferably, the hijacking module is specifically used for:
判断出所述URL对应的内容被访问的次数大于或等于第一预设阈值,劫持用户设备的访问请求。It is determined that the number of times the content corresponding to the URL is accessed is greater than or equal to the first preset threshold, and the access request of the user equipment is hijacked.
优选地,所述第一发送模块具体用于:Preferably, the first sending module is specifically used for:
在预先设置的正则表达式和标识之间的对应关系中,查找与所述访问请求中的URL相匹配的正则表达式对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息。In the preset correspondence between the regular expression and the identifier, search for the identifier corresponding to the regular expression that matches the URL in the access request, if the obtained identifier cannot be found in the pre-saved identifiers, and submit to the content The load balancing device sends the pre-cached message.
优选地,所述第一发送模块还用于:Preferably, the first sending module is also used for:
在预先保存的标识中查找到获得的标识,向用户设备发送表示重定向的标识。The obtained identifier is found in the pre-stored identifiers, and the redirected identifier is sent to the user equipment.
本发明还提出了一种内容负载均衡装置,至少包括:The present invention also proposes a content load balancing device, which at least includes:
第二接收模块,用于接收到来自请求路由RR装置的预缓存消息;The second receiving module is configured to receive the pre-cached message from the request routing RR device;
第二发送模块,用于获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。The second sending module is configured to obtain the identifier corresponding to the URL in the pre-cached message, and send the pre-cached message to the cache device corresponding to the obtained identifier.
优选地,所述第二发送模块具体用于:Preferably, the second sending module is specifically used for:
在预先设置的正则表达式和标识之间的对应关系中,查找与所述预缓存消息中的URL相匹配的正则表达式对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。In the preset correspondence between the regular expression and the identifier, search for the identifier corresponding to the regular expression matching the URL in the pre-cached message, and send the pre-cached message to the cache device corresponding to the obtained identifier.
优选地,所述第二接收模块还用于:Preferably, the second receiving module is also used for:
接收到来自用户设备的访问请求;Receive an access request from a user device;
所述第二发送模块还用于:The second sending module is also used for:
获取所述访问请求中的URL对应的标识,向所述用户设备发送表示重定向的标识。Acquiring an identifier corresponding to the URL in the access request, and sending an identifier indicating redirection to the user equipment.
本发明还提出了一种缓存设备,至少包括:The present invention also proposes a cache device, including at least:
第三接收模块,用于接收到来自内容负载均衡装置的预缓存消息;A third receiving module, configured to receive the pre-cached message from the content load balancing device;
第三发送模块,用于获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。The third sending module is used to obtain the identifier corresponding to the URL in the pre-cached message, calculate the path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a cache success message to the RR device .
优选地,所述第三发送模块具体用于:Preferably, the third sending module is specifically used for:
在预先设置的正则表达式和标识之间的对应关系中,查找与所述预缓存消息中的URL相匹配的正则表达式对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。In the correspondence between the preset regular expression and the identifier, search for the identifier corresponding to the regular expression matching the URL in the pre-cache message, calculate the path corresponding to the identifier, and correspond to the URL downloaded from the server The contents of the cache are cached on the calculated path, and a cache success message is sent to the RR device.
优选地,还包括:Preferably, it also includes:
删除模块,用于判断出缓存的内容超过有效期;或者,判断出缓存的总大小或缓存的个数大于或等于第二预设阈值,删除超过有效期的缓存的内容,或删除被访问次数最小的缓存的内容。The deletion module is used to determine that the cached content has exceeded the validity period; or, if it is determined that the total size of the cache or the number of caches is greater than or equal to the second preset threshold, delete the cached content that exceeds the validity period, or delete the minimum number of accesses cached content.
优选地,所述第三接收模块还用于:Preferably, the third receiving module is also used for:
接收到来自用户设备的访问请求;Receive an access request from a user device;
所述第三发送模块还用于:The third sending module is also used for:
获取所述访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。Obtain the identifier corresponding to the URL in the access request, calculate the path corresponding to the identifier, and send the content in the path to the user equipment.
本发明还提出了一种缓存和服务内容的系统,至少包括:The present invention also proposes a system for caching and serving content, which at least includes:
请求路由RR装置,用于劫持用户设备的访问请求;获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;接收到来自缓存设备的缓存成功的消息,保存获得的标识;The request routing RR device is used to hijack the access request of the user equipment; obtain the identifier corresponding to the resource locator URL in the access request, find the obtained identifier in the pre-saved identifier, and send a pre-cache message to the content load balancing device; Receive the cache success message from the cache device, and save the obtained identifier;
内容负载均衡装置,用于获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备;A content load balancing device, configured to obtain an identifier corresponding to the URL in the pre-cached message, and send the pre-cached message to the cache device corresponding to the obtained identifier;
缓存设备,用于获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。The caching device is configured to obtain the identifier corresponding to the URL in the pre-cached message, calculate the path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a cache success message to the RR device.
优选地,所述RR装置还用于:Preferably, the RR device is also used for:
在预先保存的标识中查找到获得的标识,向用户设备发送表示重定向的标识;Find the obtained identifier in the pre-saved identifiers, and send the redirection identifier to the user equipment;
所述内容负载均衡装置还用于:The content load balancing device is also used for:
接收到来自所述用户设备的访问请求,获取所述访问请求中的URL对应的标识,向所述用户设备发送表示重定向的标识;receiving an access request from the user equipment, acquiring an identifier corresponding to the URL in the access request, and sending an identifier indicating redirection to the user equipment;
所述缓存设备还用于:The cache device is also used to:
接收到来自所述用户设备的访问请求,获取所述访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。Receive the access request from the user equipment, acquire the identifier corresponding to the URL in the access request, calculate the path corresponding to the identifier, and send the content in the path to the user equipment.
与现有技术相比,本发明的技术方案包括:请求路由RR装置劫持用户设备的访问请求;RR装置获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;内容负载均衡装置获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备;缓存设备获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息;RR装置保存获得的标识。通过本发明的方案,将URL对应的标识作为内容的唯一标识,使得不同URL对应的相同的内容只需缓存一次,从而提高了存储空间的利用率,提高了带宽的使用率。Compared with the prior art, the technical solution of the present invention includes: the request routing RR device hijacks the access request of the user equipment; the RR device acquires the identifier corresponding to the URL of the resource locator in the access request, and the obtained identifier cannot be found in the pre-saved identifier. ID, send a pre-cache message to the content load balancing device; the content load balancing device obtains the ID corresponding to the URL in the pre-cache message, and sends the pre-cache message to the cache device corresponding to the obtained ID; the cache device obtains the URL in the pre-cache message The identifier corresponding to the URL calculates the path corresponding to the identifier, caches the content corresponding to the URL downloaded from the server to the calculated path, and sends a cache success message to the RR device; the RR device saves the obtained identifier. Through the solution of the present invention, the identification corresponding to the URL is used as the unique identification of the content, so that the same content corresponding to different URLs only needs to be cached once, thereby improving the utilization rate of storage space and the utilization rate of bandwidth.
附图说明Description of drawings
下面对本发明实施例中的附图进行说明,实施例中的附图是用于对本发明的进一步理解,与说明书一起用于解释本发明,并不构成对本发明保护范围的限制。The accompanying drawings in the embodiments of the present invention are described below. The accompanying drawings in the embodiments are used for further understanding of the present invention and are used together with the description to explain the present invention, and do not constitute a limitation to the protection scope of the present invention.
图1为现有用户获取网络内容的示意图;FIG. 1 is a schematic diagram of an existing user acquiring network content;
图2为本发明缓存和服务内容的方法的流程图;FIG. 2 is a flow chart of the method for caching and serving content in the present invention;
图3为本发明RR装置的结构组成示意图;3 is a schematic diagram of the structural composition of the RR device of the present invention;
图4为本发明内容负载均衡装置的结构组成示意图;4 is a schematic diagram of the structural composition of the content load balancing device of the present invention;
图5为本发明缓存设备的结构组成示意图;FIG. 5 is a schematic diagram of the structural composition of the cache device of the present invention;
图6为本发明缓存和服务内容的系统的结构组成示意图。FIG. 6 is a schematic diagram of the structural composition of the system for caching and serving content according to the present invention.
具体实施方式detailed description
为了便于本领域技术人员的理解,下面结合附图对本发明作进一步的描述,并不能用来限制本发明的保护范围。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的各种方式可以相互组合。In order to facilitate the understanding of those skilled in the art, the present invention will be further described below in conjunction with the accompanying drawings, which cannot be used to limit the protection scope of the present invention. It should be noted that, in the case of no conflict, the embodiments in the present application and various manners in the embodiments can be combined with each other.
参见图2,本发明提出了一种缓存内容的方法,包括:Referring to Fig. 2, the present invention proposes a method for caching content, including:
步骤200、RR装置劫持用户设备的访问请求。Step 200, the RR device hijacks the access request of the user equipment.
本步骤中,访问请求中包括URL。In this step, the URL is included in the access request.
本步骤中,RR装置劫持用户设备的访问请求是指用户设备的访问请求不再被发送到服务器,而被发送到内容负载均衡装置。In this step, the hijacking of the access request of the user equipment by the RR device means that the access request of the user equipment is no longer sent to the server, but is sent to the content load balancing device.
本步骤中,RR装置如何劫持用户设备的访问请求属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。In this step, how the RR device hijacks the access request of the user equipment belongs to the well-known technology of those skilled in the art, and is not used to limit the protection scope of the present invention, and will not be repeated here.
步骤201、RR装置获取访问请求中的URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息。In step 201, the RR device obtains the identifier corresponding to the URL in the access request, and sends a pre-cache message to the content load balancing device if the obtained identifier cannot be found in the pre-stored identifiers.
本步骤中,RR装置还向服务器转发来自用户设备的访问请求,由服务器为用户设备提供服务。In this step, the RR device also forwards the access request from the user equipment to the server, and the server provides services for the user equipment.
本步骤中,RR装置获取访问请求中的URL对应的标识包括:In this step, the identifier corresponding to the URL in the access request acquired by the RR device includes:
RR装置在预先设置的正则表达式和标识之间的对应关系中,查找与访问请求中的URL相匹配的正则表达式对应的标识。The RR device searches for the identifier corresponding to the regular expression matching the URL in the access request in the preset correspondence between regular expressions and identifiers.
其中,RR装置如何判断访问请求中的URL是否与对应关系中的正则表达式相匹配属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。本发明强调的是将与URL相匹配的正则表达式对应的标识作为URL对应的内容的唯一标识,使得不同URL对应的相同的内容只需缓存一次,从而提高了存储空间的利用率,提高了带宽的使用率。Wherein, how the RR device judges whether the URL in the access request matches the regular expression in the corresponding relationship belongs to the well-known technology of those skilled in the art, and is not used to limit the scope of protection of the present invention, and will not be repeated here. The present invention emphasizes that the identification corresponding to the regular expression matching the URL is used as the unique identification of the content corresponding to the URL, so that the same content corresponding to different URLs only needs to be cached once, thereby improving the utilization rate of storage space and improving the storage capacity. Bandwidth usage.
例如,当URL为http://222.73.61.214/youku/6573718061135810187D003A7D/0300080500545A2 5632B57092B13A2E773DF5A-0614-5810-DC51-EB36488C7C74.mp4?nk=671 47729540_23587507484&ns=6490028_2707360&special=true,正则表达式为http://%d+%.%d+%.%d+%.%d+/youku/%x+/(%x+-%x+-%x+-%x+-%x+%.%w+ )%?nk=%d+_%d+&ns=(%d+_%d+)&.+时,URL和正则表达式之间是相匹配的。For example, when the URL is http://222.73.61.214/youku/6573718061135810187D003A7D/0300080500545A25632B57092B13A2E773DF5A-0614-5810-DC51-EB36488C7C74.mp4 ? nk=671 47729540_23587507484&ns=6490028_2707360&special=true , the regular expression is http://%d+%.%d+%.%d+%.%d+/youku/%x+/(%x+-%x+-%x+-%x+- %x+%.%w+ )%? When nk=%d+_%d+&ns=(%d+_%d+)& .+, the URL matches the regular expression.
其中,%d表示数字,%.表示任意字符,%x表示十六进制数,%w表示字母或数字,+表示多个,&ns为URL的参数。Among them, %d represents a number, %. represents any character, %x represents a hexadecimal number, %w represents a letter or a number, + represents multiple, &ns is a URL parameter.
其中,正则表达式可以通过查看各内容的URL总结得出。Wherein, the regular expression can be summarized by checking the URL of each content.
其中,正则表达式和标识之间一一对应,上述正则表达式对应的标识为http://www.youku.com/%1/%2,%1,%2表示正则表达式中的括号部分。Among them, there is a one-to-one correspondence between the regular expression and the logo. The logo corresponding to the above regular expression is http://www.youku.com/%1/%2 , %1, %2 represent the brackets in the regular expression .
那么上述URL对应的标识为http://www.youku.com/0300080500545A25632B57092B13A2E773DF5A-0614- 5810-DC51-EB36488C7C74.mp4/6490028_2707360。Then the identifier corresponding to the above URL is http://www.youku.com/0300080500545A25632B57092B13A2E773DF5A-0614-5810-DC51-EB36488C7C74.mp4/6490028_2707360 .
本步骤中,当RR装置在预先保存的标识中查找到获得的标识时,RR装置向用户设备发送表示重定向的标识;内容负载均衡装置接收到来自用户设备的访问请求,获取访问请求中的URL对应的标识,向用户设备发送表示重定向的标识;获得的标识对应的缓存设备接收到来自用户设备的访问请求,获取访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。In this step, when the RR device finds the obtained identifier in the pre-saved identifiers, the RR device sends the redirected identifier to the user equipment; the content load balancing device receives the access request from the user equipment, and obtains the The identifier corresponding to the URL sends an identifier indicating redirection to the user equipment; the cache device corresponding to the obtained identifier receives the access request from the user equipment, obtains the identifier corresponding to the URL in the access request, calculates the path corresponding to the identifier, and converts the path content is sent to the user device.
其中,RR装置还向用户设备发送内容负载均衡装置的地址,用户设备根据内容负载均衡装置的地址向内容负载均衡装置发送访问请求。Wherein, the RR device also sends the address of the content load balancing device to the user equipment, and the user equipment sends an access request to the content load balancing device according to the address of the content load balancing device.
其中,内容负载均衡装置还向用户设备发送获得的标识对应的缓存设备的地址,用户设备根据获得的标识对应的缓存设备的地址向获得的标识对应的缓存设备发送访问请求。Wherein, the content load balancing apparatus further sends the obtained address of the cache device corresponding to the identifier to the user equipment, and the user equipment sends an access request to the obtained cache device corresponding to the obtained identifier according to the obtained address of the cache device corresponding to the identifier.
其中,获得的标识对应的缓存设备是指获得的标识对应的哈希值对应的缓存设备。Wherein, the cache device corresponding to the obtained identifier refers to the cache device corresponding to the hash value corresponding to the obtained identifier.
其中,获得的标识对应的缓存设备可以采用MD5计算标识对应的路径,具体实现属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。本发明强调的是将标识作为内容的唯一标识来缓存内容,从而提高了存储空间的利用率,提高了带宽的速率。Wherein, the cache device corresponding to the obtained identifier can use MD5 to calculate the path corresponding to the identifier, and the specific implementation belongs to the known technology of those skilled in the art, and is not intended to limit the scope of protection of the present invention, and will not be repeated here. The invention emphasizes that the identifier is used as the unique identifier of the content to cache the content, thereby improving the utilization rate of the storage space and increasing the rate of the bandwidth.
本步骤中,预缓存消息包括URL,还可以包括RR装置的地址。In this step, the pre-caching message includes the URL, and may also include the address of the RR device.
步骤202、内容负载均衡装置获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。In step 202, the content load balancing device obtains the identifier corresponding to the URL in the pre-caching message, and sends the pre-caching message to the cache device corresponding to the obtained identifier.
本步骤中,内容负载均衡装置获取预缓存消息中的URL对应的标识包括:In this step, the identification corresponding to the URL in the pre-cache message acquired by the content load balancing device includes:
内容负载均衡装置在预先设置的正则表达式和标识之间的对应关系中,查找与预缓存消息中的URL相匹配的正则表达式对应的标识。The content load balancing device searches for the identifier corresponding to the regular expression matching the URL in the pre-cached message in the preset correspondence between the regular expression and the identifier.
其中,内容负载均衡装置如何判断预缓存消息中的URL是否与对应关系中的正则表达式相匹配属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。本发明强调的是将与URL相匹配的正则表达式对应的标识作为URL对应的内容的唯一标识,使得不同URL对应的相同的内容只需缓存一次,从而提高了存储空间的利用率,提高了带宽的使用率。Wherein, how the content load balancing device judges whether the URL in the pre-cached message matches the regular expression in the corresponding relationship belongs to the well-known technology of those skilled in the art, and is not used to limit the scope of protection of the present invention, and will not be repeated here. The present invention emphasizes that the identification corresponding to the regular expression matched with the URL is used as the unique identification of the content corresponding to the URL, so that the same content corresponding to different URLs only needs to be cached once, thereby improving the utilization rate of storage space and improving the storage capacity. Bandwidth usage.
本步骤中,将预缓存消息发送给获得的标识对应的缓存设备包括:In this step, sending the pre-cached message to the cache device corresponding to the obtained identifier includes:
采用哈希算法计算获得的标识对应的哈希值,将预缓存消息发送给计算得到的哈希值对应的缓存设备。The hash value corresponding to the identifier obtained by calculating the hash algorithm is used, and the pre-cached message is sent to the cache device corresponding to the calculated hash value.
步骤203、缓存设备获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。Step 203: The caching device acquires the identifier corresponding to the URL in the pre-cached message, calculates the path corresponding to the identifier, caches the content corresponding to the URL downloaded from the server to the calculated path, and sends a cache success message to the RR device.
本步骤中,缓存设备获取预缓存消息中的URL对应的标识包括:In this step, the identifier corresponding to the URL in the pre-cached message acquired by the cache device includes:
缓存设备在预先设置的正则表达式和标识之间的对应关系中,查找与预缓存消息中的URL相匹配的正则表达式对应的标识。The cache device searches for the identifier corresponding to the regular expression matching the URL in the pre-cached message in the preset correspondence between the regular expression and the identifier.
其中,缓存设备如何判断预缓存消息中的URL是否与对应关系中的正则表达式相匹配属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。本发明强调的是将与URL相匹配的正则表达式对应的标识作为URL对应的内容的唯一标识,使得不同URL对应的相同的内容只需缓存一次,从而提高了存储空间的利用率,提高了带宽的使用率。Wherein, how the cache device judges whether the URL in the pre-cached message matches the regular expression in the corresponding relationship belongs to the well-known technology of those skilled in the art, and is not used to limit the scope of protection of the present invention, and will not be repeated here. The present invention emphasizes that the identification corresponding to the regular expression matched with the URL is used as the unique identification of the content corresponding to the URL, so that the same content corresponding to different URLs only needs to be cached once, thereby improving the utilization rate of storage space and improving the storage capacity. Bandwidth usage.
本步骤中,可以采用MD5计算标识对应的路径,具体实现属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。In this step, MD5 can be used to calculate and identify the corresponding path, and the specific implementation belongs to the known technology of those skilled in the art, and is not used to limit the protection scope of the present invention, and will not be repeated here.
本步骤中,具体如何从服务器上下载URL对应的内容属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。In this step, how to download the content corresponding to the URL from the server belongs to the well-known technology of those skilled in the art, and is not used to limit the protection scope of the present invention, and will not be repeated here.
本步骤中,缓存设备根据预缓存消息中的RR装置的地址向RR装置发送缓存成功的消息。In this step, the caching device sends a cache success message to the RR device according to the address of the RR device in the pre-caching message.
步骤204、RR装置保存获得的标识。Step 204, the RR device saves the obtained identifier.
进一步地,该方法之前还包括:Further, the method also includes:
RR装置判断出URL对应的内容被访问的次数大于或等于第一预设阈值。The RR device determines that the number of times the content corresponding to the URL is accessed is greater than or equal to a first preset threshold.
具体地,RR装置获取用户设备发送的访问请求,获取访问请求中的URL对应的标识,判断出获得的标识被访问的次数大于或等于第一预设阈值。Specifically, the RR device obtains the access request sent by the user equipment, obtains the identifier corresponding to the URL in the access request, and determines that the number of times the obtained identifier is accessed is greater than or equal to the first preset threshold.
其中,当RR装置判断出URL对应的内容被访问的次数小于第一预设阈值时,所述RR装置将访问请求发送给服务器。Wherein, when the RR device determines that the number of times the content corresponding to the URL is accessed is less than a first preset threshold, the RR device sends the access request to the server.
也就是说,用户设备每次发送的访问请求都会被RR装置获取到,只是在访问请求中的URL对应的内容被访问的次数大于或等于第一预设阈值时,访问请求才被RR装置劫持,由本发明的系统为用户设备服务;在访问请求中的URL对应的内容被访问的次数小于第一预设阈值时,RR装置将访问请求发送给服务器,由服务器为用户设备服务。That is to say, each access request sent by the user equipment will be obtained by the RR device, and the access request will be hijacked by the RR device only when the number of times the content corresponding to the URL in the access request is accessed is greater than or equal to the first preset threshold , the system of the present invention serves the user equipment; when the number of visits to the content corresponding to the URL in the access request is less than the first preset threshold, the RR device sends the access request to the server, and the server serves the user equipment.
进一步地,当缓存设备判断出缓存的内容超过有效期;或者,判断出缓存的总大小或缓存的个数大于或等于第二预设阈值时,缓存设备删除超过有效期的缓存的内容,或删除被访问次数最小的缓存的内容。Further, when the cache device determines that the cached content exceeds the validity period; or, when it determines that the total size of the cache or the number of caches is greater than or equal to the second preset threshold, the cache device deletes the cached content that exceeds the validity period, or deletes the cached content The least accessed cached content.
参见图3,本发明还提出了一种请求路由RR装置,至少包括:Referring to Fig. 3, the present invention also proposes a request routing RR device, at least including:
劫持模块,用于劫持用户设备的访问请求;A hijacking module, used to hijack the access request of the user equipment;
第一发送模块,用于获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;The first sending module is used to obtain the identifier corresponding to the URL of the resource locator in the access request, and the obtained identifier cannot be found in the pre-saved identifiers, and sends a pre-cache message to the content load balancing device;
第一接收模块,用于接收到来自访问请求中的URL对应的标识对应的缓存设备的缓存成功的消息,保存获得的标识。The first receiving module is configured to receive a cache success message from the cache device corresponding to the identifier corresponding to the URL in the access request, and store the obtained identifier.
本发明的RR装置中,劫持模块具体用于:In the RR device of the present invention, the hijacking module is specifically used for:
判断出URL对应的内容被访问的次数大于或等于第一预设阈值,劫持用户设备的访问请求。It is determined that the number of times the content corresponding to the URL is accessed is greater than or equal to the first preset threshold, and the access request of the user equipment is hijacked.
本发明的RR装置中,第一发送模块具体用于:In the RR device of the present invention, the first sending module is specifically used for:
在预先设置的正则表达式和标识之间的对应关系中,查找与访问请求中的URL相匹配的正则表达式对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息。In the preset correspondence between the regular expression and the logo, search for the logo corresponding to the regular expression that matches the URL in the access request, if the obtained logo cannot be found in the pre-saved logo, load balancing to the content The device sends a pre-cached message.
本发明的RR装置中,第一发送模块还用于:In the RR device of the present invention, the first sending module is also used for:
判断出缓存的内容超过有效期,或判断出缓存的内容被访问的次数小于或等于预设次数,向内容负载均衡装置发送表示删除缓存的内容的消息。If it is determined that the cached content has expired, or it is determined that the number of times the cached content has been accessed is less than or equal to a preset number of times, a message indicating deletion of the cached content is sent to the content load balancing device.
本发明的RR装置中,第一发送模块还用于:In the RR device of the present invention, the first sending module is also used for:
在预先保存的标识中查找到获得的标识,向用户设备发送表示重定向的标识。The obtained identifier is found in the pre-stored identifiers, and the redirected identifier is sent to the user equipment.
参见图4,本发明还提出了一种内容负载均衡装置,至少包括:Referring to Fig. 4, the present invention also proposes a content load balancing device, comprising at least:
第二接收模块,用于接收到来自请求路由RR装置的预缓存消息;The second receiving module is configured to receive the pre-cached message from the request routing RR device;
第二发送模块,用于获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。The second sending module is configured to obtain the identifier corresponding to the URL in the pre-cached message, and send the pre-cached message to the cache device corresponding to the obtained identifier.
本发明的内容负载均衡装置中,第二发送模块具体用于:In the content load balancing device of the present invention, the second sending module is specifically used for:
在预先设置的正则表达式和标识之间的对应关系中,查找与预缓存消息中的URL相匹配的正则表达式对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。In the preset correspondence between the regular expression and the identifier, search for the identifier corresponding to the regular expression matching the URL in the pre-cached message, and send the pre-cached message to the cache device corresponding to the obtained identifier.
本发明的内容负载均衡装置中,第二接收模块还用于:In the content load balancing device of the present invention, the second receiving module is also used for:
接收到来自RR装置的表示删除缓存的内容的消息;receiving a message from the RR device indicating to delete the cached content;
第二发送模块还用于:The second sending module is also used for:
获取表示删除缓存的内容的消息中的URL对应的标识,将表示删除缓存的内容的消息发送给获得的标识对应的缓存设备。The identifier corresponding to the URL in the message indicating to delete the cached content is obtained, and the message indicating to delete the cached content is sent to the cache device corresponding to the obtained identifier.
本发明的内容负载均衡装置中,第二接收模块还用于:In the content load balancing device of the present invention, the second receiving module is also used for:
接收到来自用户设备的访问请求;Receive an access request from a user device;
第二发送模块还用于:The second sending module is also used for:
获取访问请求中的URL对应的标识,向用户设备发送表示重定向的标识。Obtain the identifier corresponding to the URL in the access request, and send the redirection identifier to the user equipment.
参见图5,本发明还提出了一种缓存设备,至少包括:Referring to FIG. 5, the present invention also proposes a cache device, including at least:
第三接收模块,用于接收到来自内容负载均衡装置的预缓存消息;A third receiving module, configured to receive the pre-cached message from the content load balancing device;
第三发送模块,用于获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。The third sending module is used to obtain the identifier corresponding to the URL in the pre-cached message, calculate the path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a cache success message to the RR device .
本发明的缓存设备中,第三发送模块具体用于:In the cache device of the present invention, the third sending module is specifically used for:
在预先设置的正则表达式和标识之间的对应关系中,查找与预缓存消息中的URL相匹配的正则表达式对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。In the preset correspondence between the regular expression and the identifier, find the identifier corresponding to the regular expression that matches the URL in the pre-cache message, calculate the path corresponding to the identifier, and download the content corresponding to the URL from the server Buffer to the calculated path, and send a message of successful buffering to the RR device.
本发明的缓存设备中,还包括:In the cache device of the present invention, it also includes:
删除模块,用于判断出缓存的内容超过有效期;或者,判断出缓存的总大小或缓存的个数大于或等于第二预设阈值,删除超过有效期的缓存的内容,或删除被访问次数最小的缓存的内容。The deletion module is used to determine that the cached content has exceeded the validity period; or, if it is determined that the total size of the cache or the number of caches is greater than or equal to the second preset threshold, delete the cached content that exceeds the validity period, or delete the minimum number of accesses cached content.
本发明的缓存设备中,第三接收模块还用于:In the cache device of the present invention, the third receiving module is also used for:
接收到来自用户设备的访问请求;Receive an access request from a user device;
第三发送模块还用于:The third sending module is also used for:
获取访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。Obtain the identifier corresponding to the URL in the access request, calculate the path corresponding to the identifier, and send the content in the path to the user device.
参见图6,本发明还提出了一种缓存和服务内容的系统,至少包括:Referring to Fig. 6, the present invention also proposes a system for caching and serving content, at least including:
请求路由RR装置,用于劫持用户设备的访问请求;获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;接收到来自缓存设备的缓存成功的消息,保存获得的标识;The request routing RR device is used to hijack the access request of the user equipment; obtain the identifier corresponding to the resource locator URL in the access request, find the obtained identifier in the pre-saved identifier, and send a pre-cache message to the content load balancing device; Receive the cache success message from the cache device, and save the obtained identifier;
内容负载均衡装置,用于获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备;A content load balancing device, configured to obtain an identifier corresponding to the URL in the pre-cached message, and send the pre-cached message to the cache device corresponding to the obtained identifier;
缓存设备,用于获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。The caching device is configured to obtain the identifier corresponding to the URL in the pre-cached message, calculate the path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a cache success message to the RR device.
本发明的系统中,RR装置还用于:In the system of the present invention, the RR device is also used for:
在预先保存的标识中查找到获得的标识,向用户设备发送表示重定向的标识;Find the obtained identifier in the pre-saved identifiers, and send the redirection identifier to the user equipment;
内容负载均衡装置还用于:Content load balancers are also used to:
接收到来自用户设备的访问请求,获取访问请求中的URL对应的标识,向用户设备发送表示重定向的标识;Receive an access request from the user equipment, obtain an identifier corresponding to the URL in the access request, and send an identifier indicating redirection to the user equipment;
缓存设备还用于:Cache devices are also used to:
接收到来自用户设备的访问请求,获取访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。Receive the access request from the user equipment, acquire the identifier corresponding to the URL in the access request, calculate the path corresponding to the identifier, and send the content in the path to the user equipment.
需要说明的是,以上所述的实施例仅是为了便于本领域的技术人员理解而已,并不用于限制本发明的保护范围,在不脱离本发明的发明构思的前提下,本领域技术人员对本发明所做出的任何显而易见的替换和改进,或应用到其他业务领域等均在本发明的保护范围之内。It should be noted that the above-described embodiments are only for the convenience of those skilled in the art to understand, and are not intended to limit the protection scope of the present invention. Any obvious replacement and improvement made by the invention, or application to other business fields, etc. are within the protection scope of the present invention.
Claims (20)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510760276.4A CN106686033A (en) | 2015-11-10 | 2015-11-10 | A method, device and system for caching and serving content |
PCT/CN2016/105244 WO2017080459A1 (en) | 2015-11-10 | 2016-11-09 | Method, device and system for caching and providing service contents and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510760276.4A CN106686033A (en) | 2015-11-10 | 2015-11-10 | A method, device and system for caching and serving content |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106686033A true CN106686033A (en) | 2017-05-17 |
Family
ID=58694522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510760276.4A Pending CN106686033A (en) | 2015-11-10 | 2015-11-10 | A method, device and system for caching and serving content |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106686033A (en) |
WO (1) | WO2017080459A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107346341A (en) * | 2017-07-11 | 2017-11-14 | 王焱华 | A kind of management method of big data |
CN108173952A (en) * | 2017-12-29 | 2018-06-15 | 北京奇虎科技有限公司 | A data access method and device for content distribution network CDN |
CN109089175A (en) * | 2017-06-14 | 2018-12-25 | 中兴通讯股份有限公司 | A kind of method and device that video cache accelerates |
CN109873855A (en) * | 2018-04-13 | 2019-06-11 | 贵州白山云科技股份有限公司 | A method and system for resource acquisition based on blockchain network |
CN110138880A (en) * | 2019-06-04 | 2019-08-16 | 杭州安恒信息技术股份有限公司 | The method and apparatus for promoting access rate are cached based on cloud platform |
CN113590658A (en) * | 2021-07-06 | 2021-11-02 | 广州汇思信息科技股份有限公司 | Cache data processing method and device, computer equipment and storage medium |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020272B (en) * | 2017-08-14 | 2021-11-05 | 中国电信股份有限公司 | Caching method, device and computer storage medium |
CN111104528B (en) * | 2018-10-29 | 2023-05-16 | 浙江宇视科技有限公司 | Picture acquisition method and device and client |
CN112256733A (en) * | 2020-10-19 | 2021-01-22 | 北京字节跳动网络技术有限公司 | Data caching method, apparatus, electronic device, and computer-readable storage medium |
CN113596513A (en) * | 2021-08-02 | 2021-11-02 | 典基网络科技(上海)有限公司 | Video content distribution method and system |
CN117076046A (en) * | 2023-08-14 | 2023-11-17 | 百富计算机技术(深圳)有限公司 | Cloud container multi-level access method and device, storage medium and chip |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7526530B2 (en) * | 2006-05-05 | 2009-04-28 | Adobe Systems Incorporated | System and method for cacheing web files |
CN102170479B (en) * | 2011-05-21 | 2013-12-18 | 华为数字技术(成都)有限公司 | Updating method of Web buffer and updating device of Web buffer |
CN102523299B (en) * | 2011-12-22 | 2014-02-26 | 北京邮电大学 | Cache Method for Content Identification Based on Message Digest |
CN102882939B (en) * | 2012-09-10 | 2015-07-22 | 北京蓝汛通信技术有限责任公司 | Load balancing method, load balancing equipment and extensive domain acceleration access system |
CN106850817A (en) * | 2012-12-10 | 2017-06-13 | 北京奇虎科技有限公司 | A kind of download management equipment, method and data downloading system |
CN103916437A (en) * | 2013-01-05 | 2014-07-09 | 中国移动通信集团公司 | File release system, device and method |
CN203313219U (en) * | 2013-06-25 | 2013-11-27 | 余兵 | Caching acceleration system for local area network |
-
2015
- 2015-11-10 CN CN201510760276.4A patent/CN106686033A/en active Pending
-
2016
- 2016-11-09 WO PCT/CN2016/105244 patent/WO2017080459A1/en active Application Filing
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109089175A (en) * | 2017-06-14 | 2018-12-25 | 中兴通讯股份有限公司 | A kind of method and device that video cache accelerates |
CN109089175B (en) * | 2017-06-14 | 2022-04-22 | 中兴通讯股份有限公司 | Video cache acceleration method and device |
CN107346341A (en) * | 2017-07-11 | 2017-11-14 | 王焱华 | A kind of management method of big data |
CN108173952A (en) * | 2017-12-29 | 2018-06-15 | 北京奇虎科技有限公司 | A data access method and device for content distribution network CDN |
CN109873855A (en) * | 2018-04-13 | 2019-06-11 | 贵州白山云科技股份有限公司 | A method and system for resource acquisition based on blockchain network |
CN109873855B (en) * | 2018-04-13 | 2022-01-25 | 贵州白山云科技股份有限公司 | Resource acquisition method and system based on block chain network |
CN110138880A (en) * | 2019-06-04 | 2019-08-16 | 杭州安恒信息技术股份有限公司 | The method and apparatus for promoting access rate are cached based on cloud platform |
CN113590658A (en) * | 2021-07-06 | 2021-11-02 | 广州汇思信息科技股份有限公司 | Cache data processing method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2017080459A1 (en) | 2017-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106686033A (en) | A method, device and system for caching and serving content | |
US9521060B2 (en) | Identifying services provided over secured connections using DNS caching | |
CN104509069B (en) | Technologies to support selective mobile content optimization | |
US8971820B2 (en) | Power consumption reduction in a user terminal | |
US10897450B2 (en) | Communication method and communication apparatus | |
US20110320592A1 (en) | Methods, systems, and computer readable media for content delivery using deep packet inspection | |
KR101330052B1 (en) | Method for providing content caching service in adapted content streaming and local caching device thereof | |
US20160344796A1 (en) | Network acceleration method, apparatus and device based on router device | |
US10630530B2 (en) | Cache method, cache edge server, cache core server, and cache system | |
CN102437964B (en) | Method and device for issuing business as well as communication system | |
CN102014053A (en) | Service distribution method, device and communication system | |
CN103455439B (en) | Local cache device and for providing the system and method for content caching service | |
WO2013038155A1 (en) | Communications terminal and method | |
US10594803B2 (en) | Method for delivering content in communication network and apparatus therefor | |
KR20140021372A (en) | Contents delivery service method and local cache apparatus using contents identification | |
US20140282788A1 (en) | System for controlling video distribution in response to a request on reduced video data traffic and a method therefor | |
US9350822B2 (en) | Distributed web object identification for web caching | |
US11943278B2 (en) | Loading a web page in a telecommunication network using an access point server | |
WO2017140247A1 (en) | Mobile base station cdn system and service method therefor | |
CN107612831B (en) | A method and device for transmitting data message for accessing source station | |
CN109196843B (en) | A cache data request method and related equipment | |
WO2014074109A1 (en) | Adaptive leveraging of network information | |
CN115550446A (en) | CDN network data preheating method, device and electronic equipment | |
CN107343014B (en) | Service distribution method based on content distribution network and remote gateway | |
KR20160050594A (en) | Method for processing of contents upload, apparatus thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170517 |