Network congestion control model training method, control method and training device
By using network reinforcement learning to train actor and critic networks, the network congestion control model is optimized, solving the resource imbalance problem caused by single-scenario optimization and achieving network congestion control adaptability and resource balance in multiple scenarios.
Patent Information
- Application Number
- CN202311676539.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-08
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-08
AI Technical Summary
Existing technologies focus only on network congestion optimization in a single application scenario, resulting in poor balance in the network resource consumption of different data streams, which fails to meet the needs of diverse Internet applications.
By training actor and critic networks using network reinforcement learning, calculating rewards for network states, iteratively updating the network model, and optimizing the network congestion control model, the network can be adapted to the needs of multiple application scenarios.
It improves the universality of network congestion control in multiple scenarios and the balance of network resource consumption by different data streams, meeting the performance requirements of diverse Internet applications.
Smart Images

Figure CN117880199B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data transmission, and in particular to a method for training a network congestion control model, a control method, and a training device. Background Technology
[0002] Today's internet applications have diverse performance requirements, including metrics such as throughput, latency, jitter, and packet loss rate. High throughput, low latency, low jitter, and low packet loss rate are common trends for these applications. For example, high-definition television playback requires a network speed of at least 34 Mbps to ensure smooth playback and avoid interruptions and overload. In contrast, real-time interactive technologies such as autonomous driving emphasize rapid response, requiring network latency of no more than 10 ms to ensure timely environmental feedback. Applications such as online video or audio conferencing have high requirements for network stability and can only accept extremely low packet loss rates (0.1% to 1%). Emerging technologies such as augmented reality or virtual reality have high requirements for multiple network performance metrics. Therefore, modern internet congestion control algorithms need to meet these diverse application needs.
[0003] Existing technologies focus only on optimizing a single parameter and are only applicable to optimizing network congestion in single or multiple application scenarios. At the same time, they have poor balance in the network resources occupied by different data streams. Summary of the Invention
[0004] In view of this, embodiments of this application provide a network congestion control model training method, control method, and training apparatus to eliminate or improve one or more defects existing in the prior art.
[0005] The first aspect of this application provides a method for training a network congestion control model, the method comprising:
[0006] An actor network and a critic network are iteratively trained based on a pre-defined network reinforcement learning step to obtain a network congestion control model for outputting various actions that adjust multiple network states in response to the data stream.
[0007] The network reinforcement learning steps include:
[0008] Within a preset time period, multiple network states and their corresponding target actions are sequentially acquired from the data stream of the actor network.
[0009] The reward corresponding to each network state is calculated based on the application demand weight corresponding to each network state. The sample corresponding to each network state is then stored in a pre-set replay buffer. The sample includes the network state corresponding to each network state, the reward, the target action, the reward weight, and the network state at the next moment. The application demand weight includes throughput weight, latency weight, and packet loss rate weight.
[0010] Multiple samples are extracted from the replay buffer each time to iteratively update the current commentator network until the number of updates meets the preset update threshold, and then the update stops to obtain the target commentator network.
[0011] The actor network is updated based on DPG and the target critic network to obtain the target actor network;
[0012] The first network is updated based on preset control parameters and the target actor's home network to obtain the first target network; the first network is pre-copied from the actor network.
[0013] The second network is updated based on the control parameters and the target critic network to obtain the second target network; the second network is obtained in advance by copying the critic network.
[0014] In some embodiments of this application, the reward includes: a first reward and a second reward;
[0015] Correspondingly, the calculation of the reward corresponding to each network state based on the application demand weight corresponding to each network state includes:
[0016] Determine in turn whether each of the network states meets the preset threshold conditions. If so, calculate the first reward corresponding to the current network state.
[0017] If not, then the second reward corresponding to the current network state is calculated based on the application demand weights corresponding to each network state.
[0018] In some embodiments of this application, updating the commentator network by drawing multiple samples from the playback buffer includes:
[0019] Multiple samples are extracted from the playback buffer as training samples;
[0020] The target action in each training sample is updated based on the Gaussian noise, the first network, the network state in each training sample, and the reward weight.
[0021] Based on the reward corresponding to each training sample, the network state in the next training sample, the reward weight, and the updated target action, the value function value corresponding to each training sample is obtained.
[0022] The critic network is updated based on each of the stated value function values.
[0023] In some embodiments of this application, the target action is obtained by superimposing Gaussian noise onto actions obtained from the actor network.
[0024] In some embodiments of this application, the first reward is represented as follows:
[0025] r t =η t r 1,t +(1-η t )r 2,t
[0026] r 1,t Let r represent the first sub-reward corresponding to the network state at time t. 2,t η represents the second sub-reward corresponding to the network state at time t. t Indicates r 1,t and r 2,t The reward weights between them;
[0027] in:
[0028]
[0029] throughput represents the throughput corresponding to the network state at time t, delay represents the latency corresponding to the network state at time t, and loss represents the packet loss rate corresponding to the network state at time t.
[0030]
[0031] Throughput represents the throughput corresponding to the network state at time t, fair share represents the ideal fair share of network bandwidth, and α represents the parameter in the α-fairness utility function.
[0032] In some embodiments of this application, the second reward is represented as follows:
[0033] r t =η t r 1,t +(1-η t )r 2,t
[0034] r 1,t Let r represent the third sub-reward corresponding to the network state at time t. 2,tη represents the fourth sub-reward corresponding to the network state at time t. t Indicates t 1,t and r 2,t The reward weights between them;
[0035] in:
[0036]
[0037] throughput represents the throughput corresponding to the network state at time t, delay represents the latency corresponding to the network state at time t, loss represents the packet loss rate corresponding to the network state at time t, λ represents the weight corresponding to throughput, μ represents the weight corresponding to latency, and κ represents the weight corresponding to packet loss rate.
[0038]
[0039] Throughput represents the throughput corresponding to the network state at time t, fair share represents the ideal fair share of network bandwidth, and α represents the parameter in the α-fairness utility function.
[0040] A second aspect of this application provides a network congestion control method, the method comprising:
[0041] Obtain multiple network states of the target data stream and the application weight corresponding to each network state;
[0042] Each network state and its corresponding application weight are input into the network congestion control model trained by the network congestion control model training method described in the first aspect, and the target action corresponding to each network state is output.
[0043] A third aspect of this application provides a network congestion control model training apparatus, the apparatus comprising:
[0044] The model building module is used to iteratively train an actor network and a critic network based on preset network reinforcement learning steps to obtain a network congestion control model for outputting various actions that adjust multiple network states in response to the data stream; wherein, the network reinforcement learning steps include:
[0045] The network information extraction module is used to sequentially obtain multiple network states and the target actions corresponding to each network state from the data stream of the actor network within a preset time period.
[0046] The reward calculation module is used to calculate the reward corresponding to each network state based on the application demand weight corresponding to each network state, and to store the obtained samples corresponding to each network state into a pre-set replay buffer. The samples include the network state corresponding to each network state, the reward, the target action, the reward weight, and the network state at the next moment; the application demand weight includes: throughput weight, latency weight, and packet loss rate weight.
[0047] The critic network update module is used to iteratively update the current critic network by extracting multiple samples from the playback buffer each time until the number of updates meets the preset update number threshold, and then stop updating to obtain the target critic network.
[0048] The actor network update module is used to update the actor network based on the DPG and the target critic network to obtain the target actor network.
[0049] The first network update module is used to update the first network based on preset control parameters and the target actor's home network to obtain the first target network; the first network is pre-copied from the actor network;
[0050] The second network update module is used to update the second network based on the control parameters and the target critic network to obtain the second target network; the second network is obtained in advance by copying the critic network.
[0051] A fourth aspect of this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the network congestion control model training method described in the first aspect above.
[0052] The fifth aspect of this application provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the network congestion control model training method described in the first aspect above.
[0053] This application provides a network congestion control model training method, control method, and training device. The training method includes: iteratively training an actor network and a critic network based on preset network reinforcement learning steps to obtain a network congestion control model for outputting various actions that adjust for multiple network states of a data stream; the network reinforcement learning steps include: acquiring multiple network states and the target actions corresponding to each network state; calculating the rewards corresponding to each network state and iteratively updating the current critic network until the number of updates meets a preset update threshold, thereby obtaining the target critic network; and updating the actor network, the first network, and the second network. This application can optimize network congestion in multiple application scenarios, effectively improve the universality of network congestion control in multiple scenarios, and enhance the balance of network resource consumption by different data streams.
[0054] Additional advantages, objectives, and features of this application will be set forth in part in the description which follows, and will in part become apparent to those skilled in the art upon review of the following description, or may be learned by practice of the application. The objectives and other advantages of this application can be realized and obtained by means of the structures specifically pointed out in the specification and drawings.
[0055] Those skilled in the art will understand that the purposes and advantages that can be achieved with this application are not limited to those specifically described above, and that the above and other purposes that this application can achieve will be more clearly understood from the following detailed description. Attached Figure Description
[0056] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, do not constitute a limitation thereof. The components in the drawings are not drawn to scale but are merely for illustrating the principles of this application. For ease of illustration and description of certain parts of this application, corresponding portions in the drawings may be enlarged, i.e., may appear larger relative to other components in an exemplary device actually manufactured according to this application. In the drawings:
[0057] Figure 1 This is a flowchart illustrating a network congestion control model training method in one embodiment of this application.
[0058] Figure 2 This is a schematic diagram of the network congestion control model training device in another embodiment of this application.
[0059] Figure 3 This is a flowchart illustrating a network congestion control method according to another embodiment of this application. Detailed Implementation
[0060] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the embodiments and accompanying drawings. Here, the illustrative embodiments and their descriptions are used to explain this application, but are not intended to limit it.
[0061] It should also be noted that, in order to avoid obscuring this application with unnecessary details, only the structures and / or processing steps closely related to the solution according to this application are shown in the accompanying drawings, while other details that are not closely related to this application are omitted.
[0062] It should be emphasized that the term "including / comprises" as used herein refers to the presence of a feature, element, step, or component, but does not exclude the presence or addition of one or more other features, elements, steps, or components.
[0063] It should also be noted that, unless otherwise specified, the term "connection" in this article can refer not only to a direct connection, but also to an indirect connection involving an intermediary.
[0064] In the following description, embodiments of the present application will be illustrated with reference to the accompanying drawings. In the drawings, the same reference numerals represent the same or similar parts, or the same or similar steps.
[0065] The following examples will provide a detailed description.
[0066] This application provides a method for training a network congestion control model that can be executed by a network congestion control model training device or a client device. See also... Figure 1 The network congestion control model training method specifically includes the following:
[0067] An actor network and a critic network are iteratively trained based on a pre-defined network reinforcement learning process to obtain a network congestion control model that outputs various actions that adjust multiple network states in response to the data stream.
[0068] The network reinforcement learning steps include:
[0069] Step 110: Within a preset time period, sequentially obtain multiple network states and the target actions corresponding to each network state from the data stream of the actor network.
[0070] Step 120: Calculate the reward corresponding to each network state based on the application demand weight corresponding to each network state, and store the obtained sample corresponding to each network state in a pre-set replay buffer. The sample includes the network state corresponding to each network state, the reward, the target action, the reward weight, and the network state at the next moment. The application demand weight includes: throughput weight, latency weight, and packet loss rate weight.
[0071] Step 130: Extract multiple samples from the replay buffer each time to iteratively update the current commentator network until the number of updates meets the preset update threshold, and then stop updating to obtain the target commentator network.
[0072] Step 140: Update the actor network based on DPG and the target critic network to obtain the target actor network.
[0073] Step 150: Update the first network based on preset control parameters and the target actor network to obtain the first target network; the first network is pre-copied from the actor network.
[0074] Step 160: Update the second network based on the control parameters and the target critic network to obtain the second target network; the second network is obtained in advance by copying the critic network.
[0075] Specifically, the client device iteratively trains an actor network and a critic network based on preset network reinforcement learning steps until the accuracy of the actions reaches a preset threshold. This yields a network congestion control model that outputs actions to adjust various network states of the data stream. The model's input consists of multiple network states of the data stream and the application demand weights corresponding to each network state. This enables optimization of network congestion across multiple application scenarios, effectively improving the universality of network congestion control across various scenarios and enhancing the balance of network resource consumption by different data streams.
[0076] The network reinforcement learning steps include:
[0077] Within a preset time period, multiple network states and their corresponding target actions are sequentially acquired from the data stream of the actor network. The action is executed by converting the target action into a transmission rate, as shown in Equation 1.
[0078]
[0079] c t c represents the data transmission rate at time t. t-1 The data transmission rate at time t-1 is represented by ω, which represents the scaling factor used to suppress oscillations, and a is the data transmission rate at time t-1. t Positive, negative, and zero values result in the congestion window size increasing, decreasing, and remaining unchanged, respectively.
[0080] The reward corresponding to each network state is calculated based on the application demand weights corresponding to each network state. The samples corresponding to each network state are then stored in a pre-set replay buffer. Each sample includes the network state, the reward, the target action, the reward weight, and the next network state. The application demand weights include throughput weight, latency weight, and packet loss rate weight, all of which take values between (0,1). Multiple samples are extracted from the replay buffer each time to iteratively update the current commentator network until the number of updates meets a preset threshold, at which point the update stops, resulting in the target commentator network. The actor network is updated based on DPG (Deterministic Policy Gradient) and the target commentator network to obtain the target actor network. The first network is updated based on preset control parameters and the target actor network to obtain the first target network; the first network is pre-copied from the actor network. The second network is updated based on the control parameters and the target commentator network to obtain the second target network; the second network is pre-copied from the commentator network.
[0081] The current actor network parameters φ are updated using the loss function shown in Equation 2:
[0082]
[0083] θ i This represents the parameters of the second network, where N represents the number of training samples. Represents a network of critics, a j Let s represent the target action of the j-th training sample. j Let η represent the network state of the j-th training sample. j This shows the reward weight for the j-th training sample.
[0084] The corresponding gradient values of the loss function are shown in Equation 3:
[0085]
[0086] π φ Indicates actor network, This represents the gradient of the target action of the j-th training sample. The gradient of the actor network parameter φ is represented by θ. i This represents the parameters of the second network, N represents the number of training samples, and y j This represents the value function value corresponding to each training sample. a represents the first subnetwork in the critic network. j Let s represent the target action of the j-th training sample. jLet η represent the network state of the j-th training sample. j Let φ represent the reward weight for the j-th training sample. As shown in Equation 4:
[0087]
[0088] ρ∈(0,1] is the learning rate. This represents the gradient value of the loss function.
[0089] The control parameter is set to 0.01, causing a slight update to the first and second networks, as shown in Equations 5 and 6:
[0090] φ'←τφ+(1-τ)φ' (5)
[0091] φ represents the updated actor network parameters, τ represents the control parameters, and φ' represents the first network parameters.
[0092] θ' i ←τθ i +(1-τ)θ' i (6)
[0093] θ i This represents the updated critic network parameters, τ represents the control parameters, and θ' represents the parameter. i The second network parameter is represented by i = 1, which represents the parameter of the first sub-network and i = 2, which represents the parameter of the second sub-network.
[0094] Furthermore, based on the aforementioned congestion control model, a transfer learning strategy based on Pearson correlation coefficient is employed in the online adaptation phase to accelerate the training of weighted objectives for different application requirements. This method is based on the observation that when two agents have similar objectives (i.e., similar weight vectors), their optimal solutions are similar. Therefore, training agents can be accelerated by utilizing the solutions of their related agents. Here, an agent is an entity in the system that performs the learning task. In the wide area network congestion control problem, an agent is a system component responsible for making decisions to adjust the congestion window based on different network conditions.
[0095] The correlation between two models is determined by calculating the Pearson correlation coefficient of different application demand vectors. The closer the absolute value of the correlation coefficient is to 1, the stronger the linear relationship between the two vectors; the closer it is to 0, the weaker the linear relationship. Given the weight vectors w1 and w2 of two applications, their Pearson correlation coefficient p can be calculated using the following formula, where w 1,i and w 2,i These are the i-th elements of the weight vectors w1 and w2, respectively. and These are the means of the three elements in the weight vectors w1 and w2, respectively. The Pearson correlation coefficient is shown in Equation 7:
[0096]
[0097] To address the new application requirement weight vector, calculate its Pearson correlation coefficient with the weight vectors in the existing base models, and select the one with the largest absolute value as the base model to accelerate training. If the absolute value of the Pearson correlation coefficient between the new application requirement weight vector and all base models is less than 0.8, then use it for the corresponding network state in the congestion control model described above.
[0098] In order to further optimize network congestion in multiple application scenarios, effectively improve the universality of network congestion control in multiple scenarios, and improve the balance of network resources occupied by different data streams, the rewards in step 120 include: first reward and second reward.
[0099] Correspondingly, the calculation of the reward corresponding to each network state based on the application demand weight corresponding to each network state includes:
[0100] Determine in turn whether each of the network states meets the preset threshold conditions. If so, calculate the first reward corresponding to the current network state.
[0101] If not, then the second reward corresponding to the current network state is calculated based on the application demand weights corresponding to each network state.
[0102] Specifically, the client device sequentially determines whether each network state meets the preset threshold conditions. If so, it calculates the first reward corresponding to the current network state; otherwise, it calculates the second reward corresponding to the current network state based on the application demand weight corresponding to each network state.
[0103] The network status is shown in Equation 8:
[0104] s t = <x t ,l t ,d t > (8)
[0105] Where x t ,l t ,d t This refers to throughput, packet loss rate, and average RTT (latency time).
[0106] The threshold condition is shown in Equation 9:
[0107] IF((avg(x t )≥O thr )&&(avg(l t )≤Oloss )&&(avg(d t )≤O delay (9)
[0108] Among them, avg(x t ) represents the average throughput of all network states from the first network state to the current state, avg(l t ) represents the average packet loss rate from the first network state to the current network state, avg(d t O represents the average delay from the first network state to the current network state. thr Represents the throughput threshold, O loss O represents the packet loss rate threshold. delay This indicates the delay threshold.
[0109] The first reward is represented as shown in Equation 10:
[0110] r t =η t r 1,t +(1-η t )r 2,t (10)
[0111] t 1,t Let r represent the first sub-reward corresponding to the network state at time t. 2,t η represents the second sub-reward corresponding to the network state at time t. t Indicates r 1,t and r 2,t The reward weights between them;
[0112] Where, r 1,t As shown in Equation 11:
[0113]
[0114] throughput represents the throughput corresponding to the network state at time t, delay represents the latency corresponding to the network state at time t, and loss represents the packet loss rate corresponding to the network state at time t.
[0115] r 2,t As shown in Equation 12:
[0116]
[0117] Throughput represents the throughput corresponding to the network state at time t, fair share represents the ideal fair share of network bandwidth, and α represents the parameter in the α-fairness utility function.
[0118] The second reward is shown in Equation 13:
[0119] r t =η t r 1,t +(1-η t )r 2,t (13)
[0120] r 1,t Let t represent the third sub-reward corresponding to the network state at time t. 2,t η represents the fourth sub-reward corresponding to the network state at time t. t Indicates r 1,t and r 2,t The reward weights between them;
[0121] Where, r 1,t As shown in Equation 14:
[0122]
[0123] throughput represents the throughput corresponding to the network state at time t, delay represents the latency corresponding to the network state at time t, loss represents the packet loss rate corresponding to the network state at time t, λ represents the weight corresponding to throughput, μ represents the weight corresponding to latency, and κ represents the weight corresponding to packet loss rate.
[0124] r 2,t As shown in Equation 15:
[0125]
[0126] Throughput represents the throughput corresponding to the network state at time t, fair share represents the ideal fair share of network bandwidth, and α represents the parameter in the α-fairness utility function.
[0127] To further optimize network congestion across multiple application scenarios and effectively improve the universality of network congestion control in various scenarios, step 130 involves extracting multiple samples from the replay buffer to update the commentator network, including:
[0128] Multiple samples are extracted from the playback buffer as training samples;
[0129] The target action in each training sample is updated based on the Gaussian noise, the first network, the network state in each training sample, and the reward weight.
[0130] Based on the reward corresponding to each training sample, the network state in the next training sample, the reward weight, and the updated target action, the value function value corresponding to each training sample is obtained.
[0131] The critic network is updated based on each of the stated value function values.
[0132] Specifically, the client device first extracts N samples from the playback buffer as training samples;
[0133] Then, based on Gaussian noise, the first network, the network state in each training sample, and the reward weights, the target action in each training sample is updated, as shown in Equation 16:
[0134] a j+1 ←π' φ (s j+1 ,η j+1 )+∈ (16)
[0135] a j+1 Let π' represent the target action of the (j+1)th training sample. φ Indicates the first network, s j+1 Let η represent the network state of the (j+1)th training sample. j+1 Let represent the reward weight of the (j+1)th training sample, and ∈ represent Gaussian noise, as shown in Equation 17:
[0136] ∈~N(0,σ) (17)
[0137] N represents the number of training samples, and σ represents the variance of the Gaussian noise.
[0138] Then, based on the reward corresponding to each training sample, the network state in the next training sample, the reward weight, and the updated target action, the value function value corresponding to each training sample is obtained, as shown in Equation 18:
[0139]
[0140] y j r represents the value of the value function. j Let γ represent the reward corresponding to the j-th training sample, where γ∈[0,1]. Indicates the second network, a j+1 Let s represent the target action of the (j+1)th training sample. j+1 Let η represent the network state of the (j+1)th training sample. j+1 This shows the reward weight for the (j+1)th training sample. This indicates taking the minimum value between the first and second subnetworks.
[0141] The critic network is updated based on each of the stated value function values, as shown in Equation 19:
[0142]
[0143] θ iThis represents the parameters of the second network, N represents the number of training samples, and y j This represents the value function value corresponding to each training sample. Represents a network of critics, a j Let s represent the target action of the j-th training sample. j Let η represent the network state of the j-th training sample. j This shows the reward weight for the j-th training sample.
[0144] To effectively improve the accuracy of the target action, the target action in step 110 is obtained by superimposing Gaussian noise on the action obtained from the actor network.
[0145] This application also provides a network congestion control method, the method comprising:
[0146] Step 210: Obtain multiple network states of the target data stream and the application weights corresponding to each network state.
[0147] Step 220: Input each network state and its corresponding application weight into the network congestion control model trained by the aforementioned network congestion control model training method, and output the target action corresponding to each of the network states.
[0148] Specifically, the client device inputs multiple network states of the target data stream and the application weights corresponding to each network state into the network congestion control model trained by the aforementioned network congestion control model training method, and outputs the target actions corresponding to each network state. This enables optimization of network congestion in multiple application scenarios, effectively improving the universality of network congestion control in multiple scenarios, and enhancing the balance of network resources occupied by different data streams.
[0149] From a software perspective, this application also provides a network congestion control model training apparatus for executing all or part of the aforementioned network congestion control model training method. The network congestion control model training apparatus specifically includes the following components:
[0150] The model building module is used to iteratively train an actor network and a critic network based on preset network reinforcement learning steps to obtain a network congestion control model that outputs various actions to adjust multiple network states in response to the data stream; see [link to relevant documentation]. Figure 2 The network reinforcement learning steps include:
[0151] The network information extraction module 10 is used to sequentially obtain multiple network states and the target actions corresponding to each network state from the data stream of the actor network within a preset time period.
[0152] The reward calculation module 20 is used to calculate the reward corresponding to each of the network states based on the application demand weights corresponding to each network state, and to store the obtained samples corresponding to each of the network states into a pre-set replay buffer. The samples include the network state corresponding to each of the network states, the reward, the target action, the reward weight, and the network state at the next moment. The application demand weights include: throughput weight, latency weight, and packet loss rate weight.
[0153] The commentator network update module 30 is used to iteratively update the current commentator network by extracting multiple samples from the playback buffer each time until the number of updates meets the preset update number threshold, so as to obtain the target commentator network.
[0154] The actor network update module 40 is used to update the actor network based on the DPG and the target critic network to obtain the target actor network.
[0155] The first network update module 50 is used to update the first network based on preset control parameters and the target actor's home network to obtain the first target network; the first network is copied from the actor network in advance.
[0156] The second network update module 60 is used to update the second network based on the control parameters and the target critic network to obtain the second target network; the second network is obtained in advance by copying the critic network.
[0157] The embodiments of the network congestion control model training device provided in this application can be used to execute the processing flow of the network congestion control model training method embodiments described above. Its functions will not be repeated here, but can be referred to the detailed description of the network congestion control model training method embodiments described above.
[0158] This application provides a network congestion control model training device. The method executed by the device includes: iteratively training an actor network and a critic network based on preset network reinforcement learning steps to obtain a network congestion control model for outputting various actions that adjust for multiple network states of a data stream; the network reinforcement learning steps include: acquiring multiple network states and the target actions corresponding to each network state; calculating the rewards corresponding to each network state and iteratively updating the current critic network until the number of updates meets a preset update threshold, then stopping the update to obtain the target critic network; and updating the actor network, the first network, and the second network. This application can optimize network congestion in multiple application scenarios, effectively improve the universality of network congestion control in multiple scenarios, and improve the balance of network resource consumption by different data streams.
[0159] This application also provides an electronic device, such as a central server, which may include a processor, a memory, a receiver, and a transmitter. The processor is used to execute the network congestion control model training method mentioned in the above embodiments or the network congestion control method in the above method embodiments. The processor and memory can be connected via a bus or other means, taking a bus connection as an example. The receiver can be connected to the processor and memory via wired or wireless means.
[0160] The processor can be a central processing unit (CPU). The processor can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above types of chips.
[0161] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the network congestion control model training method in the embodiments of this application or the program instructions / modules corresponding to the network congestion control method in the above method embodiments. The processor executes various functional applications and data processing by running the non-transitory software programs, instructions, and modules stored in the memory, thereby implementing the network congestion control model training method or the network congestion control method in the above method embodiments.
[0162] The memory may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the processor, etc. Furthermore, the memory may include high-speed random access memory and non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include memory remotely located relative to the processor, which can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0163] The one or more modules are stored in the memory, and when executed by the processor, they execute the network congestion control model training method in the embodiment or the network congestion control method in the above method embodiment.
[0164] In some embodiments of this application, the user equipment may include a processor, a memory, and a transceiver unit. The transceiver unit may include a receiver and a transmitter. The processor, memory, receiver, and transmitter may be connected via a bus system. The memory is used to store computer instructions, and the processor is used to execute the computer instructions stored in the memory to control the transceiver unit to send and receive signals.
[0165] As one implementation method, the functions of the receiver and transmitter in this application can be implemented by transceiver circuits or dedicated transceiver chips, and the processor can be implemented by dedicated processing chips, processing circuits or general-purpose chips.
[0166] As another implementation approach, the server provided in this application embodiment can be implemented using a general-purpose computer. That is, the program code implementing the processor, receiver, and transmitter functions is stored in memory, and the general-purpose processor implements the processor, receiver, and transmitter functions by executing the code in memory.
[0167] This application also provides a computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the steps of the aforementioned network congestion control model training method or the network congestion control method in the above-described method embodiments. The computer-readable storage medium can be a tangible storage medium, such as random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, floppy disks, hard disks, removable storage disks, CD-ROMs, or any other form of storage medium known in the art.
[0168] Those skilled in the art will understand that the exemplary components, systems, and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software, or a combination of both. Whether implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application. When implemented in hardware, it can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. The programs or code segments can be stored in a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave.
[0169] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0170] In this application, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with or in place of features of other embodiments.
[0171] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to the embodiments of this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for training a network congestion control model, characterized in that, include: An actor network and a critic network are iteratively trained based on a pre-defined network reinforcement learning step to obtain a network congestion control model for outputting various actions that adjust multiple network states in response to the data stream. The network reinforcement learning steps include: Within a preset time period, multiple network states and their corresponding target actions are sequentially acquired from the data stream of the actor network. The reward for each network state is calculated based on the application demand weight corresponding to each network state. The resulting samples for each network state are stored in a pre-set replay buffer. Each sample includes the network state, the reward, the target action, the reward weight, and the next network state. The application demand weight includes throughput weight, latency weight, and packet loss rate weight. The calculation of the reward for each network state based on the application demand weight includes: sequentially determining whether each network state meets a preset threshold condition; if so, the reward is represented as follows: If not, the reward will be as follows: in, Indicates the reward weight; Let represent the throughput corresponding to the network state at time t, delay represent the latency corresponding to the network state at time t, loss represent the packet loss rate corresponding to the network state at time t, and fair share represent the ideal fair share of network bandwidth. express -Parameters in the fairness utility function; The weights representing throughput The weights corresponding to the delay are represented. The weights represent the packet loss rate; multiple samples are extracted from the replay buffer each time to iteratively update the current commentator network until the number of updates meets the preset update threshold, and then the update stops to obtain the target commentator network; The actor network is updated based on DPG and the target critic network to obtain the target actor network; The first network is updated based on preset control parameters and the target actor network to obtain the first target network; the first network is obtained by copying the actor network in advance. The second network is updated based on the control parameters and the target critic network to obtain the second target network; the second network is obtained in advance by copying the critic network.
2. The network congestion control model training method according to claim 1, characterized in that, The step of updating the commentator network by extracting multiple samples from the playback buffer includes: Multiple samples are extracted from the playback buffer as training samples; The target action in each training sample is updated based on Gaussian noise, the first network, the network state in each training sample, and the reward weight; Based on the reward corresponding to each training sample, the network state in the next training sample, the reward weight, and the updated target action, the value function value corresponding to each training sample is obtained. The critic network is updated based on each of the stated value function values.
3. The network congestion control model training method according to claim 1, characterized in that, Also includes: The target action is obtained by superimposing Gaussian noise onto the actions obtained from the actor network.
4. A network congestion control method, characterized in that, include: Obtain multiple network states of the target data stream and the application weight corresponding to each network state; Each network state and its corresponding application weight are input into the network congestion control model trained by the network congestion control model training method according to any one of claims 1-3, and the target action corresponding to each of the network states is output.
5. A network congestion control model training device, characterized in that, include: The model building module is used to iteratively train an actor network and a critic network based on preset network reinforcement learning steps to obtain a network congestion control model for outputting various actions that adjust multiple network states in response to the data stream; wherein, the network reinforcement learning steps include: The network information extraction module is used to sequentially obtain multiple network states and the target actions corresponding to each network state from the data stream of the actor network within a preset time period. The reward calculation module is used to calculate the reward corresponding to each network state based on the application demand weight corresponding to each network state, and to store the obtained samples corresponding to each network state in a pre-set replay buffer. The samples include the network state corresponding to each network state, the reward, the target action, the reward weight, and the network state at the next moment. The application demand weight includes: throughput weight, latency weight, and packet loss rate weight. The calculation of the reward corresponding to each network state based on the application demand weight includes: sequentially determining whether each network state meets a preset threshold condition; if so, the reward is represented as follows: If not, the reward will be as follows: in, Indicates the reward weight; Let represent the throughput corresponding to the network state at time t, delay represent the latency corresponding to the network state at time t, loss represent the packet loss rate corresponding to the network state at time t, and fair share represent the ideal fair share of network bandwidth. express -Parameters in the fairness utility function; The weights representing throughput The weights corresponding to the delay are represented. This indicates the weight corresponding to the packet loss rate; The critic network update module is used to iteratively update the current critic network by extracting multiple samples from the playback buffer each time until the number of updates meets the preset update number threshold, and then stop updating to obtain the target critic network. The actor network update module is used to update the actor network based on the DPG and the target critic network to obtain the target actor network. The first network update module is used to update the first network based on preset control parameters and the target actor network to obtain the first target network; the first network is pre-copied from the actor network; The second network update module is used to update the second network based on the control parameters and the target critic network to obtain the second target network; the second network is obtained in advance by copying the critic network.
6. 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, it implements the network congestion control model training method as described in any one of claims 1 to 3, or the network congestion control method as described in claim 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the network congestion control model training method as described in any one of claims 1 to 3, or the network congestion control method as described in claim 4.
Citation Information
Patent Citations
Electric power communication network routing method based on deep reinforcement learning
CN111010294A
Congestion control method and device
CN112104563A
