Gateway-based computing power allocation method, device, gateway device and storage medium
By identifying the insufficient gateway computing resources and adjusting the computing power allocation mode, the network stability problem caused by the static allocation of computing resources of gateway equipment in the existing technology is solved, and dynamic adjustment of computing resources and network stability are achieved.
Patent Information
- Application Number
- CN202510238395.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-03
- Publication Date
- 2025-04-04
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing gateway equipment has static properties in computing resource allocation, resulting in increased task squeezing and computing pressure during peak time periods, affecting network stability.
By identifying that when the gateway computing resources are insufficient, the device information and task information of the terminal device are obtained, the resource demand situation is determined, and the computing power allocation mode is adjusted according to the resource demand situation and the initial computing power allocation mode, thereby dynamically allocating computing resources.
Dynamic adjustment of computing resources is achieved, and the stability of the network during peak time periods and the utilization efficiency of computing resources is improved.
Smart Images

Figure CN119759581A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things, and in particular to a gateway-based computing power allocation method, a gateway-based computing power allocation device, a gateway device and a storage medium. Background Art
[0002] With the continuous development of information technology, the Internet of Things collects countless amounts of data through an astonishing number of sensors. As the amount of collected data continues to increase and efficient real-time computing and control are required, a large number of edge devices need to be deployed for edge computing. The carrier of edge computing is generally a high-performance gateway device. At present, gateway devices generally statically allocate computing resources, but once the load of the terminal device changes, the gateway needs to allocate more computing resources, especially in some peak time periods, which will lead to more task squeezing and computing pressure, thereby affecting the stability of the network.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a gateway-based computing power allocation method, aiming to improve the stability of the network. To achieve the above purpose, the present invention provides a gateway-based computing power allocation method, the gateway-based computing power allocation method comprising the following steps: When it is identified that the computing resources of the gateway are insufficient, obtaining the first computing power allocation mode at the current moment, device information of the target terminal device, and corresponding task information, wherein the target terminal device is a terminal device connected to the gateway; Identify the resource demand scenario of the gateway at the current moment according to the device information and the task information; Determine a second computing power allocation mode according to the resource demand scenario and the first computing power allocation mode; The computing resources of the gateway are allocated according to the second computing power allocation mode.
[0005] Optionally, there are multiple target terminal devices, the device information includes: the access time and access times of the target terminal device, the task information includes: the computing resource demand at the current moment, the number of tasks and the latest deadline processing time, and the step of identifying the resource demand scenario of the gateway at the current moment according to the device information and the task information includes: Determine the operating state of each of the target terminal devices according to the access time, the number of accesses, the computing resource requirement, the number of tasks, and the latest deadline processing time, and obtain a plurality of the operating states; The resource demand scenario is determined according to the operating status of the plurality of target terminal devices.
[0006] Optionally, the step of determining the resource demand scenario according to the operating states of the plurality of target terminal devices includes: Matching the operating status of each target terminal device with its corresponding historical operating status within a corresponding preset time period to obtain multiple matching results; The resource demand scenario is determined according to the multiple matching results.
[0007] Optionally, the operating state includes: peak load state, normal state, and new device operating state. The step of determining the operating state of each target terminal device according to the access time, the number of accesses, the computing resource requirement, the number of tasks, and the latest deadline processing time, and obtaining the plurality of operating states includes: When the first condition is met, determining that the operating state of the target terminal device is a new device operating state; When the first condition is not met, determining that the operating state is a peak load state or a normal state according to the computing resource demand, the number of tasks, and the latest deadline processing time corresponding to the target terminal device; The first condition is that the access time is within a preset access time interval, and the access number is less than or equal to a preset access number.
[0008] Optionally, the resource demand scenario includes: a new device access scenario, a network disconnection local control scenario, and a terminal call peak scenario, the operating state includes: a load peak state, a normal state, and a new device operating state, and the step of determining the resource demand scenario according to the operating states of the plurality of target terminal devices includes: Calculate a first total demand based on the computing resource demands of all target terminal devices whose operating states are in a peak load state, calculate a second total demand based on the computing resource demands of all target terminal devices whose operating states are in a normal state, and calculate a third total demand based on the computing resource demands of all target terminal devices whose operating states are in a new device operating state; When the first total demand is greater than or equal to a preset demand threshold, determining that the resource demand scenario is the terminal call peak scenario; When the second total demand is greater than or equal to a preset demand threshold, determining that the resource demand scenario is the disconnected local control scenario; When the third total demand is greater than or equal to a preset demand threshold, the resource demand scenario is determined to be the new device access scenario.
[0009] Optionally, the step of determining the second computing power allocation mode according to the resource demand scenario and the first computing power allocation mode includes: Determine a resource allocation whitelist according to the first computing power allocation mode, where the resource allocation whitelist includes: an identifier of the terminal device and a task type of the terminal device; The second computing power allocation mode is determined according to the resource allocation whitelist and the resource demand scenario.
[0010] Optionally, after the step of allocating computing resources of the gateway according to the second computing power allocation mode, the method further includes: Record information corresponding to the task to be processed, where the task to be processed is a task of a target terminal device to which the computing resource is not allocated.
[0011] In addition, to achieve the above-mentioned purpose, the present invention also provides a gateway-based computing power allocation device, and the gateway-based computing power allocation device includes: an acquisition module, configured to acquire, when it is identified that the computing resources of the gateway are insufficient, a first computing power allocation mode at a current moment, device information of a target terminal device, and corresponding task information, wherein the target terminal device is a terminal device connected to the gateway; An analysis module, configured to identify a resource demand scenario of the gateway at a current moment according to the device information and the task information; A selection module, configured to determine a second computing power allocation mode according to the resource demand scenario and the first computing power allocation mode; An allocation module is used to allocate computing resources of the gateway according to the second computing power allocation mode.
[0012] In addition, to achieve the above-mentioned purpose, the present invention also provides a gateway device, which includes: a memory, a processor, and a gateway-based computing power allocation program stored on the memory and executable on the processor, wherein the gateway-based computing power allocation program is configured to implement the steps of the gateway-based computing power allocation method described in any one of the above-mentioned items.
[0013] In addition, to achieve the above-mentioned purpose, the present invention also provides a storage medium, on which a gateway-based computing power allocation program is stored. When the gateway-based computing power allocation program is executed by a processor, the steps of any of the above-mentioned gateway-based computing power allocation methods are implemented.
[0014] The present invention proposes a gateway-based computing power allocation method. When the method identifies that the computing resources of the gateway are insufficient, the method identifies the resource demand scenario of the gateway at the current moment through the device information and the task information. In fact, the current operating status of each target terminal device can be determined through data, so as to determine the computing resource demand scenario currently faced by the gateway. According to the resource demand scenario and the first computing power allocation mode, the second computing power allocation mode can be determined, and then the allocation mode can be adjusted to better adapt to the corresponding computing needs, thereby improving the stability of the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a schematic diagram of the structure of a gateway device in a hardware operating environment involved in an embodiment of the present invention; Figure 2 It is a flowchart of a first embodiment of a gateway-based computing power allocation method of the present invention; Figure 3 It is a flow chart of a second embodiment of the gateway-based computing power allocation method of the present invention; Figure 4 The specific execution steps of step S22 in the second embodiment of the gateway-based computing power allocation method of the present invention; Figure 5 It is a flow chart of a third embodiment of the gateway-based computing power allocation method of the present invention; The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0016] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0017] Reference Figure 1 , Figure 1 A schematic diagram of the structure of a gateway device in a hardware operating environment according to an embodiment of the present invention.
[0018] like Figure 1As shown, the gateway device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, an interactive device 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The interactive device 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional interactive device 1003 may also be connected to the communication bus through a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0019] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the gateway device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0020] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a gateway-based computing power allocation program.
[0021] exist Figure 1 In the gateway device shown, the network interface 1004 is mainly used for data communication with other devices; the interactive device 1003 is mainly used for data interaction with users; the processor 1001 and the memory 1005 in the gateway device of the present invention can be set in the gateway device, and the gateway device calls the gateway-based computing power allocation program stored in the memory 1005 through the processor 1001, and executes the gateway-based computing power allocation method provided in the embodiment of the present invention.
[0022] The embodiment of the present invention provides a gateway-based computing power allocation method, referring to Figure 2 , Figure 2 The figure is a flow chart of a first embodiment of a gateway-based computing power allocation method of the present invention.
[0023] In this embodiment, the gateway-based computing power allocation method includes: Step S1, when it is identified that the computing resources of the gateway are insufficient, obtaining the first computing power allocation mode at the current moment, the device information of the target terminal device and the corresponding task information, wherein the target terminal device is a terminal device connected to the gateway; In this embodiment, the target terminal device here can be a mobile terminal, such as a car terminal; or a fixed terminal, such as a home appliance terminal. The target terminal device here will send task information to the gateway, wherein the gateway will calculate the estimated completion time of the task corresponding to the task information, and because the task information includes the latest deadline processing time. Task information is the information of the task sent by the target terminal device to the gateway. Optionally, when there is a task information with an estimated completion time later than the latest deadline processing time, it is determined that the computing resources of the gateway are insufficient. Optionally, when there are more than a preset number of tasks with an estimated completion time later than the corresponding latest deadline processing time, it is determined that the computing resources of the gateway are insufficient. Optionally, in some networks, a gateway can often connect to one or more edge computing servers, and the computing resources of these edge servers can be used as the computing capacity of the gateway when they can be called by the gateway. The first computing power allocation mode here does not limit the specific computing power allocation method, and can be a computing power allocation method based on device priority. The device information here may be information related to the target terminal device, such as: device address, device serial number, device historical connection record, device historical person request task record.
[0024] Step S2, identifying the resource demand scenario of the gateway at the current moment according to the device information and the task information; Optionally, the resource demand scenarios here may be pre-set into different types, and different types of new resource demand scenarios correspond to different situations of the device information and the task information.
[0025] The device information here is the device information of a device. Since the number of devices connected to the gateway is actually unlimited, the number of the device information and the task information is not limited. In some embodiments, the operation status of each device at the current moment is analyzed through the device information and the task information corresponding to each target terminal device, and the resource demand scenario is determined according to the operation status of all the target terminal devices.
[0026] Step S3, determining a second computing power allocation mode according to the resource demand scenario and the first computing power allocation mode; Optionally, the first computing power allocation mode is adjusted according to the resource demand scenario to obtain the second computing power allocation mode, for example: the coefficients of the algorithm formula in the first computing power allocation mode are adjusted, or, according to the priority in the first computing power allocation mode, the priority of the second computing power allocation mode is determined. Of course, when it can be judged that the computing power allocation mode needs to be changed according to the resource demand scenario and the first computing power allocation mode, a computing power allocation mode can be selected from the preset computing power allocation mode library as the second computing power allocation mode. In this embodiment, the identification of the resource demand scenario is actually completed, and the current computing power allocation mode is changed based on the resource demand scenario, so that the gateway switches the computing power allocation mode.
[0027] Step S4: Allocate computing resources of the gateway according to the second computing power allocation mode.
[0028] Specifically, the use of the computing resources of the gateway is determined according to the task of the target terminal device and the second computing power allocation mode.
[0029] In this embodiment, when it is identified that the computing resources of the gateway are insufficient, the resource demand scenario of the gateway at the current moment is identified through the device information and the task information. In fact, the current operating status of each target terminal device can be determined through data, thereby determining the computing resource demand scenario currently faced by the gateway. According to the resource demand scenario and the first computing power allocation mode, the second computing power allocation mode can be determined, and then the allocation mode can be adjusted to better adapt to the corresponding computing needs, thereby improving the stability of the network.
[0030] Further, based on the first embodiment, a second embodiment of the method for allocating computing power based on a gateway of the present invention is proposed. In this embodiment, referring to Figure 3 , the number of the target terminal devices is multiple, the device information includes: the access time and access times of the target terminal devices, the task information includes: the computing resource demand at the current moment, the number of tasks and the latest deadline processing time, and the step of identifying the resource demand scenario of the gateway at the current moment according to the device information and the task information includes: Step S21, determining the operating state of each of the target terminal devices according to the access time, the number of accesses, the computing resource requirement, the number of tasks, and the latest deadline processing time, to obtain a plurality of the operating states; The operation state can be determined by the access time, the number of accesses, the computing resource demand, the number of tasks and the latest deadline processing time. For example, when the number of accesses in the first preset time interval before the current moment is greater than the first preset number of accesses, the operation state of the target terminal device is determined to be abnormal, and the specific abnormality is marked as frequent disconnection. For the target terminal device marked as frequent disconnection, the computing resource demand corresponding to the target terminal device marked as frequent disconnection and the number of tasks are used to determine whether there are more tasks than the resource demand threshold. When the computing resource demand corresponding to the target terminal device marked as frequent disconnection is greater than or equal to the first preset resource demand, or the number of tasks is greater than or equal to the first number of tasks, an abnormal resource request identifier is added to the target terminal device marked as frequent disconnection. It should be explained that for the target terminal device, multiple different labels can be set. Optionally, all labels of the target terminal device are regarded as the operation state of a target terminal.
[0031] Step S22: determining the resource demand scenario according to the operating status of the plurality of target terminal devices.
[0032] Optionally, the current resource demand scenario is determined according to the operating status of each of the target terminal devices. For example, when there is a target terminal with an abnormal resource request identifier and a frequent disconnection identifier, it is determined to be an abnormal operating environment for a single abnormal terminal device. Correspondingly, the second computing power allocation mode is the condition of the target terminal with an abnormal resource request identifier and a frequent disconnection identifier with restrictions added on the basis of the first computing power allocation mode.
[0033] In this embodiment, the operating status of each of the target terminal devices is determined based on the access time, the number of accesses, the computing resource requirement, the number of tasks and the latest processing deadline, and a plurality of operating statuses are obtained. In fact, the actual operating status of each target terminal device can be determined, and the resource requirement scenario can be determined based on the operating status of the plurality of target terminal devices, thereby improving the accuracy of determining the resource requirement scenario.
[0034] Optionally, refer to Figure 4 The step of determining the resource demand scenario according to the operating status of the plurality of target terminal devices comprises: Step S221, matching the operation status of each target terminal device with its corresponding historical operation status within a corresponding preset time period to obtain multiple matching results; Step S222: determining the resource demand scenario according to the multiple matching results.
[0035] In this embodiment, since different types of target terminal devices have different working principles, require different computing resources, and work in different locations, even the same type of target terminal devices may have different operating states. Specifically, the preset time period here may be before the current moment, and the length of the preset time period is not limited. Optionally, the target terminal device may be a surveillance camera, and the number of face information in the video acquired by the surveillance camera in different time periods is different. Multiple matching results are obtained by matching the operating state of each of the target terminal devices with the corresponding historical operating state in the corresponding preset time period. When the multiple matching results are all normal matches, the resource demand scenario is determined to be a computing resource and actual resource step matching scenario. When there is an abnormality in the multiple matching results, it is necessary to further determine the type of the resource demand scenario.
[0036] In this embodiment, by matching the operating status of each of the target terminal devices with its corresponding historical operating status within a corresponding preset time period, multiple matching results are obtained, and the resource demand scenario is determined based on the multiple matching results, thereby improving the accuracy of the current resource demand scenario based on historical data.
[0037] Further, based on the first embodiment or the second embodiment, a third embodiment of the computing power allocation method based on a gateway of the present invention is proposed. In this embodiment, referring to Figure 5 The operating status includes: peak load status, normal status, and new device operating status. The operating status of each target terminal device is determined according to the access time, the number of accesses, the computing resource requirements, the number of tasks, and the latest deadline processing time. The step of obtaining multiple operating statuses includes: Step S211, when the first condition is met, determining that the operating state of the target terminal device is a new device operating state; Step S212, when the first condition is not met, determining whether the operating state is a peak load state or a normal state according to the computing resource demand, the number of tasks, and the latest deadline processing time corresponding to the target terminal device; The first condition is that the access time is within a preset access time interval, and the access number is less than or equal to a preset access number.
[0038] Specifically, the first condition here is used to determine whether the target terminal device is a newly connected device. For example, when the access time is within 1 hour and the access number is 1, the operating state of the target terminal device is determined to be a new device operating state. In other embodiments, the first condition can be set by itself. When the first condition is not met, the operating state is determined based on the computing resource demand, the number of tasks and the latest deadline processing time corresponding to the target terminal device. Further, the operating state here can be one of a peak load state, a normal state and an abnormal state.
[0039] Further, based on any of the above embodiments, a fourth embodiment of the gateway-based computing power allocation method of the present invention is proposed. In this embodiment, the resource demand scenario includes: a new device access scenario, a network disconnection local control scenario, and a terminal call peak scenario. The operating state includes: a load peak state, a normal state, and a new device operating state. The step of determining the resource demand scenario according to the operating states of the multiple target terminal devices includes: Calculate a first total demand based on the computing resource demands of all target terminal devices whose operating states are in a peak load state, calculate a second total demand based on the computing resource demands of all target terminal devices whose operating states are in a normal state, and calculate a third total demand based on the computing resource demands of all target terminal devices whose operating states are in a new device operating state; When the first total demand is greater than or equal to a preset demand threshold, determining that the resource demand scenario is the terminal call peak scenario; When the second total demand is greater than or equal to a preset demand threshold, determining that the resource demand scenario is the disconnected local control scenario; When the third total demand is greater than or equal to a preset demand threshold, the resource demand scenario is determined to be the new device access scenario.
[0040] In this embodiment, the required computing resources of target terminal devices in various operating states are calculated, so that the target terminal devices that cause insufficient resources can be determined. Specifically, in smart cities, there are scenarios such as traffic flow monitoring and air quality monitoring that require periodic operation of target terminal devices. During the morning rush hour on weekdays, the above-mentioned terminal call peak scenario will exist in the process of traffic flow monitoring; in the smart home system, when the network is interrupted, the smart device will generally adjust to local control without relying on the cloud server. In this process, there will be a scenario in which the number of gateway access devices increases in a short period of time, that is, the disconnected local control scenario; in addition, when a new device is connected to the gateway, it is often necessary to debug the new target terminal device, and computing resource fluctuations may occur in this process, that is, the new device access scenario. The preset demand threshold here can be adjusted dynamically or fixed. In other embodiments, the resource demand scenario can also be verified according to the purpose set by the device manager.
[0041] In this embodiment, by calculating the total demand for computing resources corresponding to different types of operating states to determine the resource demand scenario, the problem of privacy leakage in the process of calling computing resources can be effectively avoided, and the resource demand scenario can be determined even when data is encrypted.
[0042] Further, based on any of the above embodiments, a fifth embodiment of the gateway-based computing power allocation method of the present invention is proposed. In this embodiment, the step of determining the second computing power allocation mode according to the resource demand scenario and the first computing power allocation mode includes: Determine a resource allocation whitelist according to the first computing power allocation mode, where the resource allocation whitelist includes: an identifier of the terminal device and a task type of the terminal device; The second computing power allocation mode is determined according to the resource allocation whitelist and the resource demand scenario.
[0043] In this embodiment, it should be noted that the resource allocation whitelist here can be the target terminal device with the highest resource allocation priority in the first computing power allocation mode. The second computing power allocation mode here can be an allocation mode set for a resource demand scenario. Specifically, when the resource demand scenario is the disconnected local control scenario, the priority of the target terminal device is determined according to the access time of the target terminal device, and computing resources are preferentially allocated to the target terminal device with a high priority.
[0044] Further, after the step of allocating computing resources of the gateway according to the second computing power allocation mode, the method further includes: Record information corresponding to the task to be processed, where the task to be processed is a task of a target terminal device to which the computing resource is not allocated.
[0045] In addition, an embodiment of the present invention further proposes a gateway-based computing power allocation device, wherein the gateway-based computing power allocation device includes: an acquisition module, configured to acquire, when it is identified that the computing resources of the gateway are insufficient, a first computing power allocation mode at a current moment, device information of a target terminal device, and corresponding task information, wherein the target terminal device is a terminal device connected to the gateway; An analysis module, configured to identify a resource demand scenario of the gateway at a current moment according to the device information and the task information; A selection module, configured to determine a second computing power allocation mode according to the resource demand scenario and the first computing power allocation mode; An allocation module is used to allocate computing resources of the gateway according to the second computing power allocation mode.
[0046] In addition, an embodiment of the present invention also proposes a gateway device, which includes: a memory, a processor, and a gateway-based computing power allocation program stored in the memory and executable on the processor, wherein the gateway-based computing power allocation program is configured to implement the steps of the gateway-based computing power allocation method described in any one of the above items.
[0047] In addition, an embodiment of the present invention further proposes a storage medium, on which a gateway-based computing power allocation program is stored. When the gateway-based computing power allocation program is executed by a processor, the steps of any of the above-mentioned gateway-based computing power allocation methods are implemented.
[0048] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0049] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0050] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods 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 invention is essentially 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, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal 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 invention.
[0051] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A gateway-based computing power allocation method, characterized in that: The gateway-based computing power allocation method comprises the following steps: When it is identified that the computing resources of the gateway are insufficient, obtaining the first computing power allocation mode at the current moment, device information of the target terminal device, and corresponding task information, wherein the target terminal device is a terminal device connected to the gateway; Identify the resource demand scenario of the gateway at the current moment according to the device information and the task information; Determine a second computing power allocation mode according to the resource demand scenario and the first computing power allocation mode; The computing resources of the gateway are allocated according to the second computing power allocation mode.
2. The gateway-based computing power allocation method according to claim 1, characterized in that: The number of the target terminal devices is multiple, the device information includes: the access time and access times of the target terminal devices, the task information includes: the computing resource demand at the current moment, the number of tasks and the latest deadline processing time, and the step of identifying the resource demand scenario of the gateway at the current moment according to the device information and the task information includes: Determine the operating state of each of the target terminal devices according to the access time, the number of accesses, the computing resource requirement, the number of tasks, and the latest deadline processing time, and obtain a plurality of the operating states; The resource demand scenario is determined according to the operating status of the plurality of target terminal devices.
3. The gateway-based computing power allocation method according to claim 2, characterized in that: The step of determining the resource demand scenario according to the operating status of the plurality of target terminal devices comprises: Matching the operating status of each target terminal device with its corresponding historical operating status within a corresponding preset time period to obtain multiple matching results; The resource demand scenario is determined according to the multiple matching results.
4. The gateway-based computing power allocation method according to claim 2, characterized in that: The operating status includes: peak load status, normal status, and new device operating status. The step of determining the operating status of each target terminal device according to the access time, the number of accesses, the computing resource requirements, the number of tasks, and the latest deadline processing time, and obtaining the plurality of operating statuses includes: When the first condition is met, determining that the operating state of the target terminal device is a new device operating state; When the first condition is not met, determining that the operating state is a peak load state or a normal state according to the computing resource demand, the number of tasks, and the latest deadline processing time corresponding to the target terminal device; The first condition is that the access time is within a preset access time interval, and the access number is less than or equal to a preset access number.
5. The gateway-based computing power allocation method according to claim 2, characterized in that: The resource demand scenarios include: new device access scenarios, disconnected local control scenarios, and terminal call peak scenarios. The operating states include: load peak states, normal states, and new device operating states. The step of determining the resource demand scenarios according to the operating states of the plurality of target terminal devices includes: Calculate a first total demand based on the computing resource demands of all target terminal devices whose operating states are in a peak load state, calculate a second total demand based on the computing resource demands of all target terminal devices whose operating states are in a normal state, and calculate a third total demand based on the computing resource demands of all target terminal devices whose operating states are in a new device operating state; When the first total demand is greater than or equal to a preset demand threshold, determining that the resource demand scenario is the terminal call peak scenario; When the second total demand is greater than or equal to a preset demand threshold, determining that the resource demand scenario is the disconnected local control scenario; When the third total demand is greater than or equal to a preset demand threshold, the resource demand scenario is determined to be the new device access scenario.
6. The gateway-based computing power allocation method according to claim 1, characterized in that: The step of determining the second computing power allocation mode according to the resource demand scenario and the first computing power allocation mode comprises: Determine a resource allocation whitelist according to the first computing power allocation mode, where the resource allocation whitelist includes: an identifier of the terminal device and a task type of the terminal device; The second computing power allocation mode is determined according to the resource allocation whitelist and the resource demand scenario.
7. The gateway-based computing power allocation method according to any one of claims 1 to 6, characterized in that: After the step of allocating computing resources of the gateway according to the second computing power allocation mode, the method further includes: Record information corresponding to the task to be processed, where the task to be processed is a task of a target terminal device to which the computing resource is not allocated.
8. A computing power allocation device based on a gateway, characterized in that: The gateway-based computing power allocation device includes: an acquisition module, configured to acquire, when it is identified that the computing resources of the gateway are insufficient, a first computing power allocation mode at a current moment, device information of a target terminal device, and corresponding task information, wherein the target terminal device is a terminal device connected to the gateway; An analysis module, configured to identify a resource demand scenario of the gateway at a current moment according to the device information and the task information; A selection module, configured to determine a second computing power allocation mode according to the resource demand scenario and the first computing power allocation mode; An allocation module is used to allocate computing resources of the gateway according to the second computing power allocation mode.
9. A gateway device, characterized in that: The gateway device includes: a memory, a processor, and a gateway-based computing power allocation program stored in the memory and executable on the processor, wherein the gateway-based computing power allocation program is configured to implement the steps of the gateway-based computing power allocation method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a gateway-based computing power allocation program, and when the gateway-based computing power allocation program is executed by the processor, the steps of the gateway-based computing power allocation method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Native computing power service implementation method and device, network equipment and terminal
CN114980034A
Network computing power arrangement method, device and equipment and computer storage medium
CN116962528A
Calculation power scheduling method and system under provincial regional calculation power network
CN118939402A
Computing power resource allocation method and device, medium and program product
CN119248473A
Electronic device and method for communication system and storage medium
WO2023083138A1