[go: up one dir, main page]

CN106411978A - Resource caching method and apparatus - Google Patents

Resource caching method and apparatus Download PDF

Info

Publication number
CN106411978A
CN106411978A CN201510464724.6A CN201510464724A CN106411978A CN 106411978 A CN106411978 A CN 106411978A CN 201510464724 A CN201510464724 A CN 201510464724A CN 106411978 A CN106411978 A CN 106411978A
Authority
CN
China
Prior art keywords
resource
server
terminal device
caching
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510464724.6A
Other languages
Chinese (zh)
Other versions
CN106411978B (en
Inventor
黄凌云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510464724.6A priority Critical patent/CN106411978B/en
Priority to PCT/CN2016/077876 priority patent/WO2017020597A1/en
Publication of CN106411978A publication Critical patent/CN106411978A/en
Application granted granted Critical
Publication of CN106411978B publication Critical patent/CN106411978B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明的实施例提供一种资源缓存方法,该方法包括互联网缓存装置在接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件;发送解析请求到解析服务器,所述解析请求中携带所述资源的URL中的域名;接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识;当所述解析得到的服务器的标识为所述资源服务器的标识时,缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述互联网缓存装置中,以提供给访问所述资源的终端设备。能够防止互联网缓存装置缓存恶意资源,从而防止其将恶意资源当做源服务器资源提供给其他终端设备用户。

An embodiment of the present invention provides a resource caching method, the method comprising: after receiving the resource returned by the resource server to the terminal device, the Internet caching device determines that the resource satisfies the first caching condition; sends a parsing request to the parsing server, and the The domain name in the URL of the resource is carried in the parsing request; receiving the server ID obtained by the parsing server according to the domain name in the URL of the resource; when the server ID obtained by the parsing is the resource server When identifying, caching the resource, the caching the resource includes caching the resource in the Internet caching device, so as to provide the terminal device accessing the resource. It is possible to prevent the Internet caching device from caching malicious resources, thereby preventing it from providing the malicious resources as source server resources to other terminal device users.

Description

一种资源缓存方法及装置A resource caching method and device

技术领域technical field

本发明涉及通信领域,尤其涉及一种资源缓存方法及装置。The present invention relates to the communication field, and in particular to a resource caching method and device.

背景技术Background technique

随着互联网的蓬勃发展,网络流量快速增长,给网络运营商带来了巨大的挑战。网络基础设施扩容投资巨大,难以匹配用户流量的增长速度。互联网缓存(Web Cache)系统是解决这一问题的有效方式之一。现网流量大部分来自超文本传输协议(Hyper Text TransferProtocol,HTTP),主要包括视频、文件下载、网页浏览等,由于HTTP是基于客户机/服务器(Client/Server,C/S)的模式,用户访问资源时都需要到源服务器获取同样的数据,访问同一资源的人数越多,产生的重复数据流量越大。With the vigorous development of the Internet, network traffic increases rapidly, which brings great challenges to network operators. The investment in network infrastructure expansion is huge, and it is difficult to match the growth rate of user traffic. Internet caching (Web Cache) system is one of the effective ways to solve this problem. Most of the current network traffic comes from Hyper Text Transfer Protocol (Hyper Text Transfer Protocol, HTTP), mainly including video, file download, web browsing, etc. Since HTTP is based on the client/server (Client/Server, C/S) model, users When accessing resources, it is necessary to obtain the same data from the source server. The more people accessing the same resource, the greater the duplicate data traffic generated.

Web Cache基于存储换带宽、流量本地化的思路,将热门资源缓存到本地,直接从本地为终端设备用户提供服务,大量减少了到上级网络的流量,节省了网络运营商的投资,如网络基础设施建设和网间结算费用等,同时还降低了响应终端设备访问的时延,提高了用户体验。Based on the idea of exchanging storage for bandwidth and traffic localization, Web Cache caches popular resources locally and directly provides services to terminal device users locally, greatly reducing the traffic to the upper-level network and saving the investment of network operators, such as network infrastructure Facilities construction and inter-network settlement fees, etc., while reducing the delay in responding to terminal equipment access, improving user experience.

透明缓存是Web Cache的一种实现方式,透明缓存技术是指透明缓存使用Web服务器地址与终端设备交互,使用终端设备地址与Web服务器交互,使得终端设备和Web服务器对缓存系统无感知。通常,透明缓存根据终端设备建立传输控制协议(TransmissionControl Protocol,TCP)连接的请求报文中的目标互联网协议(Internet Protocol,IP)地址确定源服务器IP地址,如果该报文被终端设备恶意伪造或指向恶意网站,则可能导致Web Cache将恶意内容缓存到本地,并当作源服务器内容提供给其它终端设备用户,例如,终端设备通过透明缓存建立了与恶意网站的TCP连接后,将访问请求伪造成Get http://www.baidu.com/20150619qq_setup.exe通过透明缓存发送给该恶意网站,该恶意网站通过透明缓存返回木马病毒给该终端设备,如果透明缓存判断http://www.baidu.com/20150619qq_setup.exe指示的资源为热门资源,则会将该恶意网站返回的木马病毒缓存在本地,当其他终端用户获取真正的http://www.baidu.com/20150619qq_setup.exe指示的资源时,透明缓存会将该木马病毒返回给其他终端设备。Transparent caching is an implementation of Web Cache. The transparent caching technology means that transparent caching uses the address of the web server to interact with the terminal device, and uses the address of the terminal device to interact with the web server, making the terminal device and the web server unaware of the caching system. Usually, the transparent cache determines the IP address of the source server according to the target Internet Protocol (Internet Protocol, IP) address in the request message for establishing a Transmission Control Protocol (TCP) connection by the terminal device. If the message is maliciously forged by the terminal device or Pointing to a malicious website may cause Web Cache to cache the malicious content locally and provide it to other terminal device users as the content of the source server. For example, after the terminal device establishes a TCP connection with the malicious website through the transparent Cause Get http://www.baidu.com/20150619qq_setup.exe to be sent to the malicious website through the transparent cache, and the malicious website returns the Trojan virus to the terminal device through the transparent cache, if the transparent cache judges http://www.baidu. If the resource indicated by com/20150619qq_setup.exe is a popular resource, the Trojan horse virus returned by the malicious website will be cached locally. When other end users obtain the real resource indicated by http://www.baidu.com/20150619qq_setup.exe , the transparent cache will return the Trojan virus to other terminal devices.

发明内容Contents of the invention

本发明的实施例提供一种资源缓存方法和装置,能够防止互联网缓存装置缓存恶意资源,从而防止其将恶意资源当做源服务器资源提供给其他终端设备用户。Embodiments of the present invention provide a resource caching method and device, which can prevent Internet caching devices from caching malicious resources, thereby preventing them from providing malicious resources as source server resources to other terminal device users.

第一方面,提供了一种资源缓存方法,所述方法包括:互联网缓存装置在接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件;所述互联网缓存装置发送解析请求到解析服务器,所述解析请求中携带所述资源的统一资源定位符URL中的域名;所述互联网缓存装置接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识;当所述解析得到的服务器的标识为所述资源服务器的标识时,所述互联网缓存装置缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述互联网缓存装置中,以提供给访问所述资源的终端设备。In a first aspect, a resource caching method is provided, the method comprising: after receiving the resource returned by the resource server to the terminal device, the Internet caching device determines that the resource satisfies the first caching condition; the Internet caching device sends a resolution Request to the resolution server, the resolution request carries the domain name in the uniform resource locator URL of the resource; the Internet cache device receives the server identification obtained by the resolution server according to the domain name in the URL of the resource ; when the analyzed server identifier is the identifier of the resource server, the Internet caching device caches the resource, and the caching the resource includes caching the resource in the Internet caching device to Provided to terminal devices accessing the resource.

结合第一方面的实现方式,在第一方面第一种可能的实现方式中,在所述接收到资源服务器返回给终端设备的资源之前,所述方法还包括:所述互联网缓存装置接收所述终端设备发送的建立与所述资源服务器的连接的连接请求,所述连接请求中携带所述终端设备的标识和所述资源服务器的标识;所述互联网缓存装置建立所述终端设备与所述资源服务器的连接;所述互联网缓存装置接收所述终端设备发送的对所述资源的访问请求,所述访问请求中携带所述资源的URL中的域名;所述互联网缓存装置根据所述建立的所述终端设备与所述资源服务器的连接,发送所述访问请求到所述资源服务器;所述互联网缓存装置接收所述资源服务器返回的所述资源。With reference to the implementation of the first aspect, in a first possible implementation of the first aspect, before receiving the resource returned by the resource server to the terminal device, the method further includes: receiving, by the Internet caching device, the A connection request sent by a terminal device to establish a connection with the resource server, the connection request carrying the identifier of the terminal device and the identifier of the resource server; the Internet caching device establishes the connection between the terminal device and the resource server server connection; the Internet caching device receives the access request to the resource sent by the terminal device, and the access request carries the domain name in the URL of the resource; the Internet caching device according to the established The terminal device is connected to the resource server, and the access request is sent to the resource server; the Internet caching device receives the resource returned by the resource server.

结合第一方面、第一方面的第一种可能的实现方式,在第二种可能实现的方式中,当所述解析得到的服务器的标识不为所述资源服务器的标识时,所述互联网缓存装置不缓存所述资源。With reference to the first aspect and the first possible implementation of the first aspect, in the second possible implementation, when the identifier of the server obtained through parsing is not the identifier of the resource server, the Internet cache The device does not cache the resource.

结合第一方面、第一方面的第一种至第二种可能的实现方式,在第三种可能实现的方式中,所述互联网缓存装置建立所述终端设备与所述资源服务器的连接包括:所述互联网缓存装置通过所述终端设备的标识建立所述终端设备与所述资源服务器的连接,所述终端设备的标识包括所述终端设备的互联网协议IP地址。With reference to the first aspect and the first to second possible implementations of the first aspect, in a third possible implementation, the Internet caching device establishing the connection between the terminal device and the resource server includes: The Internet caching device establishes a connection between the terminal device and the resource server through the identifier of the terminal device, and the identifier of the terminal device includes an Internet Protocol IP address of the terminal device.

结合第一方面、第一方面的第一种至第三种可能的实现方式,在第四种可能实现的方式中,所述互联网缓存装置还发送所述资源给所述终端设备,所述互联网缓存装置通过所述资源服务器的标识发送所述资源给所述终端设备,所述资源服务器的标识包括所述资源服务器的IP地址。With reference to the first aspect and the first to third possible implementation manners of the first aspect, in a fourth possible implementation manner, the Internet caching device further sends the resource to the terminal device, and the Internet The cache device sends the resource to the terminal device by using the identifier of the resource server, where the identifier of the resource server includes the IP address of the resource server.

结合第一方面、第一方面的第一种至第四种可能的实现方式,在第五种可能实现的方式中,所述连接请求包括传输控制协议TCP连接请求,所述对所述资源的访问请求包括超文本传输协议HTTP请求,所述解析服务器包括域名系统DNS服务器。With reference to the first aspect and the first to fourth possible implementations of the first aspect, in a fifth possible implementation, the connection request includes a Transmission Control Protocol TCP connection request, and the resource request The access request includes a hypertext transfer protocol HTTP request, and the resolution server includes a domain name system DNS server.

结合第一方面、第一方面的第一种至第五种可能的实现方式,在第六种可能实现的方式中,所述确定所述资源满足第一缓存条件包括确定所述资源满足资源访问热度统计条件,所述资源访问热度统计包括一定时间内对访问同一资源的频次的统计。With reference to the first aspect and the first to fifth possible implementations of the first aspect, in a sixth possible implementation, the determining that the resource satisfies the first cache condition includes determining that the resource satisfies resource access Popularity statistics conditions, the resource access popularity statistics include statistics on the frequency of accessing the same resource within a certain period of time.

第二方面,提供一种资源缓存装置,包括处理模块,发送模块,接收模块和缓存模块:所述处理模块,用于在所述接收模块接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件;所述发送模块,用于发送解析请求到解析服务器,所述解析请求中携带所述资源的统一资源定位符URL中的域名;所述接收模块,用于接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识;所述缓存模块,用于当所述解析得到的服务器的标识为所述资源服务器的标识时,缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述缓存模块中,以提供给访问所述资源的终端设备。In the second aspect, there is provided a resource caching device, including a processing module, a sending module, a receiving module, and a caching module: the processing module is configured to determine the resources returned by the resource server to the terminal device after the receiving module receives the resource The resource satisfies the first cache condition; the sending module is used to send a resolution request to the resolution server, and the resolution request carries the domain name in the uniform resource locator URL of the resource; the receiving module is used to receive the The identification of the server obtained by the parsing server according to the domain name in the URL of the resource; the caching module, configured to cache the resource when the identification of the server obtained by the analysis is the identification of the resource server, The caching of the resource includes caching the resource in the caching module to provide the resource to a terminal device that accesses the resource.

结合第二方面的实现方式,在第二方面第一种可能的实现方式中,所述接收模块还用于在所述接收到资源服务器返回给终端设备的资源之前,接收所述终端设备发送的建立与所述资源服务器的连接的连接请求,所述连接请求中携带所述终端设备的标识和所述资源服务器的标识;所述处理模块还用于建立所述终端设备与所述资源服务器的连接;所述接收模块还用于接收所述终端设备发送的对所述资源的访问请求,所述访问请求中携带所述资源的URL中的域名;所述发送模块还用于根据所述建立的所述终端设备与所述资源服务器的连接,发送所述访问请求到所述资源服务器;所述接收模块还用于接收所述资源服务器返回的所述资源。With reference to the implementation of the second aspect, in a first possible implementation of the second aspect, the receiving module is further configured to receive the resource sent by the terminal device before receiving the resources returned by the resource server to the terminal device. A connection request for establishing a connection with the resource server, where the connection request carries the identifier of the terminal device and the identifier of the resource server; the processing module is also used to establish a connection between the terminal device and the resource server connection; the receiving module is also used to receive the access request to the resource sent by the terminal device, and the access request carries the domain name in the URL of the resource; the sending module is also used to establish The connection between the terminal device and the resource server, and sending the access request to the resource server; the receiving module is also configured to receive the resource returned by the resource server.

结合第二方面、第二方面的第一种可能的实现方式,在第二种可能实现的方式中,所述缓存模块还用于当所述解析得到的服务器的标识不为所述资源服务器的标识时,不缓存所述资源。With reference to the second aspect and the first possible implementation manner of the second aspect, in the second possible implementation manner, the cache module is further configured to: When identified, the resource in question is not cached.

结合第二方面、第二方面的第一种至第二种可能的实现方式,在第三种可能实现的方式中,所述处理模块还用于建立所述终端设备与所述资源服务器的连接包括:所述处理模块还用于通过所述终端设备的标识建立所述终端设备与所述资源服务器的连接,所述终端设备的标识包括所述终端设备的互联网协议IP地址。With reference to the second aspect and the first to second possible implementations of the second aspect, in a third possible implementation, the processing module is further configured to establish a connection between the terminal device and the resource server The method includes: the processing module is further configured to establish a connection between the terminal device and the resource server through an identifier of the terminal device, and the identifier of the terminal device includes an Internet Protocol IP address of the terminal device.

结合第二方面、第二方面的第一种至第三种可能的实现方式,在第四种可能实现的方式中,所述发送模块还用于发送所述资源给所述终端设备,所述发送模块通过所述资源服务器的标识发送所述资源给所述终端设备,所述资源服务器的标识包括所述资源服务器的IP地址。With reference to the second aspect and the first to third possible implementation manners of the second aspect, in a fourth possible implementation manner, the sending module is further configured to send the resource to the terminal device, the The sending module sends the resource to the terminal device through the identifier of the resource server, where the identifier of the resource server includes the IP address of the resource server.

结合第二方面、第二方面的第一种至第四种可能的实现方式,在第五种可能实现的方式中,所述连接请求包括传输控制协议TCP连接请求,所述对所述资源的访问请求包括超文本传输协议HTTP请求,所述解析服务器包括域名系统DNS服务器。With reference to the second aspect and the first to fourth possible implementations of the second aspect, in a fifth possible implementation, the connection request includes a Transmission Control Protocol TCP connection request, and the resource request The access request includes a hypertext transfer protocol HTTP request, and the resolution server includes a domain name system DNS server.

结合第二方面、第二方面的第一种至第五种可能的实现方式,在第六种可能实现的方式中,所述确定所述资源满足第一缓存条件包括确定所述资源满足资源访问热度统计条件,所述资源访问热度统计包括一定时间内对访问同一资源的频次的统计。With reference to the second aspect and the first to fifth possible implementations of the second aspect, in a sixth possible implementation, the determining that the resource satisfies the first cache condition includes determining that the resource satisfies resource access Popularity statistics conditions, the resource access popularity statistics include statistics on the frequency of accessing the same resource within a certain period of time.

根据本发明实施例提供的技术方案,通过在接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件,发送解析请求到解析服务器,所述解析请求中携带所述资源的域名,接收所述解析服务器根据所述资源的域名进行解析得到的服务器的标识,当所述解析得到的服务器的标识为所述资源服务器的标识时,缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述互联网缓存装置中,以提供给访问所述资源的终端设备,能够防止互联网缓存装置缓存恶意资源,从而能够防止其将恶意资源当做源服务器资源提供给其他终端用户。According to the technical solution provided by the embodiment of the present invention, after receiving the resource returned by the resource server to the terminal device, it is determined that the resource satisfies the first cache condition, and a parsing request is sent to the parsing server, and the parsing request carries the resource domain name, receiving the server identifier obtained by the parsing server according to the domain name of the resource, and when the resolved server identifier is the identifier of the resource server, cache the resource, and the cache The resource includes caching the resource in the Internet cache device to provide the terminal device accessing the resource, which can prevent the Internet cache device from caching malicious resources, thereby preventing it from providing malicious resources as source server resources to other terminals user.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明实施例应用的网络架构的示意图;FIG. 1 is a schematic diagram of a network architecture applied in an embodiment of the present invention;

图2是依据本发明一实施例的资源缓存方法的示范性流程图;FIG. 2 is an exemplary flowchart of a resource caching method according to an embodiment of the present invention;

图3是依据本发明一实施例的资源缓存方法的示范性信令图;FIG. 3 is an exemplary signaling diagram of a resource caching method according to an embodiment of the present invention;

图4是依据本发明另一实施例的资源缓存方法的示范性信令图;FIG. 4 is an exemplary signaling diagram of a resource caching method according to another embodiment of the present invention;

图5是依据本发明一实施例的通用计算机结构的硬件结构示意图;Fig. 5 is a schematic diagram of the hardware structure of a general-purpose computer structure according to an embodiment of the present invention;

图6是依据本发明一实施例的资源缓存装置的结构示意图。FIG. 6 is a schematic structural diagram of a resource cache device according to an embodiment of the present invention.

具体实施方式detailed description

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透彻理解本发明。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for purposes of illustration rather than limitation, specific details, such as specific system architectures, interfaces, and techniques, are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

图1是依据本发明一实施例的资源缓存方法的网络架构示意图。FIG. 1 is a schematic diagram of a network architecture of a resource caching method according to an embodiment of the present invention.

互联网缓存装置102,部署在终端设备101和资源服务器104之间,对终端设备101发送的资源访问请求进行监控,可以在本地保存资源服务器104返回的响应的副本,资源服务器104返回的响应可以为例如但不限于超文本标记语言(Hyper Text Markup Language,HTML)网页、图片、视频、文件下载中的至少一种。后续收到终端设备101或其他终端设备发送的访问相同资源的请求时,互联网缓存装置102使用已保存在本地的响应副本返回给用户,从而无需再向资源服务器104请求。The Internet caching device 102 is deployed between the terminal device 101 and the resource server 104, monitors the resource access request sent by the terminal device 101, and may store a copy of the response returned by the resource server 104 locally, and the response returned by the resource server 104 may be For example, but not limited to, at least one of hypertext markup language (Hyper Text Markup Language, HTML) web pages, pictures, videos, and file downloads. When subsequently receiving a request for accessing the same resource sent by the terminal device 101 or other terminal devices, the Internet caching device 102 uses the copy of the response stored locally to return to the user, so that there is no need to request the resource server 104 again.

解析服务器103,可以为例如但不限于域名系统(Domain NameSystem,DNS)服务器,为互联网上作为域名和IP地址相互映射的一个分布式数据库,通过主机名,最终得到该主机名对应的IP地址的过程叫做域名解析,或主机名解析。在收录有互联网标准的请求评议文档(Request For Comments,RFC)中,RFC 2181、RFC 2136、RFC 2308文档对DNS进行了说明。The resolution server 103 can be, for example but not limited to, a domain name system (Domain NameSystem, DNS) server, which is a distributed database that maps domain names and IP addresses to each other on the Internet, and finally obtains the IP address corresponding to the host name through the host name The process is called domain name resolution, or hostname resolution. In the Request For Comments (RFC), which includes Internet standards, RFC 2181, RFC 2136, and RFC 2308 documents describe DNS.

在依据本发明一实施例的资源缓存方法的网络架构中,终端设备101发送资源访问请求到互联网缓存装置102,互联网缓存装置102转发该资源访问请求到相应的资源服务器104,资源服务器104返回终端设备101请求访问的资源到互联网缓存装置102,互联网缓存装置102转发该资源到终端设备101。互联网缓存装置102判断是否需要缓存该资源,当确定需要缓存该资源时,请求解析服务器103对该资源的统一资源定位符(Uniform Resource Locator,URL)中的域名进行解析,得到服务器标识,如果解析得到的服务器标识与资源服务器104的标识相同,则缓存该资源,否则,不缓存该资源。In the network architecture of the resource caching method according to an embodiment of the present invention, the terminal device 101 sends a resource access request to the Internet caching device 102, and the Internet caching device 102 forwards the resource access request to the corresponding resource server 104, and the resource server 104 returns to the terminal The resource requested by the device 101 is sent to the Internet cache device 102 , and the Internet cache device 102 forwards the resource to the terminal device 101 . The Internet caching device 102 judges whether the resource needs to be cached, and when it is determined that the resource needs to be cached, it requests the resolution server 103 to resolve the domain name in the Uniform Resource Locator (Uniform Resource Locator, URL) of the resource to obtain the server identifier. If the obtained server identifier is the same as the identifier of the resource server 104, the resource is cached; otherwise, the resource is not cached.

在本发明实施例的一种实现方式中,互联网缓存装置为独立的实体装置,也可以作为功能实体设置于其他装置中,还可以有其他名称。In an implementation manner of the embodiment of the present invention, the Internet caching device is an independent physical device, and may also be set in another device as a functional entity, and may also have other names.

图2是依据本发明一实施例的资源缓存方法200的示范性流程图。在具体实现过程中,资源缓存方法200可以由例如但不限于互联网缓存装置来执行,该互联网缓存装置可以是例如但不限于透明缓存。资源服务器是Web服务器的一种实现方式。FIG. 2 is an exemplary flowchart of a resource caching method 200 according to an embodiment of the present invention. In a specific implementation process, the resource caching method 200 may be performed by, for example, but not limited to, an Internet caching device, and the Internet caching device may be, for example, but not limited to a transparent cache. A resource server is an implementation of a web server.

S202,互联网缓存装置在接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件。S202. After receiving the resource returned by the resource server to the terminal device, the Internet caching apparatus determines that the resource satisfies the first caching condition.

在本发明实施例的一种实现方式中,所述确定所述资源满足第一缓存条件包括确定所述资源满足资源访问热度统计条件,所述资源访问热度统计包括一定时间内对访问同一资源的频次的统计。In an implementation manner of the embodiment of the present invention, the determining that the resource satisfies the first cache condition includes determining that the resource satisfies the resource access heat statistics condition, and the resource access heat statistics include the number of visits to the same resource within a certain period of time. Frequency statistics.

在本发明实施例的一种实现方式中,在所述接收到资源服务器返回给终端设备的资源之前:In an implementation manner of the embodiment of the present invention, before receiving the resources returned by the resource server to the terminal device:

所述互联网缓存装置接收所述终端设备发送的建立与所述资源服务器的连接的连接请求,所述连接请求中携带所述终端设备的标识和所述资源服务器的标识;The Internet caching device receives a connection request sent by the terminal device to establish a connection with the resource server, and the connection request carries the identifier of the terminal device and the identifier of the resource server;

所述互联网缓存装置建立所述终端设备与所述资源服务器的连接;The Internet caching device establishes a connection between the terminal device and the resource server;

所述互联网缓存装置接收所述终端设备发送的对所述资源的访问请求,所述访问请求中携带所述资源的URL中的域名;The Internet caching device receives an access request for the resource sent by the terminal device, and the access request carries the domain name in the URL of the resource;

所述互联网缓存装置根据所述建立的所述终端设备与所述资源服务器的连接,发送所述访问请求到所述资源服务器;The Internet caching device sends the access request to the resource server according to the established connection between the terminal device and the resource server;

所述互联网缓存装置接收所述资源服务器返回的所述资源。The Internet caching device receives the resource returned by the resource server.

在本发明实施例的一种实现方式中,上述连接请求可以为例如但不限于传输控制协议(Transmission Control Protocol,TCP)连接请求,对资源的访问请求可以为例如但不限于HTTP请求。In an implementation manner of the embodiment of the present invention, the above connection request may be, for example but not limited to, a Transmission Control Protocol (Transmission Control Protocol, TCP) connection request, and the resource access request may be, for example but not limited to, an HTTP request.

在本发明实施例的一种实现方式中,该互联网缓存装置通过该终端设备的标识建立该终端设备与该资源服务器的连接,该互联网缓存装置通过该终端设备的标识发送该访问请求到该资源服务器,其中该终端设备的标识包括该终端设备的IP地址。In an implementation manner of the embodiment of the present invention, the Internet caching device establishes a connection between the terminal device and the resource server through the identifier of the terminal device, and the Internet caching device sends the access request to the resource server through the identifier of the terminal device The server, wherein the identifier of the terminal device includes the IP address of the terminal device.

在本发明实施例的一种实现方式中,该互联网缓存装置通过该资源服务器的标识发送该资源服务器返回的资源给该终端设备,该资源服务器的标识包括该资源服务器的IP地址。In an implementation manner of the embodiment of the present invention, the Internet caching device sends the resource returned by the resource server to the terminal device through the identifier of the resource server, and the identifier of the resource server includes the IP address of the resource server.

具体的,资源服务器返回的资源可以为例如但不限于HTML网页、图片、视频、文件下载中的至少一种。Specifically, the resource returned by the resource server may be, for example but not limited to, at least one of HTML web pages, pictures, videos, and file downloads.

S204,所述互联网缓存装置发送解析请求到解析服务器,所述解析请求中携带所述资源的URL中的域名。S204, the Internet caching device sends a resolution request to the resolution server, where the resolution request carries the domain name in the URL of the resource.

S206,所述互联网缓存装置接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识。S206. The Internet caching device receives an identifier of the server obtained by analyzing the resolution server according to the domain name in the URL of the resource.

在S204和S206中,在本发明实施例的一种实现方式中,该解析服务器包括DNS服务器。该解析请求用于请求该DNS服务器解析该资源的URL中的域名。解析得到的结果指示服务器的IP地址。In S204 and S206, in an implementation manner of the embodiment of the present invention, the resolution server includes a DNS server. The resolution request is used to request the DNS server to resolve the domain name in the URL of the resource. The result obtained by parsing indicates the IP address of the server.

S208,当所述解析得到的服务器的标识为所述资源服务器的标识时,所述互联网缓存装置缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述互联网缓存装置中,以提供给访问所述资源的终端设备。S208. When the parsed server identifier is the resource server identifier, the Internet caching device caches the resource, and caching the resource includes caching the resource in the Internet caching device, to provide to terminal devices accessing the resource.

其中,所述提供给访问所述资源的终端设备包括提供给访问该资源的其他终端设备,也包括提供给再次访问该资源的该终端设备。Wherein, providing to a terminal device accessing the resource includes providing to other terminal devices accessing the resource, and also includes providing to the terminal device accessing the resource again.

在本发明实施例的一种实现方式中,当解析得到的服务器的标识不为该资源服务器的标识时,该互联网缓存装置不缓存该资源。In an implementation manner of the embodiment of the present invention, when the identifier of the server obtained through analysis is not the identifier of the resource server, the Internet caching device does not cache the resource.

在本发明实施例的一种实现方式中,当解析得到的服务器的标识为该资源服务器的IP地址时,该互联网缓存装置将该资源缓存在本地。当解析得到的服务器的标识不为该资源服务器的IP地址时,该互联网缓存装置不将该资源缓存在本地。In an implementation manner of the embodiment of the present invention, when the resolved server identifier is the IP address of the resource server, the Internet caching device caches the resource locally. When the resolved server identifier is not the IP address of the resource server, the Internet caching device does not cache the resource locally.

在本发明实施例的一种实现方式中,至少满足以下两个条件时,互联网缓存装置将资源缓存在本地:In an implementation manner of the embodiment of the present invention, when at least the following two conditions are met, the Internet caching device caches resources locally:

1、满足资源访问热度统计条件时;1. When the statistical conditions for resource access popularity are met;

2、满足当解析得到的服务器标识为资源服务器标识时。2. It is satisfied when the parsed server ID is the resource server ID.

此外,互联网缓存装置在接收到资源服务器返回给终端设备的资源后,还可以进一步根据资源的大小、类型来确定是否需要缓存该资源。In addition, after receiving the resource returned by the resource server to the terminal device, the Internet caching device may further determine whether to cache the resource according to the size and type of the resource.

根据本发明实施例提供的技术方案,通过在接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件后,发送解析请求到解析服务器,所述解析请求中携带所述资源的域名,接收所述解析服务器根据所述资源的域名进行解析得到的服务器的标识,当所述解析得到的服务器的标识为所述资源服务器的标识时,缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述互联网缓存装置中,以提供给访问所述资源的终端设备,能够防止互联网缓存装置缓存恶意资源,从而能够防止其将恶意资源当做源服务器资源提供给其他终端用户。According to the technical solution provided by the embodiment of the present invention, after receiving the resource returned by the resource server to the terminal device, after determining that the resource satisfies the first cache condition, a parsing request is sent to the parsing server, and the parsing request carries the The domain name of the resource, receiving the server identifier obtained by the parsing server according to the domain name of the resource, and when the resolved server identifier is the resource server identifier, the resource is cached, and the cached The resources include caching the resources in the Internet caching device to provide the terminal equipment accessing the resources, which can prevent the Internet caching device from caching malicious resources, thereby preventing it from providing malicious resources as source server resources to other end user.

图3是依据本发明一实施例的资源缓存方法的示范性信令图。在具体实现过程中,资源缓存方法300可以由例如但不限于互联网缓存装置执行。在本实施例中,互联网缓存装置可以是例如但不限于透明缓存,解析服务器可以是例如但不限于DNS服务器。资源服务器是Web服务器的一种实现方式。Fig. 3 is an exemplary signaling diagram of a resource caching method according to an embodiment of the present invention. In a specific implementation process, the resource caching method 300 may be executed by, for example but not limited to, an Internet caching device. In this embodiment, the Internet caching device may be, for example, but not limited to, a transparent cache, and the resolution server may be, for example, but not limited to a DNS server. A resource server is an implementation of a web server.

S301,终端设备发送建立到资源服务器的TCP连接请求到透明缓存,其中携带该终端设备的IP地址和该资源服务器的IP地址。S301. The terminal device sends a TCP connection establishment request to the resource server to the transparent cache, which carries the IP address of the terminal device and the IP address of the resource server.

S302,透明缓存使用终端设备的IP地址建立到资源服务器的TCP连接。S302. The transparent cache uses the IP address of the terminal device to establish a TCP connection to the resource server.

S303,透明缓存接收到终端设备发往资源服务器的HTTP访问请求。S303. The transparent cache receives an HTTP access request from the terminal device to the resource server.

S304,透明缓存使用终端设备的IP地址将该HTTP访问请求发送到资源服务器。S304. The transparent cache uses the IP address of the terminal device to send the HTTP access request to the resource server.

S305,资源服务器返回终端设备请求访问的资源到透明缓存。S305. The resource server returns the resource requested by the terminal device to the transparent cache.

S306,透明缓存使用资源服务器的IP地址将资源服务器返回的资源返回给终端设备。S306. The transparent cache uses the IP address of the resource server to return the resource returned by the resource server to the terminal device.

S307,透明缓存根据资源访问热度统计确定需要缓存该资源。S307. The transparent cache determines that the resource needs to be cached according to the resource access heat statistics.

S308,透明缓存请求解析服务器对访问请求中的资源的URL中的域名进行域名解析。透明缓存向DNS服务器发送DNS解析请求,其中携带该资源的URL中的域名,请求DNS服务器解析该URL中的域名。S308. The transparent cache request resolution server performs domain name resolution on the domain name in the URL of the resource in the access request. The transparent cache sends a DNS resolution request to the DNS server, which carries the domain name in the URL of the resource, and requests the DNS server to resolve the domain name in the URL.

S309,DNS服务器对该资源的URL中的域名进行DNS解析,得到指示服务器IP地址的解析结果。S309, the DNS server performs DNS resolution on the domain name in the URL of the resource, and obtains a resolution result indicating the IP address of the server.

S310,DNS服务器发送该解析结果到透明缓存。S310. The DNS server sends the resolution result to the transparent cache.

S311,透明缓存进行服务器IP地址校验。透明缓存判断服务器的IP地址是否为该资源服务器的IP地址,如果是,则将该资源缓存在本地,否则,不缓存该资源。S311. The transparent cache verifies the IP address of the server. Transparent caching judges whether the IP address of the server is the IP address of the resource server, and if so, caches the resource locally, otherwise, does not cache the resource.

根据本发明实施例提供的技术方案,通过在接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件后,再发送解析请求到解析服务器,所述解析请求中携带所述资源的域名,接收所述解析服务器根据所述资源的域名进行解析得到的服务器的标识,当所述解析得到的服务器的标识为所述资源服务器的标识时,缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述互联网缓存装置中,以提供给访问所述资源的终端设备,能够防止互联网缓存装置缓存恶意资源,从而能够防止其将恶意资源当做源服务器资源提供给其他终端用户。According to the technical solution provided by the embodiment of the present invention, after receiving the resource returned by the resource server to the terminal device, it is determined that the resource satisfies the first cache condition, and then a parsing request is sent to the parsing server, and the parsing request carries the The domain name of the resource, receiving the server identifier obtained by the parsing server according to the domain name of the resource, when the server identifier obtained by the analysis is the identifier of the resource server, cache the resource, and the cache The resource includes caching the resource in the Internet cache device to provide the terminal device accessing the resource, which can prevent the Internet cache device from caching malicious resources, thereby preventing it from providing malicious resources as source server resources to other end users.

图4是依据本发明另一实施例的资源缓存方法的示范性信令图。在具体实现过程中,资源缓存方法400可以由例如但不限于互联网缓存装置执行。在本实施例中,互联网缓存装置可以是例如但不限于透明缓存,解析服务器可以是例如但不限于DNS服务器。资源服务器是Web服务器的一种实现方式。Fig. 4 is an exemplary signaling diagram of a resource caching method according to another embodiment of the present invention. In a specific implementation process, the resource caching method 400 may be executed by, for example but not limited to, an Internet caching device. In this embodiment, the Internet caching device may be, for example, but not limited to, a transparent cache, and the resolution server may be, for example, but not limited to a DNS server. A resource server is an implementation of a web server.

S401,终端设备发送建立到第一资源服务器的TCP连接请求到透明缓存,其中携带该终端设备的IP地址和该第一资源服务器的IP地址。S401. The terminal device sends a TCP connection establishment request to the first resource server to the transparent cache, where the IP address of the terminal device and the IP address of the first resource server are carried.

S402,透明缓存使用终端设备的IP地址建立到第一资源服务器的TCP连接。S402. The transparent cache uses the IP address of the terminal device to establish a TCP connection to the first resource server.

S403,透明缓存接收到终端设备发往第一资源服务器的HTTP访问请求。S403. The transparent cache receives an HTTP access request sent by the terminal device to the first resource server.

S404,透明缓存对于每个接收到的访问请求,都请求解析服务器对访问请求中的资源的URL中的域名进行域名解析。透明缓存向DNS服务器发送DNS解析请求,其中携带该HTTP访问请求所要访问的资源的URL中的域名,请求DNS服务器解析该URL中的域名。S404. For each received access request, the transparent cache requests the resolution server to perform domain name resolution on the domain name in the URL of the resource in the access request. The transparent cache sends a DNS resolution request to the DNS server, which carries the domain name in the URL of the resource to be accessed by the HTTP access request, and requests the DNS server to resolve the domain name in the URL.

S405,DNS服务器对该资源的URL中的域名进行DNS解析,得到指示服务器IP地址的解析结果。S405. The DNS server performs DNS resolution on the domain name in the URL of the resource, and obtains a resolution result indicating the IP address of the server.

S406,DNS服务器发送该解析结果到透明缓存。S406. The DNS server sends the resolution result to the transparent cache.

S407,透明缓存进行服务器IP地址校验。透明缓存确定解析结果指示的服务器的IP地址是否为该第一资源服务器的IP地址,当服务器的IP地址是第一资源服务器的IP地址时,执行S408至S410;当服务器的IP地址是第二资源服务器的IP地址时,执行S411至S413。S407. The transparent cache verifies the IP address of the server. Transparent cache determines whether the IP address of the server indicated by the analysis result is the IP address of the first resource server, and when the IP address of the server is the IP address of the first resource server, execute S408 to S410; when the IP address of the server is the second When the IP address of the resource server is set, execute S411 to S413.

S408,透明缓存使用终端设备的IP地址将该HTTP访问请求发送到第一资源服务器。S408. The transparent cache uses the IP address of the terminal device to send the HTTP access request to the first resource server.

S409,第一资源服务器返回终端设备请求访问的资源到透明缓存。S409. The first resource server returns the resource requested by the terminal device to the transparent cache.

S410,透明缓存使用第一资源服务器的IP地址将第一资源服务器返回的资源返回给终端设备。S410. The transparent cache uses the IP address of the first resource server to return the resource returned by the first resource server to the terminal device.

S411,透明缓存断开到第一资源服务器的TCP连接。S411. The transparent cache disconnects the TCP connection to the first resource server.

S412,透明缓存使用终端设备的IP地址建立到第二资源服务器的TCP连接。S412. The transparent cache uses the IP address of the terminal device to establish a TCP connection to the second resource server.

S413,透明缓存使用终端设备的IP地址将该HTTP访问请求发送到第二资源服务器。S413. The transparent cache uses the IP address of the terminal device to send the HTTP access request to the second resource server.

此后,透明缓存使用第一资源服务器的IP地址将第二资源服务器返回的资源返回给终端设备。Thereafter, the transparent cache uses the IP address of the first resource server to return the resource returned by the second resource server to the terminal device.

在本发明实施例的一种实现方式中,透明缓存在将资源返回给终端设备后,确定是否需要缓存该资源,如果需要,将该资源缓存在本地;否则,不缓存。In an implementation manner of the embodiment of the present invention, after the transparent cache returns the resource to the terminal device, it determines whether the resource needs to be cached, and if necessary, caches the resource locally; otherwise, does not cache the resource.

在本发明实施例的另一种实现方式中,透明缓存在将资源返回给终端设备之前,确定是否需要缓存该资源,如果需要,将该资源缓存在本地;否则,不缓存。In another implementation manner of the embodiment of the present invention, before returning the resource to the terminal device, the transparent cache determines whether the resource needs to be cached, and if necessary, caches the resource locally; otherwise, does not cache the resource.

依据本发明实施例提供的技术方案,通过在发送资源服务器返回的资源到终端设备之前,发送解析请求到解析服务器,该解析请求中携带该资源的URL中的域名,接收该解析服务器返回的根据该资源的的URL中的域名进行解析得到的服务器的标识,当解析得到的服务器的标识为第一资源服务器的标识时,缓存该资源,当解析得到的服务器的标识为第二资源服务器的标识时,断开与第一资源服务器的连接,建立与第二资源服务器的连接,发送第二资源服务器返回的资源到终端设备,能够防止互联网缓存装置缓存恶意资源,从而能够防止其将恶意资源当做源服务器资源提供给其他终端用户。According to the technical solution provided by the embodiment of the present invention, before sending the resource returned by the resource server to the terminal device, a resolution request is sent to the resolution server, the resolution request carries the domain name in the URL of the resource, and the basis returned by the resolution server is received. The domain name in the URL of the resource is parsed to obtain the server ID. When the parsed server ID is the ID of the first resource server, the resource is cached. When the parsed server ID is the ID of the second resource server , disconnect the connection with the first resource server, establish a connection with the second resource server, and send the resource returned by the second resource server to the terminal device, which can prevent the Internet caching device from caching malicious resources, thereby preventing it from treating malicious resources as Origin server resources are made available to other end users.

值得注意的是,本发明图2实施例、图3实施例、图4实施例所提供的技术方案虽然都能够防止互联网缓存装置缓存恶意资源,从而能够防止其将恶意资源当做源服务器资源提供给其他终端用户,但是图4实施例所提供的技术方案在解析结果不是第一资源服务器时,互联网缓存装置需要重新建立与第二资源服务器的连接,而这一过程大大增加了终端设备用户的等待时间。而且,由于图4实施例所提供的技术方案中,互联网缓存装置对于接收到的每个资源访问请求都要请求解析服务器进行域名解析,并进行服务器标识校验,因此增加了解析服务器的处理负担和响应时延。It is worth noting that although the technical solutions provided by the embodiment in FIG. 2 , the embodiment in FIG. 3 , and the embodiment in FIG. 4 of the present invention can prevent the Internet caching device from caching malicious resources, it can prevent it from providing malicious resources as source server resources to For other terminal users, but the technical solution provided by the embodiment of Figure 4, when the analysis result is not the first resource server, the Internet caching device needs to re-establish the connection with the second resource server, and this process greatly increases the waiting time of the terminal device user time. Moreover, in the technical solution provided by the embodiment in Fig. 4, the Internet caching device will request the resolution server to perform domain name resolution and server identification verification for each resource access request received, thus increasing the processing load of the resolution server and response delay.

本发明图2实施例和图3实施例所提供的技术方案,相对于图4实施例所提供的技术方案来说,减少了解析服务器进行域名解析的次数和服务器标识校验的次数,降低了互联网缓存装置的系统开销,避免了解析结果不是目标资源服务器后重新建立连接的过程,从而避免了由此引入的对终端设备请求的响应时延。Compared with the technical solution provided by the embodiment in FIG. 4, the technical solution provided by the embodiment in FIG. 2 and the embodiment in FIG. 3 of the present invention reduces the number of times the resolution server performs domain name resolution and the number of server identification checks, and reduces the The system overhead of the Internet caching device avoids the process of re-establishing the connection after the analysis result is not the target resource server, thereby avoiding the response delay to the terminal equipment request introduced thereby.

另外,对于图2实施例,在本发明实施例的一种实现方式中,S202中,互联网缓存装置在接收到资源服务器返回给终端设备的资源后,发送该资源给该终端设备,之后,确定所述资源满足第一缓存条件后,再执行S204至S208。这种实现方式能够最大限度的减小对终端设备请求的响应时延,最大限度的减小终端设备用户的等待时间。In addition, for the embodiment in FIG. 2, in an implementation manner of the embodiment of the present invention, in S202, after receiving the resource returned by the resource server to the terminal device, the Internet caching device sends the resource to the terminal device, and then determines After the resource satisfies the first cache condition, S204 to S208 are executed. This implementation manner can minimize the response delay to the terminal device request, and minimize the waiting time of the terminal device user.

对于图2实施例,在本发明实施例的另一种实现方式中,互联网缓存装置可以在执行完S202至S208后,再发送该资源给该终端设备。这种实现方式虽然相对于上一种实现方式来说,对终端设备请求的响应时延增大,但相对于图4实施例所提供的技术方案而言,由于其只对满足第一缓存条件的资源进行域名解析,而且同样避免了解析结果不是目标资源服务器后重新建立连接的过程,因此,相对于图4实施例所提供的技术方案,其也减少了解析服务器进行域名解析的次数和服务器标识校验的次数,降低了互联网缓存装置的系统开销,同时也降低了对终端设备请求的响应时延。Regarding the embodiment in FIG. 2 , in another implementation manner of the embodiment of the present invention, the Internet caching device may send the resource to the terminal device after executing S202 to S208 . Although compared with the previous implementation, this implementation has an increased response delay to terminal device requests, but compared to the technical solution provided by the embodiment in Figure 4, it only needs to satisfy the first cache condition domain name resolution of the resource, and also avoid the process of re-establishing the connection after the resolution result is not the target resource server. Therefore, compared with the technical solution provided by the embodiment in Fig. The number of identification checks reduces the system overhead of the Internet caching device, and also reduces the response delay to the terminal equipment request.

图5是依据本发明一实施例的通用计算机结构500的硬件结构示意图。如图5所示,通用计算机结构500包括处理器502、存储器504、通信接口506和总线508。其中,处理器502、存储器504和通信接口506通过总线508实现彼此之间的通信连接。FIG. 5 is a schematic diagram of a hardware structure of a general computer structure 500 according to an embodiment of the present invention. As shown in FIG. 5 , general purpose computer architecture 500 includes processor 502 , memory 504 , communication interface 506 and bus 508 . Wherein, the processor 502 , the memory 504 and the communication interface 506 are connected to each other through the bus 508 .

处理器502可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific IntegratedCircuit,ASIC),或者一个或多个集成电路,用于执行相关程序,以实现本发明实施例所提供的技术方案。The processor 502 may adopt a general-purpose central processing unit (Central Processing Unit, CPU), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits for executing related programs, so as to realize The technical solutions provided by the embodiments of the present invention.

存储器504可以是只读存储器(Read Only Memory,ROM),静态存储设备,动态存储设备或者随机存取存储器(Random AccessMemory,RAM)。存储器504可以存储操作系统5041和其他应用程序5042。在通过软件或者固件来实现本发明实施例提供的技术方案时,用于实现本发明实施例提供的技术方案的程序代码保存在存储器504中,并由处理器502来执行。The memory 504 may be a read only memory (Read Only Memory, ROM), a static storage device, a dynamic storage device or a random access memory (Random Access Memory, RAM). The memory 504 can store an operating system 5041 and other application programs 5042 . When implementing the technical solutions provided by the embodiments of the present invention through software or firmware, the program codes for realizing the technical solutions provided by the embodiments of the present invention are stored in the memory 504 and executed by the processor 502 .

通信接口506使用例如但不限于收发器一类的收发装置,来实现接与其他设备或通信网络之间的通信。The communication interface 506 uses a transceiver device such as but not limited to a transceiver to realize communication with other devices or a communication network.

总线508可包括一通路,在各个部件(例如处理器502、存储器504、输和通信接口506)之间传送信息。Bus 508 may comprise a path for carrying information between various components (eg, processor 502, memory 504, input and communication interface 506).

如图6所示,当数据处理装置包括上述通用计算机结构500时,该通用计算机结构500进一步包括用于资源缓存的处理模块602,发送模块604,接收模块606和缓存模块608。这些模块可以使用硬件实现,软件实现,或软件结合硬件实现。作为软件的模块,存储于通用计算机结构500的存储器504中,可以一起作为一个独立的程序,或分别作为独立的程序。作为一种可选的实施方式,这些软件模块也可以分别,或一起作为应用程序5042的一部分,或者作为操作系统5041的一部分。As shown in FIG. 6 , when the data processing device includes the above general computer structure 500 , the general computer structure 500 further includes a processing module 602 for resource caching, a sending module 604 , a receiving module 606 and a cache module 608 . These modules can be implemented using hardware, software, or software combined with hardware. As software modules, stored in the memory 504 of the general-purpose computer architecture 500, they can be used together as an independent program, or separately as independent programs. As an optional implementation manner, these software modules may also be used as a part of the application program 5042 or as a part of the operating system 5041 separately or together.

处理模块602,用于在所述接收模块接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件。The processing module 602 is configured to, after the receiving module receives the resource returned by the resource server to the terminal device, determine that the resource satisfies the first caching condition.

发送模块604,用于发送解析请求到解析服务器,所述解析请求中携带所述资源的URL中的域名。The sending module 604 is configured to send a resolution request to the resolution server, where the resolution request carries the domain name in the URL of the resource.

接收模块606,用于接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识。The receiving module 606 is configured to receive the server identifier obtained by the parsing server according to the domain name in the URL of the resource.

缓存模块608,用于当所述解析得到的服务器的标识为所述资源服务器的标识时,缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述缓存模块中,以提供给访问所述资源的终端设备。A caching module 608, configured to cache the resource when the parsed server ID is the resource server ID, and the caching the resource includes caching the resource in the caching module to provide to terminal devices accessing said resources.

其中,资源服务器是Web服务器的一种实现方式。Wherein, the resource server is an implementation manner of the Web server.

在本发明实施例的一种实现方式中,所述接收模块606还用于在所述接收到资源服务器返回给终端设备的资源之前,接收所述终端设备发送的建立与所述资源服务器的连接的连接请求,所述连接请求中携带所述终端设备的标识和所述资源服务器的标识;In an implementation manner of the embodiment of the present invention, the receiving module 606 is further configured to receive, before receiving the resources returned by the resource server to the terminal device, an instruction to establish a connection with the resource server sent by the terminal device. A connection request, where the connection request carries the identifier of the terminal device and the identifier of the resource server;

所述处理模块602还用于建立所述终端设备与所述资源服务器的连接;The processing module 602 is further configured to establish a connection between the terminal device and the resource server;

所述接收模块606还用于接收所述终端设备发送的对所述资源的访问请求,所述访问请求中携带所述资源的URL中的域名;The receiving module 606 is further configured to receive an access request for the resource sent by the terminal device, where the access request carries the domain name in the URL of the resource;

所述发送模块604还用于根据所述建立的所述终端设备与所述资源服务器的连接,发送所述访问请求到所述资源服务器;The sending module 604 is further configured to send the access request to the resource server according to the established connection between the terminal device and the resource server;

所述接收模块606还用于接收所述资源服务器返回的所述资源。The receiving module 606 is also configured to receive the resource returned by the resource server.

在本发明实施例的一种实现方式中,所述缓存模块608还用于当所述解析得到的服务器的标识不为所述资源服务器的标识时,不缓存所述资源。In an implementation manner of the embodiment of the present invention, the caching module 608 is further configured not to cache the resource when the parsed server identifier is not the resource server identifier.

在本发明实施例的一种实现方式中,所述处理模块602还用于建立所述终端设备与所述资源服务器的连接包括:所述处理模块602还用于通过所述终端设备的标识建立所述终端设备与所述资源服务器的连接,所述终端设备的标识包括所述终端设备的互联网协议IP地址。In an implementation manner of the embodiment of the present invention, the processing module 602 is further configured to establish a connection between the terminal device and the resource server includes: the processing module 602 is also configured to establish For the connection between the terminal device and the resource server, the identifier of the terminal device includes the Internet Protocol IP address of the terminal device.

在本发明实施例的一种实现方式中,所述发送模块604还用于发送所述资源给所述终端设备,所述发送模块604通过所述资源服务器的标识发送所述资源给所述终端设备,所述资源服务器的标识包括所述资源服务器的IP地址。In an implementation manner of the embodiment of the present invention, the sending module 604 is further configured to send the resource to the terminal device, and the sending module 604 sends the resource to the terminal through the identifier of the resource server device, where the identifier of the resource server includes the IP address of the resource server.

根据本发明实施例提供的技术方案,通过在接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件,发送解析请求到解析服务器,所述解析请求中携带所述资源的URL中的域名,接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识,当所述解析得到的服务器的标识为所述资源服务器的标识时,缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述互联网缓存装置中,以提供给访问所述资源的终端设备,能够防止互联网缓存装置缓存恶意资源,从而能够防止其将恶意资源当做源服务器资源提供给其他终端用户。According to the technical solution provided by the embodiment of the present invention, after receiving the resource returned by the resource server to the terminal device, it is determined that the resource satisfies the first cache condition, and a parsing request is sent to the parsing server, and the parsing request carries the resource The domain name in the URL of the URL, receiving the server identifier obtained by the parsing server according to the domain name in the URL of the resource, and when the resolved server identifier is the identifier of the resource server, cache the resource , the caching of the resource includes caching the resource in the Internet caching device to provide the terminal device accessing the resource, which can prevent the Internet caching device from caching malicious resources, thereby preventing it from using the malicious resource as a source Server resources are made available to other end users.

应注意,尽管图5所示的通用计算机结构500仅仅示出了处理器502、存储器504、通信接口506和总线508,但是在具体实现过程中,本领域的技术人员应当明白,上述资源缓存装置还包含实现正常运行所必须的其他器件。同时,根据具体需要,本领域的技术人员应当明白,上述资源缓存装置还可包含实现其他附加功能的硬件器件。此外,本领域的技术人员应当明白,上述资源缓存装置也可仅仅包含实现本发明实施例所必须的器件,而不必包含图5中所示的全部器件。It should be noted that although the general-purpose computer architecture 500 shown in FIG. 5 only shows the processor 502, memory 504, communication interface 506, and bus 508, those skilled in the art should understand that the above-mentioned resource cache device Also contains other devices necessary for proper operation. At the same time, according to specific needs, those skilled in the art should understand that the above-mentioned resource cache device may also include hardware devices for implementing other additional functions. In addition, those skilled in the art should understand that the above-mentioned resource caching device may only include devices necessary to realize the embodiment of the present invention, and does not necessarily include all the devices shown in FIG. 5 .

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random AccessMemory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (14)

1.一种资源缓存方法,其特征在于,包括以下步骤:1. A resource caching method, characterized in that, comprising the following steps: 互联网缓存装置在接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件;After receiving the resource returned by the resource server to the terminal device, the Internet caching device determines that the resource satisfies the first caching condition; 所述互联网缓存装置发送解析请求到解析服务器,所述解析请求中携带所述资源的统一资源定位符URL中的域名;The Internet caching device sends a resolution request to the resolution server, and the resolution request carries the domain name in the uniform resource locator URL of the resource; 所述互联网缓存装置接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识;The Internet caching device receives the identification of the server obtained by the analysis server according to the domain name in the URL of the resource; 当所述解析得到的服务器的标识为所述资源服务器的标识时,所述互联网缓存装置缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述互联网缓存装置中,以提供给访问所述资源的终端设备。When the parsed server identifier is the resource server identifier, the Internet caching device caches the resource, and the caching the resource includes caching the resource in the Internet caching device to provide to terminal devices accessing said resources. 2.如权利要求1所述的方法,其特征在于,在所述接收到资源服务器返回给终端设备的资源之前,所述方法还包括:2. The method according to claim 1, characterized in that, before receiving the resources returned by the resource server to the terminal device, the method further comprises: 所述互联网缓存装置接收所述终端设备发送的建立与所述资源服务器的连接的连接请求,所述连接请求中携带所述终端设备的标识和所述资源服务器的标识;The Internet caching device receives a connection request sent by the terminal device to establish a connection with the resource server, and the connection request carries the identifier of the terminal device and the identifier of the resource server; 所述互联网缓存装置建立所述终端设备与所述资源服务器的连接;The Internet caching device establishes a connection between the terminal device and the resource server; 所述互联网缓存装置接收所述终端设备发送的对所述资源的访问请求,所述访问请求中携带所述资源的URL中的域名;The Internet caching device receives an access request for the resource sent by the terminal device, and the access request carries the domain name in the URL of the resource; 所述互联网缓存装置根据所述建立的所述终端设备与所述资源服务器的连接,发送所述访问请求到所述资源服务器;The Internet caching device sends the access request to the resource server according to the established connection between the terminal device and the resource server; 所述互联网缓存装置接收所述资源服务器返回的所述资源。The Internet caching device receives the resource returned by the resource server. 3.如权利要求1或2所述的方法,其特征在于,当所述解析得到的服务器的标识不为所述资源服务器的标识时,所述互联网缓存装置不缓存所述资源。3. The method according to claim 1 or 2, wherein when the server identifier obtained through the analysis is not the resource server identifier, the Internet caching device does not cache the resource. 4.如权利要求2或3所述的方法,其特征在于,4. The method of claim 2 or 3, wherein, 所述互联网缓存装置建立所述终端设备与所述资源服务器的连接包括:所述互联网缓存装置通过所述终端设备的标识建立所述终端设备与所述资源服务器的连接,所述终端设备的标识包括所述终端设备的互联网协议IP地址。The establishment of the connection between the terminal device and the resource server by the Internet cache device includes: establishing the connection between the terminal device and the resource server by the Internet cache device through the identifier of the terminal device, and the identifier of the terminal device Including the Internet Protocol IP address of the terminal device. 5.如权利要求1至4任意一项所述的方法,其特征在于,所述互联网缓存装置还发送所述资源给所述终端设备,所述互联网缓存装置通过所述资源服务器的标识发送所述资源给所述终端设备,所述资源服务器的标识包括所述资源服务器的IP地址。5. The method according to any one of claims 1 to 4, wherein the Internet caching device also sends the resource to the terminal device, and the Internet caching device sends the resource server through the identifier of the resource server The resource is provided to the terminal device, and the identifier of the resource server includes the IP address of the resource server. 6.如权利要求2至5任意一项所述的方法,其特征在于,所述连接请求包括传输控制协议TCP连接请求,所述对所述资源的访问请求包括超文本传输协议HTTP请求,所述解析服务器包括域名系统DNS服务器。6. The method according to any one of claims 2 to 5, wherein the connection request comprises a Transmission Control Protocol TCP connection request, and the access request to the resource comprises a Hypertext Transfer Protocol HTTP request, so The resolution server includes a Domain Name System (DNS) server. 7.如权利要求1至6任意一项所述的方法,其特征在于,所述确定所述资源满足第一缓存条件包括确定所述资源满足资源访问热度统计条件,所述资源访问热度统计包括一定时间内对访问同一资源的频次的统计。7. The method according to any one of claims 1 to 6, wherein the determining that the resource satisfies the first cache condition comprises determining that the resource satisfies the resource access heat statistics condition, and the resource access heat statistics include Statistics on the frequency of accessing the same resource within a certain period of time. 8.一种资源缓存装置,其特征在于,包括处理模块,发送模块,接收模块和缓存模块:8. A resource caching device, characterized in that it includes a processing module, a sending module, a receiving module and a caching module: 所述处理模块,用于在所述接收模块接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件;The processing module is configured to, after the receiving module receives the resource returned by the resource server to the terminal device, determine that the resource satisfies the first cache condition; 所述发送模块,用于发送解析请求到解析服务器,所述解析请求中携带所述资源的统一资源定位符URL中的域名;The sending module is configured to send a parsing request to a parsing server, and the parsing request carries the domain name in the Uniform Resource Locator URL of the resource; 所述接收模块,用于接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识;The receiving module is configured to receive the server identifier obtained by the parsing server according to the domain name in the URL of the resource; 所述缓存模块,用于当所述解析得到的服务器的标识为所述资源服务器的标识时,缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述缓存模块中,以提供给访问所述资源的终端设备。The caching module is configured to cache the resource when the parsed server ID is the resource server ID, and the caching the resource includes caching the resource in the caching module to Provided to terminal devices accessing the resource. 9.如权利要求8所述的装置,其特征在于,所述接收模块还用于在所述接收到资源服务器返回给终端设备的资源之前,接收所述终端设备发送的建立与所述资源服务器的连接的连接请求,所述连接请求中携带所述终端设备的标识和所述资源服务器的标识;9. The apparatus according to claim 8, wherein the receiving module is further configured to receive the establishment and resource server information sent by the terminal device before the resource server returns the resource to the terminal device. A connection request for a connection, where the connection request carries the identifier of the terminal device and the identifier of the resource server; 所述处理模块还用于建立所述终端设备与所述资源服务器的连接;The processing module is further configured to establish a connection between the terminal device and the resource server; 所述接收模块还用于接收所述终端设备发送的对所述资源的访问请求,所述访问请求中携带所述资源的URL中的域名;The receiving module is further configured to receive an access request to the resource sent by the terminal device, where the access request carries the domain name in the URL of the resource; 所述发送模块还用于根据所述建立的所述终端设备与所述资源服务器的连接,发送所述访问请求到所述资源服务器;The sending module is further configured to send the access request to the resource server according to the established connection between the terminal device and the resource server; 所述接收模块还用于接收所述资源服务器返回的所述资源。The receiving module is further configured to receive the resource returned by the resource server. 10.如权利要求8或9所述的装置,其特征在于,所述缓存模块还用于当所述解析得到的服务器的标识不为所述资源服务器的标识时,不缓存所述资源。10. The device according to claim 8 or 9, wherein the cache module is further configured to not cache the resource when the parsed server identifier is not the resource server identifier. 11.如权利要求9或10所述的装置,其特征在于,11. Apparatus as claimed in claim 9 or 10, characterized in that, 所述处理模块还用于建立所述终端设备与所述资源服务器的连接包括:所述处理模块还用于通过所述终端设备的标识建立所述终端设备与所述资源服务器的连接,所述终端设备的标识包括所述终端设备的互联网协议IP地址。The processing module is further configured to establish the connection between the terminal device and the resource server includes: the processing module is further configured to establish the connection between the terminal device and the resource server through the identifier of the terminal device, the The identifier of the terminal device includes the Internet Protocol IP address of the terminal device. 12.如权利要求8至11任意一项所述的装置,其特征在于,所述发送模块还用于发送所述资源给所述终端设备,所述发送模块通过所述资源服务器的标识发送所述资源给所述终端设备,所述资源服务器的标识包括所述资源服务器的IP地址。12. The device according to any one of claims 8 to 11, wherein the sending module is further configured to send the resource to the terminal device, and the sending module sends the resource server through the identifier of the resource server The resource is provided to the terminal device, and the identifier of the resource server includes the IP address of the resource server. 13.如权利要求9至12任意一项所述的装置,其特征在于,所述连接请求包括传输控制协议TCP连接请求,所述对所述资源的访问请求包括超文本传输协议HTTP请求,所述解析服务器包括域名系统DNS服务器。13. The device according to any one of claims 9 to 12, wherein the connection request comprises a Transmission Control Protocol TCP connection request, and the access request to the resource comprises a Hypertext Transfer Protocol HTTP request, so The resolution server includes a Domain Name System (DNS) server. 14.如权利要求8至13任意一项所述的装置,其特征在于,所述确定所述资源满足第一缓存条件包括确定所述资源满足资源访问热度统计条件,所述资源访问热度统计包括一定时间内对访问同一资源的频次的统计。14. The device according to any one of claims 8 to 13, wherein the determining that the resource satisfies the first cache condition comprises determining that the resource satisfies the resource access heat statistics condition, and the resource access heat statistics include Statistics on the frequency of accessing the same resource within a certain period of time.
CN201510464724.6A 2015-07-31 2015-07-31 A resource caching method and device Active CN106411978B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510464724.6A CN106411978B (en) 2015-07-31 2015-07-31 A resource caching method and device
PCT/CN2016/077876 WO2017020597A1 (en) 2015-07-31 2016-03-30 Resource cache method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510464724.6A CN106411978B (en) 2015-07-31 2015-07-31 A resource caching method and device

Publications (2)

Publication Number Publication Date
CN106411978A true CN106411978A (en) 2017-02-15
CN106411978B CN106411978B (en) 2020-01-21

Family

ID=57942383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510464724.6A Active CN106411978B (en) 2015-07-31 2015-07-31 A resource caching method and device

Country Status (2)

Country Link
CN (1) CN106411978B (en)
WO (1) WO2017020597A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110572486A (en) * 2019-08-13 2019-12-13 河北上通云天网络科技有限公司 domain name resolution system based on MAC address

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109586937B (en) * 2017-09-28 2022-03-15 中兴通讯股份有限公司 Operation and maintenance method, equipment and storage medium of cache system
CN114422522B (en) * 2020-10-13 2024-02-13 贵州白山云科技股份有限公司 Cache distribution method, device, medium and equipment
CN116634017B (en) * 2023-05-15 2024-02-06 北京大学 Identification analysis data caching method and device based on digital object

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668046A (en) * 2009-10-13 2010-03-10 成都市华为赛门铁克科技有限公司 Resource caching method, resource obtaining method, device and system thereof
CN102843437A (en) * 2012-09-17 2012-12-26 北京星网锐捷网络技术有限公司 Conversion method and device for webpage application and network device
CN103412827A (en) * 2013-08-05 2013-11-27 广州唯品会信息科技有限公司 Picture caching method and picture caching system
CN103825919A (en) * 2012-11-16 2014-05-28 中国移动通信集团北京有限公司 Method, device and system for data resource caching
CN104079534A (en) * 2013-03-27 2014-10-01 中国移动通信集团北京有限公司 Method and system of implementing HTTP (Hyper Text Transport Protocol) cache

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170479B (en) * 2011-05-21 2013-12-18 华为数字技术(成都)有限公司 Updating method of Web buffer and updating device of Web buffer
KR20130064906A (en) * 2011-12-09 2013-06-19 삼성전자주식회사 Method and apparatus for load balancing in communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668046A (en) * 2009-10-13 2010-03-10 成都市华为赛门铁克科技有限公司 Resource caching method, resource obtaining method, device and system thereof
CN101668046B (en) * 2009-10-13 2012-12-19 成都市华为赛门铁克科技有限公司 Resource caching method, device and system thereof
CN102843437A (en) * 2012-09-17 2012-12-26 北京星网锐捷网络技术有限公司 Conversion method and device for webpage application and network device
CN103825919A (en) * 2012-11-16 2014-05-28 中国移动通信集团北京有限公司 Method, device and system for data resource caching
CN104079534A (en) * 2013-03-27 2014-10-01 中国移动通信集团北京有限公司 Method and system of implementing HTTP (Hyper Text Transport Protocol) cache
CN103412827A (en) * 2013-08-05 2013-11-27 广州唯品会信息科技有限公司 Picture caching method and picture caching system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110572486A (en) * 2019-08-13 2019-12-13 河北上通云天网络科技有限公司 domain name resolution system based on MAC address

Also Published As

Publication number Publication date
WO2017020597A1 (en) 2017-02-09
CN106411978B (en) 2020-01-21

Similar Documents

Publication Publication Date Title
CN103124263B (en) A kind of advertisement push system and advertisement pushing equipment, Advertisement Server
CN105100294B (en) Obtain method, system, the webserver, browser and the GSLB of webpage
US11159630B2 (en) Third party validation of web content
CN105930528B (en) Webpage caching method and server
WO2017190641A1 (en) Crawler interception method and device, server terminal and computer readable medium
EP3175366B1 (en) Web redirection for content scanning
EP3253026B1 (en) Cdn-based access control method and relevant device
WO2021057889A1 (en) Data processing method and apparatus, electronic device, and storage medium
CN102710748A (en) Data acquisition method, system and equipment
EP3422672B1 (en) Routing method and device
CN102929985A (en) Method and system for displaying collected webpage
CN102884764A (en) Message receiving method, deep packet inspection device, and system
CN105530127A (en) Method and proxy server for processing network access request by proxy server
CN112003945A (en) Service request response method and device
EP3341854A1 (en) Machine-driven crowd-disambiguation of data resources
WO2017080459A1 (en) Method, device and system for caching and providing service contents and storage medium
CN108694215A (en) Method, apparatus, electronic equipment and the computer-readable medium of web cache preheating
CN106411978B (en) A resource caching method and device
CN107979577A (en) A kind of method and apparatus of terminal authentication
CN106911732A (en) A kind of website visiting accelerating method and device
US11870836B2 (en) Accelerating connections to a host server
US12028434B2 (en) Generating early hints informational responses at an intermediary server
CN104202233B (en) A kind of information interacting method, terminal, server and system
CN110177096B (en) Client authentication method, device, medium and computing equipment
CN109698832B (en) Method for rapidly providing Portal authentication and rapidly popping Portal authentication page and related equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant