Task allocation method and device in peer-to-peer network
A task allocation and peer-to-peer network technology, applied in the network field, can solve the problems of reduced completion rate, low download efficiency, increased network overhead of protocol interaction, etc., to achieve the effect of optimizing allocation and improving performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0100] Embodiment 1. A task distribution method in a peer-to-peer network, such as figure 1 As shown, including steps S110 to S120:
[0101] S110: Determine the service capability of each node according to the processing upload task situation of each node corresponding to the resource to be shared; wherein the resource to be shared is divided into multiple upload tasks for upload;
[0102] S120: Assign upload tasks to nodes according to the service capabilities of each node.
[0103] In this embodiment, upload tasks can be allocated according to the service capabilities of nodes, and the allocation of upload tasks in the P2P network can be optimized, thereby improving the performance of the entire P2P network.
[0104] In this embodiment, the aforementioned nodes are P2P nodes, which can include, but are not limited to, terminals such as computers, mobile phones, and tablets.
[0105] In this embodiment, when a P2P node needs to download certain resources (such as but not limited to ord...
Embodiment 2
[0139] Embodiment 2: A task distribution method in a peer-to-peer network; this embodiment includes the solution of Embodiment 1. On this basis, the above step S110 may include:
[0140] Calculate the initial score of each node according to the attribute data of each node corresponding to the resource to be shared, and use the initial score of the node as the score representing the service capability of the node;
[0141] After the node completes at least one upload task, update the score representing the service capability of the node according to the situation of the node processing the upload task;
[0142] The above step S120 may include:
[0143] When uploading tasks need to be allocated, the nodes are assigned upload tasks in order according to the current scores representing the service capabilities of the nodes from large to small.
[0144] In a P2P network, the service capabilities of various nodes are uneven. Some nodes have good quality and strong service capabilities, and so...
Embodiment 3
[0209] The third embodiment is a task distribution method in a peer-to-peer network; this embodiment includes the solution of the first embodiment, and on this basis, step S120 may include:
[0210] Calculate the size of the upload task that each node can complete in the task cycle according to the service capacity of each node;
[0211] According to the size of the upload task that each node can complete in the task cycle, the upload task is allocated to the node.
[0212] In this embodiment, an upload task of an appropriate size is allocated according to the service capability of the node itself, so as to ensure that the upload node can complete the upload task in a task cycle, make full use of the service capability of the node, and avoid task blocks. Too small and frequent requests affect the efficiency of the downloader and uploader.
[0213] In this embodiment, when assigning upload tasks to nodes, the upload tasks can be assigned to the nodes in order according to the node’s se...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com