WO2017080459A1 - Method, device and system for caching and providing service contents and storage medium - Google Patents

Method, device and system for caching and providing service contents and storage medium Download PDF

Info

Publication number
WO2017080459A1
WO2017080459A1 PCT/CN2016/105244 CN2016105244W WO2017080459A1 WO 2017080459 A1 WO2017080459 A1 WO 2017080459A1 CN 2016105244 W CN2016105244 W CN 2016105244W WO 2017080459 A1 WO2017080459 A1 WO 2017080459A1
Authority
WO
WIPO (PCT)
Prior art keywords
identifier
cache
url
message
content
Prior art date
Application number
PCT/CN2016/105244
Other languages
French (fr)
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
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017080459A1 publication Critical patent/WO2017080459A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Definitions

  • the present invention relates to the field of the Internet, and more particularly to a method and apparatus, a system, and a computer storage medium for caching and providing service content.
  • FIG. 1 is a schematic diagram of a user acquiring network content.
  • the user sends an access request to the server to access the network content through the access network and the router.
  • the cache system is deployed in an existing Internet Protocol (IP) bearer network to store hot content or specific information in the Internet.
  • IP Internet Protocol
  • the content is forwarded to the cache system by guiding the user's access request, and the cache system provides the user with the required Internet data, thereby avoiding directly downloading data from the server of the Internet source station, thereby effectively avoiding the congestion problem of the network link and reducing the user.
  • IP Internet Protocol
  • the delay in accessing Internet content enhances the user's data service experience and also reduces the settlement costs incurred by Internet traffic.
  • the caching system supports the acceleration of Internet services such as Web (World Wide Web) browsing, file downloading, and video playback based on Hypertext Transfer Protocol (HTTP).
  • Web World Wide Web
  • HTTP Hypertext Transfer Protocol
  • the caching system uses locally stored file formats, audio and video, and file encoding methods. There are no specific requirements, all kinds of Internet audio, video, image, text and other files can be cached and accelerated services through the cache system.
  • the cache system supports mobile cellular networks (eg 2G, 3G or Long Term Evolution (LTE, Long Term) Evolution)), wireless local area network (WLAN), fixed broadband and other network access methods, and can provide services for different forms of terminals such as personal computers (PCs, personal computers) and mobile terminals.
  • mobile cellular networks eg 2G, 3G or Long Term Evolution (LTE, Long Term) Evolution
  • WLAN wireless local area network
  • PCs personal computers
  • mobile terminals personal computers
  • 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); the RR device forwards the access request to the content load balancing device, and the content load balancing device adopts the
  • the hash 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 message digest algorithm 5 (MD5, Message Digest Algorithm 5) to calculate the URL corresponding 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.
  • MD5 message digest algorithm 5
  • the embodiment of the invention provides a method, a device, a system and a computer storage medium for caching and providing service content, and is expected to improve the utilization of the storage space and increase the usage rate of the bandwidth.
  • the embodiment of the invention provides a method for caching and providing service content, including:
  • the RR device obtains the identifier corresponding to the resource locator URL in the access request, finds the obtained identifier in the pre-stored identifier, and sends a pre-cache message to the content load balancing device.
  • 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;
  • the cache device obtains the identifier corresponding to the URL in the pre-cached message, calculates a path corresponding to the identifier, and caches the content corresponding to the URL downloaded from the server to the calculated path, and sends the path to the RR device. Send a message that the cache is successful;
  • the RR device saves the obtained identification.
  • the embodiment of the present invention further provides a request routing RR device, which at least includes:
  • the hijacking module is configured to hijack an access request of the user equipment
  • the first sending module is configured to obtain an identifier corresponding to the resource locator URL in the access request, and the obtained identifier is not found in the pre-stored identifier, and the pre-cache message is sent to the content load balancing device.
  • the first receiving module is configured to receive a message that the cache of the cache device corresponding to the identifier corresponding to the URL corresponding to the URL in the access request is successful, and save the obtained identifier.
  • the invention also proposes a content load balancing device, which at least comprises:
  • a second receiving module configured to receive a pre-cache message from the request routing RR device
  • the second sending module is 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.
  • the invention also proposes a cache device, which at least comprises:
  • a third receiving module configured to receive a pre-cache message from the content load balancing device
  • the third sending module is configured to obtain an identifier corresponding to the URL in the pre-cached message, calculate a path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a message that the cache succeeds to the RR device. .
  • the invention also proposes a system for caching and serving content, comprising at least:
  • the requesting routing RR device is configured to hijack the access request of the user equipment; obtaining the identifier corresponding to the resource locator URL in the access request, not finding the obtained identifier in the pre-saved identifier, and sending the pre-cache message to the content load balancing device; Receiving a message that the cache is successful from the cache device, and saving the obtained identifier;
  • the content load balancing device is 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;
  • the cache device is configured to obtain an identifier corresponding to the URL in the pre-cached message, calculate a path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a message that the cache is successful to the RR device.
  • An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing method.
  • the embodiment of the invention further provides another method for caching and providing service content, including:
  • the message that the cache of the cache device corresponding to the identifier corresponding to the URL corresponding to the URL in the access request is successfully received is saved, and the obtained identifier is saved.
  • This embodiment further provides another method for caching and providing service content, including:
  • the identifier corresponding to the URL in the pre-cached message is obtained, and the pre-cached message is sent to the cache device corresponding to the obtained identifier.
  • This embodiment further provides another method for caching and providing service content, including:
  • the identifier corresponding to the URL in the pre-cached message is obtained, and the path corresponding to the identifier is calculated, and the content corresponding to the URL downloaded from the server is cached to the calculated path, and the message that the cache is successful is sent to the RR device.
  • the technical solution of the embodiment of the present invention includes: requesting the routing RR device to hijack the access request of the user equipment; the RR device acquiring the identifier corresponding to the resource locator URL in the access request, and not finding the obtained identifier in the pre-saved identifier, to the content
  • the load balancing device sends a pre-cache message;
  • the 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.
  • the cache device obtains the identifier corresponding to the URL in the pre-cached message, and calculates the path corresponding to the identifier.
  • the content corresponding to the URL downloaded on the server is cached to the calculated path, and the message that the cache is successful is sent to the RR device; the RR device saves the obtained identifier.
  • the identifier corresponding to the URL is used as the unique identifier of the content, so that the same content corresponding to different URLs only needs to be cached once, thereby improving the utilization of the storage space and reducing the bandwidth wasted by caching the same content. , thereby increasing the effective use of bandwidth.
  • FIG. 1 is a schematic diagram of a user acquiring network content
  • FIG. 2 is a schematic flowchart of a method for caching and providing service content according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an RR device according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a content load balancing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a cache device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a system for caching and serving content according to an embodiment of the present invention.
  • FIG. 2 provides a method for caching content, including:
  • Step 200 The RR device hijacks an access request of the user equipment.
  • the URL is included in the access request.
  • the RR device hijacks the access request of the user equipment, that is, the access request of the user equipment is no longer sent to the server, but is sent to the content load balancing device.
  • Step 201 The RR device acquires an identifier corresponding to the URL in the access request, and does not find the obtained identifier in the pre-stored identifier, and sends a pre-cache message to the content load balancing apparatus.
  • the RR device also forwards an access request from the user equipment to the server, and the server provides a service for the user equipment.
  • the identifier corresponding to the URL in the access request obtained by the RR device includes:
  • the RR device searches for the identifier corresponding to the regular expression matching the URL in the access request in the correspondence between the preset regular expression and the identifier.
  • the manner in which the RR device determines whether the URL in the access request matches the regular expression in the corresponding relationship is a well-known technique of those skilled in the art, and is not intended to limit the scope of the present invention, and details are not described herein again.
  • the present invention emphasizes that the identifier corresponding to the regular expression matching the URL is the unique identifier 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 of the storage space and improving the utilization. Bandwidth usage.
  • %d represents a number
  • %. represents any character
  • %x represents a hexadecimal number
  • %w represents a letter or a number
  • + represents a plurality
  • &ns is a parameter of a URL.
  • the regular expression can be summarized by looking at the URL of each content.
  • the one-to-one correspondence between the regular expression and the identifier, the identifier corresponding to the regular expression is http://www.youku.com/%1/%2, %1, and %2 represents the bracket portion in the regular expression. .
  • the RR device when the RR device finds the obtained identifier in the pre-stored identifier, the RR device sends an identifier indicating the redirection to the user equipment; the content load balancing device receives the access request from the user equipment, and obtains the access request.
  • the identifier corresponding to the URL is sent to the user equipment to indicate the redirected identifier.
  • 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 uses the path.
  • the content in the content is sent to the user device.
  • the RR device further sends an 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.
  • the content load balancing device further sends the obtained address of the cache device corresponding to the obtained identifier to the user equipment, and the user equipment sends an access request to the cache device corresponding to the obtained identifier according to the address of the cache device corresponding to the obtained identifier.
  • the cache device corresponding to the obtained identifier refers to a cache device corresponding to the hash value corresponding to the obtained identifier.
  • the cache device corresponding to the obtained identifier may use the MD5 to calculate the path corresponding to the identifier, and the specific implementation is not limited to the scope of protection of the present invention, and details are not described herein again.
  • the present invention emphasizes that the identifier is used as a unique identifier of the content to cache the content, thereby improving the utilization of the storage space and increasing the rate of the bandwidth.
  • the pre-cached message includes a URL, and may also include an address of the RR device.
  • Step 202 The content load balancing device obtains an 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.
  • the identifier corresponding to the URL in the pre-cache message obtained by the content load balancing device includes:
  • the content load balancing device searches for an identifier corresponding to the regular expression that matches the URL in the pre-cached message in the correspondence between the preset regular expression and the identifier.
  • the manner in which the content load balancing device determines whether the URL in the pre-cached message matches the regular expression in the corresponding relationship is a well-known technique of those skilled in the art, and is not intended to limit the scope of protection of the present invention, and details are not described herein again.
  • the present invention emphasizes that the identifier corresponding to the regular expression matching the URL is the unique identifier 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 of the storage space and improving the utilization. Bandwidth usage.
  • the cache device that sends the pre-cache message to the obtained identifier includes:
  • the hash value corresponding to the obtained identifier is calculated by using a hash algorithm, and the pre-cache message is sent to the cache device corresponding to the calculated hash value.
  • Step 203 The cache 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 message indicating that the cache is successful to the RR device.
  • the identifier corresponding to the URL in the pre-cache message obtained by the cache device includes:
  • the cache device searches for an identifier corresponding to the regular expression matching the URL in the pre-cached message in a correspondence between the preset regular expression and the identifier.
  • the manner in which the cache device determines whether the URL in the pre-cached message matches the regular expression in the corresponding relationship is a well-known technique of those skilled in the art, and is not intended to limit the scope of protection of the present invention, and details are not described herein again.
  • the present invention emphasizes that the identifier corresponding to the regular expression matching the URL is the unique identifier 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 of the storage space and improving the utilization. Bandwidth usage.
  • the path corresponding to the identifier of the MD5 can be used to calculate the corresponding path, and the specific technology is not limited to the scope of protection of the present invention, and details are not described herein again.
  • the cache device sends a message indicating that the cache is successful to the RR device according to the address of the RR device in the pre-cache message.
  • Step 204 The RR device saves the obtained identifier.
  • the method further includes:
  • 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.
  • the RR device obtains an access request sent by the user equipment, obtains an identifier corresponding to the URL in the access request, and determines that the obtained identifier is accessed by the first preset threshold.
  • the RR device sends an access request to the server when the RR device determines that the number of times the content corresponding to the URL is accessed is less than the first preset threshold.
  • the access request sent by the user equipment is obtained by the RR device, and the access request is 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.
  • the RR device sends the access request to the server, and the server serves the user equipment.
  • the cache device determines that the cached content exceeds the validity period, or determines that the total size of the cache or the number of caches is greater than or equal to a second preset threshold, the cache device deletes the cached content that exceeds the validity period, or deletes The cached content with the least number of visits.
  • the method for caching and providing the service content may include:
  • the message that the cache of the cache device corresponding to the identifier corresponding to the URL corresponding to the URL in the access request is successfully received is saved, and the obtained identifier is saved.
  • the RR device sends the corresponding identifier to the content load balancing device by hijacking the access request of the user equipment, and then receives the cached success message of the cache server, and saves the corresponding identifier, so that if there is a corresponding access request next time,
  • the URL is carried, the corresponding service content can be directly obtained from the cache device, thereby reducing cache redundancy and improving efficient use of the storage space.
  • the access request, and the cached success message refer to the foregoing embodiment, and the description will not be repeated here.
  • the hijacking the access request of the user equipment includes: determining that the number of times the content corresponding to the URL is accessed is greater than or equal to a first preset threshold, hijacking an access request of the user equipment.
  • the method further includes: searching, in a correspondence between the preset regular expression and the identifier, an identifier corresponding to the regular expression that matches the URL in the access request; When the obtained identifier is not found in the pre-stored identifier, the pre-cache message is sent to the content load balancing device, and the identifier obtained by the pre-stored identifier is not found, and the pre-cache message is sent to the content load balancing device.
  • the method further includes: finding the obtained identifier in the pre-saved identifier, and transmitting the identifier indicating the redirect to the user equipment.
  • the embodiment further provides another method for caching and providing service content.
  • the method is applied to a load balancing device, and includes:
  • the identifier corresponding to the URL in the pre-cached message is obtained, and the pre-cached message is sent to the cache device corresponding to the obtained identifier.
  • the obtaining the identifier corresponding to the URL in the pre-cache message, and sending the pre-cache message to the cache device corresponding to the obtained identifier includes: a correspondence between the preset regular expression and the identifier And searching for an identifier corresponding to the regular expression that matches the URL in the pre-cached message, and sending the pre-cached message to the cache device corresponding to the obtained identifier.
  • the method further includes:
  • the embodiment further provides another method for caching and providing service content.
  • the method is applied to the cache device, and includes:
  • the identifier corresponding to the URL in the pre-cached message is obtained, and the path corresponding to the identifier is calculated, and the content corresponding to the URL downloaded from the server is cached to the calculated path, and the message that the cache is successful is sent to the RR device.
  • the obtaining the identifier corresponding to the URL in the pre-cache message, calculating the path corresponding to the identifier, and buffering the content corresponding to the URL downloaded from the server to the calculated path, and sending the cache success message to the RR device including: In the correspondence between the set regular expression and the identifier, searching for an identifier corresponding to the regular expression matching the URL in the pre-cached message, calculating a path corresponding to the identifier, and content corresponding to the URL downloaded from the server Cache to the calculated path and send a message that the cache is successful to the RR device.
  • the method further includes:
  • the cached content exceeds the validity period; or, the total size of the cache or the number of caches is determined to be greater than or equal to a second preset threshold, the cached content exceeding the validity period is deleted, or the cached content with the least number of times of access is deleted.
  • the method further includes:
  • an embodiment of the present invention further provides a request routing RR device, which at least includes:
  • the hijacking module is configured to hijack an access request of the user equipment
  • the first sending module is configured to obtain an identifier corresponding to the resource locator URL in the access request, and the obtained identifier is not found in the pre-stored identifier, and the pre-cache message is sent to the content load balancing device.
  • the first receiving module is configured to receive a message that the cache of the cache device corresponding to the identifier corresponding to the URL in the access request is successful, and save the obtained identifier.
  • the hijacking module is configured to:
  • the first sending module is configured to:
  • the identifier corresponding to the regular expression matching the URL in the access request is searched, and the obtained identifier is not found in the pre-saved identifier, and the content is load balanced.
  • the device sends a pre-cached message.
  • the first sending module is further configured to:
  • the cached content exceeds the validity period, or it is determined that the cached content is accessed less than or equal to the preset number of times, and the message indicating that the cached content is deleted is sent to the content load balancing device.
  • the first sending module is further configured to:
  • the obtained identifier is found in the pre-saved identifier, and the identifier indicating the redirect is sent to the user equipment.
  • an embodiment of the present invention further provides a content load balancing apparatus, including at least:
  • a second receiving module configured to receive a pre-cache message from the request routing RR device
  • the second sending module is 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.
  • the second sending module is configured to:
  • the identifier corresponding to the regular expression matching the URL in the pre-cache message is searched, and the pre-cache message is sent to the cache device corresponding to the obtained identifier.
  • the second receiving module is further configured to:
  • the second sending module is further configured to:
  • the second receiving module is further configured to:
  • the second sending module is further configured to:
  • an embodiment of the present invention further provides a cache device, including at least:
  • a third receiving module configured to receive a pre-cache message from the content load balancing device
  • the third sending module is configured to obtain an identifier corresponding to the URL in the pre-cached message, calculate a path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a message that the cache succeeds to the RR device. .
  • the third sending module is configured to:
  • the identifier corresponding to the regular expression matching the URL in the pre-cache message is searched, and the path corresponding to the identifier is calculated, and the content corresponding to the URL downloaded from the server is Cache to the calculated path and send a message that the cache is successful to the RR device.
  • Deleting a module configured to determine that the cached content exceeds a valid period; or, determining that the total size of the cache or the number of caches is greater than or equal to a second preset threshold, deleting the cached content that exceeds the validity period, or deleting the least accessed number of times Cached content.
  • the third receiving module is further configured to:
  • the third sending module is further configured to:
  • the identifier corresponding to the URL in the access request is obtained, and the path corresponding to the identifier is calculated, and the content in the path is sent to the user equipment.
  • an embodiment of the present invention further provides a system for caching and serving content, including at least:
  • the requesting routing RR device is configured to hijack the access request of the user equipment; obtaining the identifier corresponding to the resource locator URL in the access request, not finding the obtained identifier in the pre-saved identifier, and sending the pre-cache message to the content load balancing device; Receiving a message that the cache is successful from the cache device, and saving the obtained identifier;
  • the content load balancing device is 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;
  • the cache device is configured to obtain an identifier corresponding to the URL in the pre-cached message, calculate a path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a message that the cache is successful to the RR device.
  • the RR device is further configured to:
  • the content load balancing device is also configured to:
  • the cache device is also configured to:
  • Receiving an access request from the user equipment obtaining an identifier corresponding to the URL in the access request, calculating a path corresponding to the identifier, and transmitting the content in the path to the user equipment.
  • the embodiment further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the method provided by any one of the foregoing technical solutions, for example, as shown in FIG. 2 to FIG. 6 . At least one of the methods shown.
  • the computer storage medium may be a random storage medium RAM, a read only storage medium RAM or a flash memory, etc., and may be a non-transitory storage medium.

Abstract

Disclosed in the present invention are a method, device and system for caching and providing service contents, the method comprising: a request router (RR) hijacks an access request of a user equipment; the RR acquires an identifier corresponding to a uniform resource locator (URL) in the access request, and, the acquired identifier not being found in the pre-stored identifier, sends a pre-cached message to a content load balancer; the content load balancer acquires the identifier corresponding to the URL in the pre-cached message, and sends the pre-cached message to a caching device corresponding to the acquired identifier; the caching device acquires the identifier corresponding to the URL in the pre-cached message, calculates the path corresponding to the identifier, caches the contents which are downloaded from a server and correspond to the URL, to the path acquired by calculation, and sends a cache success message to the RR; and the RR saves the acquired identifier. The embodiments of the present invention provide a computer storage medium.

Description

服务内容的缓存及提供方法、装置、系统和存储介质Method, device, system and storage medium for caching and providing service content 技术领域Technical field
本发明涉及互联网领域,尤指一种服务内容的缓存及提供方法、装置、系统和计算机存储介质。The present invention relates to the field of the Internet, and more particularly to a method and apparatus, a system, and a computer storage medium for caching and providing service content.
背景技术Background technique
随着互联网的快速发展,各种互联网应用不断涌现,对宽带资源消耗越来越大,传统的网络内容的获取方式为客户端—服务器端模型,用户的所有访问请求都是发送到服务器去处理,造成了网络拥塞和服务器超载,导致用户的访问时延较大。With the rapid development of the Internet, various Internet applications are emerging, and the consumption of broadband resources is increasing. The traditional way of obtaining network content is the client-server model. All access requests from users are sent to the server for processing. , causing network congestion and server overload, resulting in a large user access delay.
为了提升用户的体验度,缓存系统越来越受运营商欢迎。图1为用户获取网络内容的示意图。如图1所示,用户通过接入网络和路由器向服务器发送访问请求以获取网络内容,缓存系统部署在现有的互联网协议(IP,Internet Protocol)承载网络中,存储互联网中的热点内容或特定内容,通过引导用户的访问请求转发到缓存系统中,由缓存系统为用户提供所需的互联网数据,避免直接从互联网源站的服务器上下载数据,从而有效规避网络链路的拥塞问题,降低用户访问互联网内容的时延,提升用户的数据业务体验度,同时也可以降低因网间流量所产生的结算费用。In order to enhance the user experience, the cache system is increasingly popular with operators. FIG. 1 is a schematic diagram of a user acquiring network content. As shown in Figure 1, the user sends an access request to the server to access the network content through the access network and the router. The cache system is deployed in an existing Internet Protocol (IP) bearer network to store hot content or specific information in the Internet. The content is forwarded to the cache system by guiding the user's access request, and the cache system provides the user with the required Internet data, thereby avoiding directly downloading data from the server of the Internet source station, thereby effectively avoiding the congestion problem of the network link and reducing the user. The delay in accessing Internet content enhances the user's data service experience and also reduces the settlement costs incurred by Internet traffic.
缓存系统支持对Web(万维网)浏览、文件下载、视频播放等基于超文本传输协议(HTTP,Hypertext Transfer Protocol)的互联网业务进行加速,缓存系统对于本地存储的文件格式、音视频及文件编码方式均没有特定要求,各类互联网音频、视频、图像、文本等文件均可通过缓存系统实现缓存和加速服务。The caching system supports the acceleration of Internet services such as Web (World Wide Web) browsing, file downloading, and video playback based on Hypertext Transfer Protocol (HTTP). The caching system uses locally stored file formats, audio and video, and file encoding methods. There are no specific requirements, all kinds of Internet audio, video, image, text and other files can be cached and accelerated services through the cache system.
缓存系统支持移动蜂窝网(例如2G、3G或长期演进(LTE,Long Term  Evolution))、无线局域网(WLAN,Wireless Local Area Networks)、固定宽带等不同的网络接入方式,并能够同时为个人电脑(PC,Personal Computer)、移动终端等不同形态的终端提供服务。The cache system supports mobile cellular networks (eg 2G, 3G or Long Term Evolution (LTE, Long Term) Evolution)), wireless local area network (WLAN), fixed broadband and other network access methods, and can provide services for different forms of terminals such as personal computers (PCs, personal computers) and mobile terminals.
现有的缓存和服务内容的方法大致包括:Existing methods of caching and serving content generally 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); the RR device forwards the access request to the content load balancing device, and the content load balancing device adopts the The hash 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 message digest algorithm 5 (MD5, Message Digest Algorithm 5) to calculate the URL corresponding 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.
然而在具体实现时,发现缓存内容中有大量冗余的内容,这些冗余的内容不仅占用了大量的存储空间,而且降低了带宽的速率。However, in the specific implementation, it is found that there is a large amount of redundant content in the cached content, and the redundant content not only occupies a large amount of storage space, but also reduces the rate of bandwidth.
发明内容Summary of the invention
本发明实施例提出了一种服务内容的缓存及提供方法、装置、系统和计算机存储介质,期望能够提高存储空间的利用率,且提高带宽的使用率。The embodiment of the invention provides a method, a device, a system and a computer storage medium for caching and providing service content, and is expected to improve the utilization of the storage space and increase the usage rate of the bandwidth.
本发明实施例提出了一种服务内容的缓存及提供方法,包括:The embodiment of the invention provides a method for caching and providing service content, including:
请求路由RR装置劫持用户设备的访问请求;Requesting the routing RR device to hijack the access request of the user equipment;
RR装置获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;The RR device obtains the identifier corresponding to the resource locator URL in the access request, finds the obtained identifier in the pre-stored identifier, 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 cache device obtains the identifier corresponding to the URL in the pre-cached message, calculates a path corresponding to the identifier, and caches the content corresponding to the URL downloaded from the server to the calculated path, and sends the path to the RR device. Send a message that the cache is successful;
RR装置保存获得的标识。The RR device saves the obtained identification.
本发明实施例还提出了一种请求路由RR装置,至少包括:The embodiment of the present invention further provides a request routing RR device, which at least includes:
劫持模块,配置为劫持用户设备的访问请求;The hijacking module is configured to hijack an access request of the user equipment;
第一发送模块,配置获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;The first sending module is configured to obtain an identifier corresponding to the resource locator URL in the access request, and the obtained identifier is not found in the pre-stored identifier, and the pre-cache message is sent to the content load balancing device.
第一接收模块,配置接收到来自访问请求中的URL对应的标识对应的缓存设备的缓存成功的消息,保存获得的标识。The first receiving module is configured to receive a message that the cache of the cache device corresponding to the identifier corresponding to the URL corresponding to the URL in the access request is successful, and save the obtained identifier.
本发明还提出了一种内容负载均衡装置,至少包括:The invention also proposes a content load balancing device, which at least comprises:
第二接收模块,配置为接收到来自请求路由RR装置的预缓存消息;a second receiving module, configured to receive a pre-cache message from the request routing RR device;
第二发送模块,配置为获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。The second sending module is 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.
本发明还提出了一种缓存设备,至少包括:The invention also proposes a cache device, which at least comprises:
第三接收模块,配置为接收到来自内容负载均衡装置的预缓存消息;a third receiving module, configured to receive a pre-cache message from the content load balancing device;
第三发送模块,配置为获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。The third sending module is configured to obtain an identifier corresponding to the URL in the pre-cached message, calculate a path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a message that the cache succeeds to the RR device. .
本发明还提出了一种缓存和服务内容的系统,至少包括:The invention also proposes a system for caching and serving content, comprising at least:
请求路由RR装置,配置为劫持用户设备的访问请求;获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;接收到来自缓存设备的缓存成功的消息,保存获得的标识;The requesting routing RR device is configured to hijack the access request of the user equipment; obtaining the identifier corresponding to the resource locator URL in the access request, not finding the obtained identifier in the pre-saved identifier, and sending the pre-cache message to the content load balancing device; Receiving a message that the cache is successful from the cache device, and saving the obtained identifier;
内容负载均衡装置,配置为获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备; The content load balancing device is 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 cache device is configured to obtain an identifier corresponding to the URL in the pre-cached message, calculate a path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a message that the cache is successful to the RR device.
本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求前述缓方法。An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing method.
本发明实施例还提供另一种服务内容的缓存及提供方法,包括:The embodiment of the invention further provides another method for caching and providing service content, including:
劫持用户设备的访问请求;Hijacking access requests from user devices;
获取访问请求中的资源定位器URL对应的标识;Obtaining an identifier corresponding to the resource locator URL in the access request;
在预先保存的标识中查找不到获得的标识时,向内容负载均衡装置发送预缓存消息;Sending a pre-cache message to the content load balancing device when the obtained identifier is not found in the pre-saved identifier;
接收到来自访问请求中的URL对应的标识对应的缓存设备的缓存成功的消息,保存获得的标识。The message that the cache of the cache device corresponding to the identifier corresponding to the URL corresponding to the URL in the access request is successfully received is saved, and the obtained identifier is saved.
本实施例还提供另一种服务内容的缓存及提供方法,其中,包括:This embodiment further provides another method for caching and providing service content, including:
接收到来自请求路由RR装置的预缓存消息;Receiving a pre-cache message from the request routing RR device;
获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。The identifier corresponding to the URL in the pre-cached message is obtained, and the pre-cached message is sent to the cache device corresponding to the obtained identifier.
本实施例还提供另一种服务内容的缓存及提供方法,包括:This embodiment further provides another method for caching and providing service content, including:
接收到来自内容负载均衡装置的预缓存消息;Receiving a pre-cache message from the content load balancing device;
获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。The identifier corresponding to the URL in the pre-cached message is obtained, and the path corresponding to the identifier is calculated, and the content corresponding to the URL downloaded from the server is cached to the calculated path, and the message that the cache is successful is sent to the RR device.
本发明实施例的技术方案包括:请求路由RR装置劫持用户设备的访问请求;RR装置获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;内 容负载均衡装置获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备;缓存设备获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息;RR装置保存获得的标识。通过本发明实施例提供的方案,将URL对应的标识作为内容的唯一标识,使得不同URL对应的相同内容只需缓存一次,从而提高了存储空间的利用率,减少了因缓存同一内容浪费的带宽,进而提高了带宽的有效使用率。The technical solution of the embodiment of the present invention includes: requesting the routing RR device to hijack the access request of the user equipment; the RR device acquiring the identifier corresponding to the resource locator URL in the access request, and not finding the obtained identifier in the pre-saved identifier, to the content The load balancing device sends a pre-cache message; The 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. The cache device obtains the identifier corresponding to the URL in the pre-cached message, and calculates the path corresponding to the identifier. The content corresponding to the URL downloaded on the server is cached to the calculated path, and the message that the cache is successful is sent to the RR device; the RR device saves the obtained identifier. With the solution provided by the embodiment of the present invention, the identifier corresponding to the URL is used as the unique identifier of the content, so that the same content corresponding to different URLs only needs to be cached once, thereby improving the utilization of the storage space and reducing the bandwidth wasted by caching the same content. , thereby increasing the effective use of bandwidth.
附图说明DRAWINGS
图1为用户获取网络内容的示意图;FIG. 1 is a schematic diagram of a user acquiring network content;
图2为本发明实施例提供的服务内容的缓存及提供方法的流程示意图;2 is a schematic flowchart of a method for caching and providing service content according to an embodiment of the present invention;
图3为本发明实施例提供的RR装置的结构组成示意图;3 is a schematic structural diagram of an RR device according to an embodiment of the present invention;
图4为本发明实施例提供的内容负载均衡装置的结构组成示意图;4 is a schematic structural diagram of a content load balancing apparatus according to an embodiment of the present invention;
图5为本发明实施例提供的缓存设备的结构组成示意图;FIG. 5 is a schematic structural diagram of a cache device according to an embodiment of the present disclosure;
图6为本发明实施例提供的缓存和服务内容的系统的结构组成示意图。FIG. 6 is a schematic structural diagram of a system for caching and serving content according to an embodiment of the present invention.
具体实施方式detailed description
为了便于本领域技术人员的理解,下面结合附图对本发明作进一步的描述,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The present invention will be further described in conjunction with the accompanying drawings.
研究发现,通常的缓存内容的方法中,将URL作为内容的唯一标识来缓存内容,由于同一内容的URL会因某些参数的不同而出现差异,因此,会多次在缓存系统中保存同一内容,浪费了存储空间,且由于需要多次从服务器上下载内容而降低了带宽的使用率。例如, http://222.132.5.19/edge.v.iask.com/138364612.hlv?KID=sina,viask&Expires=1435766400&ssig=sjhlPQskgr&sid=138364612_1435653150890_1751_68896&wshc_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=1435766400&ssig=sjhlPQskgr&sid=138364612_1435653263781_643_35962&wshc_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却因为参数的不同而不同,从而会导致该内容保存两次,浪费了存储空间,且降低了带宽的速率。为了提高存储空间及带宽的有效利用率,本实施例提供的技术方案,将减少冗余缓存内容,具体实现可参见图2,本发明实施例提出了一种缓存内容的方法,包括:The study found that in the usual 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 some parameters, the same content will be saved in the cache system multiple times. , wasted storage space, and reduced bandwidth usage due to the need to download content from the server multiple times. E.g, Http://222.132.5.19/edge.v.iask.com/138364612.hlv? KID=sina,viask&Expires=1435766400&ssig=sjhlPQskgr&sid=138364612_1435653150890_1751_68896&wshc_tag=1&wsts_tag=55925414&wsid_tag=d233c309&wsiphost=ipdbm and http://218.58.222.57/edge.v.iask.com/138364612.hlv? KID=sina, viask&Expires=1435766400&ssig=sjhlPQskgr&sid=138364612_1435653263781_643_35962&wshc_tag=1&wsts_tag=55925485&wsid_tag=d233c309&wsiphost=ipdbm; where 222.132.5.19 and 218.58.222.57 are the client's IP address, and edge.v.iask.com is the name of the visited website, 138364612. Hlv is the content name of the visit,? The latter is the URL parameter, the two URLs represent the same content, and the URL is different because of the parameters, which will cause the content to be saved twice, wasting storage space, and reducing the bandwidth rate. In order to improve the effective utilization of the storage space and the bandwidth, the technical solution provided in this embodiment reduces the redundant cache content. For the specific implementation, reference may be made to FIG. 2, which provides a method for caching content, including:
步骤200、RR装置劫持用户设备的访问请求。Step 200: The RR device hijacks an access request of the user equipment.
本步骤中,访问请求中包括URL。In this step, the URL is included in the access request.
本步骤中,RR装置劫持用户设备的访问请求是指用户设备的访问请求不再被发送到服务器,而被发送到内容负载均衡装置。In this step, the RR device hijacks the access request of the user equipment, that is, 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, the access request of the RR device to hijack the user equipment is well-known in the art, and is not intended to limit the scope of protection of the present invention, and details are not described herein again.
步骤201、RR装置获取访问请求中的URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息。Step 201: The RR device acquires an identifier corresponding to the URL in the access request, and does not find the obtained identifier in the pre-stored identifier, and sends a pre-cache message to the content load balancing apparatus.
本步骤中,RR装置还向服务器转发来自用户设备的访问请求,由服务器为用户设备提供服务。In this step, the RR device also forwards an access request from the user equipment to the server, and the server provides a service for the user equipment.
本步骤中,RR装置获取访问请求中的URL对应的标识包括:In this step, the identifier corresponding to the URL in the access request obtained 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 correspondence between the preset regular expression and the identifier.
其中,RR装置如何判断访问请求中的URL是否与对应关系中的正则表达式相匹配属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。本发明强调的是将与URL相匹配的正则表达式对应的标识作为URL对应的内容的唯一标识,使得不同URL对应的相同的内容只需缓存一次,从而提高了存储空间的利用率,提高了带宽的使用率。The manner in which the RR device determines whether the URL in the access request matches the regular expression in the corresponding relationship is a well-known technique of those skilled in the art, and is not intended to limit the scope of the present invention, and details are not described herein again. The present invention emphasizes that the identifier corresponding to the regular expression matching the URL is the unique identifier 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 of the storage space and improving the utilization. Bandwidth usage.
例如,当URL为:For example, when the URL is:
http://222.73.61.214/youku/6573718061135810187D003A7D/0300080500545A25632B57092B13A2E773DF5A-0614-5810-DC51-EB36488C7C74.mp4?nk=67147729540_23587507484&ns=6490028_2707360&special=true,正则表达式为:http://222.73.61.214/youku/6573718061135810187D003A7D/0300080500545A25632B57092B13A2E773DF5A-0614-5810-DC51-EB36488C7C74.mp4? Nk=67147729540_23587507484&ns=6490028_2707360&special=true, the regular expression is:
http://%d+%.%d+%.%d+%.%d+/youku/%x+/(%x+-%x+-%x+-%x+-%x+%.%w+)%?nk=%d+_%d+&ns=(%d+_%d+)&.+时,URL和正则表达式之间是相匹配的。Http://%d+%.%d+%.%d+%.%d+/youku/%x+/(%x+-%x+-%x+-%x+-%x+%.%w+)%? When nk=%d+_%d+&ns=(%d+_%d+)&.+, the URL and the regular expression match.
其中,%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 a plurality, and &ns is a parameter of a URL.
其中,正则表达式可以通过查看各内容的URL总结得出。Among them, the regular expression can be summarized by looking at the URL of each content.
其中,正则表达式和标识之间一一对应,上述正则表达式对应的标识为http://www.youku.com/%1/%2,%1,%2表示正则表达式中的括号部分。Wherein, the one-to-one correspondence between the regular expression and the identifier, the identifier corresponding to the regular expression is http://www.youku.com/%1/%2, %1, and %2 represents the bracket portion in the regular expression. .
那么上述URL对应的标识为:Then the identifier corresponding to the above URL is:
http://www.youku.com/0300080500545A25632B57092B13A2E773DF5A-0614-5810-DC51-EB36488C7C74.mp4/6490028_2707360。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-stored identifier, the RR device sends an identifier indicating the redirection to the user equipment; the content load balancing device receives the access request from the user equipment, and obtains the access request. The identifier corresponding to the URL is sent to the user equipment to indicate the redirected identifier. 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 uses the path. The content in the content is sent to the user device.
其中,RR装置还向用户设备发送内容负载均衡装置的地址,用户设备根据内容负载均衡装置的地址向内容负载均衡装置发送访问请求。The RR device further sends an 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.
其中,内容负载均衡装置还向用户设备发送获得的标识对应的缓存设备的地址,用户设备根据获得的标识对应的缓存设备的地址向获得的标识对应的缓存设备发送访问请求。The content load balancing device further sends the obtained address of the cache device corresponding to the obtained identifier to the user equipment, and the user equipment sends an access request to the cache device corresponding to the obtained identifier according to the address of the cache device corresponding to the obtained identifier.
其中,获得的标识对应的缓存设备是指获得的标识对应的哈希值对应的缓存设备。The cache device corresponding to the obtained identifier refers to a cache device corresponding to the hash value corresponding to the obtained identifier.
其中,获得的标识对应的缓存设备可以采用MD5计算标识对应的路径,具体实现属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。本发明强调的是将标识作为内容的唯一标识来缓存内容,从而提高了存储空间的利用率,提高了带宽的速率。The cache device corresponding to the obtained identifier may use the MD5 to calculate the path corresponding to the identifier, and the specific implementation is not limited to the scope of protection of the present invention, and details are not described herein again. The present invention emphasizes that the identifier is used as a unique identifier of the content to cache the content, thereby improving the utilization of the storage space and increasing the rate of the bandwidth.
本步骤中,预缓存消息包括URL,还可以包括RR装置的地址。In this step, the pre-cached message includes a URL, and may also include an address of the RR device.
步骤202、内容负载均衡装置获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。Step 202: The content load balancing device obtains an 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对应的标识包括:In this step, the identifier corresponding to the URL in the pre-cache message obtained by the content load balancing device includes:
内容负载均衡装置在预先设置的正则表达式和标识之间的对应关系中,查找与预缓存消息中的URL相匹配的正则表达式对应的标识。The content load balancing device searches for an identifier corresponding to the regular expression that matches the URL in the pre-cached message in the correspondence between the preset regular expression and the identifier.
其中,内容负载均衡装置如何判断预缓存消息中的URL是否与对应关系中的正则表达式相匹配属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。本发明强调的是将与URL相匹配的正则表达式对应的标识作为URL对应的内容的唯一标识,使得不同URL对应的相同的内容只需缓存一次,从而提高了存储空间的利用率,提高了带宽的使用率。 The manner in which the content load balancing device determines whether the URL in the pre-cached message matches the regular expression in the corresponding relationship is a well-known technique of those skilled in the art, and is not intended to limit the scope of protection of the present invention, and details are not described herein again. The present invention emphasizes that the identifier corresponding to the regular expression matching the URL is the unique identifier 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 of the storage space and improving the utilization. Bandwidth usage.
本步骤中,将预缓存消息发送给获得的标识对应的缓存设备包括:In this step, the cache device that sends the pre-cache message to the obtained identifier includes:
采用哈希算法计算获得的标识对应的哈希值,将预缓存消息发送给计算得到的哈希值对应的缓存设备。The hash value corresponding to the obtained identifier is calculated by using a hash algorithm, and the pre-cache message is sent to the cache device corresponding to the calculated hash value.
步骤203、缓存设备获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。Step 203: The cache 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 message indicating that the cache is successful to the RR device.
本步骤中,缓存设备获取预缓存消息中的URL对应的标识包括:In this step, the identifier corresponding to the URL in the pre-cache message obtained by the cache device includes:
缓存设备在预先设置的正则表达式和标识之间的对应关系中,查找与预缓存消息中的URL相匹配的正则表达式对应的标识。The cache device searches for an identifier corresponding to the regular expression matching the URL in the pre-cached message in a correspondence between the preset regular expression and the identifier.
其中,缓存设备如何判断预缓存消息中的URL是否与对应关系中的正则表达式相匹配属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。本发明强调的是将与URL相匹配的正则表达式对应的标识作为URL对应的内容的唯一标识,使得不同URL对应的相同的内容只需缓存一次,从而提高了存储空间的利用率,提高了带宽的使用率。The manner in which the cache device determines whether the URL in the pre-cached message matches the regular expression in the corresponding relationship is a well-known technique of those skilled in the art, and is not intended to limit the scope of protection of the present invention, and details are not described herein again. The present invention emphasizes that the identifier corresponding to the regular expression matching the URL is the unique identifier 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 of the storage space and improving the utilization. Bandwidth usage.
本步骤中,可以采用MD5计算标识对应的路径,具体实现属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。In this step, the path corresponding to the identifier of the MD5 can be used to calculate the corresponding path, and the specific technology is not limited to the scope of protection of the present invention, and details are not described herein again.
本步骤中,具体如何从服务器上下载URL对应的内容属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。In this step, how to download the content corresponding to the URL from the server is specifically known to those skilled in the art, and is not intended to limit the scope of the present invention, and details are not described herein.
本步骤中,缓存设备根据预缓存消息中的RR装置的地址向RR装置发送缓存成功的消息。In this step, the cache device sends a message indicating that the cache is successful to the RR device according to the address of the RR device in the pre-cache message.
步骤204、RR装置保存获得的标识。Step 204: The RR device saves the obtained identifier.
可选地,该方法之前还包括:Optionally, the method further 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对应的标识,判断出获得的标识被访问的次数大于或等于第一预设阈值。 Optionally, the RR device obtains an access request sent by the user equipment, obtains an identifier corresponding to the URL in the access request, and determines that the obtained identifier is accessed by the first preset threshold.
其中,当RR装置判断出URL对应的内容被访问的次数小于第一预设阈值时,所述RR装置将访问请求发送给服务器。The RR device sends an access request to the server when the RR device determines that the number of times the content corresponding to the URL is accessed is less than the first preset threshold.
也就是说,用户设备每次发送的访问请求都会被RR装置获取到,只是在访问请求中的URL对应的内容被访问的次数大于或等于第一预设阈值时,访问请求才被RR装置劫持,由本发明的系统为用户设备服务;在访问请求中的URL对应的内容被访问的次数小于第一预设阈值时,RR装置将访问请求发送给服务器,由服务器为用户设备服务。That is, the access request sent by the user equipment is obtained by the RR device, and the access request is 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 times the content corresponding to the URL in the access request is accessed is less than the first preset threshold, the RR device sends the access request to the server, and the server serves the user equipment.
可选地,当缓存设备判断出缓存的内容超过有效期;或者,判断出缓存的总大小或缓存的个数大于或等于第二预设阈值时,缓存设备删除超过有效期的缓存的内容,或删除被访问次数最小的缓存的内容。Optionally, when the cache device determines that the cached content exceeds the validity period, or determines that the total size of the cache or the number of caches is greater than or equal to a second preset threshold, the cache device deletes the cached content that exceeds the validity period, or deletes The cached content with the least number of visits.
以下前述所述的服务内容的缓存及提供方法,分别接收应用于各个装置中的服务内容的缓存及提供方法的实施例中,The foregoing method for buffering and providing the service content, which is respectively received by the cache and the method for providing the service content in each device,
例如,在所述RR装置中,所述服务内容的缓存及提供方法可包括:For example, in the RR device, the method for caching and providing the service content may include:
劫持用户设备的访问请求;Hijacking access requests from user devices;
获取访问请求中的资源定位器URL对应的标识;Obtaining an identifier corresponding to the resource locator URL in the access request;
在预先保存的标识中查找不到获得的标识时,向内容负载均衡装置发送预缓存消息;Sending a pre-cache message to the content load balancing device when the obtained identifier is not found in the pre-saved identifier;
接收到来自访问请求中的URL对应的标识对应的缓存设备的缓存成功的消息,保存获得的标识。The message that the cache of the cache device corresponding to the identifier corresponding to the URL corresponding to the URL in the access request is successfully received is saved, and the obtained identifier is saved.
所述RR装置将通过劫持用户设备的访问请求,将访问对应的标识发送给内容负载均衡装置,再接收缓存服务器的缓存成功的消息,保存对应的标识,这样若下次有对应的访问请求,携带所述URL时,直接可以从所述缓存设备获得对应的服务内容,从而可以减少缓存冗余,提升存储空间的有效利用。这里的URL、访问请求、缓存成功的消息的相关描述可以参见前述实施例,在此就不再一一说明了。 The RR device sends the corresponding identifier to the content load balancing device by hijacking the access request of the user equipment, and then receives the cached success message of the cache server, and saves the corresponding identifier, so that if there is a corresponding access request next time, When the URL is carried, the corresponding service content can be directly obtained from the cache device, thereby reducing cache redundancy and improving efficient use of the storage space. For a description of the URL, the access request, and the cached success message, refer to the foregoing embodiment, and the description will not be repeated here.
在一些实施例中,所述劫持用户设备的访问请求,包括:判断出所述URL对应的内容被访问的次数大于或等于第一预设阈值,劫持用户设备的访问请求。In some embodiments, the hijacking the access request of the user equipment includes: determining that the number of times the content corresponding to the URL is accessed is greater than or equal to a first preset threshold, hijacking an access request of the user equipment.
在有些实施例中,所述方法还包括:在预先设置的正则表达式和标识之间的对应关系中,查找与所述访问请求中的URL相匹配的正则表达式对应的标识;所述在预先保存的标识中查找不到获得的标识时,向内容负载均衡装置发送预缓存消息,包括:在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息。In some embodiments, the method further includes: searching, in a correspondence between the preset regular expression and the identifier, an identifier corresponding to the regular expression that matches the URL in the access request; When the obtained identifier is not found in the pre-stored identifier, the pre-cache message is sent to the content load balancing device, and the identifier obtained by the pre-stored identifier is not found, and the pre-cache message is sent to the content load balancing device.
在一些实施例中,所述方法还包括:在预先保存的标识中查找到获得的标识,向用户设备发送表示重定向的标识。In some embodiments, the method further includes: finding the obtained identifier in the pre-saved identifier, and transmitting the identifier indicating the redirect to the user equipment.
本实施例还提供另一种服务内容的缓存及提供方法,该方法应用于容负载均衡装置中,包括:The embodiment further provides another method for caching and providing service content. The method is applied to a load balancing device, and includes:
接收到来自请求路由RR装置的预缓存消息;Receiving a pre-cache message from the request routing RR device;
获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。The identifier corresponding to the URL in the pre-cached message is obtained, and the pre-cached message is sent to the cache device corresponding to the obtained identifier.
在某些实施例中,所述获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备,包括:在预先设置的正则表达式和标识之间的对应关系中,查找与所述预缓存消息中的URL相匹配的正则表达式对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。In some embodiments, the obtaining the identifier corresponding to the URL in the pre-cache message, and sending the pre-cache message to the cache device corresponding to the obtained identifier, includes: a correspondence between the preset regular expression and the identifier And searching for an identifier corresponding to the regular expression that matches the URL in the pre-cached message, and sending the pre-cached message to the cache device corresponding to the obtained identifier.
在另一些实施例中,所述方法还包括:In other embodiments, the method further includes:
接收到来自用户设备的访问请求;Receiving an access request from a user device;
获取所述访问请求中的URL对应的标识,向所述用户设备发送表示重定向的标识。Obtaining an identifier corresponding to the URL in the access request, and sending an identifier indicating the redirect to the user equipment.
本实施例还提供另一种服务内容的缓存及提供方法,该方法应用于缓存设备中,包括: The embodiment further provides another method for caching and providing service content. The method is applied to the cache device, and includes:
接收到来自内容负载均衡装置的预缓存消息;Receiving a pre-cache message from the content load balancing device;
获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。The identifier corresponding to the URL in the pre-cached message is obtained, and the path corresponding to the identifier is calculated, and the content corresponding to the URL downloaded from the server is cached to the calculated path, and the message that the cache is successful is sent to the RR device.
所述获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息,包括:在预先设置的正则表达式和标识之间的对应关系中,查找与所述预缓存消息中的URL相匹配的正则表达式对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。The obtaining the identifier corresponding to the URL in the pre-cache message, calculating the path corresponding to the identifier, and buffering the content corresponding to the URL downloaded from the server to the calculated path, and sending the cache success message to the RR device, including: In the correspondence between the set regular expression and the identifier, searching for an identifier corresponding to the regular expression matching the URL in the pre-cached message, calculating a path corresponding to the identifier, and content corresponding to the URL downloaded from the server Cache to the calculated path and send a message that the cache is successful to the RR device.
在有些实施例中,所述方法还包括:In some embodiments, the method further includes:
判断出缓存的内容超过有效期;或者,判断出缓存的总大小或缓存的个数大于或等于第二预设阈值,删除超过有效期的缓存的内容,或删除被访问次数最小的缓存的内容。It is determined that the cached content exceeds the validity period; or, the total size of the cache or the number of caches is determined to be greater than or equal to a second preset threshold, the cached content exceeding the validity period is deleted, or the cached content with the least number of times of access is deleted.
在有些实施例中,所述方法还包括:In some embodiments, the method further includes:
接收到来自用户设备的访问请求;Receiving an access request from a user device;
获取所述访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。Obtaining an identifier corresponding to the URL in the access request, calculating a path corresponding to the identifier, and sending the content in the path to the user equipment.
参见图3,本发明实施例还提出了一种请求路由RR装置,至少包括:Referring to FIG. 3, an embodiment of the present invention further provides a request routing RR device, which at least includes:
劫持模块,配置为劫持用户设备的访问请求;The hijacking module is configured to hijack an access request of the user equipment;
第一发送模块,配置为获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;The first sending module is configured to obtain an identifier corresponding to the resource locator URL in the access request, and the obtained identifier is not found in the pre-stored identifier, and the pre-cache message is sent to the content load balancing device.
第一接收模块,配置为接收到来自访问请求中的URL对应的标识对应的缓存设备的缓存成功的消息,保存获得的标识。 The first receiving module is configured to receive a message that the cache of the cache device corresponding to the identifier corresponding to the URL in the access request is successful, and save the obtained identifier.
本发明实施例的RR装置中,劫持模块配置为:In the RR device of the embodiment of the present invention, the hijacking module is configured to:
判断出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 configured to:
在预先设置的正则表达式和标识之间的对应关系中,查找与访问请求中的URL相匹配的正则表达式对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息。In the correspondence between the preset regular expression and the identifier, the identifier corresponding to the regular expression matching the URL in the access request is searched, and the obtained identifier is not found in the pre-saved identifier, and the content is load balanced. The device sends a pre-cached message.
本发明实施例的RR装置中,第一发送模块还配置为:In the RR device of the embodiment of the present invention, the first sending module is further configured to:
判断出缓存的内容超过有效期,或判断出缓存的内容被访问的次数小于或等于预设次数,向内容负载均衡装置发送表示删除缓存的内容的消息。It is determined that the cached content exceeds the validity period, or it is determined that the cached content is accessed less than or equal to the preset number of times, and the message indicating that the cached content is deleted is sent to the content load balancing device.
本发明实施例的RR装置中,第一发送模块还配置为:In the RR device of the embodiment of the present invention, the first sending module is further configured to:
在预先保存的标识中查找到获得的标识,向用户设备发送表示重定向的标识。The obtained identifier is found in the pre-saved identifier, and the identifier indicating the redirect is sent to the user equipment.
参见图4,本发明实施例还提出了一种内容负载均衡装置,至少包括:Referring to FIG. 4, an embodiment of the present invention further provides a content load balancing apparatus, including at least:
第二接收模块,配置为接收到来自请求路由RR装置的预缓存消息;a second receiving module, configured to receive a pre-cache message from the request routing RR device;
第二发送模块,配置为获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。The second sending module is 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.
本发明实施例的内容负载均衡装置中,第二发送模块配置为:In the content load balancing device of the embodiment of the present invention, the second sending module is configured to:
在预先设置的正则表达式和标识之间的对应关系中,查找与预缓存消息中的URL相匹配的正则表达式对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。In the correspondence between the preset regular expression and the identifier, the identifier corresponding to the regular expression matching the URL in the pre-cache message is searched, and the pre-cache message is sent to the cache device corresponding to the obtained identifier.
本发明实施例的内容负载均衡装置中,第二接收模块还配置为:In the content load balancing device of the embodiment of the present invention, the second receiving module is further configured to:
接收到来自RR装置的表示删除缓存的内容的消息;Receiving a message from the RR device indicating deletion of the cached content;
第二发送模块还配置为:The second sending module is further configured to:
获取表示删除缓存的内容的消息中的URL对应的标识,将表示删除缓 存的内容的消息发送给获得的标识对应的缓存设备。Obtaining an identifier corresponding to the URL in the message indicating that the cached content is deleted, indicating that the deletion is slow The message of the stored content is sent to the cache device corresponding to the obtained identifier.
本发明实施例的内容负载均衡装置中,第二接收模块还配置为:In the content load balancing device of the embodiment of the present invention, the second receiving module is further configured to:
接收到来自用户设备的访问请求;Receiving an access request from a user device;
第二发送模块还配置为于:The second sending module is further configured to:
获取访问请求中的URL对应的标识,向用户设备发送表示重定向的标识。Obtaining an identifier corresponding to the URL in the access request, and sending an identifier indicating the redirect to the user equipment.
参见图5,本发明实施例还提出了一种缓存设备,至少包括:Referring to FIG. 5, an embodiment of the present invention further provides a cache device, including at least:
第三接收模块,配置为接收到来自内容负载均衡装置的预缓存消息;a third receiving module, configured to receive a pre-cache message from the content load balancing device;
第三发送模块,配置为获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。The third sending module is configured to obtain an identifier corresponding to the URL in the pre-cached message, calculate a path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a message that the cache succeeds to the RR device. .
本发明实施例的缓存设备中,第三发送模块配置为:In the cache device of the embodiment of the present invention, the third sending module is configured to:
在预先设置的正则表达式和标识之间的对应关系中,查找与预缓存消息中的URL相匹配的正则表达式对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。In the correspondence between the preset regular expression and the identifier, the identifier corresponding to the regular expression matching the URL in the pre-cache message is searched, and the path corresponding to the identifier is calculated, and the content corresponding to the URL downloaded from the server is Cache to the calculated path and send a message that the cache is successful to the RR device.
本发明实施例的缓存设备中,还包括:The cache device in the embodiment of the present invention further includes:
删除模块,配置为判断出缓存的内容超过有效期;或者,判断出缓存的总大小或缓存的个数大于或等于第二预设阈值,删除超过有效期的缓存的内容,或删除被访问次数最小的缓存的内容。Deleting a module, configured to determine that the cached content exceeds a valid period; or, determining that the total size of the cache or the number of caches is greater than or equal to a second preset threshold, deleting the cached content that exceeds the validity period, or deleting the least accessed number of times Cached content.
本发明实施例的缓存设备中,第三接收模块还配置为:In the cache device of the embodiment of the present invention, the third receiving module is further configured to:
接收到来自用户设备的访问请求;Receiving an access request from a user device;
第三发送模块还配置为:The third sending module is further configured to:
获取访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。 The identifier corresponding to the URL in the access request is obtained, and the path corresponding to the identifier is calculated, and the content in the path is sent to the user equipment.
参见图6,本发明实施例还提出了一种缓存和服务内容的系统,至少包括:Referring to FIG. 6, an embodiment of the present invention further provides a system for caching and serving content, including at least:
请求路由RR装置,配置为劫持用户设备的访问请求;获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;接收到来自缓存设备的缓存成功的消息,保存获得的标识;The requesting routing RR device is configured to hijack the access request of the user equipment; obtaining the identifier corresponding to the resource locator URL in the access request, not finding the obtained identifier in the pre-saved identifier, and sending the pre-cache message to the content load balancing device; Receiving a message that the cache is successful from the cache device, and saving the obtained identifier;
内容负载均衡装置,配置为获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备;The content load balancing device is 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 cache device is configured to obtain an identifier corresponding to the URL in the pre-cached message, calculate a path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a message that the cache is successful to the RR device.
本发明实施例提供的系统中,RR装置还配置为:In the system provided by the embodiment of the present invention, the RR device is further configured to:
在预先保存的标识中查找到获得的标识,向用户设备发送表示重定向的标识;Finding the obtained identifier in the pre-stored identifier, and sending an identifier indicating the redirect to the user equipment;
内容负载均衡装置还配置为于:The content load balancing device is also configured to:
接收到来自用户设备的访问请求,获取访问请求中的URL对应的标识,向用户设备发送表示重定向的标识;Receiving an access request from the user equipment, obtaining an identifier corresponding to the URL in the access request, and sending an identifier indicating the redirection to the user equipment;
缓存设备还配置为:The cache device is also configured to:
接收到来自用户设备的访问请求,获取访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。Receiving an access request from the user equipment, obtaining an identifier corresponding to the URL in the access request, calculating a path corresponding to the identifier, and transmitting the content in the path to the user equipment.
本实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述任意一个技术方案提供的方法,例如,如图2至图6所示方法的至少之一。The embodiment further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the method provided by any one of the foregoing technical solutions, for example, as shown in FIG. 2 to FIG. 6 . At least one of the methods shown.
所述计算机存储介质可为随机存储介质RAM、只读存储介质RAM或闪存Flash等,可选为非瞬间存储介质。 The computer storage medium may be a random storage medium RAM, a read only storage medium RAM or a flash memory, etc., and may be a non-transitory storage medium.
需要说明的是,以上所述的实施例仅是为了便于本领域的技术人员理解而已,并不用于限制本发明的保护范围,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。 It should be noted that the above-mentioned embodiments are only intended to facilitate the understanding of those skilled in the art, and are not intended to limit the scope of the present invention. Any modifications made in accordance with the principles of the present invention should be understood as falling within the scope of the present invention. The scope of protection.

Claims (32)

  1. 一种服务内容的缓存及提供方法,包括:A method for caching and providing service content, including:
    请求路由RR装置劫持用户设备的访问请求;Requesting the routing RR device to hijack the access request of the user equipment;
    RR装置获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;The RR device obtains the identifier corresponding to the resource locator URL in the access request, finds the obtained identifier in the pre-stored identifier, 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 cache 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, and sends the cached success message to the RR device.
    RR装置保存获得的标识。The RR device saves the obtained identification.
  2. 根据权利要求1所述的方法,其中,该方法之前还包括:The method of claim 1 wherein the method further comprises:
    所述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.
  3. 根据权利要求1或2所述的方法,其中,所述RR装置获取访问请求中的URL对应的标识包括:The method according to claim 1 or 2, wherein the identifier that the RR device obtains the URL in the access request comprises:
    所述RR装置在预先设置的正则表达式和标识之间的对应关系中,查找与所述访问请求中的URL相匹配的正则表达式对应的标识。The RR device searches for an identifier corresponding to the regular expression that matches the URL in the access request in a correspondence between the preset regular expression and the identifier.
  4. 根据权利要求1或2所述的方法,其中,所述内容负载均衡装置获取预缓存消息中的URL对应的标识包括:The method according to claim 1 or 2, wherein the identifier corresponding to the URL in the pre-cache message obtained by the content load balancing device comprises:
    所述内容负载均衡装置在预先设置的正则表达式和标识之间的对应关系中,查找与所述预缓存消息中的URL相匹配的正则表达式对应的标识。The content load balancing device searches for an identifier corresponding to the regular expression that matches the URL in the pre-cached message in a correspondence between the preset regular expression and the identifier.
  5. 根据权利要求1或2所述的方法,其中,所述缓存设备获取预缓存消息中的URL对应的标识包括:The method of claim 1 or 2, wherein the obtaining, by the cache device, the identifier corresponding to the URL in the pre-cache message comprises:
    所述缓存设备在预先设置的正则表达式和标识之间的对应关系中,查 找与所述预缓存消息中的URL相匹配的正则表达式对应的标识。The cache device checks the correspondence between the preset regular expression and the identifier. Find an identifier corresponding to the regular expression that matches the URL in the pre-cached message.
  6. 根据权利要求1或2所述的方法,其中,当所述缓存设备判断出缓存的内容超过有效期;或者,判断出缓存的总大小或缓存的个数大于或等于第二预设阈值时,该方法还包括:The method according to claim 1 or 2, wherein when the cache device determines that the cached content exceeds a validity period; or determines that the total size of the cache or the number of caches is greater than or equal to a second preset threshold, The method also includes:
    所述缓存设备删除超过有效期的缓存的内容,或删除被访问次数最小的缓存的内容。The cache device deletes the cached content that exceeds the validity period, or deletes the cached content that is accessed the least.
  7. 根据权利要求1或2所述的方法,其中,当RR装置在预先保存的标识中查找到获得的标识时,该方法还包括:The method according to claim 1 or 2, wherein when the RR device finds the obtained identifier in the pre-saved identifier, the method further comprises:
    所述RR装置向用户设备发送表示重定向的标识;The RR device sends an identifier indicating the redirection to the user equipment;
    所述内容负载均衡装置接收到来自所述用户设备的访问请求,获取所述访问请求中的URL对应的标识,向所述用户设备发送表示重定向的标识;Receiving, by the content load balancing device, an access request from the user equipment, acquiring an identifier corresponding to the URL in the access request, and sending an identifier indicating the redirect to the user equipment;
    获得的标识对应的缓存设备接收到来自所述用户设备的访问请求,获取所述访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。The cache device corresponding to the obtained identifier receives the access request from the user device, 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.
  8. 一种请求路由RR装置,其中,至少包括:A request routing RR device, wherein at least:
    劫持模块,配置为劫持用户设备的访问请求;The hijacking module is configured to hijack an access request of the user equipment;
    第一发送模块,配置为获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;The first sending module is configured to obtain an identifier corresponding to the resource locator URL in the access request, and the obtained identifier is not found in the pre-stored identifier, and the pre-cache message is sent to the content load balancing device.
    第一接收模块,配置为接收到来自访问请求中的URL对应的标识对应的缓存设备的缓存成功的消息,保存获得的标识。The first receiving module is configured to receive a message that the cache of the cache device corresponding to the identifier corresponding to the URL in the access request is successful, and save the obtained identifier.
  9. 根据权利要求8所述的RR装置,其中,所述劫持模块配置为:The RR device of claim 8, wherein the hijacking module is configured to:
    判断出所述URL对应的内容被访问的次数大于或等于第一预设阈值,劫持用户设备的访问请求。And determining that the number of times the content corresponding to the URL is accessed is greater than or equal to a first preset threshold, and the access request of the user equipment is hijacked.
  10. 根据权利要求8或9所述的RR装置,其中,所述第一发送模块配 置为:The RR device according to claim 8 or 9, wherein said first transmitting module is configured Set to:
    在预先设置的正则表达式和标识之间的对应关系中,查找与所述访问请求中的URL相匹配的正则表达式对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息。In the correspondence between the preset regular expression and the identifier, searching for an identifier corresponding to the regular expression matching the URL in the access request, and finding the identifier obtained in the pre-saved identifier, to the content The load balancing device sends a pre-cache message.
  11. 根据权利要求8或9所述的RR装置,其中,所述第一发送模块还配置为:The RR device according to claim 8 or 9, wherein the first sending module is further configured to:
    在预先保存的标识中查找到获得的标识,向用户设备发送表示重定向的标识。The obtained identifier is found in the pre-saved identifier, and the identifier indicating the redirect is sent to the user equipment.
  12. 一种内容负载均衡装置,,至少包括:A content load balancing device includes at least:
    第二接收模块,配置为接收到来自请求路由RR装置的预缓存消息;a second receiving module, configured to receive a pre-cache message from the request routing RR device;
    第二发送模块,配置为获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。The second sending module is 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.
  13. 根据权利要求12所述的内容负载均衡装置,其中,所述第二发送模块配置为:The content load balancing device of claim 12, wherein the second sending module is configured to:
    在预先设置的正则表达式和标识之间的对应关系中,查找与所述预缓存消息中的URL相匹配的正则表达式对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。In the correspondence between the preset regular expression and the identifier, the identifier corresponding to the regular expression matching the URL in the pre-cached message is searched, and the pre-cached message is sent to the cache device corresponding to the obtained identifier.
  14. 根据权利要求12所述的内容负载均衡装置,其中,所述第二接收模块还配置为:The content load balancing device of claim 12, wherein the second receiving module is further configured to:
    接收到来自用户设备的访问请求;Receiving an access request from a user device;
    所述第二发送模块还用于:The second sending module is further configured to:
    获取所述访问请求中的URL对应的标识,向所述用户设备发送表示重定向的标识。Obtaining an identifier corresponding to the URL in the access request, and sending an identifier indicating the redirect to the user equipment.
  15. 一种缓存设备,,至少包括:A cache device, comprising at least:
    第三接收模块,配置为接收到来自内容负载均衡装置的预缓存消息; a third receiving module, configured to receive a pre-cache message from the content load balancing device;
    第三发送模块,配置为获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。The third sending module is configured to obtain an identifier corresponding to the URL in the pre-cached message, calculate a path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a message that the cache succeeds to the RR device. .
  16. 根据权利要求15所述的缓存设备,其中,所述第三发送模块配置为:The cache device according to claim 15, wherein the third sending module is configured to:
    在预先设置的正则表达式和标识之间的对应关系中,查找与所述预缓存消息中的URL相匹配的正则表达式对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。In the correspondence between the preset regular expression and the identifier, searching for an identifier corresponding to the regular expression matching the URL in the pre-cached message, calculating a path corresponding to the identifier, and corresponding to the URL downloaded from the server The content is cached to the calculated path and a message that the cache is successful is sent to the RR device.
  17. 根据权利要求15所述的缓存设备,其中,还包括:The cache device according to claim 15, further comprising:
    删除模块,配置为判断出缓存的内容超过有效期;或者,判断出缓存的总大小或缓存的个数大于或等于第二预设阈值,删除超过有效期的缓存的内容,或删除被访问次数最小的缓存的内容。Deleting a module, configured to determine that the cached content exceeds a valid period; or, determining that the total size of the cache or the number of caches is greater than or equal to a second preset threshold, deleting the cached content that exceeds the validity period, or deleting the least accessed number of times Cached content.
  18. 根据权利要求15所述的缓存设备,其中,所述第三接收模块还配置为:The cache device according to claim 15, wherein the third receiving module is further configured to:
    接收到来自用户设备的访问请求;Receiving an access request from a user device;
    所述第三发送模块还用于:The third sending module is further configured to:
    获取所述访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。Obtaining an identifier corresponding to the URL in the access request, calculating a path corresponding to the identifier, and sending the content in the path to the user equipment.
  19. 一种缓存和服务内容的系统,,至少包括:A system for caching and serving content, including at least:
    请求路由RR装置,配置为劫持用户设备的访问请求;获取访问请求中的资源定位器URL对应的标识,在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息;接收到来自缓存设备的缓存成功的消息,保存获得的标识;The requesting routing RR device is configured to hijack the access request of the user equipment; obtaining the identifier corresponding to the resource locator URL in the access request, not finding the obtained identifier in the pre-saved identifier, and sending the pre-cache message to the content load balancing device; Receiving a message that the cache is successful from the cache device, and saving the obtained identifier;
    内容负载均衡装置,配置为获取预缓存消息中的URL对应的标识,将 预缓存消息发送给获得的标识对应的缓存设备;The content load balancing device is configured to obtain an identifier corresponding to the URL in the pre-cached message, and The pre-cache message is sent to the cache device corresponding to the obtained identifier;
    缓存设备,配置为获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。The cache device is configured to obtain an identifier corresponding to the URL in the pre-cached message, calculate a path corresponding to the identifier, cache the content corresponding to the URL downloaded from the server to the calculated path, and send a message that the cache is successful to the RR device.
  20. 根据权利要求19所述的系统,其中,所述RR装置还配置为:The system of claim 19 wherein said RR device is further configured to:
    在预先保存的标识中查找到获得的标识,向用户设备发送表示重定向的标识;Finding the obtained identifier in the pre-stored identifier, and sending an identifier indicating the redirect to the user equipment;
    所述内容负载均衡装置还配置为:The content load balancing device is further configured to:
    接收到来自所述用户设备的访问请求,获取所述访问请求中的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 the redirect to the user equipment;
    所述缓存设备还配置为:The cache device is further configured to:
    接收到来自所述用户设备的访问请求,获取所述访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。Receiving an access request from the user equipment, obtaining an identifier corresponding to the URL in the access request, calculating a path corresponding to the identifier, and transmitting the content in the path to the user equipment.
  21. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至7所述服务内容的缓存及提供方法。A computer storage medium having stored therein computer executable instructions for performing the caching and providing method of the service content of claims 1 to 7.
  22. 一种服务内容的缓存及提供方法,包括:A method for caching and providing service content, including:
    劫持用户设备的访问请求;Hijacking access requests from user devices;
    获取访问请求中的资源定位器URL对应的标识;Obtaining an identifier corresponding to the resource locator URL in the access request;
    在预先保存的标识中查找不到获得的标识时,向内容负载均衡装置发送预缓存消息;Sending a pre-cache message to the content load balancing device when the obtained identifier is not found in the pre-saved identifier;
    接收到来自访问请求中的URL对应的标识对应的缓存设备的缓存成功的消息,保存获得的标识。The message that the cache of the cache device corresponding to the identifier corresponding to the URL corresponding to the URL in the access request is successfully received is saved, and the obtained identifier is saved.
  23. 根据权利要求22所述的方法,其中,所述劫持用户设备的访问请求,包括: The method of claim 22, wherein the hijacking an access request of the user equipment comprises:
    判断出所述URL对应的内容被访问的次数大于或等于第一预设阈值,劫持用户设备的访问请求。And determining that the number of times the content corresponding to the URL is accessed is greater than or equal to a first preset threshold, and the access request of the user equipment is hijacked.
  24. 根据权利要求22或23所述的方法,其中,所述方法还包括:The method of claim 22 or 23, wherein the method further comprises:
    在预先设置的正则表达式和标识之间的对应关系中,查找与所述访问请求中的URL相匹配的正则表达式对应的标识;In a correspondence between the preset regular expression and the identifier, searching for an identifier corresponding to the regular expression matching the URL in the access request;
    所述在预先保存的标识中查找不到获得的标识时,向内容负载均衡装置发送预缓存消息,包括:When the obtained identifier is not found in the pre-stored identifier, the pre-cache message is sent to the content load balancing device, including:
    在预先保存的标识中查找不到获得的标识,向内容负载均衡装置发送预缓存消息。The obtained identifier is not found in the pre-saved identifier, and the pre-cache message is sent to the content load balancing device.
  25. 根据权利要求22或23所述的方法,其中,所述方法还包括:The method of claim 22 or 23, wherein the method further comprises:
    在预先保存的标识中查找到获得的标识,向用户设备发送表示重定向的标识。The obtained identifier is found in the pre-saved identifier, and the identifier indicating the redirect is sent to the user equipment.
  26. 一种服务内容的缓存及提供方法,包括:A method for caching and providing service content, including:
    接收到来自请求路由RR装置的预缓存消息;Receiving a pre-cache message from the request routing RR device;
    获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。The identifier corresponding to the URL in the pre-cached message is obtained, and the pre-cached message is sent to the cache device corresponding to the obtained identifier.
  27. 根据权利要求26所述的方法,其中,所述获取预缓存消息中的URL对应的标识,将预缓存消息发送给获得的标识对应的缓存设备,包括:在预先设置的正则表达式和标识之间的对应关系中,查找与所述预缓存消息中的URL相匹配的正则表达式对应的标识,将预缓存消息发送给获得的标识对应的缓存设备。The method of claim 26, wherein the obtaining the identifier corresponding to the URL in the pre-cache message, and sending the pre-cache message to the cache device corresponding to the obtained identifier, comprising: a preset regular expression and an identifier In the corresponding relationship, the identifier corresponding to the regular expression matching the URL in the pre-cache message is searched, and the pre-cache message is sent to the cache device corresponding to the obtained identifier.
  28. 根据权利要求26所述的方法,其中,所述方法还包括:The method of claim 26, wherein the method further comprises:
    接收到来自用户设备的访问请求;Receiving an access request from a user device;
    获取所述访问请求中的URL对应的标识,向所述用户设备发送表示重定向的标识。 Obtaining an identifier corresponding to the URL in the access request, and sending an identifier indicating the redirect to the user equipment.
  29. 一种服务内容的缓存及提供方法,包括:A method for caching and providing service content, including:
    接收到来自内容负载均衡装置的预缓存消息;Receiving a pre-cache message from the content load balancing device;
    获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。The identifier corresponding to the URL in the pre-cached message is obtained, and the path corresponding to the identifier is calculated, and the content corresponding to the URL downloaded from the server is cached to the calculated path, and the message that the cache is successful is sent to the RR device.
  30. 根据权利要求29所述的方法,其中,所述获取预缓存消息中的URL对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息,包括:The method according to claim 29, wherein the obtaining the identifier corresponding to the URL in the pre-cache message, calculating the path corresponding to the identifier, and buffering the content corresponding to the URL downloaded from the server to the calculated path, and to the RR The device sends a message that the cache is successful, including:
    在预先设置的正则表达式和标识之间的对应关系中,查找与所述预缓存消息中的URL相匹配的正则表达式对应的标识,计算标识对应的路径,将从服务器上下载的URL对应的内容缓存到计算得到的路径,并向RR装置发送缓存成功的消息。In the correspondence between the preset regular expression and the identifier, searching for an identifier corresponding to the regular expression matching the URL in the pre-cached message, calculating a path corresponding to the identifier, and corresponding to the URL downloaded from the server The content is cached to the calculated path and a message that the cache is successful is sent to the RR device.
  31. 根据权利要求29所述的方法,其中,所述方法还包括:The method of claim 29, wherein the method further comprises:
    判断出缓存的内容超过有效期;或者,判断出缓存的总大小或缓存的个数大于或等于第二预设阈值,删除超过有效期的缓存的内容,或删除被访问次数最小的缓存的内容。It is determined that the cached content exceeds the validity period; or, the total size of the cache or the number of caches is determined to be greater than or equal to a second preset threshold, the cached content exceeding the validity period is deleted, or the cached content with the least number of times of access is deleted.
  32. 根据权利要求29所述的方法,其中,所述方法还包括:The method of claim 29, wherein the method further comprises:
    接收到来自用户设备的访问请求;Receiving an access request from a user device;
    获取所述访问请求中的URL对应的标识,计算标识对应的路径,将路径中的内容发送给用户设备。 Obtaining an identifier corresponding to the URL in the access request, calculating a path corresponding to the identifier, and sending the content in the path to the user equipment.
PCT/CN2016/105244 2015-11-10 2016-11-09 Method, device and system for caching and providing service contents and storage medium WO2017080459A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510760276.4 2015-11-10
CN201510760276.4A CN106686033A (en) 2015-11-10 2015-11-10 Method, device and system for cache and service content

Publications (1)

Publication Number Publication Date
WO2017080459A1 true WO2017080459A1 (en) 2017-05-18

Family

ID=58694522

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/105244 WO2017080459A1 (en) 2015-11-10 2016-11-09 Method, device and system for caching and providing service contents and storage medium

Country Status (2)

Country Link
CN (1) CN106686033A (en)
WO (1) WO2017080459A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020272A (en) * 2017-08-14 2019-07-16 中国电信股份有限公司 Caching method, device and computer storage medium
CN111104528A (en) * 2018-10-29 2020-05-05 浙江宇视科技有限公司 Picture obtaining method and device and client
CN112256733A (en) * 2020-10-19 2021-01-22 北京字节跳动网络技术有限公司 Data caching method and device, electronic equipment and computer readable storage medium
CN113596513A (en) * 2021-08-02 2021-11-02 典基网络科技(上海)有限公司 Video content distribution method and system

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 kind of data access method and device of content distributing network CDN
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

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070260701A1 (en) * 2006-05-05 2007-11-08 Lee Thomason System and method for cacheing web files
CN102170479A (en) * 2011-05-21 2011-08-31 成都市华为赛门铁克科技有限公司 Updating method of Web buffer and updating device of Web buffer
CN102523299A (en) * 2011-12-22 2012-06-27 北京邮电大学 Cache method for content identification based on message digests
CN102882939A (en) * 2012-09-10 2013-01-16 北京蓝汛通信技术有限责任公司 Load balancing method, load balancing equipment and extensive domain acceleration access system
CN103036967A (en) * 2012-12-10 2013-04-10 北京奇虎科技有限公司 Data download system and device and method for download management
CN203313219U (en) * 2013-06-25 2013-11-27 余兵 Caching acceleration system for local area network
CN103916437A (en) * 2013-01-05 2014-07-09 中国移动通信集团公司 File release system, device and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070260701A1 (en) * 2006-05-05 2007-11-08 Lee Thomason System and method for cacheing web files
CN102170479A (en) * 2011-05-21 2011-08-31 成都市华为赛门铁克科技有限公司 Updating method of Web buffer and updating device of Web buffer
CN102523299A (en) * 2011-12-22 2012-06-27 北京邮电大学 Cache method for content identification based on message digests
CN102882939A (en) * 2012-09-10 2013-01-16 北京蓝汛通信技术有限责任公司 Load balancing method, load balancing equipment and extensive domain acceleration access system
CN103036967A (en) * 2012-12-10 2013-04-10 北京奇虎科技有限公司 Data download system and device and method for download management
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020272A (en) * 2017-08-14 2019-07-16 中国电信股份有限公司 Caching method, device and computer storage medium
CN111104528A (en) * 2018-10-29 2020-05-05 浙江宇视科技有限公司 Picture obtaining method and device and client
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 and device, electronic equipment and computer readable storage medium
CN113596513A (en) * 2021-08-02 2021-11-02 典基网络科技(上海)有限公司 Video content distribution method and system

Also Published As

Publication number Publication date
CN106686033A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
WO2017080459A1 (en) Method, device and system for caching and providing service contents and storage medium
US10491657B2 (en) Network acceleration method, apparatus and device based on router device
US11194719B2 (en) Cache optimization
US10798203B2 (en) Method and apparatus for reducing network resource transmission size using delta compression
CN107025234B (en) Information pushing method and cache server
US9390200B2 (en) Local caching device, system and method for providing content caching service
US11044335B2 (en) Method and apparatus for reducing network resource transmission size using delta compression
US9608957B2 (en) Request routing using network computing components
US9549038B1 (en) Cacheable resource location selection
US20140136952A1 (en) Improving web sites performance using edge servers in fog computing architecture
EP2503759A1 (en) Method, apparatus and cache system for providing file downloading service
US10897450B2 (en) Communication method and communication apparatus
US20130132544A1 (en) Precise geolocation for content caching in evolved packet core networks
US20050117558A1 (en) Method for reducing data transport volume in data networks
US20150201033A1 (en) Content specific router caching
WO2017025052A1 (en) Resource caching method and device
US20130346552A1 (en) Download method, system, and device for mobile terminal
US8909808B2 (en) Redundancy elimination for web caching
US11290487B2 (en) Method and apparatus for reducing latency of network protocols
US20170295052A1 (en) Cache method, cache edge server, cache core server, and cache system
US10075553B1 (en) Systems and methods for automatically rewriting network page code
CN103139252A (en) Achieving method of network proxy cache acceleration and device thereof
EP3389240B1 (en) Method and system for processing cache cluster service
WO2017020597A1 (en) Resource cache method and apparatus
WO2019052299A1 (en) Sdn switch, and application and management method for sdn switch

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16863635

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16863635

Country of ref document: EP

Kind code of ref document: A1