CN113242317A - 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 PDF

Info

Publication number
CN113242317A
CN113242317A CN202110656848.XA CN202110656848A CN113242317A CN 113242317 A CN113242317 A CN 113242317A CN 202110656848 A CN202110656848 A CN 202110656848A CN 113242317 A CN113242317 A CN 113242317A
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.)
Granted
Application number
CN202110656848.XA
Other languages
Chinese (zh)
Other versions
CN113242317B (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.)
Guangdong Inspur Smart Computing Technology Co Ltd
Original Assignee
Guangdong Inspur Smart Computing Technology 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 Guangdong Inspur Smart Computing Technology Co Ltd filed Critical Guangdong Inspur Smart Computing Technology Co Ltd
Priority to CN202110656848.XA priority Critical patent/CN113242317B/en
Publication of CN113242317A publication Critical patent/CN113242317A/en
Application granted granted Critical
Publication of CN113242317B publication Critical patent/CN113242317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling 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/63Routing a service request depending on the request content or context
    • 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 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

Addressing route synchronization method and related device for alliance chain supervision system
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 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.
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-chain gateways corresponding to a plurality of alliance chains.
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 with each of 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 identifier of the target alliance chain of the request, wherein the resource addressing database comprises the identifier 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 system as described above when executing the computer program.
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;
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 needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only 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, this 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 provided 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 a 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 supervision is completed by performing addressing from the resource addressing database according to the request, and only the identifier of the target alliance chain and the corresponding transaction content need to achieve resource positioning and access, and it is not necessary to care which region, 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 federation chain supervision system corresponding to the addressing route synchronization method for a federation chain supervision system provided in this embodiment mainly includes a supervision client, a supervision server, a cross-chain gateway, and a federation chain uniquely corresponding to the cross-chain gateway, where a supervision request is issued by a target client, after receiving the request, the supervision server performs addressing based on a resource addressing database to obtain the cross-chain gateway of a target federation chain, and initiates a transaction corresponding to the requested content to the target federation chain by using the cross-chain gateway, that is, only needs to perform addressing from the resource addressing database according to the request and then complete supervision, and can realize resource location and access only according to the identifier of the target federation chain and the corresponding transaction content, without concerning which region, institution or machine room the resource is located, and without concerning the specific implementation of the federation chain in which the resource is located, 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.
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 supervision server is a seed server, receiving a registration request of a new alliance chain or a new supervision 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, and when a new alliance chain enters the supervision system through the cross-chain gateway, the seed server must register with the seed server, and then the seed server synchronizes the resource addressing database (comprising the 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 alliance 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 this embodiment, the number of the supervision servers is not fixed, the number of the users can be set according to actual needs, which is at least greater than 2, so as to ensure the needs of a plurality of users, and a full-network resource addressing database is maintained in the supervision servers so as to record the association relationship of the resource routing addresses, and the resource addressing database is updated according to state changes, so as to realize the accuracy of database information.
For example, for a common supervision server, after powering on, the device type, ID (Identity document), IP Address (Internet Protocol Address), and information type are sent 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; and 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 the 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 is periodically sent to another seed server, 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 immediately sent; meanwhile, the data packets received from other devices are forwarded to all the seed servers, the supervision servers and the cross-link gateways connected with the seed servers, the supervision servers and the cross-link gateways. Once the seed server monitors that a certain cross-link gateway and a supervision server are disconnected with the network, the seed server can modify the equipment state of the addressing record and actively sends the equipment state information to the seed server, the supervision server and the cross-link gateway 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 platform of the blockchain used by the service federation chain is various, and the resources on the blockchain platform are also various, and there are intelligent contracts, assets, channels, data tables, etc., in order to facilitate cross-chain access between the supervisor access blockchain and mutual access between the supervisor server and the blockchain, the supervisor server and each federation chain, and each federation chain in this embodiment 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 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;
and the data field of the resource addressing database data transmission protocol comprises the addressing record number 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 for setting the cross-link is shown in table 1, and the meanings of each field of the corresponding protocol are shown in table 2. The definition of the protocol data packet sent in the device status period is shown in a protocol general format, the value of the protocol type field is 0x01, please refer to table 3, table 3 is the format of the data field, and table 4 is the definition of the 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
Figure BDA0003113343080000101
TABLE 2 meanings of the fields of the protocol
Figure BDA0003113343080000111
TABLE 3 format for the "data" field
Figure BDA0003113343080000112
TABLE 4 definition of the "data" field
Figure BDA0003113343080000121
TABLE 5
Data num Data1 Data2 Data3 ...... Datan
Number of records Record 1 Record 2 Record 3 ....... Record n
TABLE 6
Figure BDA0003113343080000122
Each addressing record is defined in the following Table 4 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, supervision server nodes and the like 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:
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.
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 supervision server, and then a report is generated and fed back to the supervision client to realize supervision.
Further, after suspicious transaction data is found, the risk can be reduced by forced rollback.
The addressing route synchronization device for a federation chain supervision system provided in the embodiment of the present application is introduced below, the addressing route synchronization device for a federation chain supervision system described below and the addressing route synchronization method for a federation chain supervision system described above may refer to each other correspondingly, and the relevant modules are all disposed in the supervision server, referring to fig. 2, where fig. 2 is a schematic structural diagram of the addressing route synchronization device for a federation chain supervision system provided in the embodiment of the present application, and the schematic structural diagram includes:
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 a transaction corresponding to the requested request content to the destination alliance link by using the inter-link gateway, and obtain an execution result corresponding to the transaction through the inter-link gateway after the destination alliance link 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 monitoring 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 protocols between the supervision server and each federation chain, and between each federation chain, conform 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 supervising server with computing and control capabilities, and when executing the computer program stored in the memory 301, the following steps may be implemented: 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 requested 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 the embodiment of the present application, where the supervision server further includes:
and the input interface 303 is connected with the processor 302 and is used for acquiring computer programs, parameters and instructions imported from the 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 which can meet the 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 relationship of the resource routing address; the cross-link adapter is used for bridging the service process of the service system and the block chain, and converting 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 call the service block chain in a standard uniform interface form conveniently.
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.
Since the embodiment of the federation chain supervision system portion corresponds to the embodiment of the addressing route synchronization method portion oriented to the federation chain supervision system, for the embodiment of the federation chain supervision system portion, refer to the description of the embodiment of the addressing route synchronization method portion oriented to the federation chain supervision system, which is not described herein for the sake of brevity.
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 explained herein using specific examples, which are provided only to help understand the method and the 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;
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 claimed 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, 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 identifier of the target alliance chain of the request, wherein the resource addressing database comprises the identifier 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.
9. An administration 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.
CN202110656848.XA 2021-06-11 2021-06-11 Addressing route synchronization method and related device for alliance chain supervision system Active CN113242317B (en)

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 true CN113242317A (en) 2021-08-10
CN113242317B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065535A (en) * 2022-06-16 2022-09-16 南京第三极区块链科技有限公司 Non-invasive safety communication and access control system and use method thereof
CN116016523A (en) * 2023-03-22 2023-04-25 浪潮电子信息产业股份有限公司 Data access method, device, system and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266655A (en) * 2019-05-30 2019-09-20 中国工商银行股份有限公司 A kind of across chain interconnected method, equipment and system based on block chain
CN111163129A (en) * 2019-12-05 2020-05-15 深圳前海微众银行股份有限公司 Resource processing method and device based on cross-link network
CN111181968A (en) * 2019-12-30 2020-05-19 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system
CN112243047A (en) * 2019-07-19 2021-01-19 傲为信息技术(江苏)有限公司 Public chain based block chain network addressing method
US20210133700A1 (en) * 2019-10-10 2021-05-06 Forte Labs, Inc. Blockchain Cross-Chain Non-Fungible Token Exchange

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266655A (en) * 2019-05-30 2019-09-20 中国工商银行股份有限公司 A kind of across chain interconnected method, equipment and system based on block chain
CN112243047A (en) * 2019-07-19 2021-01-19 傲为信息技术(江苏)有限公司 Public chain based block chain network addressing method
US20210133700A1 (en) * 2019-10-10 2021-05-06 Forte Labs, Inc. Blockchain Cross-Chain Non-Fungible Token Exchange
CN111163129A (en) * 2019-12-05 2020-05-15 深圳前海微众银行股份有限公司 Resource processing method and device based on cross-link network
CN111181968A (en) * 2019-12-30 2020-05-19 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065535A (en) * 2022-06-16 2022-09-16 南京第三极区块链科技有限公司 Non-invasive safety communication and access control system and use method thereof
CN115065535B (en) * 2022-06-16 2023-12-15 南京第三极区块链科技有限公司 Non-invasive secure communication and access control system and application method thereof
CN116016523A (en) * 2023-03-22 2023-04-25 浪潮电子信息产业股份有限公司 Data access method, device, system and medium

Also Published As

Publication number Publication date
CN113242317B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN107645529B (en) Heartbeat packet sending method and device
US9774697B2 (en) Method, apparatus, and system for pushing notification
CN113242317B (en) Addressing route synchronization method and related device for alliance chain supervision system
CN105528728A (en) Mall e-commerce service platform based on cloud computing and method thereof
CN114024972B (en) Long connection communication method, system, device, equipment and storage medium
WO2016160184A1 (en) Systems and techniques for web communication
CN107517227B (en) Session implementation method and device for distributed consistency system
CN105898893B (en) Full-duplex communication method for mobile terminal and Internet of things equipment
CN101510793A (en) Method for implementing a plurality of Bluetooth device networking through Bluetooth server, software program and server
CN113127732A (en) Method and device for acquiring service data, computer equipment and storage medium
CN101783742B (en) Discovery method and device of network topology
CN114221985A (en) Device control method, device, electronic device and computer-readable storage medium
CN115951923B (en) Subscription event management method, display system, device and storage medium
CN110113430B (en) Communication method between mobile phone and raspberry pie based on cloud database
CN107302448B (en) Port snoop method and device
CN112367411B (en) Intelligent POCT detection equipment and management method thereof
CN111726417B (en) Delay control method, device, server and storage medium
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
CN110401557B (en) Network configuration method and device of terminal equipment and server
CN113094131A (en) Prompt resource display method, device, terminal, server and storage medium
CN103200211B (en) A kind of method of data synchronization, system and equipment
CN104408551A (en) Equipment registration method and system
RU2766532C1 (en) Method and system for interaction of programs and devices using control platform

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