Node proxy service system of block chain network, construction method and device and medium
By introducing a node proxy service system into the blockchain network, the communication efficiency problem caused by independent construction and maintenance of nodes in traditional blockchain networks is solved, and the simple configuration of new members is implemented and fast communication between nodes is achieved, reducing maintenance difficulty and improving operational efficiency.
Patent Information
- Application Number
- CN202510624710.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2045-05-15
AI Technical Summary
Nodes in traditional blockchain networks need to be independently built and maintained, resulting in inefficient communications and changes in network configurations of all nodes when new members join, which are complex and error-prone.
It provides a node proxy service system for blockchain networks, including node configuration module, proxy configuration module and proxy forwarding module. New members do not need to care about node construction and maintenance, but only need simple configuration to join the network, and achieve fast communication between nodes through proxy clusters.
It reduces the technical threshold and difficulty in maintaining blockchain networks, improves the communication efficiency between member nodes, and optimizes the operation efficiency of blockchain networks.
Smart Images

Figure CN120151352A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of blockchain technology, and particularly to a node proxy service system for a blockchain network, a construction method, a device, and a medium. Background Art
[0002] In the context of the rapid development of information technology, blockchain, as a key technology branch, is gradually influencing the operation models of all walks of life. With its characteristics of "decentralization, traceability, and immutability", blockchain technology is widely applied in multiple fields such as finance, supply chain management, public services, and copyright protection, helping to optimize the industry operation model, eliminate distrust and risks in traditional information transmission, improve transparency, security, and efficiency, and promote trust and cooperation among multiple parties.
[0003] With the rapid development of blockchain technology, more and more institutions or individuals are starting to participate in the blockchain network. In a traditional blockchain network, nodes usually need to be independently built and maintained, which not only has a high technical difficulty but also leads to low communication efficiency between nodes. When a new member joins the blockchain network, it is necessary to change the network configurations of all the already connected nodes. In the case of a large number of members, the coordination difficulty is high, the operation process is complex, and it is easy to make mistakes.
[0004] Therefore, there is an urgent need to propose a method that enables new blockchain nodes to join the blockchain network without caring about the specific process of building and maintaining nodes, only by simple configuration, and can achieve fast communication between nodes. Summary of the Invention
[0005] To solve the above problems, this application provides a node proxy service system for a blockchain network, a construction method, a device, and a medium. When a new member joins the blockchain, the new member does not need to care about the specific process of building and maintaining nodes, and only needs to join the blockchain network through simple configuration, so as to achieve the purpose of reducing the technical threshold and the maintenance difficulty of the blockchain network, and at the same time improve the communication efficiency between member nodes.
[0006] This application adopts the following technical solutions: In the first aspect, a node proxy service system for a blockchain network is provided. The blockchain network includes: a central institution data center, in which a proxy cluster is built, and each member node joins the blockchain network through a dedicated line; The system includes: a node configuration module, a proxy configuration module, and a proxy forwarding module; The node configuration module is used to generate node information in response to a request for a member to join the blockchain network, so that the member node joins the blockchain network; The proxy configuration module is used to generate a corresponding proxy configuration file in response to the result of a member's selection of a proxy type, perform syntax verification on the proxy configuration file, and save the proxy configuration file in the database when the verification passes; The proxy forwarding module is used to provide a proxy forwarding service based on node information and the corresponding proxy configuration file, so as to route data from the first member node of the blockchain network to the second member node through a proxy in the proxy cluster.
[0007] Optionally, the node configuration module includes: a node configuration creation component, a node information generation component, and a node information display component; The node configuration creation component is used to provide a node configuration template for a member to add content of a member node joining the blockchain network; The node information generation component is used to generate node information based on the content of the member node; The node information display component is used to display the node information of all member nodes in the blockchain network; The node information includes: serial number, organization name, node name, SNI name, node address, creation time, update time.
[0008] Optionally, the proxy configuration module includes: a proxy type selection component, a proxy configuration file generation component, a proxy configuration file display component, and a proxy configuration syntax verification component; The proxy type selection component is used for a member to select among proxy types; the proxy types include: blockchain network proxy, layer-4 TCP service proxy, and layer-7 http service proxy; The proxy configuration file generation component is used to read node information when a member selects a blockchain network proxy, and generate a proxy configuration file based on the node information and the template structure; The proxy configuration file generation component is also used to provide a proxy configuration content input component when a member selects a layer-4 TCP service proxy or a layer-7 http service proxy, receive custom information entered by the member based on the proxy configuration content input component, and generate a proxy configuration file based on the custom information and the template structure; The proxy configuration file display component is used to display the file information of the proxy configuration files of all member nodes in the blockchain network; The file information includes: serial number of the proxy configuration file, file name of the proxy configuration file, type of the proxy configuration file, description of the proxy configuration file, file Hash of the proxy configuration file, creation time of the proxy configuration file, update time of the proxy configuration file; The proxy configuration syntax verification component is used to perform syntax verification on the proxy configuration file.
[0009] Optionally, the node configuration module further includes: a node information editing component and a node information deletion component; The node information editing component is used to modify the node information of the member nodes that have joined the blockchain network; The node information deletion component is used to delete the node information of the member nodes that have joined the blockchain network; The proxy configuration module further includes: a proxy configuration file editing component and a proxy configuration file deletion component; The proxy configuration file editing component is used to modify the proxy configuration file that has been saved in the database; The proxy configuration file deletion component is used to delete the proxy configuration file that has been saved in the database.
[0010] Optionally, the proxy forwarding module provides proxy forwarding services based on the following method: The first member node sends a data transmission request; The data transmission request is sent to the pre-zone of the first member node; The data transmission request is sent to the pre-zone of the central institution data center through a dedicated line; Perform a first security check on the data transmission request in the pre-zone of the central institution data center; After the first security check passes, the data transmission request is sent to the proxy cluster, and the node information of the first member node is parsed according to the proxy configuration file to match the corresponding proxy for routing; The data transmission request is sent to the pre-zone of the central institution data center; Perform a second security check on the data transmission request in the pre-zone of the central institution data center; After the second security check passes, the data transmission request is sent to the pre-zone of the second member node through a dedicated line; Perform a third security check on the data transmission request in the pre-zone of the second member node; After the third security check passes, the second member node receives the data transmission request.
[0011] Optionally, the proxy forwarding module is further used to obtain the latest node information and the latest proxy configuration file through timed polling, and reload the proxy forwarding service according to the latest node information and the latest proxy configuration file.
[0012] Optionally, the system further includes: a soft load management platform; The soft load management platform is used to publish load rules and perform load balancing on the proxy cluster based on the load rules.
[0013] In a second aspect, a method for constructing a node proxy service system of a blockchain network is provided. The blockchain network includes a central institution data center, a proxy cluster is constructed within the central institution data center, and each member node joins the blockchain network through a dedicated line. The method includes: Constructing a node configuration module, which is used to generate node information in response to a request from a member to join the blockchain network, so that the member node can join the blockchain network; Constructing a proxy configuration module, which is used to generate a corresponding proxy configuration file in response to the result of the member's selection of the proxy type, perform syntax verification on the proxy configuration file, and save the proxy configuration file in the database when the verification passes; Constructing a proxy forwarding module, which is used to provide a proxy forwarding service according to the node information and the corresponding proxy configuration file, so as to route data from the first member node of the blockchain network to the second member node through the proxy in the proxy cluster.
[0014] In a third aspect, a node proxy service device for a blockchain network is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for constructing the node proxy service system of the above blockchain network are implemented.
[0015] In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and when the computer program is instructed by the processor, the steps of the method for constructing the node proxy service system of the above blockchain network are implemented.
[0016] At least one of the above technical solutions adopted in this application can achieve the following beneficial effects: The node proxy service system of the blockchain network provided by this application. The blockchain network includes: a central institution data center, where a proxy cluster is built, and each member node joins the blockchain network through a dedicated line; the system includes: a node configuration module, a proxy configuration module, and a proxy forwarding module; the node configuration module is used to generate node information in response to a request from a member to join the blockchain network, so that the member node can join the blockchain network; the proxy configuration module is used to generate a corresponding proxy configuration file in response to the result of the member's selection of the proxy type, perform syntax verification on the proxy configuration file, and save the proxy configuration file in the database when the verification passes; the proxy forwarding module is used to provide a proxy forwarding service based on the node information and the corresponding proxy configuration file, so as to route data from the first member node of the blockchain network to the second member node through the proxy in the proxy cluster. The system provided by this application enables a new member to join the blockchain network without caring about the specific construction and maintenance process of the node, and only needs simple configuration to join the blockchain network, thereby reducing the technical threshold and the difficulty of maintaining the blockchain network; the system provided by this application provides an efficient proxy forwarding function to help member nodes achieve fast communication and improve the operating efficiency of the blockchain network. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of this application and form a part of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation to this application. In the drawings: Figure 1 Show a schematic diagram of the architecture design of a blockchain network according to an embodiment of this application; Figure 2 Show a schematic diagram of the structure of a node proxy service system of a blockchain network according to an embodiment of this application; Figure 3 Show a schematic diagram of the class diagram design of a node configuration module according to an embodiment of this application; Figure 4 Show a schematic diagram of the class diagram design of a proxy configuration module according to an embodiment of this application; Figure 5 Show a topological schematic diagram of a proxy forwarding service provided by a proxy forwarding module according to an embodiment of this application; Figure 6 Show a schematic diagram of the process flow of a method for constructing a node proxy service system of a blockchain network according to an embodiment of this application; Figure 7 Show a schematic diagram of the structure of a node proxy service device of a blockchain network according to an embodiment of this application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0018] To make the objectives, technical solutions and advantages of this application more clear, the following will clearly and completely describe the technical solutions of this application in combination with specific embodiments of this application and the corresponding drawings. Obviously, the described embodiments are only a part rather than all of the embodiments of this application. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
[0019] To enable those of ordinary skill in the art to more clearly understand the technical solutions provided by the embodiments of this application, the technical solution concept of this application will be described first.
[0020] With the rapid development of blockchain technology, more and more institutions or individuals have begun to participate in the blockchain network. However, in traditional blockchain networks, nodes usually need to be independently built and maintained, which not only increases the technical difficulty but also leads to low communication efficiency between nodes. At the same time, when a new member joins the blockchain, the network configurations of all the already connected members need to be changed. In the case of a large number of members, it is difficult to coordinate, the operation process is complex, and errors are prone to occur. How to enable new members to join the blockchain network without caring about the specific process of building and maintaining nodes, and only need to join through simple configuration and can achieve fast communication between nodes is a technical issue worthy of attention in the current field. And node management and proxy services have become a new type of solution.
[0021] Figure 1 The schematic diagram of the architecture design of the blockchain network proposed by an embodiment of this application is shown. Referring to Figure 1 As shown, the overall architecture of the blockchain network may include: a central institution data center, a proxy cluster is built in the central institution data center, and each member node joins the blockchain network through a dedicated line.
[0022] The blockchain network may be a consortium blockchain network. A proxy cluster can be built in the central structure data center to help the interconnectedness between the access member nodes. In the blockchain network, each intranet node can also join the blockchain network through the intranet.
[0023] Figure 2 The schematic diagram of the structure of the node proxy service system of the blockchain network proposed by an embodiment of this application is shown. Referring to Figure 2 As shown, the node proxy service system 200 of the blockchain network includes: a node configuration module 210, a proxy configuration module 220, and a proxy forwarding module 230.
[0024] The node configuration module 210 is used to generate node information in response to a request for a member to join the blockchain network, so that the member node can join the blockchain network.
[0025] The proxy configuration module 220 is configured to generate a corresponding proxy configuration file in response to the result of a member's selection of a proxy type, perform a syntax check on the proxy configuration file, and save the proxy configuration file in a database when the check passes.
[0026] The proxy forwarding module 230 is configured to provide a proxy forwarding service based on node information and the corresponding proxy configuration file, so as to route data from a first member node of the blockchain network to a second member node through a proxy in the proxy cluster.
[0027] Regarding the node configuration module 210, a member can configure nodes through this module and manage the node information to be joined to the consortium blockchain network. Based on the configuration of the node configuration module 210 being completed, the member node can automatically connect to the consortium blockchain network.
[0028] Regarding the proxy configuration module 220, a member can configure a proxy through this module and generate a corresponding proxy configuration file according to the type of the proxy. Perform a syntax check on the proxy configuration file and save it in the database after the check passes.
[0029] Regarding the proxy forwarding module 230, it provides a proxy forwarding service based on node information and the corresponding proxy configuration file, that is, determines an actual proxy from the proxy cluster to route a request received from one member node to the corresponding other member node.
[0030] The node proxy service system of the blockchain network provided by this application, the blockchain network includes: a central institution data center, a proxy cluster is built in the central institution data center, and each member node joins the blockchain network through a dedicated line; the system includes: a node configuration module 210, a proxy configuration module 220, and a proxy forwarding module 230; the node configuration module 210 is configured to generate node information in response to a member's request to join the blockchain network, so that the member node joins the blockchain network; the proxy configuration module 220 is configured to generate a corresponding proxy configuration file in response to the result of a member's selection of a proxy type, perform a syntax check on the proxy configuration file, and save the proxy configuration file in a database when the check passes; the proxy forwarding module 230 is configured to provide a proxy forwarding service based on node information and the corresponding proxy configuration file, so as to route data from a first member node of the blockchain network to a second member node through a proxy in the proxy cluster. The system provided by this application, when a new member joins the blockchain network, the new member does not need to care about the specific setup and maintenance process of the nodes, and only needs to perform simple configuration to join the blockchain network, thereby reducing the technical threshold and the difficulty of maintaining the blockchain network; the system provided by this application provides an efficient proxy forwarding function, helps member nodes achieve fast communication, and improves the operation efficiency of the blockchain network.
[0031] In this application, the node information is also represented as the node configuration of the node, and the proxy configuration file is also represented as the proxy configuration.
[0032] Specifically, the detailed functions of the node proxy service system of the blockchain network are introduced.
[0033] In some optional embodiments, in the above system, the node configuration module 210 includes: a node configuration creation component, a node information generation component, and a node information display component; the node configuration creation component is used to provide a node configuration template for members to add the content of the member nodes joining the blockchain network; the node information generation component is used to generate node information according to the content of the member nodes; the node information display component is used to display the node information of all member nodes in the blockchain network; the node information includes: serial number, organization name, node name, SNI name, node address, creation time, update time.
[0034] The node configuration module 210 includes the following components: a node configuration creation component, a node information generation component, and a node information display component.
[0035] The node configuration creation component is used to provide the service function of adding the content of the member nodes to be joined to the consortium chain network. Members use the node configuration template provided by the node configuration creation component to add the content of the member nodes to be joined to the consortium chain network, and can edit and delete the content of the member nodes during the addition process. The content of the member nodes can include, but is not limited to: organization name, node name, SNI name, node address, etc.
[0036] The node information generation component is used to generate node information based on the content of the member nodes after the member adds the content of the member nodes based on the node configuration creation component and confirms the instruction. The node information can include, but is not limited to: serial number, organization name, node name, SNI name, node address, creation time, update time, etc.
[0037] The node information display component is used to display the node information of all member nodes in the consortium chain network. When displaying, the node information of all member nodes can be displayed sequentially based on the serial number, for example.
[0038] In some alternative embodiments, in the above system, the proxy configuration module 220 includes: a proxy type selection component, a proxy configuration file generation component, a proxy configuration file display component, and a proxy configuration syntax verification component; the proxy type selection component is used to allow a member to select among proxy types; the proxy types include: blockchain network proxy, layer-4 TCP service proxy, and layer-7 http service proxy; the proxy configuration file generation component is used to read node information when the member selects a blockchain network proxy, and generate a proxy configuration file according to the node information and a template structure; the proxy configuration file generation component is further used to provide a proxy configuration content input component when the member selects a layer-4 TCP service proxy or a layer-7 http service proxy, receive custom information entered by the member based on the proxy configuration content input component, and generate a proxy configuration file according to the custom information and the template structure; the proxy configuration file display component is used to display file information of the proxy configuration files of all member nodes in the consortium chain network; the file information includes: the serial number of the proxy configuration file, the file name of the proxy configuration file, the type of the proxy configuration file, the description of the proxy configuration file, the file Hash of the proxy configuration file, the creation time of the proxy configuration file, and the update time of the proxy configuration file; the proxy configuration syntax verification component is used to perform syntax verification on the proxy configuration file.
[0039] The proxy configuration module 220 includes the following components: a proxy type selection component, a proxy configuration file generation component, a proxy configuration file display component, and a proxy configuration syntax verification component.
[0040] The proxy type selection component is used to provide a service function for selecting the type of the proxy of the member node. The member uses the proxy type selection component to select the type of the proxy of the member node. The proxy types may include, but are not limited to, blockchain network proxy, layer-4 TCP service proxy, and layer-7 http service proxy, etc.
[0041] The proxy configuration file generation component is used to obtain proxy configuration content from a corresponding channel according to the result of the member's selection of the proxy type, and generate a proxy configuration file according to the proxy configuration content and a template structure. The template structure can be designed according to actual situations to meet the proxy service requirements of different member nodes.
[0042] If the member selects a blockchain network proxy, then read the node information and directly generate a proxy configuration file according to the node information and the template structure.
[0043] If a member selects a 4-layer TCP service proxy or a 7-layer http service proxy, it is necessary to receive the custom information provided by the member and generate a proxy configuration file based on the custom information and the template structure. To receive the custom information provided by the member, a proxy configuration content input component can be provided to the member, and the member enters the custom information from the proxy configuration content input component, so as to provide it to the proxy configuration file generation component.
[0044] The proxy configuration file generated based on the node information or custom information can include but is not limited to the following content: the file name of the proxy configuration file, the type of the proxy configuration file, the description of the proxy configuration file, the file Hash of the proxy configuration file, etc.
[0045] The proxy configuration file display component is used to display the file information of the proxy configuration files of all member nodes in the alliance chain network. The file information can include but is not limited to: the serial number of the proxy configuration file, the file name of the proxy configuration file, the type of the proxy configuration file, the description of the proxy configuration file, the file Hash of the proxy configuration file, the creation time of the proxy configuration file, the update time of the proxy configuration file, etc. When displaying, the file information of the proxy configuration files of all member nodes can be displayed sequentially based on the serial number.
[0046] The proxy configuration syntax verification component is used to execute a verification command to check the proxy configuration file and check whether there are syntax errors in the proxy configuration file.
[0047] To ensure the correctness and integrity of the proxy configuration file, the generated proxy configuration file is subjected to syntax verification to promptly discover and correct the syntax errors in the proxy configuration file, thereby avoiding abnormal proxy forwarding services caused by configuration errors. The proxy configuration file that has passed the verification is saved in the database for subsequent use. By centrally managing the proxy configuration files, it is convenient to uniformly manage and supervise the proxy forwarding services of the entire blockchain network.
[0048] Specifically, the process of generating a proxy configuration file can be as follows: Click the [Blockchain Network Proxy] button, and the [Generate Proxy Configuration File Based on Node Information] button will pop up; Click the [Generate Proxy Configuration File Based on Node Information] button, read the node information, and generate a proxy configuration file in combination with the template structure. Display the content of the proxy configuration file (which can include the file name of the proxy configuration file, the type of the proxy configuration file, the description of the proxy configuration file, the file Hash of the proxy configuration file, etc.) in the content display box of the proxy configuration file; Click the [Verify] button to perform syntax verification on the content in the content display box; After passing the verification, click the [Submit] button to save the proxy configuration file to the database.
[0049] Specifically, the process of generating a proxy configuration file can also be as follows: Click the [4 - layer TCP service proxy] button or the [7 - layer http service proxy] button, and a proxy configuration content input component will pop up; Enter custom information in the proxy configuration content input component, and then generate a proxy configuration file in combination with the template structure. Display the content of the proxy configuration file (which can include the file name of the proxy configuration file, the type of the proxy configuration file, the description of the proxy configuration file, the file Hash of the proxy configuration file, etc.) in the content display box of the proxy configuration file; Click the [Verify] button to perform syntax verification on the content in the content display box; After the verification passes, click the [Submit] button to save the proxy configuration file to the database.
[0050] In some alternative embodiments, in the above - mentioned system, the node configuration module 210 further includes: a node information editing component and a node information deletion component; the node information editing component is used to modify the node information of the member nodes that have joined the blockchain network; the node information deletion component is used to delete the node information of the member nodes that have joined the blockchain network; the proxy configuration module 220 further includes: a proxy configuration file editing component and a proxy configuration file deletion component; the proxy configuration file editing component is used to modify the proxy configuration file that has been saved in the database; the proxy configuration file deletion component is used to delete the proxy configuration file that has been saved in the database.
[0051] For the member nodes that have joined the consortium blockchain network, the node configuration module 210 provides node information editing and node information deletion service functions.
[0052] The node information editing component is used to enable members to modify the node information of the member nodes that have joined the consortium blockchain network. For example, modify content such as the organization name, node name, SNI name, node address, etc.
[0053] The node information deletion component is used to enable members to delete the node information of the member nodes that have joined the consortium blockchain network. For example, by clicking the [Delete] button, delete the node information of the corresponding member node.
[0054] For the proxy configuration files that have been saved in the database, the proxy configuration module 220 provides proxy configuration file editing and proxy configuration file deletion service functions.
[0055] The proxy configuration file editing component is used to enable members to modify the proxy configuration files saved in the database. For example, modify the file name of the proxy configuration file, the type of the proxy configuration file, the description of the proxy configuration file, the file Hash of the proxy configuration file, etc. For the modified proxy configuration file, it is necessary to use the proxy configuration syntax verification control for syntax verification.
[0056] The proxy configuration file deletion component is used to enable members to delete the proxy configuration files saved in the database. For example, by clicking the [Delete] button, the corresponding proxy configuration file can be deleted.
[0057] The modification or deletion of node information and the modification or deletion of proxy configuration files can both be independent. For example, it is possible to only modify node information, only delete node information, only modify proxy configuration files, or only delete proxy configuration files. The modification or deletion of node information and the modification or deletion of proxy configuration files can also be related. For example, it is possible to modify the proxy configuration file while modifying node information, or delete the proxy configuration file while deleting node information.
[0058] Specifically, for the case of blockchain network proxy. If a member uses the node information editing component to modify the node information of a member node, then for the proxy configuration file editing component, it can use the modified node information to modify the proxy configuration file.
[0059] For the case of 4-layer TCP service proxy or 7-layer http service proxy. If a member uses the node information editing component to modify the node information of a member node, then for the proxy configuration file editing control, the member still needs to modify the custom information to modify the proxy configuration file.
[0060] For example, Figure 3 shows the class diagram design schematic of the node configuration module proposed in an embodiment of the present application. Refer to Figure 3 As shown, after the front-end page requests the rest interface provided by NodeConfigInfoController, it calls the business processing method of NodeConfigInfoServiceImpl, and then calls NodeConfigInfoMapper to complete the persistent storage of data.
[0061] Among them, in NodeConfigInfoController, getNodeConfigInfoPage() represents paging query of node node configuration; getById() represents obtaining node node configuration by Id; save() means saving the configuration of the node node; updateById() means modifying the configuration of the node node by Id; removeById() means deleting the configuration of the node node by Id; Among them, in NodeConfigInfoServiceImpl, saveNodeConfigInfo() means saving the configuration of the node node; updateNodeConfigInfo() means modifying the configuration of the node node; removeById() means deleting the configuration of the node node by Id; Among them, in NodeConfigInfoMapper, insert() means saving the configuration of the node node; updateById() means modifying the configuration of the node node by Id; deleteById() means deleting the configuration of the node node by Id.
[0062] For example, Figure 4 shows the class diagram design schematic of the proxy configuration module proposed in an embodiment of the present application. Refer to Figure 4 As shown, after the front-end page requests the rest interface provided by ProxyConfigInfoController, it calls the business processing method of ProxyConfigInfoServiceImpl, and then calls ProxyConfigInfoMapper to complete the persistent storage of data.
[0063] Among them, in ProxyConfigInfoController, getProxyConfigInfoPage() means paging query of proxy configuration; getById() means obtaining the proxy configuration by Id; save() means saving the proxy configuration to the database; updateById() means modifying the proxy configuration by Id; get() means providing the proxy configuration; genConf() means generating the proxy configuration; removeById() means deleting the proxy configuration by Id; Among them, in ProxyConfigInfoServiceImpl, saveProxyConfigInfo() represents saving the proxy configuration; updateProxyConfigInfo() represents modifying the proxy configuration; genConfigInfo() represents generating the proxy configuration; getConfig() represents assembling the proxy configuration list information; testProxyConfigInfo() represents verifying the proxy configuration syntax; removeById() represents deleting the proxy configuration by Id; Among them, in ProxyConfigInfoMapper, insert() represents saving the proxy configuration; updateById() represents modifying the proxy configuration by Id; deleteById() represents deleting the proxy configuration by Id.
[0064] In some alternative embodiments, in the above system, the proxy forwarding module 230 provides proxy forwarding services based on the following method: The first member node sends a data transmission request; the data transmission request is sent to the front area of the first member node; the data transmission request is sent to the front area of the central institution data center through a dedicated line; a first security check is performed on the data transmission request in the front area of the central institution data center; after the first security check passes, the data transmission request is sent to the proxy cluster, and the node information of the first member node is parsed according to the proxy configuration file to match the corresponding proxy for routing; the data transmission request is sent to the front area of the central institution data center; a second security check is performed on the data transmission request in the front area of the central institution data center; after the second security check passes, the data transmission request is sent to the front area of the second member node through a dedicated line; a third security check is performed on the data transmission request in the front area of the second member node; after the third security check passes, the second member node receives the data transmission request.
[0065] The proxy forwarding module 230 can provide proxy forwarding services and forward the data transmission request received from the first member node to the corresponding second member node.
[0066] Figure 5 Shows a topological schematic diagram of the proxy forwarding module providing proxy forwarding services proposed in an embodiment of the present application. Refer to Figure 5As shown in the figure, the specific implementation steps for the proxy forwarding module 230 to provide proxy forwarding services are as follows: When the first member node needs to transmit data to the second member node, the data transmission request reaches the pre-zone of the first member node; Through the dedicated line, the data transmission request reaches the pre-zone of the central institution data center; After passing the first security check in the pre-zone of the central institution data center, the data transmission request reaches the proxy cluster; Parse the SNI through the TLS handshake protocol, and match the actual proxy for routing according to the parsed SNI; The data transmission request reaches the pre-zone of the central institution data center for the second security check; The data transmission request that has passed the second security check reaches the pre-zone of the second member node through the dedicated line; After passing the third security check in the pre-zone of the second member node, the data transmission request is received by the second member node, completing the proxy forwarding.
[0067] In some optional implementation manners, in the above system, the proxy forwarding module 230 is further configured to obtain the latest node information and the latest proxy configuration file through timed polling, and reload the proxy forwarding service according to the latest node information and the latest proxy configuration file.
[0068] Due to the continuous update of the node information and the proxy configuration file, the proxy forwarding module 230 can obtain the latest node information and the latest proxy configuration file through timed polling, and then automatically update the local configuration and reload the proxy forwarding service.
[0069] The proxy forwarding module 230 can automatically initiate an update request at a preset time interval to obtain the latest node information and the latest proxy configuration file. When the proxy forwarding module 230 receives the latest node information and the latest proxy configuration file, it will automatically update the local configuration, so that the proxy forwarding module 230 always runs the latest local configuration, thereby ensuring the stability and efficiency of the proxy forwarding service. After the local configuration update is completed, the proxy forwarding module 230 will reload the proxy forwarding service to ensure that the latest local configuration takes effect.
[0070] During the process of reloading the proxy forwarding service, if any abnormal situation is encountered, the proxy forwarding module 230 will perform corresponding error handling and log recording.
[0071] Specifically, the proxy forwarding module 230 can run in the form of a container. There are two main processes in the container of the proxy forwarding module 230: the Nginx service and the Agent service. The main function of the Agent service is to periodically poll to obtain the latest node information and the latest proxy configuration file, and then automatically update the local configuration, and reload the Nginx service in the container with the latest local configuration. The main function of the Nginx service is to provide a proxy forwarding service to implement the transmission of data from the first member node to the second member node in the consortium blockchain network.
[0072] In some alternative embodiments, the above system further includes: a soft load management platform; the soft load management platform is used to publish load rules and perform load balancing on the proxy cluster based on the load rules.
[0073] To improve the performance, availability, and security of the system, the system further includes a soft load management platform. The soft load management platform provides functional services such as publishing load rules for the proxy cluster, thereby achieving load balancing of the proxy cluster based on the load rules, and further realizing traffic scheduling between member nodes.
[0074] Nginx can be selected as the web network server to handle HTTP requests and provide services such as reverse proxy and load balancing. In actual situations, other software with the same functions can be selected according to the circumstances.
[0075] Figure 6 The flowchart shows the construction method of the node proxy service system in a blockchain network proposed in an embodiment of the present application. The blockchain network includes: a central institution data center, a proxy cluster is built in the central institution data center, and each member node joins the blockchain network through a dedicated line. Refer to Figure 6 As shown, the method includes: Step S601, constructing a node configuration module, where the node configuration module is used to generate node information in response to a request for a member to join the blockchain network, so that the member node can join the blockchain network; Step S602, constructing a proxy configuration module, where the proxy configuration module is used to generate a corresponding proxy configuration file in response to the result of the member's selection of the proxy type, perform syntax verification on the proxy configuration file, and save the proxy configuration file in the database when the verification passes; Step S603, constructing a proxy forwarding module, where the proxy forwarding module is used to provide a proxy forwarding service according to the node information and the corresponding proxy configuration file, so as to route data from the first member node to the second member node in the blockchain network through the proxy in the proxy cluster.
[0076] In some alternative embodiments, in the above method, step S601 includes: constructing a node configuration creation component for providing a node configuration template to enable content for adding member nodes joining the blockchain network; constructing a node information generation component for generating node information based on the content of the member nodes; constructing a node information display component for displaying the node information of all member nodes in the blockchain network; the node information includes: serial number, organization name, node name, SNI name, node address, creation time, and update time.
[0077] In some alternative embodiments, in the above method, step S602 includes: constructing a proxy type selection component for allowing a member to select among proxy types; the proxy types include: blockchain network proxy, layer-4 TCP service proxy, and layer-7 http service proxy; constructing a proxy configuration file generation component for reading node information when the member selects a blockchain network proxy and generating a proxy configuration file based on the node information and a template structure, and the proxy configuration file generation component is further used to provide a proxy configuration content input component when the member selects a layer-4 TCP service proxy or a layer-7 http service proxy, receiving custom information entered by the member based on the proxy configuration content input component, and generating a proxy configuration file based on the custom information and the template structure; constructing a proxy configuration file display component for displaying file information of the proxy configuration files of all member nodes in the blockchain network; the file information includes: serial number of the proxy configuration file, file name of the proxy configuration file, type of the proxy configuration file, description of the proxy configuration file, file Hash of the proxy configuration file, creation time of the proxy configuration file, and update time of the proxy configuration file; constructing a proxy configuration syntax verification component for performing syntax verification on the proxy configuration file.
[0078] In some alternative embodiments, in the above method, step S601 further includes: constructing a node information editing component for modifying the node information of the member nodes that have joined the blockchain network; constructing a node information deletion component for deleting the node information of the member nodes that have joined the blockchain network.
[0079] In some alternative embodiments, in the above method, step S602 further includes: constructing a proxy configuration file editing component for modifying the proxy configuration files saved in the database; constructing a proxy configuration file deletion component for deleting the proxy configuration files saved in the database.
[0080] In some alternative embodiments, in the above method, the proxy forwarding module constructed in step S603 provides proxy forwarding services based on the following method: A first member node sends a data transmission request; the data transmission request is delivered to the front area of the first member node; the data transmission request is delivered to the front area of the central institution data center through a dedicated line; a first security check is performed on the data transmission request in the front area of the central institution data center; after the first security check passes, the data transmission request is delivered to the proxy cluster, and the node information of the first member node is parsed according to the proxy configuration file to match the corresponding proxy for routing; the data transmission request is delivered to the front area of the central institution data center; a second security check is performed on the data transmission request in the front area of the central institution data center; after the second security check passes, the data transmission request is delivered to the front area of the second member node through a dedicated line; a third security check is performed on the data transmission request in the front area of the second member node; after the third security check passes, the second member node receives the data transmission request.
[0081] In some alternative embodiments, in the above method, the proxy forwarding module constructed in step S603 is further configured to obtain the latest node information and the latest proxy configuration file through timed polling, and reload the proxy forwarding service according to the latest node information and the latest proxy configuration file.
[0082] In some alternative embodiments, the above method further includes: constructing a soft load management platform, and the soft load management platform is used to publish load rules and perform load balancing on the proxy cluster based on the load rules.
[0083] It should be noted that the construction method of the node proxy service system of the above blockchain network corresponds one-to-one with the foregoing node proxy service system of the blockchain network, and will not be elaborated herein.
[0084] Figure 7 The structure diagram of the node proxy service device of the blockchain network proposed in an embodiment of the present application is shown. According to Figure 7 as shown, the device includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the device is used to provide computing and control capabilities. The memory of the device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the device is used to communicate with an external client through a network connection. When the computer program is executed by the processor, it realizes the functions or steps of the construction method of the node proxy service system of the blockchain network.
[0085] In one embodiment, the node proxy service device of the blockchain network provided by the present application includes a memory and a processor. The memory stores a database and a computer program that can run on the processor. When the processor executes the computer program, the following steps are implemented: Construct a node configuration module, which is used to generate node information in response to a request from a member to join the blockchain network, so that the member node can join the blockchain network; Construct a proxy configuration module, which is used to generate a corresponding proxy configuration file in response to the result of the member's selection of the proxy type, perform syntax verification on the proxy configuration file, and save the proxy configuration file in the database when the verification passes; Construct a proxy forwarding module, which is used to provide a proxy forwarding service according to the node information and the corresponding proxy configuration file, so as to route data from the first member node of the blockchain network to the second member node through the proxy in the proxy cluster.
[0086] In one embodiment, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: Construct a node configuration module, which is used to generate node information in response to a request from a member to join the blockchain network, so that the member node can join the blockchain network; Construct a proxy configuration module, which is used to generate a corresponding proxy configuration file in response to the result of the member's selection of the proxy type, perform syntax verification on the proxy configuration file, and save the proxy configuration file in the database when the verification passes; Construct a proxy forwarding module, which is used to provide a proxy forwarding service according to the node information and the corresponding proxy configuration file, so as to route data from the first member node of the blockchain network to the second member node through the proxy in the proxy cluster.
[0087] It should be noted that the functions or steps that can be realized by the above-mentioned node proxy service device or computer-readable storage medium of the blockchain network can be correspondingly referred to the relevant descriptions in the foregoing method embodiments. To avoid repetition, they will not be described in detail here.
[0088] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0089] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above division of each functional unit and module is used as an example. In actual applications, the above functions can be allocated to different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above.
[0090] The above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments or equivalently replace some of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention and should all be included in the protection scope of the present invention.
Claims
1. A node proxy service system for a blockchain network, characterized in that: The blockchain network includes: a central institution data center, in which a proxy cluster is constructed, and each member node joins the blockchain network through a dedicated line; The system includes: a node configuration module, an agent configuration module and an agent forwarding module; The node configuration module is used to generate node information in response to a request from a member to join the blockchain network, so that the member node joins the blockchain network; The proxy configuration module is used to generate a corresponding proxy configuration file in response to the result of the member's selection of the proxy type, perform syntax verification on the proxy configuration file, and save the proxy configuration file in the database when the verification passes; The proxy forwarding module is used to provide a proxy forwarding service according to the node information and the corresponding proxy configuration file, so as to route data from the first member node of the blockchain network to the second member node through the proxy in the proxy cluster.
2. The node proxy service system of the blockchain network according to claim 1, characterized in that: The node configuration module includes: a node configuration creation component, a node information generation component and a node information display component; The node configuration creation component is used to provide a node configuration template so that members can add content of the member node to join the blockchain network; The node information generating component is used to generate node information according to the content of the member node; The node information display component is used to display the node information of all the member nodes in the blockchain network; Node information, including: serial number, organization name, node name, SNI name, node address, creation time, and update time.
3. The node proxy service system of the blockchain network according to claim 1, characterized in that: The proxy configuration module includes: a proxy type selection component, a proxy configuration file generation component, a proxy configuration file display component and a proxy configuration syntax verification component; The proxy type selection component is used for members to select from the types of proxies; the types of proxies include: blockchain network proxy, 4-layer TCP service proxy and 7-layer http service proxy; The proxy configuration file generation component is used to read the node information when the member selects the blockchain network proxy, and generate the proxy configuration file according to the node information and the template structure; The proxy configuration file generation component is also used to provide a proxy configuration content input component when the member selects a 4-layer TCP service proxy or a 7-layer http service proxy, receive the custom information entered by the member based on the proxy configuration content input component, and generate a proxy configuration file according to the custom information and the template structure; The proxy configuration file display component is used to display file information of the proxy configuration files of all the member nodes in the blockchain network; File information, including: the serial number of the proxy configuration file, the file name of the proxy configuration file, the type of the proxy configuration file, the description of the proxy configuration file, the file hash of the proxy configuration file, the creation time of the proxy configuration file, and the update time of the proxy configuration file; The proxy configuration grammar checking component is used to perform grammar checking on the proxy configuration file.
4. The node proxy service system of the blockchain network according to claim 1, characterized in that: The node configuration module further includes: a node information editing component and a node information deleting component; The node information editing component is used to modify the node information of the member node that has joined the blockchain network; The node information deletion component is used to delete the node information of the member node that has joined the blockchain network; The proxy configuration module further includes: a proxy configuration file editing component and a proxy configuration file deleting component; The proxy configuration file editing component is used to modify the proxy configuration file stored in the database; The proxy configuration file deletion component is used to delete the proxy configuration file stored in the database.
5. The node proxy service system of the blockchain network according to claim 1, characterized in that: The proxy forwarding module provides proxy forwarding services based on the following method: The first member node sends a data transmission request; Sending the data transmission request to the front area of the first member node; Sending the data transmission request to the front-end area of the data center of the central organization through a dedicated line; Performing a first security check on the data transmission request in a front-end area of the central agency data center; After the first security check is passed, the data transmission request is sent to the proxy cluster, and the node information of the first member node is parsed according to the proxy configuration file to match the corresponding proxy for routing; Sending the data transmission request to the front-end area of the data center of the central organization; Performing a second security check on the data transmission request in a front-end area of the central agency data center; After the second security check is passed, the data transmission request is sent to the front-end area of the second member node through a dedicated line; Performing a third security check on the data transmission request in the front area of the second member node; After the third security check passes, the second member node receives the data transmission request.
6. The node proxy service system of the blockchain network according to claim 1, characterized in that: The proxy forwarding module is also used to obtain the latest node information and the latest proxy configuration file through regular polling, and reload the proxy forwarding service according to the latest node information and the latest proxy configuration file.
7. The node proxy service system of the blockchain network according to claim 1, characterized in that: The system also includes: a soft load management platform; The soft load management platform is used to publish load rules and perform load balancing on the proxy cluster based on the load rules.
8. A method for constructing a node proxy service system of a blockchain network, characterized in that: The blockchain network includes: a central institution data center, in which a proxy cluster is constructed, and each member node joins the blockchain network through a dedicated line; The method comprises: Constructing a node configuration module, the node configuration module is used to generate node information in response to a request from a member to join the blockchain network, so that the member node joins the blockchain network; Constructing an agent configuration module, the agent configuration module is used to generate a corresponding agent configuration file in response to the result of the member's selection of the agent type, perform syntax verification on the agent configuration file, and save the agent configuration file in a database when the verification passes; Construct a proxy forwarding module, wherein the proxy forwarding module is used to provide a proxy forwarding service according to the node information and the corresponding proxy configuration file, so as to route data from the first member node of the blockchain network to the second member node through the proxy in the proxy cluster.
9. A node agent service device of a blockchain network, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for constructing a node agent service system of a blockchain network as described in claim 8 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is instructed by the processor, it implements the steps of the method for constructing a node agent service system of a blockchain network as described in claim 8.
Citation Information
Patent Citations
Block chain service access method and device and computer readable storage medium
CN113329081A
Data processing method and device based on block chain, equipment and storage medium
CN115730934A
Calculation power resource scheduling method, device, system and equipment and storage medium
CN116643873A
System and Method of Traffic Inspection and Stateful Connection Forwarding Among Geographically Dispersed Network Appliances Organized as Clusters
US20090040926A1
Consortium blockchain management method and related system
WO2024021627A1