WO2017020597A1 - Resource cache method and apparatus - Google Patents

Resource cache method and apparatus Download PDF

Info

Publication number
WO2017020597A1
WO2017020597A1 PCT/CN2016/077876 CN2016077876W WO2017020597A1 WO 2017020597 A1 WO2017020597 A1 WO 2017020597A1 CN 2016077876 W CN2016077876 W CN 2016077876W WO 2017020597 A1 WO2017020597 A1 WO 2017020597A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
server
terminal device
identifier
cache
Prior art date
Application number
PCT/CN2016/077876
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 WO2017020597A1 publication Critical patent/WO2017020597A1/en

Links

Images

Classifications

    • 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
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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]

Definitions

  • the present invention relates to the field of communications, and in particular, to a resource caching method and apparatus.
  • HTTP Hyper Text Transfer Protocol
  • C/S client/server
  • Web Cache caches hot resources to the local area and directly provides services for terminal device users. This greatly reduces the traffic to the upper-level network and saves network operators' investment, such as network infrastructure. Facilities construction and inter-network settlement fees, etc., also reduce the delay in responding to terminal equipment access and improve the user experience.
  • the transparent cache is an implementation of the Web Cache.
  • the transparent cache technology uses the Web server address to interact with the terminal device and interacts with the Web server using the terminal device address, so that the terminal device and the Web server have no perception of the cache system.
  • the transparent cache determines the source server IP address according to the target Internet Protocol (IP) address in the request packet of the Transmission Control Protocol (TCP) connection, and if the packet is maliciously forged by the terminal device. Or pointing to a malicious website, which may cause Web Cache to cache malicious content locally and provide it as source server content to other terminal device users. For example, after the terminal device establishes a TCP connection with a malicious website through a transparent cache, the access request is accessed.
  • IP Internet Protocol
  • TCP Transmission Control Protocol
  • Pseudo-created Get http://www.baidu.com/20150619qq_setup.exe is sent to the malicious website through the transparent cache, the malicious website returns the Trojan virus to the terminal device through the transparent cache, if the transparent cache determines http://www.baidu
  • the resource indicated by .com/20150619qq_setup.exe is a hot resource, and the Trojan virus returned by the malicious website will be cached locally, and used by other terminals.
  • the transparent cache will return the Trojan virus to other terminal devices.
  • Embodiments of the present invention provide a resource caching method and apparatus, which can prevent an Internet caching device from caching malicious resources, thereby preventing it from providing malicious resources as source server resources to other terminal device users.
  • the first aspect provides a resource caching method, where the method includes: after receiving the resource returned by the resource server to the terminal device, the Internet cache device determines that the resource satisfies the first cache condition; and the Internet cache device sends the parsing Requesting to the resolution server, the parsing request carrying the domain name in the Uniform Resource Locator URL of the resource; the Internet cache device receiving the identifier of the server obtained by the parsing server according to the domain name in the URL of the resource When the identifier of the server obtained by the parsing is an 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 the terminal device accessing the resource.
  • the method before the receiving the resource returned by the resource server to the terminal device, the method further includes: the Internet cache device receiving the a connection request sent by the terminal device to establish a connection with the resource server, where the connection request carries an identifier of the terminal device and an identifier of the resource server; and the Internet cache device establishes the terminal device and the resource a connection of the server; the Internet cache device receives an access request for the resource sent by the terminal device, where the access request carries a domain name in a URL of the resource; and the Internet cache device is configured according to the Determining, by the terminal device, a connection with the resource server, sending the access request to the resource server; and the Internet cache device receiving the resource returned by the resource server.
  • the first possible implementation manner of the first aspect in a second possible implementation manner, when the identifier of the server obtained by the parsing is not the identifier of the resource server, the internet cache The device does not cache the resource.
  • the establishing, by the Internet cache device, the connection between the terminal device and the resource server includes: The Internet cache device establishes a connection between the terminal device and the resource server by using an identifier of the terminal device, where the identifier of the terminal device includes an Internet Protocol IP address of the terminal device.
  • the Internet cache device further sends the resource to the terminal device, the Internet The cache device sends the resource to the terminal device by using an identifier of the resource server, where the identifier of the resource server includes an IP address of the resource server.
  • the connection request includes a transmission control protocol TCP connection request, where the resource is
  • the access request includes a hypertext transfer protocol HTTP request, and the resolution server includes a domain name system DNS server.
  • the determining that the resource meets the first cache condition comprises determining that the resource satisfies resource access
  • the resource access heat statistics include statistics on the frequency of accessing the same resource in a certain period of time.
  • the second aspect provides a resource cache device, including a processing module, a sending module, a receiving module, and a cache module: the processing module is configured to determine, after the receiving module receives the resource returned by the resource server to the terminal device, The sending module satisfies a first cache condition; the sending module is configured to send a parsing request to a parsing server, where the parsing request carries a domain name in a uniform resource locator URL of the resource; and the receiving module is configured to receive the The identifier of the server obtained by parsing the server according to the domain name in the URL of the resource; the cache module is configured to cache the resource when the identifier of the server obtained by the parsing is an identifier of the resource server, The caching the resource includes caching the resource in the cache module to provide to a terminal device accessing the resource.
  • the receiving module is further configured to: before receiving the resource that the resource server returns to the terminal device, receive the sending by the terminal device Establishing a connection request for the connection with the resource server, where the connection request carries an identifier of the terminal device and an identifier of the resource server; the processing module is further configured to establish the terminal device and the resource server The receiving module is further configured to receive an access request for the resource sent by the terminal device, where the access request carries a domain name in a URL of the resource; the sending module is further configured to establish according to the The terminal device is connected to the resource server, and sends the access request to the resource server; the receiving module is further configured to receive the resource returned by the resource server.
  • the cache module is further configured to: when the identifier of the server obtained by the parsing is not the resource server The resource is not cached when it is identified.
  • the processing module is further configured to establish a connection between the terminal device and the resource server
  • the processing module is further configured to establish, by using an identifier of the terminal device, a connection between the terminal device and the resource server, where the identifier of the terminal device includes an Internet Protocol IP address of the terminal device.
  • the sending module is further configured to send the resource to the terminal device, The sending module sends the resource to the terminal device by using an identifier of the resource server, where the identifier of the resource server includes an IP address of the resource server.
  • the connection request includes a transmission control protocol TCP connection request, where the resource is
  • the access request includes a hypertext transfer protocol HTTP request, and the resolution server includes a domain name system DNS server.
  • the determining that the resource meets the first cache condition comprises determining that the resource satisfies resource access
  • the resource access heat statistics include statistics on the frequency of accessing the same resource in a certain period of time.
  • the resource server after receiving the resource returned by the resource server to the terminal device, determining that the resource meets the first cache condition, sending the parsing request to the parsing server, where the parsing request carries the resource And the domain name of the server that is obtained by the parsing server according to the domain name of the resource, and when the identifier of the server obtained by the parsing is the identifier of the resource server, the resource is cached.
  • the resource includes caching the resource in the internet cache device to provide a terminal device accessing the resource, and can prevent the internet cache device from caching malicious resources, thereby preventing the malicious resource from being provided as a source server resource to other terminals. user.
  • FIG. 1 is a schematic diagram of a network architecture applied to an embodiment of the present invention
  • FIG. 2 is an exemplary flowchart of a resource caching method according to an embodiment of the present invention
  • FIG. 3 is an exemplary signaling diagram of a resource caching method in accordance with an embodiment of the present invention.
  • FIG. 4 is an exemplary signaling diagram of a resource caching method in accordance with another embodiment of the present invention.
  • FIG. 5 is a schematic diagram showing the hardware structure of a general-purpose computer structure according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a resource cache apparatus according to an embodiment of the invention.
  • FIG. 1 is a schematic diagram of a network architecture of a resource caching method according to an embodiment of the invention.
  • the Internet cache device 102 is deployed between the terminal device 101 and the resource server 104, and monitors the resource access request sent by the terminal device 101.
  • the copy of the response returned by the resource server 104 can be saved locally.
  • the response returned by the resource server 104 can be For example, but not limited to, at least one of a Hyper Text Markup Language (HTML) web page, a picture, a video, and a file download.
  • HTML Hyper Text Markup Language
  • the Internet caching device 102 Upon subsequent receipt of a request by the terminal device 101 or other terminal device to access the same resource, the Internet caching device 102 returns the response to the user using the locally saved copy of the response, thereby eliminating the need to request the resource server 104 again.
  • the resolution server 103 may be, for example, but not limited to, a Domain Name System (DNS) server, which is a distributed database that is mapped to each other as a domain name and an IP address on the Internet.
  • DNS Domain Name System
  • the host name is used to obtain the IP address corresponding to the host name.
  • the process is called domain name resolution, or host name resolution.
  • the DNS is described in RFC 2181, RFC 2136, and RFC 2308 documents in the Request For Comments (RFC) with Internet standards.
  • the terminal device 101 sends a resource access request to the Internet cache device 102, and the Internet cache device 102 forwards the resource access request to the corresponding resource server 104, and the resource server 104 returns to the terminal.
  • the device 101 requests the accessed resource to the Internet caching device 102, and the Internet caching device 102 forwards the resource to the terminal device 101.
  • the Internet cache device 102 determines whether the resource needs to be cached. When it is determined that the resource needs to be cached, the request resolution server 103 parses the domain name in the 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.
  • URL Uniform Resource Locator
  • the Internet cache device is an independent physical device, and may also be set as a functional entity in other devices, and may have other names.
  • FIG. 2 is an exemplary flow diagram of a resource caching method 200 in accordance with an embodiment of the present invention.
  • the resource caching method 200 may be performed by, for example, but not limited to, an internet caching device, which may be, for example, but not limited to, a transparent cache.
  • a resource server is an implementation of a web server.
  • the Internet cache device After receiving the resource returned by the resource server to the terminal device, the Internet cache device determines that the resource meets the first cache condition.
  • the determining that the resource meets the first cache condition comprises determining that the resource meets a resource access heat statistics condition, where the resource access heat statistics include accessing the same resource in a certain period of time. Frequency statistics.
  • the Internet cache device receives a connection request that is established by the terminal device to establish a connection with the resource server, where the connection request carries an identifier of the terminal device and an identifier of the resource server;
  • the internet caching device establishes a connection between the terminal device and the resource server
  • the Internet cache device receives an access request for the resource sent by the terminal device, where the access request carries a domain name in a URL of the resource;
  • the Internet cache 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.
  • connection request may be, for example, but not limited to, a Transmission Control Protocol (TCP) connection request
  • access request for the resource may be, for example, but not limited to, an HTTP request.
  • TCP Transmission Control Protocol
  • the Internet cache device establishes a connection between the terminal device and the resource server by using the identifier of the terminal device, and the Internet cache device sends the access request to the resource by using the identifier of the terminal device.
  • the server wherein the identifier of the terminal device includes an IP address of the terminal device.
  • the Internet cache device sends the resource returned by the resource server to the terminal device by using the identifier of the resource server, where the identifier of the resource server includes an IP address of the resource server.
  • the resource returned by the resource server may be at least one of, for example, but not limited to, an HTML webpage, a picture, a video, and a file download.
  • the Internet cache device sends a parsing request to a parsing server, where the parsing request carries a domain name in a URL of the resource.
  • the Internet cache device receives an identifier of a server that is obtained by the parsing server according to a domain name in a URL of the resource.
  • the resolution server includes a DNS server.
  • the parsing request is used to request the DNS server to resolve the domain name in the URL of the resource.
  • the result of the parsing indicates the IP address of the server.
  • the Internet cache device caches the resource, and the caching the resource includes caching the resource in the Internet cache device. To provide access to the terminal device of the resource.
  • the terminal device provided for accessing the resource includes other terminal devices that are provided for accessing the resource, and the terminal device that is provided for accessing the resource again.
  • the Internet cache device when the identifier of the parsed server is not the identifier of the resource server, the Internet cache device does not cache the resource.
  • the Internet cache device caches the resource locally.
  • the Internet cache device does not cache the resource locally.
  • the Internet cache device caches the resource locally:
  • the server identifier obtained by the parsing is the resource server identifier.
  • the Internet cache device may further determine whether the resource needs to be cached according to the size and type of the resource.
  • the resource after receiving the resource returned by the resource server to the terminal device, after determining that the resource meets the first cache condition, sending the parsing request to the parsing server, where the parsing request carries the The domain name of the resource, the identifier of the server obtained by the parsing server according to the domain name of the resource, and when the identifier of the server obtained by the parsing is the identifier of the resource server, the resource is cached.
  • the resource includes caching the resource in the internet cache device to provide a terminal device accessing the resource, and can prevent the internet cache device from caching malicious resources, thereby preventing the malicious resource from being provided as a source server resource to other resources. End user.
  • the resource caching method 300 can be performed by, for example, but not limited to, an internet caching device.
  • the Internet caching device may be, for example but not limited to, a transparent cache
  • the parsing server may be, for example, but not limited to, a DNS server.
  • a resource server is an implementation of a web server.
  • the terminal device sends a TCP connection request established to the resource server to the transparent cache, where the IP address of the terminal device and the IP address of the resource server are carried.
  • the transparent cache establishes a TCP connection to the resource server by using an IP address of the terminal device.
  • the transparent cache receives an HTTP access request sent by the terminal device to the resource server.
  • the transparent cache sends the HTTP access request to the resource server by using an IP address of the terminal device.
  • the resource server returns a resource that the terminal device requests to access to the transparent cache.
  • the transparent cache returns the resource returned by the resource server to the terminal device by using the IP address of the resource server.
  • the transparent cache determines, according to the resource access popularity statistics, that the resource needs to be cached.
  • 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, where the domain name in the URL of the resource is carried, and the DNS server is requested to resolve the domain name in the URL.
  • the DNS server performs DNS resolution on the domain name in the URL of the resource, and obtains an analysis result indicating the IP address of the server.
  • the DNS server sends the parsing result to the transparent cache.
  • the transparent cache performs server IP address verification. The transparent cache determines whether the IP address of the server is the IP address of the resource server. If yes, the resource is cached locally; otherwise, the resource is not cached.
  • the resource server after receiving the resource returned by the resource server to the terminal device, after determining that the resource meets the first cache condition, sending the parsing request to the parsing server, where the parsing request carries the The domain name of the resource is received by the parsing server according to the domain name of the resource, and when the identifier of the server obtained by the parsing is the identifier of the resource server, the resource is cached.
  • the resource includes buffering the resource in the internet cache device to provide a terminal device accessing the resource, and can prevent the internet cache device from caching malicious resources, thereby preventing the malicious resource from being provided as a source server resource. Other end users.
  • the resource caching method 400 can be performed by, for example, but not limited to, an internet caching device.
  • the Internet caching device may be, for example but not limited to, a transparent cache
  • the parsing server may be, for example, but not limited to, a DNS server.
  • a resource server is an implementation of a web server.
  • the terminal device sends a TCP connection request established 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.
  • the transparent cache establishes a TCP connection to the first resource server by using an IP address of the terminal device.
  • the transparent cache receives an HTTP access request sent by the terminal device to the first resource server.
  • 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 for each received access request.
  • the transparent cache sends a DNS resolution request to the DNS server, where the domain name in the URL of the resource to be accessed by the HTTP access request is carried, and the DNS server is requested to resolve the domain name in the URL.
  • the DNS server performs DNS resolution on the domain name in the URL of the resource, and obtains an analysis result indicating the IP address of the server.
  • the DNS server sends the parsing result to the transparent cache.
  • the transparent cache performs server IP address verification.
  • the transparent cache determines whether the IP address of the server indicated by the parsing result is the IP address of the first resource server. When the IP address of the server is the IP address of the first resource server, S408 to S410 are performed; when the IP address of the server is the second When the IP address of the resource server is used, S411 to S413 are executed.
  • the transparent cache sends the HTTP access request to the first resource server by using an IP address of the terminal device.
  • the first resource server returns a resource that the terminal device requests to access to the transparent cache.
  • the transparent cache returns the resource returned by the first resource server to the terminal device by using an IP address of the first resource server.
  • the transparent cache disconnects the TCP connection to the first resource server.
  • the transparent cache establishes a TCP connection to the second resource server by using an IP address of the terminal device.
  • the transparent cache sends the HTTP access request to the second resource server by using an IP address of the terminal device.
  • the transparent cache returns the resources returned by the second resource server to the terminal device using the IP address of the first resource server.
  • the transparent cache determines whether the resource needs to be cached, and if necessary, caches the resource locally; otherwise, it does not cache.
  • the transparent cache determines whether the resource needs to be cached before returning the resource to the terminal device, and caches the resource locally if necessary; otherwise, does not cache.
  • the parsing request is sent to the parsing server, where the parsing request carries the domain name in the URL of the resource, and receives the basis returned by the parsing server.
  • the identifier of the server obtained by parsing the domain name in the URL of the resource and when the identifier of the server obtained by the parsing is the identifier of the first resource server, the resource is cached, and the identifier of the server obtained by the parsing is the identifier of the second resource server.
  • connection with the first resource server When the connection with the first resource server is disconnected, the connection with the second resource server is established, and the resource returned by the second resource server is sent to the terminal device, which can prevent the Internet cache device from caching malicious resources, thereby preventing the malicious resource from being treated as a malicious resource.
  • Source server resources are provided to other end users.
  • the technical solutions provided by the embodiment of FIG. 2, the embodiment of FIG. 3, and the embodiment of FIG. 4 can prevent the Internet cache device from caching malicious resources, thereby preventing malicious resources from being provided as source server resources.
  • Other terminal users but the technical solution provided by the embodiment of FIG. 4, when the analysis result is not the first resource server, the Internet cache device needs to re-establish the connection with the second resource server, and this process greatly increases the waiting of the terminal device user. time.
  • the Internet cache device requests the resolution server to perform domain name resolution for each resource access request received, and performs server identity verification, thereby increasing the processing load of the resolution server. And response delay.
  • the technical solution provided by the embodiment of FIG. 2 and the embodiment of FIG. 4 reduces the number of domain name resolutions and the number of server identification verifications by the resolution server, and reduces the number of times.
  • the overhead of the Internet caching device avoids the process of re-establishing the connection after the parsing result is not the target resource server, thereby avoiding the response delay of the terminal device request thus introduced.
  • the Internet cache device after receiving the resource returned by the resource server to the terminal device, the Internet cache device sends the resource to the terminal device, and then determines After the resource satisfies the first cache condition, S204 to S208 are performed.
  • This implementation minimizes the response delay to the terminal device request and minimizes the waiting time of the terminal device user.
  • the Internet cache device may send the resource to the terminal device after performing S202 to S208.
  • the response delay of the terminal device request is increased relative to the previous implementation manner, the technical solution provided by the embodiment of FIG. 4 is only satisfied for the first cache condition.
  • the resource performs domain name resolution, and also avoids the process of re-establishing the connection after the result of the analysis is not the target resource server. Therefore, compared with the technical solution provided by the embodiment of FIG. 4, the number of times of resolving the domain name resolution server and the server are also reduced.
  • the number of times of verification verification reduces the system overhead of the Internet cache device and also reduces the response delay to the terminal device request.
  • FIG. 5 is a block diagram showing the hardware structure of a general purpose computer architecture 500 in accordance with an embodiment of the present invention.
  • a general purpose computer architecture 500 includes a processor 502, a memory 504, a communication interface 506, and a bus 508.
  • the processor 502, the memory 504, and the communication interface 506 implement a communication connection with each other through the bus 508.
  • the processor 502 can be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for executing related programs.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the memory 504 may be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).
  • Memory 504 can store operating system 5041 and other applications 5042.
  • the program code for implementing the technical solution provided by the embodiment of the present invention is saved in the memory 504 and executed by the processor 502.
  • Communication interface 506 implements communication with other devices or communication networks using transceivers such as, but not limited to, transceivers.
  • Bus 508 can include a path for communicating information between various components (e.g., processor 502, memory 504, input and communication interface 506).
  • the general purpose computer architecture 500 further includes a processing module 602 for resource caching, a transmitting module 604, a receiving module 606, and a caching module 608.
  • These modules can be implemented in hardware, software implementation, or software in combination with hardware.
  • the modules, which are software, are stored in the memory 504 of the general purpose computer architecture 500 and may be used together as a separate program or as separate programs. As an optional implementation, these software modules can also be respectively, or one It is part of the application 5042 or is part of the operating system 5041.
  • the processing module 602 is configured to determine, after the receiving module receives the resource returned by the resource server to the terminal device, that the resource meets the first cache condition.
  • the sending module 604 is configured to send a parsing request to the parsing server, where the parsing request carries a domain name in a URL of the resource.
  • the receiving module 606 is configured to receive an identifier of the server that is obtained by the parsing server according to the domain name in the URL of the resource.
  • the cache module 608 is configured to cache the resource when the identifier of the server obtained by the parsing is an identifier of the resource server, where the caching the resource comprises caching the resource in the cache module to provide Give the terminal device accessing the resource.
  • the resource server is an implementation of the web server.
  • the receiving module 606 is further configured to: before the receiving the resource returned by the resource server to the terminal device, receive the connection established by the terminal device and establishing the connection with the resource server. a connection request, where the connection request carries an identifier of the terminal device and an identifier of the resource server;
  • the processing module 602 is further configured to establish a connection between the terminal device and the resource server;
  • 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 a domain name in a URL of the resource;
  • 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;
  • the receiving module 606 is further configured to receive the resource returned by the resource server.
  • the cache module 608 is further configured to not cache the resource when the identifier of the server obtained by the parsing is not the identifier of the resource server.
  • the processing module 602 is further configured to establish the connection between the terminal device and the resource server, where the processing module 602 is further configured to establish, by using the identifier of the terminal device
  • the terminal device is connected to the resource server, and the identifier of the terminal device includes an internet protocol IP address of the terminal device.
  • the sending module 604 is further configured to send the resource to the terminal device, where the sending module 604 sends the resource to the terminal by using an identifier of the resource server.
  • the device, the identifier of the resource server includes an IP address of the resource server.
  • the terminal device of the resource after receiving the resource returned by the resource server to the terminal device, determining that the resource meets the first cache condition, sending the parsing request to the parsing server, where the parsing request carries the resource
  • the domain name in the URL is received by the resolution server according to the domain name in the URL of the resource. Identifying, when the identifier of the server obtained by the parsing is an identifier of the resource server, caching the resource, and the caching the resource comprises caching the resource in the internet caching device to provide to the access station
  • the terminal device of the resource can prevent the Internet cache device from caching malicious resources, thereby preventing the malicious resource from being provided as a source server resource to other terminal users.
  • the general purpose computer structure 500 shown in FIG. 5 only shows the processor 502, the memory 504, the communication interface 506, and the bus 508, in the specific implementation process, those skilled in the art should understand that the above resource buffer device It also contains other devices necessary to get it running. At the same time, according to specific needs, those skilled in the art should understand that the above resource buffering device may also include hardware devices that implement other additional functions. Moreover, those skilled in the art will appreciate that the above-described resource buffering device may also only include the devices necessary to implement the embodiments of the present invention, and does not necessarily include all of the devices shown in FIG.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

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

Abstract

Provided is a resource cache method. The method comprises: after receiving a resource returned by a resource server to terminal equipment, a Web cache apparatus determining that the resource satisfies a first cache condition; sending a parse request to a parse server, wherein the parse request carries a domain name in a URL of the resource; receiving an identifier of the server obtained by the parse server according to the domain name in the URL of the resource; when the parsed identifier of the server is an identifier of the resource server, caching the resource, wherein caching the resource comprises caching the resource in the Web cache apparatus for providing same to terminal equipment that accesses the resource. The present invention can prevent a Web cache apparatus from caching a malicious resource so as to prevent same from providing the malicious resource, as a source server resource, to other terminal equipment users.

Description

一种资源缓存方法及装置Resource buffering method and device
本申请要求于2015年07月31日提交中国专利局、申请号为201510464724.6,发明名称为“一种资源缓存方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 20151046472, filed on Jul. 31, 2015, the entire disclosure of which is incorporated herein by reference. .
技术领域Technical field
本发明涉及通信领域,尤其涉及一种资源缓存方法及装置。The present invention relates to the field of communications, and in particular, to a resource caching method and apparatus.
背景技术Background technique
随着互联网的蓬勃发展,网络流量快速增长,给网络运营商带来了巨大的挑战。网络基础设施扩容投资巨大,难以匹配用户流量的增长速度。互联网缓存(Web Cache)系统是解决这一问题的有效方式之一。现网流量大部分来自超文本传输协议(Hyper Text Transfer Protocol,HTTP),主要包括视频、文件下载、网页浏览等,由于HTTP是基于客户机/服务器(Client/Server,C/S)的模式,用户访问资源时都需要到源服务器获取同样的数据,访问同一资源的人数越多,产生的重复数据流量越大。With the rapid development of the Internet, the rapid growth of network traffic has brought enormous challenges to network operators. The network infrastructure expansion investment is huge, and it is difficult to match the growth rate of user traffic. The Internet Cache (Web Cache) system is one of the effective ways to solve this problem. Most of the current network traffic comes from the Hyper Text Transfer Protocol (HTTP), which mainly includes video, file download, web browsing, etc. Since HTTP is based on client/server (C/S) mode, When users access resources, they need to obtain the same data from the source server. The more people access the same resources, the larger the duplicate data traffic generated.
Web Cache基于存储换带宽、流量本地化的思路,将热门资源缓存到本地,直接从本地为终端设备用户提供服务,大量减少了到上级网络的流量,节省了网络运营商的投资,如网络基础设施建设和网间结算费用等,同时还降低了响应终端设备访问的时延,提高了用户体验。Based on the idea of storing bandwidth and traffic localization, Web Cache caches hot resources to the local area and directly provides services for terminal device users. This greatly reduces the traffic to the upper-level network and saves network operators' investment, such as network infrastructure. Facilities construction and inter-network settlement fees, etc., also reduce the delay in responding to terminal equipment access and improve the user experience.
透明缓存是Web Cache的一种实现方式,透明缓存技术是指透明缓存使用Web服务器地址与终端设备交互,使用终端设备地址与Web服务器交互,使得终端设备和Web服务器对缓存系统无感知。通常,透明缓存根据终端设备建立传输控制协议(Transmission Control 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指示的资源时,透明缓存会将该木马病毒返回给其他终端设备。The transparent cache is an implementation of the Web Cache. The transparent cache technology uses the Web server address to interact with the terminal device and interacts with the Web server using the terminal device address, so that the terminal device and the Web server have no perception of the cache system. Generally, the transparent cache determines the source server IP address according to the target Internet Protocol (IP) address in the request packet of the Transmission Control Protocol (TCP) connection, and if the packet is maliciously forged by the terminal device. Or pointing to a malicious website, which may cause Web Cache to cache malicious content locally and provide it as source server content to other terminal device users. For example, after the terminal device establishes a TCP connection with a malicious website through a transparent cache, the access request is accessed. Pseudo-created Get http://www.baidu.com/20150619qq_setup.exe is sent to the malicious website through the transparent cache, the malicious website returns the Trojan virus to the terminal device through the transparent cache, if the transparent cache determines http://www.baidu The resource indicated by .com/20150619qq_setup.exe is a hot resource, and the Trojan virus returned by the malicious website will be cached locally, and used by other terminals. When the user obtains the real resource indicated by http://www.baidu.com/20150619qq_setup.exe, the transparent cache will return the Trojan virus to other terminal devices.
发明内容Summary of the invention
本发明的实施例提供一种资源缓存方法和装置,能够防止互联网缓存装置缓存恶意资源,从而防止其将恶意资源当做源服务器资源提供给其他终端设备用户。Embodiments of the present invention provide a resource caching method and apparatus, which can prevent an Internet caching device from caching malicious resources, thereby preventing it from providing malicious resources as source server resources to other terminal device users.
第一方面,提供了一种资源缓存方法,所述方法包括:互联网缓存装置在接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件;所述互联网缓存装置发送解析请求到解析服务器,所述解析请求中携带所述资源的统一资源定位符URL中的域名;所述互联网缓存装置接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识;当所述解析得到的服务器的标识为所述资源服务器的标识时,所述互联网缓存装置缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述互联网缓存装置中,以提供给访问所述资源的终端设备。The first aspect provides a resource caching method, where the method includes: after receiving the resource returned by the resource server to the terminal device, the Internet cache device determines that the resource satisfies the first cache condition; and the Internet cache device sends the parsing Requesting to the resolution server, the parsing request carrying the domain name in the Uniform Resource Locator URL of the resource; the Internet cache device receiving the identifier of the server obtained by the parsing server according to the domain name in the URL of the resource When the identifier of the server obtained by the parsing is an 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 the terminal device accessing the resource.
结合第一方面的实现方式,在第一方面第一种可能的实现方式中,在所述接收到资源服务器返回给终端设备的资源之前,所述方法还包括:所述互联网缓存装置接收所述终端设备发送的建立与所述资源服务器的连接的连接请求,所述连接请求中携带所述终端设备的标识和所述资源服务器的标识;所述互联网缓存装置建立所述终端设备与所述资源服务器的连接;所述互联网缓存装置接收所述终端设备发送的对所述资源的访问请求,所述访问请求中携带所述资源的URL中的域名;所述互联网缓存装置根据所述建立的所述终端设备与所述资源服务器的连接,发送所述访问请求到所述资源服务器;所述互联网缓存装置接收所述资源服务器返回的所述资源。In conjunction with the implementation of the first aspect, in a first possible implementation manner of the first aspect, before the receiving the resource returned by the resource server to the terminal device, the method further includes: the Internet cache device receiving the a connection request sent by the terminal device to establish a connection with the resource server, where the connection request carries an identifier of the terminal device and an identifier of the resource server; and the Internet cache device establishes the terminal device and the resource a connection of the server; the Internet cache device receives an access request for the resource sent by the terminal device, where the access request carries a domain name in a URL of the resource; and the Internet cache device is configured according to the Determining, by the terminal device, a connection with the resource server, sending the access request to the resource server; and the Internet cache device receiving the resource returned by the resource server.
结合第一方面、第一方面的第一种可能的实现方式,在第二种可能实现的方式中,当所述解析得到的服务器的标识不为所述资源服务器的标识时,所述互联网缓存装置不缓存所述资源。With reference to the first aspect, the first possible implementation manner of the first aspect, in a second possible implementation manner, when the identifier of the server obtained by the 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, the first to the second possible implementation manners of the first aspect, in a third possible implementation manner, the establishing, by the Internet cache device, the connection between the terminal device and the resource server includes: The Internet cache device establishes a connection between the terminal device and the resource server by using an identifier of the terminal device, where the identifier of the terminal device includes an Internet Protocol IP address of the terminal device.
结合第一方面、第一方面的第一种至第三种可能的实现方式,在第四种可能实现的方式中,所述互联网缓存装置还发送所述资源给所述终端设备,所述互联网缓存装置通过所述资源服务器的标识发送所述资源给所述终端设备,所述资源服务器的标识包括所述资源服务器的IP地址。 With reference to the first aspect, the first to third possible implementation manners of the first aspect, in a fourth possible implementation manner, the Internet cache device further sends the resource to the terminal device, the Internet The cache device sends the resource to the terminal device by using an identifier of the resource server, where the identifier of the resource server includes an IP address of the resource server.
结合第一方面、第一方面的第一种至第四种可能的实现方式,在第五种可能实现的方式中,所述连接请求包括传输控制协议TCP连接请求,所述对所述资源的访问请求包括超文本传输协议HTTP请求,所述解析服务器包括域名系统DNS服务器。With reference to the first aspect, the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation manner, the connection request includes a transmission control protocol TCP connection request, where the resource is 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, the first to fifth possible implementation manners of the first aspect, in a sixth possible implementation manner, the determining that the resource meets the first cache condition comprises determining that the resource satisfies resource access According to the heat statistics condition, the resource access heat statistics include statistics on the frequency of accessing the same resource in a certain period of time.
第二方面,提供一种资源缓存装置,包括处理模块,发送模块,接收模块和缓存模块:所述处理模块,用于在所述接收模块接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件;所述发送模块,用于发送解析请求到解析服务器,所述解析请求中携带所述资源的统一资源定位符URL中的域名;所述接收模块,用于接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识;所述缓存模块,用于当所述解析得到的服务器的标识为所述资源服务器的标识时,缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述缓存模块中,以提供给访问所述资源的终端设备。The second aspect provides a resource cache device, including a processing module, a sending module, a receiving module, and a cache module: the processing module is configured to determine, after the receiving module receives the resource returned by the resource server to the terminal device, The sending module satisfies a first cache condition; the sending module is configured to send a parsing request to a parsing server, where the parsing request carries a domain name in a uniform resource locator URL of the resource; and the receiving module is configured to receive the The identifier of the server obtained by parsing the server according to the domain name in the URL of the resource; the cache module is configured to cache the resource when the identifier of the server obtained by the parsing is an identifier of the resource server, The caching the resource includes caching the resource in the cache module to provide to a terminal device accessing the resource.
结合第二方面的实现方式,在第二方面第一种可能的实现方式中,所述接收模块还用于在所述接收到资源服务器返回给终端设备的资源之前,接收所述终端设备发送的建立与所述资源服务器的连接的连接请求,所述连接请求中携带所述终端设备的标识和所述资源服务器的标识;所述处理模块还用于建立所述终端设备与所述资源服务器的连接;所述接收模块还用于接收所述终端设备发送的对所述资源的访问请求,所述访问请求中携带所述资源的URL中的域名;所述发送模块还用于根据所述建立的所述终端设备与所述资源服务器的连接,发送所述访问请求到所述资源服务器;所述接收模块还用于接收所述资源服务器返回的所述资源。With the implementation of the second aspect, in a first possible implementation manner of the second aspect, the receiving module is further configured to: before receiving the resource that the resource server returns to the terminal device, receive the sending by the terminal device Establishing a connection request for the connection with the resource server, where the connection request carries an identifier of the terminal device and an identifier of the resource server; the processing module is further configured to establish the terminal device and the resource server The receiving module is further configured to receive an access request for the resource sent by the terminal device, where the access request carries a domain name in a URL of the resource; the sending module is further configured to establish according to the The terminal device is connected to the resource server, and sends the access request to the resource server; the receiving module is further configured to receive the resource returned by the resource server.
结合第二方面、第二方面的第一种可能的实现方式,在第二种可能实现的方式中,所述缓存模块还用于当所述解析得到的服务器的标识不为所述资源服务器的标识时,不缓存所述资源。With reference to the second aspect, the first possible implementation manner of the second aspect, in a second possible implementation manner, the cache module is further configured to: when the identifier of the server obtained by the parsing is not the resource server The resource is not cached when it is identified.
结合第二方面、第二方面的第一种至第二种可能的实现方式,在第三种可能实现的方式中,所述处理模块还用于建立所述终端设备与所述资源服务器的连接包括:所述处理模块还用于通过所述终端设备的标识建立所述终端设备与所述资源服务器的连接,所述终端设备的标识包括所述终端设备的互联网协议IP地址。With reference to the second aspect, the first to the second possible implementation manners of the second aspect, in a third possible implementation manner, the processing module is further configured to establish a connection between the terminal device and the resource server The processing module is further configured to establish, by using an identifier of the terminal device, a connection between the terminal device and the resource server, where the identifier of the terminal device includes an Internet Protocol IP address of the terminal device.
结合第二方面、第二方面的第一种至第三种可能的实现方式,在第四种可能实现的方式中,所述发送模块还用于发送所述资源给所述终端设备,所述发送模块通过所述资源服务器的标识发送所述资源给所述终端设备,所述资源服务器的标识包括所述资源服务器的IP地址。 With reference to the second aspect, the first to the 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 sending module sends the resource to the terminal device by using an identifier of the resource server, where the identifier of the resource server includes an IP address of the resource server.
结合第二方面、第二方面的第一种至第四种可能的实现方式,在第五种可能实现的方式中,所述连接请求包括传输控制协议TCP连接请求,所述对所述资源的访问请求包括超文本传输协议HTTP请求,所述解析服务器包括域名系统DNS服务器。With reference to the second aspect, the first to fourth possible implementation manners of the second aspect, in a fifth possible implementation manner, the connection request includes a transmission control protocol TCP connection request, where the resource is 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, the first to fifth possible implementation manners of the second aspect, in a sixth possible implementation manner, the determining that the resource meets the first cache condition comprises determining that the resource satisfies resource access According to the heat statistics condition, the resource access heat statistics include statistics on the frequency of accessing the same resource in 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, determining that the resource meets the first cache condition, sending the parsing request to the parsing server, where the parsing request carries the resource And the domain name of the server that is obtained by the parsing server according to the domain name of the resource, and when the identifier of the server obtained by the parsing is the identifier of the resource server, the resource is cached. The resource includes caching the resource in the internet cache device to provide a terminal device accessing the resource, and can prevent the internet cache device from caching malicious resources, thereby preventing the malicious resource from being provided as a source server resource to other terminals. user.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例应用的网络架构的示意图;1 is a schematic diagram of a network architecture applied to an embodiment of the present invention;
图2是依据本发明一实施例的资源缓存方法的示范性流程图;2 is an exemplary flowchart of a resource caching method according to an embodiment of the present invention;
图3是依据本发明一实施例的资源缓存方法的示范性信令图;3 is an exemplary signaling diagram of a resource caching method in accordance with an embodiment of the present invention;
图4是依据本发明另一实施例的资源缓存方法的示范性信令图;4 is an exemplary signaling diagram of a resource caching method in accordance with another embodiment of the present invention;
图5是依据本发明一实施例的通用计算机结构的硬件结构示意图;FIG. 5 is a schematic diagram showing the hardware structure of a general-purpose computer structure according to an embodiment of the present invention; FIG.
图6是依据本发明一实施例的资源缓存装置的结构示意图。FIG. 6 is a schematic structural diagram of a resource cache apparatus according to an embodiment of the invention.
具体实施方式detailed description
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透彻理解本发明。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发 明。在其它情况中,省略对众所周知的装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for purposes of illustration and description, reference However, it will be apparent to those skilled in the art that the present invention can be implemented in other embodiments without these specific details. Bright. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the invention.
图1是依据本发明一实施例的资源缓存方法的网络架构示意图。FIG. 1 is a schematic diagram of a network architecture of a resource caching method according to an embodiment of the invention.
互联网缓存装置102,部署在终端设备101和资源服务器104之间,对终端设备101发送的资源访问请求进行监控,可以在本地保存资源服务器104返回的响应的副本,资源服务器104返回的响应可以为例如但不限于超文本标记语言(Hyper Text Markup Language,HTML)网页、图片、视频、文件下载中的至少一种。后续收到终端设备101或其他终端设备发送的访问相同资源的请求时,互联网缓存装置102使用已保存在本地的响应副本返回给用户,从而无需再向资源服务器104请求。The Internet cache device 102 is deployed between the terminal device 101 and the resource server 104, and monitors the resource access request sent by the terminal device 101. The copy of the response returned by the resource server 104 can be saved locally. The response returned by the resource server 104 can be For example, but not limited to, at least one of a Hyper Text Markup Language (HTML) web page, a picture, a video, and a file download. Upon subsequent receipt of a request by the terminal device 101 or other terminal device to access the same resource, the Internet caching device 102 returns the response to the user using the locally saved copy of the response, thereby eliminating the need to request the resource server 104 again.
解析服务器103,可以为例如但不限于域名系统(Domain Name System,DNS)服务器,为互联网上作为域名和IP地址相互映射的一个分布式数据库,通过主机名,最终得到该主机名对应的IP地址的过程叫做域名解析,或主机名解析。在收录有互联网标准的请求评议文档(Request For Comments,RFC)中,RFC 2181、RFC 2136、RFC 2308文档对DNS进行了说明。The resolution server 103 may be, for example, but not limited to, a Domain Name System (DNS) server, which is a distributed database that is mapped to each other as a domain name and an IP address on the Internet. The host name is used to obtain the IP address corresponding to the host name. The process is called domain name resolution, or host name resolution. The DNS is described in RFC 2181, RFC 2136, and RFC 2308 documents in the Request For Comments (RFC) with Internet standards.
在依据本发明一实施例的资源缓存方法的网络架构中,终端设备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 cache device 102, and the Internet cache device 102 forwards the resource access request to the corresponding resource server 104, and the resource server 104 returns to the terminal. The device 101 requests the accessed resource to the Internet caching device 102, and the Internet caching device 102 forwards the resource to the terminal device 101. The Internet cache device 102 determines whether the resource needs to be cached. When it is determined that the resource needs to be cached, the request resolution server 103 parses the domain name in the 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 cache device is an independent physical device, and may also be set as a functional entity in other devices, and may have other names.
图2是依据本发明一实施例的资源缓存方法200的示范性流程图。在具体实现过程中,资源缓存方法200可以由例如但不限于互联网缓存装置来执行,该互联网缓存装置可以是例如但不限于透明缓存。资源服务器是Web服务器的一种实现方式。2 is an exemplary flow diagram of a resource caching method 200 in accordance with 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, which 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 cache device determines that the resource meets the first cache condition.
在本发明实施例的一种实现方式中,所述确定所述资源满足第一缓存条件包括确定所述资源满足资源访问热度统计条件,所述资源访问热度统计包括一定时间内对访问同一资源的频次的统计。In an implementation manner of the embodiment of the present invention, the determining that the resource meets the first cache condition comprises determining that the resource meets a resource access heat statistics condition, where the resource access heat statistics include accessing the same resource in a certain period of time. Frequency statistics.
在本发明实施例的一种实现方式中,在所述接收到资源服务器返回给终端设备的资源之前: In an implementation manner of the embodiment of the present invention, before receiving the resource returned by the resource server to the terminal device:
所述互联网缓存装置接收所述终端设备发送的建立与所述资源服务器的连接的连接请求,所述连接请求中携带所述终端设备的标识和所述资源服务器的标识;The Internet cache device receives a connection request that is established by the terminal device to establish a connection with the resource server, where the connection request carries an identifier of the terminal device and an identifier of the resource server;
所述互联网缓存装置建立所述终端设备与所述资源服务器的连接;The internet caching device establishes a connection between the terminal device and the resource server;
所述互联网缓存装置接收所述终端设备发送的对所述资源的访问请求,所述访问请求中携带所述资源的URL中的域名;The Internet cache device receives an access request for the resource sent by the terminal device, where the access request carries a domain name in a URL of the resource;
所述互联网缓存装置根据所述建立的所述终端设备与所述资源服务器的连接,发送所述访问请求到所述资源服务器;The Internet cache 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 connection request may be, for example, but not limited to, a Transmission Control Protocol (TCP) connection request, and the access request for the resource 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 cache device establishes a connection between the terminal device and the resource server by using the identifier of the terminal device, and the Internet cache device sends the access request to the resource by using the identifier of the terminal device. The server, wherein the identifier of the terminal device includes an IP address of the terminal device.
在本发明实施例的一种实现方式中,该互联网缓存装置通过该资源服务器的标识发送该资源服务器返回的资源给该终端设备,该资源服务器的标识包括该资源服务器的IP地址。In an implementation manner of the embodiment of the present invention, the Internet cache device sends the resource returned by the resource server to the terminal device by using the identifier of the resource server, where the identifier of the resource server includes an IP address of the resource server.
具体的,资源服务器返回的资源可以为例如但不限于HTML网页、图片、视频、文件下载中的至少一种。Specifically, the resource returned by the resource server may be at least one of, for example, but not limited to, an HTML webpage, a picture, a video, and a file download.
S204,所述互联网缓存装置发送解析请求到解析服务器,所述解析请求中携带所述资源的URL中的域名。S204. The Internet cache device sends a parsing request to a parsing server, where the parsing request carries a domain name in a URL of the resource.
S206,所述互联网缓存装置接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识。S206. The Internet cache device receives an identifier of a server that is obtained by the parsing server according to a domain name in a 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 parsing request is used to request the DNS server to resolve the domain name in the URL of the resource. The result of the parsing indicates the IP address of the server.
S208,当所述解析得到的服务器的标识为所述资源服务器的标识时,所述互联网缓存装置缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述互联网缓存装置中,以提供给访问所述资源的终端设备。S208. When the identifier of the server obtained by the parsing is an identifier of the resource server, the Internet cache device caches the resource, and the caching the resource includes caching the resource in the Internet cache device. To provide access to the terminal device of the resource.
其中,所述提供给访问所述资源的终端设备包括提供给访问该资源的其他终端设备,也包括提供给再次访问该资源的该终端设备。The terminal device provided for accessing the resource includes other terminal devices that are provided for accessing the resource, and the terminal device that is provided for accessing the resource again.
在本发明实施例的一种实现方式中,当解析得到的服务器的标识不为该资源服务器的标识时,该互联网缓存装置不缓存该资源。In an implementation manner of the embodiment of the present invention, when the identifier of the parsed server is not the identifier of the resource server, the Internet cache device does not cache the resource.
在本发明实施例的一种实现方式中,当解析得到的服务器的标识为该资源服务器的IP地址时,该互联网缓存装置将该资源缓存在本地。当 解析得到的服务器的标识不为该资源服务器的IP地址时,该互联网缓存装置不将该资源缓存在本地。In an implementation manner of the embodiment of the present invention, when the identifier of the server obtained by the parsing is an IP address of the resource server, the Internet cache device caches the resource locally. when When the identifier of the parsed server is not the IP address of the resource server, the Internet cache 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 cache device caches the resource locally:
1、满足资源访问热度统计条件时;1. When the statistical conditions for resource access are met,
2、满足当解析得到的服务器标识为资源服务器标识时。2. When the server identifier obtained by the parsing is the resource server identifier.
此外,互联网缓存装置在接收到资源服务器返回给终端设备的资源后,还可以进一步根据资源的大小、类型来确定是否需要缓存该资源。In addition, after receiving the resource returned by the resource server to the terminal device, the Internet cache device may further determine whether the resource needs to be cached 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 meets the first cache condition, sending the parsing request to the parsing server, where the parsing request carries the The domain name of the resource, the identifier of the server obtained by the parsing server according to the domain name of the resource, and when the identifier of the server obtained by the parsing is the identifier of the resource server, the resource is cached. The resource includes caching the resource in the internet cache device to provide a terminal device accessing the resource, and can prevent the internet cache device from caching malicious resources, thereby preventing the malicious resource from being provided as a source server resource to other resources. End user.
图3是依据本发明一实施例的资源缓存方法的示范性信令图。在具体实现过程中,资源缓存方法300可以由例如但不限于互联网缓存装置执行。在本实施例中,互联网缓存装置可以是例如但不限于透明缓存,解析服务器可以是例如但不限于DNS服务器。资源服务器是Web服务器的一种实现方式。3 is an exemplary signaling diagram of a resource caching method in accordance with an embodiment of the present invention. In a particular implementation, the resource caching method 300 can be performed 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 parsing 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 request established to the resource server to the transparent cache, where the IP address of the terminal device and the IP address of the resource server are carried.
S302,透明缓存使用终端设备的IP地址建立到资源服务器的TCP连接。S302. The transparent cache establishes a TCP connection to the resource server by using an IP address of the terminal device.
S303,透明缓存接收到终端设备发往资源服务器的HTTP访问请求。S303. The transparent cache receives an HTTP access request sent by the terminal device to the resource server.
S304,透明缓存使用终端设备的IP地址将该HTTP访问请求发送到资源服务器。S304. The transparent cache sends the HTTP access request to the resource server by using an IP address of the terminal device.
S305,资源服务器返回终端设备请求访问的资源到透明缓存。S305. The resource server returns a resource that the terminal device requests to access to the transparent cache.
S306,透明缓存使用资源服务器的IP地址将资源服务器返回的资源返回给终端设备。S306. The transparent cache returns the resource returned by the resource server to the terminal device by using the IP address of the resource server.
S307,透明缓存根据资源访问热度统计确定需要缓存该资源。S307. The transparent cache determines, according to the resource access popularity statistics, that the resource needs to be cached.
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, where the domain name in the URL of the resource is carried, and the DNS server is requested 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 an analysis result indicating the IP address of the server.
S310,DNS服务器发送该解析结果到透明缓存。S310. The DNS server sends the parsing result to the transparent cache.
S311,透明缓存进行服务器IP地址校验。透明缓存判断服务器的IP地址是否为该资源服务器的IP地址,如果是,则将该资源缓存在本地,否则,不缓存该资源。S311. The transparent cache performs server IP address verification. The transparent cache determines whether the IP address of the server is the IP address of the resource server. If yes, the resource is cached locally; otherwise, the resource is not cached.
根据本发明实施例提供的技术方案,通过在接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件后,再发送解析请求到解析服务器,所述解析请求中携带所述资源的域名,接收所述解析服务器根据所述资源的域名进行解析得到的服务器的标识,当所述解析得到的服务器的标识为所述资源服务器的标识时,缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述互联网缓存装置中,以提供给访问所述资源的终端设备,能够防止互联网缓存装置缓存恶意资源,从而能够防止其将恶意资源当做源服务器资源提供给其他终端用户。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 meets the first cache condition, sending the parsing request to the parsing server, where the parsing request carries the The domain name of the resource is received by the parsing server according to the domain name of the resource, and when the identifier of the server obtained by the parsing is the identifier of the resource server, the resource is cached. The resource includes buffering the resource in the internet cache device to provide a terminal device accessing the resource, and can prevent the internet cache device from caching malicious resources, thereby preventing the malicious resource from being provided as a source server resource. Other end users.
图4是依据本发明另一实施例的资源缓存方法的示范性信令图。在具体实现过程中,资源缓存方法400可以由例如但不限于互联网缓存装置执行。在本实施例中,互联网缓存装置可以是例如但不限于透明缓存,解析服务器可以是例如但不限于DNS服务器。资源服务器是Web服务器的一种实现方式。4 is an exemplary signaling diagram of a resource caching method in accordance with another embodiment of the present invention. In a particular implementation, the resource caching method 400 can be performed 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 parsing 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 request established 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 establishes a TCP connection to the first resource server by using an IP address of the terminal device.
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. 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 for each received access request. The transparent cache sends a DNS resolution request to the DNS server, where the domain name in the URL of the resource to be accessed by the HTTP access request is carried, and the DNS server is requested 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 an analysis result indicating the IP address of the server.
S406,DNS服务器发送该解析结果到透明缓存。S406. The DNS server sends the parsing result to the transparent cache.
S407,透明缓存进行服务器IP地址校验。透明缓存确定解析结果指示的服务器的IP地址是否为该第一资源服务器的IP地址,当服务器的IP地址是第一资源服务器的IP地址时,执行S408至S410;当服务器的IP地址是第二资源服务器的IP地址时,执行S411至S413。S407. The transparent cache performs server IP address verification. The transparent cache determines whether the IP address of the server indicated by the parsing result is the IP address of the first resource server. When the IP address of the server is the IP address of the first resource server, S408 to S410 are performed; when the IP address of the server is the second When the IP address of the resource server is used, S411 to S413 are executed.
S408,透明缓存使用终端设备的IP地址将该HTTP访问请求发送到第一资源服务器。S408. The transparent cache sends the HTTP access request to the first resource server by using an IP address of the terminal device.
S409,第一资源服务器返回终端设备请求访问的资源到透明缓存。 S409. The first resource server returns a resource that the terminal device requests to access to the transparent cache.
S410,透明缓存使用第一资源服务器的IP地址将第一资源服务器返回的资源返回给终端设备。S410. The transparent cache returns the resource returned by the first resource server to the terminal device by using an IP address of the first resource server.
S411,透明缓存断开到第一资源服务器的TCP连接。S411. The transparent cache disconnects the TCP connection to the first resource server.
S412,透明缓存使用终端设备的IP地址建立到第二资源服务器的TCP连接。S412. The transparent cache establishes a TCP connection to the second resource server by using an IP address of the terminal device.
S413,透明缓存使用终端设备的IP地址将该HTTP访问请求发送到第二资源服务器。S413. The transparent cache sends the HTTP access request to the second resource server by using an IP address of the terminal device.
此后,透明缓存使用第一资源服务器的IP地址将第二资源服务器返回的资源返回给终端设备。Thereafter, the transparent cache returns the resources returned by the second resource server to the terminal device using the IP address of the first resource server.
在本发明实施例的一种实现方式中,透明缓存在将资源返回给终端设备后,确定是否需要缓存该资源,如果需要,将该资源缓存在本地;否则,不缓存。In an implementation manner of the embodiment of the present invention, after the resource is returned to the terminal device, the transparent cache determines whether the resource needs to be cached, and if necessary, caches the resource locally; otherwise, it does not cache.
在本发明实施例的另一种实现方式中,透明缓存在将资源返回给终端设备之前,确定是否需要缓存该资源,如果需要,将该资源缓存在本地;否则,不缓存。In another implementation manner of the embodiment of the present invention, the transparent cache determines whether the resource needs to be cached before returning the resource to the terminal device, and caches the resource locally if necessary; otherwise, does not cache.
依据本发明实施例提供的技术方案,通过在发送资源服务器返回的资源到终端设备之前,发送解析请求到解析服务器,该解析请求中携带该资源的URL中的域名,接收该解析服务器返回的根据该资源的的URL中的域名进行解析得到的服务器的标识,当解析得到的服务器的标识为第一资源服务器的标识时,缓存该资源,当解析得到的服务器的标识为第二资源服务器的标识时,断开与第一资源服务器的连接,建立与第二资源服务器的连接,发送第二资源服务器返回的资源到终端设备,能够防止互联网缓存装置缓存恶意资源,从而能够防止其将恶意资源当做源服务器资源提供给其他终端用户。According to the technical solution provided by the embodiment of the present invention, before the resource returned by the resource server is sent to the terminal device, the parsing request is sent to the parsing server, where the parsing request carries the domain name in the URL of the resource, and receives the basis returned by the parsing server. The identifier of the server obtained by parsing the domain name in the URL of the resource, and when the identifier of the server obtained by the parsing is the identifier of the first resource server, the resource is cached, and the identifier of the server obtained by the parsing is the identifier of the second resource server. When the connection with the first resource server is disconnected, the connection with the second resource server is established, and the resource returned by the second resource server is sent to the terminal device, which can prevent the Internet cache device from caching malicious resources, thereby preventing the malicious resource from being treated as a malicious resource. Source server resources are provided to other end users.
值得注意的是,本发明图2实施例、图3实施例、图4实施例所提供的技术方案虽然都能够防止互联网缓存装置缓存恶意资源,从而能够防止其将恶意资源当做源服务器资源提供给其他终端用户,但是图4实施例所提供的技术方案在解析结果不是第一资源服务器时,互联网缓存装置需要重新建立与第二资源服务器的连接,而这一过程大大增加了终端设备用户的等待时间。而且,由于图4实施例所提供的技术方案中,互联网缓存装置对于接收到的每个资源访问请求都要请求解析服务器进行域名解析,并进行服务器标识校验,因此增加了解析服务器的处理负担和响应时延。It should be noted that the technical solutions provided by the embodiment of FIG. 2, the embodiment of FIG. 3, and the embodiment of FIG. 4 can prevent the Internet cache device from caching malicious resources, thereby preventing malicious resources from being provided as source server resources. Other terminal users, but the technical solution provided by the embodiment of FIG. 4, when the analysis result is not the first resource server, the Internet cache device needs to re-establish the connection with the second resource server, and this process greatly increases the waiting of the terminal device user. time. Moreover, in the technical solution provided by the embodiment of FIG. 4, the Internet cache device requests the resolution server to perform domain name resolution for each resource access request received, and performs server identity verification, thereby increasing the processing load of the resolution server. And response delay.
本发明图2实施例和图3实施例所提供的技术方案,相对于图4实施例所提供的技术方案来说,减少了解析服务器进行域名解析的次数和服务器标识校验的次数,降低了互联网缓存装置的系统开销,避免了解析结果不是目标资源服务器后重新建立连接的过程,从而避免了由此引入的对终端设备请求的响应时延。 Compared with the technical solution provided by the embodiment of FIG. 4, the technical solution provided by the embodiment of FIG. 2 and the embodiment of FIG. 4 reduces the number of domain name resolutions and the number of server identification verifications by the resolution server, and reduces the number of times. The overhead of the Internet caching device avoids the process of re-establishing the connection after the parsing result is not the target resource server, thereby avoiding the response delay of the terminal device request thus introduced.
另外,对于图2实施例,在本发明实施例的一种实现方式中,S202中,互联网缓存装置在接收到资源服务器返回给终端设备的资源后,发送该资源给该终端设备,之后,确定所述资源满足第一缓存条件后,再执行S204至S208。这种实现方式能够最大限度的减小对终端设备请求的响应时延,最大限度的减小终端设备用户的等待时间。In addition, in the implementation of the embodiment of the present invention, 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 cache device sends the resource to the terminal device, and then determines After the resource satisfies the first cache condition, S204 to S208 are performed. This implementation minimizes the response delay to the terminal device request and minimizes the waiting time of the terminal device user.
对于图2实施例,在本发明实施例的另一种实现方式中,互联网缓存装置可以在执行完S202至S208后,再发送该资源给该终端设备。这种实现方式虽然相对于上一种实现方式来说,对终端设备请求的响应时延增大,但相对于图4实施例所提供的技术方案而言,由于其只对满足第一缓存条件的资源进行域名解析,而且同样避免了解析结果不是目标资源服务器后重新建立连接的过程,因此,相对于图4实施例所提供的技术方案,其也减少了解析服务器进行域名解析的次数和服务器标识校验的次数,降低了互联网缓存装置的系统开销,同时也降低了对终端设备请求的响应时延。For the implementation of the embodiment of the present invention, in another implementation manner of the embodiment of the present invention, the Internet cache device may send the resource to the terminal device after performing S202 to S208. Although the response delay of the terminal device request is increased relative to the previous implementation manner, the technical solution provided by the embodiment of FIG. 4 is only satisfied for the first cache condition. The resource performs domain name resolution, and also avoids the process of re-establishing the connection after the result of the analysis is not the target resource server. Therefore, compared with the technical solution provided by the embodiment of FIG. 4, the number of times of resolving the domain name resolution server and the server are also reduced. The number of times of verification verification reduces the system overhead of the Internet cache device and also reduces the response delay to the terminal device request.
图5是依据本发明一实施例的通用计算机结构500的硬件结构示意图。如图5所示,通用计算机结构500包括处理器502、存储器504、通信接口506和总线508。其中,处理器502、存储器504和通信接口506通过总线508实现彼此之间的通信连接。FIG. 5 is a block diagram showing the hardware structure of a general purpose computer architecture 500 in accordance with an embodiment of the present invention. As shown in FIG. 5, a general purpose computer architecture 500 includes a processor 502, a memory 504, a communication interface 506, and a bus 508. Among them, the processor 502, the memory 504, and the communication interface 506 implement a communication connection with each other through the bus 508.
处理器502可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit,ASIC),或者一个或多个集成电路,用于执行相关程序,以实现本发明实施例所提供的技术方案。The processor 502 can be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for executing related programs. The technical solution provided by the embodiment of the present invention is implemented.
存储器504可以是只读存储器(Read Only Memory,ROM),静态存储设备,动态存储设备或者随机存取存储器(Random Access Memory,RAM)。存储器504可以存储操作系统5041和其他应用程序5042。在通过软件或者固件来实现本发明实施例提供的技术方案时,用于实现本发明实施例提供的技术方案的程序代码保存在存储器504中,并由处理器502来执行。The memory 504 may be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). Memory 504 can store operating system 5041 and other applications 5042. When the technical solution provided by the embodiment of the present invention is implemented by software or firmware, the program code for implementing the technical solution provided by the embodiment of the present invention is saved in the memory 504 and executed by the processor 502.
通信接口506使用例如但不限于收发器一类的收发装置,来实现接与其他设备或通信网络之间的通信。 Communication interface 506 implements communication with other devices or communication networks using transceivers such as, but not limited to, transceivers.
总线508可包括一通路,在各个部件(例如处理器502、存储器504、输和通信接口506)之间传送信息。Bus 508 can include a path for communicating information between various components (e.g., 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 apparatus includes the general purpose computer architecture 500 described above, the general purpose computer architecture 500 further includes a processing module 602 for resource caching, a transmitting module 604, a receiving module 606, and a caching module 608. These modules can be implemented in hardware, software implementation, or software in combination with hardware. The modules, which are software, are stored in the memory 504 of the general purpose computer architecture 500 and may be used together as a separate program or as separate programs. As an optional implementation, these software modules can also be respectively, or one It is part of the application 5042 or is part of the operating system 5041.
处理模块602,用于在所述接收模块接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件。The processing module 602 is configured to determine, after the receiving module receives the resource returned by the resource server to the terminal device, that the resource meets the first cache condition.
发送模块604,用于发送解析请求到解析服务器,所述解析请求中携带所述资源的URL中的域名。The sending module 604 is configured to send a parsing request to the parsing server, where the parsing request carries a domain name in a URL of the resource.
接收模块606,用于接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识。The receiving module 606 is configured to receive an identifier of the server that is obtained by the parsing server according to the domain name in the URL of the resource.
缓存模块608,用于当所述解析得到的服务器的标识为所述资源服务器的标识时,缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述缓存模块中,以提供给访问所述资源的终端设备。The cache module 608 is configured to cache the resource when the identifier of the server obtained by the parsing is an identifier of the resource server, where the caching the resource comprises caching the resource in the cache module to provide Give the terminal device accessing the resource.
其中,资源服务器是Web服务器的一种实现方式。Among them, the resource server is an implementation of the web server.
在本发明实施例的一种实现方式中,所述接收模块606还用于在所述接收到资源服务器返回给终端设备的资源之前,接收所述终端设备发送的建立与所述资源服务器的连接的连接请求,所述连接请求中携带所述终端设备的标识和所述资源服务器的标识;In an implementation manner of the embodiment of the present invention, the receiving module 606 is further configured to: before the receiving the resource returned by the resource server to the terminal device, receive the connection established by the terminal device and establishing the connection with the resource server. a connection request, where the connection request carries an identifier of the terminal device and an 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 a domain name in a 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 further configured to receive the resource returned by the resource server.
在本发明实施例的一种实现方式中,所述缓存模块608还用于当所述解析得到的服务器的标识不为所述资源服务器的标识时,不缓存所述资源。In an implementation manner of the embodiment of the present invention, the cache module 608 is further configured to not cache the resource when the identifier of the server obtained by the parsing is not the identifier of the resource server.
在本发明实施例的一种实现方式中,所述处理模块602还用于建立所述终端设备与所述资源服务器的连接包括:所述处理模块602还用于通过所述终端设备的标识建立所述终端设备与所述资源服务器的连接,所述终端设备的标识包括所述终端设备的互联网协议IP地址。In an implementation manner of the embodiment of the present invention, the processing module 602 is further configured to establish the connection between the terminal device and the resource server, where the processing module 602 is further configured to establish, by using the identifier of the terminal device The terminal device is connected to the resource server, and the identifier of the terminal device includes an 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, where the sending module 604 sends the resource to the terminal by using an identifier of the resource server. The device, the identifier of the resource server includes an 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, determining that the resource meets the first cache condition, sending the parsing request to the parsing server, where the parsing request carries the resource The domain name in the URL is received by the resolution server according to the domain name in the URL of the resource. Identifying, when the identifier of the server obtained by the parsing is an identifier of the resource server, caching the resource, and the caching the resource comprises caching the resource in the internet caching device to provide to the access station The terminal device of the resource can prevent the Internet cache device from caching malicious resources, thereby preventing the malicious resource from being provided as a source server resource to other terminal users.
应注意,尽管图5所示的通用计算机结构500仅仅示出了处理器502、存储器504、通信接口506和总线508,但是在具体实现过程中,本领域的技术人员应当明白,上述资源缓存装置还包含实现正常运行所必须的其他器件。同时,根据具体需要,本领域的技术人员应当明白,上述资源缓存装置还可包含实现其他附加功能的硬件器件。此外,本领域的技术人员应当明白,上述资源缓存装置也可仅仅包含实现本发明实施例所必须的器件,而不必包含图5中所示的全部器件。It should be noted that although the general purpose computer structure 500 shown in FIG. 5 only shows the processor 502, the memory 504, the communication interface 506, and the bus 508, in the specific implementation process, those skilled in the art should understand that the above resource buffer device It also contains other devices necessary to get it running. At the same time, according to specific needs, those skilled in the art should understand that the above resource buffering device may also include hardware devices that implement other additional functions. Moreover, those skilled in the art will appreciate that the above-described resource buffering device may also only include the devices necessary to implement the embodiments of the present invention, and does not necessarily include all of the devices shown in FIG.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (14)

  1. 一种资源缓存方法,其特征在于,包括以下步骤:A resource caching method, comprising the steps of:
    互联网缓存装置在接收到资源服务器返回给终端设备的资源后,确定所述资源满足第一缓存条件;After receiving the resource returned by the resource server to the terminal device, the Internet cache device determines that the resource meets the first cache condition;
    所述互联网缓存装置发送解析请求到解析服务器,所述解析请求中携带所述资源的统一资源定位符URL中的域名;The Internet cache device sends a parsing request to the parsing server, where the parsing request carries the domain name in the Uniform Resource Locator URL of the resource;
    所述互联网缓存装置接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识;The Internet cache device receives an identifier of a server that is parsed by the parsing server according to a domain name in a URL of the resource;
    当所述解析得到的服务器的标识为所述资源服务器的标识时,所述互联网缓存装置缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述互联网缓存装置中,以提供给访问所述资源的终端设备。And when the identifier of the server obtained by the parsing is an 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 provide Give the terminal device accessing the resource.
  2. 如权利要求1所述的方法,其特征在于,在所述接收到资源服务器返回给终端设备的资源之前,所述方法还包括:The method of claim 1, wherein before the receiving the resource returned by the resource server to the terminal device, the method further comprises:
    所述互联网缓存装置接收所述终端设备发送的建立与所述资源服务器的连接的连接请求,所述连接请求中携带所述终端设备的标识和所述资源服务器的标识;The Internet cache device receives a connection request that is established by the terminal device to establish a connection with the resource server, where the connection request carries an identifier of the terminal device and an identifier of the resource server;
    所述互联网缓存装置建立所述终端设备与所述资源服务器的连接;The internet caching device establishes a connection between the terminal device and the resource server;
    所述互联网缓存装置接收所述终端设备发送的对所述资源的访问请求,所述访问请求中携带所述资源的URL中的域名;The Internet cache device receives an access request for the resource sent by the terminal device, where the access request carries a domain name in a URL of the resource;
    所述互联网缓存装置根据所述建立的所述终端设备与所述资源服务器的连接,发送所述访问请求到所述资源服务器;The Internet cache 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所述的方法,其特征在于,当所述解析得到的服务器的标识不为所述资源服务器的标识时,所述互联网缓存装置不缓存所述资源。The method according to claim 1 or 2, wherein the Internet cache device does not cache the resource when the identifier of the server obtained by the parsing is not the identifier of the resource server.
  4. 如权利要求2或3所述的方法,其特征在于,A method according to claim 2 or 3, wherein
    所述互联网缓存装置建立所述终端设备与所述资源服务器的连接包括:所述互联网缓存装置通过所述终端设备的标识建立所述终端设备与所述资源服务器的连接,所述终端设备的标识包括所述终端设备的互联网协议IP地址。The establishing, by the Internet cache device, the connection between the terminal device and the resource server, the Internet cache device establishes a connection between the terminal device and the resource server by using an identifier of the terminal device, and the identifier of the terminal device The internet protocol IP address of the terminal device is included.
  5. 如权利要求1至4任意一项所述的方法,其特征在于,所述互联网缓存装置还发送所述资源给所述终端设备,所述互联网缓存装置通过 所述资源服务器的标识发送所述资源给所述终端设备,所述资源服务器的标识包括所述资源服务器的IP地址。The method according to any one of claims 1 to 4, wherein the internet caching device further transmits the resource to the terminal device, and the internet caching device passes The identifier of the resource server sends the resource to the terminal device, where the identifier of the resource server includes an IP address of the resource server.
  6. 如权利要求2至5任意一项所述的方法,其特征在于,所述连接请求包括传输控制协议TCP连接请求,所述对所述资源的访问请求包括超文本传输协议HTTP请求,所述解析服务器包括域名系统DNS服务器。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, the parsing The server includes a domain name system DNS server.
  7. 如权利要求1至6任意一项所述的方法,其特征在于,所述确定所述资源满足第一缓存条件包括确定所述资源满足资源访问热度统计条件,所述资源访问热度统计包括一定时间内对访问同一资源的频次的统计。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 a resource access heat statistics condition, and the resource access heat statistics include a certain time Statistics on the frequency of accessing the same resource.
  8. 一种资源缓存装置,其特征在于,包括处理模块,发送模块,接收模块和缓存模块:A resource cache device, comprising: a processing module, a sending module, a receiving module and a cache 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 meets the first cache condition;
    所述发送模块,用于发送解析请求到解析服务器,所述解析请求中携带所述资源的统一资源定位符URL中的域名;The sending module is configured to send a parsing request to the parsing server, where the parsing request carries a domain name in a uniform resource locator URL of the resource;
    所述接收模块,用于接收所述解析服务器根据所述资源的URL中的域名进行解析得到的服务器的标识;The receiving module is configured to receive, by the parsing server, an identifier of a server that is parsed according to a domain name in a URL of the resource;
    所述缓存模块,用于当所述解析得到的服务器的标识为所述资源服务器的标识时,缓存所述资源,所述缓存所述资源包括将所述资源缓存在所述缓存模块中,以提供给访问所述资源的终端设备。The cache module is configured to cache the resource when the identifier of the server obtained by the parsing is an identifier of the resource server, where the buffering the resource includes caching the resource in the cache module, Provided to the terminal device accessing the resource.
  9. 如权利要求8所述的装置,其特征在于,所述接收模块还用于在所述接收到资源服务器返回给终端设备的资源之前,接收所述终端设备发送的建立与所述资源服务器的连接的连接请求,所述连接请求中携带所述终端设备的标识和所述资源服务器的标识;The apparatus according to claim 8, wherein the receiving module is further configured to: before the receiving the resource returned by the resource server to the terminal device, receiving the connection established by the terminal device and establishing the connection with the resource server a connection request, where the connection request carries an identifier of the terminal device and an 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 for the resource sent by the terminal device, where the access request carries a domain name in a 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所述的装置,其特征在于,所述缓存模块还用于当所述解析得到的服务器的标识不为所述资源服务器的标识时,不缓存所述资源。 The device according to claim 8 or 9, wherein the cache module is further configured to not cache the resource when the identifier of the server obtained by the parsing is not the identifier of the resource server.
  11. 如权利要求9或10所述的装置,其特征在于,A device according to claim 9 or 10, wherein
    所述处理模块还用于建立所述终端设备与所述资源服务器的连接包括:所述处理模块还用于通过所述终端设备的标识建立所述终端设备与所述资源服务器的连接,所述终端设备的标识包括所述终端设备的互联网协议IP地址。The processing module is further configured to establish a connection between the terminal device and the resource server, where the processing module is further configured to establish, by using an identifier of the terminal device, a connection between the terminal device and the resource server, The identity of the terminal device includes an internet protocol IP address of the terminal device.
  12. 如权利要求8至11任意一项所述的装置,其特征在于,所述发送模块还用于发送所述资源给所述终端设备,所述发送模块通过所述资源服务器的标识发送所述资源给所述终端设备,所述资源服务器的标识包括所述资源服务器的IP地址。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 by using an identifier of the resource server. And to the terminal device, the identifier of the resource server includes an IP address of the resource server.
  13. 如权利要求9至12任意一项所述的装置,其特征在于,所述连接请求包括传输控制协议TCP连接请求,所述对所述资源的访问请求包括超文本传输协议HTTP请求,所述解析服务器包括域名系统DNS服务器。The apparatus 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, the parsing The server includes a domain name system DNS server.
  14. 如权利要求8至13任意一项所述的装置,其特征在于,所述确定所述资源满足第一缓存条件包括确定所述资源满足资源访问热度统计条件,所述资源访问热度统计包括一定时间内对访问同一资源的频次的统计。 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 a resource access heat statistics condition, and the resource access heat statistics include a certain time Statistics on the frequency of accessing the same resource.
PCT/CN2016/077876 2015-07-31 2016-03-30 Resource cache method and apparatus WO2017020597A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2017020597A1 true WO2017020597A1 (en) 2017-02-09

Family

ID=57942383

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/077876 WO2017020597A1 (en) 2015-07-31 2016-03-30 Resource cache method and apparatus

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109586937A (en) * 2017-09-28 2019-04-05 中兴通讯股份有限公司 A kind of O&M method, equipment and the storage medium of caching system
CN114422522A (en) * 2020-10-13 2022-04-29 贵州白山云科技股份有限公司 Cache distribution method, device, medium and equipment
CN116634017A (en) * 2023-05-15 2023-08-22 北京大学 Identification analysis data caching method and device based on digital object

Families Citing this family (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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170479A (en) * 2011-05-21 2011-08-31 成都市华为赛门铁克科技有限公司 Updating method of Web buffer and updating device of Web buffer
CN102843437A (en) * 2012-09-17 2012-12-26 北京星网锐捷网络技术有限公司 Conversion method and device for webpage application and network device
WO2013085194A1 (en) * 2011-12-09 2013-06-13 Samsung Electronics Co., Ltd. Method and apparatus for load balancing in communication system
CN103825919A (en) * 2012-11-16 2014-05-28 中国移动通信集团北京有限公司 Method, device and system for data resource caching

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668046B (en) * 2009-10-13 2012-12-19 成都市华为赛门铁克科技有限公司 Resource caching method, device and system thereof
CN104079534B (en) * 2013-03-27 2017-11-03 中国移动通信集团北京有限公司 A kind of HTTP cache implementing methods and system
CN103412827B (en) * 2013-08-05 2016-12-28 广州唯品会信息科技有限公司 Image cache method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170479A (en) * 2011-05-21 2011-08-31 成都市华为赛门铁克科技有限公司 Updating method of Web buffer and updating device of Web buffer
WO2013085194A1 (en) * 2011-12-09 2013-06-13 Samsung Electronics Co., Ltd. Method and apparatus for load balancing in communication system
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109586937A (en) * 2017-09-28 2019-04-05 中兴通讯股份有限公司 A kind of O&M method, equipment and the storage medium of caching system
CN114422522A (en) * 2020-10-13 2022-04-29 贵州白山云科技股份有限公司 Cache distribution method, device, medium and equipment
CN114422522B (en) * 2020-10-13 2024-02-13 贵州白山云科技股份有限公司 Cache distribution method, device, medium and equipment
CN116634017A (en) * 2023-05-15 2023-08-22 北京大学 Identification analysis data caching method and device based on digital object
CN116634017B (en) * 2023-05-15 2024-02-06 北京大学 Identification analysis data caching method and device based on digital object

Also Published As

Publication number Publication date
CN106411978A (en) 2017-02-15
CN106411978B (en) 2020-01-21

Similar Documents

Publication Publication Date Title
CN109067914B (en) web service proxy method, device, equipment and storage medium
CN110049022B (en) Domain name access control method and device and computer readable storage medium
CN107341160B (en) Crawler intercepting method and device
US9451046B2 (en) Managing CDN registration by a storage provider
EP3175366B1 (en) Web redirection for content scanning
CN105930528B (en) Webpage caching method and server
TWI656772B (en) Method, system, web server, browser and GPS for obtaining webpage
US10897450B2 (en) Communication method and communication apparatus
US10693858B2 (en) CDN-based access control method and related device
AU2015409179B2 (en) Machine-driven crowd-disambiguation of data resources
WO2017080459A1 (en) Method, device and system for caching and providing service contents and storage medium
EP3422672B1 (en) Routing method and device
WO2017020597A1 (en) Resource cache method and apparatus
CN105635073B (en) Access control method and device and network access equipment
WO2015196442A1 (en) Webpage optimization device and method
CN112003945A (en) Service request response method and device
WO2018228234A1 (en) Video caching method and video caching device
CN112398796B (en) Information processing method, device, equipment and computer readable storage medium
CN109698832B (en) Method for rapidly providing Portal authentication and rapidly popping Portal authentication page and related equipment
CN106790176B (en) Method and system for accessing network
WO2013170903A1 (en) Providing data to a network terminal
US11962665B2 (en) Automatically redirecting mobile client devices to optimized mobile content
CN113472909A (en) DNS query processing method and device
US20200402115A1 (en) Serving an Online Advertisement Asynchronously
CN113453062B (en) Video metadata acquisition and processing method, device, system and electronic equipment

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: 16832086

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: 16832086

Country of ref document: EP

Kind code of ref document: A1