CN117376212A - Network rate adjustment method and device, storage medium and electronic equipment - Google Patents

Network rate adjustment method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117376212A
CN117376212A CN202311320380.2A CN202311320380A CN117376212A CN 117376212 A CN117376212 A CN 117376212A CN 202311320380 A CN202311320380 A CN 202311320380A CN 117376212 A CN117376212 A CN 117376212A
Authority
CN
China
Prior art keywords
current
trip delay
rate
round trip
adjustment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311320380.2A
Other languages
Chinese (zh)
Inventor
王子潇
陈映
车碧瑶
田源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Technology Innovation Center
China Telecom Corp Ltd
Original Assignee
China Telecom Technology Innovation Center
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Technology Innovation Center, China Telecom Corp Ltd filed Critical China Telecom Technology Innovation Center
Priority to CN202311320380.2A priority Critical patent/CN117376212A/en
Publication of CN117376212A publication Critical patent/CN117376212A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/127Avoiding congestion; Recovering from congestion by using congestion prediction

Abstract

The disclosure provides a network rate adjustment method, a device, electronic equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: transmitting a detection data packet to a receiving end according to the current transmission rate so as to carry out current network measurement; responding to the response message of the detection data packet returned by the receiving end, determining the current round trip delay measured by the current network, and judging whether a congestion notification message is received during the current network measurement; and under the condition that the congestion notification message is received during the measurement of the current network, the current sending rate is adjusted in a speed reducing way according to the last round trip delay and the current round trip delay. The method can quickly judge whether the transmission rate needs to be adjusted in a speed-reducing way, and can realize simple, convenient, effective and quick adjustment of the current transmission rate through a small amount of parameters.

Description

Network rate adjustment method and device, storage medium and electronic equipment
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a method and device for adjusting network rate, a storage medium and electronic equipment.
Background
With the development of computer technology and network technology, the speed of a data center network link is rapidly increased from 10G to more than 100G, and the traffic pattern is rapidly changed, so that the requirement on network performance is increasingly increased. Among them, the congestion control technique is an important means for improving network throughput, reducing delay, and ensuring network stability.
The congestion control algorithm used in the related technology often uses more parameters to regulate and control the speed, so that the algorithm deployment is complex, and the regulation and control efficiency is low; or the speed is regulated and controlled after long-time monitoring is carried out, so that the time spent for one time of regulation is long, and the regulation and control efficiency is low.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosure aims to provide a network rate adjustment method, a device, an electronic device and a storage medium, which can quickly judge whether a transmission rate needs to be adjusted in a speed-reducing way, and can realize simple, convenient, effective and quick adjustment of a current transmission rate through a small number of parameters.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to one aspect of the present disclosure, there is provided a network rate adjustment method, including: transmitting a detection data packet to a receiving end according to the current transmission rate so as to carry out current network measurement; responding to the response message of the detection data packet returned by the receiving end, determining the current round trip delay measured by the current network, and judging whether a congestion notification message is received during the current network measurement; and under the condition that the congestion notification message is received during the measurement of the current network, the current sending rate is adjusted in a speed reducing way according to the last round trip delay and the current round trip delay.
In one embodiment of the present disclosure, performing a deceleration adjustment on a current transmission rate according to a last round trip delay and a current round trip delay includes: judging whether the current round trip delay is smaller than or equal to the last round trip delay; under the condition that the current round-trip delay is smaller than or equal to the last round-trip delay, acquiring a current deceleration factor, and determining a first reduction ratio according to the deceleration factor; and performing deceleration adjustment on the current sending rate according to the first deceleration ratio.
In one embodiment of the present disclosure, the step-down adjustment is performed on the current transmission rate according to the previous round trip delay and the current round trip delay, and the step-down adjustment further includes: under the condition that the current round-trip delay is larger than the last round-trip delay, acquiring a current deceleration factor, and determining a second reduction ratio according to the deceleration factor; wherein the second reduction ratio is greater than the first reduction ratio; and performing deceleration adjustment on the current sending rate according to the second deceleration ratio.
In one embodiment of the present disclosure, the network rate adjustment method further includes: and under the condition that the congestion notification message is not received during the measurement of the current network, the current sending rate is subjected to speed increasing adjustment according to the last round trip delay and the current round trip delay.
In one embodiment of the present disclosure, the step-up adjustment of the current transmission rate according to the previous round trip delay and the current round trip delay includes: judging whether the current round trip delay is smaller than or equal to the last round trip delay; under the condition that the current round-trip delay is smaller than or equal to the last round-trip delay, acquiring the current ideal sending rate and a first acceleration constant; wherein the current ideal transmission rate is greater than or equal to the current transmission rate; determining the sum of the current ideal transmission rate and the first acceleration constant as the first updated ideal transmission rate; and carrying out speed increasing adjustment on the current transmission rate according to the ideal transmission rate after the first update.
In one embodiment of the present disclosure, according to the previous round trip delay and the current round trip delay, the current sending rate is subjected to speed increasing adjustment, and the sending rate after the speed increasing adjustment is obtained, further including: under the condition that the current round trip delay is larger than the last round trip delay, acquiring the current ideal sending rate and a second acceleration constant; the current ideal sending rate is larger than or equal to the current sending rate, and the second acceleration constant is smaller than the first acceleration constant; determining the sum of the current ideal transmission rate and the second acceleration constant as the second updated ideal transmission rate; and carrying out speed increasing adjustment on the current transmission rate according to the second updated ideal transmission rate.
In one embodiment of the present disclosure, in a case where the current round trip delay is less than or equal to the last round trip delay, the network rate adjustment method further includes: after the current sending rate is subjected to speed-down adjustment or speed-up adjustment, a preset factor adjustment constant and a current speed-down factor are obtained; the speed-down factor is updated in a reduced value according to the factor adjustment constant; and in the case that the current round trip delay is greater than the last round trip delay, the network rate adjustment method further comprises: after the current sending rate is subjected to speed-down adjustment or speed-up adjustment, a preset factor adjustment constant and a current speed-down factor are obtained; and performing increment updating on the deceleration factor according to the factor adjustment constant.
According to another aspect of the present disclosure, there is provided a network rate adjustment apparatus, including: the sending module is used for sending the detection data packet to the receiving end according to the current sending rate so as to carry out current network measurement; the determining module is used for responding to the response message returned by the receiving end to the detection data packet, determining the current round trip delay measured by the current network and judging whether a congestion notification message is received during the current network measurement; and the adjusting module is used for reducing and adjusting the current sending rate according to the last round trip delay and the current round trip delay under the condition that the congestion notification message is received during the current network measurement.
According to yet another aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the network rate adjustment method described above.
According to still another aspect of the present disclosure, there is provided an electronic apparatus including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the network rate adjustment method described above via execution of the executable instructions.
According to the network rate adjustment method provided by the embodiment of the disclosure, a detection data packet can be sent to a receiving end to perform network measurement, then the round trip delay in the measurement is determined, whether a congestion notification message is received during the measurement is judged, and further under the condition that the congestion notification message is received, the current sending rate is adjusted in a speed-reducing mode according to the last round trip delay and the current round trip delay. On the one hand, whether the transmission rate needs to be adjusted in a speed reducing way can be judged according to the information of whether the congestion notification message is received after the detection data packet is transmitted, so that the mode of judging whether the speed reducing adjustment is needed is simple, convenient and effective. On the other hand, under the condition that the speed reduction adjustment is determined to be needed, the speed reduction adjustment is carried out on the current sending rate according to the last round trip time delay and the current round trip time delay, so that the adjustment mode is simple, convenient and effective, excessive computing resources can be avoided being occupied, and an algorithm basis can be provided for real-time rapid speed control of the sending rate.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 illustrates a schematic diagram of an exemplary system architecture to which the network rate adjustment method of embodiments of the present disclosure may be applied;
FIG. 2 illustrates a flow chart of a network rate adjustment method of one embodiment of the present disclosure;
FIG. 3 shows a schematic diagram of a network topology to which the network rate adjustment method of embodiments of the present disclosure may be applied;
FIG. 4 shows a schematic diagram of a network rate adjustment method of one embodiment of the present disclosure;
FIG. 5 is a schematic diagram of adjusting a current transmission rate in a network rate adjustment method according to one embodiment of the present disclosure;
FIG. 6 illustrates a schematic diagram of updating a downshifting factor in a network rate adjustment method of one embodiment of the present disclosure;
FIG. 7 illustrates a block diagram of a network rate adjustment device of one embodiment of the present disclosure; and
fig. 8 shows a block diagram of a network rate adjustment computer device in an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present disclosure, the meaning of "a plurality" is at least two, such as two, three, etc., unless explicitly specified otherwise.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which the network rate adjustment method of embodiments of the present disclosure may be applied.
As shown in fig. 1, the system architecture may include a server 101, a network 102, and a client 103. Network 102 is the medium used to provide communication links between clients 103 and server 101. Network 102 may include various connection types such as wired, wireless communication links, or fiber optic cables, among others.
In an exemplary embodiment, the client 103 in data transmission with the server 101 may include, but is not limited to, a smart phone, a desktop computer, a tablet computer, a notebook computer, a smart speaker, a digital assistant, an AR (Augmented Reality) device, a VR (Virtual Reality) device, a smart wearable device, and the like. Alternatively, the operating system running on the electronic device may include, but is not limited to, an android system, an IOS system, a linux system, a windows system, and the like.
The server 101 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligent platforms, and the like. In some practical applications, the server 101 may also be a server of a network platform, and the network platform may be, for example, a transaction platform, a live broadcast platform, a social platform, or a music platform, which is not limited in the embodiments of the present disclosure. The server may be one server or may be a cluster formed by a plurality of servers, and the specific architecture of the server is not limited in this disclosure.
In an exemplary embodiment, a plurality of clients 101 may perform data transmission with the same server 101 through the same switch, where when the clients 101 perform data transmission as data transmission to the server 101, each client may perform data transmission according to a respective transmission rate, and may perform real-time regulation and control on its own transmission rate through the network rate adjustment method provided by the present disclosure, so that congestion can be avoided as much as possible, and data transmission is performed at a higher transmission rate, which not only can maximally avoid triggering PFC (Priority-based Flow Control ), but also can implement high fairness of higher bandwidth, multi-stream bandwidth allocation, and fast response to micro bursts.
In an exemplary embodiment, the procedure of the client 103 for implementing the network rate adjustment method may be: the client 103 sends the detection data packet to the receiving end according to the current sending rate so as to perform current network measurement; the client 103 determines the current round trip delay measured by the current network in response to the response message to the probe data packet returned by the receiving end, and judges whether a congestion notification message is received during the current network measurement; in the case that the congestion notification message is received during the current network measurement, the client 103 adjusts the current sending rate in a speed-reducing manner according to the previous round trip delay and the current round trip delay.
In addition, it should be noted that fig. 1 is only one application environment of the network rate adjustment method provided by the present disclosure. The number of servers 101, networks 102, and clients 103 in FIG. 1 is merely illustrative, and any number of clients, networks, and servers may be provided as desired.
In order for those of ordinary skill in the art to better understand the technical solutions of the present disclosure, the following describes in more detail the steps of the network rate adjustment method in the exemplary embodiments of the present disclosure with reference to the accompanying drawings and embodiments.
Fig. 2 shows a flow chart of a network rate adjustment method of one embodiment of the present disclosure. The method provided by the embodiments of the present disclosure may be performed by the server 101 or the client 103 as shown in fig. 1, but the present disclosure is not limited thereto.
In the following illustration, the client 103 is exemplified as an execution subject.
As shown in fig. 2, the network rate adjustment method provided by the embodiment of the present disclosure may include the following steps.
Step S201, sending the detection data packet to the receiving end according to the current sending rate so as to carry out the current network measurement.
In this step, the probe packet may be a preset RTT (Round-Trip Time) probe packet, which may be a current Round Trip Time packet for determining the current network measurement in a subsequent step.
In some practical applications, the client 103, as a transmitting end, may initially start transmitting at a low rate, where the start rate (initial rate) is a configurable super parameter, and may be configured according to practical needs, for example, may be configured as 1/256 of the maximum transmission rate. The configuration goal of this parameter is a compromise of initial bandwidth utilization and avoidance of triggering PFC. In the process of data transmission from the client 103, a plurality of probe data packets can be continuously transmitted at a preset frequency, so as to continuously update the transmission rate in real time; wherein, the sending frequency can be a configurable super parameter, for example, can be configured to be 4KB or 8KB; the larger the interval between two adjacent sending detection data packets is, the smoother the control is, the smaller the rate fluctuation is, the faster the interval is, the control response is, and the sending frequency can be regulated according to actual requirements.
In step S203, in response to the response message returned by the receiving end to the probe packet, the current round trip delay measured by the current network is determined, and it is determined whether a congestion notification message is received during the current network measurement.
When the receiving end receives the probe packet, an ACT (response message) indicating "received" may be generated and returned, and the sender may trigger the RTT completion event based on the received response message and record the receiving time at this moment, so that the current round trip delay (RTT value) may be determined according to the time of sending the probe packet and the receiving time.
In addition, the period when the secondary network measures may be from the sending end to the receiving end receiving the response message for the probe packet. In the process of transmitting the probe packet from the transmitting end to the receiving end, if the ECN is generated (Explicit Congestion Notification, congestion notification is displayed), the CNP is generated accordingly (Congestion Notification Packets, congestion notification packet), otherwise, if the ECN is not generated, the CNP is not generated, so that it can be further determined whether the congestion notification packet is received in the period after the received response message.
By this step, it can be determined that the current network measurement result contains RTT information (RTT value) and CNP information received or not, for adjustment of the transmission rate in the subsequent step. The number of received CNPs may be one or more, that is, the determination result of "determine whether or not a congestion notification message is received during the current network measurement" is yes as long as a CNP is received.
In step S205, in the case that the congestion notification message is received during the measurement of the current network, the current sending rate is adjusted in a speed-reducing manner according to the previous round trip delay and the current round trip delay.
In this step, the last round trip delay is determined by using the last transmission rate to transmit the probe packet in the last network measurement. After the current sending rate is adjusted in a deceleration way, the sending rate after the deceleration update can be obtained, and then the sending rate after the deceleration update can be used for sending the data stream. If the congestion notification message is received during the measurement of the secondary network, which means that congestion has occurred in the data transmission using the current sending rate, it can be inferred that the value of the current sending rate is too high, and downward adjustment is needed, so that it is expected that the adjusted sending rate will not generate congestion any more. In this step, the value-reducing process may be performed on the basis of the current transmission rate to implement the speed-reducing adjustment.
In some embodiments, a current downshifting factor may be obtained, and the current transmission rate may be downshifted using the current downshifting factor. The speed reduction factor can be a value between 0 and 1, can be a preset value, and can also be a value which can be regulated and controlled in real time along with the application environment.
According to the network rate adjustment method provided by the disclosure, a detection data packet can be sent to a receiving end to perform network measurement, then the round trip delay in the measurement is determined, whether a congestion notification message is received in the measurement period is judged, and further under the condition that the congestion notification message is received, the current sending rate is adjusted in a speed-reducing mode according to the last round trip delay and the current round trip delay. On the one hand, whether the transmission rate needs to be adjusted in a speed reducing way can be judged according to the information of whether the congestion notification message is received after the detection data packet is transmitted, so that the mode of judging whether the speed reducing adjustment is needed is simple, convenient and effective. On the other hand, under the condition that the speed reduction adjustment is determined to be needed, the speed reduction adjustment is carried out on the current sending rate according to the last round trip time delay and the current round trip time delay, so that the adjustment mode is simple, convenient and effective, excessive computing resources can be avoided being occupied, and an algorithm basis can be provided for real-time rapid speed control of the sending rate.
In some embodiments, "making a deceleration adjustment to the current transmission rate according to the last round trip delay and the current round trip delay" in step S205 may include: judging whether the current round trip delay is smaller than or equal to the last round trip delay; under the condition that the current round-trip delay is smaller than or equal to the last round-trip delay, acquiring a current deceleration factor, and determining a first reduction ratio according to the deceleration factor; and performing deceleration adjustment on the current sending rate according to the first deceleration ratio.
In this embodiment, the current round-trip delay is smaller than or equal to the previous round-trip delay, which means that, compared with the previous measurement, the round-trip delay obtained by using the current sending rate is already shortened, that is, the congestion situation is already relieved, so that the current sending rate can be adjusted in a reduced speed by a proper amplitude. In some implementations, the current transmission rate may be subject to normal deceleration processing with a small magnitude in the event of congestion relief.
In some practical applications, the deceleration factor may be denoted by α, where α may be a value between 0 and 1, and the first step-down ratio may be, for example, a product of a first preset coefficient and α, where it is required to ensure that the product of the first preset coefficient and α is still between 0 and 1. For example, the first preset coefficient may take a value of 1/4, and the first reduction ratio may be α/4, and if the current transmission rate is represented by rate_cur and the transmission rate obtained after the reduction adjustment is represented by rate_cur ', the rate_cur' may be determined according to the following formula when the current round trip delay is less than or equal to the last round trip delay: rate_cur' =rate_cur (1- α/4).
In some embodiments, "making a deceleration adjustment to the current transmission rate according to the last round trip delay and the current round trip delay" in step S205 may further include: under the condition that the current round-trip delay is larger than the last round-trip delay, acquiring a current deceleration factor, and determining a second reduction ratio according to the deceleration factor; wherein the second reduction ratio is greater than the first reduction ratio; and performing deceleration adjustment on the current sending rate according to the second deceleration ratio.
In this embodiment, the current round-trip delay is greater than the previous round-trip delay, which means that the round-trip delay obtained by using the current sending rate in the current measurement is longer than that in the previous measurement, that is, the congestion situation is aggravated, so that the current sending rate can be adjusted in a speed-reducing manner according with the amplitude of the current situation. In some practical applications, the current transmission rate may be subject to an ultra-slow process with a larger magnitude in the event of congestion exacerbation.
In some practical applications, the second reduction ratio may be, for example, a product of a second preset coefficient and α, where it is required to ensure that the second preset coefficient is greater than the first preset coefficient, and the product of the second preset coefficient and α is still between 0 and 1. For example, the second preset coefficient may take a value of 1/2, and then the first reduction ratio may be α/2, and assuming that the current transmission rate is represented by rate_cur, the transmission rate obtained after the reduction adjustment is represented by rate_cur ", where the current round trip delay is greater than the last round trip delay, the rate_cur" may be determined according to the following formula: rate_cur' =rate_cur (1- α/2).
In some embodiments, the network rate adjustment method provided by the present disclosure may further include: and under the condition that the congestion notification message is not received during the measurement of the current network, the current sending rate is subjected to speed increasing adjustment according to the last round trip delay and the current round trip delay.
In this embodiment, if the congestion notification packet is not received during the measurement period of the current network, which means that the current sending rate has not reached the threshold capable of triggering the ECN, the current sending rate may be added with appropriate value by combining the previous round trip delay and the current round trip delay value based on the current sending rate, so as to implement speed-up adjustment. After the transmission rate after the speed-up update is obtained, the data stream can be transmitted by using the transmission rate after the speed-up update. The threshold value of the ECN may be preset, specifically, may be configured by a command configured by the switch, and the switch configuration modes of different manufacturers may be different.
In some embodiments, the step-up adjustment of the current sending rate according to the last round trip delay and the current round trip delay includes: judging whether the current round trip delay is smaller than or equal to the last round trip delay; under the condition that the current round-trip delay is smaller than or equal to the last round-trip delay, acquiring the current ideal sending rate and a first acceleration constant; wherein the current ideal transmission rate is greater than or equal to the current transmission rate; determining the sum of the current ideal transmission rate and the first acceleration constant as the first updated ideal transmission rate; and carrying out speed increasing adjustment on the current transmission rate according to the ideal transmission rate after the first update.
In this embodiment, if the current round trip delay is less than or equal to the previous round trip delay, this means that the ECN is not generated in this measurement, and the round trip delay obtained by using the current transmission rate is also shortened, so the situation in this embodiment can be regarded as a situation where the network is clear, and in this case, the speed-up processing can be performed with a larger amplitude based on the current transmission rate.
The current ideal transmission rate may be regarded as a transmission rate used when CNP is received last time in all previous measurements, and is generally a value greater than the current transmission rate, and may be regarded as a target rate for adjusting the current transmission rate. The first acceleration constant is a superparameter, which can be represented using HAI; HAI may be configured prior to operation of the network rate adjustment method provided by the present disclosure, e.g., HAI may be set to 1/256 of the maximum rate; when the network topology formed by a plurality of sending terminals and a small number of receiving terminals and the switch hardware connecting the sending terminals and the receiving terminals are determined, the maximum rate can be determined, the HAI can be determined accordingly, and the HAI can be dynamically adjusted after the determination.
The current ideal transmission rate and the first acceleration constant can be acquired first, and then the current ideal transmission rate is updated by using the first acceleration constant, namely, the sum of the current ideal transmission rate and the first acceleration constant can be determined as the ideal transmission rate after the first update; and then, the current transmission rate can be increased and adjusted according to the first updated ideal transmission rate, and in some practical applications, the average value of the first updated ideal transmission rate and the current transmission rate can be used as the current transmission rate after the increase and adjustment under the condition of the unblocked network in the embodiment.
In some embodiments, according to the previous round trip delay and the current round trip delay, the current sending rate is subjected to speed increasing adjustment, and the sending rate after the speed increasing adjustment is obtained, further including: under the condition that the current round trip delay is larger than the last round trip delay, acquiring the current ideal sending rate and a second acceleration constant; the current ideal sending rate is larger than or equal to the current sending rate, and the second acceleration constant is smaller than the first acceleration constant; determining the sum of the current ideal transmission rate and the second acceleration constant as the second updated ideal transmission rate; and carrying out speed increasing adjustment on the current transmission rate according to the second updated ideal transmission rate.
In this embodiment, if the current round trip delay is greater than the previous round trip delay, this means that the round trip delay obtained by using the current transmission rate is longer although ECN is not generated in this measurement, so the case in this embodiment can be regarded as a case where there is a risk of congestion, and in this case, the additive acceleration processing can be performed with a smaller amplitude on the basis of the current transmission rate.
Wherein, similar to the first acceleration constant, the second acceleration constant is also a superparameter, which can be represented using AI; similar to HAI, the AI may also be configured prior to operation of the network rate adjustment method provided by the present disclosure, e.g., AI may be set to 1/2 of the maximum rate 15 The method comprises the steps of carrying out a first treatment on the surface of the When the network topology formed by a plurality of sending terminals and a small number of receiving terminals and the switch hardware connecting the sending terminals and the receiving terminals are determined, the maximum rate can be determined, the AI can be determined accordingly, and the AI can be dynamically adjusted after the determination.
The current ideal transmission rate and the second acceleration constant can be obtained first, and then the current ideal transmission rate is updated by using the second acceleration constant, namely, the sum of the current ideal transmission rate and the first acceleration constant can be determined as the second updated ideal transmission rate; and then, the current sending rate can be increased and adjusted according to the second updated ideal sending rate, and in some practical applications, the average value of the second updated ideal sending rate and the current sending rate can be used as the current sending rate after the increase and adjustment under the condition that congestion risk exists in the embodiment.
In some embodiments, in the case that the current round trip delay is less than or equal to the last round trip delay, the network rate adjustment method further includes: after the current sending rate is subjected to speed-down adjustment or speed-up adjustment, a preset factor adjustment constant and a current speed-down factor are obtained; and carrying out the value reduction updating on the speed reduction factor according to the factor adjustment constant.
And in the case that the current round trip delay is greater than the last round trip delay, the network rate adjustment method further comprises: after the current sending rate is subjected to speed-down adjustment or speed-up adjustment, a preset factor adjustment constant and a current speed-down factor are obtained; and performing increment updating on the deceleration factor according to the factor adjustment constant.
In this embodiment, the factor adjustment constant may be regarded as a super parameter, and may be represented by g, where g may be used to control the magnitude of the update of the deceleration factor α, and in some practical applications, g may be a preconfigured value satisfying 0< g <1, for example, g may take a value of 1/256. After the reduction factor is updated in a value-added or a value-reduced manner, the updated reduction factor can be applied to calculation of the reduction adjustment when the current transmission rate needs to be subjected to the reduction adjustment next time.
Under the condition that the current round-trip delay is smaller than or equal to the last round-trip delay, the congestion condition or congestion risk can be considered to be relieved, so that when the speed needs to be reduced, the data stream can be sent by trying to reduce a few sending rates, and the used reducing factor alpha can be smaller, so that the effect of reducing and adjusting the sending rate by using smaller reducing amplitude can be achieved. In some practical applications, assuming that the current reduction factor is denoted by α and the reduction factor obtained after the reduction update is denoted by α ', α' can be determined according to the following formula in the case that the current round trip delay is less than or equal to the last round trip delay: α' =α (1-g).
Under the condition that the current round-trip delay is larger than the last round-trip delay, congestion can be considered to be aggravated or congestion risk is about to exist, so that when the speed needs to be reduced, the data flow can be sent by attempting to reduce a plurality of sending rates, so that the congestion is expected to be relieved, and the used speed reduction factor alpha can be larger, so that the effect of reducing and adjusting the sending rate by larger amplitude reduction is achieved. In some practical applications, assuming that the current reduction factor is denoted by α, and the reduction factor obtained after the value-added update is denoted by α ", α″ may be determined according to the following formula in the case that the current round trip delay is greater than the last round trip delay: α "=α (1-g) +g.
Fig. 3 shows a schematic diagram of a network topology to which the network rate adjustment method of the embodiments of the present disclosure may be applied, as shown in fig. 3, including 100 senders, 1 switch 304, and 1 receiver 305, where the 100 senders may include a sender 301, a sender 302, and a sender 303.
In the network topology in this embodiment, 100 sending ends can send data streams simultaneously, where each sending end can send 10 streams with a size of 1M, so that a typical incast (also called TCP incast, a many-to-one communication mode) scenario can be formed. The bottleneck link at this time is the link from the switch 304 to the receiving end 305, and congestion occurs in the bottleneck link at this time because the total ingress bandwidth of the switch 304 is larger than the egress bandwidth.
The specific manifestations of congestion may be: the queue length in the switch 304 increases and when the queue length exceeds the switch's ECN marking threshold, the switch 304 will add an ECN marking to the forwarded packet. The receiving end 305 receives the ECN marked packet and immediately returns a CNP packet to notify the sending end that congestion occurs in the link.
For example, in some practical applications, the sending end 301 may be provided with an RTT measurement module, a rate control module, and a speed reduction factor update module, where the three modules may be all disposed on a sending end network card of the sending end 301, and the three modules may jointly function with network card hardware in the sending end 301 to implement a network rate adjustment architecture. Specifically, the RTT measurement module may send an RTT measurement request to the network card hardware; the rate control module can start the sending of the RTT detection packet by using a low rate after receiving the measurement request; the RTT measurement module can record a measurement result corresponding to the RTT detection packet; the rate control module may then read the RTT measurement result from the RTT measurement module and perform rate adjustment according to the case that the CNP (Congestion Notification Packets, congestion notification packet) is received during the measurement; the speed-down factor updating module can update the speed-down factor according to the RTT measurement result, so as to control the speed-down amplitude of the speed control module.
The round trip delay measurement used in this embodiment is the time of submitting the RTT measurement request from the sender to the ACK packet of the RTT measurement request returned by the receiver 305, and when the length of the queue in the switch 304 increases, the RTT will also increase accordingly.
The rate control module and the deceleration factor updating module running on the transmitting end 301 perform rate regulation and deceleration factor updating according to the flow in the foregoing technical solution.
In some practical applications, in the initial stage, the switch 304 will not send out an ECN packet, so that the sender will not receive a CNP, and the rate control module of each sender will quickly increase the sending rate, so as to achieve the maximum bandwidth utilization. Then, the queue of the switch 304 will increase rapidly until the ECN marking threshold is reached and an ECN signal is sent, and after receiving the ECN packet, the receiving end 305 returns the CNP to the sending end, and the rate control module of the sending end will immediately perform the speed-down process after receiving the CNP. After the rate decreases for a period of time, the switch 304 queues gradually drain until the CNP threshold is below. And when the rate control module of the transmitting end does not receive the CNP in one RTT measurement period, acceleration is performed again. Finally, the sending rate of each flow in each sending end in the network topology shown in fig. 3 tends to be stable, and the sending rate of each sending end that tends to be stable approaches the trigger of the ECN marking threshold of the switch 304 with a higher value, so by the scheme, the sending rate of the sending end can be automatically regulated and controlled, so that the sending rate is maintained at a higher value and congestion is triggered as little as possible.
Fig. 4 is a schematic diagram of a network rate adjustment method according to an embodiment of the present disclosure, where the embodiment may be applied to a transmitting end including an RTT measurement module, a rate control module, a reduction factor update module, and network card hardware, and as shown in fig. 4, the network rate adjustment method may include the following steps.
Step S401, the RTT measurement module sends an RTT measurement request to the network card hardware.
In step S403, the RTT measurement module records the transmission time t1.
Step S405, the network card hardware sends RTT probe packet.
Step S407, the network card hardware receives the ACK of the RTT detection packet and triggers the RTT completion event.
In step S409, the RTT measurement module records time t2, and calculates rtt=t2-t 1.
In step S411, the rate control module adjusts the speed according to the RTT and whether the CNP is received.
In step S413, the deceleration factor updating module updates the deceleration factor according to the RTT.
Step S415, notify the new transmission rate of the network card.
The execution sequence of step S411 and step S413 may not be limited; other details of the embodiment of fig. 4 may be found in the other embodiments described above.
Fig. 5 is a schematic diagram illustrating an adjustment of a current transmission rate in a network rate adjustment method according to an embodiment of the present disclosure, which may be applied after receiving RTT measurement results. As shown in fig. 5, the method of adjusting the current transmission rate may include the following steps.
Step S501, determining that the RTT measurement event is completed. When the sending end receives the response message to the detection data packet returned by the receiving end, it can determine that the RTT measurement event is completed.
Step S503, obtain the result RTT of the RTT measurement. Wherein, RTT may be a period of time between a time t1 when the RTT measurement request is transmitted and a time t2 when the above-mentioned response message is received.
Step S505, determining whether a CNP packet is received during the present RTT measurement. If yes, go to step S507; if not, step S515 is performed.
In step S507, it is determined whether the rtt is less than or equal to last_rtt. Wherein last_rtt is the last round trip delay determined in the last network measurement. If yes, go to step S509; if not, step S511 is performed.
Step S509, determining that congestion relief (normal deceleration) is in the present situation, the rate_cur may be updated by speed regulation in the manner of the right of the equal sign in the following formula: rate_cur=rate_cur (1- α/4); where rate_cur represents the current transmission rate and α represents the current downshifting factor.
In step S511, it is determined that congestion is aggravated (or is overdriven), and the rate_cur may be updated by speed regulation according to the right of the equal sign in the following formula: rate_cur=rate_cur (1- α/2).
Step S513, returns the speed-regulated transmission rate_cur to the network card hardware.
In step S515, it is determined whether the rtt is less than or equal to last_rtt. If yes, go to step S517; if not, step S519 is performed.
Step S517, determining that the network is clear (in a super speed-up manner), the rate_tar may be updated according to the following formula, where the equal sign is right: rate_tar=rate_tar+hai; where rate_tar represents the ideal transmission rate and HAI represents the first acceleration constant.
In step S519, the determination of the congestion risk (additive acceleration) at this time may be performed by updating the rate_tar in the manner to the right of the equal sign in the following formula: rate_tar=rate_tar+ai; wherein AI represents a second acceleration constant, which is smaller than the first acceleration constant HAI.
In step S521, the rate_cur is updated according to the updated rate_tar, specifically, the rate_cur may be updated in a manner of right of the equal sign in the following formula: rate_cur= (rate_tar+rate_cur)/2.
Other details of the embodiment of fig. 5 may be found in the other embodiments described above.
Through the embodiment, an algorithm for speed regulation based on combination of round trip delay and ECN is designed. The rate control module may divide 4 cases according to whether a CNP is received during the RTT measurement and the relationship between the size of the RTT measurement value measured at this time and the size of the RTT measurement value measured at last time, where the cases are respectively:
Network clear (case in step S517): the network is not congested and the switch queues are reduced;
risk of congestion (case in step S519): switch queues grow but have not reached a threshold that triggers ECN;
congestion relief (case in step S509): the last time the deceleration has been effected, the switch queue becomes shorter, but the queue length is still greater than the ECN threshold;
congestion aggravation (case in step S511): there is a trend towards increased network congestion.
And a corresponding speed regulation algorithm is designed for each condition, and the speed-regulated sending speed can be returned to the network card hardware. After the network card hardware receives the transmission rate after speed regulation, data transmission can be performed according to the new transmission rate.
Therefore, the algorithm for speed regulation based on the combination of round trip time delay and ECN designed by the scheme increases the end-to-end round trip time delay rtt as the input information of congestion control on the basis of widely used congestion control based on ECN, can effectively expand the information quantity represented by the network congestion state, and realizes more accurate control.
In addition, the starting rate (initial rate) and the speed increasing mechanism used in the scheme can comprehensively consider the length of the switch queue and the end-to-end time delay in the link, so that PFC triggering can be avoided to the greatest extent, and high fairness of multi-stream bandwidth allocation and quick response to micro-bursts are realized.
Fig. 6 shows a schematic diagram of updating a downshift factor in a network rate adjustment method according to an embodiment of the present disclosure. As shown in fig. 6, the update of the deceleration factor may include the following steps.
Step S601, determining that the RTT measurement event is completed.
Step S603, obtain the result RTT of the RTT measurement.
Step S605 determines whether rtt is less than or equal to last_rtt. If yes, go to step S607; if not, step S609 is performed.
In step S607, the deceleration factor α is updated according to the factor adjustment constant g, specifically, the deceleration factor α may be updated in a manner of right of the equal sign in the following formula: α=α (1-g).
Step S609, performing a value-reducing update on the deceleration factor α according to the factor adjustment constant g, specifically, may update α in a manner of right of the equal sign in the following formula: α=α (1-g) +g.
Other details of the embodiment of fig. 6 may be found in the other embodiments described above.
The method uses a deceleration factor alpha, which can be regarded as a super parameter for controlling the magnitude of each deceleration. According to the method, the speed reduction factor can be directly updated according to the measurement result of network measurement performed by sending the detection data packet, and then the reduction amplitude is regulated and controlled when the current sending rate needs to be updated in a speed reduction manner, so that the reduction amplitude is more suitable for the current situation (including the situation of congestion relief and the situation of congestion aggravation).
The speed reduction factor updating module can control the updating of the speed reduction factor according to the magnitude relation between the rtt measured at the time and the rtt measured value measured last time, so that the speed reduction factor after updating is called by the speed regulation rate control module to control the speed reduction amplitude. The speed reduction factor updating module can simplify the threshold configuration work of the timer and the bit counter, and simplify the configuration of relevant super parameters. These optimizations greatly reduce the difficulty of algorithm deployment, enabling the control of the underspeed adjustment of the current transmission rate in a simple and efficient manner.
It is noted that the above-described figures are only schematic illustrations of processes involved in a method according to an exemplary embodiment of the invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Fig. 7 shows a block diagram of a network rate adjustment device 700 of one embodiment of the present disclosure; as shown in fig. 7, includes: a transmitting module 701, configured to transmit a probe packet to a receiving end according to a current transmission rate, so as to perform current network measurement; a determining module 702, configured to determine a current round trip delay measured by the current network in response to a response message returned by the receiving end to the probe packet, and determine whether a congestion notification packet is received during the current network measurement; and the adjusting module 703 is configured to, in a case where a congestion notification packet is received during the current network measurement, perform a down-speed adjustment on the current sending rate according to the previous round trip delay and the current round trip delay.
By the network rate adjusting device, the detection data packet can be sent to the receiving end to perform network measurement, then the round trip delay in the measurement is determined, whether the congestion notification message is received in the measurement period is judged, and further under the condition that the congestion notification message is received, the current sending rate is adjusted in a speed reducing mode according to the last round trip delay and the current round trip delay. On the one hand, whether the transmission rate needs to be adjusted in a speed reducing way can be judged according to the information of whether the congestion notification message is received after the detection data packet is transmitted, so that the mode of judging whether the speed reducing adjustment is needed is simple, convenient and effective. On the other hand, under the condition that the speed reduction adjustment is determined to be needed, the speed reduction adjustment is carried out on the current sending rate according to the last round trip time delay and the current round trip time delay, so that the adjustment mode is simple, convenient and effective, excessive computing resources can be avoided being occupied, and an algorithm basis can be provided for real-time rapid speed control of the sending rate.
In some embodiments, the adjusting module 703 performs a speed-down adjustment on the current sending rate according to the previous round trip delay and the current round trip delay, including: judging whether the current round trip delay is smaller than or equal to the last round trip delay; under the condition that the current round-trip delay is smaller than or equal to the last round-trip delay, acquiring a current deceleration factor, and determining a first reduction ratio according to the deceleration factor; and performing deceleration adjustment on the current sending rate according to the first deceleration ratio.
In some embodiments, the adjusting module 703 performs a speed-down adjustment on the current sending rate according to the previous round trip delay and the current round trip delay, and further includes: under the condition that the current round-trip delay is larger than the last round-trip delay, acquiring a current deceleration factor, and determining a second reduction ratio according to the deceleration factor; wherein the second reduction ratio is greater than the first reduction ratio; and performing deceleration adjustment on the current sending rate according to the second deceleration ratio.
In some embodiments, the adjustment module 703 is further configured to: and under the condition that the congestion notification message is not received during the measurement of the current network, the current sending rate is subjected to speed increasing adjustment according to the last round trip delay and the current round trip delay.
In some embodiments, the adjusting module 703 adjusts the current sending rate according to the previous round trip delay and the current round trip delay, including: judging whether the current round trip delay is smaller than or equal to the last round trip delay; under the condition that the current round-trip delay is smaller than or equal to the last round-trip delay, acquiring the current ideal sending rate and a first acceleration constant; wherein the current ideal transmission rate is greater than or equal to the current transmission rate; determining the sum of the current ideal transmission rate and the first acceleration constant as the first updated ideal transmission rate; and carrying out speed increasing adjustment on the current transmission rate according to the ideal transmission rate after the first update.
In some embodiments, the adjusting module 703 performs speed-up adjustment on the current sending rate according to the previous round trip delay and the current round trip delay, to obtain a speed-up adjusted sending rate, and further includes: under the condition that the current round trip delay is larger than the last round trip delay, acquiring the current ideal sending rate and a second acceleration constant; the current ideal sending rate is larger than or equal to the current sending rate, and the second acceleration constant is smaller than the first acceleration constant; determining the sum of the current ideal transmission rate and the second acceleration constant as the second updated ideal transmission rate; and carrying out speed increasing adjustment on the current transmission rate according to the second updated ideal transmission rate.
In some embodiments, the network rate adjustment device 700 further includes a factor update module 704, where the current round trip delay is less than or equal to the last round trip delay, the factor update module 704 is configured to: after the current sending rate is subjected to speed-down adjustment or speed-up adjustment, a preset factor adjustment constant and a current speed-down factor are obtained; the speed-down factor is updated in a reduced value according to the factor adjustment constant; and, in the case that the current round trip delay is greater than the last round trip delay, the factor update module 704 is further configured to: after the current sending rate is subjected to speed-down adjustment or speed-up adjustment, a preset factor adjustment constant and a current speed-down factor are obtained; and performing increment updating on the deceleration factor according to the factor adjustment constant.
Other details of the embodiment of fig. 7 may be found in the other embodiments described above.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
Fig. 8 shows a block diagram of a network rate adjustment computer device in an embodiment of the present disclosure. It should be noted that the illustrated electronic device is only an example, and should not impose any limitation on the functions and application scope of the embodiments of the present invention.
An electronic device 800 according to such an embodiment of the invention is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 8, the electronic device 800 is embodied in the form of a general purpose computing device. Components of electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, and a bus 830 connecting the various system components, including the memory unit 820 and the processing unit 810.
Wherein the storage unit stores program code that is executable by the processing unit 810 such that the processing unit 810 performs steps according to various exemplary embodiments of the present invention described in the above section of the "exemplary method" of the present specification. For example, the processing unit 810 may perform the method as shown in fig. 2.
The storage unit 820 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 8201 and/or cache memory 8202, and may further include Read Only Memory (ROM) 8203.
Storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 830 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 800, and/or any device (e.g., router, modem, etc.) that enables the electronic device 800 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 850. Also, electronic device 800 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 860. As shown, network adapter 860 communicates with other modules of electronic device 800 over bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 800, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
A program product for implementing the above-described method according to an embodiment of the present invention may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
According to one aspect of the present disclosure, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the methods provided in the various alternative implementations of the above-described embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A method for adjusting network rate, comprising:
transmitting a detection data packet to a receiving end according to the current transmission rate so as to carry out current network measurement;
Responding to the response message of the detection data packet returned by the receiving end, determining the current round trip delay measured by the current network, and judging whether a congestion notification message is received during the current network measurement;
and under the condition that the congestion notification message is received during the measurement of the current network, the current sending rate is adjusted in a speed reducing mode according to the last round trip time delay and the current round trip time delay.
2. The method of claim 1, wherein the downshifting the current transmission rate based on the last round trip delay and the current round trip delay comprises:
judging whether the current round trip delay is smaller than or equal to the last round trip delay;
under the condition that the current round-trip delay is smaller than or equal to the last round-trip delay, acquiring a current deceleration factor, and determining a first reduction ratio according to the deceleration factor;
and performing speed reduction adjustment on the current sending rate according to the first amplitude reduction ratio.
3. The method of claim 2, wherein the current transmission rate is adjusted to be slower based on a last round trip delay and the current round trip delay, further comprising:
Under the condition that the current round-trip delay is larger than the last round-trip delay, acquiring a current deceleration factor, and determining a second reduction ratio according to the deceleration factor; wherein the second reduction ratio is greater than the first reduction ratio;
and performing speed reduction adjustment on the current sending rate according to the second amplitude reduction ratio.
4. The method according to claim 1, wherein the method further comprises:
and under the condition that the congestion notification message is not received in the period of the current network measurement, carrying out speed-increasing adjustment on the current sending speed according to the last round trip time delay and the current round trip time delay.
5. The method of claim 4, wherein the step-up adjustment of the current transmission rate based on the last round trip delay and the current round trip delay comprises:
judging whether the current round trip delay is smaller than or equal to the last round trip delay;
under the condition that the current round-trip delay is smaller than or equal to the last round-trip delay, acquiring a current ideal sending rate and a first acceleration constant; wherein the current ideal transmission rate is greater than or equal to the current transmission rate;
Determining the sum of the current ideal sending rate and the first acceleration constant as a first updated ideal sending rate;
and carrying out speed increasing adjustment on the current sending rate according to the first updated ideal sending rate.
6. The method of claim 5, wherein the step-up adjustment is performed on the current transmission rate according to the previous round trip delay and the current round trip delay to obtain a step-up adjusted transmission rate, further comprising:
under the condition that the current round-trip delay is larger than the last round-trip delay, acquiring a current ideal sending rate and a second acceleration constant; wherein the current ideal transmission rate is greater than or equal to the current transmission rate, and the second acceleration constant is less than the first acceleration constant;
determining the sum of the current ideal sending rate and the second acceleration constant as a second updated ideal sending rate;
and carrying out speed increasing adjustment on the current sending rate according to the second updated ideal sending rate.
7. The method according to any one of claims 1 to 6, wherein,
in the case that the current round trip delay is less than or equal to the last round trip delay, the method further comprises: after the current sending rate is subjected to speed-down adjustment or speed-up adjustment, a preset factor adjustment constant and a current speed-down factor are obtained; performing a reduction update on the deceleration factor according to the factor adjustment constant; the method comprises the steps of,
In the case that the current round trip delay is greater than the last round trip delay, the method further comprises: after the current sending rate is subjected to speed-down adjustment or speed-up adjustment, a preset factor adjustment constant and a current speed-down factor are obtained; and carrying out increment updating on the deceleration factor according to the factor adjustment constant.
8. A network rate adjustment device, comprising:
the sending module is used for sending the detection data packet to the receiving end according to the current sending rate so as to carry out current network measurement;
the determining module is used for responding to the response message of the detection data packet returned by the receiving end, determining the current round trip delay measured by the current network and judging whether a congestion notification message is received during the current network measurement;
and the adjusting module is used for reducing and adjusting the current sending rate according to the last round trip delay and the current round trip delay under the condition that the congestion notification message is received during the current network measurement period.
9. A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the network rate adjustment method according to any of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs that when executed by the one or more processors cause the one or more processors to implement the network rate adjustment method of any of claims 1 to 7.
CN202311320380.2A 2023-10-12 2023-10-12 Network rate adjustment method and device, storage medium and electronic equipment Pending CN117376212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311320380.2A CN117376212A (en) 2023-10-12 2023-10-12 Network rate adjustment method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311320380.2A CN117376212A (en) 2023-10-12 2023-10-12 Network rate adjustment method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117376212A true CN117376212A (en) 2024-01-09

Family

ID=89397617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311320380.2A Pending CN117376212A (en) 2023-10-12 2023-10-12 Network rate adjustment method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117376212A (en)

Similar Documents

Publication Publication Date Title
EP1946497B1 (en) Adaptive bandwidth control
US9231878B2 (en) Shaping virtual machine communication traffic
CN106789718B (en) Data transmission congestion control method, equipment, server and programmable equipment
CN110266551A (en) A kind of bandwidth prediction method, apparatus, equipment and storage medium
CN113453045B (en) Network bandwidth prediction method, system, device and storage medium
CN111835649B (en) Data transmission method, device and related components
CN104734985A (en) Data receiving flow control method and system
CN112887217B (en) Control data packet sending method, model training method, device and system
CN109660467B (en) Method and apparatus for controlling flow
US11258717B2 (en) Method for sending service packet, network device, and system
CN111917586A (en) Container bandwidth adjusting method, server and storage medium
CN113141314B (en) Congestion control method and equipment
CN111343097B (en) Link load balancing method and device, electronic equipment and storage medium
CN113364701B (en) RTT (round trip time) -based congestion control method and equipment combining proportional-integral-derivative control
CN112491736B (en) Congestion control method and device, electronic equipment and storage medium
WO2019109902A1 (en) Queue scheduling method and apparatus, communication device, and storage medium
CN113395671A (en) Message pushing rate adjusting method and device and server
CN117376212A (en) Network rate adjustment method and device, storage medium and electronic equipment
EP4344153A1 (en) Active queue management method for network device and network device
CN116319569A (en) Network parameter updating method, network parameter updating device, medium and electronic equipment
CN114900477B (en) Message processing method, server, electronic equipment and storage medium
US20240137327A1 (en) Active queue management method for network device and network device
WO2023119511A1 (en) Communication device, communication system, and communication method
CN111901253B (en) Flow control method, flow control device, flow control medium and electronic equipment for storage system
CN113141319B (en) Message processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination