A routing method and device for trusted computing requests

By routing application system requests to multiple trusted computing algorithms in the trusted computing platform and monitoring load distribution, the problem of excessive computing pressure in the existing technology is solved, and load balancing and efficiency improvement are achieved.

CN112799830BActive Publication Date: 2024-09-13BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110035270.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-12
Publication Date
2024-09-13
Estimated Expiration
2041-01-12

AI Technical Summary

Technical Problem

Existing trusted computing platforms only provide a single type of trusted computing algorithm in scenarios where multiple parties apply for computing resources, which cannot satisfy large concurrent computing requests, resulting in excessive computing pressure, reduced efficiency, and a lack of effective solutions.

Method used

By routing the application system's trusted computing requests to multiple trusted computing algorithms, monitoring the resource load and threshold relationship of each algorithm in real time, and allocating the load to algorithms with lighter loads to achieve load balancing and reduce the pressure on a single algorithm. .

Benefits of technology

It achieves resource load balancing among various trusted computing algorithms, reduces computing pressure, improves computing efficiency, and meets the computing needs of multi-party applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112799830B
    Figure CN112799830B
Patent Text Reader

Abstract

The present application discloses a method and device for routing trusted computing requests, which relates to the field of blockchain. The method includes: routing the trusted computing request sent by the application system to the trusted computing algorithm corresponding to the application system in multiple trusted computing algorithms; monitoring the relationship between the resource load of each trusted computing algorithm in multiple trusted computing algorithms and the resource load threshold corresponding to each trusted computing algorithm; when monitoring that the first resource load of the first trusted computing algorithm in multiple trusted computing algorithms is greater than or equal to the first resource load threshold corresponding to the first trusted computing algorithm, the first resource load is allocated to the second trusted computing algorithm in multiple trusted computing algorithms. The present application solves the technical problem of high computing pressure of trusted computing algorithms in related technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the computer field, and in particular to a routing method and device for trusted computing requests. Background Art

[0002] In trusted computing scenarios, there are currently multiple trusted computing algorithms. Current trusted computing platforms can often only provide a single type of trusted computing algorithm for scenarios where multiple parties apply for computing resources. On the one hand, a single type of trusted computing algorithm may not be suitable for different applicants. On the other hand, a single type of trusted computing algorithm can only bear a limited load and may not be able to meet large concurrent computing requests. The computing efficiency may decrease due to high computing pressure.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The present application provides a trusted computing request routing method and device to at least solve the technical problem of high computing pressure of trusted computing algorithms in related technologies.

[0005] According to one aspect of an embodiment of the present application, a method for routing a trusted computing request is provided, comprising:

[0006] Routing the trusted computing request sent by the application system to a trusted computing algorithm corresponding to the application system among a plurality of trusted computing algorithms;

[0007] Monitoring the relationship between the resource load of each trusted computing algorithm among the multiple trusted computing algorithms and the resource load threshold corresponding to each trusted computing algorithm;

[0008] When it is monitored that a first resource load of a first trusted computing algorithm among the multiple trusted computing algorithms is greater than or equal to a first resource load threshold corresponding to the first trusted computing algorithm, the first resource load is allocated to a second trusted computing algorithm among the multiple trusted computing algorithms.

[0009] Optionally, allocating the first resource load to a second trusted computing algorithm among the multiple trusted computing algorithms includes:

[0010] Acquire a second resource load exceeding a second resource load threshold from the first resource load, wherein the second resource load threshold is less than or equal to the first resource load threshold;

[0011] The second resource load is distributed to a second trusted computing algorithm among the plurality of trusted computing algorithms.

[0012] Optionally, allocating the second resource load to a second trusted computing algorithm among the multiple trusted computing algorithms includes:

[0013] Obtaining a random trusted computing algorithm from a third trusted computing algorithm as the second trusted computing algorithm, or using a trusted computing algorithm with the smallest current resource load as the second trusted computing algorithm, wherein the third trusted computing algorithm is a trusted computing algorithm other than the first trusted computing algorithm among the multiple trusted computing algorithms;

[0014] The second resource load is distributed to the second trusted computing algorithm.

[0015] Optionally, allocating the second resource load to a second trusted computing algorithm among the multiple trusted computing algorithms includes:

[0016] Acquire a trusted computing algorithm whose current resource load is less than the corresponding resource load threshold from a third trusted computing algorithm as the second trusted computing algorithm, wherein the third trusted computing algorithm is a trusted computing algorithm among the multiple trusted computing algorithms except the first trusted computing algorithm;

[0017] The second resource load is distributed to the second trusted computing algorithm.

[0018] Optionally, allocating the second resource load to the second trusted computing algorithm includes one of the following:

[0019] Evenly distributing the second resource load to the second trusted computing algorithm;

[0020] The second resource load is allocated to the second trusted computing algorithm according to the relationship between the current resource load corresponding to the second trusted computing algorithm and the resource load threshold, wherein the allocated resource load corresponding to the second trusted computing algorithm is less than or equal to the resource load threshold corresponding to the second trusted computing algorithm.

[0021] Optionally, routing the trusted computing request sent by the application system to a trusted computing algorithm corresponding to the application system among multiple trusted computing algorithms includes:

[0022] Determining a trusted computing algorithm corresponding to the application system according to a matching degree between each trusted computing algorithm among the multiple trusted computing algorithms and the application system and / or a trustworthiness of each trusted computing algorithm;

[0023] The trusted computing request sent by the application system is routed to the trusted computing algorithm corresponding to the application system.

[0024] Optionally, determining the trusted computing algorithm corresponding to the application system according to the matching degree between each trusted computing algorithm in the multiple trusted computing algorithms and the application system includes:

[0025] Calculating the matching degree between each trusted computing algorithm and the application system;

[0026] A trusted computing algorithm among the multiple trusted computing algorithms that has the highest matching degree with the application system is determined as the trusted computing algorithm corresponding to the application system.

[0027] Optionally, determining the trusted computing algorithm corresponding to the application system according to the credibility of each trusted computing algorithm includes:

[0028] Determining the credibility of each of the trusted computing algorithms;

[0029] A trusted computing algorithm with the highest credibility among the multiple trusted computing algorithms is determined as the trusted computing algorithm corresponding to the application system.

[0030] Optionally, determining the trusted computing algorithm corresponding to the application system according to the matching degree between each trusted computing algorithm among the multiple trusted computing algorithms and the application system and the credibility of each trusted computing algorithm includes:

[0031] Calculating the matching degree between each trusted computing algorithm and the application system;

[0032] Determining the credibility of a trusted computing algorithm having a higher matching degree with the application system than a target matching degree;

[0033] The trusted computing algorithm with the highest credibility among the trusted computing algorithms whose matching degree with the application system is higher than the target matching degree is determined as the trusted computing algorithm corresponding to the application system.

[0034] According to another aspect of an embodiment of the present application, a routing device for a trusted computing request is also provided, including:

[0035] A routing module, used for routing a trusted computing request sent by an application system to a trusted computing algorithm corresponding to the application system among a plurality of trusted computing algorithms;

[0036] A monitoring module, configured to monitor the relationship between the resource load of each trusted computing algorithm among the multiple trusted computing algorithms and the resource load threshold corresponding to each trusted computing algorithm;

[0037] An allocation module is used to allocate the first resource load to a second trusted computing algorithm among the multiple trusted computing algorithms when monitoring that the first resource load of a first trusted computing algorithm among the multiple trusted computing algorithms is greater than or equal to a first resource load threshold corresponding to the first trusted computing algorithm.

[0038] Optionally, the allocation module includes:

[0039] an acquiring unit, configured to acquire, from the first resource load, a second resource load exceeding a second resource load threshold, wherein the second resource load threshold is less than or equal to the first resource load threshold;

[0040] The allocating unit is configured to allocate the second resource load to a second trusted computing algorithm among the plurality of trusted computing algorithms.

[0041] Optionally, the allocation unit is used to:

[0042] Obtaining a random trusted computing algorithm from a third trusted computing algorithm as the second trusted computing algorithm, or using a trusted computing algorithm with the smallest current resource load as the second trusted computing algorithm, wherein the third trusted computing algorithm is a trusted computing algorithm other than the first trusted computing algorithm among the multiple trusted computing algorithms;

[0043] The second resource load is distributed to the second trusted computing algorithm.

[0044] Optionally, the allocation unit is used to:

[0045] Acquire a trusted computing algorithm whose current resource load is less than the corresponding resource load threshold from a third trusted computing algorithm as the second trusted computing algorithm, wherein the third trusted computing algorithm is a trusted computing algorithm among the multiple trusted computing algorithms except the first trusted computing algorithm;

[0046] The second resource load is distributed to the second trusted computing algorithm.

[0047] Optionally, the allocation unit is used for one of the following:

[0048] Evenly distributing the second resource load to the second trusted computing algorithm;

[0049] The second resource load is allocated to the second trusted computing algorithm according to the relationship between the current resource load corresponding to the second trusted computing algorithm and the resource load threshold, wherein the allocated resource load corresponding to the second trusted computing algorithm is less than or equal to the resource load threshold corresponding to the second trusted computing algorithm.

[0050] Optionally, the routing module includes:

[0051] a determining unit, configured to determine a trusted computing algorithm corresponding to the application system according to a matching degree between each trusted computing algorithm among the plurality of trusted computing algorithms and the application system and / or a trustworthiness of each trusted computing algorithm;

[0052] The routing module is used to route the trusted computing request sent by the application system to the trusted computing algorithm corresponding to the application system.

[0053] Optionally, the determining unit is used to:

[0054] Calculating the matching degree between each trusted computing algorithm and the application system;

[0055] A trusted computing algorithm among the multiple trusted computing algorithms that has the highest matching degree with the application system is determined as the trusted computing algorithm corresponding to the application system.

[0056] Optionally, the determining unit is used to:

[0057] Determining the credibility of each of the trusted computing algorithms;

[0058] A trusted computing algorithm with the highest credibility among the multiple trusted computing algorithms is determined as the trusted computing algorithm corresponding to the application system.

[0059] Optionally, the determining unit is used to:

[0060] Calculating the matching degree between each trusted computing algorithm and the application system;

[0061] Determining the credibility of a trusted computing algorithm having a higher matching degree with the application system than a target matching degree;

[0062] The trusted computing algorithm with the highest credibility among the trusted computing algorithms whose matching degree with the application system is higher than the target matching degree is determined as the trusted computing algorithm corresponding to the application system.

[0063] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above method is executed when the program is run.

[0064] According to another aspect of an embodiment of the present application, an electronic device is further provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above method through the computer program.

[0065] In an embodiment of the present application, a trusted computing request sent by an application system is routed to a trusted computing algorithm corresponding to the application system among multiple trusted computing algorithms; the relationship between the resource load of each trusted computing algorithm among the multiple trusted computing algorithms and the resource load threshold corresponding to each trusted computing algorithm is monitored; when it is monitored that the first resource load of a first trusted computing algorithm among the multiple trusted computing algorithms is greater than or equal to the first resource load threshold corresponding to the first trusted computing algorithm, the first resource load is allocated to a second trusted computing algorithm among the multiple trusted computing algorithms. By providing multiple trusted computing algorithms to meet the computing needs of various application systems, the trusted computing request sent by the application system can be routed to the trusted computing algorithm corresponding to it. The computing algorithm is processed, and during the processing, the relationship between the resource load of each trusted computing algorithm and the resource load threshold corresponding to each trusted computing algorithm is monitored in real time. For a first trusted computing algorithm whose first resource load is greater than or equal to the first resource load threshold, the resource load it carries is distributed, and the second trusted computing algorithm among multiple trusted computing algorithms shares the computing pressure for it, thereby relieving the pressure on the trusted computing algorithm that carries too much pressure and balancing the resource load distribution among the trusted computing algorithms, thereby achieving the technical effect of reducing the computing pressure of the trusted computing algorithm and improving the computing efficiency of the trusted computing algorithm, thereby solving the technical problem of high computing pressure on the trusted computing algorithm in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0067] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0068] Figure 1 is a schematic diagram of a hardware environment of a routing method for trusted computing requests according to an embodiment of the present application;

[0069] Figure 2 is a flow chart of an optional trusted computing request routing method according to an embodiment of the present application;

[0070] Figure 3 is a schematic diagram of a resource load peak-shifting automatic routing process according to an optional embodiment of the present application;

[0071] Figure 4is a schematic diagram of an optional routing device for trusted computing requests according to an embodiment of the present application;

[0072] Figure 5 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0073] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0074] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0075] According to one aspect of an embodiment of the present application, a method embodiment of routing a trusted computing request is provided.

[0076] Optionally, in this embodiment, the above-mentioned trusted computing request routing method can be applied to: Figure 1 In the hardware environment composed of the terminals (101-1 to 101-m), the server 103 and the servers (105-1 to 105-n) shown in FIG. Figure 1As shown, the server 103 is connected to the terminal (101-1 to 101-m) and the server (105-1 to 105-n) through a network, and can be used to provide services (such as request routing services, etc.) for the terminal or the client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 103. The above network includes but is not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal (101-1 to 101-m) is not limited to a PC, a mobile phone, a tablet computer, a server device, etc. The routing method of the trusted computing request of the embodiment of the present application can be executed by the server 103. The server (105-1 to 105-n) can be used to provide multiple trusted computing algorithms, but is not limited to it. One or more application systems can be installed on the terminal (101-1 to 101-m), but is not limited to it.

[0077] Figure 2 is a flow chart of an optional trusted computing request routing method according to an embodiment of the present application, such as Figure 2 As shown, the method may include the following steps:

[0078] Step S202, routing the trusted computing request sent by the application system to a trusted computing algorithm corresponding to the application system among multiple trusted computing algorithms;

[0079] Step S204, monitoring the relationship between the resource load of each trusted computing algorithm among the multiple trusted computing algorithms and the resource load threshold corresponding to each trusted computing algorithm;

[0080] Step S206: when it is monitored that the first resource load of a first trusted computing algorithm among the multiple trusted computing algorithms is greater than or equal to a first resource load threshold corresponding to the first trusted computing algorithm, distribute the first resource load to a second trusted computing algorithm among the multiple trusted computing algorithms.

[0081] Through the above steps S202 to S206, by providing multiple trusted computing algorithms to meet the computing needs of various application systems, the trusted computing requests sent by the application system can be routed to the corresponding trusted computing algorithms for processing. During the processing, the relationship between the resource load of each trusted computing algorithm and the resource load threshold corresponding to each trusted computing algorithm is monitored in real time. For the first trusted computing algorithm whose first resource load is greater than or equal to the first resource load threshold, the resource load it carries is distributed, and the second trusted computing algorithm among the multiple trusted computing algorithms shares the computing pressure for it, thereby relieving the pressure on the trusted computing algorithm that carries too much pressure and balancing the resource load distribution among the trusted computing algorithms, thereby achieving the technical effect of reducing the computing pressure of the trusted computing algorithm and improving the computing efficiency of the trusted computing algorithm, thereby solving the technical problem of high computing pressure on the trusted computing algorithm in the related technology.

[0082] Optionally, in this embodiment, the above-mentioned trusted computing request routing method can be applied to, but not limited to, a scenario of providing trusted computing services for application systems, such as providing trusted computing services for blockchain applications in blockchain technology.

[0083] In the technical solution provided in step S202, the application system may include but is not limited to operating systems of various types of application programs, such as: game applications, educational applications, browser applications, shopping applications, financial applications, multimedia applications, live broadcast applications, short video applications, audio applications, etc.

[0084] Optionally, in this embodiment, the above-mentioned trusted computing request may be, but is not limited to, used to request trusted computing to be performed for the above-mentioned application system.

[0085] Optionally, in this embodiment, trusted computing, or Trusted Computing (TC) is a technology promoted and developed by a trusted computing group (Trusted Computing Cluster, TCPA). Trusted computing is a trusted computing platform based on hardware security module support that is widely used in computing and communication systems to improve the overall security of the system.

[0086] Optionally, in this embodiment, the multiple trusted computing algorithms may include but are not limited to: homomorphic encryption (such as: partial homomorphic encryption and fully homomorphic encryption), multi-party secure computing (MPC), zero-knowledge proof, etc.

[0087] Optionally, in this embodiment, each trusted computing algorithm may be deployed as, but not limited to, one or more trusted computing algorithm clusters, referred to as a trusted computing algorithm pool.

[0088] In the technical solution provided in step S204, each trusted computing algorithm corresponds to a resource load threshold matched therewith, and the resource load threshold can be, but is not limited to, set or calculated according to the carrying capacity of each trusted computing algorithm.

[0089] Optionally, in this embodiment, the resource load of the trusted computing algorithm may be represented by, but is not limited to, information such as the carrying capacity of the trusted computing request, the occupied amount of computing resources, and the occupied amount of storage resources.

[0090] In the technical solution provided in step S206, the first trusted computing algorithm is a trusted computing algorithm whose resource load is greater than or equal to its corresponding resource load threshold among multiple trusted computing algorithms, and the number of the first trusted computing algorithms may be one or more.

[0091] Optionally, in this embodiment, the second trusted computing algorithm may be, but is not limited to, a trusted computing algorithm whose resource load does not exceed a corresponding resource load threshold among multiple trusted computing algorithms.

[0092] As an optional embodiment, allocating the first resource load to a second trusted computing algorithm among the multiple trusted computing algorithms includes:

[0093] S11, acquiring a second resource load exceeding a second resource load threshold from the first resource load, wherein the second resource load threshold is less than or equal to the first resource load threshold;

[0094] S12: Allocate the second resource load to a second trusted computing algorithm among the multiple trusted computing algorithms.

[0095] Optionally, in this embodiment, the portion of the first resource load that exceeds the second resource load threshold can be allocated as the second resource load. The second resource load threshold is less than or equal to the first resource load threshold, that is, the resource load of the first trusted computing algorithm can be reduced to the first resource load threshold, or the resource load of the first trusted computing algorithm can be reduced to a threshold lower than the first resource load threshold.

[0096] For example, if the first resource load is 150 and the first resource load threshold is 100, one way is to allocate 50 of the first resource load as the second resource load to the second trusted computing algorithm. Another way is to set the second resource load threshold to 85 and allocate 65 of the first resource load as the second resource load to the second trusted computing algorithm.

[0097] As an optional embodiment, allocating the second resource load to a second trusted computing algorithm among the multiple trusted computing algorithms includes:

[0098] S21, obtaining a random trusted computing algorithm from the third trusted computing algorithm as the second trusted computing algorithm, or using the trusted computing algorithm with the smallest current resource load as the second trusted computing algorithm, wherein the third trusted computing algorithm is a trusted computing algorithm among the multiple trusted computing algorithms except the first trusted computing algorithm;

[0099] S22: Allocate the second resource load to the second trusted computing algorithm.

[0100] Optionally, in this embodiment, a way of allocating the second resource load is to allocate the second resource load to a trusted computing algorithm other than the first trusted computing algorithm among the multiple trusted computing algorithms.

[0101] Optionally, in this embodiment, the trusted computing algorithm receiving the second resource load may be randomly selected, or may be selected according to the current resource load, and a trusted computing algorithm with the smallest current resource load is selected as the second trusted computing algorithm.

[0102] As an optional embodiment, allocating the second resource load to a second trusted computing algorithm among the multiple trusted computing algorithms includes:

[0103] S31, obtaining a trusted computing algorithm whose current resource load is less than the corresponding resource load threshold from a third trusted computing algorithm as the second trusted computing algorithm, wherein the third trusted computing algorithm is a trusted computing algorithm among the multiple trusted computing algorithms except the first trusted computing algorithm;

[0104] S32: Allocate the second resource load to the second trusted computing algorithm.

[0105] Optionally, in this embodiment, a way to allocate the second resource load is to allocate the second resource load to a trusted computing algorithm whose current resource load is less than the corresponding resource load threshold. If the allocated resource load exceeds the corresponding resource load threshold, the above process can be continued to allocate the excess portion to other trusted computing algorithms.

[0106] As an optional embodiment, allocating the second resource load to the second trusted computing algorithm includes one of the following:

[0107] S41, evenly distributing the second resource load to the second trusted computing algorithm;

[0108] S42: Allocate the second resource load to the second trusted computing algorithm according to the relationship between the current resource load corresponding to the second trusted computing algorithm and the resource load threshold, wherein the allocated resource load corresponding to the second trusted computing algorithm is less than or equal to the resource load threshold corresponding to the second trusted computing algorithm.

[0109] Optionally, in this embodiment, the method of allocating the second resource load to the trusted computing algorithm whose current resource load is less than the corresponding resource load threshold may include but is not limited to two methods: one is average distribution, and the other may be distribution based on the relationship between the current resource load corresponding to the second trusted computing algorithm and the resource load threshold, to ensure that the allocated resource load is less than or equal to the resource load threshold corresponding to the second trusted computing algorithm.

[0110] As an optional embodiment, routing the trusted computing request sent by the application system to a trusted computing algorithm corresponding to the application system among multiple trusted computing algorithms includes:

[0111] S51, determining a trusted computing algorithm corresponding to the application system according to a matching degree between each trusted computing algorithm among the multiple trusted computing algorithms and the application system and / or a trustworthiness of each trusted computing algorithm;

[0112] S52: Routing the trusted computing request sent by the application system to a trusted computing algorithm corresponding to the application system.

[0113] Optionally, in this embodiment, the trusted computing request may be routed according to, but not limited to, the matching degree between each trusted computing algorithm and the application system and / or the trustworthiness of each trusted computing algorithm, so that the trusted computing algorithm corresponding to the application system can be suitable for the application system or can provide the required trustworthiness for the application system.

[0114] As an optional embodiment, determining the trusted computing algorithm corresponding to the application system according to the matching degree between each trusted computing algorithm in the multiple trusted computing algorithms and the application system includes:

[0115] S61, calculating the matching degree between each trusted computing algorithm and the application system;

[0116] S62: Determine the trusted computing algorithm with the highest matching degree with the application system among the multiple trusted computing algorithms as the trusted computing algorithm corresponding to the application system.

[0117] Optionally, in this embodiment, the trusted computing algorithm with the highest matching degree with the application system may be obtained from multiple trusted computing algorithms but is not limited to being used as the trusted computing algorithm corresponding to the application system, thereby providing the most matching trusted computing algorithm for the application system.

[0118] As an optional embodiment, determining the trusted computing algorithm corresponding to the application system according to the credibility of each trusted computing algorithm includes:

[0119] S71, determining the credibility of each trusted computing algorithm;

[0120] S72: Determine the trusted computing algorithm with the highest credibility among the multiple trusted computing algorithms as the trusted computing algorithm corresponding to the application system.

[0121] Optionally, in this embodiment, the trusted computing algorithm with the highest credibility can be obtained from multiple trusted computing algorithms but is not limited to being used as the trusted computing algorithm corresponding to the application system, thereby ensuring the high credibility of the computing results obtained by the application system.

[0122] As an optional embodiment, determining the trusted computing algorithm corresponding to the application system according to the matching degree between each trusted computing algorithm in the multiple trusted computing algorithms and the application system and the credibility of each trusted computing algorithm includes:

[0123] S81, calculating the matching degree between each trusted computing algorithm and the application system;

[0124] S82, determining the credibility of the trusted computing algorithm whose matching degree with the application system is higher than the target matching degree;

[0125] S83: Determine the trusted computing algorithm with the highest credibility among the trusted computing algorithms whose matching degree with the application system is higher than the target matching degree as the trusted computing algorithm corresponding to the application system.

[0126] Optionally, in this embodiment, it is possible but not limited to obtain a trusted computing algorithm with a relatively high degree of matching with the application system from multiple trusted computing algorithms, and then obtain a trusted computing algorithm with the highest degree of trust from the trusted computing algorithms with a relatively high degree of matching as the trusted computing algorithm corresponding to the application system. In this way, both the degree of trustworthiness of the trusted computing and the degree of adaptability of the trusted computing algorithm to the application are guaranteed.

[0127] The present application also provides an optional embodiment, which provides a resource load peak-shifting automatic routing platform. Figure 3 is a schematic diagram of a resource load peak-shifting automatic routing process according to an optional embodiment of the present application, such as Figure 3As shown, the resource load peak shifting automatic routing platform is connected to multiple application systems such as application systems (1, 2, ..., N), and the resource load peak shifting automatic routing platform is also connected to multiple trusted computing algorithm pools such as trusted computing algorithm pools (1, 2, ..., M). Usually, the resource load peak shifting automatic routing platform routes the trusted computing requests sent by each application system to its corresponding trusted computing algorithm pool for processing and monitors the resource load of each trusted computing algorithm pool, for example: the trusted computing request sent by application system 1 is routed to trusted computing algorithm pool 4, the trusted computing request sent by application system 2 is routed to trusted computing algorithm pool N, and so on.

[0128] When the number of concurrent trusted computing requests is too large, automatic allocation is performed to reduce the pressure on the trusted computing algorithm pool with heavy computing pressure, and to achieve a dynamic balance of resource loads among multiple trusted computing algorithm pools. For example, when the resource load of trusted computing algorithm pool N is greater than a certain threshold, the portion exceeding the threshold is routed to trusted computing algorithm pool 2 with a smaller current resource load.

[0129] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0130] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for an electronic device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0131] According to another aspect of an embodiment of the present application, a trusted computing request routing device for implementing the above-mentioned trusted computing request routing method is also provided. Figure 4 is a schematic diagram of an optional trusted computing request routing device according to an embodiment of the present application, such as Figure 4 As shown, the device may include:

[0132] A routing module 42, configured to route a trusted computing request sent by an application system to a trusted computing algorithm corresponding to the application system among a plurality of trusted computing algorithms;

[0133] A monitoring module 44, configured to monitor the relationship between the resource load of each trusted computing algorithm among the multiple trusted computing algorithms and the resource load threshold corresponding to each trusted computing algorithm;

[0134] The allocation module 46 is used to allocate the first resource load to a second trusted computing algorithm among the multiple trusted computing algorithms when monitoring that the first resource load of the first trusted computing algorithm among the multiple trusted computing algorithms is greater than or equal to the first resource load threshold corresponding to the first trusted computing algorithm.

[0135] It should be noted that the routing module 42 in this embodiment can be used to execute step S202 in the embodiment of the present application, the monitoring module 44 in this embodiment can be used to execute step S204 in the embodiment of the present application, and the allocation module 46 in this embodiment can be used to execute step S206 in the embodiment of the present application.

[0136] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware.

[0137] Through the above-mentioned module, by providing multiple trusted computing algorithms to meet the computing needs of various application systems, the trusted computing requests sent by the application system can be routed to the corresponding trusted computing algorithm for processing. During the processing, the relationship between the resource load of each trusted computing algorithm and the resource load threshold corresponding to each trusted computing algorithm is monitored in real time. For the first trusted computing algorithm whose first resource load is greater than or equal to the first resource load threshold, the resource load it carries is distributed, and the second trusted computing algorithm among the multiple trusted computing algorithms shares the computing pressure for it, thereby relieving the pressure on the trusted computing algorithm that carries too much pressure and balancing the resource load distribution among the trusted computing algorithms, thereby achieving the technical effect of reducing the computing pressure of the trusted computing algorithm and improving the computing efficiency of the trusted computing algorithm, thereby solving the technical problem of high computing pressure of the trusted computing algorithm in the related technology.

[0138] As an optional embodiment, the allocation module includes:

[0139] an acquiring unit, configured to acquire, from the first resource load, a second resource load exceeding a second resource load threshold, wherein the second resource load threshold is less than or equal to the first resource load threshold;

[0140] The allocating unit is configured to allocate the second resource load to a second trusted computing algorithm among the plurality of trusted computing algorithms.

[0141] As an optional embodiment, the allocation unit is used for:

[0142] Obtaining a random trusted computing algorithm from a third trusted computing algorithm as the second trusted computing algorithm, or using a trusted computing algorithm with the smallest current resource load as the second trusted computing algorithm, wherein the third trusted computing algorithm is a trusted computing algorithm other than the first trusted computing algorithm among the multiple trusted computing algorithms;

[0143] The second resource load is distributed to the second trusted computing algorithm.

[0144] As an optional embodiment, the allocation unit is used for:

[0145] Acquire a trusted computing algorithm whose current resource load is less than the corresponding resource load threshold from a third trusted computing algorithm as the second trusted computing algorithm, wherein the third trusted computing algorithm is a trusted computing algorithm among the multiple trusted computing algorithms except the first trusted computing algorithm;

[0146] The second resource load is distributed to the second trusted computing algorithm.

[0147] As an optional embodiment, the allocation unit is used for one of the following:

[0148] Evenly distributing the second resource load to the second trusted computing algorithm;

[0149] The second resource load is allocated to the second trusted computing algorithm according to the relationship between the current resource load corresponding to the second trusted computing algorithm and the resource load threshold, wherein the allocated resource load corresponding to the second trusted computing algorithm is less than or equal to the resource load threshold corresponding to the second trusted computing algorithm.

[0150] As an optional embodiment, the routing module includes:

[0151] a determining unit, configured to determine a trusted computing algorithm corresponding to the application system according to a matching degree between each trusted computing algorithm among the plurality of trusted computing algorithms and the application system and / or a trustworthiness of each trusted computing algorithm;

[0152] The routing module is used to route the trusted computing request sent by the application system to the trusted computing algorithm corresponding to the application system.

[0153] As an optional embodiment, the determining unit is used to:

[0154] Calculating the matching degree between each trusted computing algorithm and the application system;

[0155] A trusted computing algorithm among the multiple trusted computing algorithms that has the highest matching degree with the application system is determined as the trusted computing algorithm corresponding to the application system.

[0156] As an optional embodiment, the determining unit is used to:

[0157] Determining the credibility of each of the trusted computing algorithms;

[0158] A trusted computing algorithm with the highest credibility among the multiple trusted computing algorithms is determined as the trusted computing algorithm corresponding to the application system.

[0159] As an optional embodiment, the determining unit is used to:

[0160] Calculating the matching degree between each trusted computing algorithm and the application system;

[0161] Determining the credibility of a trusted computing algorithm having a higher matching degree with the application system than a target matching degree;

[0162] The trusted computing algorithm with the highest credibility among the trusted computing algorithms whose matching degree with the application system is higher than the target matching degree is determined as the trusted computing algorithm corresponding to the application system.

[0163] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.

[0164] According to another aspect of an embodiment of the present application, an electronic device for implementing the above-mentioned routing method of trusted computing requests is also provided.

[0165] Figure 5 is a structural block diagram of an electronic device according to an embodiment of the present application, such as Figure 5 As shown, the electronic device may include: one or more (only one is shown in the figure) processors 501, a memory 503, and a transmission device 505, such as Figure 5As shown, the electronic device may further include an input / output device 507 .

[0166] Among them, the memory 503 can be used to store software programs and modules, such as the program instructions / modules corresponding to the routing method and device of the trusted computing request in the embodiment of the present application. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 503, that is, the routing method of the trusted computing request mentioned above is realized. The memory 503 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 503 may further include a memory remotely arranged relative to the processor 501, and these remote memories can be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0167] The above-mentioned transmission device 505 is used to receive or send data via a network, and can also be used for data transmission between a processor and a memory. The above-mentioned network specific examples may include wired networks and wireless networks. In one example, the transmission device 505 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 505 is a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.

[0168] Specifically, the memory 503 is used to store application programs.

[0169] The processor 501 may call the application stored in the memory 503 through the transmission device 505 to perform the following steps:

[0170] Routing the trusted computing request sent by the application system to a trusted computing algorithm corresponding to the application system among a plurality of trusted computing algorithms;

[0171] Monitoring the relationship between the resource load of each trusted computing algorithm among the multiple trusted computing algorithms and the resource load threshold corresponding to each trusted computing algorithm;

[0172] When it is monitored that a first resource load of a first trusted computing algorithm among the multiple trusted computing algorithms is greater than or equal to a first resource load threshold corresponding to the first trusted computing algorithm, the first resource load is allocated to a second trusted computing algorithm among the multiple trusted computing algorithms.

[0173] By adopting the embodiment of the present application, a solution for routing trusted computing requests is provided. By providing multiple trusted computing algorithms to meet the computing requirements of various application systems, the trusted computing requests sent by the application system can be routed to the trusted computing algorithms corresponding thereto for processing. During the processing, the relationship between the resource load of each trusted computing algorithm and the resource load threshold corresponding to each trusted computing algorithm is monitored in real time. For the first trusted computing algorithm whose first resource load is greater than or equal to the first resource load threshold, the resource load carried by it is distributed, and the second trusted computing algorithm among the multiple trusted computing algorithms shares the computing pressure for it, so as to release the pressure for the trusted computing algorithm with excessive pressure, and balance the resource load distribution among the trusted computing algorithms, thereby achieving the technical effect of reducing the computing pressure of the trusted computing algorithm and improving the computing efficiency of the trusted computing algorithm, thereby solving the technical problem of high computing pressure of the trusted computing algorithm in the related technology.

[0174] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0175] It can be understood by those skilled in the art that Figure 5 The structure shown is for illustration only, and the electronic device may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, or other electronic devices. Figure 5 The structure of the electronic device is not limited. Figure 5 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 5 Different configurations shown.

[0176] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the electronic device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0177] The embodiment of the present application also provides a storage medium. Optionally, in this embodiment, the storage medium can be used to execute the program code of the routing method of the trusted computing request.

[0178] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.

[0179] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0180] Routing the trusted computing request sent by the application system to a trusted computing algorithm corresponding to the application system among a plurality of trusted computing algorithms;

[0181] Monitoring the relationship between the resource load of each trusted computing algorithm among the multiple trusted computing algorithms and the resource load threshold corresponding to each trusted computing algorithm;

[0182] When it is monitored that a first resource load of a first trusted computing algorithm among the multiple trusted computing algorithms is greater than or equal to a first resource load threshold corresponding to the first trusted computing algorithm, the first resource load is allocated to a second trusted computing algorithm among the multiple trusted computing algorithms.

[0183] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0184] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0185] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0186] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0187] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0188] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0189] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0190] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0191] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A routing method for trusted computing requests, characterized in that: include: Routing the trusted computing request sent by the application system to a trusted computing algorithm corresponding to the application system among a plurality of trusted computing algorithms; Monitoring the relationship between the resource load of each trusted computing algorithm among the multiple trusted computing algorithms and the resource load threshold corresponding to each trusted computing algorithm; In the case where it is monitored that a first resource load of a first trusted computing algorithm among the multiple trusted computing algorithms is greater than or equal to a first resource load threshold corresponding to the first trusted computing algorithm, allocating the first resource load to a second trusted computing algorithm among the multiple trusted computing algorithms, including: acquiring a second resource load exceeding a second resource load threshold from the first resource load, where the second resource load threshold is less than or equal to the first resource load threshold; The second resource load is distributed to a second trusted computing algorithm among the plurality of trusted computing algorithms.

2. The method according to claim 1, characterized in that Allocating the second resource load to a second trusted computing algorithm among the plurality of trusted computing algorithms comprises: Obtaining a random trusted computing algorithm from a third trusted computing algorithm as the second trusted computing algorithm, or using a trusted computing algorithm with the smallest current resource load as the second trusted computing algorithm, wherein the third trusted computing algorithm is a trusted computing algorithm other than the first trusted computing algorithm among the multiple trusted computing algorithms; The second resource load is distributed to the second trusted computing algorithm.

3. The method according to claim 1, characterized in that Allocating the second resource load to a second trusted computing algorithm among the plurality of trusted computing algorithms comprises: Acquire a trusted computing algorithm whose current resource load is less than the corresponding resource load threshold from a third trusted computing algorithm as the second trusted computing algorithm, wherein the third trusted computing algorithm is a trusted computing algorithm among the multiple trusted computing algorithms except the first trusted computing algorithm; The second resource load is distributed to the second trusted computing algorithm.

4. The method according to claim 3, characterized in that Allocating the second resource load to the second trusted computing algorithm includes one of the following: Evenly distributing the second resource load to the second trusted computing algorithm; The second resource load is allocated to the second trusted computing algorithm according to the relationship between the current resource load corresponding to the second trusted computing algorithm and the resource load threshold, wherein the allocated resource load corresponding to the second trusted computing algorithm is less than or equal to the resource load threshold corresponding to the second trusted computing algorithm.

5. The method according to claim 1, characterized in that Routing the trusted computing request sent by the application system to a trusted computing algorithm corresponding to the application system among multiple trusted computing algorithms includes: Determining a trusted computing algorithm corresponding to the application system according to a matching degree between each trusted computing algorithm among the multiple trusted computing algorithms and the application system and / or a trustworthiness of each trusted computing algorithm; The trusted computing request sent by the application system is routed to the trusted computing algorithm corresponding to the application system.

6. The method according to claim 5, characterized in that Determining the trusted computing algorithm corresponding to the application system according to the matching degree between each trusted computing algorithm in the multiple trusted computing algorithms and the application system includes: Calculating the matching degree between each trusted computing algorithm and the application system; A trusted computing algorithm among the multiple trusted computing algorithms that has the highest matching degree with the application system is determined as the trusted computing algorithm corresponding to the application system.

7. The method according to claim 5, characterized in that Determining the trusted computing algorithm corresponding to the application system according to the credibility of each trusted computing algorithm includes: Determining the credibility of each of the trusted computing algorithms; A trusted computing algorithm with the highest credibility among the multiple trusted computing algorithms is determined as the trusted computing algorithm corresponding to the application system.

8. The method according to claim 5, characterized in that Determining the trusted computing algorithm corresponding to the application system according to the matching degree between each trusted computing algorithm in the plurality of trusted computing algorithms and the application system and the credibility of each trusted computing algorithm includes: Calculating the matching degree between each trusted computing algorithm and the application system; Determining the credibility of a trusted computing algorithm having a higher matching degree with the application system than a target matching degree; The trusted computing algorithm with the highest credibility among the trusted computing algorithms whose matching degree with the application system is higher than the target matching degree is determined as the trusted computing algorithm corresponding to the application system.

9. A routing device for trusted computing requests, characterized in that: include: A routing module, used for routing a trusted computing request sent by an application system to a trusted computing algorithm corresponding to the application system among a plurality of trusted computing algorithms; A monitoring module, configured to monitor the relationship between the resource load of each trusted computing algorithm among the multiple trusted computing algorithms and the resource load threshold corresponding to each trusted computing algorithm; an allocation module, configured to allocate the first resource load to a second trusted computing algorithm among the multiple trusted computing algorithms when monitoring that a first resource load of a first trusted computing algorithm among the multiple trusted computing algorithms is greater than or equal to a first resource load threshold corresponding to the first trusted computing algorithm; Among them, the allocation module includes: an acquisition unit, used to obtain a second resource load exceeding a second resource load threshold from the first resource load, and the second resource load threshold is less than or equal to the first resource load threshold; an allocation unit, used to allocate the second resource load to a second trusted computing algorithm among the multiple trusted computing algorithms.

10. The device according to claim 9, characterized in that The allocation unit is used to: Acquire a random trusted computing algorithm from a third trusted computing algorithm as the second trusted computing algorithm, or obtain a trusted computing algorithm with the smallest current resource load as the second trusted computing algorithm, wherein the third trusted computing algorithm is a trusted computing algorithm other than the first trusted computing algorithm among the multiple trusted computing algorithms; The second resource load is distributed to the second trusted computing algorithm.

11. The device according to claim 9, characterized in that The allocation unit is used to: Acquire a trusted computing algorithm whose current resource load is less than the corresponding resource load threshold from a third trusted computing algorithm as the second trusted computing algorithm, wherein the third trusted computing algorithm is a trusted computing algorithm among the multiple trusted computing algorithms except the first trusted computing algorithm; The second resource load is distributed to the second trusted computing algorithm.

12. The device according to claim 11, characterized in that The allocation unit is used for one of the following: Evenly distributing the second resource load to the second trusted computing algorithm; The second resource load is allocated to the second trusted computing algorithm according to the relationship between the current resource load corresponding to the second trusted computing algorithm and the resource load threshold, wherein the allocated resource load corresponding to the second trusted computing algorithm is less than or equal to the resource load threshold corresponding to the second trusted computing algorithm.

13. The device according to claim 9, characterized in that The routing module includes: a determining unit, configured to determine a trusted computing algorithm corresponding to the application system according to a matching degree between each trusted computing algorithm among the plurality of trusted computing algorithms and the application system and / or a trustworthiness of each trusted computing algorithm; The routing module is used to route the trusted computing request sent by the application system to the trusted computing algorithm corresponding to the application system.

14. The device according to claim 13, characterized in that The determining unit is used for: Calculating the matching degree between each trusted computing algorithm and the application system; A trusted computing algorithm among the multiple trusted computing algorithms that has the highest matching degree with the application system is determined as the trusted computing algorithm corresponding to the application system.

15. The device according to claim 13, characterized in that The determining unit is used for: Determining the credibility of each of the trusted computing algorithms; A trusted computing algorithm with the highest credibility among the multiple trusted computing algorithms is determined as the trusted computing algorithm corresponding to the application system.

16. The device according to claim 13, characterized in that The determining unit is used for: Calculating the matching degree between each trusted computing algorithm and the application system; Determining the credibility of a trusted computing algorithm having a higher matching degree with the application system than a target matching degree; The trusted computing algorithm with the highest credibility among the trusted computing algorithms whose matching degree with the application system is higher than the target matching degree is determined as the trusted computing algorithm corresponding to the application system.

17. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 8 when executed.

18. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The processor executes the method described in any one of claims 1 to 8 through the computer program.