As the speed of network traffic increases, controlling network congestion in an acceptable manner becomes increasingly challenging. This is true in part because it is not economically feasible to increase buffer sizes in proportion to the higher network speeds. High speed, coupled with proportionally smaller buffer sizes and low latency, causes buffers to fill up very quickly when congestion arises.
Some examples of high-speed, low latency networks having relatively small buffers, which will be referred to herein as Data Center Ethernet (“DCE”) or the like, are described below. Many of the congestion management challenges of DCE networks are shared by other networks, including but not limited to Fibre Channel networks and high-speed Ethernet. It would be very desirable to implement methods and devices that address at least some of the shortcomings of the prior art.
In one embodiment, an apparatus comprises a network interface system having at least one input port configured for receiving frames and a logic system comprising at least one logic device. The logic system may be configured to perform the following functions: determining a source address and a destination address of a frame received at an ingress port; calculating a flow hash based at least upon the source address and the destination address; forming a congestion management (“CM”) tag that includes the flow hash; inserting the CM tag in the frame; and forwarding the frame to the destination address.
In this application, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be obvious, however, to one skilled in the art, that the present invention may be practiced without some or all of these specific details. In other instances, well known process steps have not been described in detail in order not to obscure the present invention.
Reference will now be made in detail to some specific examples of the invention, including the best modes contemplated by the inventor for carrying out the invention. Examples of these specific embodiments are illustrated in the accompanying drawings. While the invention is described in conjunction with these specific embodiments, it will be understood that it is not intended to limit the invention to the described embodiments. On the contrary, it is intended to cover alternatives, modifications, and equivalents as may be included within the spirit and scope of the invention as defined by the appended claims.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. Particular example embodiments of the present invention may be implemented without some or all of these specific details. In other instances, well-known process operations have not been described in detail in order not to obscure unnecessarily the present invention.
Various techniques and mechanisms of the present invention will sometimes be described in singular form for clarity. However, it should be noted that some embodiments include multiple iterations of a technique or multiple instantiations of a mechanism unless noted otherwise. For example, a system uses a processor in a variety of contexts. However, it will be appreciated that a system can use multiple processors while remaining within the scope of the present invention unless otherwise noted.
Similarly, the steps of the methods shown and described herein are not necessarily all performed (and in some implementations are not performed) in the order indicated. Moreover, some implementations of the methods discussed herein may include more or fewer steps than those shown or described.
Furthermore, the techniques and mechanisms of the present invention will sometimes describe and/or illustrate a connection between two entities. It should be noted that a connection between two entities does not necessarily mean a direct, unimpeded connection, as a variety of other entities may reside between the two entities. For example, a processor may be connected to memory, but it will be appreciated that a variety of bridges and controllers may reside between the processor and memory. Consequently, an indicated connection does not necessarily mean a direct, unimpeded connection unless otherwise noted. Moreover, there may be other connections between entities than are indicated herein, e.g., in network diagrams.
Various implementations of the present invention provide improved methods and devices for managing network traffic. Some implementations of the invention allow congestion to be pushed from congestion points in the core of a network to reaction points, which may be edge devices, host devices or components thereof. Rate limiters may shape individual flows of the reaction points that are causing congestion. Parameters of these rate limiters may be tuned according to feedback from congestion points, e.g., in the form of BCN messages. In some implementations, such BCN messages include congestion change information and at least one instantaneous measure of congestion. The instantaneous measure(s) of congestion may be relative to a threshold of a particular queue and/or relative to a threshold of a buffer that includes a plurality of queues. The BCN frames described herein are examples of such BCN messages.
Some embodiments of the present invention provide congestion management methods that may be implemented by network devices, such as switches and routers, as well as host devices such as desktop computers, laptops, etc. Some implementations of the present invention are particularly suitable for implementing a DCE solution, which simplifies the connectivity of data centers and provides a high bandwidth, low latency network for carrying Ethernet and storage traffic.
Some examples of DCE methods and devices are described in United States Patent Application Publication No. 2006/0251067, entitled “FIBRE CHANNEL OVER ETHERNET”, in United States Patent Application Publication No. 2006/0171318, entitled “ACTIVE QUEUE MANAGEMENT METHODS AND DEVICES” and in United States Patent Application Publication No. 2007/0081454, entitled “METHODS AND DEVICES FOR BACKWARD CONGESTION NOTIFICATION,”, collectively the DCE Applications, which are hereby incorporated by reference. However, the present invention has wide applicability outside of the DCE context and is suitable for Fibre Channel networks, IP networks and potentially any kind of packet switched network. Moreover, some congestion managed domains described herein include DCE portions as well as other portions, e.g., classical Ethernet portions.
In this example, core switch 140 comprises a “congestion point” that detects the congestion condition. According to preferred implementations of the invention, as soon as a congestion point detects congestion, it starts sending explicit feedback messages to the reaction points associated with the traffic flows causing such congestion. Such feedback messages will sometimes be referenced herein as backwards congestion notification (“BCN”) messages, BCN frames, or the like. In some such implementations, the feedback message is an Ethernet frame, which may have a format similar to that of one of the frame depicted herein.
In this example, core switch 140 causes “slow-down” BCN messages 180 and 190 to be sent towards end nodes 115 and 135. These messages will also be referred to herein as a “negative BCN feedback messages” or the like. Such messages (and other BCN messages that are described below) are processed at “reaction points,” where congestion mitigation measures are put into place. The reaction points could be edge switches 110 and 130, or, in some implementations, end nodes 115 and 135.
For devices configured to operate as reaction points, the processing of a negative BCN feedback message will result in the instantiation of a filter/rate limiter (or a further slow down of the one(s) already instantiated, if any) at the reaction point. The purpose of the rate limiter is to slow down a congesting traffic flow to mitigate congestion at the core switch. If congestion should improve (or dissipate completely), “speed-up” messages (also referred to herein as “positive BCN feedback messages” or the like) will cause the rate limiters to increase their rate to avoid wasting bandwidth at the congestion point.
In this example, edge switch 110 has received no recent indication of congestion for the flow with which frame 210 is associated. Therefore, edge switch 110 inserts a “short form” CM tag of the general type shown in
An example of how FlowID 275 may be structured is provided in
In some implementations, if a congestion point receives a frame with no CM tag it will raise an exception flag and drop the frame. In this implementation, a predetermined value of FlowID 275 (e.g., a value of zero) denotes traffic flows that should not be rate-limited (e.g., network control traffic). In some implementations, unless FlowID 275 is set to such a predetermined value, FlowID 275 is relevant only within the entity that inserts the CM tag.
Returning again to
In this example, when edge switch 110 receives a BCN frame from congestion point 140 and the BCN frame indicates that a reaction point should undertake a congestion mitigation action on a particular data flow (e.g., the installation of a rate limiter or the slowing down of an existing one), edge switch 110 stores congestion point identification data in a local register associated with such data flow. Edge switch 110 will subject frames belonging to that flow to the indicated congestion mitigation action. Moreover, edge switch 110 will insert a CM tag with a Rate Limited Tag (“RLT”) option into frames belonging to that flow. The RLT option will contain congestion point identification data that are subsequently injected by edge switch 110 into the congestion managed domain.
One example of a BCN frame is depicted in
In this example, field 320 is an IEEE 802.1Q tag that carries the VLAN of the sampled frame and the Priority field indicating the highest priority. Here, field 320 will indicate a null VLAN in two instances: (1) if the sampled frame did not carry an 802.1Q tag or (2) if the VLAN field of such tag indicated a null value.
A Cisco MetaData header (“CMD”) carrying a Security Group Tag (“SGT”) option may optionally follow the IEEE802.1Q Tag or S-Tag. (Field 322.) If so, the SGT may contain a value specifically assigned to the congestion point originating BCN frame 305. An SGT value may be drawn from a configuration register in the congestion point's register block.
Field 325 identifies the frame as being a BCN feedback message, in this example by indicating a predetermined EtherType. These EtherTypes are assignable by the IEEE Standards Department, 445 Hoes Lane, P.O. Box 1331, Piscataway, N.J. 08855-1331.
Version field 330 indicates the version of the BCN protocol. In this example, three bits following version field 330 change the semantics of the BCN message when they are set. The meaning of these bits will be described in more detail below. Q bit 331 indicates that Qdelta is saturated. In the example described below, Qdelta is saturated when its value is either equal to −2Qeq or +2Qeq. M bit 332 indicates a condition of mild congestion, whereas S bit 333 indicates a condition of severe congestion. Reserved bits in field 335 are not used in this example. Instead, they are set to zero on transmission and ignored on reception. Alternative implementations may include other metrics for congestion indication in a BCN frame. Moreover, future versions of the BCN protocol may redefine all or some of the reserved bits.
CPIDhsh field 337 indicates a hash of at least some data in the congestion point identifier (“CPID”) field 340. Any convenient hash function may be used to generate the value in CPIDhsh field 340. CPIDhsh field 340 may be used to minimize the amount of false positive feedback generated by multiple congestion points along the path from a source congestion point to a destination reaction point.
Field 340 indicates a CPID. A primary purpose of the CPID is to identify the congested entity in the network which has generated a BCN frame. Therefore, the CPID should ideally be unique across the network. The CPID preferably includes at least a MAC address associated with the network device that includes the congestion point, to ensure global uniqueness, plus a local identifier to ensure local uniqueness. In this example, the congested entity is a queue of core switch 140. This information is sent to a reaction point (here, to edge switch 110) in order to create an association between the congested entity and the reaction point.
Qoff field 345 and Qdelta field 350 contain quantitative feedback information conveyed by the congestion point to the reaction point. The use of such fields will be described below. In alternative implementations, other types of quantitative feedback information may be included in a BCN frame.
Payload 355 contains a CM tag—including its Ethertype—copied from the sampled frame. A primary purpose of payload 355 is to convey to the reaction point enough flow identification information to exert focused congestion mitigation actions. In some implementations, payload 355 will identify a traffic flow according to the 4-tuple {DA, SA, VLAN, Priority}.
Payload 355 may be required to have a minimum length, such that the resulting BCN frame 305 is always as large as, or larger than, a minimum-sized frame of the type used to implement the invention (e.g., a minimum-sized Ethernet frame of 64 bytes). If necessary, padding 367 will be added in order to ensure the length of BCN frame 305 is 64 bytes or larger. Field 370 is the Frame Check Sequence or CRC of the BCN frame 305.
Flow chart 400 of
If a rate limiter matching the FlowID from the BCN frame already exists, then the reaction point determines the feedback indicated by the BCN frame. If the feedback is negative, the reaction point stores the CPID and CPIDhsh field values (step 415) and adjusts the rate for the corresponding flow (step 417). Otherwise, the reaction point compares the CPID from the BCN frame with the one currently stored (step 416). If there is a match, the rate is adjusted (step 417). Otherwise, the BCN frame is ignored and the process terminates. (Step 418.)
If no match is found in step 425, the reaction point will create and insert a “short form” CM tag into the frame. (Step 445.) The reaction point will subsequently inject the frame into the BCN-enabled network. (Step 450.)
Here, RLT bit (“R bit”) 505 is set to 1, indicating that this CM tag includes the RLT option. The uses of B bit 510, H bit 515, I bit 520 and G bit 525 will be described in more detail below. Broadly speaking, B bit 510 may be used in special cases wherein multiple reaction points may be associated with a single traffic source, i.e., with a single source media access control (“MAC”) address. H bit 515 can be used to specify whether a MAC address included in the CM tag (if any) is a hierarchical MAC address. I bit 520 may be used for instances in which an edge switch is not capable of supporting BCN reaction point functionality on all of its input ports. G bit 525 may be used to support cases wherein a congestion managed domain includes both DCE portions and at least one classical Ethernet (“CE”) portion. This may be the case, for example, when a customer has partially upgraded a legacy Ethernet system to DCE.
Reserved field 530 is currently not used. The bits in this field may be set to predetermined values (e.g., to 0) on transmission and should be ignored on reception. Future versions of the BCN protocol may redefine all or some of the reserved bits. CPIDhsh field 535 contains the CPIDhsh value for the congested flow that has been copied by the reaction point from the appropriate register.
Timestamp field 540 may be used by a reaction point to estimate the round trip time from the congestion point with which the reaction point is associated. In this example, when a reaction point inserts an RLT in the CM tag of a frame that the reaction point is going to transmit, the current value of the reaction point's local free running timer is copied into timestamp field 540. Unit field 545 indicates the time units indicated in timestamp field 540.
As noted in the description of BCN frame 305 (with reference to
One such example is illustrated in the network diagram of
Here, host device 602 includes network interface cards (“NICs”) 604 and 606, both of which are configured to be BCN reaction points. NIC 604 is configured for communication with BCN-enabled network 600 via edge device 607 and NIC 606 is configured for communication with edge device 611. However, host 602 has a single MAC address. Therefore, NICs 604 and 606 are associated with the same MAC address. This may be the situation, for example, when a host device supports EtherChannel technology.
In this example, core network device 614 is a congestion point and has detected congestion on a flow between NIC 606 and host device 630. Accordingly, network device 614 will form one or more BCN frames based on traffic between NIC 606 and host device 630. If network device 614 were to use the MAC address of host device 602 as the destination address for the BCN frame(s), the BCN frame could be sent to host device 602 via various paths. For example, the BCN frame might be sent to host device 602 via network devices 612 and 611. If so, a rate limiter would be installed in NIC 606, the proper reaction point. Alternatively, the BCN frame might be sent to host device 602 via network devices 616 and 607. If so, a rate limiter would be installed in NIC 604, which is not the proper reaction point.
To avoid such potential problems, some implementations of the invention allow a BCN Frame to be directed to a specific port of ingress. According to some such implementations, a BCN Address (“BCNA”) option may be added to a CM tag.
One such CM tag 260 having a BCNA option is shown in
For example, ingress port 610 of
In this example, every port belonging to an Etherchannel or the like will be directly addressable, either with a hierarchical MAC address in case of DCE networks or via a combination of a switch MAC address plus a Port Index in case of “classical Ethernet” networks. Referring again to
If a flow entering a BCN-enabled network from an Etherchannel (or the like) is subject to rate limitation, the frames of such flows preferably carry both options when they leave the rate limiter. BCNA and RLT options may be indicated in the same CM tag, e.g., as depicted in
B bit 510 is also set to 1, indicating that CM tag 260 also includes the BCNA option. The information in MAC Address field 705 and Port Index/Reserved field 710 will depend on whether H bit is set to 1, as noted above. In this example, the BCNA option follows the RLT option, but in other implementations this need not be the case.
There are instances in which an edge switch is not capable of supporting BCN reaction point functionality on some or all of its input ports. One such example is edge switch 618 of
Some implementations of the invention allow edge switch 618 to delegate the BCN termination to switch 628. This delegation may be achieved, for example, via the BCNA Insert (“BCNAI”) option shown in
When ingress port 626 of switch 628 receives frames carrying the BCNAI option, ingress port 626 replaces the BCNAI option with a BCNA option. Ingress port 626 sets I bit 520 to zero and inserts actual values in FlowID field 275, Port Index/Reserved field 710 and MAC address field 705. In this example, the value of MAC address field 705 will depend on whether “H” bit of the BCNAI option is set. If H=0 (regular Ethernet), MAC address field 705 will indicate the MAC address of switch 628. If H=1 (indicating the hierarchical MAC addressing of DCE), MAC address field 705 will indicate the hierarchical MAC address of port 620. BCN frames generated by sampling frames coming from edge switch 618 will be directed to the proper ingress port of switch 618.
In preferred implementations, the BCNAI option and the RLT option cannot coexist in the same CM tag. In such implementations, the combination of flags R=1, B=1, and I=1 is illegal. If a frame containing a BCNAI option in the CM-Tag is received by a CP, an exception flag should be raised and such frame should be dropped.
Outer destination address (“ODA”) field 1005 of BCN frame 305 may be the outer source address (“OSA”) of a sampled frame. Alternatively, ODA field 1005 may indicate the MAC address in the BCNA option, if such option is present in the CM tag carried by the sampled frame and if G bit 525 of the CM tag is set to zero. Outer source address (“OSA”) field 380 contains the hierarchical MAC address of the congestion point that forms BCN frame 305. In this example, D-Tag field 1015 includes an FTag copied from the sampled DCE frame and a time-to-live (“TTL”) field copied from a local register.
Inner destination address (“IDA”) field 1020 indicates the inner SA of the sampled frame. Inner source address (“ISA”) field 1025 indicates the (non-hierarchical) MAC address of the congestion point that forms BCN frame 305. 802.1Q/S-Tag field 320 may be copied from the sampled frame. The Priority field of 802.1Q/S-Tag field 320 may be set either to the priority of the sampled frame or to a configurable priority. It is preferable to use the highest priority in order to minimize the latency experienced by BCN Frames. The other fields of BCN frame 305 may be as described earlier with reference to
Some additional implementations of the invention will now be described with reference to
In this example, core switch 1107 receives an indication to trigger a BCNA option via port 1108. It may be, for example, that one or more ingress ports of edge switch 1103 are not configured to support BCN functionality, or that there are multiple reaction points in host device 1124 associated with a single MAC address. For whatever reason, port 1108 forms a CM tag having a BCNA option, e.g., as shown in
Because the hierarchical MAC addresses of a DCE network are dynamically generated, there may sometimes be hierarchical MAC addresses that are duplicated in DCE portions 1101 and 1115. In other words, it may sometimes be the case that one or more of the ports in DCE portion 1101 have the same hierarchical MAC address(es) as one or more of the ports in DCE portion 1115.
In this example, port 1108 of core switch 1107 has the same hierarchical MAC address (“A”) as port 1117 of core switch 1116. Therefore, port 1108 includes hierarchical MAC address A in the CM tag. This could cause a BCN frame for flows that involve both core switch 1107 and core switch 1116 to be routed incorrectly, thereby imposing a rate limiter on the incorrect reaction point. For example, if core switch 1119 were a congestion point, this could cause a rate limiter to be applied in port 1117.
However, G bit 525 (the “iGnore” bit) can solve this potential problem. Port 1117 should be aware that it is connected to a classical Ethernet portion of the network. Port 1117 will also determine that the “H” bit of the CM tag has been set to 1, which indicates that the CM tag was formed by an upstream device that is part of a DCE portion of the network. Port 1117 also determines that the hierarchical MAC address in the CM tag matches its own hierarchical MAC address. Therefore, port 1117 sets G bit 525 to 1.
Because core switch 1119 is a congestion point for this flow, port 1121 will form a BCN frame addressed to hierarchical MAC address A. However, port 1117 will not terminate the BCN frame or set a rate limiter, because the G bit has been set. Instead, it will set the G bit to zero and forward the BCN frame to port 1108, which is the proper reaction point in this example. Even if the BCN frame does not exit DCE portion 1115 via port 1117, the G bit should still be set to zero when the BCN frame is about to leave DCE portion 1115 and enter classical Ethernet portion 1110 (e.g., if the BCN frame returns via core switch 1114).
Examples of methods for congestion detection and for generating BCN frames at a congestion point will now be described with reference to
Here, a congestion point samples incoming frames with a probability P 1220. P 1220 is a configurable parameter, the selection of which may be a tradeoff between the usefulness of more frequent congestion detection and the overhead required for more frequent sampling and computation. In some preferred implementations, P 1220 is in the range of 0.01 to 0.1; in some such implementations, P 1220 is 0.01. The values of Qeq 1210, Qsc 1215 and P 1220 are preferably established before the other steps shown in
A congestion point may sample on a byte arrival basis. That is, if the average frame length is E[L], then a congestion point may sample a frame, on average, for every E[L]/P bytes received. For example, given an average frame length of 1000 bytes, the average sampling rate may be one frame for every 100 KB of data received.
Some such methods may be implemented using a fixed interval followed by a variable interval, which may be a random interval.
The length of every frame carrying a non-zero FlowID in the CM-Tag that arrives at the queue is accumulated in L. The frame that makes L>=S is sampled. A new random interval Sr may then be picked and L may be set to zero. The fixed interval Sf may, for example, be configurable in the range [0, 256] KB. The random interval Sr may, for example, be generated in the range [0, 64] KB.
In step 1225, a congestion point determines whether or not to sample a frame. If no frame is sampled, no BCN frame will be generated at that moment. (Step 1230.)
According to some implementations, when the queue length is zero (0) or the queue length is above a mild congestion threshold Qmc 1231, the congestion point may increase the sampling probability by a factor Sscale, e.g., S may be divided by Sscale. For example, Sscale may be a power of 2. Preferably, BCN frames and all frames carrying a null FlowID in the CM-Tag are ignored by the sampling process, because they do not contribute to the increment of L. For example, frames pertaining to network control traffic may be ignored by the sampling process.
In this example, when a congestion point samples a frame, the congestion point compares the current queue length Qlen with a severe congestion threshold Qsc 1231. (Step 1235.) If Qlen is greater than Qsc, the congestion point determines that the queue is under severe congestion conditions. Here, a special BCN message, i.e., BCN(0,0), is generated. (Step 1237.) Such a message may, for example, cause a rate limiter to temporarily drop its rate to zero.
In this example, a BCN feedback message includes two fields, Qoff 1239 and Qdelta 1240. Qoff 1239 is an instantaneous measure of congestion, which in this example is the offset of the current queue length Qlen 1241 with respect to the equilibrium threshold Qeq 1210. Here, Qoff 1239 is saturated at +Qeq and −Qeq. In this example, a BCN feedback message also includes congestion change information. Here, the congestion change information is Qdelta 1240, which is the change in length of the queue since the last sampled frame. In this example, Qdelta 1240 is saturated at +2Qeq and −2Qeq. When Qdelta 1240 saturates, the Q bit in the BCN Frame is set. When Qoff and Qdelta are both zero, in some implementations no BCN message is generated. The message BCN(0,0) may have a special meaning: a “stop” BCN feedback message may be indicated by zero values for Qoff 1239 and Qdelta 1240, as described above with reference to step 1237.
If the congestion point determines in step 1245 that Qlen is below Qsc but above Qmc, in this example the congestion point generates a BCN message corresponding to maximum negative feedback. (Step 1247.) This message will cause the maximum rate decrement to occur at the rate limiter that receives such a message.
If the congestion point determines in step 1245 that Qlen is less than or equal to Qmc, in this example the congestion point calculates the values of Qoff 1239 and Qdelta 1240. Qdelta 1240 may be calculated according to various methods. In one such method, Qdelta 1240 is the difference between the current queue length Qlen 1241 and the queue length at the previous time of sampling (here, Qold 1243). In another such method, Qdelta 1240 is the difference between the number of packets (or other data units) added to the queue and the number of packets (or other data units) removed from the queue since the last time of sampling. The first method is more accurate but requires that an indication of the previous queue length be stored in memory. The second method requires a smaller amount of state to be kept, but may be prone to error accumulation.
Here, if the congestion point determines in step 1249 that Qoff 1239 is positive (i.e., if the congestion point determines that Qlen 1241 is greater than Qeq 1210), the congestion point generates a BCN message containing Qoff 1239 and Qdelta 1240. (Step 1250.) If the congestion point determines that Qoff 1239 is not positive, in this example the congestion point determines whether the CM tag of the sampled frame contains an RLT option and whether the CPIDhsh field matches the CPIDhsh associated with the queue. (Step 1251.) If so, the congestion point generates a BCN message containing Qoff 1239 and Qdelta 1240. (Step 1250.) If not, no BCN message is generated. (Step 1253.)
The rationale behind step 1251 is the following: if Qoff 1239 is positive, the Qlen 1241 is above the equilibrium level of Qeq 1210. Therefore a BCN message should be generated. Otherwise, the queue may be emptying out, or may be filling up but may not yet have reached the equilibrium threshold. In such cases, a BCN message should preferably be generated only on those flows that are currently rate limited and associated with this particular congestion point. This check is desirable to reduce as much as possible the generation of “false positive” BCN messages, i.e., positive BCN messages for non rate-limited flows, or for rate limited flows associated with other congestion points.
After BCN frames have been received indicating congestion that pertains to this reaction point (e.g., as in the state of edge device 110 in
According to some implementations of the invention, the rate control algorithm used by rate limiters 1340 works according to a Feedback Signal Fb that is calculated, e.g., according to Equation (1):
Fb=−(Qoff+w·Qdelta) Equation (1)
In Equation (1), w is a parameter used to weight the derivative component Qdelta (which is also referred to herein as the congestion change component or the like) more or less with respect to the offset component Qoff (which is also referred to herein as the instantaneous measure of congestion or the like). The values of Qoff and Qdelta are determined from BCN frames received by a reaction point. Based on the sign of the Feedback Signal Fb, in some implementations of the invention the rate R is increased or decreased as follows:
If Fb>0 R=R+Gi·Fb·Ru Equation (2)
If Fb<0 R=R·(1−Gd·|Fb|) Equation (3)
If Fb=0, R is unchanged. Here, Gi and Gd are the Increase Gain and Decrease Gain respectively, and Ru is the Rate Unit (i.e., the granularity of the rate adjustment) employed by the rate limiters. In one example, Gi=1, Ru=8 Mbps and Gd= 1/64. However, these values are merely examples and the variables of Equations (2) and (3) may be optimized according to the implementation. The calculations are preferably done in the reaction point. In alternative implementations, the calculations are done elsewhere, e.g., in the detection point. However, if the calculations are performed in a location other than the reaction point, the most effective use of timestamps will be inhibited.
It will be observed that in implementations that use equations in the general form of Equations (2) and (3) to control changes in R, the rates are decreased more aggressively when Fb<0 (a multiplicative decrease) than the rates are increased when Fb>0 (an additive increase). This is desirable in order to avoid filling the buffers of a congestion point too quickly due to a slow response to detected congestion or due to a too-rapid increase in flow when congestion is abating.
A limited number of filters/rate limiters may be available. There may be cases when all the filters have been used and a BCN message is received which should cause the instantiation of a new filter/rate limiter pair. In such cases, a number of actions may be taken, e.g.: (1) aggregate all the filters/rate limiters in a single filter/rate limiter that controls the entire traffic originated by and end system; (2) aggregate filters/rate limiters in an “intelligent” way, e.g., use the same filter/rate limiter for all the traffic flows sharing the same destination address, etc; or (3) aggregate filters/rate limiters in a “less intelligent” way, e.g., use the same filter/rate limiter for all the traffic flows sharing the same bucket based on an hash function of the frame header.
When a reaction point receives a BCN Frame, the difference between the current time and the time indicated in the timestamp field of the BCN Frame is calculated. This difference is the last measure of the round trip time between the reaction point and the congestion point. This measure may be averaged out (for example using an Exponential Weighted Moving Average similar to the one used in weighted random early detection (“WRED”) schemes) and used to dynamically adjust the value of some of the reaction parameters. For example, a reaction point may have a number of tables containing different values of the w, Gi, and Gd parameters precalculated based on different round-trip times. The current value of the averaged round-trip time may be used to select the table of parameters that best suite the current loop delay.
Once a rate limiter has been instantiated, it may be reclaimed once two conditions are satisfied: (1) the queue of the rate limiter is empty, and (2) its rate is at or above the line-rate. These two conditions are necessary to avoid out of order packet delivery.
Each rate limiter is associated with a timer that is reset every time a BCN Frame is received. If this timer expires, it means that the corresponding rate limiter has not received BCN Frames for the entire duration of the timeout period. This may happen, for example, because the traffic stream that that rate limiter was controlling has suddenly ended. Alternatively, this may occur because routing issues in the network are preventing BCN Frames from reaching the reaction point. To reclaim a rate limiter that may potentially be stale, various implementations of the invention employ a variety of solutions. In some implementations, the rate limiter is immediately freed up at the timeout expiration. In other implementations, the rate of the rate limiter starts automatically increasing when the timer expires. This increase may continue, for example, until the conditions for the filter reclaiming are met or BCN frames are eventually received. In other implementations, management software is notified (e.g., via an interrupt) of the anomaly and the management software is allowed to deal with the issue.
Rate limiters use a certain amount of buffer space to store frames held in their queues. Therefore, an active queue management mechanism may advantageously be used to prevent such buffers from overflowing. Traditional AQM techniques such as RED do not work well in such conditions because of the limited buffer and flow dynamics. An alternative AQM algorithm of the present invention may be implemented as follows. First, a threshold Qaqm is associated with the rate limiter queues. If the length of a rate limiter queue is below the Qaqm threshold, no action is taken. If the length of the rate limiter is above the Qaqm threshold, a packet is dropped/marked with a certain fixed probability (e.g., a probability in the range of 0.1 to 0.001).
If reactive and non-reactive flows (such as TCP and UDP flows) are sharing the same rate limiter queue, two separate packet counters are introduced. One packet counter is used for counting reactive packets in and the other for non-reactive packets stored in the queue. The AQM algorithm described in the previous paragraph could be implemented in the same way, except that for non-reactive flows the drop probability is 1.
An active filter 1320 may change its association with a congestion point over time. The association can be changed when a negative BCN Frame is received from a congestion point different from the one currently associated with the filter. For example, if a traffic flow is subject to congestion at congestion point CP1 (and therefore is filtered and rate-controlled according to feedback from CP1) starts experiencing congestion at congestion point CP2, CP2 will generate negative a BCN frame for that flow, causing its filter to change association from CP1 to CP2. After some time, the negative feedback generated by one of the two congestion points will prevail and the filter will settle its association with that congestion point.
When a congestion point is subject to severe congestion, it may send a “stop” BCN feedback message. Such a message is also referred to herein as a “BCN0” message or the like because in some implementations a “stop” BCN feedback message is a BCN message with Qoff=0 and Qdelta=0.
Referring now to graph 1405 of
After the timer expiration, Tmax is doubled and Rmin is halved, so that the next BCN0 will cause the random timer to have a longer duration and the rate limiter to restart from a slower rate, effectively realizing an exponential back-off. The initial values of Tmax and Rmin are restored upon the reception of the first positive feedback. During the timeout period, i.e., while the random timer is running, all BCN messages, including BCN0, should be ignored.
The same timer may be used if, for any reason, the rate of a rate limiter becomes smaller that Rmin. When this happens, the random timer is started. When it expires, the rate of the rate limiter is set to Rmin.
Special handling of the BCN message may be required when any of the Q bits are set in the BCN Frame. When a Q bit is set, the Qdelta parameter is saturated at 2Qeq or −2Qeq. When this happens, a stronger rate adjustment must be performed because the system is working outside of the linear region. The saturation feedback signal may be calculated as follows:
The rate adjustment is then performed as usual, i.e.:
If Fbsat>0 R=R+Gi·Fbsat·Ru
If Fbsat<0 R=R·(1−Gd·|Fbsat|)
In this example, the saturation feedback generates a rate adjustment twice as big as the maximum rate adjustment.
It will often be the case that a queue considered herein is part of a VOQ system wherein an unpredictable number of queues may be sharing a common buffer at any given time. In such circumstances, it may be beneficial to tune or modify the previously-described methods of the present invention according to the state of the VOQ system and the associated buffer. The larger the number of VOQs sharing the same physical or logical buffer, the lower the equilibrium threshold Qeq should be kept. Accordingly, some implementations of the invention provide a dynamic equilibrium threshold Qeq that responds to such conditions by decreasing Qeq as the number of active VOQs increases and increasing Qeq as the number of active VOQs decreases.
Moreover, the more that a common buffer is congested, the stronger the reaction implemented by the reaction points should be. In some implementations of the invention, the overall occupancy of a buffer will override the previously-described methods for implementing BCN messages according to indications from individual queues. One such implementation will now be described with reference to
In this example, when the occupancy of buffer 1505 increases beyond mild congestion threshold (“Bmc”), the M bit will be set in the BCN frame (e.g., in reserved area 335 of frame 305 (see
When the severe congestion threshold (“Bsc”) is crossed, the S bit will be set in the BCN frame. If the reaction point detects that the S bit has been set, the reaction point will translate any corresponding BCN indication to be a “stop” BCN indication and will respond accordingly.
Although illustrative embodiments and applications of this invention are shown and described herein, many variations and modifications are possible which remain within the concept, scope, and spirit of the invention, and these variations would become clear to those of ordinary skill in the art after perusal of this application.
Accordingly, the present embodiments are to be considered as illustrative and not restrictive, and the invention is not to be limited to the details given herein, but may be modified within the scope and equivalents of the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
5402416 | Cieslak et al. | Mar 1995 | A |
5526350 | Gittins et al. | Jun 1996 | A |
5742604 | Edsall et al. | Apr 1998 | A |
5920566 | Hendel et al. | Jul 1999 | A |
5946313 | Allan et al. | Aug 1999 | A |
5974467 | Haddock et al. | Oct 1999 | A |
6021124 | Haartsen | Feb 2000 | A |
6104699 | Holender et al. | Aug 2000 | A |
6195356 | Anello et al. | Feb 2001 | B1 |
6201789 | Witkowski et al. | Mar 2001 | B1 |
6333917 | Lyon et al. | Dec 2001 | B1 |
6397260 | Wils et al. | May 2002 | B1 |
6404768 | Basak et al. | Jun 2002 | B1 |
6414939 | Yamato | Jul 2002 | B1 |
6456590 | Ren et al. | Sep 2002 | B1 |
6459698 | Achrya | Oct 2002 | B1 |
6504836 | Li et al. | Jan 2003 | B1 |
6529489 | Kikuchi et al. | Mar 2003 | B1 |
6556541 | Bare | Apr 2003 | B1 |
6556578 | Silberschatz et al. | Apr 2003 | B1 |
6560198 | Ott et al. | May 2003 | B1 |
6587436 | Vu et al. | Jul 2003 | B1 |
6636524 | Chen et al. | Oct 2003 | B1 |
6650623 | Varma et al. | Nov 2003 | B1 |
6671258 | Bonneau | Dec 2003 | B1 |
6721316 | Epps et al. | Apr 2004 | B1 |
6724725 | Dreyer et al. | Apr 2004 | B1 |
6839794 | Schober | Jan 2005 | B1 |
6885633 | Mikkonen | Apr 2005 | B1 |
6888824 | Fang et al. | May 2005 | B1 |
6901593 | Aweya et al. | May 2005 | B2 |
6904507 | Gil | Jun 2005 | B2 |
6922408 | Bloch et al. | Jul 2005 | B2 |
6934256 | Jacobson et al. | Aug 2005 | B1 |
6934292 | Ammitzboell | Aug 2005 | B1 |
6975581 | Medina et al. | Dec 2005 | B1 |
6975593 | Collier et al. | Dec 2005 | B2 |
6990529 | Yang et al. | Jan 2006 | B2 |
6999462 | Acharaya | Feb 2006 | B1 |
7016971 | Recio et al. | Mar 2006 | B1 |
7020715 | Venkataraman et al. | Mar 2006 | B2 |
7046631 | Giroux et al. | May 2006 | B1 |
7046666 | Bollay et al. | May 2006 | B1 |
7047666 | Hahn et al. | May 2006 | B2 |
7093024 | Craddock et al. | Aug 2006 | B2 |
7133405 | Graham et al. | Nov 2006 | B2 |
7133416 | Chamdani | Nov 2006 | B1 |
7158480 | Firoiu et al. | Jan 2007 | B1 |
7187688 | Garmire et al. | Mar 2007 | B2 |
7190667 | Susnov et al. | Mar 2007 | B2 |
7197047 | Latif et al. | Mar 2007 | B2 |
7209478 | Rojas et al. | Apr 2007 | B2 |
7209489 | Bailey et al. | Apr 2007 | B1 |
7221656 | Aweya et al. | May 2007 | B1 |
7225364 | Carnevale et al. | May 2007 | B2 |
7266122 | Hogg et al. | Sep 2007 | B1 |
7266598 | Rolia | Sep 2007 | B2 |
7277391 | Aweya et al. | Oct 2007 | B1 |
7286485 | Oulette et al. | Oct 2007 | B1 |
7319669 | Kunz et al. | Jan 2008 | B1 |
7349334 | Rider | Mar 2008 | B2 |
7349336 | Mathews et al. | Mar 2008 | B2 |
7359321 | Sindhu et al. | Apr 2008 | B1 |
7385997 | Gorti et al. | Jun 2008 | B2 |
7400590 | Rygh et al. | Jul 2008 | B1 |
7400634 | Higashitaniguchi et al. | Jul 2008 | B2 |
7406092 | Dropps et al. | Jul 2008 | B2 |
7436845 | Rygh et al. | Oct 2008 | B1 |
7486689 | Mott | Feb 2009 | B1 |
7525983 | Dropps et al. | Apr 2009 | B2 |
7529243 | Sodder et al. | May 2009 | B2 |
7561571 | Lovett et al. | Jul 2009 | B1 |
7564789 | Betker | Jul 2009 | B2 |
7564869 | Cafiero et al. | Jul 2009 | B2 |
7596627 | Cometto et al. | Sep 2009 | B2 |
7602720 | Bergamasco et al. | Oct 2009 | B2 |
7684326 | Nation et al. | Mar 2010 | B2 |
7801125 | Kreeger et al. | Sep 2010 | B2 |
7830793 | Gai et al. | Nov 2010 | B2 |
7961621 | Bergamasco et al. | Jun 2011 | B2 |
7969971 | Gai et al. | Jun 2011 | B2 |
20010043564 | Bloch et al. | Nov 2001 | A1 |
20010048661 | Clear et al. | Dec 2001 | A1 |
20020046271 | Huang | Apr 2002 | A1 |
20020085493 | Pekkala et al. | Jul 2002 | A1 |
20020085565 | Ku et al. | Jul 2002 | A1 |
20020103631 | Feldmann et al. | Aug 2002 | A1 |
20020141427 | McAlpine | Oct 2002 | A1 |
20020159385 | Susnow et al. | Oct 2002 | A1 |
20020188648 | Aweya et al. | Dec 2002 | A1 |
20020191640 | Haymes et al. | Dec 2002 | A1 |
20030002517 | Takajitsuko et al. | Jan 2003 | A1 |
20030026267 | Obermann et al. | Feb 2003 | A1 |
20030037127 | Shah et al. | Feb 2003 | A1 |
20030037163 | Kitada et al. | Feb 2003 | A1 |
20030061379 | Craddock et al. | Mar 2003 | A1 |
20030084219 | Yao et al. | May 2003 | A1 |
20030091037 | Latif et al. | May 2003 | A1 |
20030115355 | Cometto et al. | Jun 2003 | A1 |
20030118030 | Fukuda | Jun 2003 | A1 |
20030152063 | Giese et al. | Aug 2003 | A1 |
20030169690 | Mott | Sep 2003 | A1 |
20030193942 | Gil | Oct 2003 | A1 |
20030195983 | Krause | Oct 2003 | A1 |
20030202536 | Foster et al. | Oct 2003 | A1 |
20030223416 | Rojas et al. | Dec 2003 | A1 |
20030227893 | Bajic | Dec 2003 | A1 |
20040008675 | Basso et al. | Jan 2004 | A1 |
20040013088 | Gregg | Jan 2004 | A1 |
20040013124 | Peebles et al. | Jan 2004 | A1 |
20040024903 | Costatino et al. | Feb 2004 | A1 |
20040032856 | Sandstrom | Feb 2004 | A1 |
20040042448 | Lebizay et al. | Mar 2004 | A1 |
20040042477 | Bitar et al. | Mar 2004 | A1 |
20040076175 | Patenaude | Apr 2004 | A1 |
20040078621 | Talaugon et al. | Apr 2004 | A1 |
20040081203 | Sodder et al. | Apr 2004 | A1 |
20040100980 | Jacobs et al. | May 2004 | A1 |
20040120332 | Hendel | Jun 2004 | A1 |
20040156390 | Prasad et al. | Aug 2004 | A1 |
20040196809 | Dillinger et al. | Oct 2004 | A1 |
20040213243 | Lin et al. | Oct 2004 | A1 |
20040240459 | Lo et al. | Dec 2004 | A1 |
20050002329 | Luft et al. | Jan 2005 | A1 |
20050018606 | Dropps et al. | Jan 2005 | A1 |
20050025179 | McLaggan et al. | Feb 2005 | A1 |
20050047421 | Solomon | Mar 2005 | A1 |
20050060445 | Beukema et al. | Mar 2005 | A1 |
20050138243 | Tierney et al. | Jun 2005 | A1 |
20050141419 | Bergamasco et al. | Jun 2005 | A1 |
20050141568 | Kwak et al. | Jun 2005 | A1 |
20050169188 | Cometto et al. | Aug 2005 | A1 |
20050169270 | Mutou et al. | Aug 2005 | A1 |
20050190752 | Chiou et al. | Sep 2005 | A1 |
20050226149 | Jacobson et al. | Oct 2005 | A1 |
20050238064 | Winter et al. | Oct 2005 | A1 |
20060002385 | Johnsen et al. | Jan 2006 | A1 |
20060023708 | Snively | Feb 2006 | A1 |
20060059213 | Evoy | Mar 2006 | A1 |
20060087989 | Gai et al. | Apr 2006 | A1 |
20060098589 | Kreeger et al. | May 2006 | A1 |
20060098681 | Cafiero et al. | May 2006 | A1 |
20060101140 | Gai et al. | May 2006 | A1 |
20060146832 | Rampal et al. | Jul 2006 | A1 |
20060171318 | Bergamasco et al. | Aug 2006 | A1 |
20060187832 | Yu | Aug 2006 | A1 |
20060198323 | Finn | Sep 2006 | A1 |
20060215550 | Malhotra | Sep 2006 | A1 |
20060251067 | DeSanti et al. | Nov 2006 | A1 |
20070041321 | Sasaki et al. | Feb 2007 | A1 |
20070047443 | Desai et al. | Mar 2007 | A1 |
20070081454 | Bergamasco et al. | Apr 2007 | A1 |
20070115824 | Chandra et al. | May 2007 | A1 |
20070121617 | Kanekar et al. | May 2007 | A1 |
20070183332 | Oh et al. | Aug 2007 | A1 |
20080069114 | Shimada | Mar 2008 | A1 |
20080089247 | Sane et al. | Apr 2008 | A1 |
20080186968 | Farinacci et al. | Aug 2008 | A1 |
20080212595 | Figueira et al. | Sep 2008 | A1 |
20080259798 | Loh et al. | Oct 2008 | A1 |
20080273465 | Gusat et al. | Nov 2008 | A1 |
20090010162 | Bergamasco et al. | Jan 2009 | A1 |
20090073882 | McAlpine et al. | Mar 2009 | A1 |
20090232138 | Gobara et al. | Sep 2009 | A1 |
20090252038 | Cafiero et al. | Oct 2009 | A1 |
20110007741 | Kreeger et al. | Jan 2011 | A1 |
Number | Date | Country |
---|---|---|
1778079 | May 2006 | CN |
1206099 | May 2002 | EP |
WO2004064324 | Jul 2004 | WO |
WO 2006047092 | May 2006 | WO |
WO 2006047109 | May 2006 | WO |
WO 2006047194 | May 2006 | WO |
WO 2006047223 | May 2006 | WO |
2006063922 | Jun 2006 | WO |
WO 2006057730 | Jun 2006 | WO |
WO 2007050250 | May 2007 | WO |
2008097730 | Jan 2008 | WO |
Number | Date | Country | |
---|---|---|---|
20090052326 A1 | Feb 2009 | US |