Interconnection method, device and equipment of cross-region control console and storage medium
By using a cross-regional console interconnection method and employing identity certificate authentication and interconnection configuration files, automated interconnection between distributed consoles was achieved. This solved the problem of high error rates in inter-console communication, enabled fast and efficient platform-level interconnection, and met the expansion needs of the business alliance network.
Patent Information
- Application Number
- CN202210471386.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-04-28
AI Technical Summary
During the establishment of the business alliance network, the high error rate of blockchain node interconnection between distributed consoles leads to the inability to communicate normally. The existing manual DNS service configuration method cannot meet the configuration requirements of the ever-expanding business alliance network.
By using a cross-regional console interconnection method, and leveraging identity certificate authentication and interconnection configuration files, automated interconnection between consoles is achieved. This includes identity certificate generation, authentication, and configuration file exchange, ensuring successful communication connections between consoles.
It reduced the error rate of inter-console interconnection, achieved fast and efficient platform-level interconnection, avoided connection failures caused by incorrect or missing domain names and IP addresses, and met the expansion needs of the business alliance network.
Smart Images

Figure CN117014484B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of blockchain technology, and provides a method, apparatus, device, and storage medium for interconnecting cross-regional consoles. Background Technology
[0002] Consortium blockchains and public blockchains are the two main forms of blockchain technology today. Currently, in consortium blockchain use cases, participating organizations are generally located in different regions. However, centralized blockchain management platforms require centralized deployment of blockchain nodes, which does not align with the deployment model of consortium blockchains. Therefore, distributed control consoles have become a future development trend for consortium blockchains.
[0003] Consoles distributed across different regions can only manage their own blockchain node clusters. To build a business alliance network across multiple consoles, the blockchain nodes managed by other consoles must be manually configured into the Domain Name System (DNS) service of the current console to enable normal communication between multiple blockchain nodes belonging to different consoles.
[0004] However, as the number of consoles joining the business alliance network increases, the number of nodes also grows exponentially. During manual DNS configuration, errors or omissions in entering the blockchain node's domain name and Internet Protocol (IP) address can easily occur, causing the blockchain node to be unable to connect to other console blockchain nodes. Therefore, manually configuring the DNS service is no longer sufficient to meet the configuration needs of the ever-expanding business alliance network. Summary of the Invention
[0005] This application provides a method, apparatus, device, and storage medium for interconnecting cross-regional consoles to address the problem of high error rates in the interconnection of blockchain nodes during the formation of a business alliance network.
[0006] In a first aspect, embodiments of this application provide a method for interconnecting cross-regional consoles, applicable to various consoles distributed in different regions, including:
[0007] The second console obtains a first identity certificate generated based on the first console identifier from the interconnection request sent by the first console, performs certificate authentication on the first identity certificate, and sends a second identity certificate generated based on the second console identifier to the first console, so that the first console performs certificate authentication on the second identity certificate;
[0008] When the second console determines that both identity certificates have been authenticated, it sends a second interconnection configuration file generated based on the identity information of the second console and the second network address to the first console, so that the first console can establish a communication connection with the second console based on the obtained second interconnection configuration file;
[0009] When the second console receives the first interconnect configuration file generated based on the identity information and the first network address of the first console, it establishes a communication connection with the first console based on the first interconnect configuration file, and determines that the interconnection with the first console is successful when the channel detection is successful.
[0010] Secondly, embodiments of this application also provide a method for interconnecting cross-regional consoles, applied to a server providing identity management services, the method comprising:
[0011] When the server receives an identifier generation request from the second console, it generates a corresponding second console identifier.
[0012] The server generates a second identity certificate for the second console based on the second console identifier and the second public key sent by the second console, and sends the second identity certificate and a root certificate used to verify the legality of the identity certificate to the second console, so that the second console can use the second identity certificate and the root certificate to perform certificate authentication on the first identity certificate of the first console that applied for interconnection.
[0013] Thirdly, embodiments of this application also provide an interconnection device for cross-regional consoles, applicable to various consoles distributed in different regions, the device comprising:
[0014] The certificate authentication unit is used to obtain a first identity certificate generated based on the first console identifier from the interconnection request sent by the first console, perform certificate authentication on the first identity certificate, and send a second identity certificate generated based on the second console identifier to the first console, so that the first console performs certificate authentication on the second identity certificate;
[0015] The console interconnection unit is used to send a second interconnection configuration file generated based on the identity information and the second network address of the second console to the first console when it is determined that both identity certificates have been authenticated, so that the first console can establish a communication connection with the second console based on the obtained second interconnection configuration file;
[0016] Upon receiving the first interconnect configuration file generated based on the identity information and the first network address of the first console, a communication connection is established with the first console based on the first interconnect configuration file, and the interconnection with the first console is confirmed to be successful upon successful channel detection.
[0017] Optionally, before the second console receives the interconnection request sent by the first console, the certificate authentication unit generates a second identity certificate for the second console in the following manner:
[0018] Send an identifier generation request to the server used to provide identity management services, and generate a second public-private key pair;
[0019] Upon receiving the second console identifier returned by the server, the server sends the second console identifier and the second public key to the server so that the server generates the second identity certificate based on the second console identifier and the second public key.
[0020] Optionally, the identity information of the second console includes a second interconnect signature, which is generated by the console interconnect unit in the following manner:
[0021] Perform a hash operation on the second console identifier, the second identity certificate, and the second network address to obtain digest information;
[0022] The digest information is encrypted using a second private key to obtain the second interconnect signature.
[0023] Optionally, the certificate authentication unit is used for:
[0024] The root certificate is used to verify the legitimacy of the first identity certificate. If the verification is successful, the first public key carried by the first identity certificate is used to encrypt the string.
[0025] The encrypted string is sent to the first console, so that the first console can decrypt the encrypted string using the first private key and return the decryption result;
[0026] When the decryption result matches the string, the first identity certificate is determined to be authenticated.
[0027] Optionally, the console interconnection unit determines that the channel detection was successful using the following method:
[0028] After establishing a communication connection with the first console, a probe request is sent to the first console;
[0029] When a probe request is received from the first console, and it is determined that the first console has also received the probe request, the channel detection is considered successful.
[0030] Fourthly, this application embodiment also provides an interconnection device for cross-regional consoles, applied to a server providing identity management services, the device comprising:
[0031] The identifier generation unit is used to generate a corresponding second console identifier when it receives an identifier generation request sent by the second console.
[0032] The certificate generation unit is used to generate a second identity certificate for the second console based on the second console identifier and the second public key sent by the second console, and send the second identity certificate and the root certificate used to verify the legality of the identity certificate to the second console, so that the second console can use the second identity certificate and the root certificate to perform certificate authentication on the first identity certificate of the first console applying for interconnection.
[0033] Optionally, the identifier generation unit is used for:
[0034] Upon receiving an identifier generation request from the second console, the second console identifier is generated based on the suffix of the fixed identifier, the preset encrypted string, and the dynamic identifier.
[0035] Optionally, the certificate generation unit is used for:
[0036] Using the root certificate, a certificate is issued for the second console identifier and the second public key sent by the second console, generating a second identity certificate for the second console.
[0037] Fifthly, embodiments of this application also provide a computer device, including a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the processor to perform the steps of any of the above-described methods for interconnecting cross-regional consoles.
[0038] Sixthly, embodiments of this application also provide a computer-readable storage medium including program code, which, when the program product is run on a computer device, is used to cause the computer device to perform the steps of any of the above-described cross-regional console interconnection methods.
[0039] In a seventh aspect, embodiments of this application also provide a computer program product, including computer instructions, which, when executed by a processor, implement the steps of any of the above-described methods for interconnecting cross-regional consoles.
[0040] The beneficial effects of this application are as follows:
[0041] This application provides a method, apparatus, device, and storage medium for cross-regional console interconnection. The method is applied to various consoles distributed in different regions, specifically including: a second console obtaining a first identity certificate generated based on the identifier of the first console from an interconnection request sent by the first console, authenticating the first identity certificate, and sending a second identity certificate generated based on the identifier of the second console to the first console, so that the first console can authenticate the second identity certificate; then, when the second console determines that both identity certificates have been authenticated, it sends a second interconnection configuration file generated based on the identity information and second network address of the second console to the first console, so that the first console can establish a communication connection with the second console based on the obtained second interconnection configuration file; subsequently, when the second console receives the first interconnection configuration file generated based on the identity information and first network address of the first console, it establishes a communication connection with the first console based on the first interconnection configuration file, and determines that the interconnection with the first console is successful when the channel detection is successful.
[0042] During the interconnection process between cross-regional consoles, the identity certificates generated by each other based on the console identifier are first verified. When both identity certificates are successfully authenticated, the interconnection configuration file generated according to the interconnection protocol is sent to the peer console. Based on the obtained interconnection configuration file, the two consoles establish communication connections with the peer console respectively. When the channel detection between the consoles is successful, the interconnection between the two consoles is confirmed to be successful. This transforms the complex node configuration work at the underlying level into a fast and efficient platform-level interconnection, realizing rapid interconnection at the console level. It avoids interconnection failures caused by incorrect or missing domain names and IP addresses of blockchain nodes during the interconnection process, thus reducing the interconnection error rate.
[0043] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description
[0044] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0045] Figure 1A This is an optional structural diagram of a blockchain system provided in an embodiment of this application;
[0046] Figure 1B This is an optional structural diagram of the block structure provided in the embodiments of this application;
[0047] Figure 1C A schematic diagram of the architecture for building a business alliance network based on a distributed console, as provided in the embodiments of this application;
[0048] Figure 2A A flowchart illustrating the method for interconnecting cross-regional consoles provided in this application embodiment;
[0049] Figure 2B A schematic diagram illustrating the process of applying for a second console identifier and a second identity certificate for the second console provided in this application embodiment;
[0050] Figure 2C A schematic diagram illustrating the process of authenticating a first identity certificate using a second console as provided in an embodiment of this application;
[0051] Figure 2D This is a schematic diagram of the routing and forwarding model provided in the embodiments of this application;
[0052] Figure 3 A schematic diagram illustrating the interconnection process between console A and console B provided in an embodiment of this application;
[0053] Figure 4 A schematic diagram illustrating the interconnection process between blockchain node a and blockchain node b provided in an embodiment of this application;
[0054] Figure 5 A schematic diagram of the structure of an interconnection device for cross-regional consoles distributed in different regions, provided in an embodiment of this application;
[0055] Figure 6 A schematic diagram of the structure of an interconnection device for a cross-regional console of a server providing identity management services, provided in an embodiment of this application;
[0056] Figure 7 This is a schematic diagram of the composition structure of a computer device provided in the embodiments of this application;
[0057] Figure 8 This is a schematic diagram of the structure of a computing device in an embodiment of this application. Detailed Implementation
[0058] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments of this application. Obviously, the described embodiments are only some embodiments of the technical solutions of this application, and not all embodiments. Based on the embodiments recorded in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the technical solutions of this application.
[0059] The following explanations of some terms used in the embodiments of this application are provided to facilitate understanding by those skilled in the art.
[0060] 1. Blockchain:
[0061] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms.
[0062] A blockchain is essentially a decentralized database, a chain of blocks linked together using cryptographic methods. Each block's header contains the hashes of all transactions within that block, as well as the hashes of all transactions in the previous block. These hashes connect the blocks, forming a strictly ordered chain structure. If data in one block is tampered with, the hashes of that block recorded in the headers of other blocks will also change, helping other blocks quickly detect the data tampering and discard the altered data. Therefore, a blockchain possesses the characteristic of immutability.
[0063] 2. Blockchain Network: Through a consensus mechanism, new blocks are incorporated into the blockchain node cluster.
[0064] A consensus mechanism is an algorithm that enables distributed consensus on blockchain transactions. A "consensus mechanism" uses voting by specific nodes to verify and confirm transactions in a very short time. If several nodes with unrelated interests can reach a consensus on a transaction, it can be assumed that the entire network can also reach a consensus on it.
[0065] Based on the degree of centralization of the blockchain network, three types of blockchains have been differentiated for different application scenarios:
[0066] (1) Public blockchain: A blockchain that is publicly available across the entire network and has no user authorization mechanism;
[0067] (2) Consortium blockchain: Allows authorized blockchain nodes to join the blockchain network, and is often used for blockchain between institutions;
[0068] (3) Private blockchain: All nodes in the network are controlled by a single organization.
[0069] 3. Command-line interactive console (referred to as the console):
[0070] The console is a front-end program that provides a command-line or visual graphical interface, making it easy for developers to create and manage blockchain networks.
[0071] The console establishes a connection with the blockchain nodes via the Java SDK, enabling read and write access requests to the blockchain node data. Furthermore, the console offers a rich set of commands, including querying the blockchain status, managing blockchain nodes, and deploying and invoking contracts.
[0072] 4. Transaction: Also known as a transaction request, it includes the operation that needs to be submitted to the blockchain network for execution, and the corresponding transaction result. It does not only refer to transactions in a business context, but given the conventional use of the term "transaction" in blockchain technology, this application embodiment also follows this convention.
[0073] The design concept of the embodiments of this application is briefly introduced below:
[0074] Consortium blockchains and public blockchains are the two main forms of blockchain technology today. Currently, in consortium blockchain use cases, participating organizations are generally located in different regions. However, centralized blockchain management platforms require centralized deployment of blockchain nodes, which does not align with the deployment model of consortium blockchains. Therefore, distributed control consoles have become a future development trend for consortium blockchains.
[0075] To better manage the blockchain network, a distributed console is deployed within the network, dividing all blockchain nodes into different blockchain node clusters, with each console managing a portion of that cluster.
[0076] Each console can form different business alliance networks based on the business types processed by the blockchain node cluster. During the formation of a business alliance network, blockchain nodes managed by other consoles can only be manually configured into the Domain Name System (DNS) service of the current console to enable normal communication between multiple blockchain nodes belonging to different consoles.
[0077] However, with the increasing number of consoles joining the business alliance network, the number of nodes has also grown exponentially. During manual DNS service configuration, errors such as incorrect or omitted domain names and IP addresses can easily occur, preventing blockchain nodes from connecting to other console nodes. Therefore, manually configuring DNS services is no longer sufficient to meet the configuration needs of the ever-expanding business alliance network.
[0078] In view of this, embodiments of this application provide a method for interconnecting consoles across different regions. This method is applied to consoles distributed across different regions and specifically includes: a second console obtaining a first identity certificate generated based on the identifier of the first console from an interconnection request sent by the first console, authenticating the first identity certificate, and sending a second identity certificate generated based on the identifier of the second console to the first console, so that the first console can authenticate the second identity certificate; then, when the second console determines that both identity certificates have been authenticated, it sends a second interconnection configuration file generated based on the identity information and second network address of the second console to the first console, so that the first console can establish a communication connection with the second console based on the obtained second interconnection configuration file; subsequently, when the second console receives the first interconnection configuration file generated based on the identity information and first network address of the first console, it establishes a communication connection with the first console based on the first interconnection configuration file, and determines that the interconnection with the first console is successful upon successful channel detection.
[0079] During the interconnection process between cross-regional consoles, the identity certificates generated by each other based on the console identifier are first verified. When both identity certificates are successfully authenticated, the interconnection configuration file generated according to the interconnection protocol is sent to the peer console. Based on the obtained interconnection configuration file, the two consoles establish communication connections with the peer console respectively. When the channel detection between the consoles is successful, the interconnection between the two consoles is confirmed to be successful. This transforms the complex node configuration work at the underlying level into fast and efficient platform-level interconnection, realizing rapid interconnection at the console level. It avoids the situation where the interconnection between blockchain nodes fails due to incorrect or missing domain names and IP addresses of blockchain nodes during the interconnection process, thus reducing the interconnection error rate.
[0080] The preferred embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit this application. Furthermore, the embodiments and features in the embodiments of this application can be combined with each other without conflict.
[0081] The system involved in the embodiments of this application can be a distributed system formed by a client and multiple blockchain nodes (computer devices that access the network in any form, such as servers, terminals, etc.) connected through a wired or wireless network.
[0082] Applying distributed system 100 to the field of blockchain technology yields results such as Figure 1A The blockchain system shown. See also... Figure 1A The diagram shows an optional structure of a blockchain system. The blockchain system consists of clients 300 and multiple blockchain nodes 200, which form a peer-to-peer (P2P) network.
[0083] In a blockchain system, any computer device (such as a server or terminal) can join the blockchain network and become a blockchain node. A blockchain node comprises a hardware layer, a middleware layer, an operating system layer, and an application layer.
[0084] participate Figure 1A The blockchain system shown will be explained in detail below, along with the functions of each blockchain node.
[0085] (1) The basic function of a blockchain node is routing, which is used to support communication between various blockchain nodes.
[0086] (2) Blockchain nodes also have application functions. These functions are used by blockchain nodes to implement specific business according to actual business needs, record data related to the implementation of the functions, and generate corresponding record data. The record data includes a digital signature used to indicate the source of the task data. The blockchain node then sends the record data to other blockchain nodes in the blockchain system. When other blockchain nodes successfully verify the source and integrity of the record data, they add the record data to a temporary block.
[0087] For example, because blockchain nodes have application functions, they can realize the following types of business:
[0088] (2.1) Wallet services provide the function of trading electronic currency. Wallet services include, but are not limited to: initiating transactions and querying the electronic currency balance in an electronic currency address. Initiating a transaction refers to sending the transaction record of the current transaction to other blockchain nodes in the blockchain system. After other blockchain nodes successfully verify the transaction record, as a response acknowledging that the transaction is valid, they store the transaction record data in a temporary block of the blockchain.
[0089] (2.2) Shared ledger provides operations such as storage, querying, and modification of ledger data. Records of operations performed on ledger data are sent to other blockchain nodes in the blockchain system. After other blockchain nodes successfully verify the transaction records, as a response acknowledging that the modified ledger data is valid, they store the record data in a temporary block of the blockchain and can also send confirmation messages to the blockchain node that initiated the operation.
[0090] (2.3) A smart contract is a computer protocol designed to transmit, verify, or execute contracts in an informational manner. Smart contracts allow for trusted transactions without the need for a third party; these transactions are traceable and irreversible. For example, it can track the logistics status of goods purchased by a buyer and transfer the buyer's electronic funds to the merchant's electronic account address after the buyer signs for the goods.
[0091] Of course, smart contracts are not limited to executing contracts for transactions; they can also execute contracts for processing received information.
[0092] (3) A blockchain consists of a series of blocks that are sequentially linked together in chronological order of their formation. Once a new block is added to the blockchain, it is not removed, and the blocks record the data submitted by the blockchain nodes in the blockchain system.
[0093] See Figure 1B The block structure shown has each block header containing the hash values of all transactions in that block, as well as the hash values of all transactions in the previous block. These hash values link the blocks together, forming a blockchain with a strict sequential relationship. In addition, each block also contains a timestamp indicating its creation.
[0094] This shows that blockchain is essentially a decentralized database, a series of blocks linked together using cryptographic methods. Each data block contains information used to verify the validity of information and to generate the next block.
[0095] Based on the degree of centralization in a blockchain network, three types of blockchains have emerged, each applied to different scenarios: public blockchains, private blockchains, and consortium blockchains. To better manage the blockchain network, distributed control consoles are deployed, dividing all blockchain nodes into different clusters. Each control console manages a portion of its cluster. Each control console can then form different business consortium networks based on the business types processed by its blockchain node cluster.
[0096] like Figure 1C As shown, the blockchain network includes a console (AD), each console manages a blockchain node cluster and maintains a management data synchronization database, which stores cluster management data generated when managing the blockchain node cluster.
[0097] Specifically, using the interconnection method provided in this application embodiment, a communication connection is established between console A and console B to form a financial alliance network AB for processing financial business; and using the interconnection method provided in this application embodiment, a communication connection is established between console BC, console BD, and console CD to form a supply chain alliance BCD for processing supply chain business.
[0098] The cross-regional console interconnection method provided in this application embodiment can be applied to various consoles distributed in different regions. Next, please refer to... Figure 2A The flowchart shown details the process of establishing interconnection between various consoles across different regions.
[0099] S201: The second console obtains a first identity certificate generated based on the identifier of the first console from the interconnection request sent by the first console, performs certificate authentication on the first identity certificate, and sends a second identity certificate generated based on the identifier of the second console to the first console, so that the first console performs certificate authentication on the second identity certificate.
[0100] In consortium blockchain use cases, when multiple consoles located in different regions are interconnected, it is necessary to verify each other's identities to ensure that the console identifiers of each console are not misused by third parties. Therefore, before executing the certificate authentication process, each console must have its own unique identity identifier (i.e., console identifier and identity certificate).
[0101] In this embodiment, a unified identity management service is deployed on a server, and a console identity system is designed based on the standard X.509 certificate to provide identity management services. Before interconnection, each console first applies to the unified identity management service on the server for its own console identifier and identity certificate.
[0102] Since the application process is the same across all consoles, for ease of description, we will use the second console as an example. (See attached document.) Figure 2B The flowchart shown illustrates the process by which the second console applies for a second console identifier and a second identity certificate.
[0103] S2011: The second console sends an identity generation request to the server used to provide identity management services and generates a second public-private key pair.
[0104] S2012: When the server receives an identifier generation request from the second console, it generates the corresponding second console identifier.
[0105] To prevent third parties from impersonating each console, each console must have its own unique console identifier. Since the Blockchain as a Service Identity (BaaSID) is unique, this embodiment uses the BaaSID as the console identifier.
[0106] When the server receives the identifier generation request from the second console, it calls the unified identity management service deployed on the server. The unified identity management service uses the suffix of the fixed identifier, the preset encrypted string, and the dynamic identifier as algorithm parameters and substitutes them into the unique identity (ID) generation algorithm to generate the second console identifier.
[0107] In this system, the suffix and preset encrypted string of the fixed identifier are fixed values, while the dynamic identifier is an auto-incrementing ID in the database, which is a dynamically changing algorithm parameter. With the first two algorithm parameters remaining constant, the generated second console identifier is guaranteed to be unique by controlling the change of the third algorithm parameter. Furthermore, the unified identity management service can also deduce the value of the third algorithm parameter based on the first two algorithm parameters and the second console identifier.
[0108] S2013: When the second console receives the second console identifier returned by the server, it sends the second console identifier and the second public key to the server.
[0109] S2014: The server generates a second identity certificate for the second console based on the second console identifier and the second public key sent by the second console, and sends the second identity certificate and the root certificate used to verify the legality of the identity certificate to the second console.
[0110] The server calls the unified identity management service deployed on the server. The unified identity management service is based on the standard X.509 certificate issuance principle. It uses the unified identity management service certificate as the root certificate to issue certificates for the second console identifier and the second public key sent by the second console, and generates the second identity certificate of the second console.
[0111] S2015: The second console stores the second public-private key pair, as well as the root certificate and second identity certificate returned by the server, locally.
[0112] After the second console obtains the second console identifier and the second identity certificate, upon receiving the interconnection request from the first console, it retrieves the first identity certificate generated based on the first console identifier from the interconnection request and sends the second identity certificate generated based on the second console identifier to the first console, so that the first console can perform certificate authentication on the second identity certificate.
[0113] In consortium blockchain use cases, when multiple consoles located in different regions interconnect, they need to verify each other's identities. Since the certificate authentication process is the same for both consoles, for ease of description, we will use the second console as an example. (See [link to documentation]). Figure 2C The flowchart shown illustrates the process of the second console authenticating the first identity certificate as follows.
[0114] S2011': The second console is based on the certificate chain verification principle. It uses the root certificate to verify the legitimacy of the first identity certificate. When the verification is successful, it uses the first public key carried by the first identity certificate to encrypt the randomly generated string.
[0115] S2012': The second console sends the encrypted string to the first console;
[0116] S2013': The first console uses the first private key to decrypt the encrypted string and obtain the decryption result;
[0117] S2014': The first console sends the decryption result to the second console;
[0118] S2015': The second console will match the received decryption result with the originally generated string. If the match is consistent, it will determine that the first identity certificate has been authenticated.
[0119] If the decryption result matches the original generated string, it means that the first identity certificate is correct and has passed the certificate authentication. The second console can use the first console identifier carried in the first identity certificate to identify the first console.
[0120] If the decryption result does not match the originally generated string, the second console will not recognize the first identity certificate and will refuse to connect to the first console.
[0121] S202: When the second console determines that both identity certificates have been authenticated, it sends a second interconnection configuration file generated based on the identity information of the second console and the second network address to the first console, so that the first console can establish a communication connection with the second console based on the obtained second interconnection configuration file.
[0122] In consortium blockchain use cases, when multiple consoles located in different regions interconnect, in addition to verifying each other's identities, they also need to know each other's network addresses to communicate. To transform the complex underlying node configuration work into fast and efficient platform-level interconnection, this application also designs an interconnection protocol to achieve rapid interconnection at the console level.
[0123] Interconnection protocols refer to the data that consoles need to exchange during interconnection. As shown in Table 1 for console B, the interconnection protocol includes the console's identity information and network address. The identity information specifically includes the console identifier, the console's identity certificate, and the interconnection signature, while the network address specifically includes the console's IP address and port.
[0124] Table 1
[0125] Fields describe BaaSID console identifier IP IP addresses used for internet communication Port Ports used for interconnect communication Certificate Identity certificate containing BaaSID Signature Interconnected signature
[0126] Once both identity certificates are authenticated, the two consoles generate their respective interconnection configuration files according to the pre-designed interconnection protocol. Taking the second console as an example, the second identity information and second network address of the second console are filled into the corresponding fields of the interconnection protocol, resulting in the second interconnection configuration file shown in Table 2.
[0127] Table 2
[0128] Fields Field value BaaSID tbaas-9o8m8id1xu IP 130.1.23.1 Port 9080 Certificate Identity certificate containing BaaSID Signature {BaaSID, IP, Port, Certificate}
[0129] The second interconnected signature is generated in the following way:
[0130] The second console performs a hash operation on the second console identifier, the second identity certificate, and the second network address to obtain digest information. Then, it uses the second private key to encrypt the digest information to obtain the second interconnect signature.
[0131] S203: When the second console receives the first interconnect configuration file generated based on the identity information and the first network address of the first console, it establishes a communication connection with the first console based on the first interconnect configuration file, and determines that the interconnection with the first console is successful when the channel detection is successful.
[0132] When the second console receives the first interconnect configuration file from the first console, it imports the first interconnect configuration file into its own DNS service so that the second console's DNS service can resolve the first interconnect configuration file, automatically retrieve the identity information and first network address of the first console carried in the configuration file, and establish a communication connection with the first console.
[0133] Similarly, the first console will also import the second interconnect configuration file of the second console into its own DNS service, so that the DNS service of the first console can resolve the second interconnect configuration file, automatically retrieve the identity information and second network address of the second console carried in the configuration file, and establish a communication connection with the second console.
[0134] After the second console establishes a communication connection with the first console, it sends a probe request to the first console. Similarly, after the first console establishes a communication connection with the second console, it sends a probe request to the second console. When the second console receives the probe request from the first console and confirms that the first console has received the request, it determines that the channel established between the two consoles has been successfully detected. Based on this successful channel detection, it then determines that the interconnection with the first console is successful.
[0135] After achieving rapid interconnection at the console level, theoretically, each interconnected console already knows the other's network address. In a business alliance network composed of interconnected consoles, when blockchain node a of console A in the business alliance network wants to access blockchain node b of console B in the network, the blockchain node also needs to obtain the network address of the peer node.
[0136] However, in order to fully utilize the interconnectivity of the console level and achieve fully automated interconnection of blockchain nodes, this application also designs a routing and forwarding rule based on the console identifier. This rule has the following characteristics:
[0137] (1) Blockchain nodes use the peer node's domain name to access the peer node;
[0138] (2) The domain name of the peer node must include the console identifier of the console to which the peer node belongs;
[0139] (3) The routing messages inside and outside the console are forwarded uniformly by the interconnection proxy service.
[0140] When the various consoles that want to interconnect import each other's interconnection configuration files into their respective DNS services, each console configures the routing and forwarding rules from its own node to the peer node in its respective interconnection proxy service.
[0141] For example, console A imports the interconnect configuration file of console B and configures the routing forwarding rules shown in Table 3 in the interconnect proxy service of console A. This rule means that the interconnect proxy service of console A will forward access requests captured in console A that contain the console identifier of console B to the network address of console B.
[0142] Table 3
[0143] Routing forwarding rules configured in console A ~^BaaSID-B(.*)→IP-B:Port-B
[0144] For example, console B imports the interconnect configuration file of console A and configures the routing forwarding rules shown in Table 4 in the interconnect proxy service of console B. This rule means that the interconnect proxy service of console B will forward access requests containing the console identifier of console A that are captured within console B to the network address of console A.
[0145] Table 4
[0146] Routing forwarding rules configured in console B ~^BaaSID-A(.*)→IP-A:Port-A
[0147] Based on the above routing and forwarding rules, the following was obtained: Figure 2D The routing and forwarding model is shown. The interconnection proxy service of the second console receives access requests sent by the second blockchain nodes it manages. When the interconnection proxy service determines the first console identifier carried in the target domain name of the access request, it sends the access request to the first console, so that the interconnection proxy service of the first console forwards the access request to the corresponding first blockchain node based on the target domain name of the access request.
[0148] An access request includes a source address, a destination address, and a request content. The source address refers to the network address of the request initiator, specifically including the source port and the source domain name containing the console identifier of the requesting console; the destination address refers to the network address of the request recipient, specifically including the destination port and the destination domain name containing the console identifier of the requesting console.
[0149] Suppose that blockchain node a of console A sends an access request to blockchain node b of console B. In this access request, the source address is the port of blockchain node a and the domain name containing the console identifier of console A, and the destination address is the port of blockchain node b and the domain name containing the console identifier of console B.
[0150] The routing and forwarding rules proposed in this application are applicable to the routing and forwarding of all blockchain nodes that need to be interconnected in a business alliance network. Therefore, by configuring the routing and forwarding rules in the interconnection proxy service of each console that wants to be interconnected, once the interconnection at the console level is achieved, even if multiple blockchain nodes are added to the console, it is not necessary to configure the network addresses of each blockchain node separately in each console. This achieves fully automated interconnection of blockchain nodes and better meets the configuration needs of an ever-expanding business alliance network.
[0151] For example, see the formation of the financial alliance network AB. Figure 3 The flowchart shown illustrates the interconnection process between console A and console B.
[0152] S301: Console A sends an interconnection request to console B;
[0153] S302: Console B obtains the first identity certificate of console A from the interconnection request and sends its second identity certificate to console A;
[0154] S303: Console A performs certificate authentication on the second identity certificate, and console B performs certificate authentication on the first identity certificate;
[0155] S304: When it is determined that both identity certificates have been authenticated, console A generates its first Internet profile based on the Internet protocol, and console B generates its second Internet profile based on the Internet protocol.
[0156] S305: Console A sends the first interconnect configuration file to console B, and console B sends the second interconnect configuration file to console A;
[0157] S306: Console A establishes a communication connection with console B based on the imported second interconnect configuration file, and console B establishes a communication connection with console A based on the imported first interconnect configuration file;
[0158] S307: Console A sends a probe request to console B, and console B sends a probe request to console A;
[0159] S308: When two consoles receive each other's probe requests, determine that the channel established between the two consoles has been successfully detected, and if the channel detection is successful, determine that console A and console B are successfully interconnected.
[0160] After the financial consortium network AB is established, when blockchain node a of console A wants to access blockchain node b of console B, the process of establishing an interconnection between blockchain nodes a and b is as follows: Figure 4 As shown.
[0161] S401: Blockchain node a generates an access request and sends the access request to the interconnect proxy service a of console A;
[0162] S402: When the interconnected proxy service a receives an access request from blockchain node a, and determines that the target domain name of the request carries the console identifier of console B, it sends the request to console B.
[0163] S403: The interconnect proxy service b of console B receives the access request sent by the interconnect proxy service a, and forwards the request to the blockchain node b based on the target domain name of the request;
[0164] S404: Blockchain node b provides corresponding services to blockchain node a based on the content of the access request.
[0165] Based on the same inventive concept as the above-described method embodiments, this application also provides an interconnection device for cross-regional consoles. See also... Figure 5 The schematic diagram shown illustrates that the interconnect device 500 is applied to various consoles distributed in different regions. The interconnect device 500 may include:
[0166] The certificate authentication unit 501 is used to obtain a first identity certificate generated based on the first console identifier from the interconnection request sent by the first console, perform certificate authentication on the first identity certificate, and send a second identity certificate generated based on the second console identifier to the first console so that the first console performs certificate authentication on the second identity certificate;
[0167] The console interconnection unit 502 is used to send a second interconnection configuration file generated based on the identity information and the second network address of the second console to the first console when it is determined that both identity certificates have been authenticated, so that the first console can establish a communication connection with the second console based on the obtained second interconnection configuration file;
[0168] Upon receiving the first interconnect configuration file generated based on the identity information and the first network address of the first console, a communication connection is established with the first console based on the first interconnect configuration file, and the interconnection with the first console is confirmed to be successful upon successful channel detection.
[0169] Optionally, after confirming successful interconnection with the first console, the interconnection device 500 further includes a node interconnection unit 503, which is used for:
[0170] When a second blockchain node under its management receives an access request, and the first console identifier is found in the target domain name of the access request, the access request is sent to the first console so that the first console forwards the access request to the corresponding first blockchain node based on the target domain name of the access request.
[0171] Optionally, before the second console receives the interconnection request sent by the first console, the certificate authentication unit 501 generates a second identity certificate for the second console in the following manner:
[0172] Send an identifier generation request to the server used to provide identity management services, and generate a second public-private key pair;
[0173] Upon receiving the second console identifier returned by the server, the system sends the second console identifier and the second public key to the server, enabling the server to generate a second identity certificate based on the second console identifier and the second public key.
[0174] Optionally, the identity information of the second console includes a second interconnect signature, which is generated by console interconnect unit 502 in the following manner:
[0175] Perform a hash operation on the second console identifier, the second identity certificate, and the second network address to obtain digest information;
[0176] The digest information is encrypted using the second private key to obtain the second interconnect signature.
[0177] Optionally, the certificate authentication unit 501 is used for:
[0178] The root certificate is used to verify the legitimacy of the first identity certificate. If the verification is successful, the string is encrypted using the first public key carried by the first identity certificate.
[0179] The encrypted string is sent to the first console, which then uses the first private key to decrypt the encrypted string and returns the decryption result.
[0180] If the decryption result matches the string, the first identity certificate is deemed to have been authenticated.
[0181] Optionally, the console interconnect unit 502 determines that the channel detection was successful using the following method:
[0182] After establishing a communication connection with the first console, a probe request is sent to the first console;
[0183] When a probe request is received from the first console, and it is confirmed that the first console has also received the probe request, the channel detection is considered successful.
[0184] Based on the same inventive concept as the above-described method embodiments, this application also provides an interconnection device for cross-regional consoles. See also... Figure 6 The schematic diagram shown illustrates that the interconnection device 600 is used in a server that provides identity management services. The interconnection device 600 may include:
[0185] The identifier generation unit 601 is used to generate a corresponding second console identifier when it receives an identifier generation request sent by the second console.
[0186] The certificate generation unit 602 is used to generate a second identity certificate for the second console based on the second console identifier and the second public key sent by the second console, and send the second identity certificate and the root certificate used to verify the legality of the identity certificate to the second console, so that the second console can use the second identity certificate and the root certificate to perform certificate authentication on the first identity certificate of the first console that applied for interconnection.
[0187] Optionally, the identifier generation unit 601 is used for:
[0188] Upon receiving an identifier generation request from the second console, an identifier for the second console is generated based on the suffix of the fixed identifier, the preset encrypted string, and the dynamic identifier.
[0189] Optionally, the certificate generation unit 602 is used for:
[0190] Using the root certificate, a certificate is issued for the second console identifier and the second public key sent by the second console, generating a second identity certificate for the second console.
[0191] For ease of description, the above sections are divided into modules (or units) according to their functions and described separately. Of course, in implementing this application, the functions of each module (or unit) can be implemented in one or more software or hardware components.
[0192] Having introduced the service platform access method and apparatus according to exemplary embodiments of this application, we will now introduce a computer device according to another exemplary embodiment of this application.
[0193] Those skilled in the art will understand that various aspects of this application can be implemented as a system, method, or program product. Therefore, various aspects of this application can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, collectively referred to herein as a "circuit," "module," or "system."
[0194] Based on the same inventive concept as the above-described method embodiments, this application also provides a computer device, see below. Figure 7As shown, the computer device 700 may include at least a processor 701 and a memory 702. The memory 702 stores program code, which, when executed by the processor 701, causes the processor 701 to perform the steps of any of the aforementioned cross-regional console interconnection methods.
[0195] In some possible implementations, the computing device according to this application may include at least one processor and at least one memory. The memory stores program code that, when executed by the processor, causes the processor to perform the steps in the cross-regional console interconnection method according to various exemplary embodiments of this application described above. For example, the processor may perform actions such as... Figure 2A The steps are shown in the figure.
[0196] The following reference Figure 8 To describe a computing device 800 according to this embodiment of the present application. Figure 8 The computing device 800 is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0197] like Figure 8 As shown, the computing device 800 is presented in the form of a general-purpose computing device. The components of the computing device 800 may include, but are not limited to: at least one processing unit 801, at least one storage unit 802, and a bus 803 connecting different system components (including storage unit 802 and processing unit 801).
[0198] Bus 803 represents one or more of several bus structures, including a memory bus or memory controller, peripheral bus, processor, or a local bus using any of the various bus structures.
[0199] Storage unit 802 may include a readable medium in the form of volatile memory, such as random access memory (RAM) 8021 and / or cache memory unit 8022, and may further include read-only memory (ROM) 8023.
[0200] Storage unit 802 may also include a program / utility 8025 having a set (at least one) program module 8024, such program module 8024 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0201] The computing device 800 can also communicate with one or more external devices 804 (e.g., keyboard, pointing device, etc.), one or more devices that enable a user to interact with the computing device 800, and / or any device that enables the computing device 800 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 805. Furthermore, the computing device 800 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 806. As shown, network adapter 806 communicates with other modules for the computing device 800 via bus 803. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with the computing device 800, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0202] Based on the same inventive concept as the above-described method embodiments, various aspects of the cross-regional console interconnection method provided in this application can also be implemented as a program product, which includes program code. When the program product is run on a computer device, the program code is used to cause the computer device to perform the steps in the cross-regional console interconnection method according to various exemplary embodiments of this application described above. For example, the electronic device can perform actions such as... Figure 2A The steps are shown in the figure.
[0203] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0204] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0205] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for interconnecting cross-regional control consoles, characterized in that, The method, applied to various consoles distributed across different regions in a consortium blockchain, includes: The second console obtains a first identity certificate generated based on the first console identifier from the interconnection request sent by the first console, performs certificate authentication on the first identity certificate, and sends a second identity certificate generated based on the second console identifier to the first console, so that the first console performs certificate authentication on the second identity certificate; When the second console determines that both identity certificates have been authenticated, it sends a second interconnection configuration file generated based on the identity information of the second console and the second network address to the first console, so that the first console can establish a communication connection with the second console based on the obtained second interconnection configuration file. When the second console receives the first interconnect configuration file from the first console, it resolves the first interconnect configuration file through the Domain Name System service, automatically configures the identity information and first network address of the first console carried in the first interconnect configuration file, establishes a communication connection with the first console, and configures the routing and forwarding rules from the local blockchain node to the peer blockchain node managed by the first console in the interconnect proxy service. Upon successful channel detection, it is confirmed that the interconnection with the first console is successful; The second console receives an access request sent by the second blockchain node it manages. When it determines that the target domain name of the access request carries the identifier of the first console, it sends the access request to the first console through the interconnection proxy service, so that the first console forwards the access request to the corresponding first blockchain node based on the target domain name of the access request.
2. The method as described in claim 1, characterized in that, Before the second console receives the interconnection request sent by the first console, a second identity certificate for the second console is generated in the following manner: The second console sends an identifier generation request to the server that provides identity management services and generates a second public-private key pair; When the second console receives the second console identifier returned by the server, it sends the second console identifier and the second public key to the server so that the server can generate the second identity certificate based on the second console identifier and the second public key.
3. The method according to any one of claims 1-2, characterized in that, The identity information of the second console includes a second interconnect signature, which is generated in the following manner: The second console performs a hash operation on the second console identifier, the second identity certificate, and the second network address to obtain digest information; The second console uses a second private key to encrypt the digest information to obtain the second interconnect signature.
4. The method according to any one of claims 1-2, characterized in that, The certificate authentication of the first identity certificate includes: The second console uses the root certificate to verify the legitimacy of the first identity certificate. When the verification is successful, it uses the first public key carried by the first identity certificate to encrypt the string. The second console sends the encrypted string to the first console, so that the first console decrypts the encrypted string using the first private key and returns the decryption result; When the decryption result matches the string, the second console determines that the first identity certificate has been authenticated.
5. The method according to any one of claims 1-2, characterized in that, The following methods are used to confirm successful channel detection: After the second console establishes a communication connection with the first console, it sends a probe request to the first console; When the second console receives the probe request sent by the first console and determines that the first console has also received the probe request, it determines that the channel probe is successful.
6. A method for interconnecting cross-regional control consoles, characterized in that, The method, applied to a server providing identity management services, includes: When the server receives an identifier generation request from the second console, it generates a corresponding second console identifier. The server generates a second identity certificate for the second console based on the second console identifier and the second public key sent by the second console, and sends the second identity certificate and a root certificate for verifying the legality of the identity certificate to the second console. This allows the second console to use the root certificate to authenticate the first identity certificate of the first console requesting interconnection, and then sends the second identity certificate to the first console for authentication. Furthermore, when the second console determines that both identity certificates have been authenticated, it sends a second interconnection configuration file generated based on the second console's identity information and the second network address to the first console. Upon receiving the first interconnection configuration file from the first console, the server resolves the domain name system service (DNS) settings. The first interconnect configuration file automatically configures the identity information and first network address of the first console carried in the first interconnect configuration file, establishes a communication connection with the first console, and configures routing and forwarding rules from the local blockchain node to the peer blockchain node managed by the first console in the interconnect proxy service; so that the second console determines that the interconnection with the first console is successful when the channel detection is successful; so that the second console receives the access request sent by the second blockchain node it manages, and when it determines that the target domain name of the access request carries the first console identifier, it sends the access request to the first console through the interconnect proxy service, so that the first console forwards the access request to the corresponding first blockchain node based on the target domain name of the access request.
7. The method as described in claim 6, characterized in that, When the server receives an identifier generation request from the second console, it generates a corresponding second console identifier, including: When the server receives an identifier generation request from the second console, it generates the second console identifier based on the suffix of the fixed identifier, the preset encrypted string, and the dynamic identifier.
8. The method as described in claim 6, characterized in that, The server generates a second identity certificate for the second console based on the second console identifier and the second public key sent by the second console, including: The server uses the root certificate to sign a certificate for the second console identifier and the second public key sent by the second console, thereby generating a second identity certificate for the second console.
9. An interconnection device for cross-regional control consoles, characterized in that, The device, applicable to various consoles distributed across different regions in a consortium blockchain, includes: The certificate authentication unit is used to obtain a first identity certificate generated based on the first console identifier from the interconnection request sent by the first console, perform certificate authentication on the first identity certificate, and send a second identity certificate generated based on the second console identifier to the first console, so that the first console performs certificate authentication on the second identity certificate; The console interconnection unit is used to send a second interconnection configuration file generated based on the identity information and the second network address of the second console to the first console when it is determined that both identity certificates have been authenticated, so that the first console can establish a communication connection with the second console based on the obtained second interconnection configuration file; The console interconnection unit is further configured to, when the second console receives the first interconnection configuration file of the first console, resolve the first interconnection configuration file through the Domain Name System service, automatically configure the identity information and first network address of the first console carried in the first interconnection configuration file, establish a communication connection with the first console, and configure the routing and forwarding rules from the local blockchain node to the peer blockchain node managed by the first console in the interconnection proxy service; The console interconnection unit is also used to determine that the interconnection with the first console is successful when the channel detection is successful; The node interconnection unit is used to receive access requests sent by the second blockchain nodes managed by the second console. When it is determined that the target domain name of the access request carries the identifier of the first console, the access request is sent to the first console through the interconnection proxy service, so that the first console forwards the access request to the corresponding first blockchain node based on the target domain name of the access request.
10. An interconnection device for cross-regional control consoles, characterized in that, The apparatus is used in a server that provides identity management services, and includes: The identifier generation unit is used to generate a corresponding second console identifier when it receives an identifier generation request sent by the second console. The certificate generation unit is configured to generate a second identity certificate for the second console based on the second console identifier and the second public key sent by the second console, and send the second identity certificate and a root certificate for verifying the legality of the identity certificate to the second console, so that the second console uses the root certificate to authenticate the first identity certificate of the first console applying for interconnection, and sends the second identity certificate to the first console so that the first console authenticates the second identity certificate; and, when the second console determines that both identity certificates have been authenticated, send a second interconnection configuration file generated based on the identity information and the second network address of the second console to the first console, and upon receiving the first interconnection configuration file from the first console, access the Domain Name System (DNS) service. The first interconnect configuration file is parsed, and the identity information and first network address of the first console carried in the first interconnect configuration file are automatically configured. A communication connection is established with the first console, and the routing and forwarding rules from the local blockchain node to the peer blockchain node managed by the first console are configured in the interconnect proxy service. This enables the second console to determine that the interconnection with the first console is successful when the channel detection is successful. This enables the second console to receive access requests sent by the second blockchain nodes it manages, and when it determines that the target domain name of the access request carries the identifier of the first console, it sends the access request to the first console through the interconnect proxy service, so that the first console forwards the access request to the corresponding first blockchain node based on the target domain name of the access request.
11. A computer device, characterized in that, It includes a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1-5 or 6-8.
12. A computer-readable storage medium, characterized in that, It includes program code that, when run on a computer device, causes the computer device to perform the steps of the method according to any one of claims 1-5 or 6-8.
13. A computer program product, characterized in that, Includes computer instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1-5 or 6-8.
Citation Information
Patent Citations
Block chain network management and control data processing method and device, medium and electronic equipment
CN111930851A
