Congestion control method and device and congestion control model training method and device

By narrowing the congestion window and obtaining network status information in the network to adjust the congestion control model, and combining the imitation learning algorithm to train the model, it solves the problem of deep reinforcement learning algorithms being difficult to achieve congestion control in diverse network environments, and improves the efficiency of congestion control. Accuracy and robustness.

CN114866489BActive Publication Date: 2024-09-20TSINGHUA UNIVERSITY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210470741.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-28
Publication Date
2024-09-20
Estimated Expiration
2042-04-28

AI Technical Summary

Technical Problem

Existing congestion control algorithms based on deep reinforcement learning are difficult to efficiently implement congestion control, mainly due to the lack of basic mechanism design and artificially designed reward functions that are often linear combinations of throughput and delay, making it difficult to weigh conflicting attributes in diverse network environments. weight.

Method used

By reducing the size of the congestion window and obtaining network status information in each set period, inputting the congestion control model to adjust parameters, combining imitation learning algorithms to train the model to adapt to various network conditions, and designing omniscient network simulators and real-time solvers to Imitate expert strategies.

Benefits of technology

It improves the accuracy and robustness of congestion control, can achieve better performance in a variety of scenarios, and improves the algorithm's decision-making accuracy and multi-goal realization capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114866489B
    Figure CN114866489B
Patent Text Reader

Abstract

The present disclosure relates to a congestion control method and device and a congestion control model training method and device. The congestion control method comprises: at the start time of each set period, reducing the size of the congestion window of the target transmission network to a target size, and sending a target data packet through the congestion window; determining the round-trip delay of the target data packet as the minimum round-trip delay of the target transmission network in the corresponding set period; within each set period, at set time intervals, obtaining network status information of the target transmission network, and inputting the minimum round-trip delay and the network status information into the congestion control model to obtain adjustment parameters; wherein the adjustment parameters are used to adjust the size of the congestion window of the target transmission network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network technology, and in particular to a congestion control method and device, and a congestion control model training method and device. Background Art

[0002] Congestion control on the network is a method that dynamically adjusts the sending rate to avoid congestion events so as to better transmit data on the network. It has been proposed for more than 30 years. Current heuristic-based congestion control methods usually use packet loss rate and delay as signals of congestion and dynamically control the sending rate or congestion window to achieve high throughput while avoiding congestion.

[0003] However, with the emergence of Internet services such as live video, virtual reality, and the Internet of Things, the network environment is becoming increasingly complex. Heuristic-based congestion control algorithms are difficult to handle the current diverse network environments, so embracing machine learning algorithms to design efficient congestion control algorithms is a potential solution. Based on this idea, researchers have made many attempts to use deep reinforcement learning to improve congestion control algorithms to make them applicable to all network conditions and achieve the best performance under a variety of network conditions.

[0004] However, algorithms based on deep reinforcement learning usually lack the design of basic mechanisms. Some algorithms hope to enable deep reinforcement learning algorithms to learn these mechanisms through carefully designed reward functions. However, in the congestion control problem, it is difficult to enable the algorithm to learn a certain mechanism through the design of reward functions, because the artificially designed reward function is often a linear combination of the two conflicting attributes of throughput and latency, and the diversity of network environments makes it difficult to weigh a certain weight for these two conflicting attributes, making it difficult for existing deep reinforcement learning-based algorithms to efficiently implement congestion control. Summary of the invention

[0005] The present disclosure provides a congestion control method and device and a congestion control model training method and device to at least solve the problem in the related art that it is difficult to efficiently implement congestion control, and may not solve any of the above problems.

[0006] According to a first aspect of the present disclosure, a congestion control method is provided, comprising: at the start time of each set period, reducing the size of the congestion window of the target transmission network to a target size, and sending a target data packet through the congestion window; determining the round-trip delay of the target data packet as the minimum round-trip delay of the target transmission network in the corresponding set period; within each set period, at set time intervals, obtaining network status information of the target transmission network, and inputting the minimum round-trip delay and the network status information into a congestion control model to obtain an adjustment parameter; wherein the adjustment parameter is used to adjust the size of the congestion window.

[0007] Optionally, the target size is a minimum size of the congestion window.

[0008] Optionally, after the step of determining the round-trip delay of the target data packet as the minimum round-trip delay of the target transmission network in the corresponding set period, the congestion control method further includes: in response to receiving confirmation information of the target data packet fed back from the receiving end of the target transmission network, restoring the size of the congestion window to the size of the congestion window before it was reduced at the starting time of the current set period.

[0009] Optionally, the network status information includes network status parameters of at least one historical moment, and the network status parameters include at least one of a sending rate statistic, a receiving rate statistic, a queuing delay statistic, a loss rate, an interval duration, and a target queuing parameter. The interval duration is the duration between a corresponding moment and the moment when the size of the congestion window was last adjusted, and the target queuing parameter is used to characterize a target queuing delay.

[0010] According to a second aspect of the present disclosure, a training method for a congestion control model is provided, comprising: determining a simulated transmission network; wherein the simulated transmission network is a transmission network obtained by simulation; taking the simulated transmission network as the target transmission network for the above-mentioned congestion control method, executing the congestion control method at multiple adjustment times to obtain adjustment parameters output by the congestion control model; adjusting the parameters of the congestion control model based on the adjustment parameters output by the congestion control model and the operating parameters of the simulated transmission network to obtain a trained congestion control model, so that the adjustment parameters output by the trained congestion control model are adapted to the operating parameters of the simulated transmission network.

[0011] Optionally, the step of adjusting the parameters of the congestion control model based on the adjustment parameters output by the congestion control model and the operating parameters of the simulated transmission network to obtain a trained congestion control model includes: obtaining the operating parameters of the simulated transmission network at each time; determining target adjustment parameters at each adjustment time based on the operating parameters of the simulated transmission network at each adjustment time and in the target time period after each adjustment time; combining the adjustment parameters output by the congestion control model and the target adjustment parameters at the corresponding adjustment time, taking the target adjustment parameters as simulation objects, and adjusting the parameters of the congestion control model based on an imitation learning algorithm to obtain a trained congestion control model.

[0012] Optionally, the target time period after each adjustment moment is obtained by the following steps: for each adjustment moment, determining the moment when the data packet sent by the sending end of the analog transmission network is sent by the router of the analog transmission network, and recording it as the target time of the corresponding adjustment moment; determining the time period after the set time length from the target moment corresponding to each adjustment moment, as the target time period after the corresponding adjustment moment.

[0013] Optionally, the step of determining, for each adjustment moment, the moment when the data packets sent by the sending end of the analog transmission network are sent by the router of the analog transmission network, and recording it as the target moment of the corresponding adjustment moment, includes: for each adjustment moment, determining the data packets to be sent of the analog transmission network, and determining, based on the real-time bandwidth of the analog transmission network, the moment when all the data packets to be sent at the corresponding adjustment moment are sent by the router of the analog transmission network, as the target moment of the corresponding adjustment moment.

[0014] Optionally, the step of determining the target adjustment parameters at each adjustment moment based on the operating parameters of the simulated transmission network at each adjustment moment and the target time period after each adjustment moment includes: determining the target congestion window size at the corresponding adjustment moment according to the target queuing delay of the simulated transmission network, the queuing delay statistics and the round-trip delay statistics from each adjustment moment to the corresponding target moment, and the average bandwidth of the corresponding target time period; determining the target adjustment parameters at the corresponding adjustment moment according to the congestion window size at each adjustment moment and the target congestion window size.

[0015] According to a third aspect of the present disclosure, a congestion control device is provided, comprising: a sending unit, configured to: at the start time of each set period, reduce the size of the congestion window of the target transmission network to a target size, and send a target data packet through the congestion window; a determining unit, configured to: determine the round-trip delay of the target data packet as the minimum round-trip delay of the target transmission network in the corresponding set period; an adjusting unit, configured to: within each set period, at a set time interval, obtain network status information of the target transmission network, and input the minimum round-trip delay and the network status information into a congestion control model to obtain an adjustment parameter; wherein the adjustment parameter is used to adjust the size of the congestion window.

[0016] Optionally, the target size is a minimum size of the congestion window.

[0017] Optionally, the sending unit is further configured to: in response to receiving confirmation information of the target data packet fed back from the receiving end of the target transmission network, restore the size of the congestion window to the size before the congestion window was reduced at the start time of the current set period.

[0018] Optionally, the network status information includes network status parameters of at least one historical moment, and the network status parameters include at least one of a sending rate statistic, a receiving rate statistic, a queuing delay statistic, a loss rate, an interval duration, and a target queuing parameter. The interval duration is the duration between a corresponding moment and the moment when the size of the congestion window was last adjusted, and the target queuing parameter is used to characterize a target queuing delay.

[0019] According to a fourth aspect of the present disclosure, a training device for a congestion control model is provided, comprising: a simulation unit, configured to: determine a simulated transmission network; wherein the simulated transmission network is a transmission network obtained by simulation; an adjustment unit, configured to: use the simulated transmission network as the target transmission network for the above-mentioned congestion control method, execute the congestion control method at multiple adjustment times, and obtain adjustment parameters output by the congestion control model; a training unit, configured to: adjust the parameters of the congestion control model based on the adjustment parameters output by the congestion control model and the operating parameters of the simulated transmission network, and obtain a trained congestion control model, so that the adjustment parameters output by the trained congestion control model are adapted to the operating parameters of the simulated transmission network.

[0020] Optionally, the training unit is also configured to: obtain the operating parameters of the simulated transmission network at each moment; determine the target adjustment parameters at each adjustment moment based on the operating parameters of the simulated transmission network at each adjustment moment and the target time period in the future of each adjustment moment; combine the adjustment parameters output by the congestion control model and the target adjustment parameters at the corresponding adjustment moment, take the target adjustment parameters as the simulation object, adjust the parameters of the congestion control model based on the imitation learning algorithm, and obtain the trained congestion control model.

[0021] Optionally, the target time period after each adjustment moment is obtained by the following steps: for each adjustment moment, determining the moment when the data packet sent by the sending end of the analog transmission network is sent by the router of the analog transmission network, and recording it as the target time of the corresponding adjustment moment; determining the time period after the set time length from the target moment corresponding to each adjustment moment, as the target time period after the corresponding adjustment moment.

[0022] Optionally, the training unit is further configured to: for each adjustment moment, determine the data packets to be sent of the simulated transmission network, and determine the moment when all the data packets to be sent at the corresponding adjustment moment are sent by the router of the simulated transmission network according to the real-time bandwidth of the simulated transmission network, as the target moment of the corresponding adjustment moment.

[0023] Optionally, the training unit is further configured to: determine the target congestion window size at the corresponding adjustment moment based on the target queuing delay of the simulated transmission network, the queuing delay statistics and round-trip delay statistics from each adjustment moment to the corresponding target moment, and the average bandwidth of the corresponding target time period; determine the target adjustment parameter at the corresponding adjustment moment based on the congestion window size at each adjustment moment and the target congestion window size.

[0024] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and at least one memory storing computer executable instructions, wherein the computer executable instructions, when executed by the at least one processor, cause the at least one processor to execute the congestion control method or the congestion control model training method according to the present disclosure.

[0025] According to a sixth aspect of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to execute the congestion control method or the congestion control model training method according to the present disclosure.

[0026] According to a seventh aspect of the present disclosure, a computer program product is provided, comprising computer instructions, which, when executed by at least one processor, implement the congestion control method or the congestion control model training method according to the present disclosure.

[0027] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0028] According to the congestion control method and congestion control device of the embodiments of the present disclosure, the expert mechanism of the heuristic algorithm is followed to obtain the minimum round-trip delay of the network, so as to accurately collect the network status, help to make accurate decisions, and thus improve the congestion control effect.

[0029] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0031] Figure 1 is a flowchart illustrating a congestion control method according to an exemplary embodiment of the present disclosure.

[0032] Figure 2 is a flowchart illustrating a congestion control method according to an exemplary embodiment of the present disclosure.

[0033] Figure 3 is a flowchart illustrating a training method of a congestion control model according to an exemplary embodiment of the present disclosure.

[0034] Figure 4 Detailed description is given of a flowchart of a method for training a congestion control model according to an exemplary embodiment of the present disclosure.

[0035] Figure 5 is a block diagram illustrating a congestion control apparatus according to an exemplary embodiment of the present disclosure.

[0036] Figure 6 is a block diagram illustrating a training apparatus for a congestion control model according to an exemplary embodiment of the present disclosure.

[0037] Figure 7 is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0038] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.

[0040] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.

[0041] Computers are connected together through a network (a transmission network that can transmit data), which can realize the transmission of data between different computers. According to different roles in data transmission, the network may include a sender and a receiver, as well as a router located between the sender and the receiver. Data packets are sent from the sender, queued after arriving at the router, and sent one by one by the router to the receiver. It can be seen that the throughput of the network (the amount of data successfully transmitted per unit time by the sender) is related to the transmission rate of the router on the one hand, and the length of the queue at the router on the other hand. Among them, the transmission rate of the router can be regarded as the rate at which data packets in the queue are discharged from the queue. This rate is affected by the environment and is always changing, while the sending rate of the sender is the rate at which data packets enter the queue, so the two jointly affect the length of the queue. In addition, if there is no queue at the router, the data packets arriving at the router from the sender can be sent immediately; if the queue is short, the data packets sent by the sender need to wait for a short time at the router, but it does not affect normal transmission; if the queue is long, the network throughput decreases, indicating that congestion has occurred; if the queue is too long, even exceeding the buffer carrying capacity of the router, data packets may be lost. Based on this, by adapting to the changing transmission rate of the router and dynamically adjusting the sending rate of the sender, the length of the queue can be controlled within a reasonable range. This is congestion control.

[0042] Congestion control on the network has been proposed for more than 30 years as a method to dynamically adjust the sending rate of the sender to avoid congestion events and better transmit data on the network. Traditional heuristic-based congestion control methods usually use packet loss rate and delay as signals of congestion and dynamically control the sending rate or congestion window to achieve high throughput while avoiding congestion. Among them, the congestion window is a window to avoid sending congestion, which can be understood as a sliding window installed on the sender to limit the amount of data sent by the sender at a single time.

[0043] However, traditional congestion control algorithms are designed to perform hard-wired heuristic mappings between packet-level events and predefined control actions in response to these events, and therefore may not meet all ideal performance goals. With the emergence of Internet services such as live video, virtual reality, and the Internet of Things, network environments are becoming increasingly complex, and heuristic-based congestion control algorithms are difficult to handle the current diverse network environments. Therefore, embracing machine learning algorithms to design efficient congestion control algorithms is a potential solution. Based on this idea, researchers have made many attempts to use deep reinforcement learning to improve congestion control algorithms so that they are applicable to all network conditions and achieve the best performance under a variety of network conditions.

[0044] However, deep reinforcement learning-based algorithms often achieve congestion control by maximizing the accumulated manually designed rewards, without considering the expert mechanism of the congestion control algorithm. Although some algorithms hope to enable deep reinforcement learning algorithms to learn these mechanisms through carefully designed reward functions, it is difficult to enable algorithms to learn certain mechanisms through the design of reward functions in congestion control problems, because the manually designed reward functions are often a linear combination of the two conflicting attributes of throughput and delay, and the diversity of network environments makes it difficult to weigh a certain weight for these two conflicting attributes, making it difficult for existing deep reinforcement learning-based algorithms to efficiently achieve congestion control. In addition, such methods often use model-free methods, ignoring the importance of domain modeling knowledge. Unlike other scenarios, network models can be regarded as describing the basic principles of the Internet. Therefore, when the congestion control algorithms generated by existing reinforcement learning techniques work, they may be opposite to the reward direction designed before.

[0045] According to the exemplary embodiment of the present disclosure, a congestion control algorithm based on imitation learning that imitates both the expert mechanism and the expert strategy is proposed. On the one hand, the expert mechanism of the heuristic algorithm is followed to obtain the minimum round-trip delay of the network, so as to accurately collect the network status and help make accurate decisions; on the other hand, a training framework including an omniscient network simulator and an instant solver that can provide expert strategies is designed. Instead of maximizing the manually designed reward function, a congestion control strategy suitable for the simulated transmission network (the operating parameters of each node in the simulated transmission network are known) is solved as the expert strategy. By directly imitating the expert strategy to train the congestion control model, the reliability of the trained congestion control model can be improved. These two aspects make the algorithm proposed according to the exemplary embodiment of the present disclosure perform better than the best algorithm currently in many scenarios, help to make accurate decisions in the network state that has not been learned, improve the robustness of the algorithm, and the accuracy of the forward direction enables the algorithm to better achieve the requirements of multiple objectives and accurately design the algorithm's preferences.

[0046] Next, we will refer to Figures 1 to 7 A congestion control method, a congestion control device, a training method and a training device of a congestion control model according to exemplary embodiments of the present disclosure are described in detail.

[0047] Figure 1 is a flow chart showing a congestion control method according to an exemplary embodiment of the present disclosure. It should be understood that the congestion control method according to the exemplary embodiment of the present disclosure can be implemented in a terminal device such as a smart phone, a tablet computer, a personal computer (PC), or in a device such as a server.

[0048] Reference Figure 1, in step 101, at the start time of each set period, the size of the congestion window of the target transmission network is reduced to a target size, and a target data packet is sent through the congestion window.

[0049] In step 102, the round trip delay of the target data packet is determined as the minimum round trip delay of the target transmission network in the corresponding set period.

[0050] Step 101 and step 102 can be used together to obtain the minimum round-trip delay of the target transmission network according to a set period.

[0051] The target transmission network is the transmission network that currently needs to be congested. The target transmission network includes the sender, the congestion window set at the sender, the router, and the receiver. The round-trip delay refers to the total delay from the start of the sender sending the data packet to the sender receiving the confirmation from the receiver (the receiver sends the confirmation immediately after receiving the data). The factors affecting the round-trip delay are mainly the queue length and bandwidth of the router. The shorter the queue length, the shorter the waiting time in the queue, and the shorter the round-trip delay; the bandwidth reflects the data transmission rate of the router. Affected by the environment, the bandwidth is always changing. The larger the bandwidth, the faster the data packets in the queue are sent, and the shorter the round-trip delay. The minimum round-trip delay is the round-trip delay of the data packet sent by the sender without queuing. Since the influence of the queue length is excluded, it can accurately reflect the actual bandwidth, which helps to timely detect and handle situations such as delay jitter that cause changes in network status, and improve the congestion control effect.

[0052] Minimum round trip delay is a parameter commonly used in heuristic congestion control algorithms. However, for machine learning algorithms such as reinforcement learning, on the one hand, the operating parameters of the router cannot be obtained, resulting in the inability to know when the data packets sent by the sender are sent by the router, so the minimum round trip delay cannot be directly detected; on the other hand, the algorithm lacks a protection mechanism, and the queue is often very long, resulting in a large queuing delay, and it is impossible to detect the minimum round trip delay by using the situation where there is no queue. These two factors make it difficult for machine learning algorithms to use the minimum round trip delay parameter to improve congestion control effects.

[0053] To solve this problem, according to the exemplary embodiment of the present disclosure, by actively reducing the size of the congestion window, that is, reducing the sending rate of the sender, the number of data packets sent to the router can be reduced, which helps to reduce the accumulation of data packets at the router. Specifically, the target size is smaller than the bandwidth of the router, which can ensure that the number of data packets sent thereafter will not exceed the sending capacity of the router, so that the data packets will not accumulate at the router, that is, the queue length will not last too long, and the round-trip delay of the target data packet can be used as the minimum round-trip delay to achieve the measurement of the minimum round-trip delay. It should be understood that although there may still be data packets in the queue at the start time of the set cycle, as mentioned above, it can be guaranteed that the data packets will not continue to accumulate at this time, so the time consumed for emptying the existing data packets in these queues (that is, the time consumed for all the existing data packets in the router queue to be sent) can be regarded as an acceptable error.

[0054] Optionally, the target size is, for example, a minimum size of the congestion window, which can fully ensure that data packets are no longer accumulated at the router, help control the error of the measured minimum round-trip delay, and improve the congestion control effect.

[0055] Further, after step 102, according to an exemplary embodiment of the present disclosure, it may also include: in response to receiving confirmation information of the target data packet fed back from the receiving end of the target transmission network, restoring the size of the congestion window to the size of the congestion window before it was reduced at the start time of the current set period. Receiving the confirmation information of the target data packet means that the round-trip delay of the target data packet can be obtained, and the minimum round-trip delay has been detected. The operation of obtaining the minimum round-trip delay can be exited, and the size of the congestion window can be adjusted to perform congestion control. By restoring the size of the congestion window to the size before reaching the current set period, that is, restoring it to the size before reduction, the previous congestion window adjustment can be continued, reducing the impact of reducing the congestion window size in step 101, and ensuring the efficiency of congestion control.

[0056] In step 103, within each set period, at set time intervals, the network status information of the target transmission network is obtained, and the minimum round-trip delay and the network status information are input into the congestion control model to obtain adjustment parameters. The adjustment parameters are used to adjust the size of the congestion window of the target transmission network. In view of the fact that the operation of determining the minimum round-trip delay requires the congestion window to be reduced to the target size, which is not compatible with the usual congestion control, it can be assumed that the minimum round-trip delay remains unchanged within each set period, and it is not necessary to determine it repeatedly. At the same time, the congestion control model is used to adjust the size of the congestion window in combination with the currently obtained network status information at set time intervals. This can not only obtain a relatively accurate network status and provide a reliable data basis for congestion control, but also ensure the normal progress of congestion control in time, which helps to improve the efficiency of congestion control.

[0057] Optionally, the network status information includes network status parameters of at least one historical moment, and the network status parameters include at least one of a sending rate statistic, a receiving rate statistic, a queuing delay statistic, a loss rate, an interval duration, and a target queuing parameter. The interval duration is the duration between the corresponding moment and the moment when the size of the congestion window was last adjusted, and the target queuing parameter is used to characterize the target queuing delay. By configuring these representative network status parameters, it is possible to combine with the minimum round-trip delay to accurately reflect the network status. Optionally, the selected at least one historical moment can be at least the most recent historical moment, which can fully reflect the latest historical status of the target transmission network and provide a reliable data basis for timely congestion control. As an example, the number of historical moments used can be 7 to 10, for example 8, to balance the computational overhead in the representation of historical information and model training.

[0058] As an example, the network status information at time t can be expressed as,

[0059]

[0060] Among them, r send is the weighted moving average of the sending rate, r recv is the weighted moving average of the receiving rate, d min is the minimum round trip delay saved by the system, d queue is the queuing delay smoothed by weighted moving average, l is the loss rate, dur is the interval duration, and w is the target queuing parameter, which is used to achieve multiple objectives and will be described in detail in the following section on training methods.

[0061] Optionally, the output of the congestion control model a t ∈[-1,1], used to refer to the following formula, based on the current congestion window c t Adjust the congestion window c at the next moment t+1 :

[0062] c t+1 =c t *a t +1)

[0063] It should be understood that both time t+1 and time t represent adjustment times for adjusting the congestion window. In other words, the time interval between time t+1 and time t is a set duration.

[0064] Optionally, the congestion control model uses a neural network. As an example, a 1D-CNN (1 Dimensional Convolutional Neural Networks) layer with a stride of 4 can be used to extract the features of each network state parameter. Other algorithms can also be used for feature extraction, such as Transformer, and a fully connected layer with 64 neurons is used to further merge features. The neural network outputs a single scalar using the Tanh activation function. For other layers, Relu can be used as the activation function.

[0065] Figure 2 is a flowchart illustrating a congestion control method according to an exemplary embodiment of the present disclosure.

[0066] Reference Figure 2 (The dotted lines in the figure represent actions, the solid lines represent data transmission, and the double-dotted lines represent information returned by the receiving end). The congestion control method according to the exemplary embodiment of the present disclosure can be executed by an agent. After the sending end receives the confirmation data segment returned by the receiving end, the currently saved network status information is updated. Figure 2 The agent sends the network status information to the agent for decision making and updates the size of the congestion window. The sender sends data packets to the receiver based on the updated congestion window. In addition, the agent sends packets according to the set period (e.g. Figure 2 As shown, the round-trip delay exploration is performed every 10 seconds, specifically, the current congestion window size is stored, and the congestion window size is set to the minimum value to discharge the data packets in the queue without further accumulation of the queue. At the same time, the data packets sent by the sender through the congestion window when the congestion window is reduced are recorded as target data packets. Once the confirmation information of the target data packet is received, the size of the congestion window is restored to the stored size, and the minimum round-trip delay explored (i.e., the round-trip delay of the target data packet) is used to update the minimum round-trip delay saved by the system. In other words, the congestion control method according to the exemplary embodiment of the present disclosure includes a minimum round-trip delay detection phase and a policy execution phase. The minimum round-trip delay detection phase is repeatedly entered according to a set period, and the detection is completed once and then changed to the policy execution phase.

[0067] Figure 3 is a flow chart showing a training method of a congestion control model according to an exemplary embodiment of the present disclosure. It should be understood that the training method of a congestion control model according to an exemplary embodiment of the present disclosure can be implemented in a terminal device such as a smart phone, a tablet computer, a personal computer (PC), or can also be implemented in a device such as a server.

[0068] Reference Figure 3In step 301, a simulated transmission network is determined. The simulated transmission network is a transmission network obtained by simulation, and like the target transmission network, includes a transmitter, a congestion window set at the transmitter, a router, and a receiver. Specifically, a simulator can be used to establish a simulated transmission network, and the simulator can configure a minimum round-trip delay, which is used to limit the lower limit of the round-trip delay of the simulated transmission network, so that a reliable simulated transmission network can be constructed, and it is also helpful to detect whether the detected minimum round-trip delay is credible during training.

[0069] Optionally, the simulator provided according to the exemplary embodiment of the present disclosure is a credible packet-level simulator that can accurately replay simulated transmission networks involving multiple parameters, such as packet loss, minimum one-way delay (equal to half of the minimum round-trip delay), queue length, and bandwidth changes. This transmission process may include three parts: a loss module, a delay module, and a link module. The loss module may discard packets according to a given loss rate, for example, by configuring a random number for each packet. If the random number is less than a given probability threshold, the packet will be randomly discarded. The delay module can simulate a network with a minimum one-way delay, that is, it can configure a minimum round-trip delay. The link module uses packet sending distribution to simulate the queue length and bandwidth of the router at each moment (a moment refers to the moment when the confirmation information of the packet is received, not the natural 1ms, nor the aforementioned set duration), that is, simulate queue length and bandwidth changes.

[0070] In step 302, the simulated transmission network is used as the target transmission network for the congestion control method, and the congestion control method is executed at multiple adjustment times to obtain adjustment parameters output by the congestion control model. The congestion control method is a congestion control method according to an exemplary embodiment of the present disclosure. By executing the congestion control method for the simulated transmission network, the agent executing the congestion control method can interact with the simulated transmission network in the simulator, generate corresponding adjustment parameters, and provide data for model training.

[0071] In step 303, based on the adjustment parameters output by the congestion control model and the operating parameters of the simulated transmission network, the parameters of the congestion control model are adjusted to obtain a trained congestion control model, so that the adjustment parameters output by the trained congestion control model are adapted to the operating parameters of the simulated transmission network. The operating parameters of the simulated transmission network can reflect the operating conditions of the simulated transmission network. By using them as the basis for training the congestion control model, the adjustment parameters output by the trained congestion control model can be more adapted to the targeted transmission network, thereby ensuring the congestion control effect of the trained congestion control model.

[0072] In some embodiments, step 303 may apply a deep reinforcement learning algorithm to evaluate the adjustment parameters generated in step 302 by configuring a reward function, thereby adjusting the parameters of the congestion control model according to the evaluation results to implement the training of the congestion control model. The reward function may be obtained, for example, based on the operating parameters of the simulated transmission network. The specific training method is a mature technology in this field and will not be described in detail here.

[0073] In other embodiments, the aforementioned simulator can also store the operating parameters of the simulated transmission network at each moment, so that each metric and variable at each moment in the simulator is visible to the user, forming an omniscient white box simulator, which can observe the future operating parameters, facilitate the user to adjust and observe each process in the simulator, and is conducive to the observation and design of algorithm behavior. Step 303 can apply the imitation learning algorithm to train the congestion control model, specifically including: based on the operating parameters of the simulated transmission network at each adjustment moment and the target period after each adjustment moment, determine the target adjustment parameters at each adjustment moment, and these target adjustment parameters can constitute an expert strategy; combine the adjustment parameters output by the congestion control model and the target adjustment parameters at the corresponding adjustment moment, take the target adjustment parameters as the imitation object, adjust the parameters of the congestion control model based on the imitation learning algorithm, and obtain the trained congestion control model. By combining the operating parameters at each adjustment moment and the target period thereafter, the future network status can be understood, thereby understanding the actual bandwidth and delay, and then determining reasonable target adjustment parameters, which is equivalent to obtaining the ability to travel to the future, and then guiding the current decision based on the data obtained from the future. By using the expert strategy determined in this way as the imitation object of the congestion control model, that is, making the congestion control model make decisions as similar to the expert strategy as possible, the problem of difficult design of the reward function can be solved and a more accurate direction for progress can be provided.

[0074] Optionally, for the embodiment of the imitation expert strategy, the target time period after each adjustment moment is obtained by the following steps: for each adjustment moment, determine the moment when the data packet sent by the sender of the simulated transmission network is sent by the router of the simulated transmission network, and record it as the target moment of the corresponding adjustment moment; determine the time period after the set time length from the target moment corresponding to each adjustment moment as the target time period after the corresponding adjustment moment. The target adjustment parameter corresponds to the ideal situation of congestion control, that is, the bandwidth of the router is fully utilized and no queue occurs. Specifically, if the amount of data sent by the sender is much smaller than the transmission capacity of the router, and the link between the router and the receiving end is not full of data packets, then although the router will not generate queues and the data packets can be sent out in time, there will be a problem that the bandwidth is not fully utilized, resulting in a waste of network resources. If the amount of data sent by the sender is too large, then although the link between the router and the receiving end will be full of data packets and the bandwidth will be fully utilized, it is easy to cause the queue to lengthen and even congestion to occur. The ideal situation is that when the data packet sent by the sender just arrives at the router, the link between the router and the receiving end will vacate space, and the router can send this data packet. Therefore, the ideal situation is that the amount of data sent by the router is equal to the bandwidth-delay product (BDP). To solve the problem, the core is to find the real link capacity within the set time, that is, the amount of data sent by the router. Since there are often a certain amount of data packets in the router queue of the simulated transmission network, the data packets sent by the sender at the adjustment time cannot be sent by the router immediately, which makes it difficult to determine the number of data packets actually sent by the sender by the router within the set time after each adjustment time. By first determining the target time corresponding to the adjustment time, and then extending the set time backward based on the target time as the target period, the operating parameters obtained can be more accurate, which helps to improve the accuracy of the determined expert strategy.

[0075] Optionally, the target time is obtained by the following steps: for each adjustment time, determine the data packets to be sent in the simulated transmission network, the data packets to be sent include the data packets in the link between the sender and the router (i.e., the data packets that have been sent by the sender but have not yet reached the router) and the existing data packets in the queue, and determine the time when all the data packets to be sent at the corresponding adjustment time are sent by the router of the simulated transmission network (i.e., the time when the data packets to be sent at the corresponding adjustment time are emptied) according to the real-time bandwidth of the simulated transmission network, as the target time of the corresponding adjustment time. Since the time consumption of emptying the data packets to be sent is related to the data packets to be sent, it is also related to the size of the previous congestion window, that is, it is affected by the congestion control model, so the target time cannot be directly obtained from the operation data of each moment stored in the simulator. By determining the target time according to the real-time bandwidth of the simulated transmission network (which is obtained by the simulator simulation and can be directly obtained), for example, a virtual process can be constructed to empty the data packets to be sent, and the accuracy of the determined target time can be guaranteed.

[0076] In general, for the implementation example of simulating the expert strategy, two stages are used to accurately obtain the link capacity. At any adjustment time t, first use a virtual process to empty all the data packets to be sent, to find the target time t' when the data packet sent at this adjustment time t is actually sent by the router. Then, based on the real-time bandwidth of the simulator, the number of data packets #p sent by the router in the time period after the set time length from the target time t' (i.e., the target time period) can be counted to obtain the real link capacity. It should be understood that, as mentioned above, the link module of the simulator uses the data packet sending distribution to simulate the bandwidth change of the router, so in actual execution, the number of data packets #p sent by the router in the target time period can be directly counted without combining the real-time bandwidth for calculation.

[0077] Specifically, for the embodiment of imitating the expert strategy, the step of determining the target adjustment parameter at each adjustment moment includes: determining the target congestion window size at the corresponding adjustment moment according to the target queuing delay of the simulated transmission network, the queuing delay statistics and the round-trip delay statistics from each adjustment moment to the corresponding target moment, and the average bandwidth of the corresponding target period; determining the target adjustment parameter at the corresponding adjustment moment according to the congestion window size at each adjustment moment and the target congestion window size. Since there is only one unique and extremely accurate solution for the ideal situation of congestion control, extremely high computing load and control load are required, and the accuracy requirement in practice does not need to be so high, so there may be a waste of computing resources. By configuring the target queuing delay, a reasonable queuing delay can be configured for different scenarios as an acceptable error, thereby achieving multiple objectives in multiple scenarios, which can reduce the difficulty of solving and reduce resource consumption, and meet the needs of congestion control, thereby improving the utilization efficiency of computing resources. The target queuing delay, the queuing delay statistics from each adjustment time to the corresponding target time, and the round-trip delay statistics are combined to characterize the expected reasonable round-trip delay in data transmission. Combined with the average bandwidth of the corresponding target time period, the target congestion window size can be solved, and then the corresponding target adjustment parameters can be determined to complete the solution of the expert strategy.

[0078] As an example, using the target queuing parameter w=1, the target queuing delay is 60ms and the target congestion window size is:

[0079]

[0080] Among them, q t The queuing delay statistics from each adjustment time to the corresponding target time, RTT is the round-trip delay statistics of the data packet to be sent from each adjustment time to the corresponding target time. Therefore, the target adjustment parameter for:

[0081]

[0082] Among them, clip represents the truncation operation. If In the interval (-1, 1), If it is on the left side of the interval, then If it is on the right side of the interval, then

[0083] Figure 4 Detailed description is given of a flowchart of a method for training a congestion control model according to an exemplary embodiment of the present disclosure.

[0084] Reference Figure 4(The dotted lines in the figure represent actions, and the solid lines represent data transmission). The training system includes several modules: an intelligent agent, a simulator, and an on-the-fly solver. The intelligent agent carrying the congestion control model interacts with the simulated transmission network in the simulator (using an offline simulator) to generate data for adjusting parameters. The on-the-fly solver gives the optimal target adjustment parameters based on the current transmission network and obtains the expert strategy. The expert strategy and the adjustment parameters are put into the replay buffer together as samples for training the congestion control model.

[0085] Furthermore, a replay buffer can be applied to achieve repeated training of the congestion control model. During the training process, samples are stored in the replay buffer, and the agent is allowed to randomly extract samples from the buffer. To this end, multiple samples are learned in each iteration to improve sample efficiency. Of course, the adjustment parameters obtained after the agent imitates the expert strategy can also be put into the replay buffer as new samples together with the corresponding expert strategy. When the replay buffer is full, the earliest historical data can be deleted first in the order of the time when the data was generated to continuously optimize the congestion control model. Imitation learning allows the congestion control model to explore the environment and learn strategies based on the expert strategy. In other words, the optimization goal is to minimize the gap between the estimated model strategy and the expert strategy under the same observed network state.

[0086] Figure 5 is a block diagram showing a congestion control device according to an exemplary embodiment of the present disclosure. It should be understood that the congestion control device according to the exemplary embodiment of the present disclosure can be implemented in a terminal device such as a smart phone, a tablet computer, a personal computer (PC) in the form of software, hardware, or a combination of software and hardware, and can also be implemented in a device such as a server.

[0087] Reference Figure 5 The congestion control device 500 includes a sending unit 501, a determining unit 502, and an adjusting unit 503.

[0088] The sending unit 501 may reduce the size of the congestion window of the target transmission network to a target size at the start time of each set period, and send the target data packet through the congestion window.

[0089] The determining unit 502 may determine the round trip delay of the target data packet as the minimum round trip delay of the target transmission network in the corresponding set period.

[0090] The sending unit 501 and the determining unit 502 can together realize obtaining the minimum round trip delay of the target transmission network according to a set period.

[0091] The target transmission network is the transmission network that currently needs to be congested. The target transmission network includes the sender, the congestion window set at the sender, the router, and the receiver. The round-trip delay refers to the total delay from the start of the sender sending the data packet to the sender receiving the confirmation from the receiver (the receiver sends the confirmation immediately after receiving the data). The factors affecting the round-trip delay are mainly the queue length and bandwidth of the router. The shorter the queue length, the shorter the waiting time in the queue, and the shorter the round-trip delay; the bandwidth reflects the data transmission rate of the router. Affected by the environment, the bandwidth is always changing. The larger the bandwidth, the faster the data packets in the queue are sent, and the shorter the round-trip delay. The minimum round-trip delay is the round-trip delay of the data packet sent by the sender without queuing. Since the influence of the queue length is excluded, it can accurately reflect the actual bandwidth, which helps to timely detect and handle situations such as delay jitter that cause changes in network status, and improve the congestion control effect.

[0092] Minimum round trip delay is a parameter commonly used in heuristic congestion control algorithms. However, for machine learning algorithms such as reinforcement learning, on the one hand, the operating parameters of the router cannot be obtained, resulting in the inability to know when the data packets sent by the sender are sent by the router, so the minimum round trip delay cannot be directly detected; on the other hand, the algorithm lacks a protection mechanism, and the queue is often very long, resulting in a large queuing delay, and it is impossible to detect the minimum round trip delay by using the situation where there is no queue. These two factors make it difficult for machine learning algorithms to use the minimum round trip delay parameter to improve congestion control effects.

[0093] To solve this problem, according to the exemplary embodiment of the present disclosure, by actively reducing the size of the congestion window, that is, reducing the sending rate of the sender, the number of data packets sent to the router can be reduced, which helps to reduce the accumulation of data packets at the router. Specifically, the target size is smaller than the bandwidth of the router, which can ensure that the number of data packets sent thereafter will not exceed the sending capacity of the router, so that the data packets will not accumulate at the router, that is, the queue length will not last too long, and the round-trip delay of the target data packet can be used as the minimum round-trip delay to achieve the measurement of the minimum round-trip delay. It should be understood that although there may still be data packets in the queue at the start time of the set cycle, as mentioned above, it can be guaranteed that the data packets will not continue to accumulate at this time, so the time consumed for emptying the existing data packets in these queues (that is, the time consumed for all the existing data packets in the router queue to be sent) can be regarded as an acceptable error.

[0094] Optionally, the target size is, for example, a minimum size of the congestion window, which can fully ensure that data packets are no longer accumulated at the router, help control the error of the measured minimum round-trip delay, and improve the congestion control effect.

[0095] Furthermore, after the determination unit 502 determines the minimum round-trip delay, the sending unit 501 can also respond to the confirmation information of the target data packet fed back from the receiving end of the target transmission network, and restore the size of the congestion window to the size of the congestion window before it was reduced at the start time of the current set period. Receiving the confirmation information of the target data packet means that the round-trip delay of the target data packet can be obtained, and the minimum round-trip delay has been detected. The operation of obtaining the minimum round-trip delay can be exited, and the size of the congestion window can be adjusted to perform congestion control. By restoring the size of the congestion window to the size before the current set period is reached, that is, restoring it to the size before reduction, the previous congestion window adjustment can be continued, reducing the impact of the sending unit 501 reducing the size of the congestion window, and ensuring the efficiency of congestion control.

[0096] The adjustment unit 503 can obtain the network status information of the target transmission network at set time intervals within each set period, and input the minimum round-trip delay and the network status information into the congestion control model to obtain adjustment parameters. The adjustment parameters are used to adjust the size of the congestion window of the target transmission network. In view of the fact that the operation of determining the minimum round-trip delay requires reducing the congestion window to the target size, which is not compatible with the usual congestion control, it can be assumed that the minimum round-trip delay remains unchanged within each set period, and it is not necessary to determine it repeatedly. At the same time, the congestion control model is used to adjust the size of the congestion window in combination with the currently obtained network status information at set time intervals. It can not only obtain a relatively accurate network status and provide a reliable data basis for congestion control, but also ensure the normal progress of congestion control in time, which helps to improve the efficiency of congestion control.

[0097] Optionally, the network status information includes at least one network status parameter of a historical moment, and the network status parameter includes at least one of a sending rate statistic, a receiving rate statistic, a queuing delay statistic, a loss rate, an interval duration, and a target queuing parameter. The interval duration is the duration between the corresponding moment and the moment when the size of the congestion window was last adjusted, and the target queuing parameter is used to characterize the target queuing delay. By configuring these representative network status parameters, it can be combined with the minimum round-trip delay to accurately reflect the network status. Optionally, the selected at least one historical moment can be at least the most recent historical moment, which can fully reflect the latest historical status of the target transmission network and provide a reliable data basis for timely congestion control.

[0098] Figure 6 is a block diagram showing a training device for a congestion control model according to an exemplary embodiment of the present disclosure. It should be understood that the training device for a congestion control model according to an exemplary embodiment of the present disclosure can be implemented in a terminal device such as a smart phone, a tablet computer, a personal computer (PC) in the form of software, hardware, or a combination of software and hardware, and can also be implemented in a device such as a server.

[0099] Reference Figure 6 The congestion control model training device 600 includes a simulation unit 601, an adjustment unit 602, and a training unit 603.

[0100] The simulation unit 601 can determine a simulated transmission network. The simulated transmission network is a transmission network obtained by simulation, and like the target transmission network, includes a transmitter, a congestion window set at the transmitter, a router, and a receiver. Specifically, a simulator can be used to establish a simulated transmission network, and the simulator can configure a minimum round-trip delay, which is used to limit the lower limit of the round-trip delay of the simulated transmission network, so that a reliable simulated transmission network can be constructed, and it is also helpful to detect whether the detected minimum round-trip delay is credible during training.

[0101] Optionally, the simulator provided according to the exemplary embodiment of the present disclosure is a credible packet-level simulator that can accurately replay simulated transmission networks involving multiple parameters, such as packet loss, minimum one-way delay (equal to half of the minimum round-trip delay), queue length, and bandwidth changes. This transmission process may include three parts: a loss module, a delay module, and a link module. The loss module may discard packets according to a given loss rate, for example, by configuring a random number for each packet. If the random number is less than a given probability threshold, the packet will be randomly discarded. The delay module can simulate a network with a minimum one-way delay, that is, it can configure a minimum round-trip delay. The link module uses packet sending distribution to simulate the queue length and bandwidth of the router at each moment (a moment refers to the moment when the confirmation information of the packet is received, not the natural 1ms, nor the aforementioned set duration), that is, simulate queue length and bandwidth changes.

[0102] The adjustment unit 602 may use the simulated transmission network as the target transmission network for the congestion control method, execute the congestion control method at multiple adjustment times, and obtain adjustment parameters output by the congestion control model. The congestion control method is a congestion control method according to an exemplary embodiment of the present disclosure. By executing the congestion control method for the simulated transmission network, the agent executing the congestion control method can interact with the simulated transmission network in the simulator, generate corresponding adjustment parameters, and provide data for model training.

[0103] The training unit 603 can adjust the parameters of the congestion control model based on the adjustment parameters output by the congestion control model and the operating parameters of the simulated transmission network to obtain a trained congestion control model, so that the adjustment parameters output by the trained congestion control model are adapted to the operating parameters of the simulated transmission network. The operating parameters of the simulated transmission network can reflect the operating conditions of the simulated transmission network. By using them as the basis for training the congestion control model, the adjustment parameters output by the trained congestion control model can be more adapted to the targeted transmission network, thereby ensuring the congestion control effect of the trained congestion control model.

[0104] In some embodiments, the training unit 603 may apply a deep reinforcement learning algorithm to evaluate the adjustment parameters generated by the adjustment unit 602 by configuring a reward function, thereby adjusting the parameters of the congestion control model according to the evaluation results to implement the training of the congestion control model. The reward function may be obtained, for example, based on the operating parameters of the simulated transmission network. The specific training method is a mature technology in this field and will not be described in detail here.

[0105] In other embodiments, the aforementioned simulator can also store the operating parameters of the simulated transmission network at each moment, so that each metric and variable at each moment in the simulator is visible to the user, forming an omniscient white box simulator, which can observe the future operating parameters, facilitate the user to adjust and observe each process in the simulator, and is conducive to the observation and design of algorithm behavior. The training unit 603 can apply the imitation learning algorithm to train the congestion control model, specifically including: based on the operating parameters of the simulated transmission network at each adjustment moment and the target period after each adjustment moment, determine the target adjustment parameters at each adjustment moment, and these target adjustment parameters can constitute an expert strategy; combine the adjustment parameters output by the congestion control model and the target adjustment parameters at the corresponding adjustment moment, take the target adjustment parameters as the imitation object, adjust the parameters of the congestion control model based on the imitation learning algorithm, and obtain the trained congestion control model. By combining the operating parameters at each adjustment moment and the target period thereafter, the future network state can be understood, thereby understanding the actual bandwidth and delay, and then determining reasonable target adjustment parameters, which is equivalent to obtaining the ability to travel to the future, and then guiding the current decision based on the data obtained from the future. By using the expert strategy determined in this way as the imitation object of the congestion control model, that is, making the congestion control model make decisions as similar to the expert strategy as possible, the problem of difficult design of the reward function can be solved and a more accurate direction for progress can be provided.

[0106] Optionally, for the embodiment of the imitation expert strategy, the target time period after each adjustment moment is obtained by the following steps: for each adjustment moment, determine the moment when the data packet sent by the sender of the simulated transmission network is sent by the router of the simulated transmission network, and record it as the target moment of the corresponding adjustment moment; determine the time period after the set time length from the target moment corresponding to each adjustment moment as the target time period after the corresponding adjustment moment. The target adjustment parameter corresponds to the ideal situation of congestion control, that is, the bandwidth of the router is fully utilized and no queue occurs. Specifically, if the amount of data sent by the sender is much smaller than the transmission capacity of the router, and the link between the router and the receiving end is not full of data packets, then although the router will not generate queues and the data packets can be sent out in time, there will be a problem that the bandwidth is not fully utilized, resulting in a waste of network resources. If the amount of data sent by the sender is too large, then although the link between the router and the receiving end will be full of data packets and the bandwidth will be fully utilized, it is easy to cause the queue to lengthen and even congestion to occur. The ideal situation is that when the data packet sent by the sender just arrives at the router, the link between the router and the receiving end will vacate space, and the router can send this data packet. Therefore, the ideal situation is that the amount of data sent by the router is equal to the bandwidth-delay product. To solve the problem, the core is to find the real link capacity within the set time, that is, the amount of data sent by the router. Given that there are often a certain amount of data packets in the router queue of the simulated transmission network, the data packets sent by the sender at the adjustment time cannot be sent by the router immediately, which makes it difficult to determine the number of data packets actually sent by the sender by the router within the set time after each adjustment time. By first determining the target time corresponding to the adjustment time, and then extending the set time backward based on the target time as the target period, the operating parameters obtained can be more accurate, which helps to improve the accuracy of the determined expert strategy.

[0107] Optionally, the target time is obtained by the following steps: for each adjustment time, determine the data packets to be sent in the simulated transmission network, the data packets to be sent include the data packets in the link between the sender and the router (i.e., the data packets that have been sent by the sender but have not yet reached the router) and the existing data packets in the queue, and determine the time when all the data packets to be sent at the corresponding adjustment time are sent by the router of the simulated transmission network (i.e., the time when the data packets to be sent at the corresponding adjustment time are emptied) according to the real-time bandwidth of the simulated transmission network, as the target time of the corresponding adjustment time. Since the time consumption of emptying the data packets to be sent is related to the data packets to be sent, it is also related to the size of the previous congestion window, that is, it is affected by the congestion control model, so the target time cannot be directly obtained from the operation data of each moment stored in the simulator. By determining the target time according to the real-time bandwidth of the simulated transmission network (which is obtained by the simulator simulation and can be directly obtained), for example, a virtual process can be constructed to empty the data packets to be sent, and the accuracy of the determined target time can be guaranteed.

[0108] In general, for the implementation example of simulating the expert strategy, two stages are used to accurately obtain the link capacity. At any adjustment time t, first use a virtual process to empty all the data packets to be sent, to find the target time t' when the data packet sent at this adjustment time t is actually sent by the router. Then, based on the real-time bandwidth of the simulator, the number of data packets #p sent by the router in the time period after the set time length from the target time t' (i.e., the target time period) can be counted to obtain the real link capacity. It should be understood that, as mentioned above, the link module of the simulator uses the data packet sending distribution to simulate the bandwidth change of the router, so in actual execution, the number of data packets #p sent by the router in the target time period can be directly counted without combining the real-time bandwidth for calculation.

[0109] Specifically, for the embodiment of the imitation expert strategy, the step of the training unit 603 determining the target adjustment parameter at each adjustment moment includes: determining the target congestion window size at the corresponding adjustment moment according to the target queuing delay of the simulated transmission network, the queuing delay statistics and the round-trip delay statistics from each adjustment moment to the corresponding target moment, and the average bandwidth of the corresponding target period; determining the target adjustment parameter at the corresponding adjustment moment according to the congestion window size at each adjustment moment and the target congestion window size. Since there is only one unique and extremely high-precision solution in the ideal situation of congestion control, extremely high computing load and control load are required, and the accuracy requirement in practice does not need to be so high, so there may be a waste of computing resources. By configuring the target queuing delay, a reasonable queuing delay can be configured for different scenarios as an acceptable error, thereby achieving multiple objectives in multiple scenarios, which can reduce the difficulty of solving and reduce resource consumption, and meet the needs of congestion control, thereby improving the utilization efficiency of computing resources. The target queuing delay, the queuing delay statistics from each adjustment time to the corresponding target time, and the round-trip delay statistics are combined to characterize the expected reasonable round-trip delay in data transmission. Combined with the average bandwidth of the corresponding target time period, the target congestion window size can be solved, and then the corresponding target adjustment parameters can be determined to complete the solution of the expert strategy.

[0110] Figure 7 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.

[0111] Reference Figure 7 The electronic device 700 includes at least one memory 701 and at least one processor 702, wherein the at least one memory 701 stores a set of computer executable instructions. When the computer executable instruction set is executed by the at least one processor 702, a congestion control method or a congestion control model training method according to an exemplary embodiment of the present disclosure is executed.

[0112] As an example, the electronic device 700 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above instruction set. Here, the electronic device 700 is not necessarily a single electronic device, but may also be any device or circuit capable of executing the above instruction (or instruction set) individually or in combination. The electronic device 700 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.

[0113] In the electronic device 700, the processor 702 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.

[0114] The processor 702 may execute instructions or codes stored in the memory 701, which may also store data. Instructions and data may also be sent and received over a network via a network interface device, which may employ any known transmission protocol.

[0115] The memory 701 may be integrated with the processor 702, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 701 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 701 and the processor 702 may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 702 can read files stored in the memory.

[0116] In addition, the electronic device 700 may further include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 700 may be connected to each other via a bus and / or a network.

[0117] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium may also be provided, and when the instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to execute the congestion control method or the training method of the congestion control model according to the exemplary embodiment of the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.

[0118] According to an exemplary embodiment of the present disclosure, a computer program product may also be provided. The computer program product includes computer instructions. When the computer instructions are executed by at least one processor, the at least one processor is prompted to execute the congestion control method or the congestion control model training method according to the exemplary embodiment of the present disclosure.

[0119] According to the congestion control method and device and the training method and device of the congestion control model of the exemplary embodiment of the present disclosure, on the one hand, the expert mechanism of the heuristic algorithm is followed to obtain the minimum round-trip delay of the network, so as to accurately collect the network status and help make accurate decisions; on the other hand, a training framework including an omniscient network simulator and an instant solver capable of providing expert strategies is designed, which does not maximize the manually designed reward function, but solves the congestion control strategy suitable for the simulated transmission network (the operating parameters of each node in the simulated transmission network are known) as the expert strategy, and trains the congestion control model by directly imitating the expert strategy, which can improve the reliability of the trained congestion control model. These two aspects make the algorithm proposed according to the exemplary embodiment of the present disclosure perform better than the best algorithm at present in many scenarios, help make accurate decisions in unlearned network states, improve the robustness of the algorithm, and the accuracy of the forward direction enables the algorithm to better achieve the requirements of multiple objectives and accurately design the preferences of the algorithm.

[0120] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0121] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A congestion control model training method, characterized in that: include: Determine a simulated transmission network; wherein the simulated transmission network is a transmission network obtained through simulation; Taking the simulated transmission network as the target transmission network, at the start time of each set period, reducing the size of the congestion window of the target transmission network to a target size, and sending a target data packet through the congestion window; Determine the round trip delay of the target data packet as the minimum round trip delay of the target transmission network in the corresponding set period; In each set period, an adjustment time is determined every set time, the network status information of the target transmission network at the current adjustment time is obtained, and the minimum round-trip delay and the network status information are input into the congestion control model to obtain the adjustment parameter of the current adjustment time; wherein the adjustment parameter is used to adjust the size of the congestion window; Obtaining operating parameters of the simulated transmission network at various times; Determining a target adjustment parameter at each adjustment moment based on the operating parameters of the simulated transmission network at each adjustment moment and the target period after each adjustment moment; Combine the adjustment parameters output by the congestion control model and the target adjustment parameters at the corresponding adjustment moment, take the target adjustment parameters as the simulation object, adjust the parameters of the congestion control model based on the imitation learning algorithm, and obtain the trained congestion control model, so that the adjustment parameters output by the trained congestion control model are adapted to the operating parameters of the simulated transmission network.

2. The training method according to claim 1, characterized in that: The target period after each adjustment moment is obtained by the following steps: For each adjustment time, determining the time when the data packet sent by the sending end of the simulated transmission network is sent by the router of the simulated transmission network, and recording it as the target time of the corresponding adjustment time; A time period after the set time length from the target time corresponding to each adjustment time is determined as the target time period after the corresponding adjustment time.

3. The training method according to claim 2, characterized in that: The step of determining, for each adjustment time, the time at which the data packet sent by the sending end of the simulated transmission network is sent by the router of the simulated transmission network, and recording it as the target time of the corresponding adjustment time, comprises: For each adjustment moment, the data packets to be sent of the simulated transmission network are determined, and the moment when all the data packets to be sent at the corresponding adjustment moment are sent by the router of the simulated transmission network is determined according to the real-time bandwidth of the simulated transmission network as the target moment of the corresponding adjustment moment.

4. The training method according to claim 2, characterized in that: The step of determining the target adjustment parameter at each adjustment moment based on the operation parameters of the simulated transmission network at each adjustment moment and the target period after each adjustment moment comprises: Determine the target congestion window size at the corresponding adjustment time according to the target queuing delay of the simulated transmission network, the queuing delay statistics and round-trip delay statistics from each adjustment time to the corresponding target time, and the average bandwidth of the corresponding target time period; According to the size of the congestion window at each adjustment time and the target congestion window size, a target adjustment parameter at the corresponding adjustment time is determined.

5. The training method according to any one of claims 1 to 4, characterized in that: The target size is the minimum size of the congestion window.

6. The training method according to any one of claims 1 to 4, characterized in that: After the step of determining the round trip delay of the target data packet as the minimum round trip delay of the target transmission network in the corresponding set period, the training method further includes: In response to receiving confirmation information of the target data packet fed back from the receiving end of the target transmission network, the size of the congestion window is restored to the size of the congestion window before it was reduced at the start time of the current set period.

7. The training method according to any one of claims 1 to 4, characterized in that: The network status information includes network status parameters at at least one historical moment, and the network status parameters include at least one of a sending rate statistic, a receiving rate statistic, a queuing delay statistic, a loss rate, an interval duration, and a target queuing parameter. The interval duration is the duration between a corresponding moment and a moment when the size of the congestion window was last adjusted, and the target queuing parameter is used to characterize a target queuing delay.

8. A congestion control method, characterized in that: include: At the start time of each set period, the size of the congestion window of the target transmission network is reduced to a target size, and the target data packet is sent through the congestion window; Determine the round trip delay of the target data packet as the minimum round trip delay of the target transmission network in the corresponding set period; Within each set cycle, at set time intervals, the network status information of the target transmission network is obtained, and the minimum round-trip delay and the network status information are input into a congestion control model to obtain adjustment parameters; wherein the adjustment parameters are used to adjust the size of the congestion window, and the congestion control model is trained by the training method of the congestion control model as described in any one of claims 1 to 7.

9. The congestion control method according to claim 8, characterized in that: The target size is the minimum size of the congestion window.

10. The congestion control method according to claim 8, characterized in that: After the step of determining the round trip delay of the target data packet as the minimum round trip delay of the target transmission network in the corresponding set period, the congestion control method further includes: In response to receiving confirmation information of the target data packet fed back from the receiving end of the target transmission network, the size of the congestion window is restored to the size of the congestion window before it was reduced at the start time of the current set period.

11. The congestion control method according to any one of claims 8 to 10, characterized in that: The network status information includes network status parameters at at least one historical moment, and the network status parameters include at least one of a sending rate statistic, a receiving rate statistic, a queuing delay statistic, a loss rate, an interval duration, and a target queuing parameter. The interval duration is the duration between a corresponding moment and a moment when the size of the congestion window was last adjusted, and the target queuing parameter is used to characterize a target queuing delay.

12. A training device for a congestion control model, characterized in that: include: The simulation unit is configured to: determine a simulated transmission network; wherein the simulated transmission network is a transmission network obtained through simulation; The adjustment unit is configured to: take the simulated transmission network as the target transmission network, reduce the size of the congestion window of the target transmission network to the target size at the start time of each set period, and send the target data packet through the congestion window; determine the round-trip delay of the target data packet as the minimum round-trip delay of the target transmission network in the corresponding set period; within each set period, determine an adjustment time at a set time interval, obtain the network status information of the target transmission network at the current adjustment time, and input the minimum round-trip delay and the network status information into the congestion control model to obtain the adjustment parameters of the current adjustment time; wherein the adjustment parameters are used to adjust the size of the congestion window; The training unit is configured to: obtain the operating parameters of the simulated transmission network at various times; Based on the operating parameters of the simulated transmission network at each adjustment moment and the target time period after each adjustment moment, the target adjustment parameters at each adjustment moment are determined; in combination with the adjustment parameters output by the congestion control model and the target adjustment parameters at the corresponding adjustment moment, the target adjustment parameters are used as simulation objects, and the parameters of the congestion control model are adjusted based on the imitation learning algorithm to obtain a trained congestion control model, so that the adjustment parameters output by the trained congestion control model are adapted to the operating parameters of the simulated transmission network.

13. The training device according to claim 12, characterized in that The target period after each adjustment moment is obtained by the following steps: For each adjustment time, determining the time when the data packet sent by the sending end of the simulated transmission network is sent by the router of the simulated transmission network, and recording it as the target time of the corresponding adjustment time; A time period after the set time length from the target time corresponding to each adjustment time is determined as the target time period after the corresponding adjustment time.

14. The training device according to claim 13, characterized in that The training unit is further configured to: For each adjustment moment, the data packets to be sent of the simulated transmission network are determined, and the moment when all the data packets to be sent at the corresponding adjustment moment are sent by the router of the simulated transmission network is determined according to the real-time bandwidth of the simulated transmission network as the target moment of the corresponding adjustment moment.

15. The training device according to claim 13, characterized in that The training unit is further configured to: Determine the target congestion window size at the corresponding adjustment time according to the target queuing delay of the simulated transmission network, the queuing delay statistics and round-trip delay statistics from each adjustment time to the corresponding target time, and the average bandwidth of the corresponding target time period; According to the size of the congestion window at each adjustment time and the target congestion window size, a target adjustment parameter at the corresponding adjustment time is determined.

16. A training device according to any one of claims 12 to 15, characterised in that The target size is the minimum size of the congestion window.

17. A training device according to any one of claims 12 to 15, characterised in that The adjustment unit is further configured to: In response to receiving confirmation information of the target data packet fed back from the receiving end of the target transmission network, the size of the congestion window is restored to the size of the congestion window before it was reduced at the start time of the current set period.

18. A training device according to any one of claims 12 to 15, characterised in that The network status information includes network status parameters at at least one historical moment, and the network status parameters include at least one of a sending rate statistic, a receiving rate statistic, a queuing delay statistic, a loss rate, an interval duration, and a target queuing parameter. The interval duration is the duration between a corresponding moment and a moment when the size of the congestion window was last adjusted, and the target queuing parameter is used to characterize a target queuing delay.

19. A congestion control device, characterized in that: include: The sending unit is configured to: at the start time of each set period, reduce the size of the congestion window of the target transmission network to a target size, and send the target data packet through the congestion window; A determination unit is configured to: determine the round trip delay of the target data packet as the minimum round trip delay of the target transmission network in a corresponding set period; The adjustment unit is configured to: within each set period, at set time intervals, obtain the network status information of the target transmission network, and input the minimum round-trip delay and the network status information into a congestion control model to obtain adjustment parameters; wherein the adjustment parameters are used to adjust the size of the congestion window, and the congestion control model is trained by the training method of the congestion control model as described in any one of claims 1 to 7.

20. The congestion control device according to claim 19, characterized in that: The target size is the minimum size of the congestion window.

21. The congestion control device according to claim 19, characterized in that: The sending unit is further configured to: In response to receiving confirmation information of the target data packet fed back from the receiving end of the target transmission network, the size of the congestion window is restored to the size of the congestion window before it was reduced at the start time of the current set period.

22. The congestion control device according to any one of claims 19 to 21, characterized in that The network status information includes network status parameters at at least one historical moment, and the network status parameters include at least one of a sending rate statistic, a receiving rate statistic, a queuing delay statistic, a loss rate, an interval duration, and a target queuing parameter. The interval duration is the duration between a corresponding moment and a moment when the size of the congestion window was last adjusted, and the target queuing parameter is used to characterize a target queuing delay.

23. An electronic device, characterized in that: include: at least one processor; at least one memory storing computer executable instructions, Wherein, when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to execute the congestion control model training method as described in any one of claims 1 to 7 or the congestion control method as described in any one of claims 8 to 11.

24. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to perform the congestion control model training method as claimed in any one of claims 1 to 7 or the congestion control method as claimed in any one of claims 8 to 11.

25. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by at least one processor, the training method of the congestion control model according to any one of claims 1 to 7 or the congestion control method according to any one of claims 8 to 11 is implemented.