Intelligent electric meter / terminal distributed encryption machine application method and system

By adopting distributed encryption machine request processing methods and load balancing technology in smart meter/terminal systems, the problem of insufficient throughput of smart meter/terminal encryptor request processing is solved, and the speed of encryption machine request processing and the failure rate is improved.

CN120017658APending Publication Date: 2025-05-16HANGZHOU SUNRISE TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411988928.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the prior art, the encryptor request processing throughput of the smart meter/terminal is insufficient, resulting in slow request processing speed and high failure rate.

Method used

The distributed encryption machine request processing method is adopted, and the encryption machine requests of multiple smart meters/terminals are balanced to multiple encryption machine servers through the load balancing processor, and encryption preprocessing and request queue management are carried out on the encryption machine server, optimizing the resource utilization and request processing process of the encryption machine.

Benefits of technology

It improves the throughput when applying for the encryption machine, improves the speed and accuracy of smart meter/terminal application for the encryption machine, and reduces the failure rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017658A_ABST
    Figure CN120017658A_ABST
Patent Text Reader

Abstract

The invention discloses a distributed encryption machine application method and system for intelligent electric meters / terminals. The method comprises the steps that each intelligent electric meter / terminal initiates an encryption machine request and sends the encryption machine request to a load balancing processor; the processor distributes the plurality of encryption machine requests to the plurality of encryption machine servers in a balanced manner according to the busy degree of each encryption machine server; each server performs encryption preprocessing on each encryption machine request, and an encryption request machine queue is formed for a plurality of requests after encryption preprocessing; initiating an encryption inquiry request to encryption equipment; when the encryption machine is in an idle state, encryption machine idle feedback information is returned to the corresponding server; and when each server receives idle feedback information, sending a request of taking out the encryption equipment from the queue to the encryption equipment for processing the request, and returning the encryption equipment feedback information to the corresponding encryption equipment server by the encryption equipment and finally feeding back the encryption equipment feedback information to the corresponding intelligent electric meter / terminal. According to the invention, the throughput during encryption machine application is improved, and the speed and accuracy of encryption machine application of the intelligent electric meter / terminal are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of encryption processing, and in particular to a method and system for applying for a distributed encryption machine for a smart meter / terminal. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.

[0003] As the number of smart meters / terminals produced continues to increase, the number of requests for encryption machines is also increasing, and the requirements for the response speed and success rate of encryption machines are gradually increasing. The speed of applying for encryption machines will directly affect the production of smart meters / terminals. Previously, encryption machine requests were centrally processed by one machine. If the number of requests at the same time is very large, the throughput of the existing method will not be sufficient, the requests will be processed very slowly, and the failure rate will also increase. Summary of the invention

[0004] The embodiment of the present invention provides a method for a smart meter / terminal to apply for a distributed encryption machine, which is used to efficiently apply for an encryption machine for a smart meter / terminal. The method includes:

[0005] Each smart meter / terminal initiates an encryption machine request to the load balancing processor;

[0006] The load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server;

[0007] Each encryption machine server performs encryption preprocessing on each encryption machine request to obtain each encryption machine request after encryption preprocessing, forms an encryption request machine queue for multiple encryption machine requests after encryption preprocessing, and initiates an encryption query request to the encryption machine;

[0008] When receiving the encryption query request, if the encryption machine detects that it is in an idle state, it returns encryption machine idle feedback information to the corresponding encryption machine server;

[0009] When receiving idle feedback information of the encryption machine, each encryption machine server takes out the encryption machine request after encryption preprocessing from the encryption request machine queue and sends it to the encryption machine;

[0010] The encryptor processes the encryptor request after the encryption preprocessing, obtains the encryptor feedback information, and returns the encryptor feedback information to the corresponding encryptor server;

[0011] The encryption machine server feeds back the encryption machine feedback information to the corresponding smart meter / terminal through the load balancing processor.

[0012] The embodiment of the present invention also provides a system for distributed application of encryption machines for smart meters / terminals, which is used to efficiently apply for encryption machines for smart meters / terminals. The system includes:

[0013] Each smart meter / terminal is used to initiate an encryption machine request to the load balancing processor;

[0014] A load balancing processor is used to receive encryption machine requests initiated by multiple smart meters / terminals, and distribute the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server;

[0015] Each encryption machine server is used to perform encryption preprocessing on each encryption machine request, obtain each encryption machine request after encryption preprocessing, form an encryption request machine queue for multiple encryption machine requests after encryption preprocessing, and initiate an encryption query request to the encryption machine; when receiving encryption machine idle feedback information, take out the encryption machine request after encryption preprocessing from the encryption request machine queue and send it to the encryption machine; feed back the encryption machine feedback information to the corresponding smart meter / terminal through the load balancing processor;

[0016] The encryption machine is used to return encryption machine idle feedback information to the corresponding encryption machine server when it receives an encryption query request and detects that it is in an idle state; the encryption machine processes the encryption machine request after encryption preprocessing, obtains encryption machine feedback information, and returns the encryption machine feedback information to the corresponding encryption machine server.

[0017] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method of applying for a distributed encryption machine for a smart meter / terminal when executing the computer program.

[0018] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for implementing the above-mentioned smart meter / terminal distributed application encryption machine is implemented.

[0019] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method for applying for a distributed encryption machine for a smart meter / terminal is implemented.

[0020] In the embodiment of the present invention, the scheme of distributed application of encryption machines by smart meters / terminals is compared with the technical scheme in the prior art with insufficient throughput, slow encryption machine request processing and high failure rate. The scheme is as follows: each smart meter / terminal initiates an encryption machine request to a load balancing processor; the load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server; each encryption machine server performs encryption preprocessing on each encryption machine request to obtain each encryption machine request after encryption preprocessing, forms an encryption request machine queue for multiple encryption machine requests after encryption preprocessing, and initiates an encryption query request to the encryption machine; the encryption When the machine receives an encryption query request, if it detects that it is in an idle state, it returns encryption machine idle feedback information to the corresponding encryption machine server; when each encryption machine server receives the encryption machine idle feedback information, it takes out the encryption machine request after encryption preprocessing from the encryption request machine queue and sends it to the encryption machine; the encryption machine processes the encryption machine request after encryption preprocessing, obtains the encryption machine feedback information, and returns the encryption machine feedback information to the corresponding encryption machine server; the encryption machine server feeds back the encryption machine feedback information to the corresponding smart meter / terminal through the load balancing processor, which can realize the distributed application of encryption machines by smart meters / terminals, improve the throughput of encryption machine application, and thereby improve the speed and accuracy of smart meters / terminals applying for encryption machines. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0022] Figure 1 A schematic flow chart of a method for distributed application of encryption machines for smart meters / terminals in a system according to an embodiment of the present invention;

[0023] Figure 2 A schematic flow chart of a method for distributed application for encryption machines by smart meters / terminals applied to an encryption machine server in an embodiment of the present invention;

[0024] Figure 3 A schematic diagram of the structure of a system for applying for a distributed encryption machine for a smart meter / terminal in an embodiment of the present invention;

[0025] Figure 4 A schematic diagram of the structure of a system for applying for a distributed encryption machine for a smart meter / terminal in another embodiment of the present invention;

[0026] Figure 5 The figure is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0028] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0029] Figure 1 The flowchart of the method for applying for a distributed encryption machine of a smart meter / terminal in an embodiment of the present invention is applied to the system. The method is applied to the system for applying for a distributed encryption machine of a smart meter / terminal. Figure 3 FIG. 1 is a schematic diagram of a system for distributing encryption applications for smart meters / terminals in an embodiment of the present invention. Figure 3 As shown, the system includes: multiple smart meters / terminals, at least one load balancing processor, multiple encryption machine servers, and at least one encryption machine. Figure 1 As shown, the method comprises the following steps:

[0030] Step 101: Each smart meter / terminal initiates an encryption request to a load balancing processor;

[0031] Step 102: The load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server;

[0032] Step 103: Each encryption machine server performs encryption preprocessing on each encryption machine request to obtain each encryption machine request after encryption preprocessing, forms an encryption request machine queue for multiple encryption machine requests after encryption preprocessing, and initiates an encryption query request to the encryption machine;

[0033] Step 104: When the encryption machine receives the encryption query request, if it detects that it is in an idle state, it returns encryption machine idle feedback information to the corresponding encryption machine server;

[0034] Step 105: when receiving the idle feedback information of the encryption machine, each encryption machine server takes out the encryption machine request after encryption preprocessing from the encryption request machine queue and sends it to the encryption machine;

[0035] Step 106: the encryption machine processes the encryption machine request after encryption preprocessing, obtains encryption machine feedback information, and returns the encryption machine feedback information to the corresponding encryption machine server;

[0036] Step 107: The encryption machine server feeds back the encryption machine feedback information to the corresponding smart meter / terminal through the load balancing processor.

[0037] By process Figure 1 As shown, the method for distributed application of encryption machines by smart meters / terminals provided by the embodiment of the present invention, when working: each smart meter / terminal initiates an encryption machine request to the load balancing processor; the load balancing processor receives the encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server; each encryption machine server performs encryption preprocessing on each encryption machine request to obtain each encryption machine request after encryption preprocessing, forms an encryption request machine queue for multiple encryption machine requests after encryption preprocessing, and initiates an encryption query request to the encryption machine; when the encryption machine receives the encryption query request, if it detects that it is in an idle state, it returns encryption machine idle feedback information to the corresponding encryption machine server; when each encryption machine server receives the encryption machine idle feedback information, it takes out the encryption machine request after encryption preprocessing from the encryption request machine queue and sends it to the encryption machine; the encryption machine processes the encryption machine request after encryption preprocessing to obtain encryption machine feedback information, and returns the encryption machine feedback information to the corresponding encryption machine server; the encryption machine server feeds back the encryption machine feedback information to the corresponding smart meter / terminal through the load balancing processor.

[0038] Compared with the technical solutions in the prior art that have insufficient throughput, slow encryption machine request processing, and high failure rate, the method for distributed application of encryption machines for smart meters / terminals provided in the embodiments of the present invention can realize distributed application of encryption machines for smart meters / terminals, improve the throughput when applying for encryption machines, and thus improve the speed and accuracy of smart meters / terminals applying for encryption machines. The method for distributed application of encryption machines for smart meters / terminals is described in detail below.

[0039] The present invention provides a method for distributed application of encryption machines for smart meters / terminals, which can solve the problems of slow speed and high failure rate caused by insufficient throughput when applying for existing encryption machines. The present invention adopts a distributed method to arrange multiple server terminals for applying for encryption machines on multiple computers, and then uses a load balancing method to evenly distribute the requests to each computer. The present invention can implement distributed application of encryption machines for smart meters / terminals through the following steps. A detailed introduction is given below.

[0040] 1. First, the above step 101 is introduced.

[0041] Before the above steps 101 to 107, some preparatory steps may be included: deploying the encryption machine server method on several computers.

[0042] In the above step 101, each smart meter / terminal initiates an encryption machine request to the load balancing processor. The encryption machine request may include information to be encrypted, smart meter / terminal identification, etc. The smart meter / terminal identification may be the smart meter / terminal name, code, etc.

[0043] 2. Next, the above step 102 is introduced.

[0044] In the above step 102, the load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server, so as to realize efficient processing of encryption machine requests.

[0045] In one embodiment, the encryption machine request may also include encryption priority indication information;

[0046] The load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server, including:

[0047] The load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server and the encryption priority indication information.

[0048] In specific implementation, when performing load balancing, the load balancing processor may not only consider the busyness of each encryption machine server, but also the encryption priority indication information in the encryption machine request, so as to process the encryption machine request according to the priority of the encryption machine request, give priority to processing urgent encryption machine requests, and realize reasonable and efficient scheduling of encryption resources.

[0049] In one embodiment, in the above step 102, the load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server, which may include:

[0050] When the load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, it initiates an available resource query request to each encryption machine server;

[0051] When each encryption machine server receives a request to inquire about available resources, it feeds back its own resource usage to the load balancing processor;

[0052] The load balancing processor determines the busyness of each encryption machine server based on the resource usage feedback from each encryption machine server; based on the busyness of each encryption machine server, the encryption machine requests initiated by multiple smart meters / terminals are evenly distributed to multiple encryption machine servers.

[0053] In specific implementation, when the load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, it initiates an available resource inquiry request to each encryption machine server; when each encryption machine server receives the available resource inquiry request, it feeds back its own resource usage to the load balancing processor; the load balancing processor determines the busyness of each encryption machine server based on the resource usage fed back by each encryption machine server; according to the busyness of each encryption machine server, the encryption machine requests initiated by multiple smart meters / terminals are evenly distributed to multiple encryption machine servers, thereby realizing the determination of the busyness of each encryption machine server by round-trip inquiry, which can improve the accuracy and efficiency of load balancing processing.

[0054] In one embodiment, Figure 4 As shown, in the above step 102, the load balancing processor may be a load balancing processor of nginx.

[0055] During specific implementation, the load balancing processing of step 102 is implemented through nginx load balancing (nginx's load balancing processor), and the encryption machine requests of the workshop computer (smart meter / terminal) are submitted to nginx load balancing. Nginx load balancing will evenly distribute these requests to all encryption machine servers, which can improve the efficiency and accuracy of load balancing.

[0056] In one embodiment, the load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by the multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server, which may include:

[0057] The load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and maps the encryption machine requests to different encryption machine servers through a hash function according to the busyness of each encryption machine server to achieve load balancing.

[0058] In specific implementation, the load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and maps the encryption machine requests to different encryption machine servers through a hash function according to the busyness of each encryption machine server, thereby realizing hash-based polling and improving the efficiency of load balancing.

[0059] In one embodiment, the load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by the multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server, which may include:

[0060] The load balancing processor distributes requests by hashing the smart meter / terminal IP address into an encrypted server IP address, which can implement IP-based hashing and further improve the efficiency of load balancing.

[0061] 3. Again, for ease of understanding, the above steps 103 to 107 are introduced together below.

[0062] During the specific implementation, in this part, the encryption machine server sends the encryption machine request to the encryption machine for processing. After the encryption machine processes the request, it returns the encryption processing result and finally returns it to the workshop computer (smart meter / terminal).

[0063] In the above step 103, each encryption machine server performs encryption preprocessing on each encryption machine request to obtain each encryption machine request after encryption preprocessing, forms an encryption request machine queue for multiple encryption machine requests after encryption preprocessing, and initiates an encryption query request to the encryption machine.

[0064] During specific implementation, some encryption processing work that originally needed to be performed in the encryption machine can be achieved through each encryption machine server in the embodiment of the present invention, that is, each encryption machine server performs encryption pre-processing on each encryption machine request to obtain each encryption machine request after encryption pre-processing, thereby reducing the workload of the encryption machine and improving the processing efficiency of subsequent encryption machines.

[0065] In specific implementation, in an embodiment of the present invention, each encryption machine server also forms an encryption request machine queue for multiple encryption machine requests after encryption preprocessing. By managing the queue, the encryption machine requests are reasonably scheduled, which can improve the efficiency and accuracy of encryption machine request processing.

[0066] In specific implementation, in an embodiment of the present invention, each encryption machine server also initiates an encryption query request to the encryption machine. In one embodiment, in the above step 104, when the encryption machine receives the encryption query request, if it detects that it is in an idle state, it returns encryption machine idle feedback information to the corresponding encryption machine server, which includes:

[0067] When the encryption machine receives an encryption query request, if it detects that it is in an idle state, it estimates the idle time period; based on the estimated idle time period, encryption machine idle feedback information is formed and returned to the corresponding encryption machine server.

[0068] In specific implementation, in an embodiment of the present invention, when the encryption machine receives an encryption query request, if it detects that it is in an idle state, it estimates the idle time period; based on the estimated idle time period, encryption machine idle feedback information is formed and returned to the corresponding encryption machine server, thereby realizing the estimation of the encryption machine time period, and reasonably processing the encryption requests sent by each encryption server according to the estimated time period, which can improve the efficiency of encryption machine request processing.

[0069] In the above step 105, when each encryption machine server receives the encryption machine idle feedback information, it takes out the encryption machine request after encryption preprocessing from the encryption request machine queue and sends it to the encryption machine. The encryption machine request after encryption preprocessing can also include the identification information of the encryption machine server.

[0070] In the above step 106, the encryption machine processes the encryption machine request after encryption preprocessing, obtains encryption machine feedback information, and returns the encryption machine feedback information to the corresponding encryption machine server. Specifically, the encryption machine feedback information can be returned to the encryption machine server corresponding to the identification information based on the identification information of the encryption machine server.

[0071] Step 107: The encryption machine server feeds back the encryption machine feedback information to the corresponding smart meter / terminal through the load balancing processor. When feeding back, the load balancing processor can also set a queue for scheduling and feed back the encryption machine feedback information to the smart meter / terminal corresponding to the smart meter / terminal identifier one by one.

[0072] In a further preferred embodiment of the present invention, the above-mentioned method for applying for a distributed encryption machine for a smart meter / terminal may further include:

[0073] The feedback information of the encryption machine is uploaded to a pre-established blockchain, which can be composed of various ends of the encryption machine system to ensure that the encrypted information cannot be modified, which can improve the security of the encrypted information and the security of the encryption machine processing.

[0074] To sum up, the beneficial technical effect of the method for distributed application of encryption machines for smart meters / terminals provided by the embodiment of the present invention is: the embodiment of the present invention adopts a distributed method, arranges multiple server terminals for applying for encryption machines on multiple computers, and then uses a load balancing method to evenly distribute the requests to each computer, which can solve the problems of slow speed and high failure rate caused by insufficient throughput when applying for existing encryption machines, and can realize distributed application of encryption machines for smart meters / terminals, thereby improving the throughput when applying for encryption machines, and thereby improving the speed and accuracy of smart meters / terminals applying for encryption machines.

[0075] The embodiment of the present invention also provides a method for a distributed smart meter / terminal to apply for an encryption machine applied to an encryption machine service end, as described in the following embodiment. Since the principle of solving the problem by this method is similar to the method for a distributed smart meter / terminal to apply for an encryption machine applied to a system, the implementation of this method can refer to the implementation of the method for a distributed smart meter / terminal to apply for an encryption machine applied to a system, and the repeated parts will not be repeated.

[0076] Figure 2 FIG. 1 is a flow chart of a method for distributedly applying for encryption machines by smart meters / terminals applied to an encryption machine server in an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:

[0077] Step 301: Perform encryption preprocessing on each encryption machine request to obtain each encryption machine request after encryption preprocessing;

[0078] Step 302: forming an encryption request machine queue for multiple encryption machine requests after encryption preprocessing;

[0079] Step 303: Initiate an encryption query request to the encryption machine;

[0080] Step 304: upon receiving the idle feedback information of the encryption machine, taking out the encryption machine request after encryption preprocessing from the encryption request machine queue and sending it to the encryption machine;

[0081] Step 305: Feedback the encryption machine feedback information to the corresponding smart meter / terminal through the load balancing processor.

[0082] The embodiment of the present invention also provides a system for applying for a distributed encryption machine for a smart meter / terminal, as described in the following embodiment. Since the principle of solving the problem by the system is similar to the method for applying for a distributed encryption machine for a smart meter / terminal, the implementation of the system can refer to the implementation of the method for applying for a distributed encryption machine for a smart meter / terminal, and the repeated parts will not be repeated.

[0083] Figure 3 FIG. 1 is a schematic diagram of a system for distributing encryption applications for smart meters / terminals in an embodiment of the present invention. Figure 3 As shown, the system includes: multiple smart meters / terminals, at least one load balancing processor, multiple encryption machine servers, and at least one encryption machine, wherein:

[0084] Each smart meter / terminal 01 is used to initiate an encryption machine request to the load balancing processor;

[0085] The load balancing processor 02 is used to receive encryption machine requests initiated by multiple smart meters / terminals, and distribute the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server;

[0086] Each encryption machine server 03 is used to perform encryption preprocessing on each encryption machine request, obtain each encryption machine request after encryption preprocessing, form an encryption request machine queue for multiple encryption machine requests after encryption preprocessing, and initiate an encryption query request to the encryption machine; when receiving encryption machine idle feedback information, take out the encryption machine request after encryption preprocessing from the encryption request machine queue and send it to the encryption machine; feed back the encryption machine feedback information to the corresponding smart meter / terminal through the load balancing processor;

[0087] Encryption machine 04 is used to return encryption machine idle feedback information to the corresponding encryption machine server when it receives an encryption query request and detects that it is in an idle state; the encryption machine processes the encryption machine request after encryption preprocessing, obtains encryption machine feedback information, and returns the encryption machine feedback information to the corresponding encryption machine server.

[0088] In one embodiment, the encryption machine request includes encryption priority indication information;

[0089] The load balancing processor is specifically used to: receive encryption machine requests initiated by multiple smart meters / terminals, and evenly distribute the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers according to the busyness of each encryption machine server and the encryption priority indication information.

[0090] In one embodiment, the load balancing processor is further configured to initiate an available resource query request to each encryption machine server when receiving encryption machine requests initiated by multiple smart meters / terminals;

[0091] Each encryption machine server is also used to: when receiving an available resource inquiry request, feed back its own resource usage to the load balancing processor;

[0092] The load balancing processor is also used to determine the busyness of each encryption machine server based on the resource usage feedback from each encryption machine server; based on the busyness of each encryption machine server, the encryption machine requests initiated by multiple smart meters / terminals are evenly distributed to multiple encryption machine servers.

[0093] In one embodiment, the encryption machine is specifically used to estimate the idle time period when it receives an encryption query request and detects that it is in an idle state; encryption machine idle feedback information is generated based on the estimated idle time period and returned to the corresponding encryption machine server.

[0094] In one embodiment, the load balancing processor is also used to receive encryption machine requests initiated by multiple smart meters / terminals, and map the encryption machine requests to different encryption machine servers through a hash function according to the busyness of each encryption machine server to achieve load balancing.

[0095] In one embodiment, the load balancing processor is an nginx load balancing processor.

[0096] Based on the above invention concept, Figure 5 As shown, the present invention also proposes a computer device 500, including a memory 510, a processor 520, and a computer program 530 stored in the memory 510 and executable on the processor 520, wherein the processor 520 implements the aforementioned fund information processing method when executing the computer program 530.

[0097] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method of applying for a distributed encryption machine for a smart meter / terminal when executing the computer program.

[0098] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for implementing the above-mentioned smart meter / terminal distributed application encryption machine is implemented.

[0099] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method for applying for a distributed encryption machine for a smart meter / terminal is implemented.

[0100] In the embodiment of the present invention, the scheme of distributed application of encryption machines by smart meters / terminals is compared with the technical scheme in the prior art with insufficient throughput, slow encryption machine request processing and high failure rate. The scheme is as follows: each smart meter / terminal initiates an encryption machine request to a load balancing processor; the load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server; each encryption machine server performs encryption preprocessing on each encryption machine request to obtain each encryption machine request after encryption preprocessing, forms an encryption request machine queue for multiple encryption machine requests after encryption preprocessing, and initiates an encryption query request to the encryption machine; the encryption When the machine receives an encryption query request, if it detects that it is in an idle state, it returns encryption machine idle feedback information to the corresponding encryption machine server; when each encryption machine server receives the encryption machine idle feedback information, it takes out the encryption machine request after encryption preprocessing from the encryption request machine queue and sends it to the encryption machine; the encryption machine processes the encryption machine request after encryption preprocessing, obtains the encryption machine feedback information, and returns the encryption machine feedback information to the corresponding encryption machine server; the encryption machine server feeds back the encryption machine feedback information to the corresponding smart meter / terminal through the load balancing processor, which can realize the distributed application of encryption machines by smart meters / terminals, improve the throughput of encryption machine application, and thereby improve the speed and accuracy of smart meters / terminals applying for encryption machines.

[0101] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0102] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0103] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0104] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0105] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for applying for a distributed encryption machine for a smart meter / terminal, characterized in that: The method is applied to a system for distributed application of encryption machines by smart meters / terminals, the system comprising: multiple smart meters / terminals, at least one load balancing processor, multiple encryption machine servers, and at least one encryption machine. The method comprises: Each smart meter / terminal initiates an encryption machine request to the load balancing processor; The load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server; Each encryption machine server performs encryption preprocessing on each encryption machine request to obtain each encryption machine request after encryption preprocessing, forms an encryption request machine queue for multiple encryption machine requests after encryption preprocessing, and initiates an encryption query request to the encryption machine; When receiving the encryption query request, if the encryption machine detects that it is in an idle state, it returns encryption machine idle feedback information to the corresponding encryption machine server; When receiving idle feedback information of the encryption machine, each encryption machine server takes out the encryption machine request after encryption preprocessing from the encryption request machine queue and sends it to the encryption machine; The encryptor processes the encryptor request after the encryption preprocessing, obtains the encryptor feedback information, and returns the encryptor feedback information to the corresponding encryptor server; The encryption machine server feeds back the encryption machine feedback information to the corresponding smart meter / terminal through the load balancing processor.

2. The method according to claim 1, characterized in that The encryption machine request includes encryption priority indication information; The load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server, including: The load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server and the encryption priority indication information.

3. The method according to claim 1, characterized in that The load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server, including: When the load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, it initiates an available resource query request to each encryption machine server; When each encryption machine server receives a request to inquire about available resources, it feeds back its own resource usage to the load balancing processor; The load balancing processor determines the busyness of each encryption machine server based on the resource usage feedback from each encryption machine server; based on the busyness of each encryption machine server, the encryption machine requests initiated by multiple smart meters / terminals are evenly distributed to multiple encryption machine servers.

4. The method according to claim 1, characterized in that When receiving an encryption query request, if the encryption machine detects that it is in an idle state, it returns encryption machine idle feedback information to the corresponding encryption machine server, including: When the encryption machine receives an encryption query request, if it detects that it is in an idle state, it estimates the idle time period; based on the estimated idle time period, encryption machine idle feedback information is formed and returned to the corresponding encryption machine server.

5. The method according to claim 1, characterized in that The load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and distributes the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server, including: The load balancing processor receives encryption machine requests initiated by multiple smart meters / terminals, and maps the encryption machine requests to different encryption machine servers through a hash function according to the busyness of each encryption machine server to achieve load balancing.

6. The method according to claim 1, characterized in that The load balancing processor is an nginx load balancing processor.

7. A system for distributed application encryption of smart meters / terminals, characterized in that: include: Multiple smart meters / terminals, at least one load balancing processor, multiple encryption machine servers, at least one encryption machine, wherein: Each smart meter / terminal is used to initiate an encryption machine request to the load balancing processor; A load balancing processor is used to receive encryption machine requests initiated by multiple smart meters / terminals, and distribute the encryption machine requests initiated by multiple smart meters / terminals to multiple encryption machine servers in a balanced manner according to the busyness of each encryption machine server; Each encryption machine server is used to perform encryption preprocessing on each encryption machine request, obtain each encryption machine request after encryption preprocessing, form an encryption request machine queue for multiple encryption machine requests after encryption preprocessing, and initiate an encryption query request to the encryption machine; when receiving encryption machine idle feedback information, take out the encryption machine request after encryption preprocessing from the encryption request machine queue and send it to the encryption machine; feed back the encryption machine feedback information to the corresponding smart meter / terminal through the load balancing processor; The encryption machine is used to return encryption machine idle feedback information to the corresponding encryption machine server when it receives an encryption query request and detects that it is in an idle state; the encryption machine processes the encryption machine request after encryption preprocessing, obtains encryption machine feedback information, and returns the encryption machine feedback information to the corresponding encryption machine server.

8. A computer device 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 method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Virtual encryptor device, financial encryptor and method of encrypting message

    CN103634339A

  • Encryption resource allocation method, system and device and storage medium

    CN116893903A

  • Redundant fault-tolerant method, system and device for cryptographic machine of server and storage medium

    CN119109765A

  • Encryption load balancing and distributed policy enforcement

    US20080022136A1