CN113242317B - Addressing route synchronization method and related device for alliance chain supervision system - Google Patents
Addressing route synchronization method and related device for alliance chain supervision system Download PDFInfo
- Publication number
- CN113242317B CN113242317B CN202110656848.XA CN202110656848A CN113242317B CN 113242317 B CN113242317 B CN 113242317B CN 202110656848 A CN202110656848 A CN 202110656848A CN 113242317 B CN113242317 B CN 113242317B
- Authority
- CN
- China
- Prior art keywords
- supervision
- chain
- cross
- addressing
- resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000012544 monitoring process Methods 0.000 claims description 41
- 238000004891 communication Methods 0.000 claims description 23
- 230000003993 interaction Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 10
- 230000008859 change Effects 0.000 claims description 9
- 238000004458 analytical method Methods 0.000 claims description 8
- 230000000977 initiatory effect Effects 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 6
- 230000000737 periodic effect Effects 0.000 claims description 5
- 230000001360 synchronised effect Effects 0.000 claims description 5
- 230000001105 regulatory effect Effects 0.000 claims 1
- 230000007246 mechanism Effects 0.000 abstract description 7
- 238000005516 engineering process Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000013461 design Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 241001632422 Radiola linoides Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides an addressing route synchronization method, a device, a supervision server and a system facing a coalition chain supervision system, wherein a supervision request is issued by a target client, when the supervision server receives the request, the supervision request is addressed based on a resource addressing database to obtain a cross-link gateway of a target coalition chain, the cross-link gateway is utilized to initiate a transaction corresponding to the requested content of the request to the target coalition chain, namely, the resource is only required to be addressed from the resource addressing database according to the request and then supervision is completed, resource positioning and access can be realized only according to the identification of the target coalition chain and the corresponding transaction content, which region, mechanism or machine room the resource is located in is not required to be concerned, the specific realization of the coalition chain is not required to be concerned, the supervision efficiency is improved, in addition, the supervision of a plurality of coalition chains is carried out by the supervision server in the application, and the cooperative supervision of the plurality of coalition chains is realized, the supervision efficiency is also improved.
Description
Technical Field
The present application relates to the field of federation chain supervision technologies, and in particular, to an addressing route synchronization method, apparatus, supervision server and system for a federation chain supervision system.
Background
A federation chain refers to a chain of blocks that are commonly managed by several enterprises or organizations, with data in the nodes allowing only enterprises within the system to read and send transactions, and to collectively record transaction data. The information is validated and added to the blockchain and is permanently stored. Currently, the supervision of a alliance chain still has challenges, and mainstream block chain underlying platform technology is difficult to adapt to continuously changing supervision requirements. Currently, the supervisory system and third party blockchains address the resource addressing locations within the chain inefficiently.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide an addressing route synchronization method, device, supervision server and system for a coalition chain supervision system, and supervision efficiency can be improved. The specific scheme is as follows:
the application provides an addressing route synchronization method facing a coalition chain supervision system, which is applied to any supervision server in the coalition chain supervision system and comprises the following steps:
acquiring a request sent by a target supervision client;
obtaining a cross-link gateway corresponding to the target alliance chain from a pre-stored resource addressing database according to the identification of the target alliance chain of the request, wherein the resource addressing database comprises the identification of the alliance chain and the corresponding relation between the alliance chain and the cross-link gateway;
initiating a transaction corresponding to the requested content of the request to the target alliance chain by using the cross-chain gateway, and obtaining an execution result corresponding to the transaction through the cross-chain gateway after the target alliance chain completes the transaction;
and feeding back the execution result to the target supervision client.
Preferably, the method further comprises the following steps:
when the supervision server is a seed server, receiving a registration request of a new alliance chain or a new supervision server;
when the new alliance chain or the new supervision server is successfully registered, updating the resource addressing database and synchronizing to other supervision servers;
receiving a resource addressing database request of a new cross-link gateway or the new supervision server corresponding to the new alliance link;
and sending the updated resource addressing database to the new cross-link gateway or the new supervision server according to the resource addressing database request.
Preferably, the method further comprises the following steps:
acquiring the equipment states sent by the other monitoring servers and the cross-link gateway, and updating the resource addressing database according to the equipment states;
wherein the device state includes a device cycle state and a device change state.
Preferably, the method further comprises the following steps:
and synchronizing the resource addressing database to each alliance chain so that the alliance chain can conduct cross-chain transaction according to the resource addressing database.
Preferably, the method further comprises the following steps:
and establishing communication connection with the cross-link gateways corresponding to the plurality of alliance links.
Preferably, the supervision server conforms to the same resource addressing paradigm with each federation chain, and each federation chain; the resource addressing paradigm is [ federation chain ID ] [ federation chain resources ] [ resource method ].
Preferably, the supervision server conforms to the same resource addressing paradigm with each of the federation chains and between the federation chains; the resource addressing paradigm is [ federation chain ID ] [ federation chain resources ] [ resource method ].
Preferably, the communication protocol between the administration server and each of the federation chains, and between each of the federation chains, conforms to the resource addressing paradigm;
the universal format of the synchronous protocol of the cross-link route comprises magic numbers, protocol types, data packet lengths, hop numbers, data and check codes;
correspondingly, the data fields of the equipment state periodic sending protocol and the equipment state change sending protocol comprise equipment type, equipment code, IP address, equipment state, equipment description length and equipment description;
the data field of the resource addressing database request protocol is empty;
the data field of the resource addressing database data transmission protocol includes an addressing record number and a plurality of addressing records.
The application provides an addressing route synchronization device facing to a coalition chain supervision system, which comprises:
the supervision interaction module is used for acquiring a request sent by a target supervision client;
the analysis processing module is used for obtaining a cross-link gateway corresponding to the target alliance chain from a pre-stored resource addressing database according to the identification of the target alliance chain of the request, wherein the resource addressing database comprises the identification of the alliance chain and the corresponding relation between the alliance chain and the cross-link gateway;
the inter-link communication module is used for initiating a transaction corresponding to the requested request content to the target alliance link by using the cross-link gateway, and acquiring an execution result corresponding to the transaction through the cross-link gateway after the target alliance link completes the transaction;
the supervision interaction module is further used for feeding back the execution result to the target supervision client.
The application provides a supervision server, including:
a memory for storing a computer program;
a processor for implementing the steps of the addressing route synchronization method for the federation chain supervision-oriented system when executing the computer program.
The application provides a federation chain supervisory systems, includes:
a plurality of federation chains;
a cross-link gateway connected to the federation link; each alliance chain corresponds to a unique cross-chain gateway;
a policing server as described above connected to a plurality of said cross-link gateways;
and the supervision client is connected with a plurality of supervision servers.
The application provides an addressing route synchronization method facing a coalition chain supervision system, which is applied to any supervision server in the coalition chain supervision system and comprises the following steps: acquiring a request sent by a target supervision client; obtaining a cross-link gateway corresponding to the target alliance chain from a pre-stored resource addressing database according to the identification of the target alliance chain of the request, wherein the resource addressing database comprises the identification of the alliance chain and the corresponding relation between the alliance chain and the cross-link gateway; initiating a transaction corresponding to the requested content of the request to the target alliance chain by using the cross-chain gateway, and obtaining an execution result corresponding to the transaction through the cross-chain gateway after the target alliance chain completes the transaction; and feeding back the execution result to the target supervision client.
It can be seen that the federation chain supervision system corresponding to the addressing route synchronization method for a federation chain supervision system provided by the present application mainly comprises a supervision client, a supervision server, a cross-chain gateway and a federation chain uniquely corresponding to the cross-chain gateway, wherein a supervision request is issued by a target client, after the supervision server receives the request, the supervision request is addressed based on a resource addressing database to obtain the cross-chain gateway of a target federation chain, the cross-chain gateway is utilized to initiate a transaction corresponding to the requested content of the request to the target federation chain, i.e. only the resource addressing database is required to address according to the request and then the supervision is completed, the resource location and access can be realized only according to the identification of the target federation chain and the corresponding transaction content, and the region, institution or machine room where the resource is located is not required to be concerned, and the specific implementation of the federation chain where the resource is located is not required to be concerned, the supervision efficiency is improved, and the supervision server supervises the plurality of alliance chains, so that the cooperative supervision of the plurality of alliance chains is realized, and the supervision efficiency is also improved.
The application also provides an addressing route synchronization device, a supervision server and a system facing the alliance chain supervision system, which have the beneficial effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an addressing route synchronization method for a federation chain supervision system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an addressing and routing synchronization apparatus for a federation chain supervision system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a monitoring server according to an embodiment of the present application;
FIG. 4 is a block diagram of another embodiment of a monitoring server;
fig. 5 is a schematic structural diagram of a federation chain supervision system according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
A federation chain refers to a chain of blocks that are commonly managed by several enterprises or organizations, with data in the nodes allowing only enterprises within the system to read and send transactions, and to collectively record transaction data. The information is verified and added to the blockchain and is permanently stored. Currently, the supervision of a alliance chain still has challenges, and mainstream block chain underlying platform technology is difficult to adapt to continuously changing supervision requirements. Currently, the supervisory system and third party blockchains address the resource addressing locations within the chain inefficiently.
Based on the above technical problems, the present embodiment provides an addressing route synchronization method for an alliance chain supervision system, where the alliance chain supervision system corresponding to the addressing route synchronization method for the alliance chain supervision system mainly includes a supervision client, a supervision server, a cross-chain gateway, and an alliance chain uniquely corresponding to the cross-chain gateway, where a supervision request is issued by a target client, and after the supervision server receives the request, the supervision server performs addressing based on a resource addressing database to obtain the cross-chain gateway of a target alliance chain, and initiates a transaction corresponding to the requested content to the target alliance chain by using the cross-chain gateway, that is, only the resource addressing is performed from the resource addressing database according to the request to complete supervision, and only the identifier of the target alliance chain and the corresponding transaction content need to implement resource positioning and access, and no need to care about which region, or resource, is located in, The mechanism or the machine room does not need to care about the specific implementation of the alliance chain, the supervision efficiency is improved, the supervision server supervises the plurality of alliance chains, the cooperative supervision of the plurality of alliance chains is realized, and the supervision efficiency is also improved.
Referring to fig. 1 specifically, fig. 1 is a flowchart of an addressing route synchronization method for a federation chain supervision system according to an embodiment of the present application, where the flowchart is applied to any supervision server in the federation chain supervision system, and specifically includes:
s101, acquiring a request sent by a target supervision client;
the execution subject of the present embodiment is a monitoring server, and it can be understood that the monitoring server may be a common monitoring server, and may also be a seed server. Compared with the common supervision server, the seed server is added with the functions of receiving other equipment registration requests, forwarding the states of all nodes in the whole network and responding to other equipment request resource addressing databases, when a new service alliance chain enters the supervision system through a cross-chain gateway, the seed server needs to register with the seed server, and then the seed server synchronizes the resource addressing databases with the cross-chain gateway and other supervision servers in the system. The supervision client can be a server or a computer terminal, and mainly provides an interaction function for the user and the supervision system, receives a supervision operation request of the user, and presents an analysis result and an execution result to the user.
In this embodiment, the monitoring server may be connected to a plurality of clients for monitoring, and the number of the monitoring servers may also be multiple, so as to implement multi-centralized monitoring, improve the robustness of the system, and improve the network efficiency.
The request sent by the target supervision client at least comprises the identification of the target alliance chain and the request content. The request can be actively issued or periodically and automatically issued, the embodiment is not limited any more, and the user can set the request according to actual requirements.
S102, obtaining a cross-link gateway corresponding to the target alliance chain from a pre-stored resource addressing database according to the requested identification of the target alliance chain, wherein the resource addressing database comprises the identification of the alliance chain and the corresponding relation between the alliance chain and the cross-link gateway;
a resource addressing database of the whole network is maintained in the supervision server to record the association relation of the resource routing addresses. This step obtains the cross-link gateway from the resource addressing database according to the identification of the requested destination federation chain. It can be understood that a federation chain is an object under supervision, and the manner of implementing supervision is to read data from the federation chain, then analyze the data, and finally automatically and manually process the data to be processed, and the current underlying technology platforms of the block chain are all in a whole, and the platforms are greatly different in overall architecture design, including multiple aspects such as calculation, storage, network, data structure, interface protocol and security mechanism, and are not described in detail in this embodiment.
Further, it is further explained that the resource addressing database includes an identifier of a federation chain and a correspondence between the federation chain and a cross-chain gateway, and may also include related device information and a related device status, where the device includes but is not limited to: the corresponding device states include normal and failure, and the device information may also include an IP in the device, a description of the device, and the like.
S103, initiating a transaction corresponding to the requested request content to the target alliance chain by using the cross-chain gateway, and acquiring an execution result corresponding to the transaction through the cross-chain gateway after the target alliance chain finishes the transaction;
the method comprises the steps that data are read or written from a target alliance chain through a cross-chain gateway, a corresponding execution result is obtained, when a monitoring server receives a request, addressing is carried out on the basis of a resource addressing database to obtain the cross-chain gateway of the target alliance chain, the cross-chain gateway is used for initiating a transaction corresponding to the requested request content to the target alliance chain, namely, the resource addressing is carried out from the resource addressing database according to the request to complete monitoring, the region, the mechanism or the machine room where the resource is located does not need to be concerned, the specific implementation of the alliance chain is not required to be concerned, the resource location and the access can be achieved only by providing the resource address and related parameters, the transaction is initiated through the cross-chain gateway, and the monitoring efficiency is improved.
And S104, feeding back the execution result to the target supervision client.
Based on the above technical solution, the league chain supervision system corresponding to the addressing route synchronization method for the league chain supervision system provided in this embodiment mainly includes a supervision client, a supervision server, a cross-chain gateway, and a league chain uniquely corresponding to the cross-chain gateway, where a supervision request is issued by a target client, and after receiving the request, the supervision server performs addressing based on a resource addressing database to obtain the cross-chain gateway of a target league chain, and initiates a transaction corresponding to the requested content of the request to the target league chain by using the cross-chain gateway, that is, only needs to perform addressing from the resource addressing database according to the request to complete supervision, and can achieve resource location and access only according to the identifier of the target league chain and the corresponding transaction content, and does not need to care about which region, institution or machine room the resource is located, nor needs to care about the specific implementation of the league chain in which the resource is located, the supervision efficiency is improved, the supervision of the plurality of alliance chains is carried out by the supervision server, the cooperative supervision of the plurality of alliance chains is realized, and the supervision efficiency is also improved.
Based on the foregoing embodiment, in order to improve the robustness and network efficiency of supervision and avoid the problem that the P2P network forwards a large number of data packets, the present embodiment improves supervision by adding a federation chain or a supervision server, where the addressing route synchronization method for a federation chain supervision system further includes:
s105, when the monitoring server is a seed server, receiving a registration request of a new alliance chain or a new monitoring server;
s106, when the registration of the new alliance chain or the new supervision server is successful, updating the resource addressing database and synchronizing the resource addressing database to other supervision servers;
s107, receiving a resource addressing database request of a new cross-link gateway or a new supervision server corresponding to the new alliance chain;
and S108, sending the updated resource addressing database to a new cross-link gateway or a new supervision server according to the resource addressing database request.
The seed server can receive other device registration requests and the function of forwarding the state of each node in the whole network and the function of responding to the resource addressing database of the whole network requested by other devices, when a new alliance chain is connected into the supervision system through a cross-chain gateway, the seed server must be registered with the seed server, and then the seed server synchronizes the resource addressing database (comprising a resource routing address table) with the cross-chain gateway and other supervision servers in the system.
It can be seen that, the number of the supervision servers and the number of the federation chains in this embodiment can be set according to actual requirements, in order to improve robustness of supervision and network efficiency in practical application, and avoid the problem that a P2P network (Peer to Peer, Peer network) forwards a large number of data packets, the supervision servers and the federation chains can be added according to actual conditions to meet the actual requirements, and the adaptability is wider.
Based on any of the above embodiments, in order to ensure real-time update of the content of the resource addressing database and further improve the supervision reliability, the addressing route synchronization method for the federation chain supervision system further includes:
acquiring the equipment states sent by other monitoring servers and the cross-link gateway, and updating a resource addressing database according to the equipment states;
the device state comprises a device cycle state and a device change state.
In the embodiment, the number of the supervision servers is not fixed, the number of the users can be set according to actual needs, and is at least larger than 2, so that the needs of a plurality of users are met, a resource addressing database of the whole network is maintained in the supervision servers, so that the incidence relation of the resource routing addresses is recorded, the resource addressing database is updated according to state changes, and the information accuracy of the database is achieved.
For example, after powering on, the ordinary supervision server first sends the device type, the ID (Identity document), the IP Address (Internet Protocol Address), and the information type to all seed servers; then, requesting all the data of the resource addressing database from the seed server to update the resource addressing database of the seed server; when the system works normally, the system can also periodically send own state information including equipment type, equipment ID, IP address and information type to the two seed servers, and if the own state changes, the state information is sent immediately; meanwhile, address updating information forwarded by the two seed server monitoring servers is also received.
For the cross-link gateway, after being electrified, the cross-link gateway sends data such as equipment type, ID, IP address, information type and the like to the seed server; then, requesting all the data of the resource addressing database from the seed server to update the resource addressing database of the seed server; when the system works normally, the state information of the system is periodically sent to two seed servers, wherein the state information comprises equipment type, equipment ID, IP address and information type, and if the state of the system changes, the state information is sent immediately; meanwhile, the address updating information forwarded by the seed server monitoring server is also received.
For a seed server, after being powered on, the seed server sends data such as equipment type, ID, IP address, information type and the like to another seed server; then requesting data of the resource addressing database from another server supervision server to update the resource addressing database of the server supervision server; when the system works normally, the state information of the system, including the equipment type, the equipment ID, the IP address and the information type, is periodically sent to another seed server, and if the state of the system changes, the state information is immediately sent; meanwhile, the data packets received from other devices are forwarded to all the seed servers, the monitoring servers and the cross-link gateway which are connected with the data packets. Once the seed server monitors that a certain cross-link gateway is disconnected with the monitoring server and the network thereof, the seed server modifies the equipment state of the addressing record and actively sends the equipment state information to the seed server, the monitoring server and the cross-link gateway which are connected with the seed server.
Based on the technical means, the embodiment ensures the real-time update of the content of the resource addressing database, thereby improving the supervision reliability.
Based on any of the embodiments described above, because the underlying platforms of the block chains used by the service federation chains are diverse, and the resources on the block chain platforms are also diverse, and there are intelligent contracts, assets, channels, data tables, etc., in order to facilitate cross-chain access between the supervisor access block chains, and mutual access between the supervisor server and the block chains, in this embodiment, the supervisor server and each federation chain, conform to the same resource addressing paradigm, and the resource address paradigm is [ federation chain ID ] [ federation chain resources ] [ resource method ].
Furthermore, communication protocols between the supervision server and each alliance chain and between all alliance chains conform to a resource addressing paradigm;
the cross-link common format of the synchronous protocol comprises magic numbers, protocol types, data packet lengths, hop counts, data and check codes;
correspondingly, the data fields of the equipment state periodic sending protocol and the equipment state change sending protocol comprise equipment type, equipment code, IP address, equipment state, equipment description length and equipment description;
the data field of the resource addressing database request protocol is empty;
and the data field of the resource addressed database data transmission protocol comprises the number of addressing records and a plurality of addressing records.
The alliance link resources and the resource method can be addressed inside the block chain, and the alliance link addressing needs to establish a corresponding relation between an alliance link ID and a cross-link gateway IP address so as to address and locate the cross-link gateway connected with the service chain. Therefore, the present embodiment designs a cross-link resource addressing and routing database that synchronizes the monitoring server and the cross-link gateway through a synchronization mechanism and a protocol, so as to realize that the monitoring party or the transaction source chain can randomly address and access resources in the network. The cross-link routing Protocol may be based on a UDP (User Datagram Protocol) Protocol or a TLS (Transport Layer Security) Protocol as required.
The common format of the synchronization protocol across the link is set as shown in table 1, and the meanings of the fields of the corresponding protocol are shown in table 2. The protocol data packet sent in the device status period is defined in a protocol general format, a value of a protocol type field is 0x01, please refer to table 3, where table 3 is a format of a "data" field, and table 4 is a definition of a "data" field. The definition of the data packet of the device status change sending protocol is shown in a general protocol format, the value of the protocol type field is 0x02, and the format and the definition of the data field are respectively shown in table 3 and table 4.
For a resource addressing database data request protocol, a data packet definition of a device state period sending protocol is in a protocol general format, a protocol type field takes a value of 0x03, and a data field is null.
For the resource addressing database data transmission protocol, the data packet definition of the device status periodic transmission protocol is shown in a protocol general format, the value of the protocol type field is 0x04, the data field is composed of the number of addressing records and a plurality of addressing records, as shown in table 5, the specific definition refers to table 6, and the format corresponding to each record is shown in table 3.
TABLE 1 Cross-Link synchronization protocol generic Format
TABLE 2 meanings of the fields of the protocol
TABLE 3 Format for the "data" field
TABLE 4 definition of the "data" field
TABLE 5
Data num | Data1 | Data2 | Data3 | ...... | Datan |
Number of records | Record 1 | Record 2 | Record 3 | ....... | Record n |
TABLE 6
Each addressing record is defined in Table 4 below as a resource addressing route synchronization protocol specification for federation chain supervision
The invention designs a supervision system architecture facing the alliance chain according to the supervision requirement and characteristics of the alliance chain, a resource uniform addressing mode and a cross-link routing synchronization mechanism and protocol can update the resource addressing routing table of equipment such as cross-link gateway nodes and supervision server nodes in real time, quickly position required resources for cross-link interoperation, and meet the supervision requirement of the alliance chain
Therefore, the embodiment unifies the resource addressing paradigm of cross-link access between the blockchains and between the supervision server and the blockchains, so that the supervisor and the service user do not need to care which region, mechanism or machine room the resource is located in when locating and accessing the blockchain resource under the complex service model, and do not need to care about the specific implementation of the blockchain where the resource is located, and the resource location and access can be realized only by providing the resource address and the related parameters.
Based on any of the above embodiments, in order to implement inter-federation chain transaction, the addressing route synchronization method for the federation chain supervision system further includes:
the resource addressing database is synchronized to the various federation chains so that the federation chains conduct cross-chain transactions against the resource addressing database.
Therefore, in the embodiment, the resource addressing database is synchronized to each alliance chain, and cross-chain transaction among the alliance chains is realized.
Based on any one of the above embodiments, in order to improve the efficiency of supervision, the present embodiment further includes:
and establishing communication connection with cross-chain gateways corresponding to a plurality of alliance chains.
That is to say, the federation chain supervision system corresponding to the method provided by this embodiment can supervise n (n is greater than or equal to 1) federation service chains; the alliance chain monitoring system comprises n interlinkage gateways (n is larger than or equal to 1), m monitoring servers (m is larger than or equal to 1) and k monitoring clients.
The embodiment provides a working method of a coalition chain supervision system, which comprises the following steps:
the monitoring client side issues a request for acquiring suspicious conditions, wherein the request can be issued by a user actively and can also be issued periodically for automatic monitoring;
the seed server or the conventional monitoring server respectively determines the corresponding cross-link gateway according to the identifier of the alliance link in the request, at this time, because the seed server or the conventional monitoring server is provided with a plurality of seed servers or conventional monitoring servers, the seed servers or the conventional monitoring servers respectively issue the request to the corresponding cross-link gateways, and then the alliance links corresponding to the cross-link gateways perform transaction to obtain corresponding suspicious transaction data; and then, the suspicious transaction data information is fed back to the seed server or the conventional monitoring server, and then a report is generated and fed back to the monitoring client to realize monitoring.
Further, after suspicious transaction data is found, the risk can be reduced by forced rollback.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an addressing route synchronization apparatus for a federation chain supervision system according to an embodiment of the present application, including:
a supervision interaction module 210, configured to obtain a request sent by a target supervision client;
the analysis processing module 220 is configured to obtain a cross-link gateway corresponding to the target alliance chain from a pre-stored resource addressing database according to the identifier of the requested target alliance chain, where the resource addressing database includes the identifier of the alliance chain and a corresponding relationship between the alliance chain and the cross-link gateway;
the inter-link communication module 230 is configured to initiate, by using the inter-link gateway, a transaction corresponding to the requested request content to the destination alliance chain, and obtain, by using the inter-link gateway, an execution result corresponding to the transaction after the destination alliance chain completes the transaction;
and the supervision interaction module 210 is further configured to feed back the execution result to the target supervision client.
Preferably, the method further comprises the following steps:
the registration request receiving module is used for receiving a registration request of a new alliance chain or a new supervision server when the supervision server is a seed server;
the updating module is used for updating the resource addressing database and synchronizing the resource addressing database to other monitoring servers after the registration of a new alliance chain or a new monitoring server is successful;
the resource addressing database request receiving module is used for receiving a resource addressing database request of a new cross-link gateway or a new supervision server corresponding to the new alliance chain;
and the sending module is used for sending the updated resource addressing database to the new cross-link gateway or the new supervision server according to the resource addressing database request.
Preferably, the method further comprises the following steps:
the resource addressing database updating module is used for acquiring the equipment states sent by other monitoring servers and the cross-link gateway and updating the resource addressing database according to the equipment states;
the device state comprises a device cycle state and a device change state.
Preferably, the supervision server conforms to the same resource addressing paradigm with each federation chain and with each federation chain; the resource addressing paradigm is [ federation chain ID ] [ federation chain resources ] [ resource methods ].
Preferably, the communication protocol between the supervision server and each federation chain, and between each federation chain, conforms to a resource addressing paradigm;
the cross-link protocol common format comprises magic numbers, protocol types, data packet lengths, hop numbers, data and check codes;
correspondingly, the data fields of the equipment state periodic sending protocol and the equipment state change sending protocol comprise equipment type, equipment code, IP address, equipment state, equipment description length and equipment description;
the data field of the resource addressing database request protocol is empty;
the data field of the resource addressing database data transmission protocol includes an addressing record number and a plurality of addressing records.
Preferably, the method further comprises the following steps:
and the synchronization module is used for synchronizing the resource addressing database to each alliance chain so as to facilitate the alliance chain to carry out cross-chain transaction according to the resource addressing database.
Preferably, the method further comprises the following steps:
and the communication establishing module is used for establishing communication connection with the chain-crossing gateways corresponding to the plurality of alliance chains.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
In the following, a supervision server provided by an embodiment of the present application is introduced, and the supervision server described below and the addressing route synchronization method for the federation chain supervision system described above may be referred to correspondingly.
The present application further provides a monitoring server, as shown in fig. 3, fig. 3 is a schematic structural diagram of the monitoring server provided in the embodiment of the present application, including:
a memory 301 for storing a computer program;
a processor 302 for implementing the steps of the method as described above when executing the computer program.
The memory 301 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor 302 provides the supervision server with computing and control capabilities and, when executing the computer program stored in the memory 301, may perform the following steps: acquiring a request sent by a target supervision client; obtaining a cross-link gateway corresponding to the target alliance chain from a pre-stored resource addressing database according to the requested identification of the target alliance chain, wherein the resource addressing database comprises the identification of the alliance chain and the corresponding relation between the alliance chain and the cross-link gateway; initiating a transaction corresponding to the requested request content to a target alliance chain by using a cross-chain gateway, and acquiring an execution result corresponding to the transaction through the cross-chain gateway after the target alliance chain finishes the transaction; and feeding back the execution result to the target supervision client.
On the basis of the foregoing embodiment, as a preferred implementation, referring to fig. 4, fig. 4 is a structural diagram of another supervision server provided in an embodiment of the present application, where the supervision server further includes:
and an input interface 303 connected to the processor 302, for obtaining computer programs, parameters and instructions imported from outside, and storing the computer programs, parameters and instructions into the memory 301 under the control of the processor 302. The input interface 303 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch layer covered on a display screen, or a button, a track ball or a touch pad arranged on a terminal shell, or a keyboard, a touch pad or a mouse, etc.
And a display unit 304, connected to the processor 302, for displaying the data sent by the processor 302. The display unit 304 may be a display screen on a Personal Computer (PC), a liquid crystal display screen, an electronic ink display screen, or the like.
And a network port 305 connected to the processor 302 for performing communication connection with external terminal devices. The communication technology used by the communication connection may be a wired communication technology or a wireless communication technology, such as a Mobile High-Definition Link (MHL), a Universal Serial Bus (USB), a High-Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low-power bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.
Since the embodiment of the supervision server part corresponds to the embodiment of the method part, the embodiment of the supervision server part is described with reference to the embodiment of the method part, and is not repeated here.
In the following, a federation chain supervision system provided by an embodiment of the present application is introduced, and the federation chain supervision system described below and the addressing route synchronization method for the federation chain supervision system described above may be referred to correspondingly.
The application provides a coalition chain supervisory systems, includes:
a plurality of federation chains;
a cross-link gateway connected to the federation link; each alliance chain corresponds to a unique cross-chain gateway;
the supervision server is connected with a plurality of cross-link gateways;
and the supervision client is connected with the plurality of supervision servers.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a federation chain supervision system according to an embodiment of the present application, where the federation chain supervision system includes three federation chains, three cross-chain gateways, two seed servers, one conventional supervision server, and three supervision clients.
Further discussion is made with respect to the federation chain. A business federation chain is an object that is being managed, as further elaborated on cross-chain gateways. The cross-chain gateway assumes two roles: firstly, connecting different service alliance chains; and secondly, connecting the supervision server with the service alliance chain. The cross-link gateway is a key access port capable of meeting the requirements of service link access convenience and multi-level expansibility. The cross-link gateway can be a general server or a computer, and the software on the cross-link gateway comprises a network connection module, a resource addressing routing module, a cross-link adapter and the like. The network connection module is mainly responsible for carrying out network communication with a service chain, other cross-chain gateways and a supervision server; the addressing route resource module internally maintains a whole network addressing route database and records the association relation of the resource routing addresses; the cross-link adapter is used for bridging the service system and the service process of the block chain to convert the interface of the service block chain into a uniform interface calling form, so that the monitored server or other service chain cross-link gateways can conveniently call in a standard uniform interface form.
Further elaboration is made with respect to the administration server. The supervision server is divided into a common supervision server and a seed server. Compared with the common supervision server, the seed server is added with the functions of receiving other equipment registration requests and forwarding the states of all nodes in the whole network and responding to other equipment requests to address a routing database in the whole network, when a new service alliance chain enters the supervision system through a cross-chain gateway, the seed server must register with the seed server, and then the seed server synchronizes a resource routing address table to the cross-chain gateway and other supervision servers in the system. The supervision server can be a general server or a computer, the functions of the supervision server mainly analyze the request of the supervision client, look up a cross-link gateway corresponding to a destination chain according to a resource routing address hash table, transmit and initiate transaction through the cross-link by a network, and an execution result is returned to a source chain or the supervision server through the mode and finally returned to the supervision client. The supervision server comprises a supervision interaction module, an analysis processing module, an inter-chain communication module and a resource addressing routing module. The supervision interaction module mainly receives the requirements of the supervision client and returns the analysis processing result to the supervision client; the analysis processing module analyzes and processes the requirement, reads the source addressing routing database to search a chain from which the resource needs to be acquired, analyzes and processes the acquired data and returns the data to the supervision interaction module or the inter-chain interaction module; the resource addressing routing module maintains a resource addressing routing database of the whole network to record the association relation of the resource routing addresses; the inter-chain communication module is responsible for reading or writing data from the different destination chains.
The supervision client is further explained to be a server or a computer interrupt, and mainly provides an interaction function for a user and a supervision system, receives supervision operation requirements of the user, and presents an analysis result and a processing result to the user.
As the embodiment of the federation chain supervision system component corresponds to the embodiment of the addressing route synchronization method component for the federation chain supervision system, reference is made to the description of the embodiment of the addressing route synchronization method component for the federation chain supervision system in the embodiment of the federation chain supervision system component, and details are not described here for the moment.
The following describes a computer-readable storage medium provided by an embodiment of the present application, and the computer-readable storage medium described below and the addressing route synchronization method for a federation chain supervision system described above may be referred to correspondingly.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the address route synchronization method as above towards a federation chain supervision system.
Since the embodiment of the computer-readable storage medium portion corresponds to the embodiment of the addressing route synchronization method portion for the federation chain supervision system, for the embodiment of the computer-readable storage medium portion, reference is made to the description of the embodiment of the addressing route synchronization method portion for the federation chain supervision system, and details are not repeated here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The addressing route synchronization method, device, supervision server and system for the federation chain supervision system provided by the present application are described in detail above. The principles and embodiments of the present application are described herein using specific examples, which are only used to help understand the method and its core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
Claims (10)
1. An addressing route synchronization method for a alliance chain supervision system is applied to any supervision server in the alliance chain supervision system, and comprises the following steps:
acquiring a request sent by a target supervision client;
obtaining a cross-link gateway corresponding to the target alliance chain from a pre-stored resource addressing database according to the identification of the target alliance chain of the request, wherein the resource addressing database comprises the identification of the alliance chain and the corresponding relation between the alliance chain and the cross-link gateway; the corresponding relation is the corresponding relation between the alliance chain ID and the cross-chain gateway IP address;
initiating a transaction corresponding to the requested content of the request to the target alliance chain by using the cross-chain gateway, and obtaining an execution result corresponding to the transaction through the cross-chain gateway after the target alliance chain completes the transaction;
and feeding back the execution result to the target supervision client.
2. A federation chain supervision system oriented addressing route synchronization method as claimed in claim 1 further comprising:
when the supervision server is a seed server, receiving a registration request of a new alliance chain or a new supervision server;
when the new alliance chain or the new supervision server is successfully registered, updating the resource addressing database and synchronizing to other supervision servers;
receiving a resource addressing database request of a new cross-link gateway or the new supervision server corresponding to the new alliance link;
and sending the updated resource addressing database to the new cross-link gateway or the new supervision server according to the resource addressing database request.
3. A federation chain supervision system oriented addressing route synchronization method as claimed in claim 2 further comprising:
acquiring the equipment states sent by the other monitoring servers and the cross-link gateway, and updating the resource addressing database according to the equipment states;
wherein the device state includes a device cycle state and a device change state.
4. A federation chain supervision system-oriented addressing route synchronization method as recited in claim 1, further comprising:
and synchronizing the resource addressing database to each alliance chain so that the alliance chain can conduct cross-chain transaction according to the resource addressing database.
5. A federation chain supervision system oriented addressing route synchronization method as claimed in claim 1 further comprising:
and establishing communication connection with the cross-chain gateways corresponding to a plurality of alliance chains.
6. A federation chain supervision system oriented addressing route synchronisation method according to any one of claims 1 to 5, in which the supervision server conforms to the same resource addressing paradigm with each of the federation chains, and with each of the federation chains; the resource addressing paradigm is [ federation chain ID ] - [ federation chain resources ] - [ resource method ].
7. A federation chain supervision system oriented addressing route synchronization method as claimed in claim 6 wherein the communication protocol between the supervision server and each of the federation chains, or between each of the federation chains, conforms to the resource addressing paradigm;
the universal format of the synchronous protocol of the cross-link route comprises magic numbers, protocol types, data packet lengths, hop numbers, data and check codes;
correspondingly, the data fields of the equipment state periodic sending protocol and the equipment state change sending protocol comprise equipment type, equipment code, IP address, equipment state, equipment description length and equipment description;
the data field of the resource addressing database request protocol is empty;
the data field of the resource addressing database data transmission protocol includes an addressing record number and a plurality of addressing records.
8. An addressing route synchronization device facing a alliance chain supervision system, comprising:
the supervision interaction module is used for acquiring a request sent by a target supervision client;
the analysis processing module is used for obtaining a cross-link gateway corresponding to the target alliance chain from a pre-stored resource addressing database according to the identification of the target alliance chain of the request, wherein the resource addressing database comprises the identification of the alliance chain and the corresponding relation between the alliance chain and the cross-link gateway; the corresponding relation is the corresponding relation between the alliance chain ID and the cross-chain gateway IP address;
the inter-link communication module is used for initiating a transaction corresponding to the requested request content to the target alliance link by using the cross-link gateway, and acquiring an execution result corresponding to the transaction through the cross-link gateway after the target alliance link completes the transaction;
the supervision interaction module is further used for feeding back the execution result to the target supervision client.
9. A regulatory server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the addressing route synchronization method for a federation chain supervision system as defined in any one of claims 1 to 7 when executing said computer program.
10. A federation chain supervision system, comprising:
a plurality of federation chains;
a cross-link gateway connected to the federation link; each alliance chain corresponds to a unique cross-chain gateway;
the administration server of claim 9 connected to a plurality of the cross-chain gateways;
and the supervision client is connected with a plurality of supervision servers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110656848.XA CN113242317B (en) | 2021-06-11 | 2021-06-11 | Addressing route synchronization method and related device for alliance chain supervision system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110656848.XA CN113242317B (en) | 2021-06-11 | 2021-06-11 | Addressing route synchronization method and related device for alliance chain supervision system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113242317A CN113242317A (en) | 2021-08-10 |
CN113242317B true CN113242317B (en) | 2022-08-19 |
Family
ID=77139774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110656848.XA Active CN113242317B (en) | 2021-06-11 | 2021-06-11 | Addressing route synchronization method and related device for alliance chain supervision system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113242317B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114298672A (en) * | 2021-12-27 | 2022-04-08 | 中国联合网络通信集团有限公司 | Fishery production supervision system, method, equipment and storage medium based on alliance chain |
CN115065535B (en) * | 2022-06-16 | 2023-12-15 | 南京第三极区块链科技有限公司 | Non-invasive secure communication and access control system and application method thereof |
CN116016523B (en) * | 2023-03-22 | 2023-07-14 | 浪潮电子信息产业股份有限公司 | Data access method, device, system and medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110266655B (en) * | 2019-05-30 | 2021-11-12 | 中国工商银行股份有限公司 | Cross-chain interconnection method, device and system based on block chain |
CN112243047B (en) * | 2019-07-19 | 2022-04-01 | 傲为有限公司 | Public chain based block chain network addressing method |
US11880809B2 (en) * | 2019-10-10 | 2024-01-23 | Frontage Road Holdings, Llc | Blockchain cross-chain non-fungible token exchange |
CN111163129B (en) * | 2019-12-05 | 2021-12-14 | 深圳前海微众银行股份有限公司 | Resource processing method and device based on cross-link network |
CN111181968B (en) * | 2019-12-30 | 2021-09-21 | 北京金山云网络技术有限公司 | Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system |
-
2021
- 2021-06-11 CN CN202110656848.XA patent/CN113242317B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113242317A (en) | 2021-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113242317B (en) | Addressing route synchronization method and related device for alliance chain supervision system | |
US9774697B2 (en) | Method, apparatus, and system for pushing notification | |
US11089094B2 (en) | Collaborator network creation using cloud-based metadata | |
US20150358272A1 (en) | Method and apparatus for message transmission | |
WO2016160184A1 (en) | Systems and techniques for web communication | |
CN105528728A (en) | Mall e-commerce service platform based on cloud computing and method thereof | |
CN105531979B (en) | It is a kind of for exchanging the method and server of data between a client and a server | |
CN114024972B (en) | Long connection communication method, system, device, equipment and storage medium | |
CN107517227B (en) | Session implementation method and device for distributed consistency system | |
CN106993043B (en) | Data communication system and method based on agency | |
CN115951923B (en) | Subscription event management method, display system, device and storage medium | |
CN113127732A (en) | Method and device for acquiring service data, computer equipment and storage medium | |
CN112787975B (en) | Method, device and system for determining type of access device | |
CN115052041A (en) | Channel identification distribution method, device, equipment and storage medium | |
US11797573B2 (en) | Dynamic and selective object update for local storage copy based on network connectivity characteristics | |
WO2024103943A1 (en) | Service processing method and apparatus, storage medium, and device | |
CN110113430B (en) | Communication method between mobile phone and raspberry pie based on cloud database | |
CN112367411B (en) | Intelligent POCT detection equipment and management method thereof | |
CN105933352B (en) | Method of data synchronization, client and system between client-based server | |
CN109040331A (en) | The processing method of electronic business card, calculates equipment and storage medium at device | |
CN110417636A (en) | A kind of the self-organizing instantaneous communication system and its method of decentralization | |
CN108900575B (en) | Long connection hierarchical communication method and system based on mobile terminal | |
CN113746909A (en) | Network connection method, device, electronic equipment and computer readable storage medium | |
CN104753990B (en) | A kind of method of data synchronization, device and system | |
CN114547046A (en) | Standing book data management method, device, equipment and computer storage medium |
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 |