Resource allocation method and device, computer equipment and storage medium
By updating the resource allocation model in the wireless access network and using historical transmission rates and resource allocation results to optimize resource allocation, the problem of computing task delay caused by the surge in the number of users and business diversification is solved, and the accuracy and efficiency of resource allocation are improved.
Patent Information
- Application Number
- CN202411151492.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-10-08
AI Technical Summary
The existing resource allocation methods of wireless access networks cannot effectively cope with the surge in the number of users in the network and the diversification of business needs, resulting in large processing delays in computing tasks.
By transmitting the model parameters of the initial resource allocation model between the server and the client server, the model is updated based on the historical transmission rate and resource allocation results, with the goal of minimizing the processing delay of computing tasks, gradually optimizing the resource allocation model, and reducing the number of computing tasks. Processing delays.
It improves the accuracy and efficiency of resource allocation results, reduces the processing delay of computing tasks, and adapts to the task processing characteristics of communication networks.
Smart Images

Figure CN118748843A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of wireless access networks, and in particular to a resource allocation method, apparatus, computer equipment and storage medium. Background Art
[0002] With the rapid development of information technology, the performance and efficiency of the wireless access network, as the key link connecting user terminals and core networks, directly affect the operation quality of the entire communication system. Among them, the reasonable allocation of wireless access network resources plays a vital role in improving the performance and efficiency of wireless communication systems.
[0003] However, the current resource allocation method for wireless access networks cannot effectively cope with the surge in the number of users in the network and the diversification of business needs, and there is a problem of large delay in computing task processing. Summary of the invention
[0004] Based on this, it is necessary to provide a resource allocation method, apparatus, computer device and storage medium that can reduce the processing delay of computing tasks in response to the above technical problems.
[0005] In a first aspect, the present application provides a resource allocation method, which is applied to a server-side server, and the method includes:
[0006] Sending model parameters of the initial resource allocation model to each client server, the model parameters of the initial resource allocation model are used by the client server to update the parameters of the initial resource allocation model according to the historical transmission rate and the corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device;
[0007] Receiving the model parameters of the intermediate resource allocation model sent by each client server, and determining the target model parameters according to the model parameters of each intermediate resource allocation model;
[0008] The target model parameters are sent to each of the client servers, and the target model parameters are used to update the parameters of the intermediate resource allocation model to obtain a target resource allocation model, and the target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
[0009] In one embodiment, before sending the model parameters of the initial resource allocation model to each client server, the method further includes:
[0010] Determine the processing delay of the computing task according to the computing delay of the user equipment, the computing delay of each computing device, and the transmission delay between the user equipment and each of the computing devices;
[0011] The constraints of the initial resource allocation model are determined according to the unloading state of the computing task, the channel resources allocated to the user equipment by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task.
[0012] In one embodiment, the constraints include:
[0013] The computing task of the user equipment is offloaded to the user equipment, or the computing task of the user equipment is offloaded to any one of the computing devices;
[0014] The sum of the channel resources allocated to the user equipment by each computing device does not exceed the maximum amount of channel resources provided;
[0015] The computing resources allocated to each computing device do not exceed the maximum amount of computing resources provided;
[0016] The task processing delay does not exceed the maximum tolerable delay.
[0017] In a second aspect, the present application further provides a resource allocation method, which is applied to a client server, and the method includes:
[0018] Receiving model parameters of the initial resource allocation model sent by the server;
[0019] According to the historical transmission rate and the corresponding historical resource allocation result, the initial resource allocation model is parameter updated with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device;
[0020] The model parameters of the intermediate resource allocation model are sent to the service-end server; the model parameters of the intermediate resource allocation model are used by the service-end server to determine the target model parameters according to the model parameters of each intermediate resource allocation model;
[0021] The target model parameters sent by the service-side server are received, and the parameters of the intermediate resource allocation model are updated based on the target model parameters to obtain a target resource allocation model, where the target resource allocation model is used to determine a corresponding resource allocation result based on a current transmission rate.
[0022] In one embodiment, before receiving the model parameters of the initial resource allocation model sent by the service-side server, the method further includes:
[0023] Obtaining the processing delay of the computing task and the constraint conditions of the initial resource allocation model;
[0024] Among them, the processing delay of the computing task is determined according to the computing delay of the user device, the computing delay of each computing device, and the transmission delay between the user device and each of the computing devices; the constraint condition is determined according to the unloading state of the computing task, the channel resources allocated to the user device by each of the computing devices, the computing resources allocated by each of the computing devices, and the processing delay of the computing task.
[0025] In one embodiment, the constraints include:
[0026] The computing task of the user equipment is offloaded to the user equipment, or the computing task of the user equipment is offloaded to any one of the computing devices;
[0027] The sum of the channel resources allocated to the user equipment by each computing device does not exceed the maximum amount of channel resources provided;
[0028] The computing resources allocated to each computing device do not exceed the maximum amount of computing resources provided;
[0029] The task processing delay does not exceed the maximum tolerable delay.
[0030] In a third aspect, the present application further provides a resource allocation device, the device comprising:
[0031] A first sending module is used to send model parameters of the initial resource allocation model to each client server, wherein the model parameters of the initial resource allocation model are used by the client server to update the parameters of the initial resource allocation model according to the historical transmission rate and the corresponding historical resource allocation result, with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device;
[0032] A first receiving module is used to receive the model parameters of the intermediate resource allocation model sent by each client server, and determine the target model parameters according to the model parameters of each intermediate resource allocation model;
[0033] The second sending module is used to send the target model parameters to each of the client servers. The target model parameters are used to update the parameters of the intermediate resource allocation model to obtain a target resource allocation model. The target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
[0034] In a fourth aspect, the present application further provides a resource allocation device, the device comprising:
[0035] A second receiving module, used for receiving the model parameters of the initial resource allocation model sent by the server;
[0036] A first parameter updating module is used to update the parameters of the initial resource allocation model according to the historical transmission rate and the corresponding historical resource allocation result, with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device;
[0037] A third sending module is used to send the model parameters of the intermediate resource allocation model to the service-end server; the model parameters of the intermediate resource allocation model are used by the service-end server to determine the target model parameters according to the model parameters of each intermediate resource allocation model;
[0038] The second parameter updating module is used to receive the target model parameters sent by the service-side server, and update the parameters of the intermediate resource allocation model based on the target model parameters to obtain a target resource allocation model, which is used to determine the corresponding resource allocation result based on the current transmission rate.
[0039] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0040] In a sixth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of any of the above methods when executed by a processor.
[0041] The above-mentioned resource allocation method, device, computer equipment and storage medium send the model parameters of the initial resource allocation model to each client server. The client server updates the parameters of the initial resource allocation model based on the historical transmission rate and the corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, to obtain an intermediate resource allocation model. The server determines the target model parameters based on the model parameters of each intermediate resource allocation model, and the client server updates the parameters of the intermediate resource allocation model based on the target model parameters to obtain a target resource allocation model. Since in the embodiment of the present application, the resource allocation result is determined based on the target resource allocation model with the goal of minimizing the processing delay of the computing task, it is possible to learn the task processing characteristics of the communication network through the resource allocation model, improve the accuracy of the resource allocation result, and reduce the delay in computing task processing. In addition, determining the resource allocation result based on the resource allocation model can also improve the efficiency of resource allocation. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is an internal structure diagram of a computer device provided in an embodiment of the present application;
[0043] Figure 2 It is a flowchart of a resource allocation method provided in an embodiment of the present application;
[0044] Figure 3 It is a structural diagram of a communication network provided in an embodiment of the present application;
[0045] Figure 4 It is a flowchart of a method for determining an initial resource allocation model provided in an embodiment of the present application;
[0046] Figure 5 is a flowchart of another resource allocation method provided in an embodiment of the present application;
[0047] Figure 6 It is a flow chart of a resource allocation method for a wireless access network scenario provided by an embodiment of the present application;
[0048] Figure 7 is a schematic diagram of the training results of the resource allocation model under different learning rates provided in the embodiment of the present application;
[0049] Figure 8 It is a schematic diagram of the change of reward value with the number of training episodes under different numbers of client servers provided in the embodiment of the present application;
[0050] Fig. 9 is a schematic diagram of the processing delay of computing tasks under different algorithms provided in the embodiments of the present application;
[0051] Fig.10It is a schematic diagram showing how the processing delay of computing tasks varies with the number of tasks under different algorithms provided in the embodiments of the present application;
[0052] Fig.11 is a structural block diagram of a resource allocation device provided in an embodiment of the present application;
[0053] Fig.12 It is a structural block diagram of another resource allocation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0055] With the rapid development of information technology, the performance and efficiency of the wireless access network, as the key link connecting user terminals and core networks, directly affect the operation quality of the entire communication system. Among them, the reasonable allocation of wireless access network resources plays a vital role in improving the performance and efficiency of wireless communication systems.
[0056] However, the current resource allocation method for wireless access networks cannot effectively cope with the surge in the number of users in the network and the diversification of business needs, and there is a problem of large delay in computing task processing.
[0057] The resource allocation method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Figure 1 is an internal structure diagram of a computer device provided in an embodiment of the present application. The computer device may be a server or a client server. The internal structure diagram may be as follows: Figure 1 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a resource allocation method is implemented.
[0058] Those skilled in the art will understand that Figure 1The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0059] In one embodiment, Figure 2 As shown, Figure 2 1 is a flow chart of a resource allocation method provided in an embodiment of the present application. The method can be applied to a server-side server. The method includes the following steps:
[0060] S201, sending model parameters of the initial resource allocation model to each client server.
[0061] Among them, the model parameters of the initial resource allocation model are used by the client server to update the parameters of the initial resource allocation model according to the historical transmission rate and the corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, so as to obtain the intermediate resource allocation model.
[0062] The historical transmission rate is a transmission rate between a target user device and a target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device.
[0063] It should be noted that the user device associated with the client server is the user device that is communicatively connected to the client server; the target computing device is associated with the target user device, that is, the target computing device is communicatively connected to the target user device.
[0064] Optionally, the computing device may include a computing apparatus and / or a computing unit communicatively connected to the base station.
[0065] For example, refer to Figure 3 , Figure 3 Schematic diagram of a communication network structure provided by an embodiment of the present application. Figure 3 As shown, the communication network includes at least two base stations (BS), several computing units and user equipment (UE), wherein each base station BS is connected to a computing device.
[0066] like Figure 3 As shown, the user equipment will generate computing tasks, and the computing tasks of each user equipment can be processed in three offloading methods, namely: processing the computing tasks locally in the user equipment, offloading the computing tasks to the base station, and offloading the computing tasks to the computing unit.
[0067] In one implementation, the service-side server can determine the initial resource allocation model according to the offloading mode of the computing task and the processing delays of the three offloading modes, and initialize the model parameters of the initial resource allocation model, that is, determine the model parameters of the initial resource allocation model. Then, a number of client servers are randomly selected, and the model parameters of the initial resource allocation model are sent to each selected client server.
[0068] 202, receiving the model parameters of the intermediate resource allocation model sent by each client server, and determining the target model parameters according to the model parameters of each intermediate resource allocation model.
[0069] After the server sends the model parameters of the initial resource allocation model to each selected client server, the client server can train the initial resource allocation model using local data through the DDQN (Double Deep Q Network) algorithm to obtain a trained intermediate resource allocation model, and then send the model parameters of the intermediate resource allocation model to the server.
[0070] In a possible implementation manner, after receiving the model parameters of the intermediate resource allocation model sent by each client server, the service-side server may perform weighted aggregation on each model parameter to obtain the target model parameter.
[0071] For example, each model parameter can be weighted and aggregated by the following formula (1):
[0072] (1)
[0073] In formula (1), The number of client servers selected, is the target model parameter after weighted aggregation, For the The model parameters of the intermediate resource allocation model sent by the client server.
[0074] S203, sending the target model parameters to each client server.
[0075] The target model parameters are used to update the parameters of the intermediate resource allocation model to obtain the target resource allocation model, and the target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
[0076] In one embodiment, the service-side server may send the target model parameters to each selected client server respectively. After receiving the target model parameters, the client server may use the target model parameters to update the parameters of the intermediate resource allocation model to obtain the target resource allocation model.
[0077] Optionally, after the client server obtains the target resource allocation model, it can obtain the current transmission rate of the communication network and use the current transmission rate as the input of the target resource allocation model to obtain the resource allocation result output by the target resource allocation model.
[0078] In an embodiment of the present application, the model parameters of the initial resource allocation model are sent to each client server. The client server updates the parameters of the initial resource allocation model based on the historical transmission rate and the corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, to obtain an intermediate resource allocation model. The server determines the target model parameters based on the model parameters of each intermediate resource allocation model, and the client server updates the parameters of the intermediate resource allocation model based on the target model parameters to obtain a target resource allocation model. Since in an embodiment of the present application, the resource allocation result is determined based on the target resource allocation model with the goal of minimizing the processing delay of the computing task, it is possible to learn the task processing characteristics of the communication network through the resource allocation model, improve the accuracy of the resource allocation result, and reduce the delay in computing task processing. In addition, determining the resource allocation result based on the resource allocation model can also improve the efficiency of resource allocation.
[0079] Reference Figure 4 , Figure 4 1 is a flow chart of a method for determining an initial resource allocation model provided by an embodiment of the present application. Based on the above embodiment, before S201, the method includes the following steps:
[0080] S401, determining a processing delay of a computing task according to a computing delay of a user device, a computing delay of each computing device, and a transmission delay between the user device and each computing device.
[0081] In an exemplary embodiment, if the communication network consists of two base stations, N computing units, and M user equipments, the set of UEs can be defined as , the set of computational units is defined as Each computation task is represented as .in, is the size of the computational task, is the computing resource required to process the computing task, is the maximum tolerable delay of the computing task. In order to formulate the problem, the time domain can be divided into different time slots, each of which cannot exceed The offloading path set of computing tasks can be expressed as , including local processing, offloading to the computing unit processing and offloading to the BS processing. as the uninstall decision set. According to the decision Execute uninstall task ,otherwise The same computing task can only be offloaded to one processing unit for processing. The total bandwidth of the communication link between the UE and the computing unit can be evenly divided into subcarriers, the bandwidth of each subcarrier is Indicates that the total bandwidth of the communication link between UE and BS is evenly divided into subcarriers, the bandwidth of each subcarrier is express.
[0082] Based on the above embodiment, it is assumed that all UEs in the communication network have the same transmission power. ,and The number of UEs within the coverage area of the calculation unit is , the processing delay of the computing task of the communication network is analyzed:
[0083] If the computing task is processed locally on the user device, the processing delay of the computing task only needs to consider the computing delay of the user device. The processing delay of local processing can be expressed as the following formula (2):
[0084] (2)
[0085] In formula (2), is the computing capability of the local UE.
[0086] If the computing task is offloaded to a computing unit for processing, the processing delay of the computing task needs to take into account the transmission delay between the user equipment and the computing unit, as well as the computing delay of the computing unit.
[0087] In the mode of offloading to the computing unit for processing, The signal-to-noise ratio at the computing unit can be expressed as the following formula (3):
[0088] (3)
[0089] In formula (3), is the Gaussian white noise power, is the received signal gain at the computing unit. It can be expressed as the following formula (4):
[0090] (4)
[0091] In formula (4), is the height of the computational unit, is the communication frequency between UE and computing unit, express The distance to the computation unit.
[0092] According to the above formula (3), we can determine The transmission delay between the user equipment and the computing unit , expressed as the following formula (5):
[0093] (5)
[0094] In formula (5), is the indicator variable for calculating the unit subcarrier allocation, Indicates Time slot The computing unit will Subcarriers are allocated ,otherwise .
[0095] No. The calculation delay of a time slot calculation unit can be expressed as the following formula (6):
[0096] (6)
[0097] In formula (6), Indicates the computing power of the computing unit, Indicates Computational units in time slot Assigned to The percentage of computing resources used.
[0098] If the computing task is offloaded to the BS for processing, the processing delay of the computing task needs to take into account the transmission delay between the user equipment and the BS, as well as the computing delay of the BS.
[0099] In the offload mode to the BS for processing, the spectrum allocated to each UE is orthogonal, so The signal-to-noise ratio at the BS can be expressed as the following formula (7):
[0100] (7)
[0101] In formula (7), is the received signal gain at the BS.
[0102] According to the above formula (7), the transmission delay between the user equipment and the BS can be determined, which is expressed as the following formula (8):
[0103] (8)
[0104] In formula (8), ( ) is the indicator variable of the base station subcarrier allocation, Indicates The base station will Subcarriers are allocated ,otherwise .
[0105] The calculation delay of BS can be expressed as the following formula (9):
[0106] (9)
[0107] In summary, the communication network Processing computing tasks in time slots Processing delay It can be expressed as the following formula (10):
[0108] (10)
[0109] In formula (10), and In the The total delay of the computing unit processing the computing task in each time slot and the BS processing the computing task is the sum of the transmission delay and the computing delay.
[0110] According to the computing delay of the user equipment, the computing delay of each computing device, and the transmission delay between the user equipment and each computing device, the objective function of the resource allocation model is determined, which is expressed as the following formula (11):
[0111] (11)
[0112] In formula (11), express The accumulated delay of task execution.
[0113] S402, determining the constraints of the initial resource allocation model according to the offloading state of the computing task, the channel resources allocated to the user equipment by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task.
[0114] Based on the objective function of the above resource allocation model, the constraints of the resource allocation model are determined, which are expressed as the following C1-C5:
[0115]
[0116] - middle, Indicates the total number of subcarriers in the calculation unit, Indicates the total number of subcarriers of the base station.
[0117] in, , It means that the computing task of the user device is offloaded to the user device, or the computing task of the user device is offloaded to any computing device. It means that the total amount of channel resources allocated to the user equipment by each computing device does not exceed the maximum amount of channel resources provided. Indicates that the computing resources allocated to each computing device do not exceed the maximum amount of computing resources provided. Indicates that the task processing delay does not exceed the maximum tolerable delay.
[0118] In an embodiment of the present application, the processing delay of the computing task is determined based on the computing delay of the user device, the computing delay of each computing device, and the transmission delay between the user device and each computing device, and the constraints of the initial resource allocation model are determined based on the unloading state of the computing task, the channel resources allocated to the user device by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task, so that the task processing characteristics of the communication network can be learned through the resource allocation model, and further, when the resource allocation model is trained with the goal of minimizing the processing delay of the computing task, the delay in computing task processing can be reduced.
[0119] In one embodiment, Figure 5 As shown, Figure 5 1 is a flow chart of another resource allocation method provided in an embodiment of the present application. The method can be applied to a client server. The method includes the following steps:
[0120] S501: Receive model parameters of an initial resource allocation model sent by a server.
[0121] In one embodiment, the client server may receive the model parameters of the initial resource allocation model sent by the service server, and use the model parameters of the initial resource allocation model sent by the service server as the model parameters of the initial resource allocation model of the client server.
[0122] S502 , based on historical transmission rates and corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, update the parameters of the initial resource allocation model to obtain an intermediate resource allocation model.
[0123] The historical transmission rate is a transmission rate between a target user device and a target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device.
[0124] In an embodiment of the present application, the DDQN algorithm can be used to train the initial resource allocation model based on the historical transmission rate and the corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, and the parameters of the initial resource allocation model can be updated to obtain an intermediate resource allocation model.
[0125] Exemplarily, in the embodiment of the present application, the transmission rate between the user equipment and the base station and the transmission rate between the user equipment and the computing unit can be used as the state of the DDQN algorithm. Therefore, the state set of the DDQN algorithm can be defined as:
[0126]
[0127] in, express The first base station and user equipment in the time slot The transmission rate between express The first calculation unit of the time slot and the user equipment The transmission rate between.
[0128] Optionally, the DDQN algorithm in the embodiment of the present application can be used The strategy selects an action and then executes the selected action. The definition of the action is as follows:
[0129]
[0130] in, Indicates Time slot tasks Uninstall locally on the user's device; represent Whether the first base station in the time slot should allocate subcarriers to the user equipment ; represent Whether the first calculation unit of the time slot should allocate subcarriers to the user equipment ; Indicates the user equipment assigned by the first base station The percentage of computing resources used; Indicates the user equipment assigned to the first computing unit It should be noted that in the embodiment of the present application, the computing resources are discretized with an interval of 10%.
[0131] In addition, when applying the DDQN algorithm, for the constraints of the resource allocation model, - The constraints can be satisfied by restricting the action space. The reward value can be used to constrain the reward function, which is defined as: .
[0132] In one embodiment, the client server can initialize the agent and experience pool, and then initialize the time slot channel resources and computing resources of the target user device and each target computing device. Then obtain the initial state set And the model parameters of the initial resource allocation model. Among them, the initial state set For example, historical transmission rates may be included.
[0133] After initialization, you can The strategy selects actions, determines the required parameters according to the objective function, calculates the reward value, and stores the obtained data in the form of tuples in the experience pool. Then the Q value of the main network is calculated, and the Q value of the target network is obtained according to the state action set. After that, the Q network is trained with the experience pool, and the model parameters are updated using the gradient descent algorithm. The above training process is repeated until the model converges to obtain the intermediate resource allocation model.
[0134] S503: Send the model parameters of the intermediate resource allocation model to the service-end server.
[0135] The model parameters of the intermediate resource allocation model are used by the server-side server to determine the target model parameters according to the model parameters of each intermediate resource allocation model.
[0136] In one embodiment, the client server may send the model parameters of the intermediate resource allocation model obtained through training to the server server. After receiving the model parameters of the intermediate resource allocation model sent by each client server, the server may perform weighted aggregation on each model parameter to obtain the target model parameter.
[0137] S504, receiving target model parameters sent by the server, and updating the parameters of the intermediate resource allocation model based on the target model parameters to obtain a target resource allocation model.
[0138] The target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
[0139] After receiving the target model parameters, the client server can use the target model parameters to update the parameters of the intermediate resource allocation model to obtain the target resource allocation model.
[0140] Optionally, after the client server obtains the target resource allocation model, it can obtain the current transmission rate of the communication network and use the current transmission rate as the input of the target resource allocation model to obtain the resource allocation result output by the target resource allocation model.
[0141] In an embodiment of the present application, the model parameters of the initial resource allocation model are sent to each client server. The client server updates the parameters of the initial resource allocation model based on the historical transmission rate and the corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, to obtain an intermediate resource allocation model. The server determines the target model parameters based on the model parameters of each intermediate resource allocation model, and the client server updates the parameters of the intermediate resource allocation model based on the target model parameters to obtain a target resource allocation model. Since in an embodiment of the present application, the resource allocation result is determined based on the target resource allocation model with the goal of minimizing the processing delay of the computing task, it is possible to learn the task processing characteristics of the communication network through the resource allocation model, improve the accuracy of the resource allocation result, and reduce the delay in computing task processing. In addition, determining the resource allocation result based on the resource allocation model can also improve the efficiency of resource allocation.
[0142] Based on the above embodiment, before S501, the method includes the following steps:
[0143] Obtain the processing latency of computing tasks and the constraints of the initial resource allocation model.
[0144] Among them, the processing delay of the computing task is determined according to the computing delay of the user device, the computing delay of each computing device, and the transmission delay between the user device and each computing device; the constraint condition is determined according to the unloading state of the computing task, the channel resources allocated to the user device by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task.
[0145] When the client server receives the model parameters of the initial resource allocation model sent by the server-side server, it can first obtain the processing delay of the computing task and the constraints of the initial resource allocation model from the server-side server, and build the initial resource allocation model on the client server according to the processing delay of the computing task and the constraints of the initial resource allocation model.
[0146] Reference Figure 6 , Figure 6 1 is a flow chart of a resource allocation method for a wireless access network scenario provided by an embodiment of the present application. The method comprises the following steps:
[0147] S601: The server at the service end constructs an objective function and constraint conditions of an initial resource allocation model, and trains the initial resource allocation model to determine model parameters of the initial resource allocation model.
[0148] S602: Send model parameters of the initial resource allocation model to each client server.
[0149] S603, the client server updates the parameters of the initial resource allocation model according to the historical transmission rate and the corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, to obtain an intermediate resource allocation model, and sends the model parameters of the intermediate resource allocation model to the service server.
[0150] S604, the service-side server receives the model parameters of the intermediate resource allocation model sent by each client server, determines the target model parameters according to the model parameters of each intermediate resource allocation model, and sends the target model parameters to each client server.
[0151] S605: The client server updates the parameters of the intermediate resource allocation model according to the target model parameters to obtain the target resource allocation model.
[0152] S606: The client server uses the current transmission rate as an input of the target resource allocation model to obtain a resource allocation result output by the target resource allocation model.
[0153] In order to introduce the embodiments of the present application more clearly, Figure 7-10 An exemplary description is given.
[0154] Figure 7 is a schematic diagram of the training results of the resource allocation model under different learning rates provided in the embodiment of the present application. Figure 7 It can be seen that the resource allocation model can converge when different learning rates are used. The convergence rate is fastest when the learning rate is 1e-3, and the convergence rate is slowest when the learning rate is 1e-5. That is to say, when the learning rate takes different values, the convergence rate will also change accordingly. Within a certain range, the higher the learning rate, the faster the convergence rate.
[0155] Figure 8 Schematic diagram of the reward value changing with the number of training episodes under different numbers of client servers provided in the embodiment of the present application. Figure 8 It can be seen that as the number of client servers increases, the reward value increases and the processing delay decreases. This is because the increase in the number of client servers makes the effect of model parameter transfer more obvious, the training speed is accelerated, and thus the processing delay is reduced. At the same time, the number of training times required to achieve a stable reward state becomes larger. This is because the number of client servers increases, the parameter dimension also increases, and the number of training times to achieve a stable reward state will also increase compared to low dimensions.
[0156] Fig. 9 Schematic diagram of the processing delay of computing tasks under different algorithms provided in the embodiments of the present application. Fig. 9As shown in the figure, the FL-DDQN algorithm has less task execution delay than the centralized DDQN algorithm and the centralized DQN algorithm. This is because the FL-DDQN algorithm distributes the processing of computing tasks, and can distribute tasks to local, computing units, and base stations with the lowest task processing delay, and can share model parameters, so the task execution is fast; although the centralized DDQN algorithm and the centralized DQN algorithm also aim at the lowest processing delay, their calculation rate is slower, so the task execution delay is larger. When the number of CPU revolutions required for the task increases, the task execution delay of the FL-DDQN algorithm increases the slowest.
[0157] Fig.10 Schematic diagram showing the variation of the processing delay of computing tasks with the number of tasks under different algorithms provided in the embodiments of the present application. Fig.10 As shown in the figure, as the number of tasks increases, the task execution delays of the centralized DQN algorithm, the centralized DDQN algorithm, and the FL-DDQN algorithm are all increasing. The FL-DDQN algorithm has a faster calculation speed, so the task processing delay is less. When the number of tasks increases, the task execution delay of the FL-DDQN algorithm increases the slowest than the other two centralized algorithms. When the number of tasks gradually increases, the task execution time increases due to resource competition.
[0158] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0159] Based on the same inventive concept, the embodiment of the present application also provides a resource allocation device for implementing the resource allocation method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more resource allocation device embodiments provided below can refer to the limitations on the resource allocation method above, and will not be repeated here.
[0160] In one embodiment, Fig.11 As shown, Fig.11 1100 is a structural block diagram of a resource allocation device provided in an embodiment of the present application. The device 1100 includes:
[0161] The first sending module 1101 is used to send the model parameters of the initial resource allocation model to each client server. The model parameters of the initial resource allocation model are used by the client server to update the parameters of the initial resource allocation model according to the historical transmission rate and the corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device.
[0162] The first receiving module 1102 is used to receive the model parameters of the intermediate resource allocation model sent by each client server, and determine the target model parameters according to the model parameters of each intermediate resource allocation model.
[0163] The second sending module 1103 is used to send the target model parameters to each client server, the target model parameters are used to update the parameters of the intermediate resource allocation model to obtain the target resource allocation model, and the target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
[0164] In one embodiment, the apparatus 1100 further includes:
[0165] The first determination module is used to determine the processing delay of the computing task according to the computing delay of the user equipment, the computing delay of each computing device, and the transmission delay between the user equipment and each computing device.
[0166] The second determination module is used to determine the constraints of the initial resource allocation model according to the unloading state of the computing task, the channel resources allocated to the user equipment by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task.
[0167] In one embodiment, the constraints include:
[0168] The computing task of the user equipment is offloaded to the user equipment, or the computing task of the user equipment is offloaded to any computing device;
[0169] The sum of the channel resources allocated to the user equipment by each computing device does not exceed the maximum amount of channel resources provided;
[0170] The computing resources allocated to each computing device shall not exceed the maximum amount of computing resources provided;
[0171] The task processing delay does not exceed the maximum tolerable delay.
[0172] In one embodiment, Fig.12 As shown, Fig.121200 is a structural block diagram of another resource allocation device provided in an embodiment of the present application. The device 1200 includes:
[0173] The second receiving module 1201 is used to receive the model parameters of the initial resource allocation model sent by the service-side server.
[0174] The first parameter updating module 1202 is used to update the parameters of the initial resource allocation model according to the historical transmission rate and the corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device.
[0175] The third sending module 1203 is used to send the model parameters of the intermediate resource allocation model to the service-end server; the model parameters of the intermediate resource allocation model are used by the service-end server to determine the target model parameters according to the model parameters of each intermediate resource allocation model.
[0176] The second parameter updating module 1204 is used to receive the target model parameters sent by the service-side server, and update the parameters of the intermediate resource allocation model based on the target model parameters to obtain a target resource allocation model, which is used to determine the corresponding resource allocation result based on the current transmission rate.
[0177] In one embodiment, the apparatus 1200 further includes:
[0178] The acquisition module is used to obtain the processing delay of the computing task and the constraints of the initial resource allocation model.
[0179] Among them, the processing delay of the computing task is determined according to the computing delay of the user device, the computing delay of each computing device, and the transmission delay between the user device and each computing device; the constraint condition is determined according to the unloading state of the computing task, the channel resources allocated to the user device by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task.
[0180] In one embodiment, the constraints include:
[0181] The computing task of the user equipment is offloaded to the user equipment, or the computing task of the user equipment is offloaded to any computing device;
[0182] The sum of the channel resources allocated to the user equipment by each computing device does not exceed the maximum amount of channel resources provided;
[0183] The computing resources allocated to each computing device shall not exceed the maximum amount of computing resources provided;
[0184] The task processing delay does not exceed the maximum tolerable delay.
[0185] Each module in the resource allocation device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0186] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0187] Sending model parameters of the initial resource allocation model to each client server, the model parameters of the initial resource allocation model are used by the client server to update the parameters of the initial resource allocation model according to the historical transmission rate and the corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device;
[0188] Receiving model parameters of the intermediate resource allocation model sent by each client server, and determining target model parameters according to the model parameters of each intermediate resource allocation model;
[0189] The target model parameters are sent to each client server, and the target model parameters are used to update the parameters of the intermediate resource allocation model to obtain the target resource allocation model, and the target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
[0190] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0191] Determine the processing delay of the computing task according to the computing delay of the user device, the computing delay of each computing device, and the transmission delay between the user device and each computing device;
[0192] The constraints of the initial resource allocation model are determined according to the offloading state of the computing task, the channel resources allocated to the user equipment by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task.
[0193] In one embodiment, the constraints include:
[0194] The computing task of the user equipment is offloaded to the user equipment, or the computing task of the user equipment is offloaded to any computing device;
[0195] The sum of the channel resources allocated to the user equipment by each computing device does not exceed the maximum amount of channel resources provided;
[0196] The computing resources allocated to each computing device shall not exceed the maximum amount of computing resources provided;
[0197] The task processing delay does not exceed the maximum tolerable delay.
[0198] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0199] Receiving model parameters of the initial resource allocation model sent by the server;
[0200] According to the historical transmission rate and the corresponding historical resource allocation results, the parameters of the initial resource allocation model are updated with the goal of minimizing the processing delay of the computing task to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device;
[0201] The model parameters of the intermediate resource allocation model are sent to the service-side server; the model parameters of the intermediate resource allocation model are used by the service-side server to determine the target model parameters according to the model parameters of each intermediate resource allocation model;
[0202] Receive the target model parameters sent by the server at the service end, and update the parameters of the intermediate resource allocation model based on the target model parameters to obtain the target resource allocation model, where the target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
[0203] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0204] Obtain the processing delay of the computing task and the constraints of the initial resource allocation model;
[0205] Among them, the processing delay of the computing task is determined according to the computing delay of the user device, the computing delay of each computing device, and the transmission delay between the user device and each computing device; the constraint condition is determined according to the unloading state of the computing task, the channel resources allocated to the user device by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task.
[0206] In one embodiment, the constraints include:
[0207] The computing task of the user equipment is offloaded to the user equipment, or the computing task of the user equipment is offloaded to any computing device;
[0208] The sum of the channel resources allocated to the user equipment by each computing device does not exceed the maximum amount of channel resources provided;
[0209] The computing resources allocated to each computing device shall not exceed the maximum amount of computing resources provided;
[0210] The task processing delay does not exceed the maximum tolerable delay.
[0211] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0212] Sending model parameters of the initial resource allocation model to each client server, the model parameters of the initial resource allocation model are used by the client server to update the parameters of the initial resource allocation model according to the historical transmission rate and the corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device;
[0213] Receiving model parameters of the intermediate resource allocation model sent by each client server, and determining target model parameters according to the model parameters of each intermediate resource allocation model;
[0214] The target model parameters are sent to each client server, and the target model parameters are used to update the parameters of the intermediate resource allocation model to obtain the target resource allocation model, and the target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
[0215] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0216] Before sending the model parameters of the initial resource allocation model to each client server, the method further includes:
[0217] Determine the processing delay of the computing task according to the computing delay of the user device, the computing delay of each computing device, and the transmission delay between the user device and each computing device;
[0218] The constraints of the initial resource allocation model are determined according to the offloading state of the computing task, the channel resources allocated to the user equipment by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task.
[0219] In one embodiment, the constraints include:
[0220] The computing task of the user equipment is offloaded to the user equipment, or the computing task of the user equipment is offloaded to any computing device;
[0221] The sum of the channel resources allocated to the user equipment by each computing device does not exceed the maximum amount of channel resources provided;
[0222] The computing resources allocated to each computing device shall not exceed the maximum amount of computing resources provided;
[0223] The task processing delay does not exceed the maximum tolerable delay.
[0224] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0225] Receiving model parameters of the initial resource allocation model sent by the server;
[0226] According to the historical transmission rate and the corresponding historical resource allocation results, the parameters of the initial resource allocation model are updated with the goal of minimizing the processing delay of the computing task to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device;
[0227] The model parameters of the intermediate resource allocation model are sent to the service-side server; the model parameters of the intermediate resource allocation model are used by the service-side server to determine the target model parameters according to the model parameters of each intermediate resource allocation model;
[0228] Receive the target model parameters sent by the server at the service end, and update the parameters of the intermediate resource allocation model based on the target model parameters to obtain the target resource allocation model, where the target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
[0229] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0230] Obtain the processing delay of the computing task and the constraints of the initial resource allocation model;
[0231] Among them, the processing delay of the computing task is determined according to the computing delay of the user device, the computing delay of each computing device, and the transmission delay between the user device and each computing device; the constraint condition is determined according to the unloading state of the computing task, the channel resources allocated to the user device by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task.
[0232] In one embodiment, the constraints include:
[0233] The computing task of the user equipment is offloaded to the user equipment, or the computing task of the user equipment is offloaded to any computing device;
[0234] The sum of the channel resources allocated to the user equipment by each computing device does not exceed the maximum amount of channel resources provided;
[0235] The computing resources allocated to each computing device shall not exceed the maximum amount of computing resources provided;
[0236] The task processing delay does not exceed the maximum tolerable delay.
[0237] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0238] Sending model parameters of the initial resource allocation model to each client server, the model parameters of the initial resource allocation model are used by the client server to update the parameters of the initial resource allocation model according to the historical transmission rate and the corresponding historical resource allocation results, with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device;
[0239] Receiving model parameters of the intermediate resource allocation model sent by each client server, and determining target model parameters according to the model parameters of each intermediate resource allocation model;
[0240] The target model parameters are sent to each client server, and the target model parameters are used to update the parameters of the intermediate resource allocation model to obtain the target resource allocation model, and the target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
[0241] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0242] Before sending the model parameters of the initial resource allocation model to each client server, the method further includes:
[0243] Determine the processing delay of the computing task according to the computing delay of the user device, the computing delay of each computing device, and the transmission delay between the user device and each computing device;
[0244] The constraints of the initial resource allocation model are determined according to the offloading state of the computing task, the channel resources allocated to the user equipment by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task.
[0245] In one embodiment, the constraints include:
[0246] The computing task of the user equipment is offloaded to the user equipment, or the computing task of the user equipment is offloaded to any computing device;
[0247] The sum of the channel resources allocated to the user equipment by each computing device does not exceed the maximum amount of channel resources provided;
[0248] The computing resources allocated to each computing device shall not exceed the maximum amount of computing resources provided;
[0249] The task processing delay does not exceed the maximum tolerable delay.
[0250] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0251] Receiving model parameters of the initial resource allocation model sent by the server;
[0252] According to the historical transmission rate and the corresponding historical resource allocation results, the parameters of the initial resource allocation model are updated with the goal of minimizing the processing delay of the computing task to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device;
[0253] The model parameters of the intermediate resource allocation model are sent to the service-side server; the model parameters of the intermediate resource allocation model are used by the service-side server to determine the target model parameters according to the model parameters of each intermediate resource allocation model;
[0254] Receive the target model parameters sent by the server at the service end, and update the parameters of the intermediate resource allocation model based on the target model parameters to obtain the target resource allocation model, where the target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
[0255] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0256] Obtain the processing delay of the computing task and the constraints of the initial resource allocation model;
[0257] Among them, the processing delay of the computing task is determined according to the computing delay of the user device, the computing delay of each computing device, and the transmission delay between the user device and each computing device; the constraint condition is determined according to the unloading state of the computing task, the channel resources allocated to the user device by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task.
[0258] In one embodiment, the constraints include:
[0259] The computing task of the user equipment is offloaded to the user equipment, or the computing task of the user equipment is offloaded to any computing device;
[0260] The sum of the channel resources allocated to the user equipment by each computing device does not exceed the maximum amount of channel resources provided;
[0261] The computing resources allocated to each computing device shall not exceed the maximum amount of computing resources provided;
[0262] The task processing delay does not exceed the maximum tolerable delay.
[0263] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0264] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0265] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A resource allocation method, characterized in that: The method is applied to a service-side server, and the method comprises: Sending model parameters of the initial resource allocation model to each client server, wherein the model parameters of the initial resource allocation model are used by the client server to update the parameters of the initial resource allocation model according to the historical transmission rate and the corresponding historical resource allocation result, with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device; Receiving the model parameters of the intermediate resource allocation model sent by each of the client servers, and determining the target model parameters according to the model parameters of each of the intermediate resource allocation models; The target model parameters are sent to each of the client servers, and the target model parameters are used to update the parameters of the intermediate resource allocation model to obtain a target resource allocation model, and the target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
2. The method according to claim 1, characterized in that Before sending the model parameters of the initial resource allocation model to each client server, the method further includes: Determining a processing delay of the computing task according to a computing delay of the user equipment, a computing delay of each computing device, and a transmission delay between the user equipment and each computing device; The constraints of the initial resource allocation model are determined according to the unloading state of the computing task, the channel resources allocated to the user equipment by each of the computing devices, the computing resources allocated by each of the computing devices, and the processing delay of the computing task.
3. The method according to claim 2, characterized in that The constraints include: The computing task of the user equipment is offloaded to the user equipment, or the computing task of the user equipment is offloaded to any one of the computing devices; The sum of the channel resources allocated to the user equipment by each of the computing devices does not exceed the maximum amount of channel resources provided; The computing resources allocated to each of the computing devices do not exceed the maximum amount of computing resources provided; The task processing delay does not exceed the maximum tolerable delay.
4. A resource allocation method, characterized in that: The method is applied to a client server, and the method comprises: Receiving model parameters of the initial resource allocation model sent by the server; According to the historical transmission rate and the corresponding historical resource allocation results, the parameters of the initial resource allocation model are updated with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device; The model parameters of the intermediate resource allocation model are sent to the service-end server; the model parameters of the intermediate resource allocation model are used by the service-end server to determine the target model parameters according to the model parameters of each intermediate resource allocation model; The target model parameters sent by the service-side server are received, and the parameters of the intermediate resource allocation model are updated based on the target model parameters to obtain a target resource allocation model, wherein the target resource allocation model is used to determine a corresponding resource allocation result based on a current transmission rate.
5. The method according to claim 4, characterized in that Before receiving the model parameters of the initial resource allocation model sent by the service-side server, the method further includes: Obtaining the processing delay of the computing task and the constraint conditions of the initial resource allocation model; Among them, the processing delay of the computing task is determined according to the computing delay of the user equipment, the computing delay of each computing device, and the transmission delay between the user equipment and each computing device; the constraint condition is determined according to the unloading state of the computing task, the channel resources allocated to the user equipment by each computing device, the computing resources allocated by each computing device, and the processing delay of the computing task.
6. The method according to claim 5, characterized in that The constraints include: The computing task of the user equipment is offloaded to the user equipment, or the computing task of the user equipment is offloaded to any one of the computing devices; The sum of the channel resources allocated to the user equipment by each of the computing devices does not exceed the maximum amount of channel resources provided; The computing resources allocated to each of the computing devices do not exceed the maximum amount of computing resources provided; The task processing delay does not exceed the maximum tolerable delay.
7. A resource allocation device, characterized in that: The device comprises: A first sending module, configured to send model parameters of an initial resource allocation model to each client server, wherein the model parameters of the initial resource allocation model are used by the client server to update the parameters of the initial resource allocation model according to a historical transmission rate and a corresponding historical resource allocation result, with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is a transmission rate between a target user device and a target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device; A first receiving module, configured to receive the model parameters of the intermediate resource allocation model sent by each of the client servers, and determine the target model parameters according to the model parameters of each of the intermediate resource allocation models; The second sending module is used to send the target model parameters to each of the client servers, the target model parameters are used to update the parameters of the intermediate resource allocation model to obtain a target resource allocation model, and the target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
8. A resource allocation device, characterized in that: The device comprises: A second receiving module, used for receiving the model parameters of the initial resource allocation model sent by the server; A first parameter updating module is used to update the parameters of the initial resource allocation model according to the historical transmission rate and the corresponding historical resource allocation result, with the goal of minimizing the processing delay of the computing task, so as to obtain an intermediate resource allocation model; wherein the historical transmission rate is the transmission rate between the target user device and the target computing device, the target user device is at least one user device associated with the client server, and the target computing device is associated with the target user device; A third sending module is used to send the model parameters of the intermediate resource allocation model to the service-end server; the model parameters of the intermediate resource allocation model are used by the service-end server to determine the target model parameters according to the model parameters of each intermediate resource allocation model; The second parameter updating module is used to receive the target model parameters sent by the service-side server, and update the parameters of the intermediate resource allocation model based on the target model parameters to obtain a target resource allocation model, wherein the target resource allocation model is used to determine the corresponding resource allocation result based on the current transmission rate.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Resource allocation optimization method and device based on mobile edge computing and storage medium
CN114449529A
Secure communication and resource allocation method and device of power grid information physical system
CN116599845A
Multi-edge node system joint computing unloading and resource allocation method based on DQN
CN116744364A
Resource allocation method and device, terminal, network side equipment and terminal equipment
CN118233304A
