Method and related device for controlling network congestion
By detecting network bandwidth through detection packets, the data packet transmission rate can be dynamically adjusted, which solves the problem of long delay in traditional congestion control methods and improves network transmission performance.
Patent Information
- Application Number
- CN202010742582.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-07-29
AI Technical Summary
The traditional congestion control method is based on packet loss signals, which causes network congestion to be adjusted after a delay, resulting in a packet backlog in the communication network and affecting data transmission performance.
Detect network bandwidth by sending detection packets, and adjust the transmission rate of data packets based on the detected bandwidth to achieve network congestion control.
It achieves data transmission without packet loss and full throughput, avoids the normal occurrence of network congestion, and improves the transmission performance of the communication network.
Smart Images

Figure CN114095434B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and more specifically, to a method and related apparatus for controlling network congestion in a communication network. Background Art
[0002] When transmitting data packets in a communication network, network congestion usually occurs. Based on the network congestion problem, congestion control methods are proposed in the communication field.
[0003] The traditional congestion control method detects the congestion status of the communication network based on congestion signals such as packet loss, and controls the packet sending rate of the data message from the source end of the data message based on the congestion status of the communication network to control the congestion status of the communication network. Specifically, when it is detected that the data message is not lost, the sending rate of the data packet is increased; when it is detected that the data message is lost, the sending rate of the data message is reduced to alleviate the network congestion.
[0004] Although the traditional congestion control method can alleviate the congestion of the communication network to a certain extent, it is a "late-witness" mechanism. When the source receives the packet loss signal, the data packet has already been lost, which has caused performance loss. The subsequent speed reduction adjustment has lagged behind the time point of network congestion. Therefore, under this mechanism, congestion in the communication network becomes the norm, and packet backlogs in communication equipment also become the norm. The packet backlog will seriously deteriorate the end-to-end delay of data packet transmission, and ultimately affect the performance of data packet transmission in the communication network. Summary of the invention
[0005] The present application provides a method and a related device for controlling network congestion. The technical solution of the present application can detect the bandwidth of the network through a detection message that is not afraid of packet loss, and control the transmission rate of the data message based on the detected network bandwidth.
[0006] In a first aspect, the present application provides a method for controlling network congestion. The method includes: a first network device sends a first detection message, the first detection message refers to a detection message whose source device is the first network device and whose destination device is the second network device, and the detection message is used to detect the available bandwidth on the transmission path between the source device and the destination device; the first network device receives first feedback information, the first feedback information is used to indicate the reception status of the first detection message on the second network device; the first network device sends a first data message based on the first feedback information, the first data message refers to a data message whose source device is the first network device and whose destination device is the second network device.
[0007] In this method, because the first network device first detects the bandwidth that can be used to transmit data packets from the first network device to the second network device based on the detection message before sending the data packet, and sends the data packet to the second network device based on the detected available bandwidth, it helps to reasonably utilize network bandwidth resources to send data to the second network device, thereby achieving network congestion control.
[0008] In some possible implementations, the first network device sending a first data packet based on the first feedback information includes:
[0009] Based on the first feedback information, the first network device sends the first data packet to the second network device through a third network device, and the third network device is used to send detection packets using a first ratio of bandwidth and to send data packets using a second ratio of bandwidth, wherein a ratio of a first rate at which the first network device sends the first data packet to a second rate at which the second network device receives the first detection packet is equal to a ratio of the second ratio to the first ratio.
[0010] In these implementations, the third network device is preset to use a first ratio of bandwidth to send the detection message, and is preset to use a second ratio of bandwidth to send the data message. In this way, after the first network device receives the first feedback information, it can learn the rate at which the second network device receives the first detection message according to the reception rate of the first feedback information, and control the sending rate of the data message at this time, i.e., the second rate, according to the reception rate of the detection message on the first network device, the bandwidth ratio occupied by the detection message, and the bandwidth ratio that the data message can occupy.
[0011] Among them, the first network device sends the first data message based on the first detection feedback information, and the rate of the first data message is exactly the second rate, which can enable the third network device to forward the first data message sent by the first network device to the second network device with full throughput and no packet loss.
[0012] In some possible implementations, the second network device is configured to: send one first feedback message each time the first detection message is received. Wherein, the first network device sends the first data message based on the first feedback information, including: the first network device sends one first data message each time the first feedback message is received.
[0013] In these implementations, the second network device sends a first feedback message each time it receives a first detection message, and the first network device sends a first data message each time it receives a first feedback message, so that the rate of the first data message is exactly the second rate, so that the first data message can be transmitted to the second network device without packet loss and at full throughput.
[0014] In some possible implementations, the first network device sends a first detection message, including: the first network device sends the first detection message using a third rate; the first network device obtains a first packet loss rate when the first network device sends the first detection message using the third rate; the first network device determines the second rate based on the first packet loss rate; and the first network device sends the first detection message based on the second rate.
[0015] That is, in these implementations, the detection message sending rate corresponding to the available bandwidth for the current network to transmit the detection message sent by the first network device to the second network device is obtained based on the third rate used for sending the first detection message previously and the packet loss rate when the first detection message was sent previously using the third rate, that is, the second rate, and the first detection message is resent using the second rate. In this way, the sending rate of the current detection message can be adjusted in time to achieve that the detection message can be transmitted to the second network device at full throughput, thereby achieving that the first data message can be transmitted to the second network device at full throughput.
[0016] In some possible implementations, the first network device sends the first detection message based on the second rate, including: when the second rate is less than or equal to a preset rate threshold, the first network device sends the first detection message using a preset target rate, and the target rate is greater than the second rate; or when the second rate is greater than the rate threshold, the first network device sends the first detection message using the second rate.
[0017] That is, when the second rate is low, it is determined that the network load is heavy and the available bandwidth is low. At this time, the first detection message can be sent using a preset fixed target rate to keep the detection message flowing, thereby keeping the data message flowing.
[0018] When the second rate is relatively large, it is determined that the network load is relatively light and more bandwidth is available. At this time, the adjusted second rate can be used to send the first detection message, so as to make full use of network resources to send the first detection message, so as to detect the most reasonable available bandwidth of the data message, so as to make full use of network resources to send the data message, and achieve full throughput and no packet loss transmission of the first data message.
[0019] In some implementations, the first network device is one of a plurality of network devices, wherein target rates of detection messages of all network devices in the plurality of network devices are the same.
[0020] Each network device uses the same target rate in the heavy load mode, which can achieve fair convergence of detection messages of multiple network devices.
[0021] In some possible implementations, the target rate is the same as the rate threshold, so that when switching from the third rate to the target rate, the transmission rate of the detection message in the communication network can converge quickly.
[0022] In some possible implementations, when the detection message forwarded by the third network device on the transmission path from the first network device to the second network device only includes the first detection message, the first network device can successfully transmit a specified number of first detection messages from the first network device to the second network device within a specified time period using the target rate.
[0023] In these implementations, the destination rate of the first detection message is relatively aggressive, that is, relatively large, so network resources can be fully utilized to send the first detection message to detect the available bandwidth of the data message, so that network resources can be fully utilized to send the first data message and achieve full throughput and loss-free transmission of the first data message.
[0024] In some possible implementations, the first network device determines the second rate according to the first packet loss rate, including: when the first packet loss rate is less than a preset packet loss rate threshold, the first network device adjusts the sending rate of the first detection message based on the first packet loss rate and the third rate to obtain the second rate. Wherein, the first network device sends the first detection message based on the second rate, including: the first network device sends the first detection message using the second rate.
[0025] That is, if the packet loss rate is small, it means that the light load mode has been entered. At this time, a more suitable second rate can be adjusted according to the packet loss rate and the previous third rate. In this way, resources can be fully utilized to transmit detection messages, thereby fully utilizing resources to transmit data messages.
[0026] In some possible implementations, the packet loss rate threshold is greater than a packet loss rate of the first detection message when the first network device sends the first detection message using the second rate.
[0027] Because the packet loss rate threshold is greater than the packet loss rate at the second rate, the first network device will adjust the speed when switching from the heavy load mode to the light load mode, thereby not destroying the fairness between the original sending rates of multiple source devices.
[0028] In some possible implementations, the second rate is obtained based on the first packet loss rate and the third rate using a structure-behavior-performance (SCP) strategy or a fast channel strategy.
[0029] In this way, the sending rate of the detection messages of each sending device can be converged quickly and fairly, thereby achieving fast and fair convergence of the sending rate of the data messages of each network device.
[0030] In a second aspect, the present application provides a method for controlling network congestion. The method includes: a second network device receives a first detection message, the first detection message refers to a detection message whose source device is the first network device and whose destination device is the second network device, and the detection message is used to detect the available bandwidth on the transmission path between the source device and the destination device; the second network device sends first feedback information, the first feedback information is used to indicate the reception status of the first detection message by the second network device; the second network device receives a first data message sent by the first network device based on the first feedback information, the first data message refers to a data message whose source device is the first network device and whose destination device is the second network device.
[0031] In the method, after receiving the detection message, the second network device feeds back the reception status of the detection message to the source device that sent the detection message, so that the source device can learn the available bandwidth of the network according to the reception status, and then the source device can send data messages based on the available bandwidth.
[0032] In some possible implementations, the second network device sending the first feedback information includes: the second network device sending one piece of the first feedback information each time it receives one of the first detection messages.
[0033] In some other possible implementations, the first feedback information is specifically used to indicate that the second network device has received the first detection message.
[0034] In a third aspect, the present application provides a method for controlling network congestion. The method comprises: a third network device receives a detection message, the detection message is used to detect the available bandwidth on the transmission path between the source device and the destination device; the third network device forwards the detection message; the third network device receives feedback information, the feedback information is used to indicate the situation that the destination device receives the detection message; the third device forwards the feedback information; the third device receives a data message sent by the source device based on the feedback information; the third device forwards the data message.
[0035] In the method, a third network device acts as an intermediate device between a source device that sends probe messages and data messages and a destination device that receives the probe messages and data messages, and assists in sending probe messages to detect available bandwidth that can be used to send data messages, so that the source device can control the sending of data messages based on the available bandwidth, thereby controlling the congestion of data messages.
[0036] In some possible implementations, the third network device forwards the detection message, including: the third network device uses a first proportion of the bandwidth to send the detection message; the third network device forwards the data message, including: the third network device uses a second proportion of the bandwidth to send the data message; wherein, the ratio of the rate at which the third network device receives the first data message to the rate at which the third network device receives the first detection message is equal to the ratio of the second proportion to the first proportion.
[0037] In this implementation, the third network device uses a preset ratio to send a probe message, so that the source device that sends the probe message can obtain the actual bandwidth used to send the probe message based on the reception of the probe message at the destination device, and then can obtain the available bandwidth that can be used to send data messages based on the bandwidth and the preset first ratio and second ratio, and finally can achieve loss-free and full-throughput transmission of data messages based on the available bandwidth.
[0038] In some possible implementations, the third network device forwarding the feedback information includes: the third network device forwarding the feedback information with the highest priority.
[0039] In this implementation, the third network device preferentially transmits feedback information, that is, preferentially feeds back the reception status of the detection message, thereby improving the success rate and accuracy of the source device sending the detection message in obtaining the reception status of the detection message, and further improving the success rate and accuracy of the source device in obtaining the available bandwidth for transmitting data messages, and ultimately improving the success rate and accuracy of controlling network congestion.
[0040] In a fourth aspect, the present application provides a network congestion control device, which includes a module for executing the method in the above-mentioned first aspect or any one of the implementations thereof.
[0041] In a fifth aspect, the present application provides a network congestion control device, which includes a module for executing the method in the above second aspect or any one of the implementations thereof.
[0042] In a sixth aspect, the present application provides a network congestion control device, which includes a module for executing the method in the third aspect or any one of the implementations thereof.
[0043] In the seventh aspect, a network congestion control device is provided, which includes: a memory, a processor and a transceiver; the memory is used to store programs; the processor is used to execute the programs stored in the memory; the transceiver is used to communicate with other devices or equipment; when the program stored in the memory is executed, the processor and the transceiver are used to execute the method in the first aspect or any one of the implementations thereof.
[0044] In an eighth aspect, a network congestion control device is provided, the device comprising: a memory, a processor and a transceiver; the memory is used to store programs; the processor is used to execute the programs stored in the memory; the transceiver is used to communicate with other devices or equipment; when the program stored in the memory is executed, the processor and the transceiver are used to execute the method in the second aspect or any one of the implementations thereof.
[0045] In the ninth aspect, a network congestion control device is provided, which includes: a memory, a processor and a transceiver; the memory is used to store programs; the processor is used to execute the programs stored in the memory; the transceiver is used to communicate with other devices or equipment; when the program stored in the memory is executed, the processor and the transceiver are used to execute the method in the third aspect or any one of the implementations thereof.
[0046] In a tenth aspect, a computer-readable medium is provided, which stores a program code for execution by a device, wherein the program code is used to execute the method in the first aspect or any one of the implementations thereof.
[0047] In an eleventh aspect, a computer-readable medium is provided, wherein the computer-readable medium stores a program code for execution by a device, wherein the program code is used to execute the method in the second aspect or any one of the implementations thereof.
[0048] In a twelfth aspect, a computer-readable medium is provided, which stores a program code for execution by a device, wherein the program code is used to execute the method in the third aspect or any one of its implementations.
[0049] In a thirteenth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method in the first aspect or any one of the implementations thereof.
[0050] In a fourteenth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method in the second aspect or any one of the implementations thereof.
[0051] In a fifteenth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method in the third aspect or any one of the implementations thereof.
[0052] In the sixteenth aspect, a chip is provided, comprising a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface to execute the method in the first aspect or any one of the implementations thereof.
[0053] Optionally, as an implementation method, the chip may also include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the method in the first aspect or any one of the implementation methods.
[0054] In the seventeenth aspect, a chip is provided, comprising a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface to execute the method in the above-mentioned second aspect or any one of the implementation methods thereof.
[0055] Optionally, as an implementation method, the chip may also include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the method in the second aspect or any one of the implementation methods.
[0056] In the eighteenth aspect, a chip is provided, comprising a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface to execute the method in the third aspect or any one of the implementations thereof.
[0057] Optionally, as an implementation method, the chip may also include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the method in the third aspect or any one of the implementation methods.
[0058] In the nineteenth aspect, a computing device is provided, comprising: a memory for storing programs; and a processor for executing the programs stored in the memory, wherein when the programs stored in the memory are executed, the processor is used to execute the method in the first aspect or any one of the implementations thereof.
[0059] In the twentieth aspect, a computing device is provided, which includes: a memory for storing programs; a processor for executing the programs stored in the memory, when the program stored in the memory is executed, the processor is used to execute the method in the second aspect or any one of the implementations thereof.
[0060] In the twenty-first aspect, a computing device is provided, comprising: a memory for storing programs; and a processor for executing the programs stored in the memory, wherein when the program stored in the memory is executed, the processor is used to execute the method in the third aspect or any one of the implementations thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 This is an example diagram of an application scenario of the technical solution of the present application.
[0062] Figure 2 It is an exemplary interactive flow chart of the control method of the present application.
[0063] Figure 3 It is an example diagram of transmitting detection messages and data messages according to proportional bandwidth in the control method of the present application.
[0064] Figure 4 is another exemplary flow chart of the control method of the present application.
[0065] Figure 5 is another exemplary flow chart of the control method of the present application.
[0066] Figure 6 It is another exemplary flow chart of the control method of the present application.
[0067] Figure 7 It is an exemplary structural diagram of the control device of the present application.
[0068] Figure 8 is another exemplary structural diagram of the control device of the present application.
[0069] Fig. 9 It is an exemplary structural diagram of the computer program product of the present application. DETAILED DESCRIPTION
[0070] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0071] The technical solutions of the embodiments of the present application can be applied to various communication networks, such as a wide area network (WAN), a metropolitan area network (MAN), a local area network (LAN) or a data center network.
[0072] The source device in the embodiment of the present application may also be referred to as a source host, a source end, a source node or a source side, etc., which refers to the sending end of the data. Further, the source device sending the data may be understood as a network device indicated by the source Internet protocol (IP) address of the data. In the embodiment of the present application, the source device sending the data is referred to as the source device of the detection message or the data message.
[0073] The destination device in the embodiment of the present application may also be referred to as a destination host, a destination end, a destination node or a destination side, etc., which refers to the final receiving end of the data, that is, the destination of the data. Further, the destination device for receiving the data may be understood as a network device indicated by the destination IP address of the data. In the embodiment of the present application, the destination device for receiving the data is referred to as the destination device of the data.
[0074] The data in the embodiment of the present application may include data messages and detection messages. The meaning of the data message can refer to the definition of the data message in the prior art, which will not be repeated here.
[0075] The detection message in this embodiment is used to detect the load condition of the transmission path between the source device and the destination device of the detection message. The load condition of the transmission path may include the available bandwidth condition of the transmission path, such as the available bandwidth of the transmission path. Alternatively, it can be understood that the detection message is used to detect or reserve the bandwidth that can be used to transmit data messages in the next transmission cycle.
[0076] The length of the probe message may be pre-set, for example, a probe message may be encapsulated as a 64-byte (byte, B) Ethernet frame. Typically, the probe message may only include a header, and the content included in the header may be the same as the content in the header of the data message sent in the subsequent steps, for example, the same five-tuple information.
[0077] The intermediate device in this embodiment may also be called an intermediate node, a forwarding device, a transit device, a transit node, a switch, a routing device, a router or a routing node, which refers to a communication device that can forward data sent by a source device to a destination device.
[0078] Figure 1 is a schematic architecture diagram of a communication network to which the technical solution of the embodiment of the present application can be applied. Figure 1 As shown, a communication network to which the technical solution of the embodiment of the present application can be applied may include a source host 110, an intermediate node 120 and a destination host 130.
[0079] Understandably, Figure 1 Only one source host, one intermediate node and one destination host are exemplified in the figure. The communication network to which the technical solution of the embodiment of the present application can be applied may include more source hosts, more intermediate nodes and more destination hosts.
[0080] Figure 1 In the communication network shown, the source host 110 acts as a sender of data messages and sends data messages at a certain rate. After the data message arrives at the intermediate node 120, the intermediate node 120 sends the data message to the destination host 130 using the available bandwidth.
[0081] If the data message transmission rate is too fast, the intermediate node 120 will not have time to forward the received data packets, and these data packets that have not been forwarded in time will be accumulated in the intermediate node 120. When the data packets in the cache of the intermediate node 120 are accumulated to a certain extent, the intermediate node 120 will discard the received data packets that have not been forwarded in time, resulting in data message packet loss. At this time, it can be considered that the network is congested.
[0082] In order to avoid packet loss, that is, to avoid congestion, the present application proposes a new technical solution to control the congestion of the communication network. Figure 2 This is an exemplary flow chart of a method for controlling network congestion according to an embodiment of the present application. The method may include S210, S220, S230, S240, S250 and S260.
[0083] S210: A first network device sends a first detection message, wherein the first network device is a source device of the first detection message, for example, the source IP address in the first detection message is the IP address of the first network device.
[0084] The first network device may be any source device in the communication network, and the size of the first detection message may be preset.
[0085] In some possible implementations of this embodiment, the first network device may send the first detection message packet by packet at equal intervals.
[0086] In this embodiment, the first network device sending a detection message can be understood as the first network device sending a first detection message to the second network device, wherein the second network device is the destination device of the first detection message, for example, the network device indicated by the destination IP address in the first detection message is the second network device.
[0087] In this embodiment, after the first network device sends the first detection message, a third network device on the transmission path from the first network device to the second network device can receive the first detection message.
[0088] S220: The third network device forwards the first detection message.
[0089] In some examples, the third network device may receive probe messages sent by one or more network devices to one or more other network devices, and forward the probe messages, which may include a first probe message sent by the first network device to the second network device.
[0090] The transmission path from the first network device to the second network device may include one or more third network devices. If the transmission path from the first network device to the second network device includes a third network device, after the third network device sends a detection message, the second network device receives the first detection message in the detection message; if the transmission path from the first network device to the second network device includes multiple third network devices, after each third network device receives the detection message sent by the previous hop device, it forwards the detection message to the next device, and the detection message includes the first detection message, until the second network device receives the first detection message.
[0091] After the first detection message is forwarded by one or more third network devices, the second network device may receive the first detection message.
[0092] S230: The second network device sends first feedback information, wherein the first feedback information is used to indicate a reception status of the first detection message on the second network device.
[0093] For example, the first feedback information may be specifically used to indicate that the second network device has received the first detection message. For another example, the first feedback information may be specifically used to indicate the time when the second network device received the first detection message. For another example, the first feedback information may be specifically used to indicate that the second network device has received the first detection message and the time when the second network device received the first detection message.
[0094] In some possible implementations, after receiving the first detection message, the second network device may modify the destination address in the first detection message to the source address of the first detection message, and send out the modified new detection message.
[0095] Optionally, the detection message of this embodiment may include a trip identifier, which may include an outbound trip identifier and a return trip identifier, the outbound trip identifier is used to indicate that the detection message is sent from the source device to the destination device, and the return trip identifier is used to identify the detection message destination device returning to the source device. In this case, the second network device not only modifies the destination address of the first detection message, but also modifies the trip identifier of the first detection message from the outbound trip identifier to the return trip identifier.
[0096] After the second network device sends the first feedback information, a third network device on the transmission path from the second network device to the first network device may receive the first feedback information.
[0097] In this embodiment, the second network device may send feedback information corresponding to each detection message received. It is understandable that this is only an example, and the second network device may also use other methods to send the first feedback information, such as carrying feedback information corresponding to multiple detection messages in the same message after receiving multiple detection messages.
[0098] S240: The third network device sends first feedback information.
[0099] It is understandable that the transmission path from the first network device to the second network device and the transmission path from the second network device to the first network device may be the same or different. That is, the third network device in this step may be the same device as the third network device in S220 or may be a different device.
[0100] For example, when the transmission path from the first network device to the second network device is different from the transmission path from the second network device to the first network device, the third network device in this step is a different device from the third network device in S220.
[0101] In some implementations, the third network device may send the feedback information as a data message. That is, the third network device may forward the feedback information in the same manner or with the same resources as the data message.
[0102] The transmission path from the second network device to the first network device may include one or more third network devices. If the transmission path from the second network device to the first network device includes one third network device, after the third network device sends the first feedback information, the first network device receives the first feedback information; if the transmission path from the second network device to the first network device includes multiple third network devices, after each third network device receives the first feedback information sent by the previous hop device, it forwards the first feedback information to the next hop device until the first network device receives the first feedback information.
[0103] S250: The first network device sends a first data message based on the first feedback information, wherein the source device of the first data message is the first network device, and the destination device of the first data message is the second network device.
[0104] Generally speaking, the path that the first data message passes through is the same as the path that the first detection message passes through. Therefore, after the first network device sends the first data message, the third network device that forwards the first data message from the first network device to the second network device is consistent with the third network device that forwards the first detection message from the first network device to the second network device.
[0105] S260: The third network device receives a data packet and forwards the data packet, where the data packet includes the first data packet.
[0106] Typically, the third network device in this step is the third network device in S220, that is, the path that the first data message passes through is the same as the path that the first detection message passes through.
[0107] After the third network device sends the data message, the second network device can receive the first data message in the data message.
[0108] In this embodiment, the network status of the communication network is sensed by sending a detection message in advance, and the sending of data messages is guided, so that congestion and packet loss will not occur in the data message channel, that is, "foresight" lossless congestion control is achieved.
[0109] In the embodiments of the present application, the transmission of the detection message and the data message can be isolated in a variety of ways.
[0110] In some ways, the third network device may allocate bandwidth to a detection channel for sending detection messages and a data channel for sending data messages in the same physical link according to a certain ratio, so as to logically isolate the two types of channels, thereby logically isolating the detection messages and the data messages. For example, the ratio may be the ratio of the packet length of the detection message and the data message to the total packet length of the two types of messages.
[0111] In other ways, the source device may transmit the detection message by constructing an independent signaling network to achieve physical isolation of the detection message and the data message.
[0112] In an example of transmitting detection messages and data messages in a logically isolated manner, the third network device may use a first ratio of bandwidth to send a detection message, which includes the first detection message, and the third network device may use a second ratio of bandwidth to send a data message, which includes the first data message.
[0113] The first ratio and the second ratio may be preset. That is, the ratio of bandwidth used to send the detection message and the ratio of bandwidth used to send the data message on the third network device are preset.
[0114] In some possible implementations, the first ratio and the second ratio on the third network device may be set based on the sizes of the probe message and the data message.
[0115] For example, in a scenario where a detection message is constructed with a minimum Ethernet frame of 84 bytes and the source device is driven to transmit a data message with a maximum Ethernet frame of 1538 bytes, the bandwidth that the third network device can allocate for the detection message accounts for approximately 84 / (84+1538)≈5% of the total bandwidth of the third network device, and the bandwidth allocated for the data message accounts for approximately 95% of the total bandwidth.
[0116] Figure 3 This is a schematic diagram of a method for sending a detection message and a data message in proportion according to an embodiment of the present application. Figure 3 As shown, the intermediate node 330 between the source host 310 and the destination host 320 can reserve 5% of the bandwidth to send the detection message, and use the remaining 95% of the bandwidth to send the data message. Regardless of the current available bandwidth of the intermediate node 330, only 5% of the available bandwidth can be used to send the detection message, and only 95% of the available bandwidth can be used to send the data message.
[0117] If the bandwidth of the egress port of the intermediate node 330 is 10 Gbps, the intermediate node 330 uses a bandwidth of 9.5 Gbps to send data packets and a bandwidth of 0.5 Gbps to send detection packets. If the source host 310 sends the first detection packet at a rate of 1 Gbps, it means that the number of transmissions of the first detection packet is too fast (the packet interval is too small), and at this time, the intermediate node 330 will limit the rate of the first detection packet of the egress port.
[0118] Specifically, the intermediate node 330 will limit the transmission rate of the first detection message to 0.5Gbps, that is, 500 megabits per second (Mbps). The transmission rate of 500Mbps is just the optimal transmission rate of the first detection message. After the destination host 320 receives the detection message transmitted by the intermediate node 330 at a transmission rate of 500Mbps, it sends the first feedback information to the source host 310. After the source host 310 receives the first feedback information, it can be learned from the first feedback information that the load of the intermediate node 330 can be transmitted to the destination host 320, that is, the current network can just transmit the first detection message with a transmission rate of 500Mbps to the destination host 320. According to the ratio of the first ratio of 5% to the second ratio of 95%, it can be known that the current network can just use the best rate of 9.5Gbps to send the first data message, so that network resources can be fully utilized without packet loss and congestion.
[0119] In a scenario where the intermediate node sends the detection message and the data message according to a certain ratio of bandwidth, in some implementations, the third network device may use a bandwidth other than the first ratio to send the first feedback information. For example, when the first feedback information is a detection message obtained by modifying the first detection message, the third network device may determine, based on the return identifier in the detection message, that the detection message is fed back by the second network device to the first network device, and therefore use the bandwidth used to send the data message to send the detection message.
[0120] In the embodiment of the present application, when the first network device sends the first detection message in the first round, it can send the packet in a relatively aggressive manner, so that network resources can be fully utilized.
[0121] Generally speaking, when the first network device sends the first detection message for the first round, the sending rate of the first detection message may be higher than the bandwidth requirement of the application on the first network device. For example, the sending rate of the first detection message may be initialized to 1.5 times the bandwidth requirement of the application.
[0122] In an embodiment of the present application, during the non-first-round sending process of the first detection message, the first network device can adjust the sending rate of the first detection message to achieve the purpose of controlling the sending rate of the first detection message, thereby achieving the purpose of controlling the sending rate of the first data message, and further achieving the purpose of controlling network congestion.
[0123] In some implementation methods of adjusting the sending rate of the first detection message, if the rate currently used by the first network device to send the first detection message is called the third rate, the first network device can obtain the first packet loss rate when the first network device uses the third rate to send the first detection message, and determine the second rate according to the first packet loss rate and send the first detection message based on the second rate.
[0124] In an embodiment of the present application, a structure-conduct-performance (SCP) strategy may be used to obtain the second rate based on the third rate and the first packet loss rate. For example, a congestion control method based on online learning in the SCP strategy may be used.
[0125] In the SCP strategy, the first network device can be based on the current transmission rate r in real time. C and packet loss rate l to calculate the utility function f w,b (r C ,l), and adjust the change direction (increase or decrease) of the transmission rate of the first detection message according to the change direction (increase or decrease) of the utility function, that is, increase the third rate to obtain the second rate or reduce the third rate to obtain the second rate.
[0126] Utility function f wb (r C ,l) is as follows:
[0127]
[0128] Among them, s, a, b and w are parameters, and their specific values can be obtained through online learning; r P Indicates the sending rate of the detection message in the previous cycle, and l0 indicates the target packet loss rate.
[0129] In an embodiment of the present application, it can be determined whether the transmission of the first detection message is about to be in a light load mode or a heavy load mode based on the first packet loss rate and / or the second rate. For example, if the second rate is greater than a preset rate threshold, it is considered that the transmission of the first detection message is about to be in a light load mode, otherwise it is considered that it is about to be in a heavy load mode. For another example, if the first packet loss rate is less than a preset packet loss rate threshold, it is considered that the transmission of the first detection message is about to be in a light load mode, otherwise it is considered that the transmission of the first detection message is about to be in a heavy load mode.
[0130] If the transmission of the first detection message is about to be in the light load mode, the first detection message is sent using the second rate; if the transmission of the first detection message is about to be in the heavy load mode, the first detection message is sent using the preset target rate.
[0131] In some implementations, the set target rate should meet the following conditions: when the detection message forwarded by the third network device on the transmission path from the first network device to the second network device only contains the first detection message, the first network device can successfully transmit a specified number of first detection messages from the first network device to the second network device within a specified time period using the target rate. In this way, when the sending of the first detection message is switched from a light load mode to a heavy load mode, for example, when the third rate is greater than the target rate and the second rate is less than or equal to the target rate, the first detection message is sent without reducing the speed, so that the first detection message can be avoided from being disconnected, thereby avoiding the disconnection of the first data message. In particular, when multiple source devices send data messages at high speed at the same time, the problem of disconnection can be avoided.
[0132] In some implementations, the target rates of the probe messages of all the source devices among the multiple source devices may be the same, which can achieve fair convergence of the sending rates of the probe messages of these source devices.
[0133] In some implementations, the preset rate threshold may be equal to a preset target rate, so that when the first network device switches from a light load mode to a heavy load mode, a rapid convergence of the transmission rate of the first detection message may be achieved.
[0134] In the light load mode, after the second rate is obtained based on the third rate and the first packet loss rate, it can be determined whether to continue to maintain the light load mode or switch to the heavy load mode based on the second rate and the preset target rate.
[0135] In some implementations of the embodiments of the present application, the first network device may determine whether the sending of the first detection message is in a light load mode or a heavy load mode according to the third rate. For example, if the third rate is greater than a preset rate threshold, it indicates that it is currently in a light load mode, otherwise it indicates that it is currently in a heavy load mode.
[0136] If the current mode is light load, the first detection message is sent using the adjusted second rate; if the current mode is heavy load, the first detection message is sent using the preset target rate. The characteristics of the rate threshold and the target rate in this implementation can refer to the relevant content of the aforementioned rate threshold and target rate.
[0137] In some implementations of the embodiments of the present application, after obtaining the first packet loss rate, the first network device can first determine, based on the first packet loss rate and a preset packet loss rate threshold, whether to continue using the target rate to send the first detection message or to adjust the third rate and use the adjusted second rate to send the first detection message.
[0138] That is, after the first detection message is transmitted using the third rate, it is determined according to the first packet loss rate whether the transmission of the first detection message is currently in a light load mode or a heavy load mode. If it is currently in the light load mode, the first detection message is sent using the adjusted second rate; if it is currently in the heavy load mode, the first detection message is sent using the preset target rate. In this way, network resources can be fully utilized to send detection messages, and thus network resources can be fully utilized to send data messages.
[0139] In this implementation, when the third rate is adjusted to obtain the second rate, the SCP strategy can be used to obtain the second rate based on the third rate and the first packet loss rate. The acquisition method can refer to the above method.
[0140] Optionally, the first packet loss rate may be equal to parameter l0 in the utility function. This allows the first network device to continue the iterative convergence process of the transmission rate of the first detection message when switching to the light load mode, and achieve fast and fair convergence of the first detection message.
[0141] In some implementations of the embodiments of the present application, each time the second network device receives a first detection message, it sends a first feedback message, the destination device of the first feedback message is the first network device, and the source device of the first feedback message is the second network device. For example, the first feedback message can be a detection message obtained by exchanging and modifying the destination address and source address of the first detection message. In this implementation, each time the first network device receives a first feedback message, it sends a first data message.
[0142] In this implementation, if the second network device can successfully receive a first detection message, it can correspondingly successfully receive a first data message. Therefore, this implementation can avoid congestion caused by the first data message and packet loss of the first data message.
[0143] In some implementations of the embodiments of the present application, the operating system kernel of the source host needs to be modified accordingly and a new transport layer protocol needs to be written. For example, a protocol that is parallel to traditional transport layer protocols such as the transmission control protocol (TCP) and the user datagram protocol (UDP) can be written.
[0144] In addition, the intermediate nodes also need to make relevant modifications at the software level. For example, the intermediate nodes need to reserve a certain cache for the detection messages to store the bursts of detection messages, and the egress ports of the intermediate nodes need to reserve a certain proportion of bandwidth specifically for sending detection messages, and discard the detection messages that exceed the reserved bandwidth; normal data messages can use a certain proportion of bandwidth to send, for example, use the link bandwidth outside the bandwidth reserved for the detection message to transmit the data message.
[0145] Since the detection message has been rate-adjusted by the intermediate node, the data message transmission rate guided by the detection message rate is just right. In this way, through the cooperation between the source host and the intermediate node, lossless transmission of data messages can be achieved, that is, transmission without packet loss.
[0146] The technical solution of the present application can be used for congestion control of high-concurrency data flows in low-latency networks. In some examples, dual congestion signals are introduced to adjust the transmission rate of the first detection message in light load and heavy load modes, respectively. For example, whether to switch from light load mode to heavy load mode is determined based on whether the transmission rate of the first detection message is as low as a preset rate threshold; whether congestion control is switched from heavy load mode to light load mode is determined by judging whether the packet loss rate of the current first detection message is as low as a preset packet loss rate threshold.
[0147] In a congestion control example of the present application, when a source host has data to transmit, it first transmits probe messages in the control channel at equal intervals according to the initialization rate until the probe packet sent back by the destination host is received. After the first round of data transmission, during the subsequent data transmission process of the source host, the sending rate of the data message will be regulated based on the sending rate and receiving status of the probe message, while the sending rate of the probe message will be regulated based on the RTT period and the packet loss rate of the probe message.
[0148] For example, the source host initializes the timer to zero, and sends a data message each time the source host receives a probe message, and updates the timer time t and the packet loss rate l of the probe message. Afterwards, the source host compares the size of the current timing time field RTT.
[0149] If the timer time t does not reach the length of an RTT, continue to loop and execute the operation of "receive probe message-send data message-update timer-update probe message packet loss rate"; if the timer time t reaches the length of an RTT, compare the current probe message sending rate r C The size of the target rate r0 is used to determine whether to enter the heavy load mode.
[0150] If r CIf r0, then execute the congestion control method in the light load mode, that is, increase or decrease the sending rate of the probing packet in the next round according to the specified algorithm, and reset the packet loss rate l and the time t of the timer; otherwise, enter the heavy load congestion control mode.
[0151] In the heavy load congestion control mode, the source host sends probing packets at a fixed rate r0. In this mode, the sending rate of the probing packets will not be adjusted, and the source host always sends probing packets at equal intervals at the rate of r0. Similarly, the source host repeatedly executes the operations of "receiving probing packets - sending data packets - updating the timer - updating the packet loss rate of the probing packets". When the timer time t reaches the duration of one RTT, the source host compares the current packet loss rate l of the probing packet with the preset packet loss rate threshold l0 to determine whether to switch back to the light load congestion control mode.
[0152] If l < l0, then switch back to the previous light load congestion control mode, and adjust the sending rate of the probing packets according to the specified congestion control algorithm; otherwise, continue the congestion control process in the heavy load mode, that is, continue to send probing packets at equal intervals at a fixed rate r0, and reset the packet loss rate l of the probing packet and the timer time t.
[0153] The third network device reserves a part of the link bandwidth specifically for transmitting the probing packets from the source host to the destination host. When the third network device receives data, it first performs parsing and judgment. If it determines that the data is a probing packet from the source host to the destination host, it uses the reserved link bandwidth to transmit the packet; otherwise, it uses the non-reserved link bandwidth to transmit the data.
[0154] Once the destination host receives the packet sent by the source host, it performs parsing and judgment. If it determines that the packet is a probing packet, it changes the source and destination addresses of the packet and returns the probing packet to the source host. If the packet is a data packet, it performs normal parsing and processing operations.
[0155] To ensure that the probing packet returned by the destination host to the source host can be successfully returned to the source host, the third network device can increase the transmission priority of the probing packet additionally.
[0156] Figure 4 It is an exemplary flowchart of the network congestion control method for an embodiment of the present application. For example, the network congestion control method as shown can be applied in a low-latency network. Figure 4 shown network congestion control method.
[0157] The following details each step of the control method. The control method can be executed by the source host, starting from the beginning of data transmission until the data transmission is completed.
[0158] S401, the source host needs to transmit data.
[0159] S402, determine whether this round of data transmission is the first round of transmission, and enter different branch steps according to the determination result. If this round of transmission is the first round of data transmission, enter S403; if this round of transmission is not the first round of data transmission, enter S404.
[0160] S403: Initialize the first round sending rate of the detection message. For example, the first round sending rate of the detection message may be initialized to 1.5 times the application bandwidth requirement.
[0161] S404, sending a detection message at an initial rate. For example, sending the detection message at an initial rate at equal intervals in a control channel. The logical channel for sending the detection message is called a control channel.
[0162] S405, the source host determines whether it has received the detection message sent back by the destination host, and enters different branch steps according to the judgment result. If the detection message sent back by the destination host is received, the first round of transmission ends and enters S406; if the detection message sent back by the destination host is not received, enter S404 and continue the transmission of the first round of detection messages.
[0163] After the first round of transmission, the transmission rate of the probe message and the data message can be adjusted. The transmission rate of the data message is adjusted according to the rate of the returned probe message; while the transmission rate of the probe message is adjusted to ensure that the sending rate of the probe messages of multiple different flows (for example, from multiple different source hosts) can achieve fair convergence on the shared bottleneck link. For example, the sending rate of the probe message can be adjusted based on the RTT period.
[0164] S406, initializing a target rate r0 and initializing a target packet loss rate l0. The target packet loss rate in this embodiment may also be referred to as a packet loss rate threshold.
[0165] S407, calculate the sending rate r of the detection message in this round according to the feedback information of the previous round C For example, according to the sending rate and packet loss rate l of the previous round of detection messages, the sending rate r of the current round of detection messages is obtained. C .
[0166] In the light load mode, the sending rate of the detection message can be adjusted according to the value change of the utility function. Specifically, the value of the utility function can be calculated, and the sending rate of the detection message can be adjusted according to the SCP solution according to the change of the utility function.
[0167] S408, setting the timer t=0 and setting the packet loss rate l of the detection message=0.
[0168] S409, comparing the calculated detection message sending rate r C The comparison result is different from the target rate r0, and different branches are entered according to the comparison result.C > r0, then proceed to step S410, i.e., the light load mode; if r C ≤ r0, then proceed to step S414, i.e., the rate adjustment in the heavy load mode.
[0169] S410, use the newly calculated r C Send a probe packet.
[0170] S411, for each received backhaul probe packet, send a data packet.
[0171] S412, record the time interval Δt between the current and the last received backhaul probe packet, and update the timer t = t + Δt; also, update the probe packet loss rate l according to the sequence number of the backhaul probe packet.
[0172] S413, determine whether the current timer duration has reached the RTT size, and enter different branch steps according to the judgment result. If the timer duration reaches the RTT size, then enter S414, i.e., the rate adjustment in the light load mode. If the timer duration has not reached the RTT size, then continue with S410.
[0173] S414, send a probe packet at a fixed target rate r0. Since the probe packet is sent at a fixed transmission rate without adjusting the transmission rate, fairness convergence is naturally satisfied.
[0174] S415, for each received backhaul probe packet, send a data packet.
[0175] S416, update the probe packet loss rate l, and update the timer t = t + Δt.
[0176] S417, determine whether the current timer duration has reached the RTT size, and enter different branch steps according to the judgment result. If the timer duration reaches the RTT size, then enter S418; if the timer duration has not reached the RTT size, then enter S414.
[0177] S418, determine whether l < l0, i.e., determine whether to switch between light and heavy load modes. Specifically, compare the loss rate l of the current round of probe packets with the target loss rate l0, and enter different branch steps according to the comparison result. If l < l0, then enter S407, i.e., perform rate control in the light load mode; if l ≥ l0, then enter S419.
[0178] S419, set the timer t = 0 and set the probe packet loss rate l = 0, and continue to execute S414 to continue the rate control in the heavy load mode.
[0179] S407 to S419 are continuously executed after the first round of transmission until the entire data transmission process from the source end to the destination end is completed.
[0180] In this embodiment, after the advance rehearsal transmission of the detection message, the transmission rate of the data message can ensure full utilization of the network bandwidth while ensuring absolutely no packet loss. Among them, in light load mode, the control algorithm of the SCP policy can achieve fast and fair convergence; in heavy load mode, all source nodes send detection messages at a uniform rate, which naturally meets the fairness convergence, further improving the overall fairness convergence speed of the strategy. In addition, the judgment condition for switching from heavy load mode to light load mode is l≥l0, and the convergence point of rate control in light load mode is l=0. Therefore, after switching back to light load mode, the entire strategy will continue to iterate and adjust the rate, and the mode switching will not destroy the fairness convergence process of light load mode.
[0181] A schematic flow chart of another embodiment of the method for controlling network congestion of the present application is as follows: Figure 5 For example, in a low-latency network, Figure 5 The control method shown.
[0182] The method can be executed by the destination host, and the destination host executes the operation in the method each time it receives a probe message or a data message.
[0183] S510, the destination host receives data.
[0184] S520, after receiving the data, the destination host first determines whether the data is a detection message or a data message. If the received packet is a data message, then enter S530; if the received packet is a detection message, then enter S540.
[0185] S530, parsing and processing the data packet. The data packet can be processed by using the working method of the traditional transport layer protocol to decapsulate and process the data packet.
[0186] S540, returning the detection message. For example, the source IP and destination IP of the detection message are swapped, and the detection message is returned to the source host.
[0187] Each time the destination host receives a probe message or data message, it executes Figure 5 The method shown parses and processes the data message and returns the detection message.
[0188] A schematic flow chart of another embodiment of the method for controlling network congestion of the present application is as follows: Figure 6 For example, in a low-latency network, Figure 6 The control method shown.
[0189] The method can be performed by a third network device of the network and lasts throughout the entire end-to-end transmission process. The third network device allocates a certain proportion of bandwidth to each link, which is specifically used to transmit detection messages, such as allocating 5% of the bandwidth to transmit detection messages; and uses other link bandwidths outside the allocated bandwidth to transmit data messages, such as using the other 95% of the bandwidth to transmit data messages.
[0190] S610: The third network device receives data transmitted by a previous hop device. The previous hop device of the third network device may be a source host or another third network device.
[0191] S620, after receiving the data from the previous hop device, the third network device first determines whether the received packet is a data message or a detection message. If the received packet is a data message, the process proceeds to step S630; if the received packet is a detection message, the process proceeds to step S640.
[0192] S630: Use bandwidth other than that allocated to the detection message to transmit the data message, or in other words, use non-reserved bandwidth to transmit the data message.
[0193] S640, determine whether the detection message is an outbound detection message or a return detection message, and enter different branch steps according to the determination result. The outbound detection message refers to the detection message sent from the source host to the destination host, and the return detection message refers to the detection message sent from the destination host to the source host.
[0194] If the detection message is an outbound detection message, the process proceeds to step S650 ; if the detection message is a return detection message, the process proceeds to step S660 .
[0195] S650, use the pre-allocated bandwidth ratio to transmit the outbound detection message. The third network device may reserve a small amount of cache, for example, a cache of 8 detection message sizes, to cope with the burst transmission of the detection message. When the detection message cache is full, the received redundant detection messages are discarded.
[0196] S660: Use the bandwidth used to transmit the data message to transmit the return detection message, wherein the return detection message is transmitted with the highest priority.
[0197] implement Figure 5 and Figure 6 The method is equivalent to using the detection message as a "stand-in" for the data message, rehearsing the data transmission process in the current network environment, and passing the accurate network load status to the source host through the packet loss of the third network device detection message and the return of the destination host detection message. In this way, Figure 4The source host in the detection message can accurately control the transmission rate of the data message according to the network status reflected by the detection message, thereby achieving rapid convergence and losslessness of the entire congestion control process. The entire congestion control process is coordinated by end-to-end devices (source host, destination host and third network devices).
[0198] Figures 4 to 5 The implementation scheme of the embodiment is specially designed for the congestion control scheme of the overload mode, so that low-latency, high-throughput, and congestion-free end-to-end transmission can still be maintained in the overload mode. Among them, by taking advantage of the dual-channel (the channel for transmitting the detection message and the channel for transmitting the data message) architecture, all source hosts can send detection messages at a fixed rate in the overload mode. At the same time, the sending rate is relatively aggressive, so that the control channel used to send the detection message is continuously in a packet loss state, thereby ensuring that the data channel can have full throughput and no packet loss when transmitting data messages. In addition, in the overload mode, the transmission of the detection message does not slow down, and the source host can always receive the return detection message and send data messages, thereby avoiding the problem of flow interruption.
[0199] in addition, Figure 4 The illustrated embodiment selects a suitable mode switching point. When congestion control switches from heavy load mode to light load mode, the light load mode will not immediately determine that the convergence point has been reached, but will continue to iteratively adjust the transmission rate toward the convergence point, and eventually converge to a predetermined steady-state transmission rate, thereby ensuring that switching between the light load mode and the heavy load mode will not affect the fairness convergence process of the light load mode. When congestion control switches from the light load mode to the heavy load mode, the entire transmission will immediately converge to the steady-state rate, thereby accelerating the convergence process of the entire congestion control scheme to a certain extent.
[0200] The congestion control method proposed in this application can also be applied to data center networks. In the light load mode of the data center network, the data center network congestion control algorithm in the academic paper "ExpressPass" published by ACM SIGCOMM in 2019 can be selected.
[0201] SIGCOMM is the flagship conference of the Association for Computing Machinery (ACM) in the field of communication networks. In the "ExpressPass" solution, the congestion control algorithm regulates the sending rate of each data stream until the packet loss rate of all probe message data streams reaches the target packet loss rate (target_loss). In terms of rate regulation, the probe message sending rate for the next cycle is calculated through the current rate (cur_rate), regulation weight (w), maximum rate (max_rate), current probe message loss rate (credit_loss) and target packet loss rate (target_loss).
[0202] Based on the "ExpressPass" algorithm, this application introduces a rate adjustment method in the overload mode and selects appropriate conversion points for the light and heavy load modes. Specifically, when cur_rate ≤ r0, it switches from the light load mode to the heavy load mode; when credit_loss < l0, it switches from the heavy load mode to the light load mode.
[0203] Assume that the network environment is still a low-latency network with an RTT of 10 microseconds (us) and a bottleneck link bandwidth of 100 Gbps. An embodiment of congestion control implemented in the data center network is as follows:
[0204] Step 701, the source host initializes the target packet loss rate (target_loss), the maximum rate (max_rate), the weight (w = 0), and the maximum weight (w max = 0.5).
[0205] Step 702, the source host initializes the performance parameters for the light and heavy load mode conversion: r0 = 100 Mbps, 0 < l0 < target_loss.
[0206] Step 703, the source host sends probe packets at equal intervals according to the target rate and requests bandwidth according to the application requirements. Among them, a certain proportion (such as 5%) of the bandwidth is reserved by the third network device in the network as a control channel to transmit probe packets.
[0207] Step 704, on the forward journey, the outgoing port of the third network device performs committed access rate (CAR) rate limiting on all probe packets at a certain bandwidth ratio (such as 5%), and discards the probe packets that exceed the port capacity.
[0208] Step 705, the destination host swaps the source address and destination address of the received probe packet and sends the probe packet back.
[0209] Step 706, the third network device sends the probe packet back to the source host with the highest priority. On the return journey, the third network device does not perform rate limiting on the probe packet.
[0210] Step 707, the source host immediately sends a data packet every time it receives a probe packet.
[0211] After one RTT cycle, the source host determines whether to switch between the light load mode and the heavy load mode based on the probe packet loss rate and the sending rate.
[0212] If cur_rate ≤ r0, it switches to the heavy load mode and sends probe packets at a fixed rate r0 until the next state switch; if cur_rate > r0, it performs rate regulation in the light load mode.
[0213] In the light load mode, if the current packet loss rate is less than the target packet loss rate, the speed is increased, and the rate calculation formula is as follows: cur_rate = (1 - w) * cur_rate + w * max_rate * (1 + target_loss); if the current packet loss rate is greater than the target packet loss rate, the speed is decreased, and the rate calculation formula is as follows: cur_rate = cur_rate * (1 - credit_loss) * (1 + target_loss).
[0214] In the heavy load mode, if credit_loss < l0, switch to the light load mode and perform rate convergence according to the target packet loss rate; if credit_loss ≥ l0, continue to send probe packets at a fixed rate r0.
[0215] As can be seen from the above method, the technical solution of this application can be applied to a data center network that is more sensitive to delay. Among them, the conversion point from the heavy load mode to the light load mode is credit_loss < l0. Since l0 < target_loss, after the mode switch, the iterative speed adjustment process will still be carried out, and the fairness convergence process of the original solution will not be damaged. Similarly, when congestion control switches from the light load mode to the heavy load mode, the entire transmission will immediately converge to the steady-state rate (the convergence rate of the heavy load mode is r0), which accelerates the convergence process of the entire congestion control solution to a certain extent.
[0216] This embodiment further illustrates that the technical solution of this application can be perfectly compatible with any other congestion control solution based on transmission rate and packet loss rate. The only thing to note is to carefully select the time point for the transition from the heavy load mode to the light load mode.
[0217] In addition, in the data center network, the "ExpressPass" scheme with fewer iteration times is selected as the light load scheme. Compared with the online learning-based scheme, the performance detection operation of the "ExpressPass" scheme is relatively less, that is, there is no need to repeatedly calculate the utility function to determine the change of the sending rate, which makes the transition from the light load mode to the heavy load mode faster and more suitable for data center networks that are sensitive to delay and have strong bursts.
[0218] Figure 7 It is a schematic structural diagram of a network congestion control device 700 according to an embodiment of this application. The device 700 may include a sending module 710 and a receiving module 720.
[0219] In some examples, the device 700 can be used to execute Figure 2The related steps or operations performed by the source host in the method shown, for example, the sending module 710 can be used to perform the related operations in S210 and S250, and the receiving module 720 can be used to perform the related operations in S240.
[0220] In another example, the apparatus 700 can be used to perform Figure 2 The related steps or operations performed by the intermediate node in the method shown, for example, the sending module 710 can be used to perform the related operations in S220 and S260, and the receiving module 720 can be used to perform the related operations in S210, S230 and S250.
[0221] In yet other examples, the apparatus 700 may be used to perform Figure 2 The relevant steps or operations performed by the destination host in the method shown, for example, the sending module 710 can be used to perform the relevant operations in S230, and the receiving module 720 can be used to perform the relevant operations in S220 and S260.
[0222] In some other examples, the apparatus 700 can be used to perform Figure 4 The method shown, or the apparatus 700 can be used to perform Figure 5 The method or apparatus 700 shown may be used to perform Figure 6 The method shown.
[0223] Figure 8 This is a schematic structural diagram of a network congestion control device 800 according to an embodiment of the present application. The device 800 includes a processor 802, a communication interface 803, and a memory 804. An example of the device 800 is a chip, and another example of the device 800 is a computing device.
[0224] The processor 802, the memory 804 and the communication interface 803 can communicate with each other via a bus. The memory 804 stores executable code, and the processor 802 reads the executable code in the memory 804 to execute the corresponding method. The memory 804 may also include an operating system and other software modules required for running processes. The operating system may be LINUX TM , UNIX TM , WINDOWS TM wait.
[0225] For example, the executable code in memory 804 is used to implement Figure 2 The processor 802 reads the executable code in the memory 804 to execute Figure 2 A step or operation performed by a source host, an intermediate node, or a destination host.
[0226] For example, the executable code in the memory 804 is used to execute Figure 4 , Figure 5 or Figure 6 The method shown; the processor 802 reads the executable code in the memory 804 to execute Figure 4 , Figure 5 or Figure 6 The method shown.
[0227] The processor 802 may be a CPU. The memory 804 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM). The memory 804 may also include a non-volatile memory (2 non-volatile memory, 2 NVM), such as a read-only memory (2 read-only memory, 2 ROM), a flash memory, a hard disk drive (hard disk drive, HDD) or a solid state disk (solid state disk, SSD).
[0228] In some embodiments of the present application, the disclosed methods may be implemented as computer program instructions encoded in a machine-readable format on a computer-readable storage medium or encoded on other non-transitory media or articles of manufacture. Fig. 9 Schematically illustrates a conceptual partial view of an example computer program product arranged according to at least some embodiments presented herein, the example computer program product comprising a computer program for executing a computer process on a computing device. In one embodiment, the example computer program product 900 is provided using a signal bearing medium 901. The signal bearing medium 901 may include one or more program instructions 902, which when executed by one or more processors may provide the above-described Figure 2 , Figure 4 , Figure 5 and Figure 6 The functions or parts of functions described in any of the methods shown in the figures. Thus, for example, Figure 4 In the embodiment shown in , one or more features of S401 to S419 may be undertaken by one or more instructions associated with the signal bearing medium 901. Figure 6 In the embodiment shown in , one or more features of S610 to S660 may be undertaken by one or more instructions associated with the signal bearing medium 901 .
[0229] In some examples, the signal bearing medium 901 may include a computer readable medium 903, such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory (ROM) or a random access memory (RAM), etc. In some embodiments, the signal bearing medium 901 may include a computer recordable medium 904, such as, but not limited to, a memory, a read / write (R / W) CD, a R / W DVD, etc. In some embodiments, the signal bearing medium 901 may include a communication medium 905, such as, but not limited to, a digital and / or analog communication medium (e.g., a fiber optic cable, a waveguide, a wired communication link, a wireless communication link, etc.). Thus, for example, the signal bearing medium 901 may be communicated by a wireless form of the communication medium 905 (e.g., a wireless communication medium that complies with the IEEE 802.11 standard or other transmission protocol). One or more program instructions 902 may be, for example, computer executable instructions or logic implementation instructions. In some examples, the aforementioned computing device may be configured to provide various operations, functions, or actions in response to program instructions 902 communicated to the computing device by one or more of computer-readable medium 903, computer-recordable medium 904, and / or communication medium 905. It should be understood that the arrangement described herein is only for the purpose of example. Thus, it will be appreciated by those skilled in the art that other arrangements and other elements (e.g., machines, interfaces, functions, sequences, and functional groups, etc.) can be used instead, and some elements can be omitted together according to the desired results. In addition, many of the described elements are functional terms that can be implemented as discrete or distributed components, or in any appropriate combination and position to be combined with other components to implement.
[0230] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0231] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0232] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0233] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0234] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0235] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk.
[0236] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for controlling network congestion, characterized in that: The method comprises: The first network device sends a first detection message based on a third rate, where the first detection message refers to a detection message whose source device is the first network device and whose destination device is the second network device, and the detection message is used to detect available bandwidth on a transmission path between the source device and the destination device; The first network device receives first feedback information, where the first feedback information is used to indicate a reception status of the first detection message on the second network device; The first network device determines a second rate based on the first feedback information, wherein the second rate indicates a rate at which the second network device receives the first detection message; when the second rate is less than or equal to a preset rate threshold, the first network device sends the first detection message using a preset target rate, and when the target rate is greater than the second rate and the second rate is greater than the rate threshold, the first network device sends the first detection message using the second rate; The first network device sends a first data packet based on the first feedback information, where the first data packet refers to a data packet whose source device is the first network device and whose destination device is the second network device.
2. The method according to claim 1, characterized in that The first network device sending a first data packet based on the first feedback information includes: Based on the first feedback information, the first network device sends the first data packet to the second network device through a third network device, and the third network device is used to send detection packets using a first ratio of bandwidth and to send data packets using a second ratio of bandwidth, wherein a ratio of a first rate at which the first network device sends the first data packet to a second rate at which the second network device receives the first detection packet is equal to a ratio of the second ratio to the first ratio.
3. The method according to claim 2, characterized in that The second network device sends one piece of the first feedback information each time it receives one of the first detection messages; The first network device sending a first data message based on the first feedback information includes: Each time the first network device receives one piece of the first feedback information, it sends one piece of the first data packet.
4. The method according to any one of claims 1 to 3, characterized in that The first network device determines a second rate based on the first feedback information, including: The first network device acquires, based on the first feedback information, a first packet loss rate when the first network device uses the third rate to send the first detection message; The first network device determines the second rate according to the first packet loss rate.
5. The method according to any one of claims 1 to 3, characterized in that The first network device is one of a plurality of network devices, wherein all network devices in the plurality of network devices use the same target rate for sending detection messages.
6. The method according to any one of claims 1 to 3, characterized in that The target rate is the same as the rate threshold.
7. The method according to claim 2 or 3, characterized in that: When the detection message forwarded by the third network device only includes the first detection message, the first network device can successfully transmit a specified number of first detection messages from the first network device to the second network device within a specified time period using the target rate.
8. The method according to claim 4, characterized in that The first network device determines the second rate according to the first packet loss rate, including: When the first packet loss rate is less than a preset packet loss rate threshold, the first network device adjusts the sending rate of the first detection message based on the first packet loss rate and the third rate to obtain the second rate.
9. The method according to claim 8, characterized in that The packet loss rate threshold is greater than the packet loss rate of the first detection message when the first network device sends the first detection message using the second rate.
10. The method according to claim 4, characterized in that The second rate is obtained based on the first packet loss rate and the third rate using a structure-behavior-performance (SCP) strategy or a fast channel strategy.
11. The method according to any one of claims 1 to 3, characterized in that The first feedback information is specifically used to indicate that the second network device has received the first detection message.
12. A device for controlling network congestion, characterized in that: include: a sending module, configured to send a first detection message based on a third rate, wherein the first detection message refers to a detection message in which the source device is a first network device to which the apparatus belongs and the destination device is a second network device, and the detection message is used to detect the available bandwidth on the transmission path between the source device and the destination device; A receiving module, used to receive first feedback information, where the first feedback information is used to indicate a reception status of the first detection message on the second network device; The sending module is used to determine a second rate based on the first feedback information, wherein the second rate indicates a rate at which the second network device receives the first detection message; when the second rate is less than or equal to a preset rate threshold, the sending module is further used to send the first detection message using a preset target rate, and when the target rate is greater than the second rate and the second rate is greater than the rate threshold, the sending module is further used to send the first detection message using the second rate; The sending module is further used to send a first data message based on the first feedback information, where the first data message refers to a data message whose source device is the first network device and whose destination device is the second network device.
13. The device according to claim 12, characterized in that The sending module is specifically used to send the first data message to the second network device based on the third network device, and the third network device is used to send the detection message using a first ratio of bandwidth and to send the data message using a second ratio of bandwidth, wherein the ratio of the first rate at which the first network device sends the first data message to the second rate at which the second network device receives the first detection message is equal to the ratio of the second ratio to the first ratio.
14. The device according to claim 13, characterized in that The second network device is configured to: send one piece of the first feedback information each time the first detection message is received; The sending module is specifically configured to send one first data message each time the first feedback information is received.
15. The device according to any one of claims 12 to 14, characterized in that The sending module is specifically used for: Acquire, based on the first feedback information, a first packet loss rate when the first network device sends the first detection message using the third rate; The second rate is determined according to the first packet loss rate.
16. The device according to any one of claims 12 to 14, characterized in that The first network device is one of a plurality of network devices, wherein all network devices in the plurality of network devices use the same target rate for sending detection messages.
17. The device according to any one of claims 12 to 14, characterized in that The target rate is the same as the rate threshold.
18. The device according to claim 13 or 14, characterized in that When the detection message forwarded by the third network device only includes the first detection message, the first network device can successfully transmit a specified number of first detection messages from the first network device to the second network device within a specified time period using the target rate.
19. The device according to claim 15, characterized in that The sending module is specifically used for: When the first packet loss rate is less than a preset packet loss rate threshold, the sending rate of the first detection message is adjusted based on the first packet loss rate and the third rate to obtain the second rate.
20. The device according to claim 19, characterized in that The packet loss rate threshold is greater than the packet loss rate of the first detection message when the first network device sends the first detection message using the second rate.
21. The device according to claim 15, characterized in that The second rate is obtained based on the first packet loss rate and the third rate using a structure-behavior-performance (SCP) strategy or a fast channel strategy.
22. The device according to any one of claims 12 to 14, characterized in that The first feedback information is specifically used to indicate that the second network device has received the first detection message.
23. A device for controlling network congestion, characterized in that: include: a processor coupled to the memory; The memory is used to store instructions; The processor is configured to execute instructions stored in the memory, so that the network device implements the method according to any one of claims 1 to 11.
24. A computer readable medium, characterized in that The method comprises instructions, which, when executed on a processor, cause the processor to implement the method according to any one of claims 1 to 11.
