A resource pre-caching method, apparatus, and related equipment

By simulating client authentication and caching resources within the enterprise intranet through an SDN controller, the problem of authentication pre-caching that cannot be performed in traditional solutions is solved, achieving secure and efficient resource pre-caching and improving user access experience and security.

CN122317092APending Publication Date: 2026-06-30NEW H3C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
NEW H3C TECH CO LTD
Filing Date
2026-03-09
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

Traditional web cache pre-caching solutions cannot support pre-caching of authenticated resources within an enterprise intranet, resulting in the inability to lift user access restrictions and effectively improve the user experience.

Method used

By pre-configuring the pre-cached information corresponding to the resources through the SDN controller, the client simulates logging into the authentication server to obtain authentication information, and sends the authentication information and resource URL to the cache node to achieve caching of resources after authentication. Finally, the resources are synchronized to the second cache node.

Benefits of technology

It enables pre-caching of resources after authentication within the enterprise intranet, simplifying the operation process, reducing management costs, and improving security and user access experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122317092A_ABST
    Figure CN122317092A_ABST
Patent Text Reader

Abstract

This application relates to the field of website caching technology, and particularly to a resource pre-caching method, apparatus, and related equipment. The method is applied to an SDN controller, which is pre-configured with pre-caching information corresponding to each resource. Each pre-caching information includes information required for client authentication and the URLs of the resources that require the client authentication information. The method includes: simulating a client logging into an authentication server based on the client authentication information included in the target pre-caching information to obtain authentication success information; sending the authentication success information and the URL of the target resource included in the target pre-caching information to a first cache node, so that the first cache node accesses a remote server based on the authentication success information and the URL of the target resource, obtains and caches the target resource; and instructing the first cache node to synchronously cache the target resource to a second cache node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a resource pre-caching method, apparatus and related equipment. Background Technology

[0002] In recent years, SDN (Software Defined Network) technology has been widely used in enterprise networks to achieve efficient transmission of enterprise network services through SDN's control and data transfer separation technology.

[0003] Web caching technology caches content accessed via HTTP / HTTPS protocols (resources provided by remote servers) locally. When a user accesses the resource again, the local cache node directly responds instead of the remote server, significantly reducing the number of times the user needs to access the origin server, thus saving bandwidth on the enterprise network and improving the user experience. To further enhance the user experience, web caches typically pre-cache during periods of low business activity; that is, the web cache device simulates client access to relevant resources and caches them locally when idle.

[0004] Traditional web cache pre-caching solutions are widely used in public network scenarios, where access to public resources is usually unrestricted. However, in enterprise intranets, accessing resources typically requires client authentication. Traditional pre-caching solutions do not support new authentication methods, and for enterprise intranet scenarios, they can only require users to lift access restrictions. Therefore, how to pre-cache resources that require authentication has become a pressing issue. Summary of the Invention

[0005] This application provides a resource pre-caching method, apparatus, and related equipment.

[0006] In a first aspect, this application provides a resource pre-caching method applied to an SDN controller, wherein the SDN controller is pre-configured with pre-caching information corresponding to each resource, wherein each pre-caching information includes information required for client authentication and the URLs of each resource for which the client authentication information is required; the method includes: Based on the client authentication information included in the target pre-cached information, a simulated client logs into the authentication server to obtain authentication success information. After the authentication server determines that the client's identity authentication is successful based on the client authentication information, it returns the authentication success information to the SDN controller. The authentication pass information and the target pre-cached information, including the URL of the target resource, are sent to the first cache node, so that the first cache node can access the remote server based on the authentication pass information and the URL of the target resource, obtain and cache the target resource; The first cache node is instructed to synchronously cache the target resource to the second cache node.

[0007] Optionally, a pre-cached message may include the following information required for client authentication: a link to the user authentication system, the login username configured in the user authentication system, and the login password configured in the user authentication system.

[0008] Optionally, a cache start time is configured for different pre-cached information, and pre-cached information with the same cache start time is grouped together as a pre-cached information group; the method further includes: When the cache start time of a pre-cached information group is determined, the pre-cached information group is traversed, and the pre-cached information currently determined is taken as the target pre-cached information. The steps of simulating client login to the authentication server based on the client authentication information included in the target pre-cached information are executed to obtain authentication pass information.

[0009] Optionally, the second cache node is divided into multiple groups of second cache nodes; the step of instructing the first cache node to synchronously cache the target resource to the second cache node includes: Traverse the second cache node group to determine the target second cache node group for the current synchronization cache; A synchronization cache instruction is issued to the first cache node so that the first cache node synchronizes the cache of the target resource with each of the second cache nodes included in the target second cache node group currently being synchronized. After the target second cache node has completed synchronously caching the target resource, the target second cache node group for current synchronous caching is re-determined, and a synchronous caching instruction is issued to the first cache node so that the first cache node synchronously caches the target resource to each second cache node included in the target second cache node group for current synchronous caching, until all second cache nodes have completed synchronously caching the target resource.

[0010] Secondly, this application provides a resource pre-caching method applied to a first cache node. The SDN controller is pre-configured with pre-caching information corresponding to each resource. Each piece of pre-caching information includes information required for client authentication and the URLs of the resources for which the client authentication information is required. The method includes: The system receives authentication pass information and the URL of the target resource included in the target pre-cached information from the SDN controller. The SDN controller simulates a client login to the authentication server based on the client authentication required information included in the target pre-cached information to obtain authentication pass information. After the authentication server determines that the client identity authentication is successful based on the client authentication required information, it returns the authentication pass information to the SDN controller. Based on the authentication information and the URL of the target resource, access the remote server to obtain and cache the target resource; Based on the instructions of the SDN controller, the target resource is synchronously cached to the second cache node.

[0011] Thirdly, this application provides a resource pre-caching device applied to an SDN controller, wherein the SDN controller is pre-configured with pre-caching information corresponding to each resource, wherein each pre-caching information includes information required for client authentication and the URLs of each resource for which the client authentication information is required; the device includes: The acquisition unit is used to simulate a client logging into the authentication server based on the client authentication required information included in the target pre-cached information, in order to obtain authentication pass information. The authentication server returns the authentication pass information to the SDN controller after determining that the client identity authentication is successful based on the client authentication required information. The sending unit is configured to send the authentication pass information and the URL of the target resource included in the target pre-caching information to the first cache node, so that the first cache node can access the remote server based on the authentication pass information and the URL of the target resource, obtain and cache the target resource; An instruction unit is used to instruct the first cache node to synchronously cache the target resource to the second cache node.

[0012] Optionally, a pre-cached message may include the following information required for client authentication: a link to the user authentication system, the login username configured in the user authentication system, and the login password configured in the user authentication system.

[0013] Optionally, a cache start time is configured for different pre-cached information, and pre-cached information with the same cache start time is grouped into one pre-cached information group; the device further includes: The determining unit is configured to, when the cache start time of a pre-cached information group is determined to arrive, traverse each pre-cached information included in the pre-cached information group and take the currently traversed and determined pre-cached information as the target pre-cached information; so that the obtaining unit performs the step of simulating client login to the authentication server based on the client authentication information included in the target pre-cached information to obtain authentication pass information.

[0014] Optionally, the second cache node is divided into multiple second cache node groups; when instructing the first cache node to synchronously cache the target resource to the second cache node, the instruction unit is specifically used for: Traverse the second cache node group to determine the target second cache node group for the current synchronization cache; A synchronization cache instruction is issued to the first cache node so that the first cache node synchronizes the cache of the target resource with each of the second cache nodes included in the target second cache node group currently being synchronized. After the target second cache node has completed synchronously caching the target resource, the target second cache node group for current synchronous caching is re-determined, and a synchronous caching instruction is issued to the first cache node so that the first cache node synchronously caches the target resource to each second cache node included in the target second cache node group for current synchronous caching, until all second cache nodes have completed synchronously caching the target resource.

[0015] Fourthly, this application provides a resource pre-caching device applied to a first cache node. The SDN controller is pre-configured with pre-caching information corresponding to each resource. Each pre-caching information includes information required for client authentication and the URLs of the resources for which the client authentication information is required. The device includes: The receiving unit is configured to receive authentication pass information sent by the SDN controller and the URL of the target resource included in the target pre-cached information, wherein the SDN controller simulates a client to log in to the authentication server based on the client authentication required information included in the target pre-cached information in order to obtain authentication pass information, and the authentication server returns the authentication pass information to the SDN controller after determining that the client identity authentication is successful based on the client authentication required information; The acquisition unit is used to access the remote server based on the authentication information and the URL of the target resource, and to acquire and cache the target resource; A caching unit is used to synchronously cache the target resource to a second caching node based on the instructions of the SDN controller.

[0016] Fifthly, embodiments of this application provide a resource pre-caching device, which includes: Memory, used to store program instructions; A processor is configured to invoke program instructions stored in the memory and execute the steps of the method as described in any one of the first aspects above, according to the obtained program instructions.

[0017] In a sixth aspect, embodiments of this application also provide a computer-readable storage medium storing computer-executable instructions for causing the computer to perform the steps of the method as described in any of the first aspects above.

[0018] Seventhly, embodiments of this application provide a resource pre-caching device, the resource pre-caching device comprising: Memory, used to store program instructions; A processor is configured to invoke program instructions stored in the memory and execute the steps of the method as described in any one of the second aspects above, according to the obtained program instructions.

[0019] Eighthly, embodiments of this application also provide a computer-readable storage medium storing computer-executable instructions for causing the computer to perform the steps of the method as described in any of the second aspects above.

[0020] In summary, the resource pre-caching method provided in this application is applied to an SDN controller. The SDN controller is pre-configured with pre-caching information corresponding to each resource. Each pre-caching information includes client authentication information and the URLs of the resources that require the client authentication information to be obtained. The method includes: simulating a client logging into an authentication server based on the client authentication information included in the target pre-caching information to obtain authentication pass information; wherein, after determining that the client's identity authentication is successful based on the client authentication information, the authentication server returns the authentication pass information to the SDN controller; sending the authentication pass information and the URL of the target resource included in the target pre-caching information to a first cache node, so that the first cache node accesses a remote server based on the authentication pass information and the URL of the target resource, obtains and caches the target resource; and instructing the first cache node to synchronously cache the target resource to a second cache node.

[0021] The resource pre-caching method provided in this application uses the global control and management capabilities of the SDN controller to obtain authentication information in the SDN controller and send the authentication information to a specific cache device. The specific device carries the authentication information to simulate accessing the cached resources. Then, the SDN controller is used to synchronize the resources cached by the specific device to other cache nodes. This solves the problem that pre-cached resources need to be authenticated before they can be pre-cached, simplifies the operation, reduces management costs, and improves security. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments of this application or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings of the embodiments of this application.

[0023] Figure 1 A detailed flowchart of a resource pre-caching method provided in this application embodiment; Figure 2 A network topology diagram provided for an embodiment of this application; Figure 3 A detailed flowchart of another resource pre-caching method provided in this application embodiment; Figure 4 This is a schematic diagram of the structure of a resource pre-caching device provided in an embodiment of this application; Figure 5 A schematic diagram of another resource pre-caching device provided in an embodiment of this application; Figure 6 A schematic diagram of the hardware architecture of a resource pre-caching device provided in this application embodiment; Figure 7 A schematic diagram of the hardware architecture of another resource pre-caching device provided in an embodiment of this application. Detailed Implementation

[0024] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms “a,” “the,” and “the” as used in this application and claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to any and all possible combinations comprising one or more of the associated listed items.

[0025] It should be understood that although the terms first, second, third, etc., may be used to describe various information in embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" may also be interpreted as "when," "when," or "in response to a determination."

[0026] For example, see Figure 1The diagram shown is a detailed flowchart of a resource pre-caching method provided in an embodiment of this application. This method is applied to an SDN controller, which is pre-configured with pre-caching information corresponding to each resource. Each pre-caching information includes information required for client authentication and the URLs of the resources for which the client authentication information is required. The method includes the following steps: Step 100: Based on the client authentication information included in the target pre-cached information, simulate a client to log in to the authentication server to obtain authentication success information.

[0027] In this embodiment of the application, after the authentication server determines that the client identity authentication is successful based on the client authentication information, it returns authentication success information to the SDN controller.

[0028] The cached information includes the following information required for client authentication: the link to the user authentication system, the login username configured in the user authentication system, and the login password configured in the user authentication system.

[0029] In practical applications, in non-public network pre-caching scenarios, different resources require different client authentications. Therefore, the pre-caching information is all the information needed to perform resource pre-caching, which may include the URL information of the resource to be pre-cached and the information required for the client authentication corresponding to the resource to be pre-cached.

[0030] For example, pre-cached information for a set of URLs that require the same information to perform client authentication is denoted as... Its information is defined as follows: <cacheUrlList,serName,pwd,loginUrl> cacheUrlList: URL resources containing the same information required for client authentication. userName: The login username configured in the user authentication system. pwd: Login password configured in the user authentication system loginUrl: The URL link for the user authentication system In this embodiment of the application, a preferred implementation is as follows: a cache start time is configured for different pre-cached information, and pre-cached information with the same cache start time is grouped into a pre-cached information group; the method further includes the following steps: When the cache start time of a pre-cached information group is determined, the pre-cached information group is traversed, and the pre-cached information currently determined is taken as the target pre-cached information. The steps of simulating client login to the authentication server based on the client authentication information included in the target pre-cached information are executed to obtain authentication pass information.

[0031] For example, in this embodiment of the application, adding multiple ps to the same pre-cached task group forms a pre-cached information group, denoted as . The pre-cached information in the pre-cached information group has the same start time.

[0032] The SDN controller checks whether the execution time of each pre-cached information group has arrived. If the execution time of a pre-cached information group has arrived, the subsequent method steps continue; otherwise, the above steps of checking whether the execution time of each pre-cached information group has arrived are continued until the execution time of a pre-cached information group is found to have arrived.

[0033] In this embodiment of the application, when the execution time of a pre-cached information group is detected to be reached, the pre-cached information group is traversed, and the following steps are performed based on each pre-cached information included in the pre-cached information group: simulate client login to authentication server based on the client authentication required information included in each pre-cached information to obtain authentication pass information.

[0034] For example, the pre-cached information group includes pre-cached information 1. Assuming that pre-cached information 1 includes cacheUrlList as URL1, serName as username1, pwd as password1, and loginUrl as authentication server1; then, based on username1 and password1, the client accesses authentication server1 for authentication. After the authentication server determines that the client authentication is successful based on username1 and password1, it returns authentication success information 1 corresponding to URL1.

[0035] For example, the pre-cached information group includes pre-cached information 2. Assuming that pre-cached information 2 includes cacheUrlList as URL2 and URL3, serName as username2, pwd as password2, and loginUrl as authentication server2; then, based on username2 and password2, the client accesses authentication server2 for authentication. After the authentication server determines that the client authentication is successful based on username2 and password2, it returns URL2 and URL3 authentication success information 2.

[0036] Step 110: Send the authentication pass information and the URL of the target resource included in the target pre-caching information to the first cache node, so that the first cache node can access the remote server based on the authentication pass information and the URL of the target resource, and obtain and cache the target resource.

[0037] As described above, for the authentication pass information 1 corresponding to URL1, URL1 and authentication pass information 1 are sent to the first cache node, so that the first cache node can access the business server where the resource corresponding to URL1 is located based on URL1, and carry authentication pass information 1 to obtain the resource corresponding to URL1 from the business server, and cache the obtained resource corresponding to URL1 locally.

[0038] For example, regarding authentication information 2 corresponding to URL2 and URL3, URL2 and authentication information 2 are sent to the first cache node, enabling the first cache node to access the business server where the resource corresponding to URL2 is located based on URL2, and carry authentication information 2 to obtain the resource corresponding to URL2 from the business server, and cache the obtained resource corresponding to URL2 locally; URL3 and authentication information 2 are sent to the first cache node, enabling the first cache node to access the business server where the resource corresponding to URL3 is located based on URL3, and carry authentication information 2 to obtain the resource corresponding to URL3 from the business server, and cache the obtained resource corresponding to URL3 locally.

[0039] In this embodiment of the application, a preferred implementation is that the first cache node can be a cache node directly connected to the business server, and the second cache node can be another cache node connected to the first cache node.

[0040] Step 120: Instruct the first cache node to synchronously cache the target resource to the second cache node.

[0041] In this embodiment of the application, after the first cache node obtains the resources corresponding to URL1, URL2 and URL3 from the business server, the SDN controller instructs the first cache node to synchronously cache the obtained resources to the first cache node.

[0042] Specifically, in this embodiment of the application, the second cache node is divided into multiple second cache node groups; when instructing the first cache node to synchronously cache the target resource to the second cache node, a preferred implementation is as follows: Traverse the second cache node group to determine the target second cache node group for the current synchronization cache; A synchronization cache instruction is issued to the first cache node so that the first cache node synchronizes the cache of the target resource with each of the second cache nodes included in the target second cache node group currently being synchronized. After the target second cache node has completed synchronously caching the target resource, the target second cache node group for current synchronous caching is re-determined, and a synchronous caching instruction is issued to the first cache node so that the first cache node synchronously caches the target resource to each second cache node included in the target second cache node group for current synchronous caching, until all second cache nodes have completed synchronously caching the target resource.

[0043] In this embodiment, each cache node that caches resources that require authentication to be pre-cached has a pre-set client whitelist. When a client subsequently requests pre-cached resources (resources that require authentication to be pre-cached) from a cache node, the cache node verifies the requesting client based on the client whitelist. Only if the client passes the whitelist verification will the pre-cached resource be sent to the client. If the client fails the whitelist verification, the request is discarded and the requested resource is not sent to the user, thus ensuring the security of the resources.

[0044] For example, see Figure 2 The diagram shown is a network topology diagram provided in an embodiment of this application; the business server is an HTTP / HTTPs Server, the first node is a central node directly connected to the HTTP / HTTPs Server, the second cache node is any other node besides the central node, and the second cache node is divided into N cache node groups, cache node group 1, ..., cache node group N.

[0045] When the first cache node receives an instruction from the SDN controller to synchronize and cache resources to the second cache node, a preferred implementation is as follows: it receives the instruction from the SDN controller to synchronize and cache resources to cache node group 1, synchronizes and caches the resources to each of the second cache nodes included in cache node group 1, and after confirming that the synchronization and caching is completed, it sends a response to the SDN controller indicating that the synchronization and caching is complete. After receiving the response from the first cache node indicating that the synchronization and caching is complete, the SDN controller sends an instruction to the first cache node to synchronize and cache resources to cache node group 2, until the resources are synchronized and cached to all the second cache nodes.

[0046] For example, see Figure 3 The diagram shown is a detailed flowchart of a resource pre-caching method provided in this application embodiment. This method is applied to a first cache node. The SDN controller is pre-configured with pre-caching information corresponding to each resource. Each piece of pre-caching information includes information required for client authentication and the URLs of the resources for which the client authentication information is required. The method includes the following steps: Step 300: Receive the authentication pass information and the URL of the target resource included in the target pre-cached information sent by the SDN controller.

[0047] The SDN controller simulates a client login to the authentication server based on the client authentication information included in the target pre-cached information to obtain authentication success information. After the authentication server determines that the client's identity has been successfully authenticated based on the client authentication information, it returns the authentication success information to the SDN controller.

[0048] Step 310: Access the remote server based on the authentication information and the URL of the target resource, and obtain and cache the target resource.

[0049] Step 320: Based on the instruction of the SDN controller, synchronously cache the target resource to the second cache node.

[0050] Based on the same inventive concept as the above-described embodiments, see, for example, the following: Figure 4 The diagram shown is a structural schematic of a resource pre-caching device provided in an embodiment of this application. This device is applied to an SDN controller, which is pre-configured with pre-caching information corresponding to each resource. Each pre-caching information includes information required for client authentication and the URLs of the resources for which the client authentication information is required. The device includes: The acquisition unit 40 is used to simulate a client logging into the authentication server based on the client authentication required information included in the target pre-cached information, in order to obtain authentication pass information. The authentication server returns the authentication pass information to the SDN controller after determining that the client identity authentication is successful based on the client authentication required information. Sending unit 41 is used to send the authentication pass information and the URL of the target resource included in the target pre-caching information to the first cache node, so that the first cache node accesses the remote server based on the authentication pass information and the URL of the target resource, obtains and caches the target resource; Instruction unit 42 is used to instruct the first cache node to synchronously cache the target resource to the second cache node.

[0051] Optionally, a pre-cached message may include the following information required for client authentication: a link to the user authentication system, the login username configured in the user authentication system, and the login password configured in the user authentication system.

[0052] Optionally, a cache start time is configured for different pre-cached information, and pre-cached information with the same cache start time is grouped into one pre-cached information group; the device further includes: The determining unit is configured to, when the cache start time of a pre-cached information group is determined to arrive, traverse each pre-cached information included in the pre-cached information group and take the currently traversed and determined pre-cached information as the target pre-cached information; so that the obtaining unit 40 performs the step of simulating client login to the authentication server based on the client authentication information included in the target pre-cached information to obtain authentication pass information.

[0053] Optionally, the second cache node is divided into multiple second cache node groups; when instructing the first cache node to synchronously cache the target resource to the second cache node, the instruction unit 42 is specifically used for: Traverse the second cache node group to determine the target second cache node group for the current synchronization cache; A synchronization cache instruction is issued to the first cache node so that the first cache node synchronizes the cache of the target resource with each of the second cache nodes included in the target second cache node group currently being synchronized. After the target second cache node has completed synchronously caching the target resource, the target second cache node group for current synchronous caching is re-determined, and a synchronous caching instruction is issued to the first cache node so that the first cache node synchronously caches the target resource to each second cache node included in the target second cache node group for current synchronous caching, until all second cache nodes have completed synchronously caching the target resource.

[0054] Similarly, based on the same inventive concept as the above-described embodiments, see, for example, the following: Figure 5 The diagram shown is a structural schematic of a resource pre-caching device provided in an embodiment of this application. This device is applied to a first cache node. The SDN controller is pre-configured with pre-caching information corresponding to each resource. Each piece of pre-caching information includes information required for client authentication and the URLs of the resources for which the client authentication information is required. The device includes: The receiving unit 50 is used to receive the authentication pass information sent by the SDN controller and the URL of the target resource included in the target pre-cached information, wherein the SDN controller simulates a client to log in to the authentication server based on the client authentication required information included in the target pre-cached information in order to obtain the authentication pass information, and the authentication server returns the authentication pass information to the SDN controller after determining that the client identity authentication is successful based on the client authentication required information; The acquisition unit 51 is used to access the remote server based on the authentication information and the URL of the target resource, and to acquire and cache the target resource; The caching unit 52 is used to synchronously cache the target resource to the second caching node based on the instruction of the SDN controller.

[0055] These units can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more digital signal processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when one of these units is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these units can be integrated together to form a system-on-a-chip (SOC).

[0056] Furthermore, regarding the resource pre-caching device provided in this application embodiment, from a hardware perspective, the hardware architecture schematic diagram of the resource pre-caching device can be found in [reference needed]. Figure 6 As shown, the resource pre-caching device may include: a memory 60 and a processor 61. The memory 60 is used to store program instructions; the processor 61 calls the program instructions stored in the memory 60 and executes the above-described method embodiment applied to SDN control according to the obtained program instructions. The specific implementation and technical effects are similar, and will not be described in detail here.

[0057] Optionally, this application also provides an SDN controller, including at least one processing element (or chip) for performing the above-described method embodiments applied to SDN control.

[0058] Optionally, this application also provides a program product, such as a computer-readable storage medium storing computer-executable instructions for causing the computer to perform the above-described method embodiments applied to SDN control.

[0059] The resource pre-caching device provided in this application embodiment, from a hardware perspective, can be found in the hardware architecture diagram of the resource pre-caching device. Figure 7 As shown, the resource pre-caching device may include: a memory 70 and a processor 71. The memory 70 is used to store program instructions; the processor 71 calls the program instructions stored in the memory 70 and executes the method embodiment applied to the first cache node according to the obtained program instructions. The specific implementation method and technical effect are similar, and will not be described again here.

[0060] Optionally, this application also provides an SDN controller, including at least one processing element (or chip) for performing the method embodiments described above applied to a first cache node.

[0061] Optionally, this application also provides a program product, such as a computer-readable storage medium storing computer-executable instructions for causing the computer to perform the above-described method embodiment applied to the first cache node.

[0062] Here, a machine-readable storage medium can be any electronic, magnetic, optical, or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, a machine-readable storage medium can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or combinations thereof.

[0063] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which can take the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, or any combination of these devices.

[0064] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.

[0065] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0066] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0067] Furthermore, these computer program instructions can also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in the process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0068] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0069] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A resource pre-caching method, characterized in that, The method is applied to an SDN controller, which is pre-configured with pre-cached information corresponding to each resource. Each pre-cached information includes information required for client authentication and the URLs of the resources for which the client authentication information is required. Based on the client authentication information included in the target pre-cached information, a simulated client logs into the authentication server to obtain authentication success information. After the authentication server determines that the client's identity authentication is successful based on the client authentication information, it returns the authentication success information to the SDN controller. The authentication pass information and the target pre-cached information, including the URL of the target resource, are sent to the first cache node, so that the first cache node can access the remote server based on the authentication pass information and the URL of the target resource, obtain and cache the target resource; The first cache node is instructed to synchronously cache the target resource to the second cache node.

2. The method as described in claim 1, characterized in that, A pre-cached message includes the following information required for client authentication: a link to the user authentication system, the login username configured for the user authentication system, and the login password configured for the user authentication system.

3. The method as described in claim 1 or 2, characterized in that, The method further includes configuring cache start times for different pre-cached information, grouping pre-cached information with the same cache start time into a single pre-cached information group; the method also includes: When the cache start time of a pre-cached information group is determined, the pre-cached information group is traversed, and the pre-cached information currently determined is taken as the target pre-cached information. The steps of simulating client login to the authentication server based on the client authentication information included in the target pre-cached information are executed to obtain authentication pass information.

4. The method as described in claim 1 or 2, characterized in that, The second cache node is divided into multiple second cache node groups; The step of instructing the first cache node to synchronously cache the target resource to the second cache node includes: Traverse the second cache node group to determine the target second cache node group for the current synchronization cache; A synchronization cache instruction is issued to the first cache node so that the first cache node synchronizes the cache of the target resource with each of the second cache nodes included in the target second cache node group currently being synchronized. After the target second cache node has completed synchronously caching the target resource, the target second cache node group for current synchronous caching is re-determined, and a synchronous caching instruction is issued to the first cache node so that the first cache node synchronously caches the target resource to each second cache node included in the target second cache node group for current synchronous caching, until all second cache nodes have completed synchronously caching the target resource.

5. A resource pre-caching method, characterized in that, Applied to the first cache node, the SDN controller is pre-configured with pre-cached information corresponding to each resource. Each pre-cached information includes information required for client authentication and the URLs of the resources for which the client authentication information is required. The method includes: The system receives authentication pass information and target pre-cached information, including the URL of the target resource, sent by the SDN controller. The SDN controller simulates a client login to the authentication server based on the client authentication requirement information included in the target pre-cached information to obtain authentication pass information. After the authentication server determines that the client's identity authentication is successful based on the client authentication requirement information, it returns the authentication pass information to the SDN controller. Based on the authentication information and the URL of the target resource, access the remote server to obtain and cache the target resource; Based on the instructions of the SDN controller, the target resource is synchronously cached to the second cache node.

6. A resource pre-caching device, characterized in that, An application is provided to an SDN controller, wherein the SDN controller is pre-configured with pre-cached information corresponding to each resource, wherein each pre-cached information includes information required for client authentication and the URLs of each resource for which the client authentication information is required; the device includes: The acquisition unit is used to simulate a client logging into the authentication server based on the client authentication required information included in the target pre-cached information, in order to obtain authentication pass information. The authentication server returns the authentication pass information to the SDN controller after determining that the client identity authentication is successful based on the client authentication required information. The sending unit is configured to send the authentication pass information and the URL of the target resource included in the target pre-caching information to the first cache node, so that the first cache node can access the remote server based on the authentication pass information and the URL of the target resource, obtain and cache the target resource; An instruction unit is used to instruct the first cache node to synchronously cache the target resource to the second cache node.

7. The apparatus as claimed in claim 6, characterized in that, A pre-cached message includes the following information required for client authentication: a link to the user authentication system, the login username configured for the user authentication system, and the login password configured for the user authentication system.

8. The apparatus as claimed in claim 6 or 7, characterized in that, The device further includes: a cache start time configured for different pre-cached information, and pre-cached information with the same cache start time grouped together as a pre-cached information group; the device also includes: The determining unit is configured to, when the cache start time of a pre-cached information group is determined to arrive, traverse each pre-cached information included in the pre-cached information group and take the currently traversed and determined pre-cached information as the target pre-cached information; so that the obtaining unit performs the step of simulating client login to the authentication server based on the client authentication information included in the target pre-cached information to obtain authentication pass information.

9. The apparatus as claimed in claim 6 or 7, characterized in that, The second cache node is divided into multiple second cache node groups; when instructing the first cache node to synchronously cache the target resource to the second cache node, the instruction unit is specifically used for: Traverse the second cache node group to determine the target second cache node group for the current synchronization cache; A synchronization cache instruction is issued to the first cache node so that the first cache node synchronizes the cache of the target resource with each of the second cache nodes included in the target second cache node group currently being synchronized. After the target second cache node has completed synchronously caching the target resource, the target second cache node group for current synchronous caching is re-determined, and a synchronous caching instruction is issued to the first cache node so that the first cache node synchronously caches the target resource to each second cache node included in the target second cache node group for current synchronous caching, until all second cache nodes have completed synchronously caching the target resource.

10. A resource pre-caching device, characterized in that, Applied to the first cache node, the SDN controller is pre-configured with pre-cached information corresponding to each resource. Each pre-cached information includes information required for client authentication and the URLs of the resources for which the client authentication information is required. The device includes: The receiving unit is configured to receive the authentication pass information and the URL of the target resource included in the target pre-cached information sent by the SDN controller, wherein the SDN controller simulates a client to log in to the authentication server based on the client authentication required information included in the target pre-cached information in order to obtain authentication pass information, and the authentication server returns the authentication pass information to the SDN controller after determining that the client identity authentication is successful based on the client authentication required information; The acquisition unit is used to access the remote server based on the authentication information and the URL of the target resource, and to acquire and cache the target resource; A caching unit is used to synchronously cache the target resource to a second caching node based on the instructions of the SDN controller.

11. A resource pre-caching device, characterized in that, The resource pre-caching device includes: Memory, used to store program instructions; A processor is configured to invoke program instructions stored in the memory and execute the steps of the method as described in any one of claims 1-5 according to the obtained program instructions.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing the computer to perform the steps of the method as described in any one of claims 1-5.