Back to results
US 11,240,213 B2Granted
Resource obtaining, distribution, and download method and apparatus, device, and storage medium
AssigneeHuawei Technologies Co., Ltd.
InventorsYishan Sun, Lei Yuan, Jiawei Zhou
Life of this patent
Estimating the term…
Abstract
A resource distribution method, when different peer nodes communicate with each other, a key pair is used for encryption. A resource is transmitted in a ciphertext form in a peer-to-peer (P2P) network. In particular, each resource may have a corresponding key pair, and different key pairs may be used to encrypt resources of different users.
Claims20
A resource obtaining method implemented by a first node, comprising:
- receiving a plurality of first data packets from a plurality of second nodes, wherein the first data packets are based on a plurality of first resource pieces of a target resource that is encrypted using a public key in a first key pair, wherein the first key pair encrypts the target resource between the first node and the second nodes in a peer-to-peer (P2P) network, wherein the first key pair comprises the public key and a private key, wherein the first key pair uniquely corresponds to the target resource, and wherein the private key is configured to decrypt the target resource and cannot decrypt resources other than the target resource;
- decrypting the first data packets using the private key to obtain a plurality of resource pieces of the target resource;
- determining the target resource based on the resource pieces, wherein the target resource comprises the first resource pieces, and wherein each of the first resource pieces comprises a plurality of second resource pieces;
- downloading, in a download process and for one of the first resource pieces, the second resource pieces in the one of the first resource pieces according to a bit torrent (BT) rule;
- sending the second resource pieces in the one of the first resource pieces to a service processor in turn according to an arrangement sequence of the second resource pieces in the target resource when finishing downloading the second resource pieces in the one of the first resource pieces;
- and
- continuing to download a next first resource piece of the first resource pieces until the target resource is completely downloaded.
4 more elements
A computer device comprising:
- a memory configured to store instructions;
- and
- a processor coupled to the memory, wherein the instructions cause the processor to be configured to:
- receive first data packets from a plurality of second nodes, wherein the first data packets are based on a plurality of first resource pieces of a target resource that is encrypted using a public key in a first key pair, wherein the first key pair encrypts the target resource between a first node and the second nodes in a peer-to-peer (P2P) network, wherein the first key pair comprises the public key and a private key, wherein the first key pair uniquely corresponds to the target resource, and wherein the private key is configured to decrypt the target resource and cannot decrypt resources other than the target resource;
- decrypt the first data packets using the private key to obtain a plurality of resource pieces of the target resource;
- determine the target resource based on the resource pieces, wherein the target resource comprises the first resource pieces, and wherein each of the first resource pieces comprises a plurality of second resource pieces;
- download, in a download process and for one of the first resource pieces, the second resource pieces in the one of the first resource pieces according to a bit torrent (BT) rule;
- send the second resource pieces in the one of the first resource pieces to a service processor in turn according to an arrangement sequence of the second resource pieces in the target resource when finishing downloading the second resource pieces in the one of the first resource pieces;
- and
- continue to download a next first resource piece of the first resource pieces until the target resource is completely downloaded.
7 more elements
A resource obtaining method implemented by a first node, comprising:
- receiving a plurality of first data packets from a plurality of second nodes, wherein the first data packets are based on a first resource piece of a target resource that is encrypted using a public key in a first key pair, wherein the first key pair encrypts the target resource between the first node and the second nodes in a peer-to-peer (P2P) network, wherein the first key pair comprises the public key and a private key, wherein the first key pair uniquely corresponds to the target resource, and wherein the private key is configured to decrypt the target resource and cannot decrypt resources other than the target resource;
- decrypting the first data packets using the private key to obtain a plurality of resource pieces of the target resource;
- determining the target resource based on the resource pieces;
- sending infrastructure as a service (IaaS) feature information of the first node in a cloud computing service to a tracking node in the P2P network;
- receiving peer node information of the P2P network from the tracking node, wherein the peer node information comprises a plurality of node identifiers, and wherein a plurality of priorities of the node identifiers in the peer node information correspond to a matching degree between a corresponding node and the IaaS feature information of the first node;
- selecting the second nodes in the P2P network based on the peer node information;
- and
- downloading the target resource from the second nodes that are selected.
5 more elements
A computer device comprising:
- a memory configured to store instructions;
- and
- a processor coupled to the memory, wherein the instructions cause the processor to be configured to:
- receive first data packets from a plurality of second nodes, wherein the first data packets are based on a first resource piece of a target resource that is encrypted using a public key in a first key pair, wherein the first key pair encrypts the target resource between a first node and the second nodes in a peer-to-peer (P2P) network, wherein the first key pair comprises the public key and a private key, wherein the first key pair uniquely corresponds to the target resource, and wherein the private key is configured to decrypt the target resource and cannot decrypt resources other than the target resource;
- decrypt the first data packets using the private key to obtain a plurality of resource pieces of the target resource;
- determine the target resource based on the resource pieces;
- send infrastructure as a service (IaaS) feature information of the first node in a cloud computing service to a tracking node in the P2P network;
- receive peer node information of the P2P network from the tracking node, wherein the peer node information comprises a plurality of node identifiers, and wherein a plurality of priorities of the node identifiers in the peer node information correspond to a matching degree between a corresponding node and the IaaS feature information of the first node;
- select the second nodes in the P2P network based on the peer node information;
- and
- download the target resource from the second nodes that are selected.
8 more elements
Dependencies are inferred from the claim text.