Node proxy service system and construction method, device and medium for blockchain network
By building a proxy cluster in the central organization data center and providing node and proxy configuration services, the problem of high difficulty in building and maintaining new nodes in traditional blockchain networks is solved, and the rapid joining and efficient communication of new members is achieved, reducing the technical threshold and maintenance difficulty.
Patent Information
- Application Number
- CN202510624710.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2045-05-15
AI Technical Summary
In traditional blockchain networks, the construction and maintenance of new nodes is difficult, the communication between nodes is low, and new members need to change all node configurations when joining, which is complex and error-prone.
The method of building a proxy cluster in the data center of the central organization is adopted. Node information is generated through the node configuration module, the proxy configuration module generates and verifys the proxy configuration file, and the proxy forwarding module provides data routing services, so that new members can join the blockchain network without caring about the node construction and maintenance process, and improve communication efficiency.
It reduces the technical threshold and maintenance difficulty of blockchain networks, realizes the rapid joining and efficient communication of new members, and improves the operation efficiency of blockchain networks.
Smart Images

Figure CN120151352B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and specifically to a node proxy service system and construction method, device and medium for a blockchain network. Background Art
[0002] Against the backdrop of rapidly evolving information technology, blockchain, as a key technology branch, is increasingly influencing the operational models of various industries. With its decentralized, traceable, and tamper-proof features, blockchain technology is widely used in finance, supply chain management, public services, copyright protection, and other fields. It helps optimize industry operations, eliminates the mistrust and risks inherent in traditional information transmission, improves transparency, security, and efficiency, and fosters trust and cooperation among multiple parties.
[0003] With the rapid development of blockchain technology, more and more institutions and individuals are participating in blockchain networks. In traditional blockchain networks, nodes typically need to be independently built and maintained, which is not only technically challenging but also leads to inefficient communication between nodes. When a new member joins a blockchain network, the network configuration of all existing nodes must be modified. With a large number of members, coordination is difficult, the operation process is complex, and errors are prone to occur.
[0004] Therefore, it is urgent to propose a method that allows new blockchain nodes to join the blockchain network through simple configuration without having to worry about the specific construction and maintenance process of the nodes, and to achieve fast communication between nodes. Summary of the Invention
[0005] To solve the above problems, the present application provides a node proxy service system and construction method, device and medium for a blockchain network. When a new member joins the blockchain, the new member does not need to worry about the specific construction and maintenance process of the node. It only needs to join the blockchain network through simple configuration, thereby achieving the purpose of lowering the technical threshold and the difficulty of blockchain network maintenance, while improving the communication efficiency between member nodes.
[0006] This application adopts the following technical solutions:
[0007] In a first aspect, a node proxy service system for a blockchain network is provided. The blockchain network includes: a central institution data center, a proxy cluster is constructed in the central institution data center, and each member node joins the blockchain network through a dedicated line;
[0008] The system includes: a node configuration module, an agent configuration module and an agent forwarding module;
[0009] A node configuration module, configured to generate node information in response to a member's request to join the blockchain network, so as to enable the member node to join the blockchain network;
[0010] An 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;
[0011] The proxy forwarding module is configured to provide a proxy forwarding service based on the 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.
[0012] Optional, node configuration module, including: node configuration creation component, node information generation component and node information display component;
[0013] The node configuration creation component is used to provide a node configuration template so that members can add the content of the member nodes that join the blockchain network;
[0014] A node information generation component is used to generate node information based on the content of the member node;
[0015] Node information display component, used to display the node information of all member nodes in the blockchain network;
[0016] Node information, including: serial number, organization name, node name, SNI name, node address, creation time, and update time.
[0017] 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;
[0018] The proxy type selection component is used for members to select from the proxy types; the proxy types include: blockchain network proxy, 4-layer TCP service proxy, and 7-layer HTTP service proxy;
[0019] 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 template structure;
[0020] The proxy configuration file generation component is also 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 the member's custom information entered based on the proxy configuration content input component, and generate a proxy configuration file based on the custom information and template structure;
[0021] 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;
[0022] 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;
[0023] The proxy configuration syntax check component is used to check the syntax of the proxy configuration file.
[0024] Optionally, the node configuration module further includes: a node information editing component and a node information deletion component;
[0025] Node information editing component, used to modify the node information of member nodes that have joined the blockchain network;
[0026] Node information deletion component, used to delete the node information of member nodes that have joined the blockchain network;
[0027] The proxy configuration module further includes: a proxy configuration file editing component and a proxy configuration file deletion component;
[0028] The proxy configuration file editing component is used to modify the proxy configuration files saved in the database;
[0029] The agent configuration file deletion component is used to delete the agent configuration files saved in the database.
[0030] Optionally, the proxy forwarding module provides proxy forwarding services based on the following methods:
[0031] The first member node sends a data transmission request;
[0032] Sending the data transmission request to the front area of the first member node;
[0033] Deliver data transmission requests to the front-end area of the central agency's data center via a dedicated line;
[0034] Perform a first security check on the data transmission request in the front-end area of the central agency's data center;
[0035] 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;
[0036] Deliver data transmission requests to the front-end area of the central agency's data center;
[0037] Perform a second security check on data transmission requests in the front-end area of the central agency's data center;
[0038] After the second security check passes, the data transmission request is sent to the front-end area of the second member node via a dedicated line;
[0039] performing a third security check on the data transmission request in the preamble area of the second member node;
[0040] After the third security check passes, the second member node receives the data transmission request.
[0041] Optionally, the proxy forwarding module is also used to obtain the latest node information and the latest proxy configuration file through periodic polling, and reload the proxy forwarding service according to the latest node information and the latest proxy configuration file.
[0042] Optionally, the system further includes: a soft load management platform;
[0043] The soft load management platform is used to publish load rules and perform load balancing on the proxy cluster based on the load rules.
[0044] In a second aspect, a method for constructing a node proxy service system for a blockchain network is provided, wherein the blockchain network includes: a central institution data center, a proxy cluster is constructed in the central institution data center, and each member node joins the blockchain network via a dedicated line;
[0045] The method includes:
[0046] Constructing a node configuration module, the node configuration module is used 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;
[0047] 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 the database when the verification passes;
[0048] Construct a proxy forwarding module, which is used to provide a proxy forwarding service based on the node information and the corresponding proxy configuration file to route data from a first member node of the blockchain network to a second member node through a proxy in the proxy cluster.
[0049] In a third aspect, a node agent service device for a blockchain network is provided, comprising 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 agent service system for the above-mentioned blockchain network are implemented.
[0050] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is instructed by a processor, it implements the steps of the method for constructing the node agent service system of the above-mentioned blockchain network.
[0051] At least one of the above technical solutions adopted in this application can achieve the following beneficial effects:
[0052] The present application provides a node proxy service system for a blockchain network. The blockchain network includes: a central institution data center, a proxy cluster constructed within the central institution data center, and each member node joins the blockchain network via 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 member's request 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 a 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 a first member node of the blockchain network to a second member node through the proxy in the proxy cluster. The system provided by the present application allows new members to join the blockchain network without having to worry about the specific node construction and maintenance process. They only need to configure the system to join the blockchain network, thereby reducing the technical threshold and the difficulty of blockchain network maintenance. The system provided by the present application provides an efficient proxy forwarding function, helping member nodes achieve fast communication and improving the operational efficiency of the blockchain network. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0054] Figure 1 A schematic diagram illustrating the architecture design of a blockchain network according to one embodiment of the present application is shown;
[0055] Figure 2 A schematic diagram illustrating the structure of a node agent service system of a blockchain network according to one embodiment of the present application is shown;
[0056] Figure 3 A schematic diagram of a class diagram design of a node configuration module according to an embodiment of the present application is shown;
[0057] Figure 4 A schematic diagram of a class diagram design of an agent configuration module according to an embodiment of the present application is shown;
[0058] Figure 5 A topology diagram showing a proxy forwarding module providing a proxy forwarding service according to an embodiment of the present application is shown;
[0059] Figure 6 A schematic diagram illustrating a process for constructing a node proxy service system for a blockchain network according to an embodiment of the present application;
[0060] Figure 7 A schematic diagram illustrating the structure of a node agent service device of a blockchain network according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0061] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0062] In order to enable ordinary technicians in this field to more clearly understand the technical solutions provided by the embodiments of this application, the technical solution concept of this application is first explained.
[0063] With the rapid development of blockchain technology, more and more institutions and individuals are participating in blockchain networks. However, in traditional blockchain networks, nodes typically require independent setup and maintenance, which not only increases technical complexity but also leads to inefficient communication between nodes. Furthermore, when a new member joins a blockchain, the network configuration of all existing members must be modified. With a large number of members, coordination is challenging, the operational process is complex, and prone to errors. Enabling new members to join a blockchain network through simple configuration without having to worry about the detailed setup and maintenance of nodes, while also enabling fast communication between nodes, remains a significant technical challenge in this field. Node management and proxy services are emerging as a novel solution.
[0064] Figure 1 The following is a schematic diagram showing the architecture design of a blockchain network proposed in one embodiment of the present application. Figure 1 As shown, the overall architecture of the blockchain network can include: a central agency data center, an agent cluster is built in the central agency data center, and each member node joins the blockchain network through a dedicated line.
[0065] The blockchain network can be a consortium blockchain network. A proxy cluster can be built within a central data center to facilitate interconnection between member nodes. In a blockchain network, each intranet node can also join the blockchain network through the intranet.
[0066] Figure 2 The following is a schematic diagram showing the structure of a node proxy service system for a blockchain network proposed in one embodiment of the present application. Figure 2 As shown, the node agent service system 200 of the blockchain network includes: a node configuration module 210, an agent configuration module 220 and an agent forwarding module 230.
[0067] The node configuration module 210 is used to generate node information in response to a member's request to join the blockchain network, so that the member node can join the blockchain network.
[0068] The agent configuration module 220 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 the database when the verification passes.
[0069] The proxy forwarding module 230 is configured to provide a proxy forwarding service based on the node information and the corresponding proxy configuration file to route data from a first member node of the blockchain network to a second member node through a proxy in the proxy cluster.
[0070] Regarding the node configuration module 210, members can use this module to configure nodes and manage the node information to be added to the alliance chain network. Based on the configuration of the node configuration module 210, the member node can automatically connect to the alliance chain network.
[0071] With respect to the agent configuration module 220, members can configure agents through this module and generate corresponding agent configuration files according to the agent type. The agent configuration files are syntax-checked and saved in the database after passing the check.
[0072] The proxy forwarding module 230 provides a proxy forwarding service based on the node information and the corresponding proxy configuration file, that is, determines from the proxy cluster that the actual proxy routes the request received from one member node to another corresponding member node.
[0073] The present application provides a node proxy service system for a blockchain network. The blockchain network includes: a central institution data center, a proxy cluster constructed within the central institution data center, and each member node joins the blockchain network via 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, thereby enabling the member node to join the blockchain network. The proxy configuration module 220 is configured to generate a corresponding proxy configuration file in response to the member's selection of the proxy type, perform syntax verification on the proxy configuration file, and save the proxy configuration file in a database when the verification passes. The proxy forwarding module 230 is configured to provide a proxy forwarding service based on the node information and the corresponding proxy configuration file, thereby routing data from a first member node of the blockchain network to a second member node through the proxy in the proxy cluster. The system provided by the present application allows new members to join the blockchain network without having to worry about the specific node setup and maintenance process. They only need to configure the system to join the blockchain network, thereby reducing the technical threshold and the difficulty of blockchain network maintenance. The system provided by the present application provides an efficient proxy forwarding function, helping member nodes achieve fast communication and improving the operational efficiency of the blockchain network.
[0074] In this application, node information is also represented as node configuration, and proxy configuration file is also represented as proxy configuration.
[0075] Specifically, the detailed functions of the node agent service system of the blockchain network are introduced.
[0076] 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 so that members can add the content of member nodes joining the blockchain network; the node information generation component is used to generate node information based on 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, and update time.
[0077] 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.
[0078] The node configuration creation component provides a service for adding the content of member nodes to join 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 join the consortium chain network. They can also 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.
[0079] The node information generation component is used to generate node information based on the member node's content after the member adds the member node's content and confirms the instruction based on the node configuration creation component. Node information can include, but is not limited to: serial number, organization name, node name, SNI name, node address, creation time, update time, etc.
[0080] 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 in sequence based on, but not limited to, serial numbers.
[0081] In some optional 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 for members to select from the proxy type; the proxy types 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 the 4-layer TCP service proxy or the 7-layer http service proxy, receive the custom information entered by the member based on the proxy configuration content input component, and generate the proxy configuration file according to the custom information and the template structure; the proxy configuration file display component is used to display the file information of the proxy configuration file of all member nodes in the alliance 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.
[0082] The agent configuration module 220 includes the following components: an agent type selection component, an agent configuration file generation component, an agent configuration file presentation component, and an agent configuration syntax verification component.
[0083] The proxy type selection component provides a service function for selecting the proxy type of a member node. Members use the proxy type selection component to select the proxy type of their member node. Proxy types include, but are not limited to, blockchain network proxies, layer 4 TCP service proxies, and layer 7 HTTP service proxies.
[0084] The proxy configuration file generation component is used to obtain the proxy configuration content from the corresponding channel based on the results of the member's proxy type selection, and generate the proxy configuration file based on the proxy configuration content and template structure. The template structure can be designed according to the actual situation to meet the proxy service requirements of different member nodes.
[0085] If a member chooses a blockchain network agent, the node information is read and the agent configuration file is directly generated based on the node information and template structure.
[0086] If a member selects a Layer 4 TCP service proxy or a Layer 7 HTTP service proxy, the member's custom information needs to be received and a proxy configuration file generated based on the custom information and the template structure. To receive the member's custom information, a proxy configuration content input component can be provided to the member. The member enters the custom information into the proxy configuration content input component, which is then provided to the proxy configuration file generation component.
[0087] The proxy configuration file generated based on the node information or custom information may include, but is not limited to, the following contents: 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, and the like.
[0088] The proxy configuration file display component is used to display the file information of the proxy configuration files of all member nodes in the consortium chain network. This file information may include, but is not limited to: the proxy configuration file's serial number, the proxy configuration file's file name, the proxy configuration file's type, the proxy configuration file's description, the proxy configuration file's file hash, the proxy configuration file's creation time, and the proxy configuration file's update time. When displaying, the proxy configuration file information of all member nodes may be displayed sequentially based on, but is not limited to, serial number.
[0089] The proxy configuration syntax check component is used to execute the check command to check the proxy configuration file to see if there are any syntax errors.
[0090] To ensure the correctness and integrity of the proxy configuration files, the generated proxy configuration files are syntax-checked to promptly detect and correct any syntax errors, thereby preventing proxy forwarding service anomalies caused by configuration errors. Verified proxy configuration files are saved in the database for subsequent use. Centralized management of proxy configuration files facilitates unified management and oversight of proxy forwarding services across the entire blockchain network.
[0091] Specifically, the process of generating the proxy configuration file can be:
[0092] Click the [Blockchain Network Proxy] button, and the [Generate Proxy Configuration File Based on Node Information] button will pop up;
[0093] Click the [Generate proxy configuration file based on node information] button to read the node information and generate a proxy configuration file based on the template structure. The contents of the proxy configuration file (which may include the proxy configuration file file name, proxy configuration file type, proxy configuration file description, proxy configuration file file hash, etc.) are displayed in the proxy configuration file content display box;
[0094] Click the [Check] button to perform syntax check on the content in the content display box;
[0095] After verification, click the [Submit] button to save the proxy configuration file to the database.
[0096] Specifically, the process of generating the proxy configuration file can also be:
[0097] Click the [Layer 4 TCP Service Proxy] button or the [Layer 7 HTTP Service Proxy] button to pop up the proxy configuration content input component;
[0098] Enter custom information in the proxy configuration content input component, and then generate a proxy configuration file based on the template structure. The content of the proxy configuration file (which may include the proxy configuration file file name, proxy configuration file type, proxy configuration file description, proxy configuration file file hash, etc.) is displayed in the proxy configuration file content display box;
[0099] Click the [Check] button to perform syntax check on the content in the content display box;
[0100] After verification, click the [Submit] button to save the proxy configuration file to the database.
[0101] In some optional embodiments, in the above 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 saved in the database; the proxy configuration file deletion component is used to delete the proxy configuration file saved in the database.
[0102] For member nodes that have joined the alliance chain network, the node configuration module 210 provides node information editing and node information deletion service functions.
[0103] The node information editing component is used to allow members to modify the node information of member nodes that have joined the alliance chain network. For example, the organization name, node name, SNI name, node address, etc. can be modified.
[0104] The node information deletion component is used to enable members to delete the node information of member nodes that have joined the alliance chain network. For example, by clicking the [Delete] button, the node information of the corresponding member node will be deleted.
[0105] For the proxy configuration files stored in the database, the proxy configuration module 220 provides proxy configuration file editing and proxy configuration file deletion service functions.
[0106] The proxy configuration file editing component allows members to modify proxy configuration files stored in the database. This includes, for example, modifying the proxy configuration file's file name, type, description, and file hash. Modified proxy configuration files require syntax verification using the proxy configuration syntax verification control.
[0107] The agent profile deletion component is used to allow members to delete agent profiles that have been saved in the database. For example, by clicking the [Delete] button, the corresponding agent profile will be deleted.
[0108] Modifying or deleting node information and modifying or deleting proxy configuration files can be independent of each other. For example, you can modify only node information, delete only node information, modify only proxy configuration files, or delete only proxy configuration files. Modifying or deleting node information and modifying or deleting proxy configuration files can also be related. For example, you can modify the proxy configuration file when modifying node information, and delete the proxy configuration file when deleting node information.
[0109] Specifically, for the case of blockchain network proxies, if a member modifies the node information of a member node using the node information editing component, the proxy configuration file editing component can modify the proxy configuration file using the modified node information.
[0110] For the case of a Layer 4 TCP service proxy or a Layer 7 HTTP service proxy, if a member modifies the node information of a member node using the node information editing component, the member still needs to modify the custom information in order to modify the proxy configuration file using the proxy configuration file editing control.
[0111] For example, Figure 3 The following is a schematic diagram of the class diagram design of the node configuration module proposed in one embodiment of the present application. 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.
[0112] Among them, in NodeConfigInfoController,
[0113] getNodeConfigInfoPage() means turning the page to query the node configuration;
[0114] getById() means getting the node configuration by Id;
[0115] save() means saving the node configuration;
[0116] updateById() means modifying the node configuration by Id;
[0117] removeById() means deleting the node configuration by Id;
[0118] Among them, in NodeConfigInfoServiceImpl,
[0119] saveNodeConfigInfo() means saving node configuration;
[0120] updateNodeConfigInfo() means modifying the node configuration;
[0121] removeById() means deleting the node configuration by Id;
[0122] Among them, in NodeConfigInfoMapper,
[0123] insert() means saving the node configuration;
[0124] updateById() means modifying the node configuration by Id;
[0125] deleteById() means deleting the node configuration by Id.
[0126] For example, Figure 4 The following is a schematic diagram of the class diagram design of the proxy configuration module proposed in one embodiment of the present application. 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.
[0127] Among them, in ProxyConfigInfoController,
[0128] getProxyConfigInfoPage() means turning pages to query proxy configuration;
[0129] getById() means getting proxy configuration by Id;
[0130] save() means saving the proxy configuration to the database;
[0131] updateById() means modifying the proxy configuration by Id;
[0132] get() means providing proxy configuration;
[0133] genConf() means generating proxy configuration;
[0134] removeById() means deleting the proxy configuration by Id;
[0135] Among them, in ProxyConfigInfoServiceImpl,
[0136] saveProxyConfigInfo() means saving proxy configuration;
[0137] updateProxyConfigInfo() means modifying the proxy configuration;
[0138] genConfigInfo() means generating proxy configuration;
[0139] getConfig() means assembling proxy configuration list information;
[0140] testProxyConfigInfo() means verifying the proxy configuration syntax;
[0141] removeById() means deleting the proxy configuration by Id;
[0142] Among them, in ProxyConfigInfoMapper,
[0143] insert() means saving proxy configuration;
[0144] updateById() means modifying the proxy configuration by Id;
[0145] deleteById() means deleting the proxy configuration by Id.
[0146] In some optional embodiments, in the above system, the proxy forwarding module 230 provides a proxy forwarding service based on the following method: the first member node sends a data transmission request; the data transmission request is delivered to the front-end area of the first member node; the data transmission request is delivered to the front-end area of the central agency data center via a dedicated line; a first security check is performed on the data transmission request in the front-end area of the central agency 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-end area of the central agency data center; a second security check is performed on the data transmission request in the front-end area of the central agency data center; after the second security check passes, the data transmission request is delivered to the front-end area of the second member node via a dedicated line; a third security check is performed on the data transmission request in the front-end area of the second member node; after the third security check passes, the second member node receives the data transmission request.
[0147] The proxy forwarding module 230 can provide a proxy forwarding service to forward a data transmission request received from a first member node to a corresponding second member node.
[0148] Figure 5 The topology diagram of the proxy forwarding module providing the proxy forwarding service proposed in one embodiment of the present application is shown. Figure 5 As shown, the specific implementation steps of the proxy forwarding module 230 providing the proxy forwarding service include:
[0149] When the first member node needs to transmit data to the second member node, the data transmission request arrives at the preamble area of the first member node;
[0150] Through dedicated lines, data transmission requests reach the front-end area of the central organization's data center;
[0151] After passing the first security check in the front-end area of the central organization’s data center, the data transmission request reaches the proxy cluster;
[0152] Parse SNI through the TLS handshake protocol and match the actual proxy for routing based on the parsed SNI;
[0153] The data transmission request reaches the front area of the central agency's data center for a second security check;
[0154] The data transmission request that has passed the second security check reaches the front-end area of the second member node through the dedicated line;
[0155] After passing the third security check in the front area of the second member node, the data transmission request is received by the second member node, completing the proxy forwarding.
[0156] In some optional implementations, 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 periodic polling, and reload the proxy forwarding service according to the latest node information and the latest proxy configuration file.
[0157] Since the node information and the proxy configuration file are constantly updated, the proxy forwarding module 230 can obtain the latest node information and the latest proxy configuration file through periodic polling, thereby automatically updating the local configuration and reloading the proxy forwarding service.
[0158] The proxy forwarding module 230 can automatically initiate update requests at preset intervals to obtain the latest node information and the latest proxy configuration file. After receiving the latest node information and the latest proxy configuration file, the proxy forwarding module 230 automatically updates the local configuration, ensuring 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 complete, the proxy forwarding module 230 reloads the proxy forwarding service to ensure that the latest local configuration takes effect.
[0159] During the proxy forwarding service reloading process, if any abnormal situation is encountered, the proxy forwarding module 230 will perform corresponding error processing and log recording.
[0160] Specifically, the proxy forwarding module 230 can run as a container. The container for the proxy forwarding module 230 contains two main processes: the Nginx service and the Agent service. The Agent service's primary function is to periodically poll for the latest node information and proxy configuration files, automatically updating the local configuration and reloading the Nginx service in the container with the latest local configuration. The Nginx service's primary function is to provide proxy forwarding services, enabling data transmission from the first member node to the second member node of the consortium chain network.
[0161] In some optional implementations, 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.
[0162] To improve system performance, availability, and security, the system also includes a soft load management platform. This platform provides services such as publishing load rules for the proxy cluster, thereby achieving load balancing within the proxy cluster based on load rules and further enabling traffic scheduling between member nodes.
[0163] You can choose Nginx as a web server to process HTTP requests and provide reverse proxy, load balancing and other services. In actual situations, you can choose other software with the same functions as needed.
[0164] Figure 6 The flowchart of the method for constructing a node proxy service system of a blockchain network proposed in one embodiment of the present application is shown. The blockchain network includes: a central agency data center, a proxy cluster is constructed in the central agency data center, and each member node joins the blockchain network through a dedicated line. Figure 6 As shown, the method includes:
[0165] Step S601: constructing a node configuration module, which is used to generate node information in response to a member's request to join the blockchain network, so that the member node can join the blockchain network;
[0166] Step S602: constructing an agent configuration module, which 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 the database when the verification passes;
[0167] Step S603: construct a proxy forwarding module, which is used to provide a proxy forwarding service based on the node information and the corresponding proxy configuration file to route data from the first member node of the blockchain network to the second member node through the proxy in the proxy cluster.
[0168] In some optional embodiments, in the above method, step S601 includes: constructing a node configuration creation component, the node configuration creation component is used to provide a node configuration template so that members can add the content of member nodes joining the blockchain network; constructing a node information generation component, the node information generation component is used to generate node information based on the content of the member node; constructing a node information display component, 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, and update time.
[0169] In some optional embodiments, in the above method, step S602 includes: constructing an agent type selection component, the agent type selection component is used for members to select from the agent type; the agent types include: blockchain network agent, 4-layer TCP service agent and 7-layer http service agent; constructing an agent configuration file generation component, the agent configuration file generation component is used to read the node information when the member selects the blockchain network agent, and generate the agent configuration file according to the node information and the template structure, the agent configuration file generation component is also used to provide an agent configuration content input component when the member selects the 4-layer TCP service agent or the 7-layer http service agent, receive the custom information entered by the member based on the agent configuration content input component, and generate the agent configuration file according to the custom information and the template structure; constructing an agent configuration file display component, the agent configuration file display component is used to display the file information of the agent configuration file of all member nodes in the blockchain network; the file information includes: the serial number of the agent configuration file, the file name of the agent configuration file, the type of the agent configuration file, the description of the agent configuration file, the file hash of the agent configuration file, the creation time of the agent configuration file, and the update time of the agent configuration file; constructing an agent configuration syntax verification component, the agent configuration syntax verification component is used to perform syntax verification on the agent configuration file.
[0170] In some optional embodiments, in the above method, step S601 also includes: constructing a node information editing component, the node information editing component is used to modify the node information of the member nodes that have joined the blockchain network; constructing a node information deletion component, the node information deletion component is used to delete the node information of the member nodes that have joined the blockchain network.
[0171] In some optional embodiments, in the above method, step S602 also includes: constructing an agent profile editing component, the agent profile editing component is used to modify the agent profile saved in the database; constructing an agent profile deletion component, the agent profile deletion component is used to delete the agent profile saved in the database.
[0172] In some optional embodiments, in the above method, the proxy forwarding module constructed in step S603 provides a proxy forwarding service based on the following method: the first member node sends a data transmission request; the data transmission request is delivered to the front-end area of the first member node; the data transmission request is delivered to the front-end area of the central agency data center via a dedicated line; a first security check is performed on the data transmission request in the front-end area of the central agency 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-end area of the central agency data center; a second security check is performed on the data transmission request in the front-end area of the central agency data center; after the second security check passes, the data transmission request is delivered to the front-end area of the second member node via a dedicated line; a third security check is performed on the data transmission request in the front-end area of the second member node; after the third security check passes, the second member node receives the data transmission request.
[0173] In some optional implementations, in the above method, the proxy forwarding module constructed in step S603 is further used to obtain the latest node information and the latest proxy configuration file through periodic polling, and reload the proxy forwarding service according to the latest node information and the latest proxy configuration file.
[0174] In some optional implementations, the above method further includes: building a soft load management platform, the soft load management platform being used to publish load rules and perform load balancing on the proxy cluster based on the load rules.
[0175] It should be noted that the construction method of the node agent service system of the above-mentioned blockchain network corresponds one-to-one to the node agent service system of the aforementioned blockchain network, and will not be repeated here.
[0176] Figure 7 A schematic diagram of the structure of a node agent service device of a blockchain network proposed in one embodiment of the present application is shown. Figure 7 As shown, the device includes a processor, memory, a network interface, and a database connected via a system bus. The processor of the device is used to provide computing and control capabilities. The memory of the device includes non-volatile and / or volatile storage media and 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 operating system and computer program in the non-volatile storage medium. The network interface of the device is used to communicate with external clients via a network connection. When executed by the processor, the computer program implements the functions or steps of the method for constructing a node agent service system for a blockchain network.
[0177] In one embodiment, the node agent 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 be run on the processor, and when the processor executes the computer program, the following steps are implemented:
[0178] Constructing a node configuration module, the node configuration module is used 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;
[0179] 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 the database when the verification passes;
[0180] Construct a proxy forwarding module, which is used to provide a proxy forwarding service based on the node information and the corresponding proxy configuration file to route data from a first member node of the blockchain network to a second member node through a proxy in the proxy cluster.
[0181] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0182] Constructing a node configuration module, the node configuration module is used 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;
[0183] 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 the database when the verification passes;
[0184] Construct a proxy forwarding module, which is used to provide a proxy forwarding service based on the node information and the corresponding proxy configuration file to route data from a first member node of the blockchain network to a second member node through a proxy in the proxy cluster.
[0185] It should be noted that the functions or steps that can be implemented by the node agent service device or computer-readable storage medium of the blockchain network can be referred to the relevant description in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.
[0186] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the 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-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may 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 (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0187] Those skilled in the art will clearly understand that for the sake of convenience and brevity in description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by 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.
[0188] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the scope of protection of the present invention.
Claims
1. A node agent service system for a blockchain network, characterized in that: The blockchain network includes: a central institution data center, an agent cluster is built in the central institution data center, each member node joins the blockchain network through a dedicated line, and each intranet node joins the blockchain network through the intranet; The system includes: a node configuration module, an agent configuration module and an agent forwarding module; The node configuration module is configured to generate node information in response to a request from a member to join the blockchain network, so as to enable the member node to join the blockchain network; The proxy configuration module is configured 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 a database when the verification passes; The proxy forwarding module is configured 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 proxy configuration module includes: a proxy type selection component and a proxy configuration file generation component; The proxy type selection component is used for members to select from the proxy types; the proxy types 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 node information when a member selects a blockchain network proxy, and generate a proxy configuration file based on the node information and 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 the member's custom information entered 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 forwarding module provides proxy forwarding services based on the following methods: The first member node sends a data transmission request; Sending the data transmission request to the front area of the first member node; Delivering the data transmission request to the front-end area of the central organization's data center via a dedicated line; Performing a first security check on the data transmission request in a front-end area of the central organization 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; Delivering the data transmission request to the front-end area of the central agency data center; Performing a second security check on the data transmission request in a front-end area of the central organization's data center; After the second security check passes, the data transmission request is sent to the front-end area of the second member node via a dedicated line; performing a third security check on the data transmission request in the preamble area of the second member node; After the third security check passes, the second member node receives the data transmission request.
2. The node agent 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 agent service system of the blockchain network according to claim 1, characterized in that: The proxy configuration module includes: a proxy configuration file display component and a proxy configuration syntax verification component; 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 syntax check component is used to perform syntax check on the proxy configuration file.
4. The node agent 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 deletion 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 agent configuration file deletion component is used to delete the agent configuration file stored in the database.
5. The node agent service system of the blockchain network according to claim 1, characterized in that: The proxy forwarding module is further configured to obtain the latest node information and the latest proxy configuration file through periodic polling, and reload the proxy forwarding service according to the latest node information and the latest proxy configuration file.
6. The node agent service system of the blockchain network according to claim 1, characterized in that: 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.
7. A method for constructing a node agent service system of a blockchain network, characterized in that: The blockchain network includes: a central institution data center, an agent cluster is built in the central institution data center, each member node joins the blockchain network through a dedicated line, and each intranet node joins the blockchain network through the intranet; 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; Constructing a proxy forwarding module, the proxy forwarding module being configured to provide a proxy forwarding service based on the 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 build agent configuration module includes: Construct an agent type selection component, which is used for members to select from the agent types; the agent types include: blockchain network agent, 4-layer TCP service agent, and 7-layer HTTP service agent; Constructing a proxy configuration file generation component, which 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 4-layer TCP service proxy or a 7-layer 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 constructed proxy forwarding module provides proxy forwarding service based on the following method: the first member node sends a data transmission request; the data transmission request is delivered to the front-end area of the first member node; the data transmission request is delivered to the front-end area of the central agency data center via a dedicated line; a first security check is performed on the data transmission request in the front-end area of the central agency data center; after the first security check is passed, 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-end area of the central agency data center; a second security check is performed on the data transmission request in the front-end area of the central agency data center; after the second security check is passed, the data transmission request is delivered to the front-end area of the second member node via a dedicated line; a third security check is performed on the data transmission request in the front-end area of the second member node; after the third security check is passed, the second member node receives the data transmission request.
8. 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 claimed in claim 7 are implemented.
9. 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 7.
Citation Information
Patent Citations
Block chain service access method and device and computer readable storage medium
CN113329081A
Method and apparatus for joining blockchain network, electronic device and storage medium
WO2024092925A1