Nothing Special   »   [go: up one dir, main page]

CN110071876B - Block chain-based data transmission method and device and electronic equipment - Google Patents

Block chain-based data transmission method and device and electronic equipment Download PDF

Info

Publication number
CN110071876B
CN110071876B CN201910348814.7A CN201910348814A CN110071876B CN 110071876 B CN110071876 B CN 110071876B CN 201910348814 A CN201910348814 A CN 201910348814A CN 110071876 B CN110071876 B CN 110071876B
Authority
CN
China
Prior art keywords
node
data
splitting
split
test
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.)
Active
Application number
CN201910348814.7A
Other languages
Chinese (zh)
Other versions
CN110071876A (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.)
Ant Chain Technology Co ltd
Original Assignee
Advanced New Technologies Co Ltd
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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201910348814.7A priority Critical patent/CN110071876B/en
Publication of CN110071876A publication Critical patent/CN110071876A/en
Application granted granted Critical
Publication of CN110071876B publication Critical patent/CN110071876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application provides a data transmission method and device of a block chain and electronic equipment. The data transmission method comprises the following steps: determining a first network transmission condition between a first node in a blockchain and a second node in the blockchain when the first node prepares to send first target data to the second node; determining a first data splitting reference matched with the first network transmission condition; splitting the first target data according to the first data splitting reference to obtain at least one first splitting data; and respectively sending the at least one first split data to the second node so that the second node synthesizes the first target data based on the at least one first split data to deliver upper-layer processing.

Description

Block chain-based data transmission method and device and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of blockchains, in particular to a data transmission method and device based on blockchains and electronic equipment.
Background
Blockchain is an important concept of cryptocurrency, which is essentially a de-centralized database, and serves as the underlying technology of cryptocurrency, and is a series of data blocks generated by cryptographic association, each of which contains a batch of network transaction information of cryptocurrency for verifying the validity of the information and generating the next block.
In the development process of the block chain platform, the network environment is found to have great influence on the communication between nodes, and how to ensure that the nodes of the block chain effectively and reliably transmit data under the current network environment is the technical problem to be solved by the method.
Disclosure of Invention
The embodiment of the application aims to provide a data transmission method and device of a blockchain and electronic equipment, which can ensure that data can be effectively and reliably transmitted between nodes of the blockchain in a current network environment.
In order to achieve the above object, embodiments of the present application are implemented as follows:
in a first aspect, a method for transmitting data of a blockchain is provided, including:
determining a first network transmission condition between a first node in a blockchain and a second node in the blockchain when the first node prepares to send first target data to the second node;
determining a first data splitting reference matched with the first network transmission condition;
splitting the first target data according to the first data splitting reference to obtain at least one first splitting data;
and respectively sending the at least one first split data to the second node so that the second node synthesizes the first target data based on the at least one first split data to deliver upper-layer processing.
In a second aspect, there is provided a data transmission apparatus of a blockchain, comprising:
a transmission status determination module that determines a first network transmission status between a first node in a blockchain and a second node in the blockchain when the first node is ready to send first target data to the second node;
a split reference determining module for determining a first data split reference matched with the first network transmission condition;
the data splitting module splits the first target data according to the first data splitting reference to obtain at least one first split data;
and the data sending module is used for respectively sending the at least one first split data to the second node so that the second node synthesizes the first target data based on the at least one first split data to deliver upper-layer processing.
In a third aspect, there is provided an electronic device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor:
determining a first network transmission condition between a first node in a blockchain and a second node in the blockchain when the first node prepares to send first target data to the second node;
determining a first data splitting reference matched with the first network transmission condition;
splitting the first target data according to the first data splitting reference to obtain at least one first splitting data;
and respectively sending the at least one first split data to the second node so that the second node synthesizes the first target data based on the at least one first split data to deliver upper-layer processing.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
determining a first network transmission condition between a first node in a blockchain and a second node in the blockchain when the first node prepares to send first target data to the second node;
determining a first data splitting reference matched with the first network transmission condition;
splitting the first target data according to the first data splitting reference to obtain at least one first splitting data;
and respectively sending the at least one first split data to the second node so that the second node synthesizes the first target data based on the at least one first split data to deliver upper-layer processing.
According to the scheme of the embodiment of the application, the data to be transmitted can be split adaptively according to the network transmission state between the first node and the second node, and the data obtained after the splitting are respectively sent, so that the transmission data between the nodes can be ensured not to exceed the transmission capacity of the nodes in the current network environment, and the smoothness of communication between the nodes can be ensured. In addition, for the nodes executing the heartbeat mechanism in the block chain, the problem of error initiation reconnection caused by overlarge transmission data can be avoided, and the stability and the effectiveness of communication between the nodes are ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort to a person having ordinary skill in the art.
Fig. 1 is a schematic flow chart of a first method for transmitting data of a blockchain according to an embodiment of the present application.
Fig. 2 is a second flowchart of a data transmission method of a blockchain according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a data transmission device of a blockchain according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to better understand the technical solutions in the present application, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
As previously described, it was discovered during the development of blockchain platforms that the network environment can have a significant impact on the communication between nodes. Once the transmission data between the nodes exceeds the transmission capacity of the nodes in the current network environment, the problem of communication unclogging can be caused. In particular, for nodes in the blockchain that execute the heartbeat mechanism, such nodes, once they trigger the connection detection logic of the heartbeat mechanism, disconnect the established connection with other nodes and attempt reconnection. Thus, when the network environment is poor, the transmission data between the nodes is too large, which easily causes the nodes to trigger the connection detection logic, so that the communication is forcedly interrupted.
Therefore, the technical scheme for solving the problems can ensure that nodes of the blockchain can stably and effectively communicate under the current network environment.
FIG. 1 is a flow chart of a data transmission method of a blockchain in an embodiment of the present application. The method shown in fig. 1 may be performed by a corresponding apparatus, including:
step S102, when a first node (may refer to the present node) in the blockchain prepares to send first target data to a second node (may refer to the opposite node) in the blockchain, determining a first network transmission status between the first node and the second node.
The method for determining the network transmission condition between the nodes is not particularly limited in the embodiments of the present application.
As an exemplary introduction.
According to preset logic, network test can be dynamically carried out on a connection channel between the first node and the second node, and network transmission conditions obtained by the network test are locally cached. Correspondingly, when the first node prepares to send the first target data, the step obtains the network transmission condition between the first node and the second node from the local cache. Or, when the first node prepares to send the first target data, a network test may be performed on a connection channel between the first node and the second node, so as to determine a network transmission condition between the first node and the second node.
In addition, the blockchain may be in any form, such as a federated chain, a public chain, a private chain, etc., and embodiments of the present application are not specifically limited.
Step S104, a first data splitting reference (the data splitting reference refers to a splitting manner of splitting data) that matches the first network transmission condition is determined.
Wherein the first network transmission condition may include: network transmission efficiency between the first node and the second node. The method includes the steps that when first target data exceeds network transmission efficiency between a first node and a second node, a first data splitting reference is determined. For example, the network transmission efficiency is determined to be data with one maximum transmission of 5M, and assuming that the size of the first target data is 16M, the determined first data splitting reference should split the first target data into at least 4 parts, and each 4 parts of data is not greater than 5M.
And S106, splitting the first target data according to the first data splitting reference to obtain at least one piece of first splitting data.
Specifically, after the first split data is obtained, the step may further configure an identifier of the first target data for the first split data, so as to indicate that the first split data is derived from the first target data. Meanwhile, a splitting sequence number can be further configured for each first splitting data, so that the receiving node can orderly synthesize each first splitting data based on the splitting sequence number, and restore the first splitting data to obtain first target data.
Step S108, the at least one first split data is respectively sent to the second nodes, so that the second nodes synthesize first target data based on the at least one first split data to deliver the upper layer processing.
The embodiment of the present application does not specifically limit the transmission mode of the first split data.
As an exemplary introduction.
The step may sequentially send the at least one first split data to the second node based on one connection channel established between the first node and the second node, or may send the at least one first split data to the second node in parallel based on a plurality of connection channels established between the first node and the second node.
In addition, the first split data may be sent based on determining the response mechanism based on the above. And under the condition of determining the response mechanism, the second node feeds back response information to the first node after successfully receiving the first split data. If the first node does not receive the response information from the second node after sending a certain first split data, the first split data can be sent to the second node again according to the relevant rule until the sending times reach the requirement or after sending, the response information of the second node is received.
Based on the data transmission method of the blockchain shown in fig. 1, the scheme of the embodiment of the application can adaptively split data to be transmitted according to the network transmission state between the first node and the second node, and respectively send the split obtained data, so that the transmission data between the nodes can not exceed the transmission capability of the nodes in the current network environment, and the communication smoothness between the nodes can be ensured. In addition, for the nodes executing the heartbeat mechanism in the block chain, the problem of error initiation reconnection caused by overlarge transmission data can be avoided, and the stability and the effectiveness of communication between the nodes are ensured.
Further, on the basis of the foregoing, the method of the embodiment of the present application may further receive, based on the first node, data sent by other nodes in the foregoing manner.
That is, the method of the embodiment of the application further includes:
step S110, at least one second split data sent by a third node in the blockchain to the first node is received.
It should be understood that the third node may transmit the second target data to the first node according to the data transmission method shown in the above-described step S102-step S108. The at least one second split data is obtained by splitting the second target data by the third node according to a second data splitting reference, wherein the second data splitting reference is obtained by determining based on a second network transmission condition between the corresponding first node and the third node when the third node prepares to send the second target data;
step S112, synthesizing the at least one second split data into second target data.
As an exemplary introduction to step S110 and step S112.
The message carrying the second split data sent by the third node also contains the identifier of the second target data and the split sequence number corresponding to the second split data. After receiving the second split data, the method creates a file aiming at the second target data in a cache space of the first node based on the identification of the second target data so as to cache the second split data and the split sequence number corresponding to the second split data. After the caching of all the second split data is completed, each second split data in the file can be orderly synthesized according to the splitting sequence indicated by the splitting sequence number so as to restore and obtain second target data.
The method of determining the network transmission conditions between the first node and the second node is described in further detail below.
As previously described, the network transmission conditions between the first node and the second node may include, but are not limited to: network transmission efficiency between the first node and the second node.
Correspondingly, the method of the embodiment of the application can detect the network transmission efficiency between the first node and the second node by sending the test data. That is, when step S102 is executed, first, after a connection channel is established between the first node and the second node, communication between the first node and the second node is initialized, and after the initialization is completed, test data is transmitted to the second node based on the connection channel. And then, receiving test feedback data sent by the second node, wherein the test feedback data indicates the receiving time of the second node for the test data. And finally, determining the network transmission efficiency between the first node and the second node based on the size of the test data, the sending time of the test data and the receiving time of the test data.
As an exemplary introduction.
Assuming that the test data size is 600m, the transmission time of the test data is 3:10, the receiving time of the test data is 3:15. According to the above information, it can be determined that the transmission duration of the test data is 3:15-3:10=5 minutes, and the corresponding network transmission efficiency is 600 m/(5×60S) =2 m/S.
After obtaining the network transmission efficiency between the first node and the second node, the first data splitting reference can be further determined based on the network transmission efficiency.
Of course, in addition to network transmission efficiency, the method of the embodiment of the present application may further determine the first data splitting reference based on other network information related to transmission of the first target data. For example, the first data splitting reference is determined further based on the network load of the first node and/or the network load of the second node. Since the manner is not unique, the description is not repeated here.
It should be understood that the method according to the embodiments of the present application may dynamically send transmission data according to the network transmission conditions between nodes. Therefore, after the transmission data is split according to the determined data splitting reference, if the network transmission condition is further deteriorated, the split obtained data can be split again based on the new splitting reference.
That is, in the embodiment of the present application, the first target data may be obtained by splitting the third target data by the first node according to the third data splitting reference. Correspondingly, the third data splitting reference is determined based on the network transmission condition between the corresponding first node and the second node when the first node is ready to send the third target data.
The method of the present embodiment is described below by way of example with reference to specific implementations.
The method of the embodiment is applied to data transmission among nodes in the alliance chain.
As shown in fig. 2, the main flow of sending target data to the opposite node by the node of the federation chain includes:
in step S201, the present node establishes a connection with the counterpart node.
Step S202, the node initiates network detection and determines the network transmission efficiency with the opposite node.
In this step, after the connection channel is successfully established with the opposite node, the present node immediately sends a test data packet to the opposite node based on the connection channel, so as to test the network transmission efficiency with the opposite node, thereby updating the data splitting reference.
Step S203, the node determines whether to split the target data based on the data splitting reference corresponding to the network transmission efficiency.
In the step, if the size of the target data exceeds the network transmission efficiency, determining that the target data needs to be split; otherwise, it is determined that the target data does not need to be split.
In step S204, after determining that the target data needs to be split, the node splits the target data into 2 sub-packets (sub-packets 1 and 2) based on the data splitting reference corresponding to the network transmission efficiency.
In step S205, the present node sends the sub-packet 1 to the opposite node based on the ACK mechanism.
In step S206, after receiving the sub-packet 1, the other node caches the sub-packet 1 and sends an ACK response message of the sub-packet 1 to the other node.
In step S207, after receiving the ACK response message of the sub-packet 1, the node initiates network probing, and updates the network transmission efficiency with the other node.
In step S208, the present node determines whether splitting of the sub-packet 2 is required based on the updated network transmission efficiency with the other node.
In step S209, after determining that the sub-packet 2 does not need to be split, the node sends the sub-packet 2 to the other node based on the ACK mechanism.
In step S210, after receiving the sub-packet 2, the other node caches the sub-packet 2 and sends an ACK response message of the sub-packet 2 to the other node.
In step S211, the opposite node synthesizes the sub-packet 1 and the sub-packet 2 into the target data, and submits the target data to the upper layer of the federation chain.
The foregoing is an introduction to the methods of embodiments of the present application. It will be appreciated that suitable modifications may be made without departing from the principles set forth herein above, and such modifications are also intended to be considered within the scope of the embodiments of the present application.
Corresponding to the above-mentioned data transmission method of the blockchain, as shown in fig. 3, the embodiment of the present application further provides a data transmission device 300 based on the blockchain, including:
the transmission status determination module 310 determines a network transmission status between a first node in a blockchain and a second node in the blockchain when the first node is ready to send first target data to the second node.
The split reference determining module 320 determines a matched first data split reference based on the network transmission condition between the first node and the second node.
The data splitting module 330 splits the first target data according to the first data splitting reference to obtain at least one first split data.
And a data sending module 340, configured to send the at least one first split data to the second node respectively.
Based on the data transmission device of the blockchain shown in fig. 3, the scheme of the embodiment of the application can adaptively split data to be transmitted according to the network transmission state between the first node and the second node, and respectively send the split obtained data, so that the transmission data between the nodes can not exceed the transmission capability of the nodes in the current network environment, and the communication smoothness between the nodes can be ensured. In addition, for the nodes executing the heartbeat mechanism in the block chain, the problem of error initiation reconnection caused by overlarge transmission data can be avoided, and the stability and the effectiveness of communication between the nodes are ensured.
Optionally, the apparatus of the embodiment of the present application further includes:
the data receiving module is used for receiving at least one second split data sent to the first node by a third node in the blockchain, wherein the at least one second split data is obtained by splitting second target data by the third node according to a second data splitting reference, and the second data splitting reference is obtained by determining a second network transmission condition between the corresponding first node and the third node when the third node is ready to send the second target data;
and the data synthesis module synthesizes the at least one second split data into the second target data.
Optionally, the first network transmission condition includes: network transmission efficiency between the first node and the second node.
Optionally, the split reference determining module 320 specifically sends test data to the second node based on the connection channel after the first node establishes the connection channel with the second node; then, receiving test feedback data sent by the second node, wherein the test feedback data indicates the receiving time of the second node for the test data; and determining the network transmission efficiency between the first node and the second node based on the size of the test data, the sending time of the test data and the receiving time of the test data.
Optionally, the split reference determining module 320 determines the matched first data split reference based on a network transmission condition between the first node and the second node, a network load of the first node, and/or a network load of the second node.
Optionally, the first target data is obtained by splitting third target data by the first node according to a third data splitting reference, and the third data splitting reference is obtained by determining based on a network transmission condition between the first node and the second node corresponding to when the first node is ready to send the third target data.
Optionally, the data sending module 340 sends the at least one first split data to the second node respectively, specifically based on a determined response mechanism.
Optionally, the blockchain is a coalition chain.
Obviously, the data transmission device of the blockchain in the embodiment of the present application may be used as an execution body of the data transmission method of the blockchain shown in fig. 1, so that the data transmission device can implement the functions implemented by the data transmission method in fig. 1 and 2. Since the principle is the same, the description is not repeated here.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 4, at the hardware level, the electronic device includes a processor, and optionally an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 4, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs, and forms a data transmission device on a logic level. The processor is used for executing the programs stored in the memory and is specifically used for executing the following operations:
determining a first network transmission condition between a first node in a blockchain and a second node in the blockchain when the first node prepares to send first target data to the second node;
determining a first data splitting reference matched with the first network transmission condition;
splitting the first target data according to the first data splitting reference to obtain at least one first splitting data;
and respectively sending the at least one first split data to the second node so that the second node synthesizes the first target data based on the at least one first split data to deliver upper-layer processing.
The data transmission method of the blockchain disclosed in the embodiment shown in fig. 1 of the present application may be applied to a processor or implemented by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
It should be understood that the electronic device of the embodiment of the present application may implement the functions of the data transmission device of the blockchain in the embodiment shown in fig. 1 and fig. 2, which are not described herein again.
Of course, other implementations, such as a logic device or a combination of hardware and software, are not excluded from the electronic device of the present application, that is, the execution subject of the following processing flow is not limited to each logic unit, but may be hardware or a logic device.
Furthermore, embodiments of the present application provide a computer-readable storage medium storing one or more programs, the one or more programs including instructions, which when executed by a portable electronic device comprising a plurality of application programs, enable the portable electronic device to perform the method of the embodiment shown in fig. 1, and in particular to perform the method of:
determining a first network transmission condition between a first node in a blockchain and a second node in the blockchain when the first node prepares to send first target data to the second node;
determining a first data splitting reference matched with the first network transmission condition;
splitting the first target data according to the first data splitting reference to obtain at least one first splitting data;
and respectively sending the at least one first split data to the second node so that the second node synthesizes the first target data based on the at least one first split data to deliver upper-layer processing.
It should be appreciated that the above instructions, when executed by a portable electronic device comprising a plurality of applications, enable the blockchain data transmission device described above to perform the functions of the embodiments shown in fig. 1 and 2, and are not described in detail herein.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing is merely an example of the present specification and is not intended to limit the present specification. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.

Claims (9)

1. A method of data transmission for a blockchain, comprising:
determining a first network transmission condition between a first node in a blockchain and a second node in the blockchain when the first node is ready to send first target data to the second node, comprising: after the first node and the second node establish a connection channel, test data is sent to the second node based on the connection channel; receiving test feedback data sent by the second node, wherein the test feedback data indicates the receiving time of the second node for the test data; determining network transmission efficiency between the first node and the second node based on the size of the test data, the sending time of the test data and the receiving time of the test data;
determining a first data splitting reference matched with the first network transmission condition;
splitting the first target data according to the first data splitting reference to obtain at least one first splitting data;
and respectively sending the at least one first split data to the second node so that the second node synthesizes the first target data based on the at least one first split data to deliver upper-layer processing.
2. The method of claim 1, further comprising:
receiving at least one second split data sent to the first node by a third node in the blockchain, wherein the at least one second split data is obtained by splitting second target data by the third node according to a second data split reference, and the second data split reference is obtained by determining based on a second network transmission condition between the first node and the third node corresponding to the second target data when the third node is ready to send;
and synthesizing the at least one second split data into the second target data.
3. The method according to claim 1 or 2,
determining a first data splitting reference that matches the first network transmission condition, further comprising:
a matched first data splitting reference is determined based on a network transmission condition between the first node and the second node, a network load of the first node, and/or a network load of the second node.
4. The method according to claim 1 or 2,
the first target data is obtained by splitting third target data according to a third data splitting reference by the first node, and the third data splitting reference is obtained by determining based on the network transmission condition between the first node and the second node corresponding to the first node when the first node prepares to send the third target data.
5. The method according to claim 1 or 2,
transmitting the at least one first split data to the second node, respectively, comprising:
and respectively transmitting the at least one first split data to the second node based on a determination response mechanism.
6. The method according to claim 1 or 2,
the blockchain is a coalition chain.
7. A data transmission apparatus of a blockchain, comprising:
a transmission status determination module that determines a first network transmission status between a first node in a blockchain and a second node in the blockchain when the first node is ready to send first target data to the second node, comprising: after the first node and the second node establish a connection channel, test data is sent to the second node based on the connection channel; receiving test feedback data sent by the second node, wherein the test feedback data indicates the receiving time of the second node for the test data; determining network transmission efficiency between the first node and the second node based on the size of the test data, the sending time of the test data and the receiving time of the test data;
a split reference determining module for determining a first data split reference matched with the first network transmission condition;
the data splitting module splits the first target data according to the first data splitting reference to obtain at least one first split data;
and the data sending module is used for respectively sending the at least one first split data to the second node so that the second node synthesizes the first target data based on the at least one first split data to deliver upper-layer processing.
8. An electronic device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor:
determining a first network transmission condition between a first node in a blockchain and a second node in the blockchain when the first node is ready to send first target data to the second node, comprising: after the first node and the second node establish a connection channel, test data is sent to the second node based on the connection channel; receiving test feedback data sent by the second node, wherein the test feedback data indicates the receiving time of the second node for the test data; determining network transmission efficiency between the first node and the second node based on the size of the test data, the sending time of the test data and the receiving time of the test data;
determining a first data splitting reference matched with the first network transmission condition;
splitting the first target data according to the first data splitting reference to obtain at least one first splitting data;
and respectively sending the at least one first split data to the second node so that the second node synthesizes the first target data based on the at least one first split data to deliver upper-layer processing.
9. A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
determining a first network transmission condition between a first node in a blockchain and a second node in the blockchain when the first node is ready to send first target data to the second node, comprising: after the first node and the second node establish a connection channel, test data is sent to the second node based on the connection channel; receiving test feedback data sent by the second node, wherein the test feedback data indicates the receiving time of the second node for the test data; determining network transmission efficiency between the first node and the second node based on the size of the test data, the sending time of the test data and the receiving time of the test data;
determining a first data splitting reference matched with the first network transmission condition;
splitting the first target data according to the first data splitting reference to obtain at least one first splitting data;
and respectively sending the at least one first split data to the second node so that the second node synthesizes the first target data based on the at least one first split data to deliver upper-layer processing.
CN201910348814.7A 2019-04-28 2019-04-28 Block chain-based data transmission method and device and electronic equipment Active CN110071876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910348814.7A CN110071876B (en) 2019-04-28 2019-04-28 Block chain-based data transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910348814.7A CN110071876B (en) 2019-04-28 2019-04-28 Block chain-based data transmission method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110071876A CN110071876A (en) 2019-07-30
CN110071876B true CN110071876B (en) 2023-04-28

Family

ID=67369229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910348814.7A Active CN110071876B (en) 2019-04-28 2019-04-28 Block chain-based data transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110071876B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111211876B (en) * 2020-01-02 2021-10-12 支付宝(杭州)信息技术有限公司 Method and device for sending response message aiming at data request and block chain system
CN113835990B (en) * 2020-06-23 2024-01-30 中科寒武纪科技股份有限公司 Detection method, detection device, computer equipment and storage medium
CN111541789A (en) 2020-07-08 2020-08-14 支付宝(杭州)信息技术有限公司 Data synchronization method and device based on block chain all-in-one machine
CN112492002B (en) 2020-07-08 2023-01-20 支付宝(杭州)信息技术有限公司 Transaction forwarding method and device based on block chain all-in-one machine
CN113726875B (en) 2020-07-08 2024-06-21 支付宝(杭州)信息技术有限公司 Transaction processing method and device based on blockchain all-in-one machine
CN111539829B (en) 2020-07-08 2020-12-29 支付宝(杭州)信息技术有限公司 To-be-filtered transaction identification method and device based on block chain all-in-one machine
CN113438219B (en) * 2020-07-08 2023-06-02 支付宝(杭州)信息技术有限公司 Playback transaction identification method and device based on blockchain all-in-one machine
CN111934990B (en) 2020-09-25 2021-02-09 支付宝(杭州)信息技术有限公司 Message transmission method and device
CN112417052B (en) * 2020-12-03 2021-08-20 腾讯科技(深圳)有限公司 Data synchronization method, device, equipment and storage medium in block chain network
CN113507480B (en) * 2021-07-23 2023-10-27 北京众享比特科技有限公司 Network equipment, gateway equipment and system and inter-network data transmission and reporting method
CN113573309B (en) * 2021-09-24 2021-12-10 国网浙江省电力有限公司杭州供电公司 Energy data processing method and device
CN114157670A (en) * 2021-11-05 2022-03-08 支付宝(杭州)信息技术有限公司 Message transmission method and device
CN114157716B (en) * 2021-12-02 2024-08-27 深圳前海微众银行股份有限公司 Block chain-based data processing method and device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107113901B (en) * 2014-11-07 2021-02-19 诺基亚技术有限公司 Data forwarding support in dual connectivity
CN108809517A (en) * 2018-05-22 2018-11-13 泰康保险集团股份有限公司 Information acquisition method and device in a kind of block chain network
CN108738078A (en) * 2018-06-25 2018-11-02 北斗地网(重庆)科技集团有限公司 A kind of transmission side data subtraction unit, equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110071876A (en) 2019-07-30

Similar Documents

Publication Publication Date Title
CN110071876B (en) Block chain-based data transmission method and device and electronic equipment
CN109417691B (en) Bluetooth cluster online upgrading method and device
CN110049087B (en) Credibility verification method, system, device and equipment of alliance chain
US20160358135A1 (en) Digital currency management method and digital currency node apparatus
CN110570196A (en) Transaction data processing method and device, terminal equipment and storage medium
CN105430711B (en) Transmission method, device and the equipment of information
CN110377440B (en) Information processing method and device
CN110022345B (en) Method, system, device and equipment for processing request in alliance chain
CN110046901B (en) Credibility verification method, system, device and equipment of alliance chain
CN113259479A (en) Data processing method and equipment
CN110928880A (en) Data processing method, device, terminal and medium based on block chain
CN109067746B (en) Communication method and device between client and server
US20230007873A1 (en) Management Method and Apparatus for System Configuration Independent of Smart Contract for Blockchain
CN104050054A (en) Processing method for installation package installation failure and cause determining method and device
CN109600254B (en) Method for generating full-link log and related system
CN111447226A (en) Method and device for detecting DNS hijacking
CN104320766A (en) Spam short message identification method, device and equipment
CN115987685B (en) Cloud service data sharing method and system
CN111275417A (en) Transaction endorsement processing method, server and computer readable storage medium
CN113157603B (en) Data reading device, method, chip, computer device and storage medium
CN111884808B (en) Method and device for preventing transaction cross-chain replay and electronic equipment
CN114422245A (en) Method and system for generating penetration task, electronic equipment and storage medium
CN103379157A (en) Method, device, equipment and system for transmitting information
CN113220453A (en) Method and device for initiating transaction in blockchain system
KR101932325B1 (en) Security system of user input information and security method of user input information using the security system

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
TA01 Transfer of patent application right

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240929

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after: Ant Chain Technology Co.,Ltd.

Country or region after: Singapore

Address before: P.O. Box 31119, grand exhibition hall, hibiscus street, 802 West Bay Road, Grand Cayman, Cayman Islands

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: Cayman Islands