Data transmission request execution method and device, storage medium and electronic equipment

By using multiple control groups in the switch to dynamically adjust transmission resources, the problem of low execution efficiency of data transmission requests is solved, the processing performance of high-priority requests is improved, and fair allocation and utilization of resources are ensured.

CN118748660APending Publication Date: 2024-10-08INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410772912.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

The execution efficiency of data transmission requests in the existing technology is low, especially when a large number of low-priority requests occupy transmission resources, which affects the processing performance of high-priority requests, and the system cannot dynamically adjust the allocated transmission resources.

Method used

By introducing multiple control groups into the switch, the current resource consumption parameters are detected based on the request quantity parameters and unit resource consumption parameters of each control group, and resource adjustment operations are created based on historical resource consumption parameters and resource remaining parameters to dynamically adjust each control The transmission resources of the group ensure that high-priority requests receive sufficient resources.

Benefits of technology

It improves the execution efficiency of data transmission requests, ensures the processing performance of high-priority requests, and avoids system performance degradation caused by low-priority requests taking up too many resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748660A_ABST
    Figure CN118748660A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data transmission request execution method and device, a storage medium and electronic equipment, and the method comprises the steps: detecting a current resource consumption parameter corresponding to each control group according to a request number parameter and a unit resource consumption parameter of each control group in a plurality of control groups, the request quantity parameter is used for indicating the quantity of data transmission requests to be processed currently in each control group; creating a resource adjustment operation for each control group according to the current resource consumption parameter, a historical resource consumption parameter corresponding to each control group and a resource residual parameter on the switch; and executing a corresponding resource adjustment operation on the historical resource consumption parameter of each control group to obtain each control group configured with the target transmission resource. Through the data transmission request processing method and device, the problem that the execution efficiency of the data transmission request is low is solved, and the effect of improving the execution efficiency of the data transmission request is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular, to a method, device, storage medium and electronic device for executing a data transmission request. Background Art

[0002] With the development of cloud computing and big data technology, switches need to process more and more data. Especially when providing services such as log upload, a large number of clients may upload large amounts of data at the same time, which will cause switch congestion, thus seriously affecting upload efficiency and overall service quality.

[0003] At present, a static limitation method is usually adopted, that is, a fixed available transmission resource is allocated to each request issued by the client. However, when a large number of low-priority requests occupy the transmission resources, the processing performance of high-priority requests may be affected, because even if the transmission resources of high-priority requests increase, the system cannot dynamically adjust the allocated transmission resources.

[0004] With regard to the problems in the related art such as low execution efficiency of data transmission requests, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method, device, storage medium and electronic device for executing a data transmission request, so as to at least solve the problem of low execution efficiency of data transmission requests in the related art.

[0006] According to an embodiment of the present application, a method for executing a data transmission request is provided, wherein a switch comprises: a processor and multiple control groups, wherein the switch is used to execute a data transmission request initiated by a client to a server, wherein the data transmission request initiated by the client is added to a control group corresponding to the client among the multiple control groups, wherein the method is applied to the processor, and comprises:

[0007] According to the request quantity parameter and the unit resource consumption parameter of each control group in the multiple control groups, the current resource consumption parameter corresponding to each control group is detected, wherein the request quantity parameter is used to indicate the number of data transmission requests currently to be processed in each control group, the unit resource consumption parameter is used to indicate the transmission resources required for each data transmission request currently to be processed in each control group, and the current resource consumption parameter is used to indicate the transmission resources required for each control group to execute the data transmission request currently to be processed;

[0008] Creating a resource adjustment operation for each control group according to the current resource consumption parameter, the historical resource consumption parameter corresponding to each control group, and the resource remaining parameter on the switch, wherein the historical resource consumption parameter is used to indicate the transmission resources used by each control group for executing the historical data transmission request before the currently processed data transmission request, the resource remaining parameter is used to indicate the currently unused transmission resources on the switch, and the resource adjustment operation is used to indicate the operation mode and operation amount to be performed on the historical resource consumption parameter;

[0009] The corresponding resource adjustment operation is performed on the historical resource consumption parameters of each control group to obtain each control group configured with a target transmission resource, wherein each control group is used to use the corresponding target transmission resource to execute a currently pending data transmission request.

[0010] In an exemplary embodiment, the resource adjustment operation is created for each control group based on the current resource consumption parameters, the historical resource consumption parameters corresponding to each control group, and the resource remaining parameters on the switch, including: detecting the operation mode and the operation amount to be performed by each control group based on the current resource consumption parameters, the historical resource consumption parameters, and the resource remaining parameters on the switch corresponding to each control group; creating the corresponding resource adjustment operation for each control group based on the operation mode and the operation amount to be performed by each control group.

[0011] In an exemplary embodiment, the operation mode and the operation amount to be performed by each control group are detected according to the current resource consumption parameter, the historical resource consumption parameter and the resource remaining parameter on the switch corresponding to each control group, including: traversing each control group in descending order of priority of each control group, and performing the following steps according to the current resource consumption parameter, the historical resource consumption parameter and the resource remaining parameter on the switch corresponding to the traversed current control group to obtain the operation mode and the operation amount to be performed by the current control group: calculating the parameter difference between the current resource consumption parameter and the historical resource consumption parameter corresponding to the current control group, wherein the parameter difference is used to indicate the size relationship between the current resource consumption parameter and the historical resource consumption parameter; when the parameter difference is used to indicate that the current resource consumption parameter is less than the historical resource consumption parameter, determining that the operation mode of the current control group is to release the transmission resources of the operation amount included in the current control group, and releasing the transmission resources of the operation amount included in the current control group, and releasing the transmission resources of the operation amount included in the current control group. The parameter difference is determined as the operation amount; the sum of the operation amount and the resource remaining parameter on the switch is determined as the resource remaining parameter on the switch during the next traversal; when the parameter difference is used to indicate that the current resource consumption parameter is greater than the historical resource consumption parameter, the operation mode is determined to be to allocate the transmission resources of the operation amount to the current control group, and the parameter difference is determined as the reference operation amount; the reference operation amount is compared with the resource remaining parameter on the switch; when the reference operation amount is less than the resource remaining parameter, the reference operation amount is determined as the operation amount to be executed by the current control group; when the reference operation amount is greater than or equal to the resource remaining parameter, the reference operation amount is updated according to the priority of the current control group to obtain the operation amount to be executed by the current control group, wherein the priority is positively correlated with the operation amount; the difference between the operation amount and the resource remaining parameter on the switch is determined as the resource remaining parameter on the switch during the next traversal.

[0012] In an exemplary embodiment, updating the reference operation amount according to the priority of the current control group to obtain the operation amount to be executed by the current control group includes: extracting the current allocation weight corresponding to the current control group from the priorities, control groups and allocation weights that have a corresponding relationship, wherein the allocation weight is positively correlated with the priority; calculating the product of the current allocation weight and the resource remaining parameter on the switch as the operation amount to be executed by the current control group.

[0013] In an exemplary embodiment, the current resource consumption parameter corresponding to each control group is detected based on the request quantity parameter and the unit resource consumption parameter of each control group in the multiple control groups, including: detecting the number of the data transmission requests currently to be processed in each control group as the request quantity parameter of each control group, and detecting the unit resource consumption parameter of each of the data transmission requests currently to be processed in each control group; and calculating the product of the request quantity parameter and the unit resource consumption parameter in each control group as the current resource consumption parameter corresponding to each control group.

[0014] In an exemplary embodiment, the resource adjustment operation corresponding to the historical resource consumption parameters of each control group is performed to obtain each control group configured with the target transmission resource, including: generating a resource adjustment instruction for each control group according to the resource adjustment operation, wherein the resource adjustment instruction is used to control the corresponding control group to perform the resource adjustment operation; and sending the resource adjustment instruction to the corresponding control group to obtain the control group configured with the target transmission resource.

[0015] In an exemplary embodiment, the method further includes: receiving a target data transmission request initiated by a target client, wherein the target data transmission request is used to request data transmission to a server; searching for a target control group having a corresponding relationship with the target client from control groups and clients having corresponding relationships; and adding the target data transmission request to the target control group, wherein the target control group is used to evenly allocate the transmission resources allowed to be used by the target control group to each data transmission request to be processed.

[0016] According to another embodiment of the present application, a device for executing a data transmission request is provided, wherein the switch includes: a processor and multiple control groups, the switch is used to execute a data transmission request initiated by a client to a server, the data transmission request initiated by the client is added to a control group corresponding to the client among the multiple control groups, the device is applied to the processor, and the device includes:

[0017] a detection module, configured to detect a current resource consumption parameter corresponding to each control group according to a request quantity parameter and a unit resource consumption parameter of each control group in the plurality of control groups, wherein the request quantity parameter is used to indicate the number of data transmission requests currently to be processed in each control group, the unit resource consumption parameter is used to indicate the transmission resources required for each data transmission request currently to be processed in each control group, and the current resource consumption parameter is used to indicate the transmission resources required for each control group to execute the data transmission request currently to be processed;

[0018] a creation module, configured to create a resource adjustment operation for each control group according to the current resource consumption parameter, the historical resource consumption parameter corresponding to each control group, and the resource remaining parameter on the switch, wherein the historical resource consumption parameter is used to indicate the transmission resources used by each control group for executing the historical data transmission request before the currently processed data transmission request, the resource remaining parameter is used to indicate the currently unused transmission resources on the switch, and the resource adjustment operation is used to indicate the operation mode and operation amount to be performed on the historical resource consumption parameter;

[0019] An execution module is used to perform the corresponding resource adjustment operation on the historical resource consumption parameters of each control group to obtain each control group configured with a target transmission resource, wherein each control group is used to use the corresponding target transmission resource to execute a currently pending data transmission request.

[0020] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0021] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0022] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0023] Through the present application, according to the request quantity parameter for indicating the number of data transmission requests currently to be processed in each control group and the unit resource consumption parameter for indicating the transmission resources required to be used for each data transmission request currently to be processed in each control group, the current resource consumption parameter corresponding to each control group is detected, and then according to the current resource consumption parameter corresponding to each control group, the historical resource consumption parameter corresponding to each control group for indicating the transmission resources used by the historical data transmission requests before each control group executed the currently processed data transmission request, and the resource remaining parameter on the switch for indicating the currently unused transmission resources on the switch, a resource adjustment operation of the operation mode and operation amount to be performed on the historical resource consumption parameter is created for each control group, and the corresponding resource adjustment operation is performed on the historical resource consumption parameter of each control group to obtain each control group configured with the target transmission resource. Since the data transmission request initiated by the client is added to the control group corresponding to the client among the multiple control groups, and then the resource adjustment operation is performed on the control group according to the request quantity parameter and the unit resource consumption parameter of the control group, the problem of low execution efficiency of the data transmission request can be solved, and the effect of improving the execution efficiency of the data transmission request is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a hardware structure block diagram of a server device of a method for executing a data transmission request according to an embodiment of the present application;

[0025] Figure 2 is a flowchart of a method for executing a data transmission request according to an embodiment of the present application;

[0026] Figure 3 is a schematic diagram of a method for detecting an operation mode and an operation amount of a control group according to an embodiment of the present application;

[0027] Figure 4 is a schematic diagram of a method for modifying the bandwidth of a control group according to an embodiment of the present application;

[0028] Figure 5 is a schematic diagram of a control group transmission resource adjustment process according to an embodiment of the present application;

[0029] Figure 6 is a structural block diagram of a device for executing a data transmission request according to an embodiment of the present application;

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

[0031] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0033] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a method for executing a data transmission request in an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0034] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the execution method of the data transmission request in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0035] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NlC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0036] In this embodiment, a method for executing a data transmission request is provided. The switch includes: a processor and multiple control groups. The switch is used to execute a data transmission request initiated by a client to a server. The data transmission request initiated by the client is added to a control group corresponding to the client among the multiple control groups. The method is applied to the processor. Figure 2 is a flowchart of a method for executing a data transmission request according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0037] Step S202, detecting the current resource consumption parameter corresponding to each control group according to the request quantity parameter and the unit resource consumption parameter of each control group in the multiple control groups, wherein the request quantity parameter is used to indicate the number of data transmission requests currently to be processed in each control group, the unit resource consumption parameter is used to indicate the transmission resources required for each data transmission request currently to be processed in each control group, and the current resource consumption parameter is used to indicate the transmission resources required for each control group to execute the data transmission request currently to be processed;

[0038] Step S204, creating a resource adjustment operation for each control group according to the current resource consumption parameter, the historical resource consumption parameter corresponding to each control group, and the resource remaining parameter on the switch, wherein the historical resource consumption parameter is used to indicate the transmission resources used by each control group for executing the historical data transmission request before the data transmission request to be currently processed, the resource remaining parameter is used to indicate the transmission resources currently unused on the switch, and the resource adjustment operation is used to indicate the operation mode and operation amount to be performed on the historical resource consumption parameter;

[0039] Step S206, performing the corresponding resource adjustment operation on the historical resource consumption parameters of each control group to obtain each control group configured with a target transmission resource, wherein each control group is used to use the corresponding target transmission resource to execute a currently pending data transmission request.

[0040] Through the above steps, according to the request quantity parameter for indicating the number of data transmission requests currently to be processed in each control group and the unit resource consumption parameter for indicating the transmission resources required to be used by each data transmission request currently to be processed in each control group, the current resource consumption parameter corresponding to each control group is detected, and then according to the current resource consumption parameter corresponding to each control group, the historical resource consumption parameter corresponding to each control group for indicating the transmission resources used by the historical data transmission requests before the data transmission request currently to be processed by each control group, and the resource remaining parameter on the switch for indicating the transmission resources currently unused on the switch, a resource adjustment operation of the operation mode and operation amount to be performed on the historical resource consumption parameter is created for each control group, and the corresponding resource adjustment operation is performed on the historical resource consumption parameter of each control group to obtain each control group configured with the target transmission resource. Since the data transmission request initiated by the client is added to the control group corresponding to the client among the multiple control groups, and then the resource adjustment operation is performed on the control group according to the request quantity parameter and the unit resource consumption parameter of the control group, the problem of low execution efficiency of the data transmission request can be solved, and the effect of improving the execution efficiency of the data transmission request is achieved.

[0041] Optionally, in this embodiment, the switch is used to receive and execute data transmission requests, which may be initiated by the same or different clients. The switch may also be other devices having the function of executing data transmission requests, such as a load balancer, a router, etc.

[0042] Optionally, in this embodiment, a control group can be constructed based on the clients connected to the switch, but is not limited to, to obtain clients and control groups with corresponding relationships, such as: detecting the authority level of each client, creating a control group corresponding to each authority level, and storing the corresponding relationship between each control group and the client in the switch. Alternatively, a control group corresponding to each client is created, etc. It should be noted that the authority level of the above-mentioned client can be, but is not limited to, pre-configured, or determined based on the maximum bandwidth allowed to be used by the client, the data transmission request allowed to be sent, and other permissions.

[0043] Optionally, in this embodiment, when the data transmission request initiated by the client is added to the control group corresponding to the client in multiple control groups, the data transmission requests included in the control group will be restricted by the transmission resources of the control group, for example: the transmission resources of the control group are evenly allocated to each data transmission request. Alternatively, the transmission resources of the control group are allocated to each data transmission request in other customized ways.

[0044] By dividing the control groups as described above, data transmission requests issued by different clients are added to corresponding control groups, and transmission resource restrictions on batch data transmission requests are further implemented. In the same control group, data transmission requests issued by clients with the same priority are allowed to use the same transmission resources, thereby ensuring fair allocation of transmission resources for clients with the same priority.

[0045] Optionally, in this embodiment, when the data transmission request has been completed, the data transmission request will exit the current control group and release the transmission resources originally occupied by it in the control group. For example, taking the control group including data transmission request A, data transmission request B and data transmission request C, and the transmission resources of the control group are evenly distributed to each data transmission request, when the data transmission request A has been completed, the data transmission request A will exit the current control group and release the transmission resources originally occupied by it in the control group, and the data transmission request B and the data transmission request C will respectively and evenly occupy the transmission resources released by the data transmission request A.

[0046] In the technical solution provided in the above step S202, the number of data transmission requests currently to be processed in each control group can be but is not limited to being used as the above request number parameter, or other parameters used to indicate the number of data transmission requests currently to be processed in each control group can be used as the above request number parameter.

[0047] Optionally, in this embodiment, the switch may, but is not limited to, allocate transmission resources to each control group, and the data transmission request uses the transmission resources to complete the data transmission operation. The above transmission resources may, but are not limited to, include: bandwidth, throughput, delay, etc.

[0048] Optionally, in this embodiment, the transmission resources required for each data transmission request currently to be processed in each control group may be used as the above-mentioned unit resource consumption parameter, such as: the bandwidth required for the data transmission request, the throughput required for the data transmission request, etc. Alternatively, other parameters used to indicate the transmission resources required for each data transmission request currently to be processed in each control group may be used as the above-mentioned unit resource consumption parameter. It should be noted that the transmission resources required for each data transmission request currently to be processed in the control group may be the same or different.

[0049] Optionally, in this embodiment, detecting the transmission resources required for each control group to execute the currently processed data transmission request as the current resource consumption parameter may include, but is not limited to: calculating the sum of the transmission resources required for each data transmission request in the control group as the current resource consumption parameter. Alternatively, calculating the product of the transmission resources required for each data transmission request in the control group as the current resource consumption parameter, etc.

[0050] In an exemplary embodiment, the current resource consumption parameter corresponding to each control group can be detected based on the request quantity parameter and the unit resource consumption parameter of each control group in the multiple control groups in the following manner, but is not limited to: detecting the number of the data transmission requests currently to be processed in each control group as the request quantity parameter of each control group, and detecting the unit resource consumption parameter of each of the data transmission requests currently to be processed in each control group; and calculating the product of the request quantity parameter and the unit resource consumption parameter in each control group as the current resource consumption parameter corresponding to each control group.

[0051] Optionally, in this embodiment, when the transmission resources required for the data transmission requests currently to be processed in the control group are the same, the number of the data transmission requests currently to be processed in each control group is detected as the request number parameter N corresponding to each control group, and the unit resource consumption parameter D of the data transmission requests currently to be processed in each control group is detected, and the current resource consumption parameter C of the control group = N × D, that is, the product of the request number parameter N of the control group and the unit resource consumption parameter D is calculated as the current resource consumption parameter C corresponding to the control group.

[0052] In the technical solution provided in the above step S204, the transmission resources used by each control group for historical data transmission requests before executing the current data transmission request to be processed can be used as the above historical resource consumption parameter, for example, the bandwidth allocated to each control group is detected as the historical resource consumption parameter of each control group. Alternatively, other parameters used to indicate the transmission resources used by each control group for historical data transmission requests before executing the current data transmission request to be processed can be used as the above historical resource consumption parameter.

[0053] Optionally, in this embodiment, the currently unused transmission resources on the switch can be detected but not limited to as the remaining resource parameter on the switch, for example, the currently unused bandwidth on the switch is detected as the remaining resource parameter on the switch. Alternatively, the transmission resources currently unused on the switch can be obtained in other ways as the remaining resource parameter on the switch.

[0054] Optionally, in this embodiment, it is possible but not limited to determine the operation mode and operation amount to be performed on the historical resource consumption parameters of each control group based on the current resource consumption parameters, historical resource consumption parameters and remaining resource parameters corresponding to each control group, and then create a resource adjustment operation based on the operation mode and operation amount.

[0055] In an exemplary embodiment, a resource adjustment operation can be created for each control group based on the current resource consumption parameters, the historical resource consumption parameters corresponding to each control group, and the remaining resource parameters on the switch in the following manner, but is not limited to: based on the current resource consumption parameters, the historical resource consumption parameters, and the remaining resource parameters on the switch corresponding to each control group, the operation mode and the operation amount to be performed by each control group are detected; and based on the operation mode and the operation amount to be performed by each control group, a corresponding resource adjustment operation is created for each control group.

[0056] Optionally, in this embodiment, the operation mode to be performed on the historical resource consumption parameters of the control group is determined based on the current resource consumption parameters and the historical resource consumption parameters corresponding to the control group, but is not limited to: when the current resource consumption parameters of the control group are greater than the historical resource consumption parameters, the operation mode to be performed on the historical resource consumption parameters of each control group is determined to be to allocate transmission resources to the control group. Alternatively, when the current resource consumption parameters of the control group are less than the historical resource consumption parameters, the operation mode to be performed on the historical resource consumption parameters of each control group is determined to be to release transmission resources from the historical resource consumption parameters of the control group.

[0057] Optionally, in this embodiment, when the operation mode to be performed on the historical resource consumption parameters of the control group is determined according to the current resource consumption parameters and the historical resource consumption parameters corresponding to the control group, the operation mode to be performed on the historical resource consumption parameters of each control group is further determined according to the current resource consumption parameters and the historical resource consumption parameters corresponding to the control group and the resource remaining parameters on the switch, which may include but is not limited to:

[0058] In the case where it is determined that the operation mode to be performed on the historical resource consumption parameters of each control group is to allocate transmission resources to the control group, the resource amount of the transmission resources to be allocated to the control group is determined according to the current resource consumption parameters and the historical resource consumption parameters corresponding to the control group, and the resource amount of the transmission resources actually allocated to the control group is determined as the operation amount according to the resource remaining parameters on the switch. Alternatively, in the case where it is determined that the operation mode to be performed on the historical resource consumption parameters of each control group is to release transmission resources from the historical resource consumption parameters of the control group, the resource amount of the transmission resources to be released from the control group is determined as the operation amount according to the current resource consumption parameters and the historical resource consumption parameters corresponding to the control group, etc.

[0059] It should be noted that the difference between the current resource consumption parameter and the historical resource consumption parameter corresponding to the control group can be, but is not limited to, used as the resource amount of the transmission resources to be allocated to the control group; or, in order to alleviate the pressure on the use of transmission resources in the control group, the difference between the current resource consumption parameter and the historical resource consumption parameter can be adaptively expanded, and the expanded resource amount can be used as the resource amount of the transmission resources to be allocated to the control group; conversely, in order to alleviate the pressure on the use of the remaining resource parameters on the switch, the difference between the current resource consumption parameter and the historical resource consumption parameter can be adaptively reduced, and the reduced resource amount can be used as the resource amount of the transmission resources to be allocated to the control group.

[0060] Optionally, in this embodiment, creating a resource adjustment operation for each control group according to the operation mode and operation amount to be performed by each control group may include, but is not limited to: creating a corresponding resource adjustment instruction as a resource adjustment operation for each control group according to the operation mode and operation amount to be performed by each control group. Alternatively, creating a resource adjustment operation for modifying the historical resource consumption parameters of each control group according to the operation mode and operation amount of each control group.

[0061] In an exemplary embodiment, the operation mode and the operation amount to be performed by each control group can be detected according to the current resource consumption parameter, the historical resource consumption parameter and the remaining resource parameter on the switch corresponding to each control group, but is not limited to the following method: traverse each control group in order of priority from high to low, and perform the following steps according to the current resource consumption parameter, the historical resource consumption parameter and the remaining resource parameter on the switch corresponding to the traversed current control group to obtain the operation mode and the operation amount to be performed by the current control group: calculate the parameter difference between the current resource consumption parameter and the historical resource consumption parameter corresponding to the current control group, wherein the parameter difference is used to indicate the size relationship between the current resource consumption parameter and the historical resource consumption parameter; when the parameter difference is used to indicate that the current resource consumption parameter is less than the historical resource consumption parameter, determine that the operation mode of the current control group is to release the transmission resources of the operation amount included in the current control group. , and determine the parameter difference as the operation amount; determine the sum of the operation amount and the resource remaining parameter on the switch as the resource remaining parameter on the switch during the next traversal; when the parameter difference is used to indicate that the current resource consumption parameter is greater than the historical resource consumption parameter, determine the operation mode as allocating the transmission resource of the operation amount to the current control group, and determine the parameter difference as the reference operation amount; compare the reference operation amount with the resource remaining parameter on the switch; when the reference operation amount is less than the resource remaining parameter, determine the reference operation amount as the operation amount to be executed by the current control group; when the reference operation amount is greater than or equal to the resource remaining parameter, update the reference operation amount according to the priority of the current control group to obtain the operation amount to be executed by the current control group, wherein the priority is positively correlated with the operation amount; determine the difference between the operation amount and the resource remaining parameter on the switch as the resource remaining parameter on the switch during the next traversal.

[0062] Optionally, in this embodiment, the priority of the control group can be determined according to, but not limited to, the priority of the client corresponding to the control group, for example: data transmission requests initiated by clients of the same priority are allowed to be added to the same control group corresponding to the client.

[0063] Optionally, in this embodiment, the transmission resource is bandwidth, the current resource consumption parameter corresponding to the control group is the current bandwidth required for the control group to execute the currently pending data transmission request, the historical resource consumption parameter is the historical bandwidth allocated to the control group, and the resource remaining parameter on the switch is the remaining bandwidth currently allowed to be allocated by the switch as an example. Figure 3is a schematic diagram of a method for detecting the operation mode and operation amount of a control group according to an embodiment of the present application, such as Figure 3 As shown, the control groups are traversed in descending order of priority, and the bandwidth difference between the current bandwidth and the historical bandwidth corresponding to the currently traversed control group is calculated;

[0064] When the bandwidth difference indicates that the current bandwidth is less than the historical bandwidth, the bandwidth of the operation amount included in the current control group is released, and the bandwidth difference is determined as the operation amount, and the sum of the operation amount and the remaining bandwidth on the switch is determined as the remaining bandwidth on the switch during the next traversal;

[0065] In the case where the bandwidth difference is used to indicate that the current bandwidth is greater than the historical bandwidth, the bandwidth of the operation amount is allocated to the current control group, and the parameter difference is determined as the reference operation amount, and the reference operation amount is continuously compared with the remaining bandwidth on the switch. In the case where the reference operation amount is less than the remaining bandwidth, the reference operation amount is determined as the operation amount to be executed by the current control group; or, in the case where the reference operation amount is greater than or equal to the remaining bandwidth, the reference operation amount is updated according to the priority of the current control group to obtain the operation amount to be executed by the current control group; the difference between the operation amount and the remaining bandwidth on the switch is determined as the remaining bandwidth on the switch during the next traversal;

[0066] When the bandwidth difference is used to indicate that the current bandwidth is equal to the historical bandwidth, the bandwidth allocation of the current control group is maintained, and the traversal of the next control group continues.

[0067] Through the above process, data transmission requests issued by different clients can be added to the corresponding control group, and the bandwidth limit of batch data transmission requests can be realized through the control group. In the same control group, data transmission requests issued by clients with the same priority are allowed to use the same bandwidth, and the transmission resources of clients with the same priority are fairly allocated. Furthermore, the bandwidth configuration value of each control group can be adjusted according to the period, so as to achieve the optimal allocation of the overall bandwidth utilization.

[0068] In an exemplary embodiment, the reference operation amount can be updated according to the priority of the current control group to obtain the operation amount to be executed by the current control group in the following manner but is not limited to: extracting the current allocation weight corresponding to the current control group from the priorities, control groups and allocation weights that have a corresponding relationship, wherein the allocation weight is positively correlated with the priority; calculating the product of the current allocation weight and the resource remaining parameter on the switch as the operation amount to be executed by the current control group.

[0069] Optionally, in this embodiment, the corresponding relationship between the priority, control group and allocation weight can be pre-stored but is not limited to, for example: first priority (highest), control group 1, allocation weight 60%; second priority, control group 2, allocation weight 30%; third priority, control group 3, allocation weight 10%. Alternatively, first priority (highest), control group 1, allocation weight 35%; second priority, control group 2, allocation weight 35%; third priority, control group 3, allocation weight 30%, etc. Alternatively, the same allocation weight can be assigned to each control group.

[0070] Optionally, in this embodiment, the product of the allocation weight of the current control group and the remaining resource parameter on the switch is calculated as the amount of operations to be executed by the current control group. For example, taking the remaining bandwidth of 100M on the switch and the allocation weight of the current control group being 80%, the amount of operations to be executed by the current control group is calculated to be 100M×80%=80M.

[0071] In the technical solution provided in the above step S206, the transmission resources of the operation amount can be adjusted according to the historical resource consumption parameters of the control group according to the operation mode, so as to obtain each control group configured with the target transmission resources.

[0072] In an exemplary embodiment, the resource adjustment operation corresponding to the historical resource consumption parameters of each control group can be performed but is not limited to the following method to obtain each control group configured with the target transmission resource: a resource adjustment instruction is generated for each control group according to the resource adjustment operation, wherein the resource adjustment instruction is used to control the corresponding control group to perform the resource adjustment operation; the resource adjustment instruction is sent to the corresponding control group to obtain the control group configured with the target transmission resource.

[0073] Optionally, in this embodiment, the resource adjustment instruction may be, but is not limited to, an instruction for adjusting a historical resource consumption parameter of a control group to an operating amount.

[0074] In an exemplary embodiment, a target data transmission request can be added to a target control group in the following manner, but is not limited to: receiving a target data transmission request initiated by a target client, wherein the target data transmission request is used to request data transmission to a server; searching for a target control group having a corresponding relationship with the target client from control groups and clients having corresponding relationships; adding the target data transmission request to the target control group, wherein the target control group is used to evenly allocate the transmission resources allowed to be used by the target control group to each data transmission request to be processed.

[0075] Optionally, in this embodiment, different control groups are created based on the permission list of the client connected to the current switch. When the client initiates a data transmission request through a process or thread, the process or thread will be added to the control group and will be subject to the bandwidth limit of the control group. After the process or thread is executed, it will automatically exit the control group. Figure 4 is a schematic diagram of a method for modifying the bandwidth of a control group according to an embodiment of the present application, such as Figure 4 As shown, a control group can be created by, but is not limited to, the following methods: setting a queue scheduler for a network interface, creating a class under the queue and setting the bandwidth, setting filtering rules for the class with bandwidth set and binding it to the cg roup (control group). The binding method includes: setting the class id to the net_cls.classid of the cg roup. The specific procedure is as follows:

[0076] sudo tc qdisc add dev ethO root handle 1:htb default 10 / / Used to add a Hierarchical Token Bucket (HTB) queue discipline as the root rule to the eth0 network interface, where dev eth0 is used to specify the network interface device, root is used to indicate that this is the top-level queue discipline, handle 1: used to assign a handle to this queue discipline for unique identification, htb specifies the use of the hierarchical token bucket algorithm, and default 10 sets the identifier of the default class;

[0077] sudo tc class add dev eth0 parent 1:classid 1:1htb rate 10mbit / / Used to add an HTB class to the ethO interface, where parent 1 is used to indicate that this new class is a subclass of the parent class (that is, the root rule created above), classid 1:1 is used to assign a class ID to this new class, and htb rate 10mbit is used to set the rate limit of this class to 10Mbps;

[0078] sudo tc filter add dev eth0 protocol ip parent 1:handle 10cgroup / / Used to add a filter to the eth0 interface, where protocol ip specifies that the filter applies to the lP protocol, parent 1: indicates that the parent rule of this filter is the root rule, handle 10 assigns a handle to the filter, and the cgroup keyword indicates that this filter is associated with cgroups and is used to classify traffic according to cgroup;

[0079] sudo echo 0×100001> / sys / fs / cgroup / net_cls / group A / net_cls.classid / / Used to set the network classification ID of the cgroup, where echo 0×100001 generates a hexadecimal number, which will be used as the network classification ID. / sys / fs / cgroup / net_cls / group A / net_cls.classid is the file path of the cgroup network classification ID, where A may represent a specific cgroup name or ID.

[0080] In the solution proposed in this application, cgroup groups are used to correspond to groups of different priorities, ensuring the fairness of resource allocation within the group. By adjusting the bandwidth allocation value of cgroup, priority allocation of bandwidth for high-priority requests is guaranteed to prevent static bandwidth configuration from occupying resources for a long time and releasing them, resulting in poor overall service quality and subsequent high-priority service requests not being met. By restricting the cgroup within the same group, when a request is executed, the resources of this request will be released immediately, with high timeliness; and the resource configuration value ensures that high-priority requests can use more resources by limiting the size of low-priority configurations.

[0081] Optionally, in this embodiment, in order to better understand the process of dynamic adjustment of the above-mentioned control group transmission resources in the execution method of the data transmission request proposed in this application, the above-mentioned process is described in combination with the optional embodiment below, but it is not used to limit the technical solution of the embodiment of this application.

[0082] In an exemplary embodiment, an example of a process for adjusting transmission resources of a control group is provided. Figure 5 is a schematic diagram of a control group transmission resource adjustment process according to an embodiment of the present application, such as Figure 5 As shown, the switch includes: a processor and multiple control groups. The processor includes a Cgroup group management module, a request process management module, a group bandwidth calculation module, and a periodic task execution module, and can work in the following ways but is not limited to:

[0083] The Cgroup group management module is used to create a Cgroup group for a client of each priority level according to the priority level of the client, and store the corresponding relationship between the Cgroup group and the client.

[0084] The request process management module is used to manage each process. For example, after a data transmission request arrives, the request process management module adds the process of the data transmission request to the corresponding Cgroup group according to the corresponding relationship between the data transmission request and the client.

[0085] The group bandwidth calculation module is used to calculate the bandwidth configuration value of the Cgroup group, that is, to calculate the bandwidth configuration value of each Cgroup group according to the number of pending data transmission requests of each Cgroup group, the bandwidth value required for each data transmission request, the currently unused bandwidth value on the switch, and the priority information of the client corresponding to the Cgroup group.

[0086] Specific methods include:

[0087] t represents the total number of Cgroup groups, Nm represents the number of requests of the mth Cgroup group, Dm represents the unit resource consumption parameter of the data transmission request included in the mth Cgroup group, Hm represents the historical resource consumption parameter of the mth Cgroup group, and p represents the maximum proportion of the remaining bandwidth that can be used by the data transmission request (allocation weight). It represents the sum of the bandwidth requirements of the mth Cgroup group and the Cgroup groups with the following priorities (i.e., the mth Cgroup group to the tth Cgroup group). Left represents the remaining parameter of the resources currently unused on the switch. The operation volume of the mth Cgroup group is Cm.

[0088] According to the priority of the Cgroup group, the operation mode and operation amount of each Cgroup group are calculated in turn. The process of calculating the operation mode and operation amount of the mth Cgroup group includes:

[0089] The current resource consumption parameter Cm of the mth Cgroup group is calculated by the formula Cm=Dm*Nm;

[0090] Compare the current resource consumption parameter Cm with the historical resource consumption parameter Hm of the mth Cgroup group;

[0091] When the current resource consumption parameter Cm is less than the historical resource consumption parameter Hm of the mth Cgroup group, the operation amount of bandwidth released from the mth Cgroup group = the difference between the current resource consumption parameter Cm and the historical resource consumption parameter Hm;

[0092] When the current resource consumption parameter Cm is greater than the historical resource consumption parameter Hm of the mth Cgroup group, the difference between the current resource consumption parameter Cm and the historical resource consumption parameter Hm is compared with the currently unused resource remaining parameter Left on the switch; when Left is greater than the difference, it is allocated according to demand, that is, the bandwidth of the difference is allocated to the mth Cgroup group; when Left is less than or equal to the difference, the remaining amount Left is allocated according to the percentage p, that is, the operation amount of bandwidth allocated to the mth Cgroup group = p×Left.

[0093] When the amount of bandwidth allocated or released to the mth Cgroup group is determined, the value of the remaining amount Left needs to be updated. When bandwidth is allocated to the mth Cgroup group, the updated Left = original Left - allocated bandwidth Cm; or, when bandwidth is released from the mth Cgroup group, the updated Left = original Left + bandwidth Cm released by the mth Cgroup group.

[0094] The periodic task execution module is used to update the bandwidth configuration value of the Cgroup group according to the bandwidth configuration value of the Cgroup group calculated by the group bandwidth calculation module.

[0095] The execution method of data transmission request proposed in the present application limits the bandwidth of each priority group by limiting the bandwidth through Cgroup, and ensures that more bandwidth can be allocated to high priority by reducing the allocation value of low priority, so as to achieve more bandwidth allocation for high priority. Since different processes in the Cgroup group share the bandwidth, the upload speed of services with the same priority is guaranteed to be consistent under ideal conditions, and the bandwidth configuration value of the Cgroup group is updated periodically to dynamically change the resource usage of different groups, thereby ensuring that the overall bandwidth utilization is maximized.

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

[0097] In this embodiment, a device for executing a data transmission request is also provided. The switch includes: a processor and multiple control groups. The switch is used to execute a data transmission request initiated by a client to a server. The data transmission request initiated by the client is added to the control group corresponding to the client among the multiple control groups. The device is applied to the processor. The device is used to implement the above-mentioned embodiments and preferred implementation methods. Those that have been explained will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, it is also possible and conceivable to implement it in hardware, or a combination of software and hardware.

[0098] Figure 6 is a structural block diagram of a device for executing a data transmission request according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:

[0099] A detection module 62, configured to detect a current resource consumption parameter corresponding to each control group according to a request quantity parameter and a unit resource consumption parameter of each control group in the multiple control groups, wherein the request quantity parameter is used to indicate the number of data transmission requests currently to be processed in each control group, the unit resource consumption parameter is used to indicate the transmission resources required for each data transmission request currently to be processed in each control group, and the current resource consumption parameter is used to indicate the transmission resources required for each control group to execute the data transmission request currently to be processed;

[0100] A creation module 64, configured to create a resource adjustment operation for each control group according to the current resource consumption parameter, the historical resource consumption parameter corresponding to each control group, and the resource remaining parameter on the switch, wherein the historical resource consumption parameter is used to indicate the transmission resources used by each control group for executing the historical data transmission request before the currently processed data transmission request, the resource remaining parameter is used to indicate the currently unused transmission resources on the switch, and the resource adjustment operation is used to indicate the operation mode and operation amount to be performed on the historical resource consumption parameter;

[0101] The execution module 66 is used to perform the corresponding resource adjustment operation on the historical resource consumption parameters of each control group to obtain each control group configured with a target transmission resource, wherein each control group is used to use the corresponding target transmission resource to execute the current data transmission request to be processed.

[0102] Through the above-mentioned device, according to the request quantity parameter for indicating the number of data transmission requests currently to be processed in each control group and the unit resource consumption parameter for indicating the transmission resources required to be used for each data transmission request currently to be processed in each control group, the current resource consumption parameter corresponding to each control group is detected, and then according to the current resource consumption parameter corresponding to each control group, the historical resource consumption parameter corresponding to each control group for indicating the transmission resources used by the historical data transmission requests before each control group executed the data transmission request currently to be processed, and the resource remaining parameter on the switch for indicating the transmission resources currently unused on the switch, a resource adjustment operation of the operation mode and operation amount to be executed on the historical resource consumption parameter is created for each control group, and the corresponding resource adjustment operation is performed on the historical resource consumption parameter of each control group to obtain each control group configured with the target transmission resource. Since the data transmission request initiated by the client is added to the control group corresponding to the client among the multiple control groups, and then the resource adjustment operation is performed on the control group according to the request quantity parameter and the unit resource consumption parameter of the control group, the problem of low execution efficiency of the data transmission request can be solved, and the effect of improving the execution efficiency of the data transmission request is achieved.

[0103] In an exemplary embodiment, the creation module includes:

[0104] A first detection unit, configured to detect the operation mode and the operation amount to be performed by each control group according to the current resource consumption parameter, the historical resource consumption parameter and the resource remaining parameter on the switch corresponding to each control group;

[0105] A creating unit is used to create the corresponding resource adjustment operation for each control group according to the operation mode and the operation amount to be performed by each control group.

[0106] In an exemplary embodiment, the first detection unit is further used to: traverse each control group in order from high to low priority of each control group, and perform the following steps according to the current resource consumption parameter, the historical resource consumption parameter and the resource remaining parameter on the switch corresponding to the traversed current control group to obtain the operation mode and the operation amount to be executed by the current control group: calculate the parameter difference between the current resource consumption parameter and the historical resource consumption parameter corresponding to the current control group, wherein the parameter difference is used to indicate the size relationship between the current resource consumption parameter and the historical resource consumption parameter; when the parameter difference is used to indicate that the current resource consumption parameter is less than the historical resource consumption parameter, determine that the operation mode of the current control group is to release the transmission resources of the operation amount included in the current control group, and determine the parameter difference as the operation amount; compare the operation amount with the resource remaining parameter on the switch The sum of the remaining parameters is determined as the resource remaining parameter on the switch at the next traversal; when the parameter difference is used to indicate that the current resource consumption parameter is greater than the historical resource consumption parameter, the operation mode is determined to be to allocate the transmission resources of the operation amount to the current control group, and the parameter difference is determined as the reference operation amount; the reference operation amount is compared with the resource remaining parameter on the switch; when the reference operation amount is less than the resource remaining parameter, the reference operation amount is determined as the operation amount to be executed by the current control group; when the reference operation amount is greater than or equal to the resource remaining parameter, the reference operation amount is updated according to the priority of the current control group to obtain the operation amount to be executed by the current control group, wherein the priority is positively correlated with the operation amount; the difference between the operation amount and the resource remaining parameter on the switch is determined as the resource remaining parameter on the switch at the next traversal.

[0107] In an exemplary embodiment, the first detection unit is further used to: extract the current allocation weight corresponding to the current control group from the priorities, control groups and allocation weights that have a corresponding relationship, wherein the allocation weight is positively correlated with the priority; calculate the product of the current allocation weight and the resource remaining parameter on the switch as the operation amount to be performed by the current control group.

[0108] In an exemplary embodiment, the detection module comprises:

[0109] A second detection unit, used for detecting the number of the data transmission requests currently to be processed in each control group as the request number parameter of each control group, and detecting the unit resource consumption parameter of each of the data transmission requests currently to be processed in each control group;

[0110] A calculation unit is used to calculate the product of the request quantity parameter and the unit resource consumption parameter in each control group as the current resource consumption parameter corresponding to each control group.

[0111] In an exemplary embodiment, the execution module includes:

[0112] A generating unit, configured to generate a resource adjustment instruction for each control group according to the resource adjustment operation, wherein the resource adjustment instruction is used to control the corresponding control group to perform the resource adjustment operation;

[0113] The sending unit is used to send the resource adjustment instruction to the corresponding control group to obtain the control group configured with the target transmission resource.

[0114] In an exemplary embodiment, the apparatus further comprises:

[0115] A receiving module, used to receive a target data transmission request initiated by a target client, wherein the target data transmission request is used to request data transmission to a server;

[0116] A search module, used for searching a target control group having a corresponding relationship with the target client from the control groups and clients having a corresponding relationship;

[0117] An adding module is used to add the target data transmission request to the target control group, wherein the target control group is used to evenly allocate the transmission resources allowed to be used by the target control group to each data transmission request to be processed.

[0118] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0119] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0120] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0121] An embodiment of the present application further provides an electronic device, Figure 7 is a structural block diagram of an electronic device according to an embodiment of the present application, such as Figure 7 As shown, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the method embodiments described above.

[0122] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0123] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0124] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0125] The embodiments of the present application also provide a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.

[0126] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0127] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0128] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for executing a data transmission request, characterized in that: The switch includes: a processor and a plurality of control groups, the switch is used to execute a data transmission request initiated by a client to a server, the data transmission request initiated by the client is added to a control group corresponding to the client among the plurality of control groups, the method is applied to the processor, and the method includes: According to the request quantity parameter and the unit resource consumption parameter of each control group in the multiple control groups, the current resource consumption parameter corresponding to each control group is detected, wherein the request quantity parameter is used to indicate the number of data transmission requests currently to be processed in each control group, the unit resource consumption parameter is used to indicate the transmission resources required for each data transmission request currently to be processed in each control group, and the current resource consumption parameter is used to indicate the transmission resources required for each control group to execute the data transmission request currently to be processed; Creating a resource adjustment operation for each control group according to the current resource consumption parameter, the historical resource consumption parameter corresponding to each control group, and the resource remaining parameter on the switch, wherein the historical resource consumption parameter is used to indicate the transmission resources used by each control group for executing the historical data transmission request before the currently processed data transmission request, the resource remaining parameter is used to indicate the currently unused transmission resources on the switch, and the resource adjustment operation is used to indicate the operation mode and operation amount to be performed on the historical resource consumption parameter; The corresponding resource adjustment operation is performed on the historical resource consumption parameters of each control group to obtain each control group configured with a target transmission resource, wherein each control group is used to use the corresponding target transmission resource to execute a currently pending data transmission request.

2. The method according to claim 1, characterized in that The creating a resource adjustment operation for each control group according to the current resource consumption parameter, the historical resource consumption parameter corresponding to each control group, and the resource remaining parameter on the switch includes: Detecting the operation mode and the operation amount to be performed by each control group according to the current resource consumption parameter, the historical resource consumption parameter and the resource remaining parameter on the switch corresponding to each control group; The corresponding resource adjustment operation is created for each control group according to the operation mode and the operation amount to be performed by each control group.

3. The method according to claim 2, characterized in that The detecting the operation mode and the operation amount to be performed by each control group according to the current resource consumption parameter, the historical resource consumption parameter and the resource remaining parameter on the switch corresponding to each control group includes: Each control group is traversed in descending order of priority of each control group, and the following steps are performed according to the current resource consumption parameter, the historical resource consumption parameter, and the resource remaining parameter on the switch corresponding to the traversed current control group to obtain the operation mode and the operation amount to be executed by the current control group: Calculating a parameter difference between the current resource consumption parameter and the historical resource consumption parameter corresponding to the current control group, wherein the parameter difference is used to indicate a magnitude relationship between the current resource consumption parameter and the historical resource consumption parameter; In the case where the parameter difference is used to indicate that the current resource consumption parameter is less than the historical resource consumption parameter, determining that the operation mode of the current control group is to release the transmission resources of the operation amount included in the current control group, and determining the parameter difference as the operation amount; determining the sum of the operation amount and the resource remaining parameter on the switch as the resource remaining parameter on the switch during the next traversal; In the case where the parameter difference is used to indicate that the current resource consumption parameter is greater than the historical resource consumption parameter, the operation mode is determined to be to allocate the transmission resources of the operation amount to the current control group, and the parameter difference is determined as the reference operation amount; the reference operation amount is compared with the resource remaining parameter on the switch; in the case where the reference operation amount is less than the resource remaining parameter, the reference operation amount is determined as the operation amount to be executed by the current control group; in the case where the reference operation amount is greater than or equal to the resource remaining parameter, the reference operation amount is updated according to the priority of the current control group to obtain the operation amount to be executed by the current control group, wherein the priority is positively correlated with the operation amount; the difference between the operation amount and the resource remaining parameter on the switch is determined as the resource remaining parameter on the switch during the next traversal.

4. The method according to claim 3, characterized in that: The updating of the reference operation amount according to the priority of the current control group to obtain the operation amount to be executed by the current control group includes: Extracting a current allocation weight corresponding to the current control group from the priorities, control groups, and allocation weights having a corresponding relationship, wherein the allocation weight is positively correlated with the priority; The product of the current allocation weight and the resource remaining parameter on the switch is calculated as the operation amount to be performed by the current control group.

5. The method according to claim 1, characterized in that The detecting, according to the request quantity parameter and the unit resource consumption parameter of each control group in the plurality of control groups, the current resource consumption parameter corresponding to each control group includes: Detecting the number of the data transmission requests currently to be processed in each control group as the request number parameter of each control group, and detecting the unit resource consumption parameter of each of the data transmission requests currently to be processed in each control group; The product of the request quantity parameter and the unit resource consumption parameter in each control group is calculated as the current resource consumption parameter corresponding to each control group.

6. The method according to claim 1, characterized in that The performing the corresponding resource adjustment operation on the historical resource consumption parameter of each control group to obtain each control group configured with target transmission resources includes: Generating a resource adjustment instruction for each control group according to the resource adjustment operation, wherein the resource adjustment instruction is used to control the corresponding control group to perform the resource adjustment operation; The resource adjustment instruction is sent to the corresponding control group to obtain the control group configured with the target transmission resource.

7. The method according to claim 1, characterized in that The method further comprises: Receive a target data transmission request initiated by a target client, wherein the target data transmission request is used to request data transmission to a server; Searching for a target control group having a corresponding relationship with the target client from the control groups and clients having a corresponding relationship; The target data transmission request is added to the target control group, wherein the target control group is used to evenly allocate the transmission resources allowed to be used by the target control group to each data transmission request to be processed.

8. A device for executing a data transmission request, characterized in that: The switch includes: a processor and multiple control groups, the switch is used to execute a data transmission request initiated by a client to a server, the data transmission request initiated by the client is added to a control group corresponding to the client among the multiple control groups, the device is applied to the processor, and the device includes: a detection module, configured to detect a current resource consumption parameter corresponding to each control group according to a request quantity parameter and a unit resource consumption parameter of each control group in the plurality of control groups, wherein the request quantity parameter is used to indicate the number of data transmission requests currently to be processed in each control group, the unit resource consumption parameter is used to indicate the transmission resources required for each data transmission request currently to be processed in each control group, and the current resource consumption parameter is used to indicate the transmission resources required for each control group to execute the data transmission request currently to be processed; a creation module, configured to create a resource adjustment operation for each control group according to the current resource consumption parameter, the historical resource consumption parameter corresponding to each control group, and the resource remaining parameter on the switch, wherein the historical resource consumption parameter is used to indicate the transmission resources used by each control group for executing the historical data transmission request before the currently processed data transmission request, the resource remaining parameter is used to indicate the currently unused transmission resources on the switch, and the resource adjustment operation is used to indicate the operation mode and operation amount to be performed on the historical resource consumption parameter; An execution module is used to perform the corresponding resource adjustment operation on the historical resource consumption parameters of each control group to obtain each control group configured with a target transmission resource, wherein each control group is used to use the corresponding target transmission resource to execute a currently pending data transmission request.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.