A resource downloading method, system and storage medium based on peer-to-peer network

By directly providing download services using preset topology maps in a point-to-point network, the problems of cumbersome download steps and high deployment costs caused by cloud-accelerated edge devices are solved, and the effect of simplifying downloads and reducing costs is achieved.

CN113824785BActive Publication Date: 2024-12-06YICI NETCOM (HANGZHOU) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111106311.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-22
Publication Date
2024-12-06
Estimated Expiration
2041-09-22

AI Technical Summary

Technical Problem

In existing point-to-point networks, cloud-accelerated edge devices need to cache resource data, resulting in cumbersome download steps and the deployment cost increases as the network scale expands.

Method used

The resource node determines the download path based on the preset point-to-point network topology diagram, and directly provides download services to the download nodes to avoid cloud-accelerated edge devices participation, simplify download steps and reduce deployment costs.

Benefits of technology

Simplifies the download process, reduces deployment costs, and improves download speed and efficiency by using shortest paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113824785B_ABST
    Figure CN113824785B_ABST
Patent Text Reader

Abstract

The present invention provides a resource download method, system and storage medium based on a point-to-point network, the method comprising: a download node obtains resource information, and sends a download request to the resource node according to the first network information of the resource node contained in the resource information; the resource node extracts the second network information of the download node from the download request, and searches for the shortest path to the download node from a preset point-to-point network topology map according to the second network information; the resource node sends the shortest path to the download node, so that the download node uses the shortest path to download the corresponding resource to the resource node. The resource node in the present invention can determine the shortest path according to the preset point-to-point network topology map based on the download request and send it to the download node, so that the download node can directly download resources from the resource node through the shortest path, without the participation of cloud acceleration edge devices, ensuring download efficiency, avoiding the capital cost brought by the deployment of cloud acceleration edge devices, and reducing the deployment cost of the point-to-point network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network technology, and in particular to a resource downloading method, system and storage medium based on a peer-to-peer network. Background Art

[0002] A peer-to-peer network (P2P) is a network constructed using peer-to-peer technology. Each node in the network can act as a client and a server at the same time, that is, a download node with downloading needs and a resource node that provides resources. In the related art, a peer-to-peer network is usually equipped with multiple cloud acceleration edge devices, which are used to cache the resource data of the resource node according to the needs of the download node, and the download node downloads the resource data through the device. However, since the cloud acceleration edge device needs to cache the resource data, the download process is more cumbersome; at the same time, as the scale of the network expands, the number of cache devices such as cloud acceleration edge devices needs to increase, thereby increasing the deployment cost of the peer-to-peer network. Summary of the invention

[0003] The purpose of the present invention is to provide a resource downloading method, system and storage medium based on a peer-to-peer network, wherein the resource node can determine the path for providing download services to the download node according to a preset peer-to-peer network topology diagram, and use the path to directly provide download services to the download node. The entire download process does not require the participation of cloud acceleration edge devices, which can simplify the download steps and avoid the financial costs brought by deploying cache devices such as cloud acceleration edge devices, thereby reducing the deployment cost of the peer-to-peer network.

[0004] In order to solve the above technical problems, the present invention provides a resource downloading method based on a peer-to-peer network, comprising:

[0005] The download node obtains resource information, and sends a download request to the resource node according to the first network information of the resource node contained in the resource information;

[0006] The resource node extracts the second network information of the download node from the download request, and searches for the shortest path to the download node from a preset point-to-point network topology map according to the second network information;

[0007] The resource node sends the shortest path to the download node, so that the download node downloads the corresponding resource from the resource node using the shortest path.

[0008] Optionally, searching for the shortest path to the download node from a preset point-to-point network topology map according to the second network information includes:

[0009] The resource node sends the first network information and the second network information to a preset topology node;

[0010] The topology node searches for an accessible path from the resource node to the download node in a preset point-to-point network topology map according to the first network information and the second network information;

[0011] If the accessible paths are found, the topology node sends the shortest path among the accessible paths to the resource node.

[0012] Optionally, it also includes:

[0013] When a node in a point-to-point network detects a change in another node with which a point-to-point connection is directly established, the node sends direct connection change information to the topology node;

[0014] The topology node updates the preset point-to-point network topology map using the direct connection change information.

[0015] Optionally, after searching for an accessible path from the resource node to the download node in a preset point-to-point network topology map, the method further includes:

[0016] If the accessible path is not found, the topology node sends preset cloud relay service information to the resource node, so that the resource node provides the download service to the download node by using the cloud relay service.

[0017] Optionally, the download node obtains resource information, including:

[0018] The download node obtains the resource information from a preset directory node.

[0019] The present invention also provides a resource download system based on a peer-to-peer network, comprising: a download node and a resource node, wherein:

[0020] The download node is used to obtain resource information, and send a download request to the resource node according to the first network information of the resource node contained in the resource information; download the corresponding resource to the resource node using the shortest path sent by the resource node;

[0021] The resource node is used to extract the second network information of the download node from the download request, and find the shortest path to the download node from a preset point-to-point network topology map based on the second network information; and send the shortest path to the download node.

[0022] Optionally, it also includes: a topology node, wherein:

[0023] The resource node is further used to send the first network information and the second network information to the preset topology node;

[0024] The topology node is used to search for an accessible path from the resource node to the download node in a preset point-to-point network topology map based on the first network information and the second network information; if the accessible path is found, the topology node sends the shortest path in the accessible path to the resource node.

[0025] Optionally,

[0026] The topology node is also used to update the preset point-to-point network topology map using direct connection change information; the direct connection change information is generated by a node in the point-to-point network and sent to the topology node when a change is detected in other nodes that directly establish point-to-point connections.

[0027] Optionally,

[0028] The topology node is further configured to send preset cloud relay service information to the resource node if the accessible path is not found;

[0029] The resource node is also used to provide the download service to the download node by using a cloud relay service.

[0030] The present invention also provides a storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the resource downloading method based on the peer-to-peer network as described above is implemented.

[0031] The present invention provides a resource downloading method based on a point-to-point network, comprising: a downloading node obtains resource information, and sends a download request to the resource node according to first network information of the resource node contained in the resource information; the resource node extracts second network information of the downloading node from the download request, and searches for the shortest path to the downloading node from a preset point-to-point network topology map according to the second network information; the resource node sends the shortest path to the downloading node, so that the downloading node uses the shortest path to download corresponding resources to the resource node.

[0032] It can be seen that after the download node in the present invention obtains the resource information, it will directly send a download request to the resource node according to the first network information contained in the information, and does not need to send it to the cloud acceleration edge device; and after receiving the request, the resource node will use the shortest path to reach the download node to directly provide download services to the download node, so that the download node can directly download the required resource data from itself without the participation of the cloud acceleration edge device, which can not only avoid the complex download process generated by the cloud acceleration edge device, but also avoid the capital cost of deploying cache devices such as cloud acceleration edge devices, and reduce the deployment cost of the point-to-point network; at the same time, the download path between the resource node and the download node in the present invention is the shortest path generated based on the point-to-point network topology map, which can reduce the impact of node forwarding on the download service, thereby ensuring the download speed and efficiency. The present invention also provides a resource download system and storage medium based on a point-to-point network, which has the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] 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 description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0034] Figure 1 A flowchart of a resource downloading method based on a peer-to-peer network provided by an embodiment of the present invention;

[0035] Figure 2 A schematic diagram of the structure of a point-to-point network provided by an embodiment of the present invention;

[0036] Figure 3 A structural block diagram of a peer-to-peer network-based resource downloading system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] In the related art, a plurality of cloud acceleration edge devices are usually provided in a point-to-point network, which are used to cache the resource data of the resource node according to the needs of the download node, and the download node downloads the resource data through the device. However, since the cloud acceleration edge device needs to cache the resource data, the downloading steps are relatively cumbersome; at the same time, as the scale of the network expands, the number of cache devices such as cloud acceleration edge devices needs to increase, thereby increasing the deployment cost of the point-to-point network. In view of this, the present invention provides a resource downloading method based on a point-to-point network, wherein the resource node can determine the path for providing download services to the download node according to a preset point-to-point network topology diagram, and use the path to directly provide download services to the download node. The entire download process does not require the participation of the cloud acceleration edge device, which can simplify the downloading steps, and can avoid the financial cost of deploying cache devices such as cloud acceleration edge devices, thereby reducing the deployment cost of the point-to-point network. Please refer to Figure 1 , Figure 1 A flowchart of a resource downloading method based on a peer-to-peer network provided by an embodiment of the present invention, the method may include:

[0039] S101: A download node obtains resource information, and sends a download request to a resource node according to first network information of the resource node contained in the resource information.

[0040] In an embodiment of the present invention, when a download node has a resource download demand, it will obtain relevant resource information, and according to the first network information of the resource node contained in the resource information, directly send a download request to the resource node to notify the resource node to provide a download service, wherein the resource information contains the resource name, type and node location where the resource is stored, and the first network information is the communication information required for network communication with the resource node, such as IP address, MAC address, etc.; of course, if each node in the point-to-point network is provided with a node ID for unique identification, the first network information may also include the node ID of the resource node. Obviously, in an embodiment of the present invention, the download node does not need to send the download request to the cloud acceleration edge device, but directly sends the request to the resource node, which can save the step of sending the request to the cloud acceleration edge device so that the device can cache the resource, simplify the step of downloading resources in the point-to-point network and improve the efficiency. It should be noted that the embodiment of the present invention does not limit the specific form of the download request, as long as it is the network request information that can characterize the download demand, it can be set according to the actual application requirements; the embodiment of the present invention does not limit the transmission method of the download request, and the relevant network technology can be referred to.

[0041] Furthermore, the embodiment of the present invention does not limit the way in which the download node obtains resource information. For example, each node can preset a resource information directory, which stores resource information corresponding to each resource, and then the download node can obtain resource information from its internal resource information directory; of course, a node can also be designated as a directory node in the point-to-point network, in which a resource information directory is preset, and each node can upload the resource information corresponding to the resources it owns to the directory node for management, and the download node can also obtain the required resource information through the directory node. In the embodiment of the present invention, in order to avoid repeated storage of resource information, a separate directory node can be designated for unified storage of resource information.

[0042] In a possible case, the download node obtains resource information, which may include:

[0043] Step 11: The download node obtains resource information from the preset directory node.

[0044] Furthermore, it should be emphasized that the resource nodes, download nodes and directory nodes in the embodiments of the present invention are all user terminal devices in a point-to-point network. Any terminal device in the network can be used as a resource node, download node and directory node, and the identity of each node can be switched according to actual application requirements.

[0045] S102: The resource node extracts second network information of the download node from the download request, and searches for the shortest path to the download node from a preset point-to-point network topology map according to the second network information.

[0046] It can be understood that in order to transmit the download request through the network, the request should include the second network information of the download node, wherein the second network information is consistent with the first network information, and is also the communication information used for network communication with the download node, and the description in the above embodiment can be referred to; and after the resource node obtains the second network information, it can query the shortest path to the download node from the preset point-to-point network topology map, and then use the path to provide download services to the download node, wherein the map contains the connection relationship of each node in the point-to-point network to establish a point-to-point connection. In other words, the resource node in the embodiment of the present invention can directly provide download services to the download node without going through the cloud acceleration edge device, and can avoid the use of cloud acceleration edge devices in the entire download process, and can simplify the additional steps brought by the cloud acceleration edge device to the download, and can avoid the deployment cost of deploying cache devices such as cloud acceleration edge devices, and reduce the deployment cost of the point-to-point network; at the same time, because the resource node uses the shortest path to the download node to provide download services to the download node, it can effectively reduce the impact of the link on the download speed and ensure the stability of the download.

[0047] It is understandable that the establishment of a preset point-to-point network topology map requires the collection of point-to-point connection information between each node in the network. The embodiment of the present invention does not limit the subject of collecting information. For example, each node in the network can broadcast the information in the network. In other words, any node stores the point-to-point connection information of all nodes in the network; of course, in order to avoid the impact of information broadcast on the point-to-point network and avoid repeated storage of the same information, a topology node can also be specified. The topology node is used to manage the point-to-point connection of all nodes in the network, and other nodes send their corresponding point-to-point connection information to the topology node for unified management. Further, it is understandable that the topology node can use these point-to-point connection conditions to construct a point-to-point network topology map. The embodiment of the present invention does not limit the generation process of the topology map, and reference can be made to the relevant technology of topology. Further, when a resource node has a path query request, the first network information corresponding to it and the second network information of the download node can be sent to the topology node, so that the topology node determines the accessible path from the resource node to the download node, and then selects the shortest path in the accessible path and returns it to the resource node.

[0048] In a possible case, searching for the shortest path to the download node from a preset point-to-point network topology map according to the second network information may include:

[0049] Step 21: The resource node sends the first network information and the second network information to a preset topology node;

[0050] Step 22: The topology node searches for an accessible path from the resource node to the download node in a preset point-to-point network topology map according to the first network information and the second network information;

[0051] Step 23: If an accessible path is found, the topology node sends the shortest path among the accessible paths to the resource node.

[0052] It should be noted that the embodiment of the present invention does not limit how to find an accessible path in a topology graph, and reference may be made to the relevant technology for querying a simple path between any two points in an undirected graph. Further, since there are changes in the point-to-point connection in the point-to-point network, that is, there may be no accessible path between the download node and the resource node at a certain moment, the resource node can wait for the path to be restored and then provide the download service to the download node again. Of course, the download service can also be provided to the download node through a cloud relay service, where the cloud relay service is a link relay service provided by the cloud, which can be used to connect two isolated point-to-point networks. It should be noted that the embodiment of the present invention does not limit the specific cloud relay service, and reference may be made to the relevant technology of the cloud service. It can be understood that if the topology node does not query the accessible path between the download node and the resource node, the preset cloud relay service information can be sent to the resource node so that the node can provide the download service to the download node through the cloud relay service. The embodiment of the present invention also does not limit the specific cloud relay service information, and reference may be made to the relevant technology of the cloud service and relay service.

[0053] In a possible case, after searching the accessible path from the resource node to the download node in the preset point-to-point network topology map, the following may also be included:

[0054] Step 31: If no accessible path is found, the topology node sends preset cloud relay service information to the resource node, so that the resource node provides download service to the download node by using the cloud relay service.

[0055] Furthermore, it is understandable that when each node in a point-to-point network detects changes in other nodes with which it has established a direct point-to-point connection (such as new additions, offline, etc.), it is necessary to send the change information to the topology node so that the topology node can update the topology node to ensure smooth communication.

[0056] In one possible case, the method may further include:

[0057] Step 41: When a node in the point-to-point network detects a change in another node that directly establishes a point-to-point connection, the node sends direct connection change information to the topology node;

[0058] Step 42: The topology node updates the preset point-to-point network topology map using the direct connection change information.

[0059] Further, it should be noted that the topological node is consistent with the resource node, download node and directory node, and is a user terminal device in a point-to-point network, and the relevant content in the above embodiment can be referred to. In other words, the user terminal device in the network can at least be a resource node and a download node, and in addition, it can also be a target node, a topological node, or a combination of a target node and a topological node.

[0060] S103: The resource node sends the shortest path to the download node, so that the download node downloads the corresponding resource from the resource node using the shortest path.

[0061] It should be noted that the embodiment of the present invention does not limit how the downloading node downloads the required resources from the resource node using the shortest path, and reference may be made to the relevant technologies of the point-to-point network.

[0062] Based on the above embodiments, after obtaining the resource information, the download node in the present invention will directly send a download request to the resource node according to the first network information contained in the information, and does not need to send it to the cloud acceleration edge device; and after receiving the request, the resource node will use the shortest path to reach the download node to directly provide download services to the download node, so that the download node can directly download the required resource data from itself without the participation of the cloud acceleration edge device, which can not only avoid the complex download process generated by the cloud acceleration edge device, but also avoid the financial cost of deploying cache devices such as cloud acceleration edge devices, thereby reducing the deployment cost of the point-to-point network; at the same time, the download path between the resource node and the download node in the present invention is the shortest path generated based on the point-to-point network topology map, which can reduce the impact of the path on the download service, thereby ensuring the download speed and efficiency.

[0063] The following is an introduction to the resource download method based on the peer-to-peer network based on a specific network structure diagram. Figure 2 , Figure 2 A schematic diagram of the structure of a point-to-point network provided by an embodiment of the present invention, wherein N0, N1, N2, N3 and N4 all represent nodes (i.e. user terminal devices), wherein N0 is a resource provider (i.e. resource node), and N1 is a resource requester (i.e. download node), and P2P (Peer-to-Peer) between nodes represents the establishment of a point-to-point connection, and it can be seen that no point-to-point connection is established between N0 and N1. When N1 has a resource download demand, it will send a download request to N0 through a P2P network or a cloud relay service, and after receiving the download request, N0 will determine the accessible path to N1 by itself or by relying on another designated topological node, i.e., N0→N2→N3→N1 and N0→N3→N1, and determine the shortest path among the accessible paths, i.e., N0→N3→N1, and finally provide download services to N1 using the shortest path. Of course, since the point-to-point connection in a P2P network (peer-to-peer network) is prone to change, for example, in some cases, the point-to-point connection between N2 and N3 and between N0 and N3 is disconnected, that is, there is no accessible path from N0 to N1. At this time, N0 can rely on the cloud relay service to provide download services to N1.

[0064] A peer-to-peer network-based resource downloading system and storage medium provided in an embodiment of the present invention are introduced below. The peer-to-peer network-based resource downloading system and storage medium described below and the peer-to-peer network-based resource downloading method described above can refer to each other.

[0065] Please refer to Figure 3 , Figure 3 The structure block diagram of a resource download system based on a peer-to-peer network provided by an embodiment of the present invention, the system may include: a download node 301 and a resource node 302, wherein:

[0066] The download node 301 is used to obtain resource information, and send a download request to the resource node 302 according to the first network information of the resource node 302 contained in the resource information; download the corresponding resource to the resource node 302 using the shortest path sent by the resource node 302;

[0067] The resource node 302 is used to extract the second network information of the download node 301 from the download request, and find the shortest path to the download node 301 from the preset point-to-point network topology map according to the second network information; and send the shortest path to the download node 301.

[0068] Optionally, the system may further include: a topology node, wherein:

[0069] The resource node 302 is further used to send the first network information and the second network information to a preset topology node;

[0070] The topology node is used to search for an accessible path from the resource node 302 to the download node 301 in a preset point-to-point network topology map according to the first network information and the second network information; if an accessible path is found, the topology node sends the shortest path in the accessible path to the resource node 302.

[0071] Optionally,

[0072] The topology node is also used to update the preset point-to-point network topology map using direct connection change information; the direct connection change information is generated by the node in the point-to-point network and sent to the topology node when it detects changes in other nodes that directly establish point-to-point connections.

[0073] Optionally,

[0074] The topology node is also used to send the preset cloud relay service information to the resource node 302 if no accessible path is found;

[0075] The resource node 302 is also used to provide download services to the download node 301 by using the cloud relay service.

[0076] Optionally, the system may further include: a directory node, wherein:

[0077] The download node 301 is also used to obtain resource information from a preset directory node.

[0078] Directory node, used to store resource information.

[0079] An embodiment of the present invention further provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the resource downloading method based on a peer-to-peer network in any of the above embodiments are implemented.

[0080] Since the embodiments of the storage medium part correspond to the embodiments of the resource downloading method part based on a peer-to-peer network, please refer to the description of the embodiments of the resource downloading method part based on a peer-to-peer network for the embodiments of the storage medium part, which will not be repeated here.

[0081] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0082] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0083] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0084] The above is a detailed introduction to a resource downloading method, system and storage medium based on a peer-to-peer network provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A resource downloading method based on a peer-to-peer network, characterized in that: Applied to a peer-to-peer network, the nodes in the peer-to-peer network are all user terminal devices, any user terminal device in the peer-to-peer network can be used as a resource node, a download node, a topology node and a directory node, and the user terminal device can switch between the resource node, the download node, the topology node and the directory node; the method comprises: The download node obtains resource information from a preset directory node, and sends a download request to the resource node according to the first network information of the resource node contained in the resource information; The resource node extracts the second network information of the download node from the download request, and sends the first network information and the second network information to a preset topology node; The topology node searches for an accessible path from the resource node to the download node in a preset point-to-point network topology map according to the first network information and the second network information; If the topological node finds the accessible path, the shortest path among the accessible paths is sent to the resource node; The resource node sends the shortest path to the download node, so that the download node downloads the corresponding resource from the resource node using the shortest path; When a node in a point-to-point network detects a change in another node with which a point-to-point connection is directly established, the node sends direct connection change information to the topology node; the change includes adding a new node or going offline. The topology node updates the preset point-to-point network topology map using the direct connection change information.

2. The resource downloading method based on a peer-to-peer network according to claim 1, characterized in that: After searching the accessible path from the resource node to the download node in the preset point-to-point network topology map, the method further includes: If the accessible path is not found, the topology node sends preset cloud relay service information to the resource node, so that the resource node provides download service to the download node by using cloud relay service.

3. A resource download system based on a peer-to-peer network, characterized in that: Applied to a peer-to-peer network, the nodes in the peer-to-peer network are all user terminal devices, including: download nodes, resource nodes, topology nodes and directory nodes, any user terminal device in the peer-to-peer network can be used as the resource node, the download node, the topology node and the directory node, and the user terminal device can switch between the resource node, the download node, the topology node and the directory node, wherein: The download node is used to obtain resource information from a preset directory node, and send a download request to the resource node according to the first network information of the resource node contained in the resource information; download the corresponding resource from the resource node using the shortest path sent by the resource node; The resource node is used to extract the second network information of the download node from the download request, and send the first network information and the second network information to the preset topological node; send the shortest path returned by the topological node to the download node; The topology node is used to search for an accessible path from the resource node to the download node in a preset point-to-point network topology map based on the first network information and the second network information; if the accessible path is found, the topology node sends the shortest path in the accessible path to the resource node; the preset point-to-point network topology map is updated using direct connection change information; the direct connection change information is generated by a node in the point-to-point network and sent to the topology node when changes are detected in other nodes that directly establish point-to-point connections; the changes include new additions and offline.

4. The resource downloading system based on peer-to-peer network according to claim 3 is characterized in that: The topology node is further configured to send preset cloud relay service information to the resource node if the accessible path is not found; The resource node is also used to provide download services to the download node using a cloud relay service.

5. A storage medium, characterized in that: The storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by the processor, the resource downloading method based on the peer-to-peer network as claimed in claim 1 or 2 is implemented.