CN109496407A - Method for message transmission, device and storage medium in block catenary system - Google Patents

Method for message transmission, device and storage medium in block catenary system Download PDF

Info

Publication number
CN109496407A
CN109496407A CN201880002403.6A CN201880002403A CN109496407A CN 109496407 A CN109496407 A CN 109496407A CN 201880002403 A CN201880002403 A CN 201880002403A CN 109496407 A CN109496407 A CN 109496407A
Authority
CN
China
Prior art keywords
server cluster
application server
ring
message
management
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.)
Granted
Application number
CN201880002403.6A
Other languages
Chinese (zh)
Other versions
CN109496407B (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.)
District Chain Tong Network Co Ltd
Original Assignee
District Chain Tong Network 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 District Chain Tong Network Co Ltd filed Critical District Chain Tong Network Co Ltd
Publication of CN109496407A publication Critical patent/CN109496407A/en
Application granted granted Critical
Publication of CN109496407B publication Critical patent/CN109496407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/042Network management architectures or arrangements comprising distributed management centres cooperatively managing the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The present invention relates to method for message transmission, device and the storage mediums in block catenary system, which comprises application server cluster is logically formed to management ring, the management ring is divided into several management ring fragments;Resource Server cluster is logically formed into worker's ring, worker's ring is divided into several worker's ring fragments;The corresponding worker's ring fragment of management ring management by district;The message of block catenary system is sent to the application server cluster of the management ring fragment of management worker's ring fragment by the Resource Server cluster in worker's ring fragment;The application server cluster for running block chain program receives the message of block catenary system, sends the message to the other application server cluster of this management ring fragment;And the application server cluster of peer node each other is sent the message to, the message is sent the other application server cluster of corresponding management ring fragment by the application server cluster of peer node each other.

Description

Method for message transmission, device and storage medium in block catenary system
Technical field
The present invention relates to block chain fields, and in particular to method for message transmission, device in a kind of block catenary system and deposits Storage media.
Background technique
Block chain is the novel of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm Application model, block chain technology are that calculation of knowing together with storing data, using distributed node is verified using block linked data structure Method guarantees the safety of data transmission and access to generate, using by automatized script with more new data, in the way of cryptography The intelligent contract of code composition programs the completely new distributed basis framework and calculation of one kind with operation data.Existing skill In art, the server node in block chain network system is responsible for processing business logical AND simultaneously and manages resource logic, each service The message that device node receives oneself is broadcasted to other server nodes, and higher network delay often leads to message can not be fast Travel to each server node in block chain network system fastly, also, a server node be likely to be received it is multiple The identical message that server node is sent receives duplicate message and consumes a large amount of network bandwidth resources and hardware device money Source, to reduce transmission of news efficiency.
Summary of the invention
To overcome the above technical problem, the problem of especially prior art block catenary system can not efficiently spread news, Spy proposes following technical scheme:
In a first aspect, the present invention provides the information management method in a kind of block catenary system, the block catenary system includes: Ring is managed, is made of several application server clusters, the application server cluster is for running block chain program;Worker Ring is made of several Resource Server clusters, and the Resource Server cluster is for providing resource and forwarding data;It is described to disappear Ceasing transmission method includes:
The management ring is divided by the management ring that several application server clusters are logically formed to cyclic structure Several management ring fragments;Worker's ring that several Resource Server clusters are logically formed to cyclic structure, by the work People's ring is divided into several worker's ring fragments;The corresponding worker's ring fragment of management ring management by district;
The message of block catenary system is sent to management worker's ring point by the Resource Server cluster in worker's ring fragment The application server cluster of the management ring fragment of piece;
The application server cluster of operation block chain program receives the message of the block catenary system, and the message is sent out It send to the other application server cluster of the corresponding management ring fragment of the application server cluster;And it sends a message to The application server cluster of the application server cluster of peer node each other, the peer node each other is sent the message to The other application server cluster of corresponding management ring fragment.
It is further, described that the management ring is divided into several management ring fragments, comprising:
The quantity of application server cluster according to each management ring fragment isThe management ring is divided into A management ring fragment;Wherein, the quantity of the application server cluster is N, describedFor positive integer.
Further, when the application server cluster of the operation block chain program receives disappearing for the block catenary system When breath, which is the head application server cluster for managing ring fragment, along same direction away from the head The distance of application server cluster be 1 toApplication server cluster belong to same management ring fragment.
Further, the message of the Resource Server collection pocket transmission block catenary system in worker's ring fragment is sent to pipe Manage the application server cluster of the management ring fragment of worker's ring fragment, comprising:
Resource Server cluster judges the type of service of the message of block catenary system, and message is carried corresponding type of service It is sent to the application server cluster of the management ring fragment of management worker's ring fragment.
Further, the application server cluster for sending a message to peer node each other, it is described each other to constant pitch The application server cluster of point is sent the message to after the other application server cluster of corresponding management ring fragment, also Include:
The application server cluster stores the message into block, manages the application server cluster on ring for institute It states block and generates block chain.
Second aspect, the present invention provide the message in a kind of block catenary system from the visual angle of single application server cluster Transmission method, comprising:
Application server cluster on management ring receives the Resource Server collection pocket transmission of managed worker's ring fragment The message of block catenary system;
Send the message to the other application server cluster of the corresponding management ring fragment of present application server cluster; And application server cluster with present application server cluster peer node each other is sent the message to, so that described The application server cluster of peer node sends the message to the other application server of corresponding management ring fragment each other Cluster.
Further, when the application server cluster receives the Resource Server cluster of managed worker's ring fragment When sending the message of block catenary system, which is the head application server cluster managed in ring fragment.
Further, the application service sent the message to present application server cluster peer node each other Device cluster, so that the application server cluster of the peer node each other sends the message to corresponding management ring fragment After other application server cluster, further includes:
By message storage into block, with the other application server cluster on management ring by the block generation area Block chain.
The third aspect, the present invention also provides the massage transmission devices in a kind of block catenary system, comprising:
Receiving module: for receiving the block catenary system of the Resource Server collection pocket transmission of managed worker's ring fragment Message;
Transmission module: it is answered for sending the message to corresponding management the other of ring fragment of present application server cluster Use server cluster;And send the message to application server with present application server cluster peer node each other Cluster, so that the application server cluster of the peer node each other sends the message to its of corresponding management ring fragment Its application server cluster.
Fourth aspect, the present invention also provides a kind of computer readable storage medium, the computer readable storage medium On be stored with computer program, the computer program realized when being executed by processor the message in above-mentioned block catenary system transmit Method.
Compared with the prior art, the present invention has the following beneficial effects:
The present invention by by the server cluster in block catenary system according to application server cluster and Resource Server collection Group separates, and is divided into several management ring fragments after application server cluster is logically organized cyclization, by Resource Server cluster Logically it is divided into several worker's ring fragments after group cyclization, the server cluster on ring is able to achieve message point-to-point, point-to-multipoint Transmission, while based on management ring management by district worker ring fragment, management ring fragment to management ring slicing synchronization received by Message is managed the server cluster on ring fragment and received and transmitted message based on each management ring fragment after message, allows pipe Message on reason ring fragment is rapidly transmitted to the application server cluster on management ring, and the message improved in block catenary system passes Pass efficiency;Also, the role of each server cluster on ring be it is identical, each server cluster all can serve as the piece of fragment Head server cluster, so that the fragment after group cyclization can complete more flexiblely point of management ring and worker's ring with dynamic change Piece greatly improves the efficiency of message transmission.
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 an embodiment flow diagram of the method for message transmission in block catenary system of the present invention;
Fig. 2 is the example structure schematic diagram that ring and worker's ring are managed in block catenary system of the present invention;
Fig. 3 is the embodiment schematic perspective view that ring and worker's ring are managed in block catenary system of the present invention;
Fig. 4 is another embodiment flow diagram of the method for message transmission in block catenary system of the present invention;
Fig. 5 is an embodiment schematic diagram of the massage transmission device in block catenary system of the present invention;
Fig. 6 is an example structure schematic diagram of server of the present invention.
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 " refers to that there are the feature, integer, step, operations, but it is not excluded that in the presence of or addition it is one or more other Feature, integer, step, operation.
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.
It will be appreciated by those skilled in the art that of the invention so-called " application ", " application program ", " computer program " and The concept of similar statement, is same concept well known to those skilled in the art, refers to and is instructed by series of computation machine and dependency number According to the computer software for being suitable for electronics operation of the organic construction of resource.Unless specified, this name itself is not by programming language Say type, rank, the operating system of operation of also not rely by it or platform are limited.
In one embodiment, the present invention from block catenary system on the whole, illustrate a kind of block chain provided by the invention Method for message transmission in system, the message include transaction message, and this method is applied in block catenary system, the block chain System includes: management ring, is made of several application server clusters, and the application server cluster is for running block chain journey Sequence;Worker's ring is made of several Resource Server clusters, and the Resource Server cluster is for providing resource and forwarding number According to;As shown in Figure 1, method includes the following steps:
Several application server clusters: logically being formed the management ring of cyclic structure by S10, and the management ring is drawn It is divided into several management ring fragments;Worker's ring that several Resource Server clusters are logically formed to cyclic structure, by institute It states worker's ring and is divided into several worker's ring fragments;The corresponding worker's ring fragment of management ring management by district.
The maximum resource of block catenary system demand is exactly operation power resource, and the platform for being equipped with block catenary system requires greatly The server of amount carries out transaction calculating, Information Conduction, and in the present embodiment, certain amount of server is formed a server set Group, then several server clusters (in Fig. 2 shown in Untiy) are logically formed to the loop network of cyclic structure.Specifically, such as Shown in Fig. 2, in the present embodiment, the block catenary system is operated in including management ring (in Fig. 2, Fig. 3 shown in Ring 0) and worker On the server cluster of the ring structure of ring (in Fig. 2, Fig. 3 shown in Ring 1), wherein the management ring is to apply several Server cluster is logically established by the forward rule standardized based on IEEE 802.1, and the server set on ring is managed The message of group supports the transmission of point-to-point, how point-to-multipoint and point-to-multipoint etc. modes, the present embodiment preferably with point-to-point with Point-to-multipoint mode carries out the transmission of message;Likewise, worker's ring is by several Resource Server clusters in logic On established based on the forward rule that IEEE 802.1 is standardized, the message of the server cluster on worker's ring support point-to-point, The transmission of the modes such as mostly point-to-multipoint and point-to-multipoint.Further, disappear to realize between server cluster, server cluster The management ring in the present embodiment, is divided into several and manages ring fragment, worker's ring is divided by the dynamic management for ceasing transmitting Several worker's ring fragments, then by the corresponding worker's ring fragment of management ring management by district, the management ring management by district Worker's ring fragment is that the application resource server managed on ring corresponds to one or more fragments on white collar worker's ring, and saving should Index information on fragment, to synchronize the message that worker's ring receives, Group show a fragment on management ring in Fig. 2.
S20: the message of block catenary system is sent to the management worker by the Resource Server cluster in worker's ring fragment The application server cluster of the management ring fragment of ring fragment.
Further, the application server cluster on management ring fragment receives the message, in the present embodiment, pipe The application server cluster of reason ring fragment manages one or more worker's ring fragments on worker's ring, and worker's ring fragment is same Sample includes several Resource Server clusters, and the Resource Server cluster of worker's ring fragment is responsible for receiving what block catenary system generated Message, then by the message synchronization to the application server cluster for the management ring fragment for managing worker's ring fragment, i.e. resource Server cluster sends a message to corresponding application server cluster, for example, the application service on management ring fragment GROUP1 Device cluster S1 has managed worker ring fragment GROUP A and GROUP B, any on worker ring fragment GROUP A and GROUP B After Resource Server cluster receives the message of block catenary system, application server cluster S1 is sent the message to.
S30: the application server cluster of operation block chain program receives the message of the block catenary system, disappears described Breath is sent to the other application server cluster of the corresponding management ring fragment of the application server cluster;And message is sent out It send to the application server cluster of peer node each other, the application server cluster of the peer node each other sends out the message It send to the other application server cluster of corresponding management ring fragment.
In the block catenary system of the present embodiment, the logical operation power of processing block chain business is provided by the management ring, and Block chain business is not distinguished, the logical operation of block chain business is by answering on management ring provided by the block catenary system It is handled with server cluster, correspondingly, the block chain program just operates on the application server cluster of management ring, is enjoyed The operation power of application server cluster, when the application server cluster of operation block chain program receives managed worker's ring point When the message of the block catenary system of the Resource Server collection pocket transmission in piece, the present application server is sent the message to The other application server cluster of the corresponding management ring fragment of cluster, such as management ring have marked off 6 management ring fragments GROUP1, GROUP2 ..., GROUP6, include application server cluster S1, S2, S3, S4, S5, S6, GROUP2 in GROUP1 In include application server cluster S7, S8, S9, S10, S11, S12;When application server cluster S1 receives managed resource When the message for the block catenary system that the Resource Server in server distribution is sent, due to the application server cluster on management ring Logic cyclization, can provide point-to-points information transfer capability, application server cluster S1 sends the message to correspondence at this time Management ring fragment GROUP1 other application server cluster S2, S3, S4, S5, S6;Meanwhile receiving answering for the message It sends the message to the application server cluster of peer node each other with server cluster, in the present embodiment, is in two (Counterpart shown in Fig. 2 is right each other to peer node to the application server cluster of same position each other in management ring fragment Two application server clusters of equal nodes), then by the application server cluster of the peer node each other by the message It is sent to the other application server cluster of the corresponding management ring fragment of the application server cluster, for example, answering in GROUP1 With the application server cluster S7 in server cluster S1 and GROUP2, peer node, application server cluster S1 will be described each other Message is sent to the application server cluster S7 of peer node each other, then by the application server collection of the peer node each other Group S7 send the message to corresponding management other application server cluster S8, S9 of ring fragment GROUP2, S10, S11, S12;Similarly, other management ring fragment GROUP3 ..., GROUP6 carry out the transmitting of message in this mode, complete to manage with this Manage the transmitting that the message of all application server clusters of block chain program is run on ring fragment.
The present embodiment by by the server cluster in block catenary system according to application server cluster and Resource Server Cluster separates, and is divided into several management ring fragments after application server cluster is logically organized cyclization, by Resource Server collection Group is divided into several worker's ring fragments after logically group is cyclic, and the server cluster on ring is able to achieve message point-to-point, puts to more The transmission of point, while based on management ring management by district worker ring fragment, management ring fragment is to received by management ring slicing synchronization Message, manage the server cluster on ring fragment and receive and transmitted message based on each management ring fragment after message, allowed Message on management ring fragment is rapidly transmitted to the application server cluster on management ring, improves the message in block catenary system Transmission efficiency;Also, the role of each server cluster on ring be it is identical, each server cluster all can serve as fragment Head server cluster, so that the fragment after group cyclization can complete more flexiblely management ring and worker ring with dynamic change Fragment greatly improves the efficiency of message transmission.
A kind of embodiment of the invention, it is described that the management ring is divided into several management ring fragments, comprising:
The quantity of application server cluster according to each management ring fragment isThe management ring is divided into A management ring fragment;Wherein, the quantity of the application server cluster is N, describedFor positive integer.
In order to reach better Dynamic Program Slicing management, in the present embodiment, when that will manage ring and carry out fragment, according to each The quantity of application server cluster for managing ring fragment isManagement ring is divided intoA management ring fragment guarantees management The quantity of ring fragment is equal with the quantity of application server cluster in each management ring fragment, consequently facilitating the dynamic of management ring Management by district, in order to allow management ring to carry out fragment, the quantity of the application server cluster is N, and describedIt is positive whole There are 36 application server clusters on number, such as management ring, is then divided into management ringA management ring fragment, Mei Geguan Managing in ring fragment includes 6 application server clusters.
Likewise, the rule of worker's ring fragment is similar with the rule of management ring fragment, the resource service on worker's ring The quantity of device cluster is M, then is divided into worker's ringA worker's ring fragment, each worker's ring fragment includeA resource clothes Business device cluster, the management convenient for management ring fragment to worker's ring fragment.
On the basis of the above embodiments, a kind of embodiment of the invention, when the application clothes of the operation block chain program When business device cluster receives the message of the block catenary system, which is the head application clothes for managing ring fragment Be engaged in device cluster, distance along same direction away from the head application server cluster be 1 toApplication server collection Group belongs to same management ring fragment.
In the embodiment of the present invention, the management ring group carries out fragment in Dynamic Program Slicing normal form, manages the application service on ring The role of device cluster is identical, and each application server cluster can be regarded as the piece of a management ring fragment The head that one manages ring fragment are defined as head application server cluster by head, the present embodiment, when operation block chain program When application server cluster receives the message of block catenary system, the application server cluster is a management ring fragment at this time Head, then along ring structure same direction away from the distance of the head application server cluster from 1 to's Other application server cluster is the brotgher of node of the head application server cluster, is belonged to the head application server cluster Same management ring fragment.For example, have application server cluster S1, S2, S3, S4, S5, S6 on management ring, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, can be with from above-described embodiment, includes 4 management ring fragments if by the management ring fragment, There are 4 application server clusters in each management ring fragment, when application server cluster S3 receives the message of block catenary system When, at this point, application server cluster S3 be one management ring fragment head application server cluster, along same direction away from Other application server cluster S4, S5, S6 of the distance from 1 to 3 of head application server cluster S3 are the head application service The brotgher of node of device cluster S3, S3, S4, S5, S6 belong to same management ring fragment at this time.It is appreciated that S7, S8, S9, S10 also belongs to same management ring fragment, and S11, S12, S13, S14 also belong to same management ring fragment, and S15, S16, S1, S2 are also fallen within In same management ring fragment, and S7, S11, S15 are the head application server cluster of corresponding management ring fragment, S3 and S7, S11, S15 peer node each other.
And when if it is the message for receiving block catenary system as application server cluster S6, at this point, application server collection Group S6 is the head application server cluster of a management ring fragment, application server cluster S7, S8, S9 head application clothes The brotgher of node of business device cluster S6, S6, S7, S8, S9 belong to same management ring fragment at this time.In the present embodiment, each application Server cluster may each be the head application server cluster of management ring fragment, and regard subsequent node as same management The brotgher of node of ring fragment, the fragment situation under different application server cluster visual angle is different, to realize management ring The flexible variation of fragment.
A kind of embodiment of the invention, Resource Server collection pocket transmission block catenary system in worker's ring fragment disappear Breath is sent to the application server cluster of the management ring fragment of management worker's ring fragment, comprising:
Resource Server cluster judges the type of service of the message of block catenary system, and message is carried corresponding type of service It is sent to the application server cluster of the management ring fragment of management worker's ring fragment.
Since management ring only carries out the logical operation of business, business is not distinguished, in the present embodiment, in worker's ring After Resource Server cluster receives the message of block catenary system generation, the type of service of the message is judged and verified, then, The message is carried into the application server collection for managing ring fragment that corresponding type of service is sent to management worker's ring fragment Group, the message that application server cluster receives just no longer need to the judgement that type of service is carried out to message, it is only necessary to by the message It is transmitted in the block chain program on management ring, by message storage depositing under corresponding type of service into block chain program It stores up in catalogue.
A kind of embodiment of the invention, the application server cluster for sending a message to peer node each other are described The application server cluster of peer node sends the message to the other application server of corresponding management ring fragment each other After cluster, further includes:
The application server cluster stores the information into block, manages the application server cluster on ring for institute It states block and generates block chain.
After the block chain program of the application server cluster operated on management ring receives the message, by the message In the block for storing book server cluster, when the application server cluster on all management rings all stores the message to block In after, the block is linked into block chain and is added in block catenary system, once message through verifying and be added to block chain It in system, permanent will store, unless can control simultaneously same more than the server cluster of more than half in system The Transaction Information is deleted in meaning modification, and otherwise individual server cluster is invalid to the modification of message, to improve block linkwork Data stability of uniting and reliability.
In another embodiment, as shown in figure 4, the present invention is from the single application server cluster in block catenary system Visual angle illustrates the method for message transmission in a kind of block catenary system provided by the invention, comprising:
S100: the application server cluster on management ring receives the Resource Server collection mass-sending of managed worker's ring fragment The message of the block catenary system sent;
S200: the other application server of the corresponding management ring fragment of present application server cluster is sent the message to Cluster;And application server cluster with present application server cluster peer node each other is sent the message to, so that The application server cluster of the peer node each other sends the message to the other application clothes of corresponding management ring fragment Business device cluster.
The logical operation of block chain business provided by block catenary system is handled by the application server cluster on management ring, The block chain program operates on the application server cluster of management ring, enjoys the operation power of application server cluster, manages The application server cluster of operation block chain program receives the Resource Server cluster in managed worker's ring fragment on reason ring The message of the block catenary system of transmission can provide point-to-point, point since the application server cluster on management ring is in logic cyclization To more information transfer capabilities, the other application of the corresponding management ring fragment of present application server cluster is sent the message to Server cluster;Meanwhile the application server cluster peer node each other of same position in ring fragments is managed in two, it receives To message application server cluster send the message to present application server cluster each other peer node application take Business device cluster, so that the application server cluster of the peer node each other sends the message to corresponding management ring fragment Other application server cluster;To each server cluster by message distribution into block catenary system.
In a kind of embodiment of the invention, when the application server cluster receives the money of managed worker's ring fragment When the message of source server collection pocket transmission block catenary system, which is the head application clothes managed in ring fragment Business device cluster.
In the present embodiment, the quantity of the application server cluster of each management ring fragment of management ring isIt will pipe Reason ring is divided intoA management ring fragment, and it is describedFor positive integer, when the application server of the operation block chain program When cluster receives the message of the block catenary system, which is the head application server for managing ring fragment Cluster, distance along same direction away from the head application server cluster be 1 toApplication server cluster category In same management ring fragment.
It is described to send the message to present application server cluster each other to constant pitch in a kind of embodiment of the invention Point application server cluster so that the application server cluster of the peer node each other send the message to it is corresponding After the other application server cluster for managing ring fragment, further includes:
By message storage into block, with the other application server cluster on management ring by the block generation area Block chain.
After the block chain program of the application server cluster operated on management ring receives the message, by the message In the block for storing book server cluster, when the application server cluster on all management rings all stores the message to block In after, the block is linked into block chain and is added in block catenary system, once message through verifying and be added to block chain It in system, permanent will store, unless can control simultaneously same more than the server cluster of more than half in system The Transaction Information is deleted in meaning modification, and otherwise individual server cluster is invalid to the modification of message, to improve block linkwork Data stability of uniting and reliability.
In another embodiment, as shown in figure 5, the present invention provides the messaging device in a kind of block catenary system, Include:
Receiving module 100: for receiving the block linkwork of the Resource Server collection pocket transmission of managed worker's ring fragment The message of system;
Transmission module 200: for sending the message to its corresponding for managing ring fragment of present application server cluster Its application server cluster;And send the message to present application server cluster each other peer node application take Business device cluster, so that the application server cluster of the peer node each other sends the message to corresponding management ring fragment Other application server cluster.
In another embodiment, the present invention provides a kind of computer readable storage medium, computer-readable storage mediums Computer program is stored in matter, which realizes disappearing in block catenary system described in above-described embodiment when being executed by processor Cease transmission method.Wherein, the computer readable storage medium include but is not limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable Read-Only Memory, erasable programmable Read-only memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, electrically erasable Programmable read only memory), flash memory, magnetic card or light card.It is, storage equipment includes by equipment (for example, calculating Machine, mobile phone) with any medium for the form storage or transmission information that can be read, it can be read-only memory, disk or CD etc..
A kind of computer readable storage medium provided in an embodiment of the present invention is, it can be achieved that by several application server clusters The management ring is divided into several management ring fragments by the management ring for logically forming cyclic structure;By several resources Server cluster logically forms worker's ring of cyclic structure, and worker's ring is divided into several worker's ring fragments;Institute State the management corresponding worker's ring fragment of ring management by district;Resource Server cluster disappearing block catenary system in worker's ring fragment Breath is sent to the application server cluster of the management ring fragment of management worker's ring fragment;Run the application clothes of block chain program Business device cluster receives the message of the block catenary system, sends the message to the corresponding pipe of the application server cluster Manage the other application server cluster of ring fragment;And the application server cluster of peer node each other is sent a message to, institute The application server cluster for stating peer node each other sends the message to the other application service of corresponding management ring fragment Device cluster.By the way that the server cluster in block catenary system is separated according to application server cluster and Resource Server cluster, And it is divided into several management ring fragments after application server cluster logically to be organized to cyclization, logically by Resource Server cluster It is divided into several worker's ring fragments after group cyclization, the server cluster on ring is able to achieve message point-to-point, point-to-multipoint transmission, together When based on management ring management by district worker ring fragment, management ring fragment to management ring slicing synchronization received by message, management Server cluster on ring fragment is transmitted message based on each management ring fragment after receiving message, is allowed and is managed on ring fragment Message be rapidly transmitted to management ring on application server cluster, improve block catenary system in message transmission efficiency;And And the role of each server cluster on ring be it is identical, each server cluster all can serve as the head server of fragment Cluster, so that the fragment after group cyclization can complete more flexiblely the fragment of management ring and worker's ring, greatly with dynamic change Improve the efficiency of message transmission.
The biography of the message in above-mentioned block catenary system may be implemented in computer readable storage medium provided in an embodiment of the present invention The embodiment of transmission method, concrete function realize the explanation referred in embodiment of the method, and details are not described herein.
In addition, the present invention also provides a kind of server, being made of the server such as Fig. 2, figure in another embodiment The Resource Server cluster on application server cluster and worker's ring on management ring shown in 3, as shown in fig. 6, the service Device includes the devices such as processor 603, memory 605.It will be understood by those skilled in the art that the structure devices shown in Fig. 6 are not The restriction to Servers-all is constituted, may include than illustrating more or fewer components, or the certain components of combination.Memory 605 can be used for storing computer program 601 and each functional module, and processor 603 runs the computer for being stored in memory 605 Program 601, thereby executing the various function application and data processing of equipment.Memory 605 can be built-in storage or external memory Reservoir, or including both built-in storage and external memory.Built-in storage may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory or random storage Device.External memory may include hard disk, floppy disk, ZIP disk, USB flash disk, tape etc..Memory disclosed in this invention includes but unlimited In the memory of these types.Memory 605 disclosed in this invention is only used as example rather than as restriction.Shown in Fig. 6 One or more processors 603 are able to carry out, realize the function of receiving module 100, transmission module 200 shown in Fig. 5.
In one embodiment, the server includes one or more processors 603, and one or more storages Device 605, one or more computer programs 601, wherein one or more of computer programs 601 are stored in memory It in 605 and is configured as being executed by one or more of processors 603, one or more of computer programs 601 configure For executing the method for message transmission in block catenary system described in above embodiments.
A kind of server provided in an embodiment of the present invention constitutes server cluster, and realizes several application services Device cluster logically forms the management ring of cyclic structure, and the management ring is divided into several management ring fragments;It will be several A Resource Server cluster logically forms worker's ring of cyclic structure, and worker's ring is divided into several worker's rings point Piece;The corresponding worker's ring fragment of management ring management by district;Resource Server cluster in worker's ring fragment is by block linkwork The message of system is sent to the application server cluster of the management ring fragment of management worker's ring fragment;Run block chain program Application server cluster receives the message of the block catenary system, sends the message to the application server cluster pair The other application server cluster for the management ring fragment answered;And send a message to the application server of peer node each other Cluster, the application server cluster of the peer node each other send the message to corresponding management the other of ring fragment and answer Use server cluster.By by the server cluster in block catenary system according to application server cluster and Resource Server cluster It separates, and is divided into several management ring fragments after application server cluster is logically organized cyclization, Resource Server cluster is existed It is divided into several worker's ring fragments after logic upper makeup ring, the server cluster on ring is able to achieve message point-to-point, point-to-multipoint Transmission, while based on management ring management by district worker ring fragment, management ring fragment disappears to received by management ring slicing synchronization Breath is managed the server cluster on ring fragment and received and transmitted message based on each management ring fragment after message, allows management Message on ring fragment is rapidly transmitted to the application server cluster on management ring, improves the message transmission in block catenary system Efficiency;Also, the role of each server cluster on ring be it is identical, each server cluster all can serve as the head of fragment Server cluster, so that the fragment after group cyclization can complete more flexiblely the fragment of management ring and worker's ring with dynamic change, Greatly improve the efficiency of message transmission.
The method for message transmission in the block catenary system of above-mentioned offer may be implemented in server provided in an embodiment of the present invention Embodiment, concrete function, which is realized, refers to explanation in embodiment of the method, and details are not described herein.
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. the method for message transmission in a kind of block catenary system, which is characterized in that the block catenary system includes:
Ring is managed, is made of several application server clusters, the application server cluster is for running block chain program;
Worker's ring is made of several Resource Server clusters, and the Resource Server cluster is for providing resource and forwarding number According to;
The method for message transmission includes:
The management ring is divided into several by the management ring that several application server clusters are logically formed to cyclic structure A management ring fragment;Worker's ring that several Resource Server clusters are logically formed to cyclic structure, by worker's ring It is divided into several worker's ring fragments;The corresponding worker's ring fragment of management ring management by district;
The message of block catenary system is sent to management worker's ring fragment by the Resource Server cluster in worker's ring fragment Manage the application server cluster of ring fragment;
The application server cluster of operation block chain program receives the message of the block catenary system, sends the message to The corresponding other application server cluster for managing ring fragment of the application server cluster;And it sends a message to each other The application server cluster of the application server cluster of peer node, the peer node each other sends the message to correspondence The other application server cluster using ring fragment.
2. the method according to claim 1, wherein described be divided into several management rings point for the management ring Piece, comprising:
The quantity of application server cluster according to each management ring fragment isThe management ring is divided intoA management Ring fragment;Wherein, the quantity of the application server cluster is N, describedFor positive integer.
3. according to the method described in claim 2, it is characterized in that, when the application server cluster for running block chain program When receiving the message of the block catenary system, which is the head application server collection for managing ring fragment Group, distance along same direction away from the head application server cluster be 1 toApplication server cluster belong to together One management ring fragment.
4. the method according to claim 1, wherein the Resource Server collection pocket transmission in worker's ring fragment The message of block catenary system is sent to the application server cluster of the management ring fragment of management worker's ring fragment, comprising:
Resource Server cluster judges the type of service of the message of block catenary system, and message is carried corresponding type of service and is sent To the application server cluster for the management ring fragment for managing worker's ring fragment.
5. the method according to claim 1, wherein the application clothes for sending a message to peer node each other Business device cluster, the application server cluster of the peer node each other send the message to its of corresponding management ring fragment After its application server cluster, further includes:
The application server cluster stores the message into block, manages the application server cluster on ring for the area Block generates block chain.
6. the method for message transmission in a kind of block catenary system characterized by comprising
Manage the block that the application server cluster on ring receives the Resource Server collection pocket transmission of managed worker's ring fragment The message of catenary system;
Send the message to the other application server cluster of the corresponding management ring fragment of present application server cluster;With And send the message to application server cluster with present application server cluster peer node each other so that it is described mutually The other application server set of corresponding management ring fragment is sent the message to for the application server cluster of peer node Group.
7. according to the method described in claim 6, it is characterized in that, when the application server cluster receives managed work When the message of the Resource Server collection pocket transmission block catenary system of people's ring fragment, which is in management ring fragment Head application server cluster.
8. according to the method described in claim 6, it is characterized in that, described send the message to and present application server collection The application server cluster of group's peer node each other, so that the application server cluster of the peer node each other is by the message It is sent to after the other application server cluster of corresponding management ring fragment, further includes:
By message storage into block, the block is generated into block with the other application server cluster on management ring Chain.
9. the massage transmission device in a kind of block catenary system characterized by comprising
Receiving module: the block catenary system for receiving the Resource Server collection pocket transmission of managed worker's ring fragment disappears Breath;
Transmission module: for sending the message to the other application clothes of the corresponding management ring fragment of present application server cluster Business device cluster;And application server cluster with present application server cluster peer node each other is sent the message to, So that the application server cluster of the peer node each other sends the message to corresponding management the other of ring fragment and answers Use server cluster.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program realize the message in block catenary system described in any one of claim 1 to 5 when being executed by processor Transmission method;Or, realizing claim 6 to 8 described in any item block catenary systems when the computer program is executed by processor In method for message transmission.
CN201880002403.6A 2018-07-27 2018-07-27 Message transmission method, device and storage medium in block chain system Active CN109496407B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/097650 WO2020019343A1 (en) 2018-07-27 2018-07-27 Message transmission method and apparatus in blockchain system, and storage medium

Publications (2)

Publication Number Publication Date
CN109496407A true CN109496407A (en) 2019-03-19
CN109496407B CN109496407B (en) 2020-07-24

Family

ID=65713876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880002403.6A Active CN109496407B (en) 2018-07-27 2018-07-27 Message transmission method, device and storage medium in block chain system

Country Status (2)

Country Link
CN (1) CN109496407B (en)
WO (1) WO2020019343A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI719604B (en) * 2019-03-29 2021-02-21 開曼群島商創新先進技術有限公司 Block chain-based resource allocation method and device
CN113612810A (en) * 2021-05-18 2021-11-05 中国信息通信研究院 DHT-based performance optimization method between cluster nodes, electronic device and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405074B (en) * 2020-06-08 2020-09-08 南京邮电大学 Data center network fault diagnosis and automatic configuration method based on hybrid chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101677328A (en) * 2008-09-19 2010-03-24 中兴通讯股份有限公司 Content-fragment based multimedia distributing system and content-fragment based multimedia distributing method
CN101853186A (en) * 2008-12-31 2010-10-06 Sap股份公司 Distributed transactional recovery system and method
CN101969468A (en) * 2010-10-14 2011-02-09 广州从兴电子开发有限公司 Inquiry server cluster system and inquiry method
US20170346693A1 (en) * 2016-05-27 2017-11-30 Mastercard International Incorporated Method and system for efficient distribution of configuration data utilizing permissioned blockchain technology
CN107896157A (en) * 2017-08-31 2018-04-10 上海壹账通金融科技有限公司 Blacklist data exchange method and application server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780221B (en) * 2015-04-29 2018-04-06 温州中普科技咨询有限公司 Medium-sized and small enterprises intellectual property synthetic service platform system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101677328A (en) * 2008-09-19 2010-03-24 中兴通讯股份有限公司 Content-fragment based multimedia distributing system and content-fragment based multimedia distributing method
CN101853186A (en) * 2008-12-31 2010-10-06 Sap股份公司 Distributed transactional recovery system and method
CN101969468A (en) * 2010-10-14 2011-02-09 广州从兴电子开发有限公司 Inquiry server cluster system and inquiry method
US20170346693A1 (en) * 2016-05-27 2017-11-30 Mastercard International Incorporated Method and system for efficient distribution of configuration data utilizing permissioned blockchain technology
CN107896157A (en) * 2017-08-31 2018-04-10 上海壹账通金融科技有限公司 Blacklist data exchange method and application server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI719604B (en) * 2019-03-29 2021-02-21 開曼群島商創新先進技術有限公司 Block chain-based resource allocation method and device
US10929198B2 (en) 2019-03-29 2021-02-23 Advanced New Technologies Co., Ltd. Blockchain-based resource allocation method and apparatus
CN113612810A (en) * 2021-05-18 2021-11-05 中国信息通信研究院 DHT-based performance optimization method between cluster nodes, electronic device and storage medium

Also Published As

Publication number Publication date
WO2020019343A1 (en) 2020-01-30
CN109496407B (en) 2020-07-24

Similar Documents

Publication Publication Date Title
CN108200210B (en) Block chain-based chain management method, block chain-based chain management device and computer-readable medium
CN103118084B (en) The electoral machinery of a kind of host node and node
JP2004507159A (en) Method of high performance addressing and routing of data packets with semantic descriptive labels in computer networks
CN109496407A (en) Method for message transmission, device and storage medium in block catenary system
Nichols Lessons learned building a secure network measurement framework using basic NDN
US11637702B2 (en) Verifiable computation for cross-domain information sharing
CN109792406A (en) Message delivery method, device and storage medium in server cluster
Nordström et al. Haggle: Opportunistic mobile content sharing using search
Al-Doghman et al. A review of aggregation algorithms for the internet of things
López et al. Enforcing availability in failure-aware communicating systems
CN114567643B (en) Cross-blockchain data transfer method, device and related equipment
Graffi et al. LibreSocial: A peer‐to‐peer framework for online social networks
Belyaev et al. On the design and analysis of protocols for personal health record storage on personal data server devices
Lu et al. Wireless sensor networks for environmental monitoring applications: A design framework
Wood et al. ICEMAN: A practical architecture for situational awareness at the network edge
CN109496420A (en) Cyclic annular server set group managing means, device and computer storage medium
Pasteris et al. Data distribution and scheduling for distributed analytics tasks
Tarkoma et al. State of the art review of distributed event systems
Hu et al. Enabling linearly homomorphic signatures in network coding-based named data networking
CN114760602A (en) Holographic communication method, device, system and computer readable storage medium
Nguyen et al. Context-driven policies enforcement for edge-based iot data sharing-as-a-service
Claffy et al. The First Named Data Networking Community Meeting: (NDNcomm)
CN110324426A (en) A kind of data capture method, device and system
Li et al. A-peer: an agent platform integrating peer-to-peer network
Tan et al. Scheduling of distributed collaborative tasks on ndn based manet

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
GR01 Patent grant
GR01 Patent grant