Resource scheduling method and apparatus

By implementing the resource scheduling method in the terminal device, the problem of how terminal devices in the wireless network share and utilize their computing resources is solved, and the fair distribution and effective utilization of computing resources is achieved.

WO2025035366A1PCT designated stage expired Publication Date: 2025-02-20HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2023/112968
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-08-14
Publication Date
2025-02-20

AI Technical Summary

Technical Problem

In wireless networks, the prior art has not yet solved the problem of how terminal devices share and utilize their computing resources, especially the lack of effective technical solutions in the allocation of computing resources in tasks.

Method used

By implementing the resource scheduling method in the terminal device, the terminal device can obtain computing power resources, determine the computing power control parameters of the service, and allocate computing power resources to the service based on these parameters. The method includes receiving configuration information of the network device, determining computing power control parameters, such as rate and time windows, and allocating computing power resources according to these parameters.

Benefits of technology

The computing power sharing and utilization of terminal equipment is realized, ensuring fair distribution of computing needs is ensured, and avoiding the problem that high-priority services always seize resources while low-priority services are starved to death.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023112968_20022025_PF_FP_ABST
    Figure CN2023112968_20022025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of wireless communications. Provided are a resource scheduling method and apparatus, which are used for realizing utilization of computing power resources by a terminal device. The method comprises: a terminal device acquiring computing power resources; and the terminal device determining computing power control parameters of one or more services, and allocating the computing power resources to the one or more services on the basis of the computing power control parameters. On the basis of the solution, a terminal device can allocate, on the basis of computing power control parameters, computing power resources to services having computing requirements, thus realizing the sharing and utilization of computing power of the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Resource scheduling method and device Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a resource scheduling method and device. Background Art

[0002] With the emergence of large-scale artificial intelligence (AI) models and computing-intensive services such as extended reality (XR), single-point computing bottlenecks will gradually emerge, whether in network equipment or terminal devices. Therefore, supporting computing power sharing in wireless networks is a future trend. With the introduction of pan-terminals (such as vehicle terminals that support autonomous driving and have different levels of computing power), the capabilities of terminal devices are constantly increasing. Terminals can share and utilize their computing power with the network to assist network computing. Currently, there is no technical solution for how to share the computing power of terminal devices. In addition, there is no technical solution in the relevant technology for how to allocate computing power to tasks after the terminal obtains computing power resources.

[0003] Summary of the Invention

[0004] The present application provides a resource scheduling method and apparatus for enabling terminal devices to share and utilize computing power.

[0005] In a first aspect, a resource scheduling method is provided. This method can be executed by a terminal device or a chip / chip system. In this method, the terminal device obtains computing power resources. The terminal device determines computing power control parameters for one or more services and allocates computing power resources to the one or more services based on the computing power control parameters. Based on this solution, the terminal device can allocate computing power resources to services with computing needs based on the computing power control parameters, thereby enabling the sharing and utilization of computing power of the terminal device.

[0006] In one possible implementation, a terminal device receives configuration information from a network device, where the configuration information includes parameters for determining a computing power control parameter. Based on this solution, the terminal device can determine the computing power control parameter based on the configuration of the network device.

[0007] In one possible implementation, the configuration information includes a guaranteed time window and a first rate. The computing power control parameter is the product of the first rate and the guaranteed time window. The first rate is the amount of computing power allocated per unit time. The guaranteed time window refers to the duration used to determine the computing power control parameter.

[0008] Based on this solution, the computing power control parameters can be determined according to the first rate and the guaranteed time window, that is, the terminal device can allocate computing power resources based on the rate.

[0009] In one possible implementation, the computing power control parameter is the product of a second rate of one or more services and a first duration of one or more services. The second rate is the amount of computing power allocated per unit time, and the first duration is the time between the time the computing power control parameter is determined and the time the computing power control parameter was last determined.

[0010] Based on this solution, the computing power control parameter can be determined based on the second rate and the duration of unallocated computing power resources for the business, which can prevent low-rate businesses from being starved when allocating computing power resources.

[0011] In one possible implementation, when the product of the second rate and the first duration is greater than or equal to the product of the first rate and the guaranteed time window, the computing power control parameter is the product of the first rate and the guaranteed time window. When the product of the second rate and the first duration is less than the product of the first rate and the guaranteed time window, the computing power control parameter is the product of the first rate and the first duration.

[0012] Based on this solution, terminal devices can update computing power control parameters before allocating computing power resources, so that a fairer computing power distribution can be achieved when allocating computing power resources, avoiding the situation where high-priority services are always given priority in allocating computing power resources and always preempting computing power resources, while low-priority services are always waiting and unable to obtain computing power resources, thus avoiding the situation where low-priority services are starved to death.

[0013] In one possible implementation, the terminal device allocates computing power resources to one or more services based on computing power control parameters and the priorities of the one or more services.

[0014] In one possible implementation, the terminal device allocates computing resources to the service with the highest priority among one or more services and whose computing power control parameter is greater than 0. Based on this solution, the terminal device can allocate computing power resources to services based on priority and computing power control parameters, thereby achieving a relatively fair distribution of computing power, preventing high-priority services from always being given priority and constantly preempting computing power resources, while low-priority services are always waiting and unable to obtain computing power resources, thus preventing low-priority services from being starved of computing power.

[0015] In one possible implementation, when a terminal device has one or more services with an infinite rate, it allocates computing resources to the service with the infinite rate. Based on this solution, the infinite rate can be considered as the computing power control parameter is infinite, so the terminal device can prioritize computing resources for the service with the infinite rate, that is, the computing power control parameter is infinite.

[0016] In one possible implementation, if there are any remaining computing resources, the remaining computing resources are discarded. Based on this solution, the same computing resource cannot be shared by different businesses and can be discarded if there are any remaining computing resources.

[0017] In one possible implementation, information indicating the remaining computing resources is sent to the network device, and the information indicating the remaining computing resources is used to indicate a request to deactivate the remaining computing resources. Based on this solution, the terminal device can indicate the discarded computing resources to the network device, so that the network device can reschedule and indicate the discarded computing resources.

[0018] In one possible implementation, if there are surplus computing resources, the remaining computing resources are allocated to one or more services whose computing power control parameters are greater than 0. Based on this solution, the same computing resources can be shared by different services and, if there are surplus computing resources, they can be allocated to other services.

[0019] In one possible implementation, if there are remaining computing resources, the remaining computing resources are allocated in descending order of priority based on the computing power control parameters of one or more services that are greater than 0. Based on this solution, the same computing resources can be shared by different services, and if there are remaining computing resources, computing power can be allocated based on service priority and / or computing power control parameters.

[0020] In one possible implementation, if there are remaining computing resources and the computing resource size requested by one or more services is 0, the remaining computing resources are allocated to one or more services whose computing power control parameters are less than 0. Based on this solution, the same computing resources can be shared by different services. In the case of remaining computing resources, even if the computing power control parameter is less than 0 but the service still has computing power requirements, computing resources can still be allocated to it.

[0021] In one possible implementation, the computing power control parameter is updated, and the updated computing power control parameter is determined based on the computing power control parameter and the computing power resources allocated to the corresponding service. Based on this solution, the terminal device can update the computing power control parameter for the next allocation of computing power resources.

[0022] In one possible implementation, an association between a service and computing resources is received. The association indicates that the computing resources are available for executing the service, or indicates that the computing resources are unavailable for executing the service. Based on the association and / or computing power control parameters, computing resources are allocated to one or more services. Based on this solution, a terminal device can reserve computing resources for a specific service.

[0023] In a second aspect, a resource scheduling method is provided. This method can be executed by a terminal device or a chip / chip system. In this method, the terminal device activates or deactivates a first computing resource and executes a first service based on the first computing resource and / or a second computing resource. The first computing resource and the second computing resource are different. In this way, the computing resources of the terminal device can be turned on or off to reduce the energy consumption of the terminal device or reduce the latency of the service.

[0024] In one possible implementation, the first computing power resource is an auxiliary computing power resource, and the second computing power resource is a main computing power resource.

[0025] In one possible implementation, the terminal device activates the first computing power resource based on a first preset condition. The first preset condition includes one or more of conditions 1 to 3: Condition 1: Determine whether to activate or deactivate the first computing power resource based on the quality of service (QoS) requirements of the service. For example, the terminal can estimate the QoS of the service and determine whether it can meet the QoS requirements of the service, thereby activating or deactivating the first computing power resource. Condition 2: Determine whether to activate or deactivate the first computing power resource based on the load of the second computing power resource. For example, when the load of the second computing power resource is greater than or equal to a first preset threshold, the terminal can determine that the first computing power resource needs to be activated. Condition 3: Based on the association between the service information and the computing power resource, determine that the first computing power resource is used to execute the first service or determine that the second computing power resource cannot be used to execute the first service. Based on this solution, the terminal device can determine whether to activate the first computing power resource based on the preset conditions.

[0026] In one possible implementation, the terminal device receives a first preset condition from the network device. Based on this solution, the terminal device can determine whether to activate the first computing power resource based on the condition configured by the network device.

[0027] In one possible implementation, the terminal device sends first information to the network device, where the first information includes one or more conditions satisfied by the first preset condition. Based on this solution, the terminal device can send the conditions satisfied by the terminal device to the network device, facilitating the network device's determination of whether to activate the first computing resource.

[0028] In one possible implementation, the terminal device deactivates the first computing resource based on a second preset condition, wherein the second preset condition includes one or more of conditions 4 to 6:

[0029] Condition 4: Compare the load of the second computing resource with a second preset threshold to determine that the first computing resource needs to be deactivated. For example, if the load of the second computing resource is less than or equal to the second preset threshold, the terminal may determine that the first computing resource needs to be deactivated. For another example, if the load of the second computing resource is less than or equal to the second preset threshold for a first preset duration, the terminal may determine that the first computing resource needs to be deactivated.

[0030] Condition 5: Compare the size relationship between the load of the second computing power resource and the third preset threshold, and compare the size relationship between the first computing power resource and the fourth preset threshold, and determine that the first computing power resource needs to be deactivated. For example, when the load of the second computing power resource is less than or equal to the third preset threshold, and the load of the first computing power resource is less than or equal to the fourth preset threshold, the terminal can determine that the first computing power resource needs to be deactivated. For another example, when the load of the second computing power resource is less than or equal to the third preset threshold, and the load of the first computing power resource is less than or equal to the fourth preset threshold for a second preset duration, the terminal can determine that the first computing power resource needs to be deactivated.

[0031] Condition 6: The start duration of the first computing resource reaches the second duration. The start duration of the first computing resource can be understood as the duration of activating, starting, or starting the first computing resource.

[0032] Condition 7: Based on the association between the business information and the computing resources, it is determined that the first computing resource needs to be deactivated.

[0033] Based on this solution, the terminal device can determine whether it is necessary to deactivate the first computing power resource based on preset conditions.

[0034] In one possible implementation, the terminal device receives the second preset condition from the network device. Based on this solution, the terminal device can determine whether to deactivate the first computing power resource based on the condition configured by the network device.

[0035] In one possible implementation, the terminal device sends second information to the network device, where the second information includes one or more conditions satisfied by the second preset condition. Based on this solution, the terminal device can send the conditions satisfied by the terminal device to the network device, facilitating the network device's determination of whether to deactivate the first computing resource.

[0036] In one possible implementation, the terminal device sends third information and / or fourth information to the network device. The third information includes an identifier of the first computing resource and indicates activation of the first computing resource. The fourth information includes an identifier of the first computing resource and indicates deactivation of the first computing resource.

[0037] Based on this solution, the terminal device can inform the network device after activating or deactivating the first computing power resource.

[0038] In one possible implementation, the terminal device determines that the second computing resource cannot meet the quality of service of the first service and sends a third message to the network device, the third message instructing to activate the first computing resource. Based on this solution, the terminal device can determine whether to activate the first computing resource based on the quality of service of the service.

[0039] In one possible implementation, a terminal device receives instruction information from a network device, the instruction information being used to instruct activation or deactivation of a first computing resource. The terminal device activates or deactivates the first computing resource based on the instruction information. Based on this solution, the terminal device can activate or deactivate the first computing resource based on the instruction information from the network device.

[0040] In a possible implementation, the indication information is carried by one or more of the following: radio resource control (RRC), media access control (MAC) control element (CE), and downlink control information (DCI).

[0041] In a third aspect, a resource scheduling method is provided. The method can be performed by a first device. The first device can be a terminal device, or a chip / chip system. In this method, the first device sends a request message to a second device, where the request message is used to request computing resources of the second device, and the request message includes one or more of a computing capacity, a quality of service, a service identifier, and a computing resource identifier. The first device receives a response message from the second device, where the response message indicates a success or failure in requesting computing resources.

[0042] Optionally, the first device may be a modem, and the second device may be an application processing unit (APU). Based on this solution, the modem may dispatch computing resources of the APU to execute computing requirements of the service.

[0043] A fourth aspect provides a resource scheduling method. This method can be performed by a network device or a chip / chip system. In this method, the network device determines parameters used by a terminal device to determine computing power control parameters. The network device sends configuration information to the terminal device, the configuration information including the parameters. The computing power control parameters are used by the terminal device to allocate computing power resources.

[0044] In one possible implementation, the configuration information includes a guaranteed time window and a rate. The computing power control parameter is the product of the rate and the guaranteed time window. The rate is the amount of computing power allocated per unit time, and the guaranteed time window refers to the duration used to determine the computing power control parameter.

[0045] In one possible implementation, the network device sends an association between a service and a computing resource to the terminal device, where the association indicates that the computing resource is used to execute the service or that the computing resource is not used to execute the service.

[0046] In a fifth aspect, a resource scheduling method is provided. This method can be executed by a network device, or by a chip / chip system. In this method, the network device sends a first preset condition and / or a second preset condition to a terminal device. The first preset condition is used by the terminal device to determine whether to activate a first computing resource, and the second preset condition is used by the terminal device to determine whether to deactivate the first computing resource.

[0047] Among them, the first preset condition includes one or more of conditions 1 to 3: Condition 1: Determine whether to activate or deactivate the first computing power resource based on the quality of service (QoS) requirements of the business. For example, the terminal can estimate the QoS of the business and determine whether it can meet the QoS requirements of the business, thereby activating or deactivating the first computing power resource. Condition 2: Determine whether to activate or deactivate the first computing power resource based on the load of the second computing power resource. For example, when the load of the second computing power resource is greater than or equal to the first preset threshold, the terminal can determine that the first computing power resource needs to be activated. Condition 3: Based on the association between business information and computing power resources, determine that the first computing power resource is used to execute the first business or determine that the second computing power resource cannot be used to execute the first business. Based on this scheme, the terminal device can determine whether the first computing power resource needs to be activated based on the preset conditions.

[0048] The second preset condition includes one or more of conditions 4 to 7:

[0049] Condition 4: Compare the load of the second computing resource with a second preset threshold to determine that the first computing resource needs to be deactivated. For example, if the load of the second computing resource is less than or equal to the second preset threshold, the terminal may determine that the first computing resource needs to be deactivated. For another example, if the load of the second computing resource is less than or equal to the second preset threshold for a first preset duration, the terminal may determine that the first computing resource needs to be deactivated.

[0050] Condition 5: Compare the size relationship between the load of the second computing power resource and the third preset threshold, and compare the size relationship between the first computing power resource and the fourth preset threshold, and determine that the first computing power resource needs to be deactivated. For example, when the load of the second computing power resource is less than or equal to the third preset threshold, and the load of the first computing power resource is less than or equal to the fourth preset threshold, the terminal can determine that the first computing power resource needs to be deactivated. For another example, when the load of the second computing power resource is less than or equal to the third preset threshold, and the load of the first computing power resource is less than or equal to the fourth preset threshold for a second preset duration, the terminal can determine that the first computing power resource needs to be deactivated.

[0051] Condition 6: The start duration of the first computing resource reaches the second duration. The start duration of the first computing resource can be understood as the duration of activating, starting, or starting the first computing resource.

[0052] Condition 7: Based on the association between the business information and the computing resources, it is determined that the first computing resource needs to be deactivated.

[0053] In one possible implementation, the network device receives third information and / or fourth information from the terminal device. The third information includes an identifier of the first computing resource and indicates activation of the first computing resource. The fourth information includes an identifier of the first computing resource and indicates deactivation of the first computing resource.

[0054] In one possible implementation, the network device sends indication information to the terminal device, where the indication information is used to indicate activation or deactivation of the first computing power resource.

[0055] In a possible implementation, the indication information is carried by one or more of the following: RRC, MAC CE, and DCI.

[0056] In a sixth aspect, a resource scheduling method is provided. The method can be performed by a second device. The second device can be a terminal device, or a chip / chip system. In this method, the second device receives a request message from a first device, the request message being used to request computing resources of the second device, the request message including one or more of a computing capacity, quality of service, a service identifier, and a computing resource identifier. The second device sends a response message to the first device, the response message indicating a success or failure in requesting computing resources.

[0057] In a seventh aspect, a communication device is provided, comprising a processing unit.

[0058] The processing unit is configured to obtain computing resources. The processing unit is further configured to determine computing power control parameters for one or more services and allocate computing power resources to the one or more services based on the computing power control parameters.

[0059] In a possible implementation, the communication device further includes: a transceiver unit, configured to receive configuration information from a network device, where the configuration information includes parameters for determining computing power control parameters.

[0060] In one possible implementation, the configuration information includes a guaranteed time window and a rate. The computing power control parameter is the product of the rate and the guaranteed time window. The rate is the amount of computing power allocated per unit time, and the guaranteed time window refers to the duration used to determine the computing power control parameter.

[0061] In one possible implementation, the computing power control parameter is the product of the rate of one or more services and a first duration of the one or more services, wherein the first duration is the time between the time when the computing power control parameter is determined and the time when the computing power control parameter was last determined.

[0062] In one possible implementation, when the product of the rate and the first duration is greater than or equal to the product of the rate and the guaranteed time window, the computing power control parameter is the product of the rate and the guaranteed time window. When the product of the rate and the first duration is less than the product of the rate and the guaranteed time window, the computing power control parameter is the product of the rate and the first duration. The guaranteed time window refers to the duration used to determine the computing power control parameter.

[0063] In one possible implementation, the processing unit is further configured to allocate computing power resources to one or more services based on computing power control parameters and priorities of the one or more services.

[0064] In a possible implementation, the processing unit is further configured to allocate computing power resources to a business having the highest priority among one or more businesses and a computing power control parameter greater than 0.

[0065] In a possible implementation, the processing unit is further configured to allocate computing resources to the business with infinite rate when there is a business with infinite rate among one or more businesses.

[0066] In a possible implementation, the processing unit is further configured to discard remaining computing resources when there are remaining computing resources.

[0067] In a possible implementation, the transceiver unit is further used to send indication information of the remaining computing resources to the network device, where the indication information of the remaining computing resources is used to indicate a request to deactivate the remaining computing resources.

[0068] In a possible implementation, the processing unit is further configured to allocate the remaining computing power resources to one or more businesses whose computing power control parameters are greater than 0 when there are remaining computing power resources.

[0069] In one possible implementation, the processing unit is further configured to allocate the remaining computing power resources in descending order of priority of one or more services having a computing power control parameter greater than 0 when there are remaining computing power resources.

[0070] In one possible implementation, the processing unit is also used to allocate remaining computing resources to one or more businesses whose computing power control parameters are less than 0 when there are remaining computing resources and the computing power resource size requested by one or more businesses is 0.

[0071] In one possible implementation, the processing unit is further configured to update a computing power control parameter, where the updated computing power control parameter is determined based on the computing power control parameter and computing power resources allocated to the corresponding business.

[0072] In one possible implementation, the transceiver unit is further configured to receive an association between a service and computing resources. The association indicates that the computing resources are available for executing the service, or indicates that the computing resources are unavailable for executing the service. The processing unit is further configured to allocate computing resources to one or more services based on the association and / or computing control parameters.

[0073] In an eighth aspect, a communication device is provided, comprising a processing unit.

[0074] The processing unit is configured to activate or deactivate a first computing resource and execute a first service based on the first computing resource and / or a second computing resource, wherein the first computing resource is different from the second computing resource.

[0075] In one possible implementation, the first computing power resource is an auxiliary computing power resource, and the second computing power resource is a main computing power resource.

[0076] In one possible implementation, the processing unit is further configured to activate the first computing power resource based on a first preset condition. The first preset condition includes one or more of conditions 1 to 3: Condition 1: Determine whether to activate or deactivate the first computing power resource based on the quality of service (QoS) requirements of the service. For example, the terminal can estimate the QoS of the service and determine whether the QoS requirements of the service can be met, thereby activating or deactivating the first computing power resource. Condition 2: Determine whether to activate or deactivate the first computing power resource based on the load of the second computing power resource. For example, when the load of the second computing power resource is greater than or equal to a first preset threshold, the terminal can determine that the first computing power resource needs to be activated. Condition 3: Based on the association between the service information and the computing power resource, determine whether the first computing power resource is used to execute the first service or determine that the second computing power resource cannot be used to execute the first service. Based on this solution, the terminal device can determine whether to activate the first computing power resource based on the preset conditions.

[0077] In a possible implementation, the communication device further includes: a transceiver unit, further configured to receive the first preset condition from the network device.

[0078] In a possible implementation, the transceiver unit is further configured to send first information to the network device, where the first information includes one or more conditions satisfied in the first preset condition.

[0079] In one possible implementation, the processing unit is further configured to deactivate the first computing resource based on a second preset condition, wherein the second preset condition includes one or more of conditions 4 to 6:

[0080] Condition 4: Compare the load of the second computing resource with a second preset threshold to determine that the first computing resource needs to be deactivated. For example, if the load of the second computing resource is less than or equal to the second preset threshold, the terminal may determine that the first computing resource needs to be deactivated. For another example, if the load of the second computing resource is less than or equal to the second preset threshold for a first preset duration, the terminal may determine that the first computing resource needs to be deactivated.

[0081] Condition 5: Compare the size relationship between the load of the second computing power resource and the third preset threshold, and compare the size relationship between the first computing power resource and the fourth preset threshold, and determine that the first computing power resource needs to be deactivated. For example, when the load of the second computing power resource is less than or equal to the third preset threshold, and the load of the first computing power resource is less than or equal to the fourth preset threshold, the terminal can determine that the first computing power resource needs to be deactivated. For another example, when the load of the second computing power resource is less than or equal to the third preset threshold, and the load of the first computing power resource is less than or equal to the fourth preset threshold for a second preset duration, the terminal can determine that the first computing power resource needs to be deactivated.

[0082] Condition 6: The start duration of the first computing resource reaches the second duration. The start duration of the first computing resource can be understood as the duration of activating, starting, or starting the first computing resource.

[0083] Condition 7: Based on the association between the business information and the computing resources, it is determined that the first computing resource needs to be deactivated.

[0084] In one possible implementation, the transceiver unit is further configured to receive a second preset condition from the network device. Based on this solution, the terminal device can determine whether to deactivate the first computing power resource based on the condition configured by the network device.

[0085] In a possible implementation, the transceiver unit is further configured to send second information to the network device, where the second information includes one or more conditions satisfied in the second preset condition.

[0086] In one possible implementation, the transceiver unit is further configured to send third information and / or fourth information to the network device. The third information includes an identifier of the first computing resource and indicates activation of the first computing resource. The fourth information includes an identifier of the first computing resource and indicates deactivation of the first computing resource.

[0087] In a possible implementation, the processing unit is further configured to determine that the second computing power resource cannot meet the quality of service of the first business, and send third information to the network device, where the third information indicates activation of the first computing power resource.

[0088] In one possible implementation, the transceiver unit is further configured to receive instruction information from the network device, where the instruction information is used to instruct activation or deactivation of the first computing resource. The processing unit is further configured to activate or deactivate the first computing resource based on the instruction information.

[0089] In a possible implementation, the indication information is carried by one or more of the following: RRC, MAC CE, and DCI.

[0090] In a ninth aspect, a communication device is provided, comprising: a processing unit and a transceiver unit.

[0091] The processing unit is configured to generate a request message. The transceiver unit is configured to send the request message to the second device, the request message being used to request computing resources of the second device, the request message including one or more of a computing capacity, a quality of service, a service identifier, and a computing resource identifier. The transceiver unit is further configured to receive a response message from the second device, the response message indicating a success or failure in requesting the computing resources.

[0092] In a tenth aspect, a communication device is provided, comprising: a processing unit and a transceiver unit.

[0093] The processing unit is configured to determine parameters used by the terminal device to determine computing power control parameters. The transceiver unit is configured to send configuration information to the terminal device, the configuration information including parameters. The computing power control parameters are used by the terminal device to allocate computing power resources.

[0094] In one possible implementation, the configuration information includes a guaranteed time window and a rate. The computing power control parameter is the product of the rate and the guaranteed time window. The rate is the amount of computing power allocated per unit time, and the guaranteed time window refers to the duration used to determine the computing power control parameter.

[0095] In one possible implementation, the transceiver unit is further configured to send an association between the service and the computing resource to the terminal device. The association is used to indicate that the computing resource is used to execute the service, or the association is used to indicate that the computing resource is not available to execute the service.

[0096] In an eleventh aspect, a communication device is provided, comprising: a processing unit and a transceiver unit.

[0097] The processing unit is configured to determine a first preset condition and / or a second preset condition. The transceiver unit is configured to send the first preset condition and / or the second preset condition to the terminal device. The first preset condition is used by the terminal device to determine whether to activate the first computing resource, and the second preset condition is used by the terminal device to determine whether to deactivate the first computing resource.

[0098] Among them, the first preset condition includes one or more of conditions 1 to 3: Condition 1: Determine whether to activate or deactivate the first computing power resource based on the quality of service (QoS) requirements of the business. For example, the terminal can estimate the QoS of the business and determine whether it can meet the QoS requirements of the business, thereby activating or deactivating the first computing power resource. Condition 2: Determine whether to activate or deactivate the first computing power resource based on the load of the second computing power resource. For example, when the load of the second computing power resource is greater than or equal to the first preset threshold, the terminal can determine that the first computing power resource needs to be activated. Condition 3: Based on the association between business information and computing power resources, determine that the first computing power resource is used to execute the first business or determine that the second computing power resource cannot be used to execute the first business. Based on this scheme, the terminal device can determine whether the first computing power resource needs to be activated based on the preset conditions.

[0099] The second preset condition includes one or more of conditions 4 to 7:

[0100] Condition 4: Compare the load of the second computing resource with a second preset threshold to determine that the first computing resource needs to be deactivated. For example, if the load of the second computing resource is less than or equal to the second preset threshold, the terminal may determine that the first computing resource needs to be deactivated. For another example, if the load of the second computing resource is less than or equal to the second preset threshold for a first preset duration, the terminal may determine that the first computing resource needs to be deactivated.

[0101] Condition 5: Compare the size relationship between the load of the second computing power resource and the third preset threshold, and compare the size relationship between the first computing power resource and the fourth preset threshold, and determine that the first computing power resource needs to be deactivated. For example, when the load of the second computing power resource is less than or equal to the third preset threshold, and the load of the first computing power resource is less than or equal to the fourth preset threshold, the terminal can determine that the first computing power resource needs to be deactivated. For another example, when the load of the second computing power resource is less than or equal to the third preset threshold, and the load of the first computing power resource is less than or equal to the fourth preset threshold for a second preset duration, the terminal can determine that the first computing power resource needs to be deactivated.

[0102] Condition 6: The start duration of the first computing resource reaches the second duration. The start duration of the first computing resource can be understood as the duration of activating, starting, or starting the first computing resource.

[0103] Condition 7: Based on the association between the business information and the computing resources, it is determined that the first computing resource needs to be deactivated.

[0104] In one possible implementation, the transceiver unit is further configured to receive third information and / or fourth information from the terminal device. The third information includes an identifier of the first computing resource and indicates activation of the first computing resource. The fourth information includes an identifier of the first computing resource and indicates deactivation of the first computing resource.

[0105] In a possible implementation, the transceiver unit is further used to send indication information to the terminal device, where the indication information is used to indicate activation or deactivation of the first computing power resource.

[0106] In a possible implementation, the indication information is carried by one or more of the following: RRC, MAC CE, and DCI.

[0107] In a twelfth aspect, a communication device is provided, comprising: a processing unit and a transceiver unit.

[0108] The transceiver unit is configured to receive a request message from the first device, the request message being for computing resources of the second device, the request message including one or more of a computing capacity, a quality of service, a service identifier, and a computing resource identifier. The processing unit is configured to generate a response message. The transceiver unit is further configured to send the response message to the first device, the response message indicating a success or failure in requesting the computing resources.

[0109] In a thirteenth aspect, an embodiment of the present application provides a communication device, which may be the communication device of any one of aspects 7 to 12 in the above-mentioned embodiments, or a chip provided in the communication device of any one of aspects 7 to 12. The communication device includes a communication interface and a processor, and optionally, further includes a memory. The memory is used to store computer programs, instructions, or data, and the processor is coupled to the memory and the communication interface. When the processor reads the computer program, instructions, or data, the communication device executes the method executed by the network device or terminal device in the method embodiment of any one of aspects 1 to 6.

[0110] It should be understood that the communication interface can be implemented by an antenna, a feeder, a codec, etc. in the communication device, or, if the communication device is a chip provided in a communication device, the communication interface can be an input / output interface of the chip, such as an input / output pin, etc. The communication device may further include a transceiver for communicating with other devices.

[0111] In a fourteenth aspect, the present application provides a communication device comprising: a logic circuit and an input / output interface. The logic circuit is configured to execute the method executed by the network device or terminal device in any possible implementation of aspects 1 to 6 above. The input / output interface is configured to communicate with other communication devices.

[0112] In a fifteenth aspect, an embodiment of the present application provides a chip system, which includes a processor and may also include a memory, for implementing the method performed by a network device or terminal device in any of aspects 1 to 6. In one possible implementation, the chip system also includes a memory for storing program instructions and / or data. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0113] In a sixteenth aspect, an embodiment of the present application provides a communication system, wherein the communication system includes the communication device described in any one of the seventh and tenth aspects. Alternatively, the communication system includes the communication device described in any one of the eighth and eleventh aspects. Alternatively, the communication system includes the communication device described in any one of the ninth and twelfth aspects.

[0114] In the seventeenth aspect, the present application provides a computer-readable storage medium, which stores a computer program or instruction. When the computer program or instruction is executed, it implements the method performed by the network device or terminal device in the above aspects.

[0115] In the eighteenth aspect, a computer program product is provided, which includes: computer program code or instructions, which, when executed, causes the methods performed by the network device or terminal device in the above aspects to be executed.

[0116] In a nineteenth aspect, a communication device is provided, which includes a unit or module for executing the above-mentioned methods.

[0117] The beneficial effects of the above-mentioned fourth to nineteenth aspects and their implementation methods can refer to the description of the beneficial effects of the methods of the first to third aspects and their implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0118] FIG1 is a schematic diagram of a communication system provided in an embodiment of the present application;

[0119] FIG2 is an exemplary flow chart of a resource scheduling method provided in an embodiment of the present application;

[0120] FIG3 is a schematic diagram of a token bucket provided in an embodiment of the present application;

[0121] FIG4 is a schematic diagram of a whitelist provided in an embodiment of the present application;

[0122] FIG5 is an exemplary flow chart of another resource scheduling method provided in an embodiment of the present application;

[0123] FIG6 is an exemplary flow chart of another resource scheduling method provided in an embodiment of the present application;

[0124] FIG7 is a schematic diagram of an API provided in an embodiment of the present application;

[0125] FIG8 is a schematic diagram of a communication device provided in an embodiment of the present application;

[0126] FIG9 is a schematic diagram of another communication device provided in an embodiment of the present application;

[0127] FIG10 is a schematic diagram of another communication device provided in an embodiment of the present application;

[0128] FIG11 is a schematic diagram of another communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0129] In order to facilitate understanding of the technical solutions provided by the embodiments of the present application, the technical terms involved in the present application are explained and illustrated below.

[0130] 1) Computing power refers to the ability to process information and also refers to the ability to perform certain computing needs.

[0131] 2) Computing resources: resources used to perform computational tasks, such as a central processing unit (CPU) or a graphics processing unit (GPU). Optionally, from a temporal perspective, a time slot is the minimum computing resource.

[0132] 3) Business, which can also be called task, application, etc.

[0133] 4) Activating a computing resource, also known as turning it on or starting it, means using it to perform a computation. Similarly, deactivating a computing resource, also known as turning it off, means not using it to perform a computation.

[0134] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0135] The technical solutions of the embodiments of the present application can be applied to New Radio (NR) systems, Long Term Evolution (LTE) systems, LTE Frequency Division Duplex (FDD) systems, LTE Time Division Duplex (TDD) systems, Worldwide Interoperability for Microwave Access (WiMAX) communication systems, etc., without limitation.

[0136] FIG1 is a schematic diagram of the architecture of a communication system 1000 used in an embodiment of the present application. As shown in FIG1 , the communication system includes a wireless access network 100. The wireless access network 100 may include at least one network device (such as 110a and / or 110b in FIG1 ) and may also include at least one terminal device (such as at least one of 120a-120j in FIG1 ). The terminal device is connected to the access network device wirelessly, and the access network device is connected to the core network device wirelessly or by wire. Terminal devices and network devices may be connected to each other by wire or by wireless. FIG1 is only a schematic diagram, and the communication system may also include other network devices, such as wireless relay devices and wireless backhaul devices, which are not shown in FIG1 .

[0137] A network device is a network-side device with wireless transceiver capabilities. A network device can be a device in a radio access network (RAN) that provides wireless communication capabilities for terminal devices, and is called a RAN device. For example, a network device can be a base station, an evolved NodeB (eNB), a transmission reception point (TRP), a next-generation NodeB (gNB) in a fifth-generation (5G) mobile communication system, a next-generation base station in a sixth-generation (6G) mobile communication system, a base station in a future mobile communication system, or an access node in a Wi-Fi system. It can also be a module or unit that performs some of the functions of a base station, such as a centralized unit (CU) or a distributed unit (DU). The CU here completes the functions of the radio resource control protocol and the packet data convergence protocol (PDCP) of the base station, and can also complete the function of the service data adaptation protocol (SDAP); the DU completes the functions of the radio link control layer and the medium access control (MAC) layer of the base station, and can also complete the functions of part of the physical layer or all of the physical layer. For the specific description of the above-mentioned various protocol layers, please refer to the relevant technical specifications of the 3rd Generation Partnership Project (3GPP). The network device can be a macro base station (such as 110a in Figure 1), a micro base station or an indoor station (such as 110b in Figure 1), a relay node or a donor node, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the network device. In the embodiments of the present application, the base station is used as an example for explanation.

[0138] In another possible scenario, multiple RAN nodes collaborate to assist the terminal in achieving wireless access, and different RAN nodes implement part of the functions of the base station respectively. For example, the RAN node can be a CU, DU, CU-control plane (CP), CU-user plane (UP), or radio unit (RU). The CU and DU can be set separately, or they can be included in the same network element, such as a baseband unit (BBU). The RU can be included in a radio frequency device or radio frequency unit, such as a remote radio unit (RRU), an active antenna unit (AAU), or a remote radio head (RRH).

[0139] In different systems, CU (or CU-CP and CU-UP), DU or RU may also have different names, but those skilled in the art can understand their meanings. For example, in the ORAN system, CU may also be called O-CU (Open CU), DU may also be called O-DU, CU-CP may also be called O-CU-CP, CU-UP may also be called O-CU-UP, and RU may also be called O-RU. For the convenience of description, this application uses CU, CU-CP, CU-UP, DU and RU as examples for description. Any unit of CU (or CU-CP, CU-UP), DU and RU in this application can be implemented by a software module, a hardware module, or a combination of a software module and a hardware module.

[0140] A terminal device is a user-side device with wireless transceiver capabilities. A terminal device may also be referred to as user equipment (UE), a mobile station, a mobile terminal, etc. Terminal devices can be widely used in various scenarios, such as device-to-device (D2D), vehicle-to-everything (V2X) communication, machine-type communication (MTC), the Internet of Things (IoT), virtual reality, augmented reality, industrial control, autonomous driving, telemedicine, smart grids, smart furniture, smart offices, smart wearables, smart transportation, smart cities, etc. The terminal device may be a mobile phone, a tablet computer, a computer with wireless transceiver capabilities, a wearable device, a vehicle, a drone, a helicopter, an airplane, a ship, a robot, a robotic arm, a smart home appliance, etc. The embodiments of this application do not limit the specific technology and specific device form adopted by the terminal device. The embodiments of this application are described by taking the terminal as an example.

[0141] Network devices and terminal devices can be fixed or mobile. They can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; on water; and in the air on aircraft, balloons, and satellites. The embodiments of this application do not limit the application scenarios of network devices and terminal devices.

[0142] The roles of network devices and terminal devices can be relative. For example, the helicopter or drone 120i in Figure 1 can be configured as a mobile network device. To terminal devices 120j accessing the wireless access network 100 via 120i, terminal device 120i is a network device. However, to network device 110a, 120i is a terminal device, meaning that communication between 110a and 120i occurs via a wireless air interface protocol. Of course, communication between 110a and 120i can also occur via an interface protocol between network devices. In this case, 120i is also a network device relative to 110a. Therefore, both network devices and terminal devices can be collectively referred to as communication devices. 110a and 110b in Figure 1 can be referred to as communication devices with network device functionality, while 120a-120j in Figure 1 can be referred to as communication devices with terminal device functionality.

[0143] In the embodiments of the present application, the functions of the network device may also be performed by a module (such as a chip) in the network device, or by a control subsystem that includes the network device functions. The control subsystem that includes the network device functions here may be a control center in the above-mentioned application scenarios such as smart grid, industrial control, smart transportation, and smart city. The functions of the terminal device may also be performed by a module (such as a chip or a modem) in the terminal device, or by a device that includes the terminal device functions.

[0144] With the emergence of computationally intensive services such as artificial intelligence (AI) and extended reality (XR), single-point computing bottlenecks are gradually emerging, both for network devices and end devices. Therefore, supporting computing power sharing in wireless networks is a future trend. With the introduction of ubiquitous terminals (such as those supporting autonomous driving and in-vehicle terminals with varying levels of computing power), the capabilities of end devices are continuously increasing. These terminals can share and utilize their computing power with the network, thereby assisting network computing. Currently, there are no technical solutions for sharing computing power on end devices. Cloud computing already supports computing power sharing and scheduling for distributed computing, but these are generally implemented and deployed within cloud networks and based on fixed networks. For example, for multiple computing nodes, a unified centralized control node centrally manages and schedules each computing node. However, cloud networks support simple computing power sharing and scheduling, and their fixed network-based methods cannot be reused in wireless networks. Furthermore, related technologies lack technical solutions for how terminals allocate computing power to tasks after acquiring computing resources.

[0145] In view of this, an embodiment of the present application provides a resource scheduling method. In this method, a terminal device can obtain computing power resources and determine computing power control parameters for one or more services. The terminal device can allocate the acquired computing power resources to one or more services based on the computing power control parameters. Based on this solution, the terminal device can allocate computing power resources to services with computing needs based on the computing power control parameters, thereby realizing the sharing of computing power among the terminal devices.

[0146] Referring to FIG. 2 , which is an exemplary flowchart of a resource scheduling method provided in an embodiment of the present application, the method may include the following operations. The embodiment shown in FIG. 2 may be performed by the terminal device and network device shown in FIG. Hereinafter, the terminal device is a terminal and the network device is a base station.

[0147] Optionally, the embodiment shown in FIG2 may include the following operation S201 .

[0148] S201: The terminal obtains computing resources.

[0149] In one possible scenario, the terminal may obtain pre-configured computing resources.

[0150] In another possible scenario, the terminal may request computing resources from the base station, and the base station may schedule or allocate computing resources for the terminal. For example, the terminal may receive computing resource indication information from the base station. The computing resource indication information may indicate the computing resources, and the terminal may obtain the computing resources indicated by the computing resource indication information.

[0151] S202: The terminal determines computing power control parameters of one or more services.

[0152] For example, the terminal may obtain the priority of one or more services (task priority) as a computing power control parameter. For another example, the terminal may obtain the token bucket of one or more services as a computing power control parameter. For another example, the terminal may combine the service priority and the token bucket as a computing power control parameter. Optionally, the computing power control parameter can be used to represent the priority of computing power allocation for one or more services.

[0153] In one possible implementation, the terminal may determine the computing power control parameters based on the configuration information of the base station. The base station may send configuration information to the terminal, and the configuration information may include parameters for determining the computing power control parameters. For example, the configuration information may include the priority of one or more services, and the terminal may use the priority as the computing power control parameter of the service. For another example, the configuration information may include parameters for determining the token bucket of the service, such as the configuration information may include a guaranteed time window and rate. The terminal may use the product of the guaranteed time window and the rate as the token bucket of the service, that is, the computing power control parameter of the service. Among them, the rate is the amount of computing power allocated per unit time, such as the CPU / GPU time slice, the CPU / GPU ratio, or the amount of calculation. The guaranteed time window (BSD) refers to the duration used to determine the computing power control parameters.

[0154] It should be noted that the rate in this article can also be referred to as prioritized computing rate (PCR), or other names can be used, and this application does not make specific limitations.

[0155] In another possible implementation, the terminal can independently determine and maintain the computing power control parameters of the business, such as the token bucket. Referring to Figure 3, the terminal can maintain the token bucket of each business. The terminal can set the total water storage capacity of the token bucket to c j =c j-1 +PCR(rate)*T(first duration). The first duration can be the time to determine c j and determine c j-1 The duration between times and the rate can be indicated by the base station or preconfigured.

[0156] It is understandable that the subscript j can be understood as the total amount of water in the token bucket when the computing power resources are allocated for the jth time, such as c j It can be understood as the total water storage in the token bucket when the computing power resources are allocated for the jth time, c j-1 It can be understood as the total amount of water in the token bucket when computing resources are allocated for the j-1th time. j can be an integer greater than or equal to 0. In this article, the initial value of j is 0 as an example. It can be understood that the initial value of j can also be a pre-set value such as 1 or 2. Optionally, c jIt can have an initial value, which can be pre-set, that is, c0 can be pre-set, such as 0, or can be set to a value related to the priority, that is, c0 can be set to a value related to the priority, such as the higher the priority, the higher the initial value. It should be noted that in this article, c j It can be greater than 0, equal to 0, or less than 0.

[0157] Optionally, the terminal can combine the above two possible implementation methods to determine the computing power control parameters of the service, such as the token bucket. For example, the terminal can determine the total water storage capacity c of the token bucket of the service by itself. j , such as c j =c j-1 +PCR (rate) * T (first duration). Before performing computing power allocation, the terminal can update the total water storage capacity c of the token bucket based on the configuration information of the base station before executing S203. j For example, the terminal may determine c j With the size of PCR*BSD, the token bucket is updated. For example, in c j If it is greater than or equal to PCR*BSD, the terminal can use PCR*BSD as the total water storage capacity of the service c j In c j If it is less than or equal to PCR*BSD, c j Total water storage capacity as business c j In this way, the terminal can fill the token bucket of each service and allocate computing resources to the service based on the total amount of water in the token bucket. This allows the service rate to be taken into account when allocating computing resources, and prevents low-rate services from being starved.

[0158] S203: The terminal allocates computing power resources to one or more services based on the computing power control parameters.

[0159] For example, the terminal can allocate computing power resources to one or more services in descending order of computing power control parameters. For example, if the computing power control parameter is priority, the terminal can allocate computing power resources to one or more services in descending order of priority. Based on this solution, the terminal can prioritize computing power resources for high-priority services.

[0160] For another example, when the computing power control parameter is a token bucket, the terminal can allocate computing power resources to one or more services in the order of the total water storage in the token bucket from high to low. Optionally, when the computing power control parameter includes priority and token bucket, the terminal can allocate computing power resources to one or more services in combination with the token bucket and priority. For example, the terminal can allocate computing power resources in the order of priority from high to low, and the services with a total water storage in the token bucket greater than 0 are given priority. For another example, the terminal can allocate computing power resources to one or more services in the order of the total water storage in the token bucket from high to low, and when the total water storage is the same, the terminal can allocate computing power resources to high-priority services in priority. Optionally, the terminal can allocate computing power resources to services with infinite rate (infinity), because according to the method of determining the token bucket described in S202, if the rate is infinite, then it can be considered that c j is infinite, so the terminal can be infinite in rate, that is, c j Infinite businesses are given priority in allocating computing resources.

[0161] Based on this solution, the terminal can allocate computing power resources to the business according to the size of the total water storage capacity cj in the token bucket, thereby achieving a fairer computing power distribution, thereby avoiding high-priority businesses always being given priority in allocating computing power resources and always preempting computing power resources, while low-priority businesses always wait and cannot obtain computing power resources, thus avoiding low-priority businesses from being starved to death.

[0162] In one possible implementation, for a certain computing resource, different services may or may not be allowed to reuse it. For example, the terminal allocates computing resource A to service 1, such as time slice n (n is an integer greater than or equal to 1), and computing resource A still has remaining computing resources after meeting the computing requirements of service 1, that is, it can also perform other computing requirements. The remaining computing resources can be allocated to other services, such as service 2, service 3, etc., or the remaining computing resources cannot be allocated to other services and need to be discarded.

[0163] Optionally, when the remaining computing resources cannot be allocated to other services, the terminal can send indication information of the remaining computing resources to the base station, such as the identifier or index of the remaining computing resources, to instruct the deactivation of the remaining computing resources.

[0164] In one possible scenario, if a computing resource allows multiplexing of different services, the terminal can allocate the remaining resources of the computing resource to other services in the manner described in S203 until there are no remaining computing resources or until there are no more services with computing requirements. For example, the terminal can allocate the computing resources in descending order of priority, and c jThe remaining computing resources are allocated to businesses with computing needs that are greater than 0.

[0165] Optional, in c j After computing resources are allocated to the services with computing requirements, if there are still remaining computing resources, the terminal can allocate the remaining computing resources to the services with computing requirements until there are no remaining computing resources or until there are no more services with computing requirements. j May be less than 0, if there is c j > 0, there are still some remaining computing resources after the computing resources are allocated to the business with computing needs. j <0 can also allocate the remaining computing resources to the business.

[0166] In another possible scenario, if a computing resource does not allow different services to reuse it, the terminal can discard the remaining resources of the computing resource. It can be understood that discarding computing resources can be understood as not using the computing resources to perform any computing tasks. Optionally, the terminal can send an identifier of the discarded computing resources to the base station, such as a time slice. For example, time slices n1 to n2 in time slices n1 to n3 are allocated to service 1, n1≤n2<n3, and time slices n2 to n3 are the remaining computing resources. Since different services are not allowed to reuse a computing resource, the terminal needs to discard time slices n2 to n3 and send identifiers of time slices n2 to n3 to the base station.

[0167] In another possible implementation, the terminal can reserve computing resources for specific services. For example, the terminal can obtain a whitelist or blacklist. The whitelist can include an association between service information and computing resources, indicating that the computing resources can be used to execute the computing requirements of the service corresponding to the associated service information. The blacklist can also include an association between service information and computing resources, indicating that the computing resources cannot be used to execute the computing requirements of the service corresponding to the associated service information. Optionally, the blacklist or whitelist can be indicated by the base station or pre-configured.

[0168] It should be noted that the above service information may include a service identifier and / or a logical channel. Wherein, a logical channel may correspond to a service one-to-one, or multiple services may correspond to one logical channel, which is not specifically limited in this application.

[0169] The computing resources reserved by the terminal for a specific service can be single or multiple. Among them, the computing resources reserved multiple times can be periodic or aperiodic, which is not specifically limited in this application. Optionally, the information of the computing resources reserved by the terminal for a specific service can be indicated in a whitelist or blacklist.

[0170] Referring to Figure 4, it is assumed that the time slice M marked with a black rectangle in the CPU in the whitelist is associated with business 1. Then, the terminal can determine whether business 1 has computing power requirements. If business 1 has computing power requirements, the terminal can allocate time slice M to business 1. If business 1 has no computing power requirements, the terminal can discard time slice M. It is understandable that since time slice M is associated with business 1, even if time slice M has remaining resources, it cannot be allocated to other businesses. If there are other businesses with computing power requirements, such as business 2 to business N, the terminal can allocate time slice X in Figure 4 that is not marked with a black rectangle to business 2 to business N. It is understandable that the terminal allocates computing power resources to business 2 to business N, such as time slices, which can be implemented with reference to the aforementioned S203 and will not be repeated here.

[0171] Before executing S203, the terminal may sort the services in descending order of priority and j For the allocation of computing resources based on the size of the resource, please refer to the above description and will not be repeated here.

[0172] Optionally, the terminal can filter computing resources according to the aforementioned whitelist or blacklist, that is, determine which computing resources can be allocated to one or more services, and j The computing resources are allocated according to the size of the computing resources. For example, if the terminal determines that computing resource X can only be used for business A based on the whitelist or blacklist, the terminal can allocate computing resource X to business A. The remaining computing resources, such as computing resource M, are allocated to other businesses with computing needs according to the description of S203. For another example, if the terminal determines that computing resource X can be used for business A and business B based on the whitelist or blacklist, the terminal can allocate computing resource X to business A and / or business B according to the description of S203. The remaining computing resources, such as computing resource M, are allocated to other businesses with computing needs according to the description of S203. It can be understood that the method of resource reuse can refer to the relevant description above and will not be repeated here.

[0173] In one example, referring to FIG3 , after executing S203 , the terminal may update the computing power control parameters of the service, such as updating the token bucket of the service. j =c j - The size of the allocated computing resources. Optionally, the size of the allocated computing resources can be expressed as the duration of the time slice, such as ms, seconds, etc. For example, for service 1, the terminal allocates time slices 1, 2, and 3 to service 1, and time slices 1, 2, and 3 occupy a total of 10 seconds. Then the terminal can update the token bucket of service 1 and make the total water storage capacity in the token bucket of service 1 c j =c j -10.

[0174] Based on the above solution, the terminal can allocate computing resources to each business based on the process of filling and consuming the token bucket, thereby solving the problem of computing power allocation in multi-business scenarios and preventing low-priority or low-speed businesses from being starved.

[0175] In the embodiments of this application, based on the above embodiments, a method for allocating computing resources to a terminal in a multi-service scenario is described. Currently, a terminal can have multiple CPUs / GPUs, that is, a terminal can be multi-core. How to control the terminal to turn on or off multiple CPUs to reduce terminal energy consumption or reduce service latency is a technical problem that needs to be solved.

[0176] In view of this, embodiments of the present application also provide another resource scheduling method. In this method, the terminal can independently determine whether to activate or deactivate the first computing resource, or activate or deactivate the first computing resource based on instructions from the base station. In this way, the terminal's CPU can be turned on or off to achieve the beneficial effect of reducing terminal energy consumption or reducing service latency.

[0177] Referring to Figure 5, which is an exemplary flowchart of a resource scheduling method provided in an embodiment of the present application, the method may include the following operations. It is understood that the embodiment shown in Figure 5 can be performed by the terminal device and network device shown in Figure 1. The following description uses the terminal device as a terminal and the network device as a base station as an example.

[0178] S501: The terminal activates or deactivates the first computing power resource.

[0179] For example, the terminal may independently determine whether to activate or deactivate the first computing resource based on a pre-configured condition. For another example, the terminal may activate or deactivate the first computing resource based on an instruction from the base station.

[0180] Optionally, the embodiment shown in FIG5 may further include the following operation S502.

[0181] S502: The terminal executes a first service based on the first computing resource and / or the second computing resource.

[0182] For example, the terminal may perform a computing task of the first service based on the first computing resource and / or the second computing resource. The first computing resource and the second computing resource are different computing resources. For example, the first computing resource may be an auxiliary computing resource, such as an auxiliary CPU / auxiliary GPU, and the second computing resource may be a primary computing resource, such as a primary CPU / primary GPU.

[0183] The following describes how the terminal activates or deactivates the first computing power resource in S501 through method one and method two.

[0184] Method 1: The terminal determines to activate or deactivate the first computing power resource.

[0185] In this approach, the terminal can autonomously determine whether to activate or deactivate the first computing resource. For example, the terminal can activate the first computing resource based on a first preset condition. For example, the terminal can activate the first computing resource if the first preset condition is met. The first preset condition can be preconfigured, predefined by a protocol, or indicated by a base station. Optionally, the first preset condition can include one or more of the following:

[0186] Condition 1: Determine whether to activate or deactivate the first computing resource based on the quality of service (QoS) requirement of the business.

[0187] For example, the terminal can estimate the QoS of the service and determine whether it can meet the QoS requirements of the service, thereby activating or deactivating the first computing resource. For example, the terminal executes the first service based on the second computing resource, and the terminal determines that the QoS requirements of the first service cannot be met, then the terminal can activate the first computing resource. For another example, if the terminal has activated the first computing resource and the second computing resource, if the terminal determines that the QoS requirements of the first service can be met based on the second computing resource, then in order to save energy consumption, the terminal can deactivate the first computing resource.

[0188] Condition 2: Determine whether to activate or deactivate the first computing resource based on the load of the second computing resource.

[0189] For example, the terminal may compare the load of the second computing resource with a first preset threshold to determine that the first computing resource needs to be activated. For example, if the load of the second computing resource is greater than or equal to the first preset threshold, the terminal may determine that the first computing resource needs to be activated.

[0190] For another example, if the load on the second computing resource is large and close to the maximum value, the terminal can activate the first computing resource. For another example, if the terminal has activated the first computing resource and the second computing resource, but the load on the second computing resource is low, the terminal can deactivate the first computing resource to save energy.

[0191] Condition 3: Based on the association between the business information and the computing resources, it is determined that the first computing resources are used to execute the first business or that the second computing resources are not used to execute the first business.

[0192] For example, the terminal can obtain a whitelist, which can include an association between business information and computing power resources. For a description of the whitelist, please refer to the embodiment shown in Figure 3 and will not be repeated here. Based on the whitelist, the terminal determines that the first computing power resource can be used to execute the first business, and if the first business has computing power requirements, the terminal can determine that the first computing power resource needs to be activated.

[0193] For another example, the terminal may obtain a blacklist, which may include an association between service information and computing resources. For a description of the blacklist, please refer to the embodiment shown in FIG3 and will not be repeated here. If the terminal determines, based on the blacklist, that the second computing resource cannot be used to execute the first service and the first service has computing power requirements, the terminal may determine that the first computing resource needs to be activated.

[0194] The terminal may activate the first computing power resource if at least one of the above conditions 1 to 3 is met. In one example, the terminal may inform the base station of the information of the activated first computing power resource. For example, the terminal may send an identifier of the first computing power resource to the base station. Optionally, the terminal may send the information of the first computing power resource to the base station through signaling or information elements for activating computing power resources, that is, the terminal may send the information of the first computing power resource to the base station through signaling or information sources dedicated to activating computing power resources. Alternatively, the terminal may send the information of the first computing power resource and the corresponding action, such as activation, to the base station, that is, the terminal may carry the information of the first computing power resource and the corresponding action through general signaling or information sources to inform the base station that the first computing power resource has been activated.

[0195] In another possible scenario, the terminal may deactivate the first computing resource based on a second preset condition. For example, the terminal may deactivate the first computing resource if the second preset condition is met. The second preset condition may be preconfigured, predefined by a protocol, or indicated by a base station. Optionally, the second preset condition may include one or more of the following:

[0196] Condition 4: Compare the load of the second computing resource with a second preset threshold to determine that the first computing resource needs to be deactivated.

[0197] For example, if the load of the second computing resource is less than or equal to a second preset threshold, the terminal may determine that the first computing resource needs to be deactivated. For another example, if the load of the second computing resource is less than or equal to the second preset threshold for a first preset duration, the terminal may determine that the first computing resource needs to be deactivated.

[0198] Condition 5: Compare the load of the second computing resource with the third preset threshold, and compare the load of the first computing resource with the fourth preset threshold, and determine that the first computing resource needs to be deactivated.

[0199] For example, if the load of the second computing resource is less than or equal to a third preset threshold, and the load of the first computing resource is less than or equal to a fourth preset threshold, the terminal may determine that the first computing resource needs to be deactivated. For another example, if the load of the second computing resource is less than or equal to the third preset threshold, and the load of the first computing resource is less than or equal to the fourth preset threshold for a second preset duration, the terminal may determine that the first computing resource needs to be deactivated.

[0200] It should be noted that the above-mentioned first preset threshold, second preset threshold, third preset threshold and fourth preset threshold can be the same or different, and the first preset time length and the second preset time length can be the same or different, and this application does not make specific limitations.

[0201] Condition 6: The start duration of the first computing resource reaches the second duration.

[0202] The start duration of the first computing resource can be understood as the duration of activating, starting, or starting the first computing resource. For example, when the first computing resource is activated, the terminal can start a timer, and when the timer reaches the second duration, the terminal can consider that the above condition 6 is satisfied. For another example, when the first computing resource is activated, the terminal can start a timer, and when the timer expires, the terminal can consider that the above condition 6 is satisfied.

[0203] Condition 7: Based on the association between the business information and the computing resources, it is determined that the first computing resource needs to be deactivated.

[0204] For example, the terminal can obtain a whitelist, which can include the association between business information and computing resources. For a description of the whitelist, please refer to the embodiment shown in Figure 3 and will not be repeated here. Based on the whitelist, the terminal determines that the first computing resource is used to execute the second business, and if the second business has no computing power requirements, the terminal can determine that the first computing resource needs to be activated.

[0205] For another example, the terminal may obtain a blacklist, which may include an association between service information and computing resources. For a description of the blacklist, reference may be made to the embodiment shown in FIG3 , which is not repeated here. If the terminal determines, based on the blacklist, that the first computing resource is unavailable for executing the first service, the terminal may determine that the first computing resource needs to be activated.

[0206] The terminal may deactivate the first computing resource if at least one of conditions 4 to 7 above is met. In one example, the terminal may inform the base station of information about the deactivated first computing resource. For example, the terminal may send an identifier of the first computing resource to the base station. Alternatively, the terminal may send information about the first computing resource to the base station via signaling or information elements for deactivating the computing resource. Alternatively, the terminal may send information about the first computing resource and a corresponding action, such as deactivation, to the base station.

[0207] Based on the above solution, the terminal can make its own decision or decide based on conditions to activate or deactivate the first computing power resource, thereby saving the terminal's energy consumption and reducing service latency.

[0208] Method 2: The terminal activates or deactivates the first computing power resource according to the instruction of the base station.

[0209] For example, the terminal may receive signaling information from the base station, where the signaling information may indicate activation or deactivation of the first computing resource. The terminal may activate or deactivate the first computing resource according to the instruction of the signaling information.

[0210] The above-mentioned signaling information may be a single signaling, such as one of RRC, MAC CE or DCI. Alternatively, the above-mentioned signaling information may be a signaling combination. For example, the base station may indicate the activation or deactivation of the first computing power by means of RRC+MAC CE or RRC+DCI. For example, the base station may send a configuration to the terminal via RRC and assign an identifier / index to each configuration. For example, the base station sends a configuration to the terminal via RRC, where activating CPU1 corresponds to index 1, activating CPU2 corresponds to index 2, deactivating / shutting down CPU1 corresponds to index 3, and deactivating / shutting down CPU2 corresponds to index 4. If the base station wants the terminal to activate CPU1, the base station may send a MAC CE or DCI to the terminal, and the MAC CE or DCI may carry index 1, so that the terminal may determine to activate CPU1.

[0211] Optionally, the information on computing resources carried by RRC in the above-mentioned single signaling or signaling combination may be a computing resource identifier, such as a GPU ID / CPU ID or a computing resource identifier list (or group), such as a CPU ID list / GPU ID list. For example, the base station indicates to the terminal the activated or deactivated computing resources through one of RRC, MAC CE or DCI, and one of the RRC, MAC CE or DCI may carry a CPU ID / GPU ID or a CPU ID table / GPU ID table. In this way, the terminal may activate or deactivate the CPU / GPU indicated by the CPU ID / GPU ID or the CPU ID table / GPU ID table. For example, the base station sends a configuration to the terminal through RRC, and each configuration may carry a CPU ID / GPU ID, or a CPU ID table / GPU ID table, thereby indicating the CPU / GPU to which each configuration is directed.

[0212] Optionally, the computing power resources activated or deactivated by RRC indication in the above single signaling or signaling combination can be implemented through a bit map. For example, the UE has a total of 8 CPUs / GPUs, assuming the numbers are set to 0 to 7, corresponding to 8 bits. Among them, when the value of a certain bit is 0, it can indicate that the CPU / GPU is deactivated, and when the value of a certain bit is 1, it can indicate that the CPU / GPU is activated. For example, 00001000 can indicate that the CPU / GPU numbered 4 is activated, and the remaining CPUs / GPUs are deactivated. Conversely, when the value of a certain bit is 1, it can indicate that the CPU / GPU is deactivated, and when the value of a certain bit is 0, it can indicate that the CPU / GPU is activated. For example, 11110111 can indicate that the CPU / GPU numbered 4 is activated, and the remaining CPUs / GPUs are deactivated.

[0213] In one possible scenario, when the terminal satisfies any one of conditions 1 to 7 above, the terminal may send the satisfied condition to the base station, so that the base station can instruct the terminal to activate or deactivate which computing resources based on the condition satisfied by the terminal. For example, when the terminal satisfies condition 1, such as when the load of the second computing resource is greater than or equal to a preset threshold, the terminal may send indication information to the base station, indicating that the terminal satisfies condition 1, such as the terminal may send the index corresponding to condition 1 to the base station. In this way, the base station can instruct the terminal to activate the first computing resource.

[0214] In another possible scenario, the terminal may report an event to the base station, so that the base station can instruct the terminal to activate or deactivate which computing resources based on the event. For example, the base station may configure the conditions for triggering the reporting of the event for the terminal, such as one or more of conditions 1 to 6. When the terminal meets the conditions for triggering the reporting of the event, the terminal may report the event to the base station. For example, when the terminal meets condition 1, such as when the load of the second computing resource is greater than or equal to a preset threshold, the terminal may report the event to the base station, indicating that the load of the second computing resource of the terminal is greater than or equal to the preset threshold, such as the terminal may send an index of the event to the base station. In this way, the base station can instruct the terminal to activate the first computing resource.

[0215] Optionally, the terminal may send an indication message to the base station, instructing or suggesting that the base station activate or deactivate which computing resources. For example, when the terminal meets one or more of the above conditions 1 to 7, it may send an indication message to the base station, instructing which computing resources to activate or deactivate. For example, when the terminal meets condition 2, such as when the terminal determines that the first computing resource is used to perform the first service, it may send an indication message to the base station to activate the first computing resource, such as sending an identifier of the first computing resource and a corresponding action, such as activation. For another example, the terminal estimates whether the QoS of the service can be met, and thus sends an indication message to the base station. For example, the terminal performs the first service based on the second computing resource, and the terminal determines that the QoS requirements of the first service cannot be met, then the terminal sends an indication message to the base station to activate the first computing resource.

[0216] Based on the above solution, the terminal can activate or deactivate computing resources based on the instructions of the base station, thereby reducing the energy consumption of the terminal or reducing the delay of the service.

[0217] It should be noted that the embodiment shown in FIG5 above can be implemented as a separate embodiment, or those skilled in the art can also choose to combine the steps in the embodiments shown in FIG5 and FIG2 into a complete embodiment for implementation. For example, through the embodiment shown in FIG5, the terminal can activate the first computing power resource. The terminal can use the embodiment shown in FIG2 to allocate the first computing power resource to the service, such as allocating the time slice of the activated CPU / GPU, which is not specifically limited in this application.

[0218] This article introduces, through the above embodiments, a method for activating or deactivating which CPUs / GPUs a terminal activates or deactivates when there are multiple CPUs / GPUs in the terminal. Currently, computing resources that can be shared in a wireless network may include computing resources integrated in a modem, such as a CPU / GPU. However, the modem cannot use computing resources common to the terminal, such as an application processing unit (APU). In view of this, an embodiment of the present application also provides another resource scheduling method for a modem to request computing resources common to the terminal to execute the computing needs of a service.

[0219] Referring to FIG. 6 , a resource scheduling method provided in an embodiment of the present application may include the following operations.

[0220] S601: The first device sends a request message to the second device.

[0221] Correspondingly, the second device receives the request information from the first device.

[0222] The request information may be used to request computing resources of the second device. The request information may include one or more of the required computing capacity, quality of service, business information, and computing resource identification. Optionally, the first device and the second device may be devices applied to different devices, such as the first device may be a device applied to the first device, such as a chip or circuit module, or the first device may be the first device and the second device may be a device applied to the second device, such as a chip or circuit module, or the second device may be the second device.

[0223] Optionally, the first device and the second device are different devices applied to the same device. For example, the first device may be a modem in the terminal device, and the second device may be an APU in the terminal device.

[0224] In one possible implementation, referring to FIG. 7 , an embodiment of the present application provides an application programming interface (API) between a first device and a second device. In S601 , the first device may send a request message to the second device via the API. Three different APIs are provided herein, each requiring different parameters, which are described below.

[0225] API1: Computation. When a first device sends a request to a second device via API1, the request must include the computational load of the service, such as the maximum computational load (tops) or the percentage of the computational load in the computing resources of the second device. Based on API1, the first device can request computing resources from the second device that meet the computational load requirements of the service.

[0226] Optionally, API1 also requires one or more of the QoS and computing resource identifiers of the service. QoS may include computing latency requirements or priorities, and computing resource identifiers may include CPU ID / GPU ID or the location of the CPU / GPU time slice. When the first device sends a request message to the second device through API1, the request message needs to carry one or more of the QoS and computing resource identifiers of the service and the computing amount of the service. Based on API1, the first device can request computing resources from the second device that are suitable for meeting the QoS requirements of the service and / or comply with the computing resource identifier, which can improve efficiency.

[0227] API2: Computing power resource identifier, such as the location of the CPU / GPU time slice. Optionally, the location of the CPU / GPU time slice can be periodic. When the first device sends a request message to the second device through API2, the request message needs to carry the computing power resource identifier. Optionally, the request message can also carry periodic indication information. Based on API2, the first device can request specific computing power resources from the second device to execute corresponding services, especially periodic services.

[0228] API3: Business information and computing resource identification. Business information may include a business identification or logical channel, and computing resource identification may include a CPU ID / GPU ID or the location of a CPU / GPU time slice. When a first device sends a request message to a second device via API3, the request message needs to carry business information and computing resource identification. Based on API3, the first device can request computing resources suitable for executing a specific business from the second device, which can improve efficiency.

[0229] S602: The second device sends response information to the first device.

[0230] Correspondingly, the second device receives the response information from the first device.

[0231] The response information may be used to indicate that the request for computing resources is successful or that the request for computing resources fails. Optionally, if the response information indicates that the request for computing resources is successful, the first device may use the requested computing resources to perform the service.

[0232] It should be understood that the identification of computing resources in the embodiments of the present application is an exemplary method for indicating computing resources. Other methods or indication information can also be used to indicate computing resources, and this application does not make specific limitations on this.

[0233] It should be noted that the embodiment shown in FIG6 can be implemented as a separate embodiment, or those skilled in the art can select some steps in the embodiments shown in FIG2, FIG5 and FIG6 and combine them into one embodiment for implementation. For example, in the case where the request for computing power resources is successful in the embodiment shown in FIG6, computing power resources can be allocated to the business in the manner of the embodiment shown in FIG2. For another example, in the case where the first computing power resource is activated through the embodiment shown in FIG5, the computing requirements of the business still cannot be met, and the embodiment shown in FIG6 can be used to request general computing power resources.

[0234] The following describes the communication device used to implement the above method in the embodiment of the present application with reference to the accompanying drawings. Therefore, the above contents can be used in subsequent embodiments, and repeated contents will not be repeated.

[0235] Figure 8 is a schematic block diagram of a communication device 800 provided in an embodiment of the present application. The communication device 800 can implement the functions or steps implemented by the terminal device or network device in the above-mentioned various method embodiments. The communication device may include a processing unit 810. Optionally, it may also include a transceiver unit 820 and / or a storage unit. The transceiver unit 820 can be used to perform all receiving or sending operations performed by the terminal device or network device. The storage unit can be used to store instructions (code or program) and / or data. The processing unit 810 can be coupled to the storage unit. For example, the processing unit 810 can read the instructions (code or program) and / or data in the storage unit to implement the corresponding method. The above-mentioned units can be set independently or partially or fully integrated.

[0236] In some possible implementations, the communication device 800 can implement the behaviors and functions of the terminal device in the above-described method embodiments. For example, the communication device 800 can be a terminal device, or a component (such as a chip or circuit) used in the terminal device. The processing unit 810 is configured to execute all operations performed by the terminal device in the embodiments shown in Figures 2 or 5 except for the transceiver operations. For example, S201, S202, and S203 in the embodiment shown in Figure 2, and / or other processes used to support the technology described herein.

[0237] For example, the processing unit 810 is configured to obtain computing resources and further to determine computing power control parameters for one or more services and allocate computing power resources to the one or more services based on the computing power control parameters.

[0238] For another example, the processing unit 810 is configured to activate or deactivate a first computing resource and execute a first service based on the first computing resource and / or a second computing resource, where the first computing resource is different from the second computing resource.

[0239] In some possible implementations, the communication device 800 can implement the behaviors and functions of the network device in the above-described method embodiments. For example, the communication device 800 can be a network device or a component (e.g., a chip or circuit) used in a network device. The transceiver unit 820 can be used to perform all receiving or sending operations performed by the network device. The processing unit 810 is used to perform all operations performed by the network device except for the receiving and sending operations.

[0240] For example, the processing unit 810 is configured to determine parameters for determining computing power control parameters for the terminal device. The transceiver unit 820 is configured to send configuration information to the terminal device, the configuration information including parameters. The computing power control parameters are used to allocate computing power resources to the terminal device.

[0241] For another example, the processing unit 810 is configured to determine a first preset condition and / or a second preset condition. The transceiver unit 820 is configured to send the first preset condition and / or the second preset condition to the terminal device. The first preset condition is used by the terminal device to determine whether to activate the first computing resource, and the second preset condition is used by the terminal device to determine whether to deactivate the first computing resource. For details about the first preset condition and the second preset condition, please refer to the relevant description of the method embodiment.

[0242] For the operations performed by the processing unit 810 and the transceiver unit 820, reference may be made to the relevant description of the aforementioned method embodiment.

[0243] It should be understood that the processing unit 810 in the embodiment of the present application can be implemented by a processor or a processor-related circuit component, and the transceiver unit 820 can be implemented by a transceiver or a transceiver-related circuit component or a communication interface.

[0244] Based on the same concept, as shown in FIG9 , an embodiment of the present application provides a communication device 900. The communication device 900 includes a processor 910. Optionally, the communication device 900 may further include a memory 920 for storing instructions executed by the processor 910, or storing input data required by the processor 910 to execute instructions, or storing data generated after the processor 910 executes instructions. The processor 910 can implement the method shown in the above method embodiment through the instructions stored in the memory 920.

[0245] Based on the same concept, as shown in Figure 10, an embodiment of the present application provides a communication device 1000, which can be a chip or a chip system. Optionally, in the embodiment of the present application, the chip system can be composed of a chip, or can include a chip and other discrete devices.

[0246] Communication device 1000 may include at least one processor 1010, coupled to a memory. Optionally, the memory may be located within or outside the device. For example, communication device 1000 may also include at least one memory 1020. Memory 1020 stores the necessary computer programs, configuration information, computer programs or instructions, and / or data for implementing any of the above-described embodiments. Processor 1010 may execute the computer programs stored in memory 1020 to perform the method in any of the above-described embodiments.

[0247] The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units, or modules, which can be electrical, mechanical, or other forms, and is used for information exchange between devices, units, or modules. The processor 1010 may operate in conjunction with the memory 1020. The specific connection medium between the transceiver 1030, the processor 1010, and the memory 1020 is not limited in the embodiments of the present application.

[0248] The communication device 1000 may also include a transceiver 1030, and the communication device 1000 can exchange information with other devices through the transceiver 1030. The transceiver 1030 can be a circuit, a bus, a transceiver or any other device that can be used for information exchange, or is called a signal transceiver unit. As shown in Figure 10, the transceiver 1030 includes a transmitter 1031, a receiver 1032 and an antenna 1033. In addition, when the communication device 1000 is a chip-type device or circuit, the transceiver in the communication device 1000 can also be an input and output circuit and / or a communication interface, which can input data (or receive data) and output data (or send data). The processor is an integrated processor or microprocessor or integrated circuit, and the processor can determine the output data based on the input data.

[0249] In one possible implementation, the communication device 1000 can be applied to a terminal device. Specifically, the communication device 1000 can be a terminal device, or a device that can support the terminal device in implementing the functions of the terminal device in any of the above-mentioned embodiments. The memory 1020 stores the necessary computer programs, computer programs or instructions and / or data to implement the functions of the terminal device in any of the above-mentioned embodiments. The processor 1010 can execute the computer program stored in the memory 1020 to perform the method performed by the terminal device in any of the above-mentioned embodiments.

[0250] In another possible implementation, the communication device 1000 can be applied to a network device. Specifically, the communication device 1000 can be a terminal device or a device that can support a network device and implement the functions of the network device in any of the above-mentioned embodiments. The memory 1020 stores the necessary computer programs, computer programs or instructions and / or data to implement the functions of the network device in any of the above-mentioned embodiments. The processor 1010 can execute the computer program stored in the memory 1020 to perform the method performed by the network device in any of the above-mentioned embodiments.

[0251] Since the communication device 1000 provided in this embodiment can be applied to a terminal device to implement the method executed by the terminal device, or applied to a network device to implement the method executed by the network device, the technical effects that can be obtained can be referred to the above method embodiments and will not be repeated here.

[0252] In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present application may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0253] In an embodiment of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as a random-access memory (RAM). The memory may also be any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory in an embodiment of the present application may also be a circuit or any other device that can implement a storage function, for storing computer programs, computer programs or instructions and / or data.

[0254] Based on the above embodiments, referring to FIG11 , an embodiment of the present application also provides another communication device 1100, including: an input / output interface 1110 and a logic circuit 1120; the input / output interface 1110 is used to receive code instructions and transmit them to the logic circuit 1120; the logic circuit 1120 is used to run code instructions to execute the method executed by the terminal device or network device in any of the above embodiments.

[0255] Since the communication device 1100 provided in this embodiment can be applied to a terminal device or a network device to execute the method executed by the terminal device or network device, or applied to a terminal device or a network device to complete the method executed by the terminal device or network device, the technical effects that can be obtained can be referred to the above method embodiments and will not be repeated here.

[0256] Based on the above embodiments, embodiments of the present application further provide a communication system. The communication system includes at least one communication device applied to a terminal device and at least one communication device applied to a network device. The technical effects that can be achieved can be referenced to the above method embodiments and will not be further described here.

[0257] Based on the above embodiments, embodiments of the present application further provide a computer-readable storage medium storing a computer program or instructions. When the instructions are executed, the method executed by the terminal device or the method executed by the network device in any of the above embodiments is implemented. The computer-readable storage medium may include various media capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory, a random access memory, a magnetic disk, or an optical disk.

[0258] To implement the functions of the communication device shown in Figures 8 to 11 above, embodiments of the present application further provide a chip including a processor for supporting the communication device in implementing the functions of the terminal device or network device in the above method embodiments. In one possible design, the chip is connected to or includes a memory, which is used to store computer programs, instructions, and data necessary for the communication device.

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

[0260] The present application is described with reference to the flow chart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by a computer program or instruction. These computer programs or instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.

[0261] These computer programs or instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0262] These computer programs or instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0263] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application also intends to include these modifications and variations.

Claims

1. A resource scheduling method, characterized in that: include: Obtain computing resources; Determine the computing power control parameters of one or more services; The computing power resources are allocated to the one or more services based on the computing power control parameters.

2. The method according to claim 1, characterized in that Also includes: Configuration information is received from a network device, where the configuration information is used to determine the computing power control parameter.

3. The method according to claim 2, characterized in that The configuration information includes a guaranteed time window and a first rate. The computing power control parameter is the product of the first rate and the guaranteed time window. The first rate is the computing power size PCR allocated per unit time. The guaranteed time window is used to determine the duration of the computing power control parameter.

4. The method according to claim 1, characterized in that The computing power control parameter is a product of a second rate of the one or more services and a first duration of the one or more services; The second rate is the amount of computing power allocated per unit time, and the first duration is the duration between the time when the computing power control parameter is determined this time and the time when the computing power control parameter was determined last time.

5. The method according to claims 3 and 4, characterized in that When the product of the second rate and the first duration is greater than or equal to the product of the first rate and the guaranteed time window, the computing power control parameter is the product of the first rate and the guaranteed time window; When the product of the second rate and the first duration is less than the product of the first rate and the guaranteed time window, the computing power control parameter is the product of the second rate and the first duration.

6. The method according to any one of claims 1 to 5, characterized in that: The allocating computing power resources to one or more services based on the computing power control parameter includes: Based on the computing power control parameter and the priority of the one or more services, computing power resources are allocated to the one or more services.

7. The method according to claim 6, characterized in that The allocating computing power resources to one or more services based on the computing power control parameter includes: Allocate computing power resources to the service with the highest priority among the one or more services and whose computing power control parameter is greater than 0.

8. The method according to claim 6, characterized in that The allocating computing power resources to one or more services based on the computing power control parameter includes: In the case that a service with an infinite rate exists among the one or more services, computing resources are allocated to the service with an infinite rate.

9. The method according to any one of claims 6 to 8, characterized in that: Also includes: If there are remaining computing resources, the remaining computing resources are discarded.

10. The method according to claim 9, characterized in that The discarding of the remaining computing resources includes: Sending indication information of the remaining computing resources to the network device, wherein the indication information of the remaining computing resources is used to indicate a request to deactivate the remaining computing resources.

11. The method according to any one of claims 6 to 8, characterized in that: Also includes: In the case where there are remaining computing power resources, the remaining computing power resources are allocated to the one or more services whose computing power control parameters are greater than 0.

12. The method according to claim 11, characterized in that In the case where there are remaining computing resources, allocating the remaining computing resources to the one or more services whose computing power control parameters are greater than 0 includes: In the case where there are remaining computing power resources, the remaining computing power resources are allocated in descending order of priority of the services whose computing power control parameters are greater than 0 among the one or more services.

13. The method according to claim 11 or 12, characterized in that: Also includes: In the case where there are remaining computing resources and the computing resource size requested by the one or more services is 0, the remaining computing resources are allocated to the services in the one or more services whose computing power control parameters are less than 0.

14. The method according to any one of claims 1 to 13, characterized in that: Also includes: The computing power control parameter is updated, and the updated computing power control parameter is determined based on the computing power control parameter and the computing power resources allocated to the corresponding business.

15. The method according to any one of claims 1 to 14, characterized in that: Also includes: Receive the relationship between business and computing resources; The association relationship is used to indicate that the computing resource is used to execute the service, or the association relationship is used to indicate that the computing resource is not available to execute the service; The allocating computing power resources to the one or more services based on the computing power control parameter includes: Based on the association relationship and / or the computing power control parameter, computing power resources are allocated to the one or more services.

16. A resource scheduling method, characterized in that: include: Determine configuration information, where the configuration information is used by the terminal device to determine computing power control parameters; Sending the configuration information to the terminal device; Among them, the computing power control parameter is used to allocate computing power resources to the terminal device.

17. The method according to claim 16, characterized in that The configuration information includes a guaranteed time window and a rate. The computing power control parameter is the product of the rate and the guaranteed time window. The rate is the computing power size PCR allocated per unit time. The guaranteed time window is used to determine the duration of the computing power control parameter.

18. The method according to claim 16 or 17, characterized in that Also includes: Sending an association relationship between a service and computing resources to the terminal device; the association relationship is used to indicate that the computing resources are used to execute the service, or the association relationship is used to indicate that the computing resources cannot be used to execute the service.

19. A communication device, characterized in that: The method comprises a unit for executing the method according to any one of claims 1 to 15, or comprises a unit for executing the method according to any one of claims 16 to 18.

20. A communication device, characterized in that: include: Processor and memory; The memory is used to store computer programs or instructions; The processor is used to execute the computer program or instructions in the memory, so that the device executes the method according to any one of claims 1 to 15, or the device executes the method according to any one of claims 16 to 18.

21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when called by an electronic device, enable the electronic device to execute the method as claimed in any one of claims 1 to 15, or enable the electronic device to execute the method as claimed in any one of claims 16 to 18.

22. A communication system, characterized in that: The invention comprises a device for executing the method according to any one of claims 1 to 15 and a device for executing the method according to any one of claims 16 to 18.

23. A chip system, characterized in that: The chip system comprises: Communication interface; A processor, configured to call and execute the instruction through the communication interface, so that a device equipped with the chip system executes the method as described in any one of claims 1 to 15, or so that a device equipped with the chip system executes the method as described in any one of claims 16 to 18.

Citation Information

Patent Citations

  • Resource allocation method and device

    CN111669831A

  • Terminal resource allocation method and device, and electronic equipment

    CN111800877A

  • Computing power resource scheduling method and related device

    CN115484620A

  • Dynamic allocation method and system for performance resources and related components

    CN116302477A

  • Duty-cycle based configured scheduling

    US20230239868A1

Cited By

  • Job process control method and device, product, server and medium

    CN120429091A

  • Service switching method and device, electronic equipment and computer program product

    CN120849139A