CN110493020A - Broadcast message transmission method, device and system based on block chain technology - Google Patents
Broadcast message transmission method, device and system based on block chain technology Download PDFInfo
- Publication number
- CN110493020A CN110493020A CN201910606318.7A CN201910606318A CN110493020A CN 110493020 A CN110493020 A CN 110493020A CN 201910606318 A CN201910606318 A CN 201910606318A CN 110493020 A CN110493020 A CN 110493020A
- Authority
- CN
- China
- Prior art keywords
- broadcast message
- node
- block chain
- source node
- packet
- 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.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 80
- 238000005516 engineering process Methods 0.000 title claims abstract description 36
- 238000000034 method Methods 0.000 title claims abstract description 29
- 241000238876 Acari Species 0.000 claims abstract description 21
- 238000004891 communication Methods 0.000 abstract description 19
- 230000006872 improvement Effects 0.000 abstract description 4
- 238000012545 processing Methods 0.000 description 6
- 238000006424 Flood reaction Methods 0.000 description 5
- 238000004422 calculation algorithm Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000012856 packing Methods 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 230000006837 decompression Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012857 repacking Methods 0.000 description 2
- 241000700605 Viruses Species 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/32—Flooding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/126—Applying verification of the received information the source of the received data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to block structure technical field of improvement, more particularly to a kind of broadcast message transmission method based on block chain technology, device, computer equipment and storage medium, it include: that each system that will mutually communicate constructs shared block chain as node, the node receives the broadcast message that each system issues;When the arbitrary node on the shared block chain generates broadcast message, using the node as source node, broadcast message addition source node is marked and is packaged into broadcast message packet and is transmitted to adjacent node;After adjacent node receives the broadcast message packet, transmitted to the vertex ticks of the broadcast message packet addition itself, and after being repacked to broadcast message packet to adjacent node;Until being transferred to all nodes of the shared block chain;The system being in communication with each other is carried out message propagation by this programme, and the reliability and authenticity in information source have also been ensured while reducing hardware cost.
Description
Technical field
The present invention relates to block structure technical field of improvement more particularly to a kind of broadcast message biographies based on block chain technology
Transmission method, device, computer equipment and storage medium.
Background technique
With the development of science and technology, the level of IT application is continuously improved, demand of the people to information also constantly increases, correspondingly,
The propagation of information is carried out between each system also by different modes.Currently, the mode that information is not transmitted between homologous ray is main
Or communication connection, such as subscribing mode, push mode are carried out by middleware.
But during information is transmitted to another system from a certain system by middleware, it is easy to be attacked by network
It hits, especially middleware, thus can not ensure the reliability and authenticity in information source;In addition, the quantity when system reaches one
When quantitative grade, hardware supported and consider that the cost of message entanglement can all correspondingly increase that the middleware in traditional mode needs.
Summary of the invention
The purpose of the present invention is intended at least can solve above-mentioned one of technological deficiency, especially leads between system in the prior art
It crosses middleware and carries out message propagation, can not also ensure the reliability in information source and the skill of authenticity while improving hardware cost
Art defect.
The present invention provides a kind of broadcast message transmission method based on block chain technology, includes the following steps:
Shared block chain is constructed using each system mutually communicated as node, the node receives what each system issued
Broadcast message;
When the arbitrary node on the shared block chain generates broadcast message, using the node as source node, to described wide
Broadcast message addition source node mark and be packaged into broadcast message wrap transmitted to adjacent node;
After adjacent node receives the broadcast message packet, the vertex ticks of itself is added to the broadcast message packet,
And it is transmitted after being repacked to broadcast message packet to adjacent node;Until being transferred to the shared block chain
All nodes.
The step of each system mutually communicated is constructed into shared block chain as node in one of the embodiments,
Include:
Obtain several systems for mutually communicating, and calculate the network distance between each system, obtain most short network away from
From;
Shared block chain is constructed using each system as node according to the most short network distance.
In one of the embodiments, when the arbitrary node on the shared block chain generates broadcast message, with the section
Point is source node, marks to broadcast message addition source node and is packaged into broadcast message packet and transmits to adjacent node
The step of after, further includes:
The data volume of the broadcast message of the source node publication is obtained, and it is pre- to judge whether the data volume is greater than data volume
If value;
When the data volume be greater than the data volume preset value when, by it is described broadcast message be divided into be mutually related it is multiple
Sub- message, and be packaged into broadcast message packet after successively marking to each sub- message addition source node and passed to adjacent node
It is defeated.
In one of the embodiments, when the arbitrary node on the shared block chain generates broadcast message, with the section
Point is source node, marks to broadcast message addition source node and is packaged into broadcast message packet and transmits to adjacent node
The step of after, further includes:
The message frequency of the broadcast message of the source node publication is obtained, and judges whether the message frequency is greater than frequency
Preset value;
When the message frequency is greater than the predetermined frequency value, the source node is labeled as suspect node, and refuse
The broadcast message beyond predetermined frequency value range of the source node publication.
It in one of the embodiments, include destination node in the shared block chain, described in the destination node reception
The broadcast message packet that other nodes are sent in shared block chain;
Until after the step of being transferred to all nodes of the shared block chain, further includes:
Whether the storage state for detecting destination node in the shared block chain updates, when the storage state updates,
Determine the storage information updated whether be source node transmission broadcast message packet.
Determine in one of the embodiments, the storage information updated whether be source node transmission broadcast message packet
The step of, comprising:
The storage information updated is obtained, and searches received broadcast message packet in the storage information;
It is traced to the source according to the source node label in the packet that broadcasts the message broadcast message packet, to determine update
Whether storage information is broadcast message packet that the source node is sent.
It further include in one of the embodiments, network transaction information in the broadcast message packet;
After determining the step of whether the storage information updated is the broadcast message packet of the source node transmission, also wrap
It includes:
Obtain the network transaction information of the destination node and the network trading of the node adjacent with the destination node
Information;
It will compare between the network transaction information of the destination node and the network transaction information of the adjacent node
It is right, and obtain comparison result;
The authenticity of the broadcast message is determined according to the comparison result.
The present invention also provides a kind of broadcast message transmission devices based on block chain technology comprising:
Block chain building module, for constructing shared block chain, the section for each system mutually communicated as node
Point receives the broadcast message that each system issues;
First transmission module, for when on the shared block chain arbitrary node generate broadcast message when, with the node
For source node, broadcast message addition source node is marked and is packaged into broadcast message packet and is transmitted to adjacent node;
Second transmission module, after receiving the broadcast message packet for adjacent node, to the broadcast message Bao Tian
Add the vertex ticks of itself, and is transmitted after being repacked to broadcast message packet to adjacent node;Until passing
Defeated all nodes to the shared block chain.
The present invention also provides a kind of computer equipments, it is characterised in that: including memory and processor, the memory
In be stored with computer-readable instruction, when the computer-readable instruction is executed by the processor, so that the processor is held
Step in broadcast message transmission method of the row based on block chain technology as described in any one of above-described embodiment.
The present invention also provides a kind of computer storage medium, it is stored in the computer storage medium computer-readable
Instruction, when the computer-readable instruction is executed by one or more processors, so that one or more processors execute as above
The step of stating the broadcast message transmission method based on block chain technology described in any one of embodiment.
The above-mentioned broadcast message transmission method based on block chain technology, device, computer equipment and storage medium, will be mutual
Each system of communication constructs shared block chain as node, and the node receives the broadcast message that each system issues;Work as institute
When stating the arbitrary node generation broadcast message on shared block chain, using the node as source node, to the broadcast message addition source
Vertex ticks and be packaged into broadcast message packet transmitted to adjacent node;Adjacent node receives the broadcast message packet
Afterwards, to the vertex ticks of the broadcast message packet addition itself, and broadcast message packet is carried out repacking rear Xiang Xianglin
Node transmitted;Until being transferred to all nodes of the shared block chain.
By each system for needing mutually to communicate all as the node in shared block chain, each system issues this programme
Message data be packaged into chain, share the resource in block chain;It, will be in shared block chain when needing extensive broadcast message
The arbitrary node of broadcast message is generated as source node, and by the source node by broadcast message transmission to adjacent node, directly
All nodes extremely by the broadcast message transmission into shared block chain, this broadcast mechanism based on the algorithm that floods, can be fast
The message that system issues is spread to all nodes in shared block chain by speed, realizes the communication between big order of magnitude system;Separately
Outside, among the nodes transmit during, the vertex ticks in source node and each adjacent node can be packaged together into
Chain, and then can trace to the source the broadcast message, to verify the authenticity of broadcast message, the message for effectively avoiding system from issuing
A possibility that being tampered.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the applied environment figure of the embodiment of the present invention;
Fig. 2 is the broadcast message transmission method flow chart based on block chain technology of one embodiment;
Fig. 3 is the broadcast message transmission apparatus structure schematic diagram based on block chain technology of one embodiment;
Fig. 4 is the schematic diagram of internal structure of the computer equipment of one embodiment.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their combination.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
Refering to what is shown in Fig. 1, Fig. 1 is the applied environment figure of the embodiment of the present invention;In the present embodiment, technical solution of the present invention
It can be based on being realized on block chain 110, as shown in figure 1, different user can pass through the forms such as App installation visitor on its terminal device
Family end, the communication system 120 mutually communicated in each client are big when needing respectively as each node in block chain 110
When scale broadcasts the message, the message that communication system 120 is issued is packaged into chain to realize correlation function by block chain 110;
In embodiments of the present invention, when communication system 120 a certain in block chain 110 generates the message for needing to broadcast, by the communication system
Corresponding node unite as source node, all nodes by the source node by broadcast message transmission into block chain 110, with reality
Existing message quickly, the function of accurate delivery;Here terminal device can be smart phone, tablet computer, the end PC etc., but not
It is confined to this.
In one embodiment, as shown in Fig. 2, the broadcast message based on block chain technology that Fig. 2 is one embodiment passes
Transmission method flow chart proposes a kind of broadcast message transmission method based on block chain technology in the present embodiment, specifically can wrap
Include following steps:
S110: shared block chain is constructed using each system mutually communicated as node, the node receives each system
The broadcast message of sending.
In practical applications, the system for needing mutually to communicate is more and more, in order to preferably guarantee to disappear between each system
The efficiency and accuracy rate of transmitting are ceased, thus in this step, several systems mutually communicated are constructed jointly as node
One shared block chain, each node can receive the broadcast message of the sending of the system in the node.
For example, in the case where previous, server is obtained firstly the need of by message sender when needing to push a piece of news
The PUSH message is taken, the PUSH message is pushed into message receiver then through third-party platform or other middlewares, this
The processing mode for needing the centralization of the centralized processings such as server and middleware is planted, can not ensure the authenticity of message, when need
When facing the communication system of certain amount grade, message quickly and accurately can not be transmitted to message by this kind of processing mode
Recipient.
And in the present solution, using the system mutually communicated as the node in shared block chain, for example, above-mentioned push away news
It send in mode, can regard message sender and at least one message receiver communicated with the message sender as shared region
Node in block chain, node corresponding with the message sender is as source node, node conduct corresponding with the message receiver
The message that the system that destination node, source node and destination node all can receive the node issues, thus opposite certain amount grade
When intersystem communications, the transmission of message is carried out by the shared block chain of this programme, can fast and accurately be broadcast out message
It goes.
The quantity of above-mentioned source node and destination node can be increased or be deleted according to actual needs, not limited herein
System, above-mentioned PUSH message are only an example of this programme, and this programme applies also for other message for needing to broadcast, at this
In with no restrictions.
In addition, the broadcast message in this programme refers to the message for needing to carry out wide-scale distribution, not in general sense
Message through broadcast communication.
S120: when the arbitrary node on the shared block chain generates broadcast message, using the node as source node, to institute
State broadcast message addition source node mark and be packaged into broadcast message wrap transmitted to adjacent node.
In this step, each system can send message, correspond in shared block chain, i.e., arbitrary node can produce extensively
Broadcast message;Such as, relationship trading or information transmission are carried out in the client application that user can install on its computer or mobile phone,
The corresponding client application of the user is a certain node for generating message in shared block chain, which is considered as source section
Point, which carries out relationship trading in the application program of its client or another party of information transmission is then used as in addition to source node
Other nodes in shared block chain, other nodes can quickly receive user's hair by sharing the transmission mode in block chain
The Transaction Information etc. sent.
Certainly, it before the message of the source node is independently sent to other nodes, needs to add the message to be sent
It is packaged after adding source node to mark, forms broadcast message packet, be then transmitted to the broadcast message packet adjacent with the source node
Node in.
Above-mentioned to mark to sent message addition source node, which marks the time that can be the transmission message
Stamp, encryption information etc. can search source node by source node label, and verify the authenticity of message in the source node
Deng.
S130: after adjacent node receives the broadcast message packet, to the node of the broadcast message packet addition itself
Label, and transmitted after being repacked to broadcast message packet to adjacent node;Until being transferred to described shared
All nodes of block chain.
In this step, then broadcast message addition source node is marked and is packaged into broadcast in above-mentioned steps S120
Message package is transmitted to adjacent node, can be by the broadcast message of packing when adjacent node receives the broadcast message packet
Packet is first decompressed, and is repacked after the vertex ticks of itself is then added to the broadcast message after the decompression, adjacent node
Other in addition to broadcast message packet after repacking again sends the respective node come except transmission broadcast message packet to are adjacent
Node, until all nodes of the broadcast message transmission into shared block chain.
Above-mentioned all nodes by broadcast message transmission into shared block chain, refer to the broadcast for sending the source node
Message is transmitted to the other systems of the intercommunication of system corresponding with the source node, the corresponding node of other systems here
Also referred to as destination node.
In addition, vertex ticks here and above-mentioned source node label belong to same type of label, which can be with
It is timestamp, the encryption information etc. for receiving the broadcast message, source node can be traced back to by the vertex ticks, and verifying is extensively
Broadcast whether message is tampered in transmission process.
In the present solution, adding the vertex ticks of itself after the broadcast message packet that source node is sent is decompressed, then addition is saved
Broadcast message after point label re-starts packing, to transmit it to next node adjacent thereto, under so continuing
It goes, until all nodes that the packet that will broadcast the message is transmitted in shared block chain.Such broadcast mode based on the algorithm that floods, no
It is required that maintenance and relevant router-level topology, require nothing more than and receive the node of information and forward data packet in the form broadcasted, allows data
Packet obtains fast-forwarding.
The above-mentioned broadcast message transmission method based on block chain technology is constructed each system mutually communicated as node
Shared block chain, the node receive the broadcast message that each system issues;When the arbitrary node on the shared block chain produces
When raw broadcast message, using the node as source node, broadcast message addition source node is marked and is packaged into broadcast message packet
It is transmitted to adjacent node;After adjacent node receives the broadcast message packet, certainly to the addition of broadcast message packet
The vertex ticks of body, and transmitted after being repacked to broadcast message packet to adjacent node;Until being transferred to
All nodes of the shared block chain.
By each system for needing mutually to communicate all as the node in shared block chain, each system issues this programme
Message data be packaged into chain, share the resource in block chain;It, will be in shared block chain when needing extensive broadcast message
The arbitrary node of broadcast message is generated as source node, and by the source node by broadcast message transmission to adjacent node, directly
All nodes extremely by the broadcast message transmission into shared block chain, this broadcast mechanism based on the algorithm that floods, can be fast
The message that system issues is spread to all nodes in shared block chain by speed, realizes the communication between big order of magnitude system;Separately
Outside, among the nodes transmit during, the vertex ticks in source node and each adjacent node can be packaged together into
Chain, and then can trace to the source the broadcast message, to verify the authenticity of broadcast message, the message for effectively avoiding system from issuing
A possibility that being tampered.
In one embodiment, the step of each system mutually communicated being constructed shared block chain as node, can be with
Include:
(1) several systems mutually communicated are obtained, and calculate the network distance between each system, obtain most short network
Distance;
(2) shared block chain is constructed for each system as node according to the most short network distance.
In the present embodiment, in order to which the message for allowing system to issue quickly is spread among the system being in communication with each other therewith, share
Network distance in block chain between each node is the smaller the better;Information is carried out by the smallest network distance between system two-by-two
Transmission can guarantee the rate of message transmission.
Thus, when the system for being in communication with each other several constructs shared block chain as node, each system is calculated first
Network distance between system to obtain most short network distance between each system, and is realized altogether according to this most short network distance
The allocation optimum of each node in block chain is enjoyed, provides efficient solution for the transmitting of follow-up system message.
In one embodiment, when the arbitrary node on the shared block chain generates broadcast message, it is with the node
Source node marks and is packaged into the step that broadcast message packet is transmitted to adjacent node to the broadcast message addition source node
After rapid, can also include:
(1) data volume of the broadcast message of the source node publication is obtained, and judges whether the data volume is greater than data
Measure preset value;
(2) when the data volume is greater than the data volume preset value, the broadcast message is divided into and is mutually related
Multiple sub- message, and be packaged into broadcast message packet after successively marking to each sub- message addition source node and carried out to adjacent node
Transmission.
In the present embodiment, in the broadcast message autonomous type for generating source node to adjacent node-node transmission during,
The data volume of the broadcast message issued to system corresponding in the source node is needed to be monitored, to judge the number of system sending
Whether it is more than preset value according to amount, avoids the message when the publication of a certain system excessive, causes to disappear during message is transmitted
The phenomenon that ceasing entanglement.
For example, the data volume setting data volume preset value issued to system in above-mentioned source node is 10Mb/s, when the source is saved
When the data volume that point issues is more than 10Mb/s, that is, the data volume for assert that the source node is sent is excessive, is needed at this time by excessive number
It is divided into multiple sub- message that are mutually related according to amount, and is packaged after successively adding source node label to each sub- message, this
Sample can successively transmit the broadcast message packet that is mutually related, the number for avoiding disposable transmitted data amount excessive into shared block chain
According to packet;Also, it, can be according to multiple broadcast when message reciever receives the broadcast message packet formed after multiple sub- message are packaged
Relevance between message package determines whether the broadcast message packet is tampered or omits.
It should be noted that the above-mentioned message issued to correspondence system in source node carries out the setting of data volume preset value,
The setting of data volume preset value can also be carried out to the message that system corresponding in other nodes in shared block chain is issued, and each
The size of data of data volume preset value may be the same or different in node, and the concrete condition depending on the system is set, In
This is with no restrictions.
In one embodiment, when the arbitrary node on the shared block chain generates broadcast message, it is with the node
Source node marks and is packaged into the step that broadcast message packet is transmitted to adjacent node to the broadcast message addition source node
After rapid, can also include:
(1) message frequency of the broadcast message of the source node publication is obtained, and judges whether the message frequency is greater than
Predetermined frequency value;
(2) when the message frequency is greater than the predetermined frequency value, the source node is labeled as suspect node, and refuse
The broadcast message beyond predetermined frequency value range of the source node publication described absolutely.
In the present embodiment, in the broadcast message autonomous type for generating source node to adjacent node-node transmission during,
It also needs the message frequency for the broadcast message issued to source node to be monitored, and judges whether the message frequency of monitoring is greater than frequency
Rate preset value causes altogether in order to avoid sending excessively frequent message when a certain system is by malicious attack or virus infraction
Enjoy in block chain the corresponding system of other nodes also by malicious attack the phenomenon that generation.
For example, it is 20 upper limits per hour that the source node, which is arranged, to issue the predetermined frequency value of broadcast message, when monitoring this
When the frequency that source node sends broadcast message is more than the preset value, which is labeled as suspect node, this is suspicious receiving
When the broadcast message that node issues, selection rejection exceeds the broadcast message of the predetermined frequency value range.
In addition, when continuing for some time interior monitoring suspect node, and find the message frequency for the broadcast message that it sends
When beyond predetermined frequency value, the suspect node of the node can be marked and be converted to abnormal nodes label, and refuse to transmit all be somebody's turn to do
The broadcast message that abnormal nodes are sent, so that convenient checked and corrected to each node in shared block chain.
It in one embodiment, include destination node in the shared block chain, the destination node receives described shared
The broadcast message packet that other nodes are sent in block chain;Until be transferred to the shared block chain all nodes the step of it
Afterwards, can also include:
(1) whether the storage state for detecting destination node in the shared block chain updates, when the storage state updates
When, the storage information of update is obtained, and received broadcast message packet is searched in the storage information;
(2) it is traced to the source according to the source node label in the broadcast message packet broadcast message packet, to determine more
Whether new storage information is broadcast message packet that the source node is sent.
In the present embodiment, the broadcast message packet that source node is issued is transmitted to all nodes by shared block chain,
In include destination node, which can receive the broadcast message packet that source node passes through shared block chain transmission.It needs
Bright, which refers to that corresponding system is the node of message sender, which refers to corresponding system
For the node of message receiver, the number of source node number and destination node here at least one, herein with no restrictions.
After the broadcast message packet that source node is sent is transmitted to all nodes in shared block chain, need to destination node
In storage state detected, so as to check destination node whether receive source node transmission broadcast message packet.
Wherein, when the storage state of destination node updates, the storage information of update is obtained, and in the storage information
Search received broadcast message packet, storage information here includes the broadcast message packet of upper node transmission, and with this
Broadcast message wraps corresponding receiving time, storing path etc..
After finding received broadcast message packet in the storage information in destination node, need to the broadcast message packet
It is decompressed, searches the source node for including in the broadcast message packet source node label all into destination node, other nodes
Label etc. can trace to the source to received broadcast message by source node label, to determine in the destination node more
New storage information is the broadcast message packet that the source node is sent, the possibility for preventing broadcast message to be tampered during transmission
Property.
It in one embodiment, further include network transaction information in the broadcast message packet;Determining the storage letter updated
After the step of whether breath is the broadcast message packet of the source node transmission, can also include:
(1) network of the network transaction information and the node adjacent with the destination node that obtain the destination node is handed over
Easy information;
(2) it will be carried out between the network transaction information of the destination node and the network transaction information of the adjacent node
It compares, and obtains comparison result;
(3) authenticity of the broadcast message is determined according to the comparison result.
In the present embodiment, determine the storage information updated whether be source node transmission broadcast message packet after, can be with
Further the authenticity of the broadcast message packet in destination node is verified.
It specifically, further include having network transaction information in the broadcast message packet, which can be cryptographic Hash
Or other encryption information that can verify that, the network transaction information in the destination node include a upper adjacent node cryptographic Hash or
Other encryption information that can verify that, the network transaction information of a upper adjacent node include adjacent with a upper adjacent node another
The cryptographic Hash or other encryption information that can verify that of one node.
Therefore, the network transaction information of a upper adjacent node is obtained, and the network trading of a upper adjacent node is believed
It is compared between breath and the network transaction information of the destination node, can determine that the destination node is received according to comparison result
Broadcast message whether be tampered, also further demonstrate the accuracy that message is transmitted in shared block chain.
In one embodiment, as shown in figure 3, the broadcast message based on block chain technology that Fig. 3 is one embodiment passes
Defeated apparatus structure schematic diagram provides a kind of broadcast message transmission device based on block chain technology in the present embodiment comprising:
Block chain building module 210, the first transmission module 220, the second transmission module 230, in which:
Block chain building module 210, it is described for constructing shared block chain for each system mutually communicated as node
Node receives the broadcast message that each system issues;
In practical applications, the system for needing mutually to communicate is more and more, in order to preferably guarantee to disappear between each system
The efficiency and accuracy rate of transmitting are ceased, thus in this module, several systems mutually communicated are constructed jointly as node
One shared block chain, each node can receive the broadcast message of the sending of the system in the node.
For example, in the case where previous, server is obtained firstly the need of by message sender when needing to push a piece of news
The PUSH message is taken, the PUSH message is pushed into message receiver then through third-party platform or other middlewares, this
The processing mode for needing the centralization of the centralized processings such as server and middleware is planted, can not ensure the authenticity of message, when need
When facing the communication system of certain amount grade, message quickly and accurately can not be transmitted to message by this kind of processing mode
Recipient.
And in the present solution, using the system mutually communicated as the node in shared block chain, for example, above-mentioned push away news
It send in mode, can regard message sender and at least one message receiver communicated with the message sender as shared region
Node in block chain, node corresponding with the message sender is as source node, node conduct corresponding with the message receiver
The message that the system that destination node, source node and destination node all can receive the node issues, thus opposite certain amount grade
When intersystem communications, the transmission of message is carried out by the shared block chain of this programme, can fast and accurately be broadcast out message
It goes.
The quantity of above-mentioned source node and destination node can be increased or be deleted according to actual needs, not limited herein
System, above-mentioned PUSH message are only an example of this programme, and this programme applies also for other message for needing to broadcast, at this
In with no restrictions.
In addition, the broadcast message in this programme refers to the message for needing to carry out wide-scale distribution, not in general sense
Message through broadcast communication.
First transmission module 220, for when on the shared block chain arbitrary node generate broadcast message when, with the section
Point is source node, mark to broadcast message addition source node and is packaged into broadcast the message to wrap and passes to adjacent node
It is defeated.
In this module, each system can send message, correspond in shared block chain, i.e., arbitrary node can produce extensively
Broadcast message;Such as, relationship trading or information transmission are carried out in the client application that user can install on its computer or mobile phone,
The corresponding client application of the user is a certain node for generating message in shared block chain, which is considered as source section
Point, which carries out relationship trading in the application program of its client or another party of information transmission is then used as in addition to source node
Other nodes in shared block chain, other nodes can quickly receive user's hair by sharing the transmission mode in block chain
The Transaction Information etc. sent.
Certainly, it before the message of the source node is independently sent to other nodes, needs to add the message to be sent
It is packaged after adding source node to mark, forms broadcast message packet, be then transmitted to the broadcast message packet adjacent with the source node
Node in.
Above-mentioned to mark to sent message addition source node, which marks the time that can be the transmission message
Stamp, encryption information etc. can search source node by source node label, and verify the authenticity of message in the source node
Deng.
Second transmission module 230 wraps the broadcast message after receiving the broadcast message packet for adjacent node
The vertex ticks of itself is added, and is transmitted after being repacked to broadcast message packet to adjacent node;Until
It is transferred to all nodes of the shared block chain.
In this module, then broadcast message addition source node is marked and is beaten in above-mentioned first transmission module 220
Broadcast message packet is bundled into be transmitted to adjacent node, it, can be by packing when adjacent node receives the broadcast message packet
Broadcast message packet is first decompressed, and is repacked after the vertex ticks of itself is then added to the broadcast message after the decompression, phase
Adjacent node will repack again after broadcast message packet send to it is respective in addition to sending the node that broadcast message packet comes
Other adjacent nodes, until all nodes of the broadcast message transmission into shared block chain.
Above-mentioned all nodes by broadcast message transmission into shared block chain, refer to the broadcast for sending the source node
Message is transmitted to the other systems of the intercommunication of system corresponding with the source node, the corresponding node of other systems here
Also referred to as destination node.
In addition, vertex ticks here and above-mentioned source node label belong to same type of label, which can be with
It is timestamp, the encryption information etc. for receiving the broadcast message, source node can be traced back to by the vertex ticks, and verifying is extensively
Broadcast whether message is tampered in transmission process.
In the present solution, adding the vertex ticks of itself after the broadcast message packet that source node is sent is decompressed, then addition is saved
Broadcast message after point label re-starts packing, to transmit it to next node adjacent thereto, under so continuing
It goes, until all nodes that the packet that will broadcast the message is transmitted in shared block chain.Such broadcast mode based on the algorithm that floods, no
It is required that maintenance and relevant router-level topology, require nothing more than and receive the node of information and forward data packet in the form broadcasted, allows data
Packet obtains fast-forwarding.
The above-mentioned broadcast message transmission device based on block chain technology is constructed each system mutually communicated as node
Shared block chain, the node receive the broadcast message that each system issues;When the arbitrary node on the shared block chain produces
When raw broadcast message, using the node as source node, broadcast message addition source node is marked and is packaged into broadcast message packet
It is transmitted to adjacent node;After adjacent node receives the broadcast message packet, certainly to the addition of broadcast message packet
The vertex ticks of body, and transmitted after being repacked to broadcast message packet to adjacent node;Until being transferred to
All nodes of the shared block chain.
By each system for needing mutually to communicate all as the node in shared block chain, each system issues this programme
Message data be packaged into chain, share the resource in block chain;It, will be in shared block chain when needing extensive broadcast message
The arbitrary node of broadcast message is generated as source node, and by the source node by broadcast message transmission to adjacent node, directly
All nodes extremely by the broadcast message transmission into shared block chain, this broadcast mechanism based on the algorithm that floods, can be fast
The message that system issues is spread to all nodes in shared block chain by speed, realizes the communication between big order of magnitude system;Separately
Outside, among the nodes transmit during, the vertex ticks in source node and each adjacent node can be packaged together into
Chain, and then can trace to the source the broadcast message, to verify the authenticity of broadcast message, the message for effectively avoiding system from issuing
A possibility that being tampered.
Specific restriction about the broadcast message transmission device based on block chain technology may refer to above for being based on
The restriction of the broadcast message transmission method of block chain technology, details are not described herein.The above-mentioned broadcast message based on block chain technology
Modules in transmitting device can be realized fully or partially through software, hardware and combinations thereof.Above-mentioned each module can be hard
Part form is embedded in or independently of in the processor in terminal device, can also be stored in depositing in terminal device in a software form
In reservoir, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment it is proposed that a kind of computer equipment, computer equipment include memory, processor and storage
On a memory and the computer program that can run on a processor, processor realize any of the above-described reality when executing computer program
The step of applying the broadcast message transmission method based on block chain technology of example.
As shown in figure 4, Fig. 4 is the schematic diagram of internal structure of the computer equipment of one embodiment.The computer equipment 310
Including processor 314, non-volatile memory medium 315, memory 311 and the network interface connected by system bus 313
312.Wherein, the non-volatile memory medium 315 of the computer equipment 310 is stored with operating system 317 and computer program
316, when which is executed by processor 314, processor 314 may make to realize the broadcast based on block chain technology
Method for message transmission.The processor 314 of the computer equipment 310 supports entire computer for providing calculating and control ability
The operation of equipment 310.It is stored with computer program 316 in the memory 311 of the computer equipment 310, the computer program 316
When being executed by processor 314, processor 314 may make to execute the broadcast message transmission method based on block chain technology.The calculating
The network interface 312 of machine equipment 310 is used for and mobile terminal connection communication.
It will be understood by those skilled in the art that structure shown in Fig. 4, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment it is proposed that a kind of computer storage medium, meter is stored in the computer storage medium
Calculation machine readable instruction, when which is executed by one or more processors, so that one or more processors are held
The step of broadcast message transmission method based on block chain technology of any of the above-described embodiment of row.
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of broadcast message transmission method based on block chain technology, which comprises the steps of:
Shared block chain is constructed using each system mutually communicated as node, the node receives the broadcast that each system issues
Message;
When the arbitrary node on the shared block chain generates broadcast message, using the node as source node, disappear to the broadcast
Breath addition source node marks and is packaged into broadcast message packet and transmitted to adjacent node;
After adjacent node receives the broadcast message packet, the vertex ticks of itself is added to the broadcast message packet, and right
The broadcast message packet is transmitted after being repacked to adjacent node;Until being transferred to the institute of the shared block chain
There is node.
2. the broadcast message transmission method according to claim 1 based on block chain technology, which is characterized in that by phase intercommunication
The step of each system of news constructs shared block chain as node, comprising:
Several systems mutually communicated are obtained, and calculate the network distance between each system, obtain most short network distance;
Shared block chain is constructed using each system as node according to the most short network distance.
3. the broadcast message transmission method according to claim 1 based on block chain technology, which is characterized in that when described total
When enjoying the arbitrary node generation broadcast message on block chain, using the node as source node, source node is added to the broadcast message
It marks and is packaged into after the step of broadcast message packet is transmitted to adjacent node, further includes:
The data volume of the broadcast message of the source node publication is obtained, and judges whether the data volume is default greater than data volume
Value;
When the data volume is greater than the data volume preset value, the broadcast message is divided into multiple sons that are mutually related and is disappeared
Breath, and be packaged into broadcast message packet after successively marking to each sub- message addition source node and transmitted to adjacent node.
4. the broadcast message transmission method according to claim 3 based on block chain technology, which is characterized in that when described total
When enjoying the arbitrary node generation broadcast message on block chain, using the node as source node, source node is added to the broadcast message
It marks and is packaged into after the step of broadcast message packet is transmitted to adjacent node, further includes:
The message frequency of the broadcast message of the source node publication is obtained, and judges whether the message frequency is greater than predetermined frequency
Value;
When the message frequency is greater than the predetermined frequency value, the source node is labeled as suspect node, and described in refusal
The broadcast message beyond predetermined frequency value range of source node publication.
5. the broadcast message transmission method according to claim 1 based on block chain technology, which is characterized in that described shared
It include destination node in block chain, the destination node receives the broadcast message that other nodes are sent in the shared block chain
Packet;
Until after the step of being transferred to all nodes of the shared block chain, further includes:
Whether the storage state for detecting destination node in the shared block chain updates, and when the storage state updates, determines
Whether the storage information of update is broadcast message packet that the source node is sent.
6. the broadcast message transmission method according to claim 5 based on block chain technology, which is characterized in that determine and update
Storage information the step of whether being the broadcast message packet that the source node is sent, comprising:
The storage information updated is obtained, and searches received broadcast message packet in the storage information;
It is traced to the source according to the source node label in the broadcast message packet broadcast message packet, to determine the storage updated
Whether information is broadcast message packet that the source node is sent.
7. the broadcast message transmission method according to claim 6 based on block chain technology, which is characterized in that the broadcast
It further include network transaction information in message package;
After determining the step of whether the storage information updated is the broadcast message packet of the source node transmission, further includes:
Obtain the network transaction information of the destination node and the network transaction information of the node adjacent with the destination node;
It will be compared between the network transaction information of the destination node and the network transaction information of the adjacent node, and
Obtain comparison result;
The authenticity of the broadcast message is determined according to the comparison result.
8. a kind of broadcast message transmission device based on block chain technology characterized by comprising
Block chain building module, for constructing shared block chain for each system mutually communicated as node, the node is connect
Receive the broadcast message that each system issues;
First transmission module, for when on the shared block chain arbitrary node generate broadcast message when, using the node as source
Node marks broadcast message addition source node and is packaged into broadcast message packet and transmits to adjacent node;
Second transmission module, after receiving the broadcast message packet for adjacent node, certainly to the addition of broadcast message packet
The vertex ticks of body, and transmitted after being repacked to broadcast message packet to adjacent node;Until being transferred to
All nodes of the shared block chain.
9. a kind of computer equipment, it is characterised in that: including memory and processor, being stored with computer in the memory can
Reading instruction, when the computer-readable instruction is executed by the processor, so that the processor executes such as claim 1 to 7
Any one of described in the broadcast message transmission method based on block chain technology the step of.
10. a kind of computer storage medium, it is characterised in that: be stored with computer-readable finger in the computer storage medium
It enables, when the computer-readable instruction is executed by one or more processors, so that one or more processors execute such as right
It is required that the step of broadcast message transmission method based on block chain technology described in any one of 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910606318.7A CN110493020A (en) | 2019-07-05 | 2019-07-05 | Broadcast message transmission method, device and system based on block chain technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910606318.7A CN110493020A (en) | 2019-07-05 | 2019-07-05 | Broadcast message transmission method, device and system based on block chain technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110493020A true CN110493020A (en) | 2019-11-22 |
Family
ID=68546596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910606318.7A Pending CN110493020A (en) | 2019-07-05 | 2019-07-05 | Broadcast message transmission method, device and system based on block chain technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110493020A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111181853A (en) * | 2019-12-30 | 2020-05-19 | 布比(北京)网络技术有限公司 | Pure distributed data exchange method and system based on block chain |
CN111404897A (en) * | 2020-03-06 | 2020-07-10 | 深圳前海达闼云端智能科技有限公司 | Message distribution method and device, storage medium and electronic equipment |
CN111404701A (en) * | 2019-12-16 | 2020-07-10 | 杭州复杂美科技有限公司 | Information broadcasting method, equipment and storage medium |
CN111510309A (en) * | 2020-04-08 | 2020-08-07 | 深圳大学 | Block chain data transmission method, device, equipment and computer readable storage medium |
CN111970724A (en) * | 2020-08-25 | 2020-11-20 | 深圳市大我云读写科技有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN114520733A (en) * | 2021-12-29 | 2022-05-20 | 中国科学院信息工程研究所 | Method and device for data transmission and trusted authentication processing, and electronic equipment |
WO2023160089A1 (en) * | 2022-02-25 | 2023-08-31 | 蚂蚁区块链科技(上海)有限公司 | Message broadcasting method for blockchain network, and blockchain node and blockchain system |
CN117319521A (en) * | 2023-09-21 | 2023-12-29 | 江西省数盾信息技术网络安全研究院有限公司 | Data transmission method and system based on privacy computing network |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106656784A (en) * | 2016-10-14 | 2017-05-10 | 中国银联股份有限公司 | Data stream propagation system and method for block chain network |
CN108880789A (en) * | 2018-05-23 | 2018-11-23 | 众安信息技术服务有限公司 | The anti-fake source tracing method of hardware product, node device and system |
CN109067832A (en) * | 2018-06-27 | 2018-12-21 | 南京百市通数字科技有限公司 | A kind of block chain transmission of transaction data method |
CN109558742A (en) * | 2018-11-16 | 2019-04-02 | 海南新软软件有限公司 | A kind of effectiveness of information detection method and device based on block chain |
-
2019
- 2019-07-05 CN CN201910606318.7A patent/CN110493020A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106656784A (en) * | 2016-10-14 | 2017-05-10 | 中国银联股份有限公司 | Data stream propagation system and method for block chain network |
CN108880789A (en) * | 2018-05-23 | 2018-11-23 | 众安信息技术服务有限公司 | The anti-fake source tracing method of hardware product, node device and system |
CN109067832A (en) * | 2018-06-27 | 2018-12-21 | 南京百市通数字科技有限公司 | A kind of block chain transmission of transaction data method |
CN109558742A (en) * | 2018-11-16 | 2019-04-02 | 海南新软软件有限公司 | A kind of effectiveness of information detection method and device based on block chain |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111404701A (en) * | 2019-12-16 | 2020-07-10 | 杭州复杂美科技有限公司 | Information broadcasting method, equipment and storage medium |
CN111404701B (en) * | 2019-12-16 | 2022-04-05 | 杭州复杂美科技有限公司 | Information broadcasting method, equipment and storage medium |
CN111181853A (en) * | 2019-12-30 | 2020-05-19 | 布比(北京)网络技术有限公司 | Pure distributed data exchange method and system based on block chain |
CN111181853B (en) * | 2019-12-30 | 2022-07-01 | 布比(北京)网络技术有限公司 | Pure distributed data exchange method and system based on block chain |
CN111404897A (en) * | 2020-03-06 | 2020-07-10 | 深圳前海达闼云端智能科技有限公司 | Message distribution method and device, storage medium and electronic equipment |
CN111510309A (en) * | 2020-04-08 | 2020-08-07 | 深圳大学 | Block chain data transmission method, device, equipment and computer readable storage medium |
CN111510309B (en) * | 2020-04-08 | 2022-05-10 | 深圳大学 | Block chain data transmission method, device, equipment and computer readable storage medium |
CN111970724A (en) * | 2020-08-25 | 2020-11-20 | 深圳市大我云读写科技有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN114520733A (en) * | 2021-12-29 | 2022-05-20 | 中国科学院信息工程研究所 | Method and device for data transmission and trusted authentication processing, and electronic equipment |
WO2023160089A1 (en) * | 2022-02-25 | 2023-08-31 | 蚂蚁区块链科技(上海)有限公司 | Message broadcasting method for blockchain network, and blockchain node and blockchain system |
CN117319521A (en) * | 2023-09-21 | 2023-12-29 | 江西省数盾信息技术网络安全研究院有限公司 | Data transmission method and system based on privacy computing network |
CN117319521B (en) * | 2023-09-21 | 2024-04-05 | 江西省数盾信息技术网络安全研究院有限公司 | Data transmission method and system based on privacy computing network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110493020A (en) | Broadcast message transmission method, device and system based on block chain technology | |
CN107078910B (en) | Method, device, node, signature device and system for generating block chain block | |
KR101566883B1 (en) | Network apparatus for requesting data based contents name and method thereof | |
CN112019493B (en) | Identity authentication method, identity authentication device, computer equipment and medium | |
CN109951546B (en) | Transaction request processing method, device, equipment and medium based on intelligent contract | |
JP2017539113A (en) | Interleaving multiple Bluetooth low energy ads | |
US11496290B2 (en) | Blockchain network and finalization method therefor | |
CN112039796B (en) | Data packet transmission method and device, storage medium and electronic equipment | |
CN110377440B (en) | Information processing method and device | |
CN112533202B (en) | Identity authentication method and device | |
US20120011566A1 (en) | System and method for sensor network authentication based on xor chain | |
JP6515932B2 (en) | Round trip delay time measurement system, round trip delay time measurement method, return method, communication device, and program | |
CN113141365B (en) | Distributed micro-service data transmission method, device, system and electronic equipment | |
CN104619040A (en) | Method and system for quickly connecting WIFI equipment | |
CN113742709B (en) | Information processing method and device, readable medium and electronic equipment | |
CN112788060A (en) | Data packet transmission method and device, storage medium and electronic equipment | |
US8832451B2 (en) | Packet source authentication method using single-buffered hash in multicast environment and apparatus for the same | |
CN112231765A (en) | Data transmission method and device, electronic equipment and storage medium | |
CN112134684B (en) | Method for generating hopping pattern, communication method, system and related equipment | |
CN101510872B (en) | Remote customer dialing authentication service client terminal, server and transmission/acceptance method | |
US20120054492A1 (en) | Mobile terminal for sharing resources, method of sharing resources within mobile terminal and method of sharing resources between web server and terminal | |
EP3279800B1 (en) | Network communication method and network communication system | |
CN111343150A (en) | Transaction data transmission method and system based on block chain and related components | |
CN112448921A (en) | Method and device for detecting rear door | |
Xie et al. | Message matching-based greedy behavior detection in delay tolerant networks |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191122 |
|
RJ01 | Rejection of invention patent application after publication |