The present invention relates to computer systems, and more particularly to a method for providing a mechanism for allowing a host to manage congestion control and avoidance behavior of a network processor in a scalable, flexible manner.
Driven by increasing usage of a variety of network applications, such as those involving the Internet, computer networks are of increasing interest. In order to couple portions of a network together or to couple networks together, network processors residing in switches, routers, and/or other components are typically used. In order to adequately control the traffic through the network, the behavior of each network processor is controlled to determine its actions in the event of congestion and to attempt to avoid congestion. Congestion occurs for a particular network processor when the network processor may drop packets, for example because the network processor receives more packets in a particular interval than can be queued or transmitted. The action(s) that a particular network processor is to take in the event of congestion may change depending upon the network. Thus, a network administrator typically desires to manage the congestion control and avoidance behavior of the network processors.
The conventional network processors 30, 40, and 50 are typically purchased by the owner of the conventional system 10. The conventional network processors 30, 40, and 50 each includes conventional software and/or firmware 32, 42, and 52, respectively, that may be different. For example, the conventional network processors 30, 40, and 50 may include different versions of a particular model of network processor from a particular vendor and/or other model(s) of network processor that may be from other vendors. Thus, the conventional network processors 30 and 40 are depicted as having software and/or firmware 32 and 42 that are different versions of a Model X network processor, while the software and/or firmware 52 of the conventional network processor 50 is a Model Y network processor. Because the conventional network processors 30, 40, and 50 are designed to communicate with different control applications, each conventional network processor 30, 40, and 50 utilizes conventional application program interfaces (APIs) 12, 14, and 16, respectively, that are specific to the particular software and/or firmware 32, 42, and 52, respectively.
The conventional congestion control application 22 is used to manage the congestion control and avoidance behavior of the conventional network processors 30, 40, and 50, respectively. The conventional congestion control application 22 thus includes a corresponding set of conventional behaviors 24, 26, and 28 for each set of the conventional APIs 12, 14, and 16, respectively. The conventional APIs 12, 14, and 16 are designed to communicate with the conventional behaviors 32, 42, and 52, respectively. The conventional APIs 12, 14, and 16 are also used to control the corresponding software and/or firmware 32, 42, and 52, respectively. Thus, using the conventional behaviors 24, 26, and 28 corresponding to the conventional APIs 12, 14, and 16, respectively, the conventional congestion control application 22 can control the congestion control and avoidance behavior of each of the conventional network processors 30, 40, and 50, respectively.
Although the conventional system 10 functions, one of ordinary skill in the art will readily recognize that the conventional system is difficult to scale. The conventional network processors 30, 40, and 50 are typically heterogeneous in nature. Because the conventional network processors 30, 40, and 50 are heterogeneous, the conventional network processors may include different versions of a particular model of network processor and/or different models of network processor. In addition, the congestion control and avoidance behavior of each conventional network processor 30, 40, and 50 may differ widely. Thus, the software and/or firmware 32, 42, and 52 of different network processors typically differ. The APIs 12, 14, and 16 thus also differ. Consequently, the corresponding behaviors 24, 26, and 28 of the conventional congestion control application 22 are distinct. One of ordinary skill in the art will also readily recognize that the conventional system 10 may actually include a large number of network processors. Consequently, the number of conventional APIs 12, 14, and 16 with which the conventional congestion control application 22 must be compatible may be large. As a result, the number of distinct conventional behaviors used by the conventional host processor 20 and developed by the owner of the conventional system 10, such as the conventional behaviors 24, 26, and 28, may be large. As a result, the congestion control application 22 may be complex and include an amalgamation of a variety of behaviors, one for each model and/or version of conventional network processor. It may thus be difficult to incorporate new network processors, which may have software and/or firmware and thus APIs not previously supported. The conventional system 10 is, therefore, difficult to scale. Because of difficulties in incorporating new software and/or firmware and their corresponding APIs, evolving the conventional congestion control application 22 and, therefore, the conventional system 10 to utilize improved network processors may be problematic. Furthermore, because supporting a variety of conventional behaviors 24, 26, and 28 makes the conventional congestion control application 22 more complex, the conventional system 10 may be subject to higher maintenance costs.
Accordingly, what is needed is a method for allowing a host to control congestion control and avoidance behavior of a network processor in a scalable, flexible manner. The present invention addresses such a need.
The present invention provides a method for managing congestion and avoidance behavior of network processors, the method comprising: providing for controlling network traffic by a plurality of network processors, a first of the plurality of network processors being of a different model or version from a second of the plurality of network processors; providing for a congestion control application being network processor independent such that the congestion control application need not have specific knowledge of a network processor's hardware, software, or firmware in order to manage the network processor's congestion and avoidance behavior; managing congestion and avoidance behavior of the plurality of network processors by a host processor having the congestion control application; and, providing for a plurality of application programming interfaces (APIs), each of the plurality of APIs being usable by the congestion control application of the host processor to manage the congestion and avoidance behavior of any of the plurality of network processors, none of the plurality of APIs being limited for use with a specific network processor model or version.
According to the method disclosed herein, the present invention provides a generic mechanism for managing the congestion control and avoidance behavior. As a result, a customer need not maintain a congestion control application having different sets of API for different types (e.g. models and/or versions) of network processors.
The present invention relates to an improvement in computer system. The following description is presented to enable one of ordinary skill in the art to make and use the invention and is provided in the context of a patent application and its requirements. Various modifications to the preferred embodiment will be readily apparent to those skilled in the art and the generic principles herein may be applied to other embodiments. Thus, the present invention is not intended to be limited to the embodiment shown, but is to be accorded the widest scope consistent with the principles and features described herein.
The present invention provides a method for controlling congestion control and avoidance behavior of a plurality of heterogeneous network processors in a network. The network also includes at least one host processor that utilizes at least one congestion control application. The method comprises providing a plurality of generic application program interfaces (APIs). The generic APIs communicate with the congestion control application(s) and the heterogeneous network processors. The generic APIs communicate with the congestion control application(s) in a network processor independent manner, but manage the congestion control and avoidance behavior of the heterogeneous network processors in a network processor specific manner. Thus, the generic APIs allow the congestion control application(s) to be network processor independent and to manage the congestion control and avoidance behavior of the heterogeneous network processors in the network processor specific manner.
The present invention will be described in terms of a particular computer system, a particular network processor, and certain APIs. However, one of ordinary skill in the art will readily recognize that this method will operate effectively for other computer system and network processors, as well as additional and/or other APIs. The present invention is also described in the context of a network including specific components and a particular number of components. However, one of ordinary skill in the art will readily recognize that the present invention is consistent with other networks containing other and/or additional components as well as another number of components. The present invention is also described in the context of congestion control and avoidance behavior. One of ordinary skill in the art will readily recognize that the term congestion control and avoidance denotes congestion control and/or avoidance.
To more particularly illustrate the method in accordance with the present invention, refer now to
The network processors 120, 130, and 140 are capable of being heterogeneous. Thus, the network processors 120, 130, and 140 may have hardware, software, and/or firmware for congestion control that differ significantly. For example, as depicted in
Referring back to
The generic APIs 150 also communicate with and control the network processors 120, 130, and 140 in a network processor specific manner. In the context of the present application, network processor specific includes a knowledge of the specifics of a particular network processor, such as the hardware, software and/or firmware 122, 132, and 142, and possibly other components used by the particular network processor 120, 130, and 140, respectively. Thus, the APIs 150 allow the congestion control application 112 to be network processor independent while allowing each of the network processors 120, 130, and 140 to be control in a network processor specific manner.
Using the system 100, and more particularly the generic APIs 150, the congestion control application 112 can be network processor independent. Because of the use of the generic APIs, the congestion control application 112 can still control the potentially heterogeneous network processors 120, 130, and 140 in a network processor specific manner. As a result, the congestion control application 112, need not include a separate set of APIs for each type of network processor 120, 130, and 140 used. The congestion control application 112 is, therefore, simpler. As a result, it is significantly simpler to scale the system 100, including adding new types of network processors. It is thus also easier to improve the performance of the system 100 by adding improved network processors. In addition, the maintenance costs of the system 100 may be reduced due to the use of a simpler congestion control application 112.
The congestion control and avoidance behavior of network processors, such as the network processors 120, 130, and 140, is abstracted, via step 202. Each network processor 120, 130, and 140 performs congestion control and avoidance in a specific manner. Step 202 abstracts the congestion control and avoidance behavior of network processors to a more general level. For example, step 202 includes determining the locations at which network processor might manage congestion.
For example,
Other aspects of a network processor are preferably also abstracted in step 202. For example, the types of congestion control algorithms that could be applied at the locations 161-1 to 161-n, 162-1 to 162-n, 163-1 to 163-n, 164-1 to 164-n, 165-1 to 165-n, 166-1 to 166-n, and 167-1 to 167-n could also be identified in step 202. The type of algorithm applied may depend upon the location 161-1 to 161-n, 162-1 to 162-n, 163-1 to 163-n, 164-1 to 164-n, 165-1 to 165-n, 166-1 to 166-n, and 167-1 to 167-n at which an algorithm is desired to be applied. For example, a Bandwidth Allocation Technology (BAT) algorithm (not explicitly shown) might control congestion at the input ports 161-1 to 161-n. Packets arriving at each port 161-1 to 161-n are regarded as one flow. The BAT algorithm computes the corresponding transmit probabilities and discards packets accordingly. The algorithm generally applies only when congestion is sensed by the congestion control hardware unit (not explicitly shown) in the network processor 160. BAT can preferably be enabled or disabled on a per port basis. Certain congestion control algorithms operate on the receive queues 162-1 to 162-n. For example, the Random Early Discard (RED) algorithm might be applied at one or more of the receive queues 162-1 to 162-n. The RED algorithm uses the weighted average queue length as a feedback mechanism to decide on when to drop packets. When the weighted average queue length is between two configured thresholds, the RED algorithm typically drops packets depending on a calculated probability. The RED algorithm relies on the responsive nature of the end protocols to prevent congestion. Many congestion control algorithms might operate on flows 163-1 to 163-n, such as those based on DiffServ flows. A coloring algorithm (srTCM, trTCM, BAT) first meters the flows 163-1 to 163-n. A discard algorithm (such as BAT) uses the metered color and dynamically computed transmit probabilities to make discard decisions for each of the flows 163-1 to 163-n. Algorithms like Flow Random Early Discard (FRED) might also operate on the flows 163-1 to 163-n. Algorithms such as FRED might also operate on the scheduler flows 164-1 to 164-n. Similarly, some network processors may support the operation of algorithms such as RED and WRED on the scheduler queues 165-1 to 1656-n and/or on the transmit queues 166-1 to 166-n. Thus, step 202 abstracts network processors, such as the network processors 120, 130, and 140, in the context of congestion control and avoidance.
The generic APIs 150 are defined using the abstraction provided, via step 204. Thus, step 204 provides the generic APIs 150 that can preferably manage congestion control and avoidance behavior at any of the locations 161-1 to 161-n, 162-1 to 162-n, 163-1 to 163-n, 164-1 to 164-n, 165-1 to 165-n, 166-1 to 166-n, and 167-1 to 167-n. Furthermore, step 204 provides the APIs such that the individual network processors 120, 130, and 140 can be managed at the appropriate location(s) in the network processors 120, 130, and 140, respectively, corresponding to one or more of the of the locations 161-1 to 161-n, 162-1 to 162-n, 163-1 to 163-n, 164-1 to 164-n, 165-1 to 165-n, 166-1 to 166-n, and 167-1 to 167-n. The generic APIs 150 provided in step 204 can also be used to control other aspects of the network processors 120, 130, and 140 in a network processor specific manner. Furthermore, where a particular operation is not supported by a particular network processor 120, 130, and 140, the generic APIs 150 account for this by providing a null behavior to the congestion control application 112.
Step 204 also provides the generic APIs 150 such that the APIs can be used with a network processor independent congestion control application 112. Thus, using the method 200, the generic APIs 150 can be provided. The network processor independent congestion control application 112, as well as the network processors 120, 130, and 140 can be developed to utilize the generic APIs 150.
In a preferred embodiment, the generic APIs 150 include at least APIs for configuring and updating the congestion control and avoidance behavior of each of the network processors 110, 120, and 130 in a network processor specific manner. The generic APIs 150 preferably include APIs for enabling and disabling congestion control and behaviors, as well as APIs for listing information relating to congestion control and avoidance in the network and, more specifically, for the network processors 110, 120, and 130. In addition to controlling the network processors 110, 120, and 130 in a network processor specific manner, the APIs 150 preferably also return a null behavior for a particular function that is not implemented by a particular network processor.
The APIs of the generic APIs 150 that are used to configure and update the congestion avoidance and control behavior preferably determine the location(s) in each of the network processors 120, 130, and 140 at which congestion control and avoidance is to be managed. For example, as discussed below with respect to
In a preferred embodiment, the generic APIs 150 include five APIs: configure, update, enable, disable, and list. In a preferred implementation of the generic APIs, including the configure, update, enable, disable, and list APIs, parameters and fields are specified. Table 1 describes a preferred embodiment of the fields used.
Some portion of the above fields are preferably used by the generic APIs 150 for performing different operations, such as configuring and invoking different types of congestion control at various points in the network processor. Note, however, that an alternate embodiment might use additional and/or other fields having other uses.
In order to utilize the generic APIs, a common four-word header (not shown) for congestion control services is preferably used. The first two words of the header are preferably common to congestion control software and/or firmware 122, 132, and 142. The last two words are preferably common to all congestion algorithms that can be used, such as RED and DiffServ. Table 2 describes the uses of various fields in the header. However, in an alternate embodiment, another scheme including other fields could be used.
As its name implies, the configure API is used to allow the congestion control application 112 (as utilized by a user such as a network administrator) to configure the congestion control and avoidance behavior in a network processor independent manner, yet operate on the network processors 120, 130, and 140 to configure the congestion control and avoidance behavior in a network processor specific manner. Note that the values of various parameters and fields depends upon, among other factors, the point at which congestion control and avoidance behavior is to be configured as well as the algorithm used. The parameters used by a preferred embodiment of the configure API are described below in Table 3.
The update API allows the congestion control application 112 (as utilized by a user such as a network administrator) to update the congestion control and avoidance behavior in a network processor independent manner, yet operate on the network processors 120, 130, and 140 to update the congestion control and avoidance behavior in a network processor specific manner. In a preferred embodiment, the update API allows a bit field flag to be specified for each field. If the flag is set, the field value is sent with update service. Also in the preferred embodiment, the field ordering is consistent. Note that the values of various parameters and fields depends upon, among other factors, the point at which congestion control and avoidance behavior is to be updated as well as the algorithm used. The parameters used by a preferred embodiment of the update API are described below in Table 4.
The enable API allows the congestion control application 112 (as utilized by a user such as a network administrator) to enable selected algorithms for congestion control and avoidance behavior in a network processor independent manner, yet operate on the network processors 120, 130, and 140 to enable the algorithm(s) for a particular processor's 120, 130, or 140 congestion control and avoidance behavior in a network processor specific manner. For example, the enable API can be used to enable specific algorithm(s) at certain ports (for the ingress and/or egress side) and/or flows. Note that the values of various parameters and fields depends upon, among other factors, the point at which congestion control and avoidance behavior is to be enabled as well as the algorithm used. The parameters used by a preferred embodiment of the enable API are described below in Table 5.
The disable API allows the congestion control application 112 (as utilized by a user such as a network administrator) to deactivate selected algorithms for congestion control and avoidance behavior in a network processor independent manner, yet operate on the network processors 120, 130, and 140 to disable the algorithm(s) for a particular processor's 120, 130, or 140 congestion control and avoidance behavior in a network processor specific manner. For example, the enable API can be used to disable specific algorithm(s) at certain ports (for the ingress and/or egress side) and/or flows. Note that the values of various parameters and fields depends upon, among other factors, the point at which congestion control and avoidance behavior is to be disabled as well as the algorithm used. The parameters used by a preferred embodiment of the disable API are described below in Table 6.
The list API allows the congestion control application 112 (as utilized by a user such as a network administrator) to be used to view the congestion control and avoidance information for any of the network processors in a network processor independent manner. The list API obtains this information for viewing from the network processors 120, 130, and 140 in a network processor specific manner. For example, the information returned in response to the list API might contain metering and discard information, the current state (enabled/disabled) for the location(s) of each of the network processors 120, 130, and 140 from which the information is requested. Note that the values of various parameters and fields depends upon, among other factors, the algorithm used. The parameters used by a preferred embodiment of the disable API are described below in Table 7.
The definitions for the parameters listed above are shown in Table 6, below.
Thus, in a preferred embodiment, the generic APIs 150 include the configure, update, enable, disable, and list APIs. The five generic APIs 150 preferably be used allow the congestion control application 112 to be network processor independent and still control the potentially heterogeneous network processors 120, 130, and 140 in a network processor specific manner. The congestion control application 112 is, therefore, simpler. As a result, it is significantly simpler to scale the system 100, including adding new types of network processors. It is thus also easier to improve the performance of the system 100 by adding improved network processors. In addition, the maintenance costs of the system 100 may be reduced due to the use of a simpler congestion control application 112.
A user, such as a network administrator, is allowed to input information to manage the congestion control and avoidance behavior of the network processors 120, 130, and 140 using the generic APIs 150 in a network independent manner, via step 212. In step 212, therefore, a user might provide the identification of the network processor desired to be controlled, values of the appropriate parameters and flags, as well as other information used by the API(s) of the generic APIs being used. The generic APIs 150 are then used to control the possibly heterogeneous network processors 120, 130, and 140 in a network processor specific manner, via step 214.
Using the system 100, the methods 200 and 210, and more particularly the generic APIs 150, the congestion control application 112 can be network processor independent. Because of the use of the generic APIs, the congestion control application 112 can still control the potentially heterogeneous network processors 120, 130, and 140 in a network processor specific manner. As a result, the congestion control application 112 need not include a separate set of APIs for each type of network processor 120, 130, and 140 used. The congestion control application 112 is, therefore, simpler. As a result, it is significantly simpler to scale the system 100, including adding new types of network processors. It is thus also easier to improve the performance of the system 100 by adding improved network processors. In addition, the maintenance costs of the system 100 may be reduced due to the use of a simpler congestion control application 112.
A method has been disclosed for controlling the congestion control and avoidance behavior of heterogeneous network processors using a network processor independent control application. Software written according to the present invention is to be stored in some form of computer-readable medium, such as memory, CD-ROM or transmitted over a network, and executed by a processor. Consequently, a computer-readable medium is intended to include a computer readable signal which, for example, may be transmitted over a network. Although the present invention has been described in accordance with the embodiments shown, one of ordinary skill in the art will readily recognize that there could be variations to the embodiments and those variations would be within the spirit and scope of the present invention. Accordingly, many modifications may be made by one of ordinary skill in the art without departing from the spirit and scope of the appended claims.
Under 35 USC §120, this application is a continuation application and claims the benefit of priority to U.S. patent application Ser. No. 10/706,231 filed Nov. 12, 2003, now abandoned entitled “System for Generically Specifying Congestion Control and Avoidance Behavior”, all of which is incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
5243596 | Port et al. | Sep 1993 | A |
5274782 | Chalasani et al. | Dec 1993 | A |
5519689 | Kim | May 1996 | A |
5790522 | Fichou et al. | Aug 1998 | A |
5870561 | Jarvis et al. | Feb 1999 | A |
6314618 | Herbert | Oct 2000 | B1 |
6188759 | Lorenzen et al. | Feb 2001 | B1 |
6243449 | Margulis et al. | Jun 2001 | B1 |
6577596 | Olsson et al. | Jun 2003 | B1 |
6633569 | Hemmady | Oct 2003 | B2 |
7120165 | Kasvand-Harris et al. | Oct 2006 | B2 |
20020080720 | Pegrum et al. | Jun 2002 | A1 |
20030126223 | Jenne et al. | Jul 2003 | A1 |
20030126280 | Yao et al. | Jul 2003 | A1 |
20030206528 | Lingafelt et al. | Nov 2003 | A1 |
20050114540 | Hariharan et al. | May 2005 | A1 |
Number | Date | Country | |
---|---|---|---|
20080232257 A1 | Sep 2008 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10706231 | Nov 2003 | US |
Child | 12131489 | US |