Delay-based adaptive congestion control method and device
By detecting the amplitude-frequency characteristics of delay in the network and dynamically adjusting parameters, it solves the problem that traditional congestion control algorithms cannot achieve high throughput and low delay in large-scale changing networks, and achieves efficient congestion control in different environments. Improved performance stability and adaptability.
Patent Information
- Application Number
- CN202011250982.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-10
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-11-10
AI Technical Summary
Traditional congestion control algorithms cannot guarantee high throughput and low latency performance in widely changing network scenarios, and performance collapse occurs in some scenarios.
Adopting a periodic congestion control method based on delay, it determines whether the congestion control system is stable by detecting the amplitude-frequency characteristics of network delay, dynamically updates the detection period and rate adjustment coefficient, continuously updates the acceleration factor, and dynamically adjusts the sending rate and congestion window. To achieve system stability and efficient congestion control.
Achieve high throughput and low-latency performance indicators in different network environments, avoid performance collapse, and improve environmental adaptability and stability.
Smart Images

Figure CN115941557B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network congestion control, and in particular to a delay-based periodic congestion control method and device. Background Art
[0002] In the Internet, the traditional mainstream congestion control protocol mainly performs congestion control based on packet loss information. However, when the network is not congested, the congestion control protocol based on packet loss will continue to increase the size of the congestion window until the buffer overflows at the bottleneck of the network where the data flow is congested. This makes the queue at the bottleneck longer when the buffer is larger, thereby increasing the transmission delay of the data packet. In order to avoid this problem, the existing delay-based congestion control method proposes to use delay information to determine whether the network is congested. When the delay is too large, it is determined that the network is congested, thereby reducing the congestion window before the buffer overflows to avoid the growth of the queue.
[0003] The delay-based congestion control protocols Vegas and Copa both combine the queuing delay and the size of the congestion window to determine whether the network is congested. After determining that the network is congested, Vegas uses a static method to adjust the window, and the window adjustment amount in each RTT is only one packet. And when the window and queuing delay are at the desired position, the window size is kept unchanged. However, when the delay-bandwidth product is large, Vegas takes a long time to make the window reach the desired size. At the same time, since Vegas keeps the window unchanged after reaching the desired position, the buffer at the network bottleneck will maintain a certain queue. This means that the newly arrived flow will incorrectly estimate the round-trip link propagation delay, that is, the measured RTTmin is greater than the actual round-trip link propagation delay.
[0004] Copa uses a similar mechanism to Vegas to determine network congestion. The difference is that the window adjustment amplitude of each RTT in Copa is determined by V*δ, where V is a dynamically adjusted parameter and δ is a preset parameter that does not change after setting. It is generally set to 2 in Copa. Copa associates the control target with the window adjustment amplitude through δ to periodically clear the queue, thereby solving the problem that Vegas cannot accurately measure RTTmin. However, like Vegas, the stable point queue length of Copa is also linearly related to the number of data streams, and its low latency goal cannot be achieved in scenarios with multiple data streams or low bandwidth. Summary of the invention
[0005] The problem to be solved by this patent is that the traditional congestion control algorithm cannot guarantee the expected performance of high throughput and low latency in a wide range of network scenarios, and performance collapse occurs in some scenarios. To solve the above problems, the present invention provides a delay-based periodic congestion control method PDCC.
[0006] In order to achieve the above technical purpose, the technical solution of the present invention is:
[0007] A delay-based periodic congestion control method monitors the amplitude-frequency characteristics of network delay within a detection period to determine whether the congestion control system is stable; when the congestion control system is stable, the detection period and rate adjustment coefficient are dynamically updated, and the acceleration factor is continuously updated. Finally, the target sending rate is integrated to continuously and dynamically adjust the current sending rate and congestion window.
[0008] The delay-based periodic congestion control method, wherein the amplitude-frequency characteristic monitoring is performed to determine whether the congestion control system is stable, comprises the following steps:
[0009] The sending end periodically detects the amplitude-frequency characteristics of the currently collected delay information to determine the state of the congestion control system; when the amplitude-frequency characteristics remain unchanged for a period of time, the congestion control system is considered to be stable, otherwise it is unstable.
[0010] In the delay-based periodic congestion control method, the sending end periodically detects the amplitude-frequency characteristics of the currently collected delay information. When the sending end receives an ACK packet, it subtracts the sending time of the ACK packet from the receiving time of the ACK packet to obtain the instantaneous round-trip delay RTT, and records all RTT information within the most recent detection period T time; then, a fast Fourier transform is performed on the RTT information within the most recent T time to obtain the corresponding amplitude-frequency characteristics.
[0011] The delay-based periodic congestion control method described above determines the state of the congestion control system by taking the frequency corresponding to the maximum amplitude value in the amplitude-frequency characteristic within the detection period as the dominant frequency fm; if the fm within two consecutive detection periods T is close, the system is considered to be in a stable state, otherwise the system is considered to be in a convergent state, that is:
[0012]
[0013] Among them, fm pre is the dominant frequency in the previous detection cycle T time, fm is the dominant frequency in the current detection cycle T time, and RTTmin is the minimum round-trip delay value measured within the most recent preset time.
[0014] The delay-based periodic congestion control method dynamically updates the detection period and rate adjustment coefficient when the congestion control system is stable, and includes the following steps:
[0015] Use the following formula to update the detection period T:
[0016] T=5 / fm
[0017] Where fm is the dominant frequency, that is, the frequency corresponding to the maximum amplitude value in the amplitude-frequency characteristic within the detection period;
[0018] The rate adjustment coefficient λ is updated using the following formula:
[0019]
[0020] Among them, Q ave and Q amp are the average value and jitter amplitude of the queuing delay within T respectively.
[0021] The delay-based periodic congestion control method continuously updates the acceleration factor. Regardless of whether the congestion control system is stable, the acceleration factor θ is updated according to the change of the sending rate CR every time an ACK packet is received at the sending end: when the sending rate continues to increase, θ is increased, otherwise θ is set to 1.
[0022] The delay-based periodic congestion control method includes the following steps for updating the acceleration factor θ: each time the sending end updates the sending rate CR, it simultaneously records whether the CR increases or decreases; then the sending end counts the number of times the CR increases and decreases within the current RTT, if the number of increases is greater than the number of decreases, then the sending end records the sending rate adjustment direction as positive, otherwise the sending rate adjustment direction is negative; then it is determined whether the window adjustment directions within the last three consecutive RTTs are all positive, if so, θ is doubled, otherwise θ is reset to 1.
[0023] The delay-based periodic congestion control method described above continuously and dynamically adjusts the current sending rate and congestion window. Regardless of whether the congestion control system is stable, each time the sending end receives an ACK packet, the sending rate CR and the congestion window cwnd are adjusted by the following symmetrical formula:
[0024]
[0025] cwnd=CR ′ *RTT
[0026] Where CR′ is the new sending rate calculated based on the current sending rate CR, Int is the time interval from the last ACK packet received, RTT is the instantaneous round-trip delay, TR is the target rate that is independent and changes dynamically with the delay, λ is the rate adjustment coefficient, and θ is the acceleration factor.
[0027] In the delay-based periodic congestion control method, the target rate TR that is independent and dynamically changes with the delay is calculated by the following formula:
[0028]
[0029] Among them, queuing delay Qd = srtt-RTTmin, srtt is the exponentially weighted smoothed value of the default round-trip delay in TCP, RTTmin is the minimum round-trip delay value measured within the most recent preset time, Rc is the preset gain factor, and Bd is the preset maximum queuing delay.
[0030] A device comprising:
[0031] one or more processors;
[0032] a storage device for storing one or more programs,
[0033] When the one or more programs are executed by the one or more processors, the one or more processors implement the aforementioned method.
[0034] The technical effect of the present invention is that, according to the behavior of network delay over a period of time, the fast Fourier transform is used to determine whether the congestion control system has entered a stable state of periodic change, and the rate adjustment mode is dynamically changed by inferring the current network environment in the stable state. That is, by adjusting the oscillation amplitude of the queuing delay, 1) the rate adjustment coefficient λ can reflect the current network environment and guide the subsequent rate adjustment 2) the queue can be emptied periodically so that the minimum RTT value can be accurately measured. The congestion control system can work within a preset range in different environments and present the expected behavior pattern. The simulation experiment results show that the present invention can achieve the desired high throughput and low latency performance indicators in different environments. Compared with traditional congestion control algorithms, the present invention has the advantages of lower delay, higher environmental adaptability and more stable performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 The figure is an overall framework diagram of the delay-based periodic congestion control method, namely PDCC, of the present invention.
[0036] Figure 2 This paper compares the performance of PDCC and other mainstream congestion control algorithms in scenarios with a wide range of delay-bandwidth product variations.
[0037] Figure 3 To compare the performance of PDCC and other mainstream congestion control algorithms in simulated cellular network scenarios.
[0038] Figure 4 The throughput of PDCC is compared with other mainstream congestion control algorithms in weak network scenarios with random packet loss.
[0039] Figure 5 When a new flow arrives, the throughput of each flow changes over time when the PDCC algorithm is used. DETAILED DESCRIPTION
[0040] The specific embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings.
[0041] Figure 1 The overall framework diagram of the delay-based periodic congestion control method PDCC is shown in Figure 1. The network environment determines the target behavior, and the network environment, initial state, and the output of the congestion control algorithm jointly determine the current behavior. The congestion control algorithm pushes the current behavior closer to the target behavior by comparing the target behavior with the current state. When the target behavior is reached, the current network environment can be inferred, and then the coefficients of the congestion control algorithm can be configured according to the network environment to achieve the expected behavior and obtain better performance. Its operation includes the following steps:
[0042] Step 1: Determine whether the current behavior of the system is consistent with the target behavior, that is, whether it is in a stable state, and infer the network environment and adjust the congestion control coefficient accordingly: When the sender receives an ACK packet, it performs a fast Fourier transform on the delay information collected in the most recent detection period T. Whether the dominant frequency fm in the transformation result is stable directly reflects whether the current state of the congestion control system is stable. If the congestion control system is currently in a stable state, update T and the rate adjustment coefficient λ that reflects the current network environment; if it is unstable, keep T and λ unchanged.
[0043] Step 2: Regardless of whether the congestion control system is stable or not, the acceleration factor θ is continuously adjusted to accelerate the acquisition of idle bandwidth and ensure network utilization: each time the sender receives an ACK packet, the acceleration factor θ is increased according to the change of the sending rate CR: when the sending rate continues to increase, θ is increased, otherwise θ is set to 1;
[0044] Step 3: Similar to step 2, regardless of whether the congestion control system is stable, a symmetrical speed regulation method is continuously used to make the congestion control system present a more regular periodic behavior: each time the sender receives an ACK packet, the sending rate CR and congestion window cwnd are adjusted by the following symmetrical formula:
[0045]
[0046] cwnd=CR ′ *RTT
[0047] Among them, CR′ is the new sending rate calculated according to the current sending rate CR, Int is the time interval from the last ACK packet received, RTT is the instantaneous round-trip delay, and TR is the target rate that is independent and dynamically changes with the delay.
[0048] In this embodiment, step one specifically includes the following steps:
[0049] Step A1: When the sender receives an ACK packet, it obtains the instantaneous round-trip delay RTT by subtracting the sending time of the ACK packet from the receiving time of the ACK packet, and records all RTT information within the most recent T time.
[0050] Step A2, determine the current state of the system through historical information: perform fast Fourier transform on the RTT information in the most recent T time to obtain its amplitude-frequency characteristics; take the frequency corresponding to the maximum amplitude value in the amplitude-frequency characteristics as the dominant frequency fm. If fm in two consecutive Ts is close, then fm is stable and the system is in a stable state; otherwise, fm is unstable and the system is in a convergent state. The determination of whether fm is close is performed by |fm pre -fm| is used for calculation. If the result is less than 1 / (4*RTTmin), then the current fm is considered stable, otherwise it is unstable. pre is the dominant frequency in the previous detection cycle T. fm is the dominant frequency in the current detection cycle T. RTTmin is the minimum round-trip delay value measured within the most recent preset time. Since the RTTmin value generally does not change unless there is a special situation such as a connection interruption, this preset time can be set to a relatively large value. In this embodiment, it is set to 10 seconds.
[0051] Step A3, infer the current network environment and adjust the congestion control coefficient accordingly to obtain better performance: When fm is stable, update T according to the following formula: T = 5 / fm;. When fm is stable, update the rate adjustment coefficient λ according to the following formula: The queuing delay oscillation amplitude converges to the target queuing delay, so that the converged λ value can reflect the current network environment. ave and Q amp are the average value and jitter amplitude of the queuing delay within T respectively.
[0052] In this embodiment, step 2 specifically includes the following steps:
[0053] Step B1, each time the sending end updates the sending rate CR, it records its change direction, that is, increase or decrease. Since RTT is the time from when the same ACK packet is sent to when it is received, and the sending end actually continues to receive different ACK packets during this period, and this embodiment adjusts the sending rate every time an ACK packet is received, there will be multiple CR changes within one RTT. Then the sending end counts the number of times the CR increases and decreases within the current RTT. If the number of increases is greater than the number of decreases, the sending end records the sending rate adjustment direction as positive, otherwise, the sending rate adjustment direction is recorded as negative.
[0054] Step B2, determine whether the window adjustment directions within the last three consecutive RTTs are all positive, if so, double θ, otherwise, reset θ to 1.
[0055] In this embodiment, in step 3, in order to make the target behavior determined by the current network environment, and thus make the coefficient λ calculated when the target behavior is achieved reflect the current network environment, TR calculates the target rate TR that changes dynamically with the queuing delay by the following formula:
[0056]
[0057] Among them, queuing delay Qd=srtt-RTTmin, where srtt is the exponentially weighted smoothed value of the default round-trip delay in TCP, RTTmin is the minimum round-trip delay value measured in the last 10 seconds, Rc and Bd are preset parameters, Bd is the maximum queuing delay setting based on user needs, Rc is a gain factor, and in this embodiment, in the Internet scenario, Rc and Bd are set to 30Mbps and 10ms by default.
[0058] According to an embodiment of the present invention, the present invention further provides a device.
[0059] The device comprises:
[0060] one or more processors;
[0061] a storage device for storing one or more programs,
[0062] When the one or more programs are executed by the one or more processors, the one or more processors implement the aforementioned method.
[0063] In specific use, the device as the sending end interacts with other servers or terminals that are also devices based on the network to achieve functions such as information transmission. The device can be a variety of electronic devices equipped with a display device and used based on a human-computer interface, including but not limited to smart phones, tablet computers, laptops and desktop computers. Various specific operating systems can be installed on the device as needed, such as Linux system, Windows system or other operating systems, etc., and corresponding application software can also be installed, including but not limited to web browser software, instant messaging software, social platform software, shopping software, etc.
[0064] The server is a network service end used to provide various services, such as a backend server that provides corresponding computing services for the data received from the sender, and is used to return the final prediction results to the terminal device.
[0065] Figure 2The performance comparison between the PDCC method and the current mainstream algorithm in a simulated link with a wide range of network delay-bandwidth product (BDP) is demonstrated. The experimental environment uses Mahimahi to establish a simulated link with a link bandwidth of 12Mbps to 1Gbps, a round-trip link propagation delay RTTbase of 20ms to 400ms, and 10 flows in the network. Each flow starts from 0 seconds and runs for a total of 60 seconds.
[0066] Experimental results show that PDCC can maintain low latency while ensuring high throughput, and has the smallest performance fluctuation in different environments and the strongest adaptability to the environment.
[0067] Figure 3 The performance comparison between the PDCC method and the current mainstream algorithms in simulated cellular network links in different scenarios is demonstrated. The experimental environment uses 4G network trace data in buses, taxis, and homes to simulate cellular network links. The number of flows in the network is 10. Each flow starts at 0 seconds and runs for a total of 60 seconds.
[0068] Experimental results show that PDCC can maintain low latency while ensuring high throughput, and the performance is almost non-volatile.
[0069] Figure 4 The throughput comparison of the PDCC method with the current mainstream algorithm in a simulated weak network link with random packet loss is shown. The experimental environment uses Mahimahi to establish a simulated link, the link bandwidth is 100Mbps, the round-trip link propagation delay RTTbase is 20ms, the random packet loss rate is 1% to 10%, and the number of flows in the network is 10. Each flow starts from 0 seconds and runs for a total of 60 seconds.
[0070] Experimental results show that PDCC is insensitive to random packet loss and can maintain high throughput in an environment with high packet loss rate.
[0071] Figure 5 It shows that, when a new flow arrives, the throughput of each flow changes over time using the PDCC algorithm. Figure 2 The experimental environment uses Mahimahi to establish a simulated link with a bandwidth of 100 Mbps and a round-trip link propagation delay of 20 ms. A total of 10 flows are run, one of which is started every 10 seconds, and each flow lasts for 100 seconds.
[0072] Experimental results show that PDCC has good fairness.
Claims
1. A delay-based periodic congestion control method, characterized in that: The amplitude-frequency characteristics of the network delay within the detection period are monitored to determine whether the congestion control system is stable: each time the sender receives an ACK packet, the delay information collected within the most recent detection period is fast Fourier transformed. Whether the dominant frequency in the transformation result is stable directly reflects whether the current state of the congestion control system is stable. When the congestion control system is stable, the detection period and rate adjustment coefficient are dynamically updated: the detection period T is updated using the following formula: T=5 / fm Where fm is the dominant frequency, that is, the frequency corresponding to the maximum amplitude value in the amplitude-frequency characteristic within the detection period; The rate adjustment coefficient λ is updated using the following formula: Among them, Q ave and Q amp They are the average value and jitter amplitude of the queuing delay within T respectively; At the same time, the acceleration factor is continuously updated: each time the sender receives an ACK packet, the acceleration factor θ is increased according to the change of the sending rate: when the sending rate continues to increase, θ is increased, otherwise θ is set to 1; Finally, the target sending rate is used to continuously and dynamically adjust the current sending rate and congestion window: each time the sender receives an ACK packet, the sending rate and congestion window cwnd are adjusted by the following formula: cwnd=CR′*RTT Among them, CR′ is the new sending rate calculated according to the current sending rate CR, Int is the time interval from the last ACK packet received, RTT is the instantaneous round-trip delay, and TR is the target rate that is independent and dynamically changes with the delay.
2. A delay-based periodic congestion control method according to claim 1, characterized in that: The amplitude-frequency characteristic monitoring to determine whether the congestion control system is stable includes the following steps: The sending end periodically detects the amplitude-frequency characteristics of the currently collected delay information to determine the state of the congestion control system; when the amplitude-frequency characteristics remain unchanged for a period of time, the congestion control system is considered to be stable, otherwise it is unstable.
3. A delay-based periodic congestion control method according to claim 2, characterized in that: The sender periodically detects the amplitude-frequency characteristics of the currently collected delay information. When the sender receives an ACK packet, it subtracts the sending time of the ACK packet from the receiving time of the ACK packet to obtain the instantaneous round-trip delay RTT, and records all RTT information within the most recent detection period T time; then it performs a fast Fourier transform on the RTT information within the most recent T time to obtain the corresponding amplitude-frequency characteristics.
4. A delay-based periodic congestion control method according to claim 2, characterized in that: To judge the state of the congestion control system, the frequency corresponding to the maximum amplitude value in the amplitude-frequency characteristic within the detection period is taken as the dominant frequency fm; if the fm in two consecutive detection periods T time is close, the system is considered to be in a stable state, otherwise the system is considered to be in a convergent state, that is: Among them, fm pre is the dominant frequency in the previous detection cycle T time, fm is the dominant frequency in the current detection cycle T time, and RTTmin is the minimum round-trip delay value measured within the most recent preset time.
5. A delay-based periodic congestion control method according to claim 1, characterized in that: The steps of updating the acceleration factor θ include: each time the sending end updates the sending rate CR, it records whether CR increases or decreases; then the sending end counts the number of times CR increases and decreases within the current RTT, if the number of increases is greater than the number of decreases, the sending end records the sending rate adjustment direction as positive, otherwise the sending rate adjustment direction is negative; then it is determined whether the window adjustment directions within the last three consecutive RTTs are all positive, if so, θ is doubled, otherwise θ is reset to 1.
6. A delay-based periodic congestion control method according to claim 1, characterized in that: The target rate TR, which is independent and changes dynamically with the delay, is calculated by the following formula: Among them, queuing delay Qd = srtt-RTTmin, srtt is the exponentially weighted smoothed value of the default round-trip delay in TCP, RTTmin is the minimum round-trip delay value measured within the most recent preset time, Rc is the preset gain factor, and Bd is the preset maximum queuing delay.
7. A device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
