Speed-optimized congestion management
The method addresses congestion management in RoCEv2 networks by dynamically adjusting data rates using a feedback control algorithm and AIMD, achieving high link utilization and low latency, thereby improving network performance.
Patent Information
- Application Number
- JP2021568610
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-05-17
- Filing Date
- 2020-05-15
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2040-05-15
AI Technical Summary
Existing congestion management methods in RoCEv2 networks, such as Data Center Quantized Congestion Notification (DCQCN), fail to effectively manage congestion at large scales, leading to reduced network utilization, throughput, and increased latency due to the generation of thousands of pause frames.
A method that dynamically adjusts data rates in response to congestion events by combining a feedback control algorithm with an additive increase multiplicative decrease (AIMD) algorithm, including a fast start phase, transition phase, and adjustment phase to maintain low latency and high link utilization.
The method effectively manages congestion by ensuring high link utilization, low latency, and network fairness through dynamic data rate adjustments, outperforming existing methods like DCQCN in reducing queue occupancy and congestion spread.
Smart Images

Figure 0007576570000001 
Figure 0007576570000002 
Figure 0007576570000003
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of U.S. Patent Application No. 16 / 415,609, filed May 17, 2019, and entitled “RATE-OPTIMIZED CONGESTION MANAGEMENT,” the contents of which are incorporated herein by reference for all purposes. [Background technology]
[0002] Datacenter applications require high throughput and ultra-low latency from the network, including the host's network stack. Due to the high CPU overhead of standard TCP / IP, Remote Direct Memory Access (RDMA) over Ethernet (RoCEv2) is deployed in modern datacenters as an alternative technology to achieve low latency and high performance. Under heavy load, congestion can occur in datacenter networks, causing packet drops. As a result, RDMA performance degrades significantly, and RoCEv2 relies on Priority-based Flow Control (PFC) to achieve a drop-free network. PFC may cause congestion spreading, where a slowdown in data transfer rate in one area of the network slows down data transfer rate in other areas of the network. Thus, congestion management is necessary to avoid congestion spreading. Existing methods of congestion management in RoCEv2 networks, such as Data Center Quantized Congestion Notification (DCQCN), perform poorly at scale and can generate thousands of pause frames, reducing network utilization and average throughput, and causing very slow termination of congested flows. Summary of the Invention
[0003] There is a need for scalable, effective congestion management in data center networks. Such a method would achieve high link utilization, low latency, and network fairness. The disclosed method achieves these goals by dynamically changing data rates in response to congestion events and by combining a feedback control algorithm with an additive-increase-multiplicative-decrease (AIMD) algorithm.
[0004] In one aspect, a computer-implemented method for managing congestion in a network protocol is disclosed. The method includes detecting a congestion event in the network. The method then includes slowing down a data rate from an initial rate to a minimum rate. The method then includes increasing the data rate to half the initial rate. The method then includes periodically monitoring one-way latency of the network. Finally, the network includes adjusting the data rate using a feedback control algorithm and an additive increase multiplicative decrease (AIMD) algorithm. In some embodiments, setting the initial data rate further includes setting an initial window equal to a bandwidth-delay product, and increasing the window size if no congestion is detected after setting the initial window. In some embodiments, the initial data rate is equal to the line speed of the network. In some embodiments, the threshold latency is based on a round trip time for transmission of data packets. In some embodiments, the minimum data rate is at least one percent less than the initial data rate. In some embodiments, the feedback control loop includes a proportional-integral controller. In some embodiments, transferring data from the sender to the receiver at a minimum data rate includes sending a congestion notification packet from the receiver to the sender, and updating the rate when the sender receives the congestion notification packet. In some embodiments, continuously monitoring one-way latency includes keeping track of a total number of bytes of received packets. In some embodiments, the managed transfer rate is calculated after one period at the minimum transfer rate and one period at half the initial rate. In some embodiments, the period is based on the round trip time of the transmitted packets. In some embodiments, the initial transfer rate is based on the line speed between the sender and the receiver. In some embodiments, the initial transfer rate is the minimum rate between the sender's link rate and the receiver's link rate. In some embodiments, the AIMD algorithm includes performing an additive operation on the managed rate if the managed rate is below a threshold, and performing a multiplicative operation on the managed rate if the managed rate is above the threshold.In some embodiments, the addition is by a positive number, and in some embodiments, the multiplication is by a number between 0 and 1. In some embodiments, the computer-implemented method further includes obtaining at least an initial rate from adjusting the data rate over a threshold number of periods of time, and monitoring the network for congestion events.
[0005] In another aspect, a system for managing network congestion in a network is disclosed. The system includes a plurality of computing nodes. The computing nodes include a memory for storing one or more previously obtained latency values and a set of instructions, and one or more processors plus the set of instructions. The processor is configured to execute the set of instructions to detect a congestion event in the physical layer link, slow down a data transfer rate from an initial rate to a minimum rate, increase the data transfer rate to half the initial rate, periodically monitor one-way latency of the network, and adjust the data transfer rate using a feedback control algorithm and an additive increase multiplicative decrease (AIMD) algorithm. In some embodiments, the network has at least one Ethernet link. In some embodiments, the plurality of computing nodes include a sender node and a receiver node. In some embodiments, setting the initial data transfer rate further includes setting an initial window equal to a bandwidth-delay product, and increasing the window size if congestion is not detected after setting the initial window. In some embodiments, the initial data transfer rate is equal to a line speed of the Ethernet link. In some embodiments, the threshold latency is based on a round trip time for transmission of the data packets. In some embodiments, the minimum data rate is at least 1 percent less than the initial data rate. In some embodiments, the feedback control loop includes a proportional-integral controller. In some embodiments, forwarding data from the sender to the receiver at the minimum data rate includes sending a congestion notification packet from the receiver to the sender, and updating the rate upon receipt of the congestion notification packet by the sender. In some embodiments, continuously monitoring one-way latency includes keeping track of a total number of bytes of received packets. In some embodiments, the governed rate is calculated after one period at the minimum rate and one period at half the initial rate. In some embodiments, the periods are based on a round trip time of the transmitted packets.In some embodiments, the initial transfer rate is based on the line speed between the sender and the receiver. In some embodiments, the initial transfer rate is the minimum line speed between the sender and the receiver. In some embodiments, the AIMD algorithm includes performing an additive operation on the administrative rate if the administrative rate is below a threshold, and performing a multiplicative operation on the administrative rate if the administrative rate is above the threshold. In some embodiments, the additive operation is by a positive number, in some embodiments, the multiplicative operation is by a number between 0 and 1.
[0006] In yet another aspect, a computer-implemented method for managing congestion in a network protocol is disclosed. The method includes a fast start-up phase including setting a data rate to an initial rate and conducting data transfer between a sender and a receiver until the receiver detects a congestion event. The method also includes a transition phase including reducing the data rate to a minimum data rate for a period of time and then increasing the data rate to half the initial rate for a period of time. The method also includes an adjustment phase including modifying the data rate using a combination of a feedback control loop and an additive decrease multiplicative increase algorithm. In some embodiments, the computer-implemented method further includes an initialization phase including sharing a clock speed and a line speed between the sender and the receiver before the fast start-up phase. In some embodiments, the computer-implemented method further includes setting a window size to an initial window size for transmitting data packets before the fast start-up phase. In some embodiments, the computer-implemented method further includes increasing the window size while a congestion event is not detected in the network. In some embodiments, the window size is increased exponentially. The transition phase begins after the detection of the congestion event. In some embodiments, the feedback control algorithm is a proportional-integral algorithm. In some embodiments, the feedback control loop may be described as the difference between a current rate, a proportional term, and an integral term. In some embodiments, the proportional term accounts for the difference between a current latency and a threshold latency, while the integral term accounts for the difference between a current latency and a previous latency. In some embodiments, the multiplicative increase is implemented in response to a probabilistic event. In some embodiments, the multiplicative increase is implemented at a lower frequency than the feedback control loop.
[0007] In yet another aspect, a system for managing network congestion in a network is disclosed. The system includes a plurality of computing nodes. The computing nodes include a memory for storing one or more previously obtained latency values and a set of instructions. The computing nodes also include one or more processors configured to execute the set of instructions to implement a fast start-up phase including setting a data rate to an initial rate and performing a data transfer between a sender and a receiver until the receiver detects a congestion event, a transition phase including reducing the data rate to a minimum data rate for a period of time and then increasing the data rate to half the initial rate for a period of time, and an adjustment phase including modifying the data rate using a combination of a feedback control loop and an additive decrease multiplicative increase algorithm. In some embodiments, the system further includes an initialization phase including sharing a clock speed and a line speed between the sender and the receiver before the fast start-up phase. In some embodiments, the system further includes setting a window size to an initial window size for transmitting data packets before the fast start-up phase. In some embodiments, the system further includes increasing the window size while a congestion event is not detected in the network. In some embodiments, the window size is increased exponentially. In some embodiments, the transition phase begins after the detection of the congestion event. In some embodiments, the feedback control algorithm is a proportional-integral algorithm. In some embodiments, the feedback control loop may be described as the difference between a current rate, a proportional term, and an integral term. In some embodiments, the proportional term accounts for the difference between a current latency and a threshold latency, while the integral term accounts for the difference between a current latency and a previous latency. In some embodiments, the multiplicative increase is implemented in response to a probabilistic event. In some embodiments, the multiplicative increase is implemented at a lower frequency than the feedback control loop. [Brief description of the drawings]
[0008] The novel features of the present subject matter are set forth with particularity in the appended claims. A better understanding of the features and advantages of the present subject matter will be obtained by reference to the following detailed description that sets forth illustrative embodiments, in which the principles of the present subject matter are utilized, and the accompanying drawings (hereinafter "Figure" and "FIG."). [Figure 1] FIG. 2 is an exemplary block diagram illustrating communication over a link. [Diagram 2] 2 illustrates a schematic diagram of a number of variables that are measured in a congestion management system according to embodiments described herein. [Diagram 3] 1 illustrates a flow diagram for a method of congestion management in a physical layer link. [Figure 4] Indicate the optimum operating point for communication; [Diagram 5] A comparison of the latency of the disclosed method with DCQCN is shown using data from experiments performed with both methods. [Figure 6A] 6 shows a diagram of data flow in the network from the experiment in FIG. 5. [Figure 6B] 6 shows a diagram of data flow in the network from the experiment in FIG. 5. [Figure 7A] 1 shows a comparison of queue occupancy between the disclosed method and DCQCN. [Figure 7B] 1 shows a comparison of queue occupancy between the disclosed method and DCQCN. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] The disclosed method effectively manages congestion in a RoCEv2 network, for example at the link layer in an Ethernet network. The method may be implemented in communications between sender and receiver nodes, which may be connected by one or more network links. The sender and receiver may manage data flows from multiple users and may have to maintain efficiency and fairness of transmitted data among multiple users transmitting data over the link.
[0010] The disclosed method has three main phases: a fast start phase, a transition phase, and an adjustment phase. In the fast start phase, the sender and receiver may send data to each other at an initial rate until the receiver records a congestion event. The congestion event may be detected as a spike in latency measured from the receiver's perspective. After the congestion event, the transition phase begins. In the transition phase, to manage congestion, the sender first reduces the data rate to a minimum rate for a period of time, then increases the data rate to half the initial rate. After the transition phase, the adjustment phase uses a combination of feedback control and an additive increase multiplicative decrease (AIMD) algorithm to increase the rate while maintaining low latency, efficiency, and fairness.
[0011] A feedback control loop guides the main rate calculation in the regulation phase, where rate increases and decreases are fine-tuned, for example using a proportional-integral algorithm. The AIMD algorithm adds small perturbations that cause flows to rebalance over the long term. This is done without adding too much disruption to the aggregate arrival rate of data packets to the congested queue.
[0012] After the adjustment phase, the sender and receiver may eventually resume transmitting data at the initial rate. The method may resume when the next congestion event is detected.
[0013] In one aspect, methods and systems of the present disclosure are provided for determining network congestion status based on a measurement of latency variability. The latency measurement may be a forward path latency, such as a round-trip time (RTT) delay, or a round-trip time latency. The latency variability or change may be used as a congestion signal, and thus a sender may be notified in a timely manner about the extent of congestion.
[0014] FIG. 1 is an exemplary block diagram illustrating communication over a link (103) according to an embodiment of the subject matter described herein. A sender (101) and a receiver (105) are communicating over a link (103). In the examples described herein, the system delegates certain sending and receiving tasks to the sender and receiver. However, packets can be sent from the sender to the receiver or from the receiver to the sender. The communication may use congestion management mechanisms to control congestion. In some cases, a state of network congestion along the link may be determined. The sender and receiver may also be referred to as the origin and destination, respectively. In other cases, network congestion for a round trip (from the sender to the receiver and back to the sender) may be determined.
[0015] The sender (101) and the receiver (105) may be various types of computing devices, such as personal computers, tablet computers, smartphones, set top boxes, desktop computers, laptops, gaming systems, servers, data centers, and various other devices or systems. Multiple other devices or components may establish connections through the network. One or more senders may be connected to one or more receivers. The senders and receivers may be connected to the network with wired and / or wireless connections. The senders or receivers may be referred to as originating and destination nodes in the network. The nodes may be any devices with communication capabilities. The communication may be wired or wireless.
[0016] The sender and receiver each have memory 120 and a CPU 130. The receiver may use RDMA to access items stored in the sender's memory while bypassing the sender's operating system.
[0017] The link (103) may be a wireless network, a wired network, or a combination of both. For example, the network may include one or more of the Internet, an intranet, a cellular network, a home network, a person area network, etc., through an ISP, cellular, broadband cable provider, etc. The link (103) may be associated with an Internet protocol interface of one or more network components, data servers, connection nodes, switches, etc. In another aspect, the sender (101) and the receiver (105) may be considered part of the link (103).
[0018] Both the sender (101) and the receiver (105) include a network interface (140), which may be a network interface card (NIC). The network interface allows the sender node and the receiver node to couple to the link (103). The network interfaces (140) may have smart capabilities, allowing them to implement algorithms to control the rate at which data is transmitted to nodes in the network.
[0019] A data packet (111) transmitted from an origin node (e.g., sender) to a destination node (e.g., receiver) may or may not experience delays along the link. In some embodiments, a measurement of the variation or change in latency may provide an immediate signal about the extent of congestion. The latency may be calculated by subtracting the transmission time of the data packet (111) from the arrival time of the data packet (111). In some embodiments, the transmission time of the data packet is provided by the sender's clock (107) and the arrival / reception time of the data packet is provided by the receiver's clock (109).
[0020] The sender clock (107) and the receiver clock (109) need not be synchronized. In some cases, the sender clock (107) and / or the receiver clock (109) may be free-running clocks that are not synchronized. In some cases, the sender clock (107) and the receiver clock (109) are running at the same speed or frequency. Alternatively, the sender clock (107) and the receiver clock (109) may operate at different speeds or frequencies. In some cases, the common speed or frequency may be set at connection establishment time. For example, the common speed or frequency is a default frequency set by the connection protocol prior to the transmission of the data packets. In some cases, the speeds or frequencies associated with the sender and the receiver, respectively, may be exchanged at connection establishment time. In some cases, the receiver may be informed by the sender's speed or frequency. In alternative cases, the sender and the receiver may operate at different frequencies that are unacknowledged from each other. For example, both the sender and receiver may send a handshake request (e.g., a handshake-type control packet) at connection setup, where the handshake packet may include a common frequency that both sender and receiver have agreed to use to communicate, or a frequency associated with each of the sender and receiver. Note that the clock frequency or speed may be sent at any time, not just at connection establishment time. For example, a handshake packet containing the clock's frequency may be sent once an interval, when a notification message is generated, or when a timeout timer expires. The clock may include any type of local hardware or device clock, such as a NIC hardware time, or a host device (e.g., CPU) clock. The sender and receiver clocks may or may not be of the same type. In some situations, a matching or mapping scheme may be used to map NIC timestamps to host timestamps. In some situations, clock frequency drift may occur between the sender and receiver clocks, resulting in a trend in latency changes.Frequency drift detection and updating is discussed later in this specification.
[0021] A timestamp may be included in the data packet (111) that represents the current time when the data packet (111) is transmitted. The timestamp may be generated by the sender clock. The timestamp may be embedded in any field of the data packet. The timestamp may be multi-bit. The timestamp may include any number of bits, such as 32-bit or 64-bit. The timestamp may provide time resolution on the scale of picoseconds, milliseconds, or microseconds.
[0022] In some embodiments, each data packet (111) is time-stamped. Alternatively, some of the data packets are time-stamped. For example, a time-stamp representing the transmission time may include all X number of packets, where X may be any integer.
[0023] Upon receiving a data packet containing a timestamp, the latency may be calculated by the receiver. The latency may be determined by subtracting the timestamp value in the data packet from the current value of a local clock at the receiver (or vice versa). Because the current value of the local clock at the receiver may not be synchronized with the sender clock, the difference may not represent an absolute latency. Thus, the time difference may be referred to as pseudo latency. In this disclosure, the terms "pseudo latency" and "latency" are equivalent, and "latency" should not be construed as representing an absolute latency.
[0024] The difference or change in latency may be used to predict the extent of congestion. The difference in the change in latency values may indicate a change in the delay queue. For example, a positive change in latency due to an increase in the latency value may indicate a rise in the queue, while a negative change in latency may indicate a fall in the queue. In a situation where a positive change is detected, it is advantageous to accommodate the delay without waiting for a standing queue to form, thus achieving a method for low latency. In a situation where a negative change is detected, it is advantageous to adjust the transmission rate to fully utilize the bandwidth. In some cases, a notification message may be generated when the change in latency is determined to exceed a certain range, such as by comparing the change in latency to a latency difference threshold. The notification message may be generated when the increase in the change or the decrease in the change exceeds a predefined latency difference threshold. The congestion condition may include detection of a change in latency exceeding a threshold. The congestion condition may include a measured change in latency. The congestion condition may further include any other variables related to latency, as discussed later in this specification. In some embodiments, upon determining a congestion condition, a notification message may be generated by the recipient. The notification message may include a number of variables related to latency.
[0025] FIG. 2 illustrates a schematic of a number of variables measured in a congestion management system according to an embodiment of the subject matter described herein. A sender (201) and a receiver (203) may be associated with local clocks (205), (207), respectively, as described in FIG. 1. The sender and receiver may be configured to send and receive messages, such as data packets, control packets, and notification packets. As shown in FIG. 2, one or more data packets (211), (217), (219) may be transmitted from the sender (201) to the receiver (203). In some cases, one or more data packets may be time-stamped by the sender's local clock (205). It should be noted that while a sender and a receiver are depicted in a communication system, any other components may be included in the system.
[0026] A data packet may be sent from a sender or a receiver at a first time and may be received by the other of the sender or the receiver at a second time. The first time (e.g., T1) and the second time (e.g., T2) may be determined by a local clock (205), (207), respectively. Various time points, such as T4 and T5 or T6 and T7, may occur simultaneously and / or in various orders. Each communication may include one or more packets; however, for ease of reading, note that the communications are described as a single packet sent from one component to the other. Note further that for ease of reading, the communications are depicted as non-overlapping and at various times. Furthermore, unless otherwise indicated in the context, any communications may overlap, may be in different orders, and may proceed to various network components (e.g., intermediate nodes, switches, etc.). Any different amount of messages may be sent and received between the sender and the receiver; similarly, the sender and the receiver may send and receive messages to / from various other components not shown in the figures.
[0027] As discussed above, the latency range may be determined based on the change in latency. In some embodiments, a notification message (215), (216) may be generated when the change in latency is determined to exceed a latency difference threshold. In some cases, a new interval (227) may begin upon generation of the notification message. In some cases, a new interval (227) may begin upon detection of a congestion condition. In some cases, a new interval may begin at the reception or arrival time (e.g., T2) of the last data packet (211) from the previous interval. An interval may have any length of time, such as microseconds, milliseconds, seconds, etc.
[0028] As shown in the figure, a latency (221) of a first data packet in an interval may be calculated. Upon receipt of the first data packet by the receiver (203), the receiver may subtract the timestamp value T3 in the data packet from the current value T4 of the receiver's local clock. A latency value may be calculated for one or more messages or data packets (217) sent from the sender to the receiver. A latency difference or change may be calculated between two or more data packets.
[0029] In some cases, the change in latency may be calculated as a difference between the current latency value and the previous latency value. The previous latency value may be a latency value of a single packet or an average of a number of previously obtained packets. In some cases, the previous latency value may be the latency value (221) of the first packet (213) of the interval (227). In some cases, the previous latency value may be a minimum latency value. In some cases, the previous latency value may be an average of a number of previously obtained latency values, such as the first number of packets, or may be a moving average of a number of packets. In some cases, the previous latency value may be generated based on data from a previous interval. The previous latency value may be fixed or may vary during the interval (227). For example, if the minimum latency value tracked by the receiver (203) is taken as the previous latency value, the previous latency value may vary when the minimum value is updated. For example, the data packet (217) may have the minimum latency value (223) during the interval for subsequent data packets, and the change in latency may be calculated as the difference between each latency value and the minimum latency value. Similarly, if the latency value (221) of the first packet is taken as the previous latency value for all subsequent data packets during the interval, the change in latency may be calculated as the difference between each latency value and the latency value of the first packet.
[0030] In some cases, the change in latency is determined as the difference between a current latency value and a previous latency value. The current latency value may be a latency value of a single packet. The current latency value may be a moving average of a number of packets. This may provide the advantage of avoiding instantaneous spikes in the latency measurement. Various other methods or algorithms may be used to filter the spikes. In some cases, the change in latency may be a value derived from the current latency value and the previous latency value. For example, the change in latency may be dimensionless, being the difference between the current latency value divided by the previous latency value and the previous latency value divided by (the current latency value).
[0031] In some cases, the last packet in the interval (219) is a packet with a change in latency that exceeds a latency variance threshold. The current latency of the last packet may or may not be a moving average. The variance may be the absolute value of the difference between the current latency value and the previous latency value. The difference may be positive or negative. When the latency variance threshold is met, a notification message (216) may be generated.
[0032] In some embodiments, the change in latency may be determined by the receiver. Alternatively, the change in latency may be determined by the sender. In some embodiments, the state of network congestion may be determined by the receiver. Alternatively, the state of network congestion may be determined by the sender.
[0033] In some embodiments, the notification message may be generated by the receiver. The notification message may be sent from the receiver to the sender. The notification message may be sent immediately when it is determined that the change in latency exceeds a latency difference threshold (e.g., message sent at T2 (215)). The notification message may be sent at a time later than the end of the interval (e.g., message sent at T9 (216)). The notification message may include multiple variables that indicate an increased or decreased congestion state of the delay queue. In some embodiments, at least some of the information included in the notification message is used by the sender for further congestion management.
[0034] 3 shows a flow diagram for a method of congestion management in a data link, such as an Ethernet link. The flow diagram includes an initialization phase, a fast start phase, a transition phase, and an adjustment phase. The method may be implemented in the environment of FIG. 1 in conjunction with data transmission between a sender (101) and a receiver (105).
[0035] During the initialization phase (310), the sender and receiver may share information about each other's clock and line speeds. This information allows the sender and receiver to determine acceptable latency and therefore to detect congestion events by registering anomalously high latency values (e.g., values above a particular threshold for a data flow between a particular sender and receiver).
[0036] In a fast start phase (320), the sender transmits data to the receiver at an initial rate. The fast start phase (320) may precede a window growth phase, in which the sender may set an initial window size for transmitting data packets and may increase the size of the window as long as no congestion is detected in the network. The initial window size may be set to, for example, the bandwidth-delay product, which is the line speed multiplied by the minimum propagation delay in the network. As the window size increases, the receiver may notify the sender that it does not detect congestion by sending a packet periodically, for example, every 50 kilobytes of received data. The maximum size to which the window may grow may be determined by multiplying the link speed by the maximum propagation delay in the network. The receiver may detect a congestion event by observing a spike in one-way latency for data packets received from the sender. The spike in one-way latency may correspond to a delay greater than the round-trip time of the packets. A delay of, for example, 15 to 25 microseconds may cause the receiver to register a congestion event. In some embodiments, the receiver may measure latency against a minimum latency to register a congestion event. In these embodiments, the receiver may configure a threshold latency, above which the detected latency may be registered as a congestion event.
[0037] The sender may increase the window size exponentially. The sender may also increase the size first order linearly, logarithmically, or in a stepwise manner. The window size may be increased until a threshold size is reached. The packet may signal the sender to increase the window size using a bit.
[0038] After the window growth in the fast start phase (320), the sender sets an initial rate. The initial rate may be the line rate, such as 25 GBit / s or 100 GBit / s. The initial rate may be influenced by factors such as the type of physical network connecting the sender and receiver, the physical distance between the sender and receiver, and the operational configuration of the sender and receiver. The sender may send traffic at full speed unless the window is overloaded. The receiver may communicate with the sender using CNP packets. For example, the receiver may send a CNP-W packet to inform the receiver that it will continue to send packets at line rate, or it may send a CNP-R packet when a congestion event is detected.
[0039] When the receiver detects a congestion event, the system enters a transition phase (330). The receiver may send a packet to the sender with a bit indicating that the sender should reduce the rate of data transmission to a minimum rate. The minimum rate may be significantly less than the initial rate. For example, the minimum rate may be two to four orders of magnitude less than the initial rate. The system may remain in the transition state for one or more periods. The period may be based on the round trip time (RTT) of the packet. For example, the period may be 25 microseconds. This is done to reduce congestion in the system. After remaining at the minimum rate for a certain number of periods, the system may increase the data transfer rate to one-half the initial transfer rate. The receiver may also measure the throughput between the sender and the receiver. If the throughput is less than one-half the initial rate, the receiver may send a packet to the sender informing the sender to transmit at half the measured throughput. The sender may reduce its transmission rate upon receiving the packet.
[0040] The system remains in the transition phase for two update periods and then moves to the adjustment phase (340), which may use a feedback control algorithm and an Additive Increment Multiplicative Decrement (AIMD) to modify the data rate.
[0041] The feedback control algorithm may be a proportional-integral (PI) algorithm. The feedback control algorithm may also be implemented using a proportional algorithm or a proportional-integral-derivative (PID) algorithm. The PI algorithm may ensure efficiency and low latency. The data rate calculation may be updated periodically based on how far the current latency is from a threshold value (e.g., a minimum latency value) and whether the latency queue is currently trending upward or downward. The "proportional" aspect of the algorithm acts to increase the likelihood that the algorithm will slow down the data transmission rate if the latency is high, while the "integral" aspect of the algorithm acts to increase the likelihood that the data transmission rate will slow down if the latency queue is trending upward.
[0042] The feedback control loop may be described using the following equation: R(n+1)=R(n)-α(Δ(n)-θ)-β(Δ(n)−Δ(n-1))
[0043] In this equation, the updated rate R(n+1) is calculated by subtracting a proportional term α(Δ(n)-θ) and an integral term β(Δ(n)-Δ(n-1)) from the current rate R(n). The proportional term is accounted for by multiplying the difference between the current latency Δ(n) and the threshold latency θ by a constant. The integral term is accounted for by multiplying the difference between the current latency Δ(n) and the previous latency Δ(n-1) by a different constant, incorporating any upward or downward trends in latency into the equation.
[0044] The AIMD algorithm works in conjunction with a feedback control algorithm to ensure fairness in the system. The AIMD algorithm may perform an additive increase on the data rate when latency decreases, and a multiplicative decrease when latency increases. This process adds fairness to the links in the data flows, and may be performed over a longer time scale than that required to control latency. For example, the system may perform an additive increase on the rates of different data flows until a congestion event is detected by the receiver. At that point, the system may perform a multiplicative decrease on the data rate to stop the congestion. This process may be repeated until the flows have equal data rates.
[0045] In some embodiments, additive increases may be performed constantly while the system is in the adjustment phase. While this is occurring, the receiver may send packets, such as CNP-R packets, to the sender to perform an additive increase on the rate. Multiplicative decreases may be performed periodically. In some embodiments, the system may perform a multiplicative decrease after a certain number of adjustment cycles. In other embodiments, multiplicative increases may be performed in response to a probabilistic event, such as a "coin flip." The system may assign a probability of a multiplicative decrease to a "coin" and "flip the coin" with each packet arrival to determine whether or not to perform a multiplicative decrease on the rate during that cycle. For example, if the probability of a multiplicative decrease is 30%, it may be expected that a multiplicative decrease will be performed in 3 out of 10 packet transmissions.
[0046] The system may implement a feedback control loop and an AIMD loop together. The AIMD process may be implemented at a lower frequency than the feedback control loop since fairness can be achieved over a long time scale. By implementing the AIMD periodically and less frequently than implementing the control loop, data flows can be rebalanced and packets arriving at queues can be less disruptive.
[0047] The adjustment phase (340) may continue until data transmission returns to the initial data rate. If the system returns to the initial rate for a number of periods, the system may begin the fast start process (320) again.
[0048] FIG. 4 shows a communication efficiency graph (400). The graph shows how the goodput (number of useful information bits delivered per unit time) and congestion buffer size (420) increase as the link layer packet load increases. The graph shows that as the data load increases from zero, the goodput (410) also increases in a linear fashion. As the packet load (450) increases and exceeds the capacity (440), the curve goes from linear to flat and forms a knee. This is the optimal operating point (430) of the system with maximum goodput and negligible queuing. The bottom graph shows the queue building up as the packet load increases and exceeds the knee because after this point not all packets can be transmitted by the system. The graph shows that as the queue builds up, the goodput (410) remains high even at high loads. The system can be optimally operated with a small queue. The queue may grow exponentially in size as the load increases because waiting packets may not be sent before new packets are added to the queue. At certain loads, packets may be dropped because the system may not be able to support maintaining such a large queue. The graph shows that in the disclosed method, the system operates near the knee.
[0049] FIG. 5 shows a comparison of the latency of the disclosed method with DCQCN (500) using data from an experiment performed with both methods. In the experiment in FIG. 5, 20,000 data flows arrive at the receiver as a Poisson process for both DCQCN and the disclosed method. The flows come in from 16 different ports with various round trip times (RTTs), all destined for the receiver. The arrival rate of packets to the receiver is controlled to perform an experiment, where the link between the sender and the receiver is loaded at 20%, 40%, 60%, and 80%. The minimum, average, and maximum pause times of Ethernet frames are measured for these 16 ports in both DCQCN and the method. As can be seen from the graph, at high loads, DCQCN performs worse compared to the disclosed method. In fact, the pause times of DCQCN get exponentially worse at high loads. When compared at high loads, the disclosed method does not generate pause frames even at high loads.
[0050] Figures 6A and 6B show diagrams of data flows in the network from the experiment of Figure 5. Diagram (600) of Figure 6A shows the throughput from the disclosed method, while diagram (650) of Figure 6B shows the throughput from DCQCN. Diagram (650) shows a significant victim flow. A victim flow, or a flow with reduced throughput, indicates the spread of congestion across the data center network. Thus, Figures 6A and 6B show the spread of significant congestion when DCQCN is used, but negligible congestion when the disclosed method is used.
[0051] 7A and 7B show a comparison of queue occupancy between the disclosed method (700) and DCQCN (750). The graph shows that the system has less data in the queue than with DCQCN. The charts in FIG. 7A and 7B reflect the results of an experiment. In the experiment, there are 640 nodes in a three-stage data center network. Each node has two 25 Gbps links connected to a pair of top-of-rack (ToR) switches. The round-trip propagation delay between the nodes is 12 microseconds. PFC is enabled. The 640 nodes continuously send data packets to a group of 32 nodes under the pair of ToR switches. Each of the 32 nodes also sends data packets to the other 639 nodes. The experiment removes one link going to one of the 32 nodes in the middle of the simulation and observes how the removal of that link affects other servers. 7A and 7B compare the queue occupancy of the congested link from this experiment under the disclosed method and under DCQCN, and show that the disclosed method reduces the queue occupancy to only one-tenth of that under DCQCN.
Claims
1. 1. A computer-implemented method for managing congestion in a network protocol, the method comprising: a) detecting congestion events in a network by monitoring one-way latency of the network; b) slowing down the data transfer rate between the sender node and the receiver node in the network from the initial rate to a slower rate; c) increasing the data transfer rate from the slower rate; d) adjusting said data rate using a combination of a feedback control algorithm or loop and an additive-increase-multiplicative-decrease (AIMD) algorithm; A method comprising:
2. 2. The computer-implemented method of claim 1, wherein the feedback control loop is used to periodically calculate an updated data rate at a first frequency and the AIMD algorithm is used to adjust the data rate at a second frequency, the second frequency being lower than the first frequency.
3. A computer-implemented method as described in claim 1 or 2, wherein setting the initial rate further includes setting an initial window equal to a bandwidth-delay product, and increasing the window size if no congestion is detected after setting the initial window.
4. 4. The computer-implemented method of claim 1, 2, or 3, wherein monitoring the one-way latency includes comparing the one-way latency to a threshold latency and determining a trend for the one-way latency, the threshold latency being based on a round trip time for transmission of data packets.
5. A computer-implemented method according to any one of claims 1 to 4, wherein the further slower velocity is at least 1 percent less than the initial velocity.
6. 6. The computer-implemented method of claim 1, wherein forwarding data from the sender to the receiver at the slower rate includes sending a congestion notification packet from the receiver to the sender, and updating the data transfer rate when the sender receives the congestion notification packet.
7. 7. The computer-implemented method of claim 1, wherein monitoring one-way latency includes keeping track of a total number of bytes of received packets.
8. A computer-implemented method according to any preceding claim, wherein step d) includes obtaining at least the initial rate from a step of adjusting the data transfer rate over a threshold number of periods.
9. step a) includes a fast start-up phase including setting the data transfer rate to the initial rate and performing a data transfer between the sender and the receiver until the receiver detects a congestion event; steps b) and c) include a transition phase including decreasing the data transfer rate to the slower rate for a period of time, and thereafter increasing the data transfer rate to half the initial rate for a period of time; said step d) including an adjusting step including modifying said data rate using said combination of said feedback control algorithm or loop and said AIMD algorithm; The computer-implemented method of claim 1 or 2.
10. 10. The computer-implemented method of claim 9, further comprising an initialization phase prior to the fast start stage, the initialization phase including sharing a clock speed and a line speed between the sender and the receiver.
11. 11. The computer-implemented method of claim 9 or 10, further comprising setting a window size to an initial window size for transmitting data packets before the fast start phase.
12. 12. The computer-implemented method of claim 11, further comprising increasing the window size while a congestion event is not detected in the network.
13. The computer-implemented method of claim 12 , wherein the window size is increased exponentially.
14. 14. The method of claim 9, wherein the multiplicative reduction is performed at a lower frequency in response to a probabilistic event and / or based on a multiplicative reduction probability.
15. 1. A system for managing network congestion in a network, the system comprising a plurality of computing nodes, the computing nodes comprising: a memory for storing one or more previously obtained latency values and sets of instructions; 15. A system comprising: one or more processors, the processors configured to execute a set of instructions to perform a method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Virtually Congestion-Free Guaranteed Service Enabled Network: Immediate ready enforcement of external internet nextgentcp (square waveform) tcp friendly san
JP2008536339A
Optimization of Downlink Throughput
US20170019803A1
