CN110611702B - Block chain file rapid transmission method, equipment, system and storage medium - Google Patents

Block chain file rapid transmission method, equipment, system and storage medium Download PDF

Info

Publication number
CN110611702B
CN110611702B CN201910805588.0A CN201910805588A CN110611702B CN 110611702 B CN110611702 B CN 110611702B CN 201910805588 A CN201910805588 A CN 201910805588A CN 110611702 B CN110611702 B CN 110611702B
Authority
CN
China
Prior art keywords
node
file
miner
information
backup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201910805588.0A
Other languages
Chinese (zh)
Other versions
CN110611702A (en
Inventor
曾富来
尹伟强
苟树明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wei Songjie
Original Assignee
Wei Songjie
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wei Songjie filed Critical Wei Songjie
Priority to CN201910805588.0A priority Critical patent/CN110611702B/en
Publication of CN110611702A publication Critical patent/CN110611702A/en
Application granted granted Critical
Publication of CN110611702B publication Critical patent/CN110611702B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Abstract

The invention provides a block chain file rapid transmission method, user node equipment, miner node equipment, a block chain system and a computer readable storage medium, wherein the file rapid transmission method comprises the following steps: the user node and the miner node finish registration in the server in advance; the user node issues a task; the server sends the verification information of the screened N miner nodes to the user node; the method comprises the steps that a miner node sends a file transmission request to a user node, the user node carries out identity verification on the miner node, and if the identity verification is passed, position information of a file to be transmitted is inquired; if the file is only stored in the user node, the user node transmits the file with the miner node point to point, otherwise, the file is transmitted with the miner node point to point through a backup miner node for storing the file; and updating the node information after the file transmission is finished. By implementing the technical scheme of the invention, the file can be quickly transmitted, and the task participated by a plurality of persons can be quickly expanded.

Description

Block chain file rapid transmission method, equipment, system and storage medium
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of blockchain technologies, and in particular, to a method for quickly transmitting a file in a blockchain, a user node device, a miner node device, a blockchain system, and a computer-readable storage medium.
[ background of the invention ]
At present, the application of the block chain is more and more. In order to reasonably utilize idle computational resources on the blockchain and save cost, some tasks are issued on the blockchain and are completed by the joint participation of a plurality of miner nodes, and more application of the blockchain needs large file transmission to complete various tasks.
The related art large file transmission is point-to-point transmission (P2P for short), which is also called peer-to-peer internet technology, and is a new network technology that relies on the computing power and bandwidth of participants in the network, rather than aggregating all the dependencies on a few servers. The point-to-point transmission does not need to be transferred through a block chain server, and the two nodes can transmit files after establishing connection through respective point-to-point transmission clients.
However, when the current usage task file is large, due to the bandwidth limitation, the current point-to-point transmission mode can only transmit the file to each miner node in batches step by step, thereby increasing the time cost of the whole task.
Therefore, there is a need to provide a new method, device and system to solve the above technical problems.
[ summary of the invention ]
The present invention is directed to overcoming the above-mentioned problems and providing a method for fast transferring a file in a block chain, a user node device, a miner node device, a block chain system, and a computer-readable storage medium, which can fast transfer a file and rapidly expand a task in which multiple persons participate.
In order to achieve the above object, the present invention provides a method for quickly transmitting a file of a blockchain, where a file quick transmission party of the blockchain is applied to a blockchain system, the blockchain system includes a server, a user node, and a plurality of miner nodes, and the method is performed by the user node, and includes the following steps:
step S11, the user node completes registration in the server in advance;
step S12, the user node issues a task containing a file transmission requirement through the blockchain system;
step S13, the user node receives verification information sent by the server, wherein the verification information is identity information of N miner nodes screened by the server from the plurality of miner nodes for picking up tasks according to the requirements of the tasks, and N is a positive integer;
step S14, the user node receives a file transmission request sent by an executing mineworker node executing a file transmission task, carries out identity verification on verification information corresponding to the executing mineworker node, inquires position information of an executing file corresponding to the executing mineworker node executing the file transmission task if the verification is passed, the file transmission request is formulated by the executing mineworker node according to the user information of the user node sent by the server, and the executing mineworker node is any one of the N mineworker nodes screened by the server;
step S15, if the query result is that the execution file is only stored internally, the user node establishes data communication connection with the execution miner node, after the connection is successful, the execution file is sent to the executing miner node, otherwise, the node information of the backup miner node in which the execution file is stored is sent to the executing miner node, meanwhile, the verification information corresponding to the executing miner node is sent to the backup miner node, the verification information is used for the backup miner node to carry out identity verification on the executing miner node, if the verification is passed, the backup miner node establishes data communication connection with the executing miner node, the backup miner node sends the execution file to the execution miner node, and the backup miner node is any one of the N miner nodes screened by the server;
step S16, the user node receives feedback information sent by the executing mineworker node, and updates node information stored inside and belonging to the executing mineworker node according to the feedback information, where the feedback information is generated after the executing mineworker node completes receiving the execution file, and the node information includes state information and file backup information.
Preferably, the data communication is point-to-point transmission, the node information further includes a computer name, and both the user node and the miner node can obtain network address information corresponding to the computer name from the server according to the computer name, where the network address information is used for point-to-point transmission.
Preferably, in the step S15, if the query result indicates that the execution file is only stored in the user node and the file transmission requests of the plurality of execution miner nodes are for transmitting the same execution file, the user node sends the execution file to the plurality of execution miner nodes according to the time sequence of the file transmission requests, and in the file transmission process, the user node prioritizes resources to ensure that the transmission of the execution file of the front execution miner node is completed, and if the network bandwidth for file transmission is occupied, the user node sends information for waiting to the rear execution miner nodes; and if the query result is that the execution file is stored in a plurality of backup miner nodes and the file transmission request of the plurality of execution miner nodes is that the same execution file is transmitted, the user node performs comparative analysis according to the node information of the plurality of backup miner nodes and sends the node information of one backup miner node with the capability of transmitting the file fastest to the execution miner nodes according to the comparative analysis result, wherein if the backup miner nodes and the execution miner nodes are in the same local area network, the backup miner node is preferably the one backup miner node with the capability of transmitting the file fastest.
The invention also provides user node equipment which comprises a processor and a memory, wherein the processor is used for reading the program in the memory and executing the steps in the file fast transmission method of the block chain.
The present invention also provides a computer-readable storage medium having stored thereon a program of a block chain file rapid transfer method, which when executed by a processor, implements the steps of the block chain file rapid transfer method as set forth in any one of the above.
The invention also provides a method for quickly transmitting files of the block chain, which is applied to a block chain system, wherein the block chain system comprises a server, a user node and a plurality of miner nodes, the method for quickly transmitting the files is executed by the miner nodes, and the method comprises the following steps:
step S21, the miner node completes registration in the server in advance;
step S22, the miner node receives task information which is issued by the user node through the block chain system and contains file transmission requirements, evaluates the task information, sends a task application request to the server if the evaluation is passed, and receives the task after the server passes the screening according to the task requirements and the user information of the user node sent by the server;
step S23, the miner node sends a file transmission request to the user node according to the user information;
step S24, the miner node establishes a data communication connection according to the requirement of the user node and receives an execution file corresponding to the execution task:
step S241, the miner node establishes data communication connection with the user node, and receives the execution file sent by the user node after the connection is successful, wherein the execution file is only stored in the user node;
step S242, the mineworker node receives node information of a backup mineworker node, which is sent by the user node and stores the execution file, sends a file transmission request to the backup mineworker node according to the node information, establishes data communication connection with the backup mineworker node after the identity verification of the backup mineworker node is passed, and receives the execution file sent by the backup mineworker node, where the identity verification is that the backup mineworker node verifies according to verification information which is sent by the user node and corresponds to the mineworker node that requests transmission;
step S25, when the execution file is received, the miner node sends feedback information of the received execution file to the user node, the feedback information is used for the user node to update the node information of the miner node which is stored in the user node and requests transmission, and the node information comprises state information and file backup information;
step S26, the miners node receives the verification information corresponding to the miners node that is sent by the user node and that newly requests transmission, receives the file transmission request sent by the miners node that is newly requested transmission, performs identity verification on the verification information, establishes data communication connection with the miners node after the verification is passed, and sends the stored execution file to the miners node.
Preferably, the data communication is point-to-point transmission, the node information further includes a computer name, and both the user node and the miner node can obtain network address information corresponding to the computer name from the server according to the computer name, where the network address information is used for point-to-point transmission.
The invention also provides a miner node device which comprises a processor and a memory, wherein the processor is used for reading the program in the memory and executing the steps in the file fast transmission method of the block chain.
The present invention also provides a computer-readable storage medium having stored thereon a program of a block chain file rapid transfer method, which when executed by a processor, implements the steps of the block chain file rapid transfer method as set forth in any one of the above.
The invention also provides a block chain system which comprises a server, the user node equipment and a plurality of the miner node equipment, wherein the server, the user node and the plurality of the miner node equipment participate together to form a block chain.
Compared with the prior art, the block chain file rapid transmission method, the user node equipment, the miner node equipment, the block chain system and the computer readable storage medium of the invention comprise the following steps: the user node and the miner node finish registration in the server in advance; the user node issues a task; the server sends the verification information of the screened N miner nodes to the user node; the method comprises the steps that a miner node sends a file transmission request to a user node, the user node carries out identity verification on the miner node, and if the identity verification is passed, position information of a file to be transmitted is inquired; if the file is only stored in the user node, the user node transmits the file with the miner node point to point, otherwise, the file is transmitted with the miner node point to point through a backup miner node for storing the file; and updating the node information after the file transmission is finished. The method determines the transmission mode after judging the position information of the file to be transmitted, namely if the file is only stored in the user node, the user node transmits the file with the miner node in a point-to-point manner, otherwise, the backup miner node storing the file transmits the file with the miner node in a point-to-point manner, so that the transmission mode in the related technology that the file can only be transmitted to each miner node step by step in batches is avoided, the time consumption of the file transmission of the whole task is avoided, the method can transmit the file from one device to a plurality of devices in the shortest time, the task participated by a plurality of persons is ensured to be orderly unfolded as soon as possible, and the time of the whole task is saved. By implementing the technical scheme of the invention, the file can be quickly transmitted, and the task participated by a plurality of persons can be quickly expanded.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
FIG. 1 is a block diagram of a blockchain system according to the present invention;
FIG. 2 is a block diagram illustrating a block chain file fast transmission method according to the present invention;
fig. 3 is a flow chart of another block chain file fast transmission method according to the present invention.
[ detailed description ] embodiments
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a block diagram illustrating a block chain system according to the present invention. The invention provides a blockchain system 100, wherein the blockchain system 100 comprises a server 1, a user node 2 and a plurality of miner nodes 3. In practical applications, the number of the server 1 and the plurality of the miner nodes 3 is at least one, and the specific number can be determined according to specific situations.
The server 1, the user node 2 and the miner node 3 may all communicate with each other. The user node 2 and the miner node 3 transmit files through data communication, and in the embodiment, the data communication mode is point-to-point transmission. The file transmission speed of point-to-point transmission is high, the use is convenient, and certainly, the method is not limited to the method, and other modes such as a Bluetooth mode, a WI-FI mode, an optical fiber communication mode and other wired modes are all possible.
The user node 2 is a node for issuing tasks, and the miner node 3 is a node for executing tasks. The user node 2 and the miner node 3 are defined only in terms of the functions they perform when applied. In other words, the user node 2 and the miner node 3 identities may interwork in different applications.
The user node 2 and the miner node 3 are both registered on the server 1, and are managed by the server 1 in a unified manner.
Referring to fig. 2, fig. 2 is a block diagram illustrating a flow chart of a block chain file fast transmission method according to the present invention. The fast file transmission method for the blockchain is applied to the blockchain system 100, and is executed by the user node 2, and the method includes the following steps:
step S11, the user node 2 completes registration in the server 1 in advance.
In step S12, the user node 2 issues a task including a file transfer requirement through the blockchain system 100.
Step S13, the user node 2 receives verification information sent by the server 1, where the verification information is identity information of N miner nodes 3 screened by the server 1 from the plurality of miner nodes 3 that pick up tasks according to the requirements of the tasks, and N is a positive integer.
Step S14, the user node 2 receives the file transmission request sent by the performing miner node 31 executing the file transmission task, performs identity verification on the verification information corresponding to the performing miner node 31, and queries the location information of the performing file corresponding to the performing miner node 31 executing the file transmission task if the verification passes.
Wherein, the file transmission request is formulated by the executing miner node 31 according to the user information of the user node 2 sent by the server 1. The executing miner node 31 is any one of the N miner nodes 3 screened by the server 1.
Step S15, if the query result is that the execution file is only stored internally, the user node 2 establishes a data communication connection with the executing mineworker node 31, and sends the execution file to the executing mineworker node 31 after the connection is successful, otherwise, sends the node information of the backup mineworker node 32 in which the execution file is stored to the executing mineworker node 31, and sends the verification information corresponding to the executing mineworker node 31 to the backup mineworker node 32.
The verification information is used for the backup miner node 32 to perform identity verification on the executing miner node 31, if the verification is passed, the backup miner node 32 establishes data communication connection with the executing miner node 31, and the backup miner node 32 sends the execution file to the executing miner node 31. The backup miner node 32 is any one of the N miner nodes 3 screened by the server 1. In addition, the data communication is a point-to-point transmission, and the user node 2 sends the execution file to the execution miner node 31 through the point-to-point transmission.
In this embodiment, if the query result indicates that the execution file is only stored in the user node 2, and the file transmission requests of the multiple execution miner nodes 31 are for transmitting the same execution file, the user node 2 sends the execution file to the multiple execution miner nodes 31 according to the time sequence of the file transmission requests, and during the file transmission process, the user node 2 prioritizes resources to ensure that the transmission of the execution file of the first execution miner node 31 is completed, and if the network bandwidth for file transmission is occupied, the user node 2 sends information for waiting to the later execution miner nodes 31.
In this embodiment, if the query result indicates that the execution file is stored in the plurality of backup miners nodes 32 and the file transmission request of the plurality of execution miners nodes 31 indicates that the same execution file is transmitted, the user node 2 performs comparative analysis according to the node information of the plurality of backup miners nodes 32, and sends the node information of one backup miners node 32 having the capability of transmitting the file most quickly to the execution miners node 31 according to the comparative analysis result. If the backup miner node 32 and the executing miner node 31 are in the same local area network, the backup miner node 32 is preferably the one backup miner node 32 with the capability of completing file transmission fastest.
By the way of transmitting the execution file in step S15, the transmission way in the related art, which can only transmit the execution file to each miner node step by step in batches, can be avoided, thereby avoiding the time consumption of file transmission of the whole task. That is, files can be transferred quickly and tasks involving multiple people are spread out quickly.
Step S16, the user node 2 receives the feedback information sent by the executing mineworker node 31, and updates the node information stored inside and belonging to the executing mineworker node 31 according to the feedback information, where the feedback information is generated after the executing mineworker node 31 completes receiving the execution file.
The node information comprises state information, file backup information and a computer name. The user node 2 and the miner node 3 may both obtain network address information corresponding to the computer name from the server 1 according to the computer name, and the network address information is used for point-to-point transmission.
The invention also provides user node equipment which comprises a processor and a memory, wherein the processor is used for reading the program in the memory and executing the steps in the file fast transmission method of the block chain.
The present invention also provides a computer-readable storage medium having stored thereon a program of a block chain file rapid transfer method, which when executed by a processor, implements the steps of the block chain file rapid transfer method as set forth in any one of the above.
Referring to fig. 3, fig. 3 is a block diagram illustrating a flow chart of another block chain file fast transmission method according to the present invention. The present invention also provides another method for fast transmitting a file of a blockchain, which is applied to a blockchain system 100, and the method for fast transmitting a file is executed by the miner node 3, and comprises the following steps:
step S21, the miner node 3 completes registration in the server 1 in advance.
Step S22, the miner node 3 receives the task information including the file transmission requirement issued by the user node 2 through the blockchain system 100, evaluates the task information, sends a request for applying for a task to the server 1 if the evaluation is passed, and receives the task after the server 1 filters the passed task according to the task requirement, and receives the user information of the user node 2 sent by the server 1.
Step S23, the miner node 3 sends a file transmission request to the user node 2 according to the user information.
Step S24, the miner node 3 establishes a data communication connection according to the requirement of the user node 2 and receives an execution file corresponding to the execution task:
step S241, the miner node 3 establishes a data communication connection with the user node 2, and receives the execution file sent by the user node 2 after the connection is successful.
Wherein, the execution file is stored in the user node 2 only. The data communication is a point-to-point transmission.
Step S242, the miner node 3 receives the node information of the backup miner node 32, which is sent by the user node 2 and stores the execution file, sends a file transmission request to the backup miner node 32 according to the node information, establishes data communication connection with the backup miner node 32 after the identity authentication of the backup miner node 32 is passed, and receives the execution file sent by the backup miner node 32.
The identity authentication is performed by the backup miner node 32 according to the authentication information which is sent by the user node 2 and corresponds to the miner node 3 requesting transmission. The data communication is a point-to-point transmission.
By the way of transmitting the execution file in step S24, the transmission way in the related art, which can only transmit the execution file to each miner node step by step in batches, can be avoided, thereby avoiding the time consumption of file transmission of the whole task. That is, files can be transferred quickly and tasks involving multiple people are spread out quickly.
Step S25, when the execution file is completely received, the miner node 3 sends feedback information of the completed reception to the user node 2, where the feedback information is used for the user node 2 to update the node information of the miner node 3 stored in the user node 2 and requesting transmission.
The node information includes state information, file backup information and a computer name, the user node 2 and the miner node 3 can both obtain network address information corresponding to the computer name from the server 1 according to the computer name, and the network address information is used for point-to-point transmission.
Step S26, the miner node 3 receives the verification information corresponding to the miner node 3 that is sent by the user node 2 and newly requests transmission, receives the file transmission request sent by the miner node 3 that is newly requested transmission, performs identity verification on the verification information, establishes data communication connection with the miner node 3 after the verification is passed, and sends the stored execution file to the miner node 3.
The invention also provides a miner node device which comprises a processor and a memory, wherein the processor is used for reading the program in the memory and executing the steps in the file fast transmission method of the block chain.
The present invention also provides a computer-readable storage medium having stored thereon a program of a block chain file rapid transfer method, which when executed by a processor, implements the steps of the block chain file rapid transfer method as set forth in any one of the above.
In some possible embodiments, aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present application described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
The program product for implementing the above method may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The invention also provides a block chain system 100, which comprises a server 1, the user node equipment as described above and a plurality of the above-mentioned mineworker node equipment, wherein the server 1, the user node 2 and the plurality of the mineworker node equipment participate together to form a block chain. The blockchain system 100 is only an example, and should not bring any limitation to the function and the scope of the application of the embodiment of the present invention.
Compared with the prior art, the block chain file rapid transmission method, the user node equipment, the miner node equipment, the block chain system and the computer readable storage medium of the invention comprise the following steps: the user node and the miner node finish registration in the server in advance; the user node issues a task; the server sends the verification information of the screened N miner nodes to the user node; the method comprises the steps that a miner node sends a file transmission request to a user node, the user node carries out identity verification on the miner node, and if the identity verification is passed, position information of a file to be transmitted is inquired; if the file is only stored in the user node, the user node transmits the file with the miner node point to point, otherwise, the file is transmitted with the miner node point to point through a backup miner node for storing the file; and updating the node information after the file transmission is finished. The method determines the transmission mode after judging the position information of the file to be transmitted, namely if the file is only stored in the user node, the user node transmits the file with the miner node in a point-to-point manner, otherwise, the backup miner node storing the file transmits the file with the miner node in a point-to-point manner, so that the transmission mode in the related technology that the file can only be transmitted to each miner node step by step in batches is avoided, the time consumption of the file transmission of the whole task is avoided, the method can transmit the file from one device to a plurality of devices in the shortest time, the task participated by a plurality of persons is ensured to be orderly unfolded as soon as possible, and the time of the whole task is saved. By implementing the technical scheme of the invention, the file can be quickly transmitted, and the task participated by a plurality of persons can be quickly expanded.
While the foregoing is directed to embodiments of the present invention, it will be understood by those skilled in the art that various changes may be made without departing from the spirit and scope of the invention.

Claims (9)

1. A method for quickly transmitting files of a blockchain is characterized in that a file quick transmission party of the blockchain is applied to a blockchain system, the blockchain system comprises a server, a user node and a plurality of miner nodes, the method for quickly transmitting the files is executed by the user node, and the method comprises the following steps:
step S11, the user node completes registration in the server in advance;
step S12, the user node issues a task containing a file transmission requirement through the blockchain system;
step S13, the user node receives verification information sent by the server, wherein the verification information is identity information of N miner nodes screened by the server from the plurality of miner nodes for picking up tasks according to the requirements of the tasks, and N is a positive integer;
step S14, the user node receives a file transmission request sent by an executing mineworker node executing a file transmission task, carries out identity verification on verification information corresponding to the executing mineworker node, inquires position information of an executing file corresponding to the executing mineworker node executing the file transmission task if the verification is passed, the file transmission request is formulated by the executing mineworker node according to the user information of the user node sent by the server, and the executing mineworker node is any one of the N mineworker nodes screened by the server;
step S15, if the query result is that the execution file is only stored internally, the user node establishes data communication connection with the execution miner node, after the connection is successful, the execution file is sent to the executing miner node, otherwise, the node information of the backup miner node in which the execution file is stored is sent to the executing miner node, meanwhile, the verification information corresponding to the executing miner node is sent to the backup miner node, the verification information is used for the backup miner node to carry out identity verification on the executing miner node, if the verification is passed, the backup miner node establishes data communication connection with the executing miner node, the backup miner node sends the execution file to the execution miner node, and the backup miner node is any one of the N miner nodes screened by the server;
in the step S15, if the query result indicates that the execution file is only stored in the user node and the file transfer requests of the plurality of execution miner nodes are for transferring the same execution file, the user node sends the execution file to the plurality of execution miner nodes according to the time sequence of the file transfer requests, and during the file transfer process, the user node prioritizes resources to ensure that the transfer of the execution file of the first execution miner node is completed, and if the network bandwidth for file transfer is occupied, the user node sends information for waiting to the plurality of execution miner nodes that are ranked behind; if the query result is that the execution file is stored in a plurality of backup miner nodes and the file transmission request of the plurality of execution miner nodes is that the same execution file is transmitted, the user node performs comparative analysis according to the node information of the plurality of backup miner nodes and sends the node information of one backup miner node with the capability of transmitting the file fastest to the execution miner nodes according to the comparative analysis result, wherein if the backup miner nodes and the execution miner nodes are in the same local area network, the backup miner node is preferably the one backup miner node with the capability of transmitting the file fastest;
step S16, the user node receives feedback information sent by the executing mineworker node, and updates node information stored inside and belonging to the executing mineworker node according to the feedback information, where the feedback information is generated after the executing mineworker node completes receiving the execution file, and the node information includes state information and file backup information.
2. The method according to claim 1, wherein the data communication is peer-to-peer transmission, the node information further includes a computer name, and both the user node and the miner node can obtain network address information corresponding to the computer name from the server according to the computer name, and the network address information is used for peer-to-peer transmission.
3. A method for fast transferring files of a block chain is applied to a block chain system, the block chain system comprises a server, a user node and a plurality of miner nodes, the method for fast transferring files is executed by the miner nodes, and the method comprises the following steps:
step S21, the miner node completes registration in the server in advance;
step S22, the miner node receives task information which is issued by the user node through the block chain system and contains file transmission requirements, evaluates the task information, sends a task application request to the server if the evaluation is passed, and receives the task after the server passes the screening according to the task requirements and the user information of the user node sent by the server;
step S23, the miner node sends a file transmission request to the user node according to the user information;
step S24, the miner node establishes a data communication connection according to the requirement of the user node and receives an execution file corresponding to the execution task:
step S241, the miner node establishes data communication connection with the user node, and receives the execution file sent by the user node after the connection is successful, wherein the execution file is only stored in the user node; the execution file is only stored in the user node, when the file transmission requests of a plurality of miner nodes are the same execution file, the user node sends the execution file to the plurality of miner nodes according to the time sequence of the file transmission requests, in the file transmission process, the user node preferentially arranges resources to ensure that the execution file of the miner node which is ranked at the top is transmitted and is finished, and if the network bandwidth for file transmission is occupied, the user node sends information for waiting to the miner nodes which are ranked at the back;
step S242, the mineworker node receives node information of a backup mineworker node, which is sent by the user node and stores the execution file, sends a file transmission request to the backup mineworker node according to the node information, establishes data communication connection with the backup mineworker node after the identity verification of the backup mineworker node is passed, and receives the execution file sent by the backup mineworker node, where the identity verification is that the backup mineworker node verifies according to verification information which is sent by the user node and corresponds to the mineworker node that requests transmission; when the execution file is stored in a plurality of backup miner nodes, and the file transmission requests of the plurality of miner nodes are to transmit the same execution file, the user node performs comparative analysis according to the node information of the plurality of backup miner nodes, and sends the node information of one backup miner node with the capability of finishing transmitting the file fastest to the miner nodes according to the comparative analysis result, wherein if the backup miner nodes and the miner nodes are in the same local area network, the backup miner node is preferably the backup miner node with the capability of finishing transmitting the file fastest;
step S25, when the execution file is received, the miner node sends feedback information of the received execution file to the user node, the feedback information is used for the user node to update the node information of the miner node which is stored in the user node and requests transmission, and the node information comprises state information and file backup information;
step S26, the miners node receives the verification information corresponding to the miners node that is sent by the user node and that newly requests transmission, receives the file transmission request sent by the miners node that is newly requested transmission, performs identity verification on the verification information, establishes data communication connection with the miners node after the verification is passed, and sends the stored execution file to the miners node.
4. The method according to claim 3, wherein the data communication is peer-to-peer transmission, the node information further includes a computer name, and both the user node and the miner node can obtain network address information corresponding to the computer name from the server according to the computer name, and the network address information is used for peer-to-peer transmission.
5. A user node device, characterized by comprising a processor and a memory, the processor being configured to read a program in the memory and execute the steps in the file fast transfer method of a block chain according to any of claims 1 to 2.
6. A miner node device, comprising a processor and a memory, the processor being configured to read a program in the memory and execute the steps in the block chain file fast transfer method according to any one of claims 3 to 4.
7. A blockchain system comprising a server, the user node device of claim 5, and a plurality of the miner node devices of claim 6, the server, the user node, and the plurality of miner node devices participating together in a blockchain.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program of a block chain file fast transfer method, which when executed by a processor implements the steps of the block chain file fast transfer method according to any one of claims 1 to 2.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program of a block chain file fast transfer method, which when executed by a processor implements the steps of the block chain file fast transfer method according to any one of claims 3 to 4.
CN201910805588.0A 2019-08-29 2019-08-29 Block chain file rapid transmission method, equipment, system and storage medium Expired - Fee Related CN110611702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910805588.0A CN110611702B (en) 2019-08-29 2019-08-29 Block chain file rapid transmission method, equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910805588.0A CN110611702B (en) 2019-08-29 2019-08-29 Block chain file rapid transmission method, equipment, system and storage medium

Publications (2)

Publication Number Publication Date
CN110611702A CN110611702A (en) 2019-12-24
CN110611702B true CN110611702B (en) 2022-04-01

Family

ID=68890971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910805588.0A Expired - Fee Related CN110611702B (en) 2019-08-29 2019-08-29 Block chain file rapid transmission method, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN110611702B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852687B (en) * 2021-09-24 2023-12-01 成都质数斯达克科技有限公司 File transmission method between block chain nodes

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147489A (en) * 2017-05-02 2017-09-08 南京理工大学 Distributed access authentication management method in a kind of LEO satellite network
CN107943833A (en) * 2017-10-25 2018-04-20 华南农业大学 A kind of storage of non-stop layer distributed document and search method based on block chain
CN108984697A (en) * 2018-07-05 2018-12-11 江苏恒宝智能系统技术有限公司 A kind of block chain interior joint method of data synchronization
CN109040014A (en) * 2018-06-13 2018-12-18 湖南搜云网络科技股份有限公司 Block chain processing method and processing device, block chain node and storage medium
CN109284630A (en) * 2018-09-21 2019-01-29 深圳市九洲电器有限公司 File editing method and system, agent node
WO2019072303A2 (en) * 2018-12-28 2019-04-18 Alibaba Group Holding Limited Parallel execution of transactions in a blockchain network
CN109726887A (en) * 2018-10-12 2019-05-07 西安电子科技大学 The acquisition of mobile crowdsourcing Data Data and processing system and method based on block chain
CN109787815A (en) * 2018-12-27 2019-05-21 云南财经大学 Government information resources shared system based on block chain
CN110119315A (en) * 2019-05-14 2019-08-13 思力科(深圳)电子科技有限公司 Rendering method, relevant device and system based on block chain
CN110166541A (en) * 2019-05-14 2019-08-23 思力科(深圳)电子科技有限公司 Rendering method, relevant device and system based on block chain

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539982B (en) * 2014-12-18 2018-08-14 新浪网技术(中国)有限公司 A kind of point-to-point resource-sharing schedule method of video, system and nodal terminal
US20170091756A1 (en) * 2015-07-14 2017-03-30 Fmr Llc Point-to-Point Transaction Guidance Apparatuses, Methods and Systems
CN108243005B (en) * 2017-10-26 2021-07-20 招商银行股份有限公司 Application registration verification method, participant management system, device and medium
CN108462568B (en) * 2018-02-11 2021-08-06 西安电子科技大学 Block chain-based secure file storage and sharing method and cloud storage system
CN109308287A (en) * 2018-09-26 2019-02-05 南京荣链科技有限公司 A kind of partitions of file storage method, terminal and medium based on block chain
CN110035002B (en) * 2019-04-01 2021-09-10 达闼机器人有限公司 Method for implementing instant messaging, terminal equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147489A (en) * 2017-05-02 2017-09-08 南京理工大学 Distributed access authentication management method in a kind of LEO satellite network
CN107943833A (en) * 2017-10-25 2018-04-20 华南农业大学 A kind of storage of non-stop layer distributed document and search method based on block chain
CN109040014A (en) * 2018-06-13 2018-12-18 湖南搜云网络科技股份有限公司 Block chain processing method and processing device, block chain node and storage medium
CN108984697A (en) * 2018-07-05 2018-12-11 江苏恒宝智能系统技术有限公司 A kind of block chain interior joint method of data synchronization
CN109284630A (en) * 2018-09-21 2019-01-29 深圳市九洲电器有限公司 File editing method and system, agent node
CN109726887A (en) * 2018-10-12 2019-05-07 西安电子科技大学 The acquisition of mobile crowdsourcing Data Data and processing system and method based on block chain
CN109787815A (en) * 2018-12-27 2019-05-21 云南财经大学 Government information resources shared system based on block chain
WO2019072303A2 (en) * 2018-12-28 2019-04-18 Alibaba Group Holding Limited Parallel execution of transactions in a blockchain network
CN110119315A (en) * 2019-05-14 2019-08-13 思力科(深圳)电子科技有限公司 Rendering method, relevant device and system based on block chain
CN110166541A (en) * 2019-05-14 2019-08-23 思力科(深圳)电子科技有限公司 Rendering method, relevant device and system based on block chain

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"Harnessing Multiple Wireless Interfaces for Guaranteed QoS in Proximate P2P Networks";Navid Abedini,et al;《IEEE》;20121126;全文 *
"比特币矿工节点的区块链存储分析与优化研究";李博;《中国优秀硕士论文全文数据库》;20181231;全文 *
基于区块链的手机APP点评系统;周雨晗等;《数码世界》;20171201(第12期);全文 *

Also Published As

Publication number Publication date
CN110611702A (en) 2019-12-24

Similar Documents

Publication Publication Date Title
CN107590001A (en) Load-balancing method and device, storage medium, electronic equipment
CN105939335A (en) Method and system for managing channel ownership in a publish-subscribe data processing environment
US9560043B2 (en) Biometric-based wireless device association
US20080104170A1 (en) Collaborative Networks for Parallel Downloads of Content
US20080102793A1 (en) Automated Secure Pairing for Wireless Devices
US11200211B2 (en) Method and system for managing mutual distributed ledgers in a system of interconnected devices
US20190373051A1 (en) Task Scheduling System for Internet of Things (IoT) Devices
CN110781373B (en) List updating method and device, readable medium and electronic equipment
US20120096136A1 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
CN113259415B (en) Network message processing method and device and network server
CN110532077A (en) Task processing method, device and storage medium
US8429257B2 (en) Optimizing use of internet protocol addresses
CN110611702B (en) Block chain file rapid transmission method, equipment, system and storage medium
US20140073370A1 (en) Method of mobile device resource reuse in mobile cloud
US11930399B2 (en) Method, device and system for implementing edge computing
CN116743785A (en) Cloud network data storage method, device, equipment and medium based on fog calculation
US8145698B1 (en) Self organizing peer-to-peer system, method, and/or apparatus
CN109981778B (en) Method, device, equipment and storage medium for realizing service of content distribution network
US20200296158A1 (en) Node and cluster management on distributed self-governed ecosystem
CN113553206B (en) Data event execution method and device, electronic equipment and computer readable medium
CN116701004A (en) Cloud function development method, device, electronic device and storage medium
CN103108018A (en) Method and device for downloading files in dynamic control network
CN106295410B (en) The method and device thereof of dual system downloading file
CN113271229B (en) Equipment control method and device, storage equipment, safety equipment, switch, router and server
CN112311833B (en) Data updating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200513

Address after: 210094 Xuanwu District, Jiangsu, Xiaolingwei 200, Nanjing

Applicant after: Wei Songjie

Address before: No. 401, No. 2 workshop, Juyin technology industrial plant, No. 1, Ganli Road, gankeng community, Jihua street, Longgang District, Shenzhen City, Guangdong Province

Applicant before: SILICON (SHENZHEN) ELECTRONIC TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220401

CF01 Termination of patent right due to non-payment of annual fee