Resource downloading acceleration method and system based on intranet CDN cache
By using CDN caching technology in the intranet, network lag and download speed slowdown caused by peak download volume during resource updates are solved, and the effect of improving download speed and user experience without increasing bandwidth costs is achieved.
Patent Information
- Application Number
- CN202510490395.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-18
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2045-04-18
AI Technical Summary
When resource content is updated, peak downloads lead to network lag and slowdown in download speed, affecting user experience, and increasing export bandwidth to increase network speed will greatly increase costs.
The resource download acceleration method based on intranet CDN cache is adopted to establish an SSL connection with the external source station through the intranet CDN server, judge and forward cache resources, or pull and cache resources from the external source station to accelerate user downloads.
It realizes that without increasing the export bandwidth, improve resource download speed, reduce network lag, improve user experience, and save bandwidth costs.
Smart Images

Figure CN120034582A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a resource download acceleration method and system based on intranet CDN cache. Background Art
[0002] In the modern digital society, Internet resources and content are endless, such as electronic games, which have become an important part of people's daily life. However, for the majority of users, when resource content (such as new games) is released and updated, there will often be a peak download volume, resulting in network lag or slow download, which will take a long time to download resources and affect user experience; or increase the network speed by increasing the export bandwidth, but increasing the bandwidth will greatly increase the cost.
[0003] Content Delivery Network (CDN) refers to a computer network system that is interconnected through the Internet. It uses the server closest to each user to send music, pictures, videos, applications and other files to users faster and more reliably, providing high-performance, scalable and low-cost network content delivery to users. Applying the CDN system model to resource downloads from multi-source websites can effectively increase the resource download speed.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present invention, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of the present invention is to solve the technical problems existing in the background technology. To this end, a resource download acceleration method and system based on intranet CDN cache are provided.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is as follows: A method for accelerating resource download based on intranet CDN cache, comprising the following steps: Step S1: Intranet user requests network download resources; Step S2: The system determines whether the download domain name of the network resource requested by the intranet user belongs to the hosts list; If it belongs to the hosts list, the DNS domain name resolution server will resolve the download domain name requested by the intranet user to download network resources and obtain the IP address corresponding to the download domain name, and send the download domain name and its corresponding IP address to the intranet CDN server; Step S3: The intranet CDN server determines whether to establish an SSL connection with the external network source station for the first time based on the corresponding IP address; If it is the first time to establish an SSL connection, an SSL connection is established between the intranet CDN server and the external network source station; If it is not the first time to establish an SSL connection, the intranet CDN server verifies the validity of the CA certificate of the external source site and checks whether the CN in the CA certificate matches the download domain name, thereby performing SSL connection verification; Step S4: After the intranet CDN server completes the first SSL connection or non-first SSL connection verification with the external network source station, check the resource cache of the intranet CDN server; Step S5: Determine whether there is a cache of the network download resource requested by the user on the intranet CDN server; If it exists, the intranet CDN server forwards the cache of the network download resource requested by the user to the proxy buffer server corresponding to the intranet user; If it does not exist, the intranet CDN server will download and store the resources requested by the user from the external network source station. While the intranet CDN server is downloading, it will forward the cache of the resources requested by the user to the proxy buffer server corresponding to the intranet user. Step S5: The intranet user directly downloads resources from the proxy cache server.
[0007] The following is a technical solution further defined by the method of the present invention. The hosts list in step S2 is managed separately by each intranet management terminal and stored in a hosts file. The hosts file is set as a system file without an extension. The hosts list includes a website domain name and its corresponding IP address.
[0008] The following is a technical solution further defined by the method of the present invention. In the process of managing the hosts list, the intranet management terminal includes: Use Notepad to open the hosts file on the intranet management side; If the system starts accelerated downloading of resources from the external source site, the internal network management end adds the domain name of the corresponding external source site and its corresponding IP address in the hosts list; If the system turns off accelerated downloading of external source site resources, the intranet management end deletes the URL domain name and its corresponding IP address of the corresponding external source site in the hosts list.
[0009] The following is a technical solution further limited by the method in the present invention. In step S2, after the DNS domain name resolution server resolves the download domain name and its corresponding IP address, the download domain name and its corresponding IP address are sent to the corresponding intranet to determine whether the IP address belongs to the hosts list; if it belongs to the hosts list, the system returns a correct result of the hosts list to the intranet management end; if it does not belong to the hosts list, the system returns an incorrect result of the hosts list to the intranet management end.
[0010] The following is a technical solution further limited by the method of the present invention. In step S2, when the domain name of the download resource requested by the intranet user does not belong to the hosts list, the DNS domain name resolution server routes it to the external network source station, and the external network source station responds to the resource download request of the intranet user; In step S3, if the intranet CDN server and the external source station cannot complete the first SSL connection or non-first SSL connection verification, the DNS domain name resolution server routes to the external source station, and the external source station responds to the resource download request of the intranet user.
[0011] The following is a technical solution further limited by the method in the present invention, in which the external network source station directly responds to the resources of the internal network user, forwards and caches them to the internal network CDN server through the corresponding proxy buffer server, and sends the URL domain name and IP address of the corresponding external network source station to the internal network management end, so that the internal network management end can confirm to add the URL domain name and IP address of the corresponding external network source station to the hosts list.
[0012] The following is a technical solution further defined by the method of the present invention, when the first SSL connection is made between the intranet CDN server and the external network source station, including: The intranet CDN server sends a connection request to the external source site, where the connection request includes the supported SSL protocol version, encryption algorithm list, random number, and CA certificate containing the public key; The external source site returns a request response to the internal CDN server, where the request response includes the selected protocol version, encryption algorithm, and CA certificate containing the public key. The intranet CDN server verifies the validity of the CA certificate of the external source site; The intranet CDN server generates a pre-master key, encrypts it with the public key of the external source site's CA certificate, and sends it to the external source site. The external source station uses the public key of the CA certificate to decrypt and obtain the pre-master key, so that both the intranet CDN server and the external source station have the pre-master key and random number; The intranet CDN server and the external source site use the pre-master key and random numbers to generate a session key, and then use the selected encryption algorithm and session key for encrypted communication to achieve an SSL connection.
[0013] A resource download acceleration system based on intranet CDN cache, used to implement the above-mentioned resource download acceleration method based on intranet CDN cache, comprising: The request identification module is deployed in each intranet and is used to receive resource download requests from intranet users, determine whether the download domain name of the network resource requested by the intranet user belongs to the hosts list, and send the download domain name belonging to the hosts list to the DNS domain name resolution server for domain name resolution; The intranet CDN server is used to receive the download domain name and its corresponding IP address sent by the DNS domain name resolution server, and perform SSL connection, SSL connection verification and resource download between the intranet CDN server and the external network source station based on the corresponding IP address, as well as communicate with each proxy buffer server and forward the resource cache to the proxy buffer server; The proxy buffer server is deployed in each intranet to receive and store resources from the external source station and forward the resources to the intranet users based on the requests of the intranet users.
[0014] The following is a technical solution further defined by the system in the present invention, which also includes: The intranet user request resource download module is deployed on the intranet user side and is used by the intranet user to request network download resources; The hosts list editing module is deployed on the intranet management end and is used to open the hosts list using the Notepad tool and add or delete the URL domain name and its corresponding IP address of the corresponding external source station in the hosts list.
[0015] The following is a technical solution further defined by the system in the present invention, wherein the intranet CDN server includes an SSL connection and verification module, a resource cache module, a resource cache inspection module, a cache forwarding module, and a module for requesting external network source station resource downloads; SSL connection and verification module, used to perform SSL connection and SSL connection verification between the intranet CDN server and the external network source station based on the corresponding IP address; Resource cache module, used to store resources requested by intranet users for network download; The resource cache check module is used to determine whether the intranet CDN server has a cache of the resource that the user requested to download from the network; A cache forwarding module is used to forward the cache of network download resources requested by the intranet user to the proxy cache server corresponding to the intranet user; The module for requesting external network source station resource download is used to request download resources from external network source stations.
[0016] Compared with the prior art, the present invention has the following technical effects: The present invention utilizes the CDN system to download resources from different intranets and multi-source websites, and the resource downloads between intranets are not affected, so that users of the enterprise intranet can enjoy faster download speeds and more stable network services. For the enterprise, it not only improves the work efficiency of the enterprise employees, but also helps the enterprise save a lot of bandwidth costs.
[0017] The present invention is further described below in conjunction with the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 is a flow chart of the method of the present invention; Figure 2 It is a screenshot of the interface where the hosts file is found in the present invention; Figure 3 This is a screenshot of the interface of opening the hosts file using the Notepad tool in the present invention; Figure 4 It is a screenshot of the Notepad interface after the present invention opens the hosts file, and has two Steam website domain names and their corresponding IP addresses; Figure 5 The present invention Figure 4 A screenshot of the Notepad interface of adding a Steam URL domain name and its corresponding IP address to the hosts list; Figure 6 The present invention Figure 4 A screenshot of the Notepad interface of deleting a Steam domain name and its corresponding IP address from the hosts list; Figure 7 It is a specific working process flow chart of the present invention. DETAILED DESCRIPTION
[0020] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific embodiments disclosed below.
[0021] This embodiment provides a resource download acceleration method based on intranet CDN cache and a resource download acceleration system based on intranet CDN cache.
[0022] like Figure 1 As shown, a method for accelerating resource download based on intranet CDN cache specifically includes the following steps: Step S1: An intranet user requests a network resource to be downloaded, and the corresponding download request includes a download domain name.
[0023] Step S2: The request identification module of the system determines whether the download domain name of the network resource requested by the intranet user belongs to the hosts list.
[0024] If it belongs to the hosts list, the DNS domain name resolution server will resolve the download domain name requested by the intranet user to download network resources and obtain the IP address corresponding to the download domain name, and send the download domain name and its corresponding IP address to the intranet CDN server.
[0025] If it does not belong to the hosts list, the DNS domain name resolution server will route it to the external network source station, and the external network source station will respond to the resource download request of the internal network user.
[0026] It should be noted that the hosts list is managed separately by each intranet management terminal and stored in the hosts file. The hosts file is set as a system file without an extension. The hosts list includes the website domain name and its corresponding IP address.
[0027] The intranet management end manages the hosts list in the following ways: 1. Use Notepad to open the hosts file on the intranet management end: Specifically, Figure 2 As shown, enter the path (C:\Windows\System32\drivers\etc) and find the hosts file; Figure 3 As shown, use Notepad to open the hosts file.
[0028] 2. If the system starts to accelerate the download of resources from external source sites (such as Steam), the intranet management terminal adds the domain name in Steam and its corresponding IP address in the hosts list. Figure 4 As shown in the figure, before adding, the hosts list has the URL domain name in Steam and its corresponding IP address ("10.0.173.194 st.dl.eccdnx.com", "10.0.173.194 dl.steam.clngaa.com"), after adding, as shown in the figure Figure 5As shown, the hosts list has the URL domains in Steam and their corresponding IP addresses (“10.0.173.194 st.dl.eccdnx.com”, “10.0.173.194dl.steam.clngaa.com”, “10.0.173.194 xz.pphimalayanrt.com”).
[0029] It should be noted that Steam is a digital distribution platform for electronic games launched by Valve.
[0030] 3. If the system turns off accelerated downloading of resources from external source sites (such as Steam), the intranet management terminal deletes the domain name and its corresponding IP address in Steam from the hosts list. Figure 4 As shown in the figure, before deletion, the hosts list has the URL domain name in Steam and its corresponding IP address ("10.0.173.194 st.dl.eccdnx.com", "10.0.173.194 dl.steam.clngaa.com"), after deletion, as shown in the figure Figure 6 As shown, the hosts list has the URL domain name in Steam and its corresponding IP address ("10.0.173.194 st.dl.eccdnx.com").
[0031] After the DNS domain name resolution server resolves the download domain name and its corresponding IP address, the download domain name and its corresponding IP address are sent to the corresponding intranet to determine whether the IP address belongs to the hosts list; if it belongs to the hosts list, the system returns a correct result of the hosts list to the intranet management end; if it does not belong to the hosts list, the system returns an incorrect result of the hosts list to the intranet management end. If an incorrect result of the hosts list appears, the intranet management end determines whether the system has the following two situations: Situation 1: The system is attacked from the outside, inducing the intranet CDN server to jump to other risky external network source stations, and the intranet management end intervenes in time to avoid risks; Situation 2: The domain name or IP address of the URL filled in the hosts list edited and managed by the intranet management end is wrong, and the intranet management end promptly discovers and modifies the editing error.
[0032] Step S3: The intranet CDN server determines whether to establish an SSL connection with the external network source station for the first time based on the corresponding IP address.
[0033] If it is the first time to establish an SSL connection, it includes the following: 1. The intranet CDN server sends a connection request to the external source station, where the connection request includes the supported SSL protocol version, encryption algorithm list, random number and CA certificate containing public key. It should be noted that the intranet CDN server sends the CA certificate containing public key to the external source station for the following reasons: the external source station may need to verify the CA certificate of the intranet CDN server for two-way verification. This is decided by the developer of the external source station and does not affect the specific implementation of the technical solution of the present invention.
[0034] 2. The external source site returns a request response to the internal CDN server, where the request response includes the selected protocol version, encryption algorithm, and CA certificate containing the public key.
[0035] 3. The intranet CDN server verifies the validity of the CA certificate of the external network source station, including whether it is issued by a trusted CA and whether it has expired. It should be noted that manual verification and automatic verification can be used to verify the validity of the CA certificate. Manual verification includes: the intranet CDN server sends it to the intranet management terminal and the intranet management terminal performs manual verification; automatic verification includes: the intranet CDN server directly and automatically verifies.
[0036] 4. The intranet CDN server generates a pre-master key, encrypts it with the public key of the CA certificate of the external source station, and sends it to the external source station.
[0037] 5. The external source station uses the public key of the CA certificate to decrypt and obtain the pre-master key, so that both the intranet CDN server and the external source station have the pre-master key and random number.
[0038] 6. The intranet CDN server and the external source site use the pre-master key and random number to generate a session key, and then use the selected encryption algorithm and session key for encrypted communication to achieve an SSL connection.
[0039] If it is not the first time to establish an SSL connection, it includes the following: The intranet CDN server verifies the validity of the CA certificate of the external source station and checks whether the CN in the CA certificate matches the download domain name, thereby performing SSL connection verification. It should be noted that in the CA certificate, "CN" is the abbreviation of "Common Name", which refers to the host name or domain name of the certificate holder.
[0040] The purpose of SSL connection verification is: even if the intranet CDN server has previously established an SSL connection with the external source site and downloaded resources, so that the intranet CDN server has a resource cache, if the verification fails at this time, it means that there is an abnormality in the external source site and its corresponding resources are also risky. In this case, the intranet CDN server will not send the cache to the user, so it is necessary to perform SSL connection verification first, and then check the resource cache of the intranet CDN server.
[0041] If the intranet CDN server and the external source site cannot complete the first SSL connection or non-first SSL connection verification, the DNS domain name resolution server will route to the external source site, and the external source site will respond to the resource download request of the intranet user.
[0042] It should be noted that in step S2 and step S3, the resources directly responded to by the external source station to the internal user are forwarded and cached to the internal CDN server through the corresponding proxy buffer server, and the URL domain name and IP address of the corresponding external source station are sent to the internal management terminal for confirmation by the internal management terminal to add the URL domain name and IP address of the corresponding external source station to the hosts list. Although at this time, the internal CDN server has the resource cache of the corresponding external source station, the system is based on the hosts list. If the internal management terminal does not add the URL domain name of the external source station and its corresponding IP address to the hosts list, then the next time the internal user requests to download the same resource of the external source station, it will also be directly responded by the external source station and cannot enjoy accelerated downloading.
[0043] Step S4: After the intranet CDN server completes the first SSL connection or non-first SSL connection verification with the external source station, the resource cache of the intranet CDN server is checked.
[0044] Step S5: Determine whether the intranet CDN server has a cache of the network download resource requested by the user.
[0045] If it does not exist, the intranet CDN server will download and store the resources requested by the user from the external source station (that is, the first download, the download speed will be slower). While the intranet CDN server is downloading, it will forward the cache of the user's request for network download resources to the proxy buffer server corresponding to the intranet user. The intranet user downloads the resources directly from the proxy buffer server and enjoys accelerated download. The initial download of resources will be slower.
[0046] If it exists, the intranet CDN server forwards the cache of the user's request to download the network resource to the proxy buffer server corresponding to the intranet user. The intranet user directly downloads the resource from the proxy buffer server and enjoys accelerated download. With the cache, it can reach more than 100MB / s. Therefore, if the installation space reaches 128GB of resources, it only takes about 18 minutes. Therefore, the improvement of network speed is conducive to improving the work efficiency of enterprise employees.
[0047] A resource download acceleration system based on intranet CDN cache is used to implement the above-mentioned resource download acceleration method based on intranet CDN cache, including a request identification module, an intranet CDN server, a proxy buffer server, an intranet user request resource download module, and a hosts list editing module.
[0048] Specifically: The request identification module is deployed in each intranet and is used to receive resource download requests from intranet users, determine whether the download domain name requested by the intranet user to download network resources belongs to the hosts list, and send the download domain name belonging to the hosts list to the DNS domain name resolution server for domain name resolution.
[0049] The intranet CDN server is used to receive the download domain name and its corresponding IP address sent by the DNS domain name resolution server, and based on the corresponding IP address, perform SSL connection, SSL connection verification and resource download between the intranet CDN server and the external network source station, as well as communicate with each proxy buffer server and forward the resource cache to the proxy buffer server.
[0050] The proxy buffer server is deployed in each intranet to receive and store resources from the external source station and forward the resources to the intranet users based on the requests of the intranet users.
[0051] The intranet user request resource download module is deployed on the intranet user side and is used by intranet users to request network download resources.
[0052] The hosts list editing module is deployed on the intranet management end and is used to open the hosts list using the Notepad tool and add or delete the URL domain name and its corresponding IP address of the corresponding external source station in the hosts list.
[0053] The intranet CDN server includes an SSL connection and verification module, a resource cache module, a resource cache check module, a cache forwarding module, and a module for requesting external network source station resource downloads.
[0054] Specifically: The SSL connection and verification module is used to perform SSL connection and SSL connection verification between the intranet CDN server and the external network source station based on the corresponding IP address.
[0055] The resource cache module is used to store resources that intranet users request to download from the network.
[0056] The resource cache check module is used to determine whether the intranet CDN server has a cache of the user's requested network download resources.
[0057] The cache forwarding module is used to forward the cache of network download resources requested by the intranet user to the proxy buffer server corresponding to the intranet user.
[0058] The module for requesting external network source station resource download is used to request download resources from external network source stations.
[0059] The working process of the method of this embodiment will be further described below. Figure 7As shown: 1. In intranet A, user a1 sends download request a1 to request network download resource a1, user a2 sends download request a2 to request network download resource a2, and so on. Other users of intranet A can send download requests to request network download resources.
[0060] In intranet B, user b1 sends a download request b1 to request network download resource b1, user b2 sends a download request b2 to request network download resource b1, and so on. Other users in intranet B can send download requests to request network download resources.
[0061] Similarly, users in different intranets can send download requests according to the settings of their own intranets to request network download resources without being affected or restricted by other intranets.
[0062] It should be noted that the download requests a1, a2...b1, b2...all include a download domain name.
[0063] 2. The request identification module A in the intranet A receives the download request sent by the user in the intranet A and obtains the download domain name of the network resource requested by the user in the intranet A. The request identification module A determines whether the download domain name belongs to the hosts list. Among them, the download domain name corresponding to the download request a1 belongs to the hosts list, and the download domain name corresponding to the download request a2 does not belong to the hosts list.
[0064] The request identification module B in the intranet B receives the download request sent by the user in the intranet B, and obtains the download domain name of the network resource requested by the user in the intranet B. The request identification module B determines whether the download domain name belongs to the hosts list. Among them, the download domain name corresponding to the download request b1 belongs to the hosts list, and the download domain name corresponding to the download request b2 does not belong to the hosts list.
[0065] By analogy, the request identification module in each intranet determines whether the download domain name of the network resource requested by its intranet user belongs to the hosts list.
[0066] 3. The DNS domain name resolution server resolves the download domain name of the network resource a1 requested by the intranet user a1 and obtains the IP address corresponding to the download domain name, and sends the download domain name corresponding to the download request a1 and its corresponding IP address to the intranet CDN server.
[0067] Similarly, the DNS domain name resolution server resolves the download domain name of the network download resource b1 requested by the intranet user b1 and obtains the IP address corresponding to the download domain name, and sends the download domain name corresponding to the download request b1 and its corresponding IP address to the intranet CDN server.
[0068] 3.1. Based on the IP address corresponding to the download request a1, the intranet CDN server determines that it is not the first time to establish an SSL connection with the external network source station, and after performing SSL connection verification, it checks that the intranet CDN server has a cache of resource a1. The intranet CDN server forwards the cache of resource a1 to the proxy buffer server A, and the intranet user a1 directly downloads resource a1 from the proxy buffer server A and enjoys accelerated downloading.
[0069] 3.2. The intranet CDN server determines to establish an SSL connection with the external source site for the first time based on the IP address corresponding to the download request b1, and then establishes the SSL connection. After that, it is checked that the intranet CDN server does not have the cache of resource b1. The intranet CDN server pulls the download and stores resource b1 from the external source site. At the same time, the cache of resource b1 is forwarded to the proxy buffer server B. The intranet user b1 directly downloads resource b1 from the proxy buffer server B and enjoys accelerated download.
[0070] 4. The DNS domain name resolution server resolves the download domain name of the network resource a2 requested by the intranet user a2 and obtains the IP address corresponding to the download domain name, and sends the download domain name corresponding to the download request a2 and its corresponding IP address to the external network source station. The external network source station responds to the resource download request a2 of the intranet user a2. The intranet user a2 downloads the resource a2 from the external network source station and cannot enjoy accelerated download.
[0071] Similarly, the DNS domain name resolution server resolves the download domain name of the network resource b2 requested by the intranet user b2 and obtains the IP address corresponding to the download domain name, and sends the download domain name corresponding to the download request b2 and its corresponding IP address to the external network source station, which responds to the resource download request b2 of the intranet user b2. The intranet user b2 downloads the resource b2 from the external network source station and cannot enjoy accelerated download.
[0072] The above is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present invention by using the above disclosed methods and technical contents without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Therefore, all equivalent changes made according to the shape, structure and principle of the present invention without departing from the content of the technical solution of the present invention should be included in the protection scope of the present invention.
Claims
1. A resource download acceleration method based on intranet CDN cache, characterized in that: The following steps are involved: Step S1: Intranet user requests network download resources; Step S2: The system determines whether the download domain name requested by the intranet user to download network resources belongs to the hosts list; If it belongs to the hosts list, the DNS domain name resolution server will resolve the download domain name requested by the intranet user to download network resources and obtain the IP address corresponding to the download domain name, and send the download domain name and its corresponding IP address to the intranet CDN server; Step S3: The intranet CDN server determines whether to establish an SSL connection with the external network source station for the first time based on the corresponding IP address; If it is the first time to establish an SSL connection, an SSL connection is established between the intranet CDN server and the external network source station; If it is not the first time to establish an SSL connection, the intranet CDN server verifies the validity of the CA certificate of the external source site and checks whether the CN in the CA certificate matches the download domain name, thereby performing SSL connection verification; Step S4: After the intranet CDN server completes the first SSL connection or non-first SSL connection verification with the external source station, check the resource cache of the intranet CDN server; Step S5: Determine whether there is a cache of the network download resource requested by the user on the intranet CDN server; If it exists, the intranet CDN server forwards the cache of the network download resource requested by the user to the proxy buffer server corresponding to the intranet user; If it does not exist, the intranet CDN server will download and store the resources requested by the user from the external network source station. While the intranet CDN server is downloading, it will forward the cache of the resources requested by the user to the proxy buffer server corresponding to the intranet user. Step S5: The intranet user directly downloads resources from the proxy cache server.
2. The resource download acceleration method based on intranet CDN cache as claimed in claim 1, characterized in that: The hosts list in step S2 is managed individually by each intranet management terminal and stored in a hosts file. The hosts file is set as a system file without an extension. The hosts list includes a website domain name and its corresponding IP address.
3. The resource download acceleration method based on intranet CDN cache as claimed in claim 2, characterized in that: The intranet management end manages the hosts list in the following ways: Use Notepad to open the hosts file on the intranet management side; If the system starts accelerated downloading of resources from the external source site, the internal network management end adds the domain name of the corresponding external source site and its corresponding IP address in the hosts list; If the system turns off accelerated downloading of external source site resources, the intranet management end deletes the domain name of the corresponding external source site and its corresponding IP address in the hosts list.
4. The resource download acceleration method based on intranet CDN cache as claimed in claim 3 is characterized in that: In step S2, after the DNS domain name resolution server resolves the download domain name and its corresponding IP address, it sends the download domain name and its corresponding IP address to the corresponding intranet to determine whether the IP address belongs to the hosts list; If it belongs to the hosts list, the system returns a correct result to the intranet management end; if it does not belong to the hosts list, the system returns an incorrect result to the intranet management end.
5. The resource download acceleration method based on intranet CDN cache as claimed in claim 1, characterized in that: In step S2, when the domain name of the resource downloaded by the intranet user does not belong to the hosts list, the DNS domain name resolution server routes it to the external network source station, and the external network source station responds to the resource download request of the intranet user; In step S3, if the intranet CDN server and the external source station cannot complete the first SSL connection or non-first SSL connection verification, the DNS domain name resolution server routes to the external source station, and the external source station responds to the resource download request of the intranet user.
6. The resource download acceleration method based on intranet CDN cache as claimed in claim 5, characterized in that: The resources directly responded by the external source station to the internal network users are forwarded and cached to the internal network CDN server through the corresponding proxy buffer server, and the URL domain name and IP address of the corresponding external source station are sent to the internal network management end for the internal network management end to confirm and add the URL domain name and IP address of the corresponding external source station to the hosts list.
7. The resource download acceleration method based on intranet CDN cache as claimed in claim 1, characterized in that: When the first SSL connection is made between the intranet CDN server and the external source station, it includes: The intranet CDN server sends a connection request to the external source site, where the connection request includes the supported SSL protocol version, encryption algorithm list, random number, and CA certificate containing the public key; The external source site returns a request response to the internal CDN server, where the request response includes the selected protocol version, encryption algorithm, and CA certificate containing the public key. The intranet CDN server verifies the validity of the CA certificate of the external source site; The intranet CDN server generates a pre-master key, encrypts it with the public key of the external source site's CA certificate, and sends it to the external source site. The external source station uses the public key of the CA certificate to decrypt and obtain the pre-master key, so that both the intranet CDN server and the external source station have the pre-master key and random number; The intranet CDN server and the external source site use the pre-master key and random numbers to generate a session key, and then use the selected encryption algorithm and session key for encrypted communication to achieve an SSL connection.
8. A resource download acceleration system based on intranet CDN cache, used to implement the resource download acceleration method based on intranet CDN cache according to any one of claims 1 to 7, characterized in that: include: The request identification module is deployed in each intranet and is used to receive resource download requests from intranet users, determine whether the download domain name of the network resource requested by the intranet user belongs to the hosts list, and send the download domain name belonging to the hosts list to the DNS domain name resolution server for domain name resolution; The intranet CDN server is used to receive the download domain name and its corresponding IP address sent by the DNS domain name resolution server, and perform SSL connection, SSL connection verification and resource download between the intranet CDN server and the external network source station based on the corresponding IP address, as well as communicate with each proxy buffer server and forward the resource cache to the proxy buffer server; The proxy buffer server is deployed in each intranet to receive and store resources from the external source station and forward the resources to the intranet users based on the requests of the intranet users.
9. The resource download acceleration system based on intranet CDN cache as claimed in claim 8, characterized in that: Also includes: The intranet user request resource download module is deployed on the intranet user side and is used by the intranet user to request network download resources; The hosts list editing module is deployed on the intranet management end and is used to open the hosts list using the Notepad tool and add or delete the URL domain name and its corresponding IP address of the corresponding external source station in the hosts list.
10. The resource download acceleration system based on intranet CDN cache as claimed in claim 8, characterized in that: The intranet CDN server includes an SSL connection and verification module, a resource cache module, a resource cache check module, a cache forwarding module, and a module for requesting external network source station resource downloads; SSL connection and verification module, used to perform SSL connection and SSL connection verification between the intranet CDN server and the external network source station based on the corresponding IP address; Resource cache module, used to store resources requested by intranet users for network download; The resource cache check module is used to determine whether the intranet CDN server has a cache of the resource that the user requested to download from the network; A cache forwarding module is used to forward the cache of network download resources requested by the intranet user to the proxy cache server corresponding to the intranet user; The module for requesting external network source station resource download is used to request download resources from external network source stations.
Citation Information
Patent Citations
Method for realizing peer-to-peer network caching system based on Ares protocol
CN102130838A
Domain name resolution accelerating system of in-domain terminal users and method thereof
CN103957282A
Information passing for content-based source selection via DNS
US11128597B1
Manage encrypted network traffic using DNS responses
US9137217B1