Network load balancing and overload control
09847942 · 2017-12-19
Assignee
Inventors
Cpc classification
H04L47/263
ELECTRICITY
H04L67/1008
ELECTRICITY
H04L67/1001
ELECTRICITY
H04L69/40
ELECTRICITY
International classification
Abstract
Load balancing and overload control techniques are disclosed for use in a SIP-based network or other type of network comprising a plurality of servers. In a load balancing technique, a first server receives feedback information from at least first and second downstream servers associated with respective first and second paths between the first server and a target server, the feedback information comprising congestion measures for the respective downstream servers. The first server dynamically adjusts a message routing process based on the received feedback information to compensate for imbalance among the congestion measures of the downstream servers. In an overload control technique, the first server utilizes feedback information received from at least one downstream server to generate a blocking message for delivery to a user agent.
Claims
1. An apparatus for facilitating overload control in a Session Initiation Protocol (SIP)-based network including an overloaded SIP server, the apparatus comprising: a first SIP server of the network configured to receive SIP response messages from at least one downstream SIP server of the network, the downstream SIP server being associated with a path between the first SIP server and a target SIP server, the downstream SIP server being the overloaded SIP server and a nearest neighboring SIP server of the first SIP server, one or more of the SIP response messages including feedback information which comprises a utilization measure of the downstream SIP server; wherein the first SIP server is further configured to generate a blocking message for delivery to a user agent associated with the network based on the feedback information, the blocking message comprising a SIP server internal error response message used to control overload of the overloaded SIP server; and wherein a message routing process is adjusted responsive to the blocking message to route at least one new call over another path between the first SIP server and the target SIP server that does not include the downstream SIP server.
2. The apparatus of claim 1 wherein the SIP response messages comprise at least one SIP 500 response message and wherein the blocking message is generated based at least in part on the SIP 500 response message.
3. The apparatus of claim 1 wherein the SIP response messages comprise at least one SIP 100 response message and wherein the blocking message is generated based at least in part on the SIP 100 response message.
4. The apparatus of claim 3 wherein the blocking message is generated based at least in part on an overload status value in a header of the SIP 100 response message.
5. The apparatus of claim 1 wherein the SIP response messages are received in response to at least one SIP INVITE request sent from the first SIP server.
6. The apparatus of claim 1 wherein the downstream SIP server comprises the target SIP server.
7. The apparatus of claim 1 wherein the downstream SIP server comprises an egress server of the network.
8. The apparatus of claim 1 wherein the downstream SIP server comprises a core server of the network.
9. The apparatus of claim 1 wherein the first SIP server comprises an ingress server for the user agent.
10. The apparatus of claim 1 wherein the first SIP server comprises a downstream SIP server relative to an ingress SIP server for the user agent.
11. The apparatus of claim 1 wherein a message routing process is adjusted responsive to the blocking message to reject at least one new call that would otherwise utilize the path between the first SIP server and the target SIP server that includes the downstream SIP server.
12. The apparatus of claim 1 wherein the blocking message comprises a SIP 500 Server Internal Error response message.
13. An apparatus for facilitating overload control in a Session Initiation Protocol (SIP)-based network including an overloaded SIP server, the apparatus comprising: a first SIP server of the network configured to receive SIP response messages from at least one downstream SIP server of the network, the downstream SIP server being associated with a path between the first SIP server and a target SIP server, the downstream SIP server being the overloaded SIP server and a nearest neighboring SIP server of the first SIP server, one or more of the SIP response messages including feedback information which comprises a utilization measure of the downstream SIP server; wherein the first SIP server is further configured to generate a blocking message for delivery to a user agent associated with the network based on the feedback information, the blocking message comprising a SIP server internal error response message used to control overload of the overloaded SIP server; and wherein the feedback information comprises a highest utilization measure of among utilization measures of a plurality of downstream SIP servers in the path between the first SIP server and the target SIP server.
14. A method for facilitating overload control in a Session Initiation Protocol (SIP)-based network including an overloaded SIP server, the method comprising: receiving, by a first SIP server of the network, SIP response messages from at least one downstream SIP server of the network, the downstream SIP server being associated with a path between the first SIP server and a target SIP server, the downstream SIP server being the overloaded SIP server and a nearest neighboring SIP server of the first SIP server, one or more of the SIP response messages including feedback information which comprises a utilization measure of the downstream SIP server; and generating, by the first SIP server, a blocking message for delivery to a user agent associated with the network based on the feedback information, the blocking message comprising a SIP server internal error response message used to control overload of the overloaded SIP server; wherein a message routing process is adjusted responsive to the blocking message to route at least one new call over another path between the first SIP server and the target SIP server that does not include the downstream SIP server.
15. The method of claim 14 wherein a message routing process is adjusted responsive to the blocking message to reject at least one new call that would otherwise utilize the path between the first SIP server and the target SIP server that includes the downstream SIP server.
16. The method of claim 14 wherein: the SIP response messages comprise at least one SIP 100 response message; the blocking message is generated based at least in part on the SIP 100 response message; and the blocking message is generated based at least in part on an overload status value in a header of the SIP 100 response message.
17. The method of claim 14 wherein the feedback information comprises a highest utilization measure of among utilization measures of a plurality of downstream SIP servers in the path between the first SIP server and the target SIP server.
18. An apparatus for facilitating overload control in a Session Initiation Protocol (SIP)-based network including an overloaded SIP server, the apparatus comprising: a downstream SIP server of the network configured to send SIP response messages to a first SIP server of the network, the downstream SIP server being associated with a path between the first SIP server and a target SIP server, the downstream SIP server being the overloaded SIP server and a nearest neighboring SIP server of the first SIP server, one or more of the SIP response messages including feedback information which comprises a utilization measure of the downstream SIP server; wherein the feedback information is utilized to generate a blocking message for delivery to a user agent associated with the network, the blocking message comprising a SIP server internal error response message used to control overload of the overloaded SIP server; and wherein a message routing process is adjusted responsive to the blocking message to route at least one new call over another path between the first SIP server and the target SIP server that does not include the downstream SIP server.
19. The apparatus of claim 18 wherein: the SIP response messages comprise at least one SIP 100 response message; the blocking message is generated based at least in part on the SIP 100 response message; and the blocking message is generated based at least in part on an overload status value in a header of the SIP 100 response message.
20. The apparatus of claim 18 wherein the feedback information comprises a highest utilization measure of among utilization measures of a plurality of downstream SIP servers in the path between the first SIP server and the target SIP server.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
DETAILED DESCRIPTION OF THE INVENTION
(13) The present invention will be illustrated below in conjunction with exemplary SIP-based networks and associated load balancing and overload control techniques. It should be understood, however, that the invention is not limited to use with the particular load balancing or overload control techniques of the illustrative embodiments, nor with any particular type of network or other communication network. The disclosed techniques are suitable for use with a wide variety of other systems and in numerous alternative applications.
(14)
(15) SIP messages from a UAC to a UAS are called requests and those in the reverse direction are called responses. In this particular example, the first end user, corresponding to UAC 102, represents a caller who transmits a request (e.g., initiating a call), while the second end user, corresponding to UAS 108, is a callee who receives the request from the caller and responds accordingly. The request and response are shown by the respective solid line 110 and dashed line 112. As is apparent, a given request from a UAC to a UAS may traverse multiple servers whose main purpose is to route messages closer to the end user. A server may rely on a domain name system (DNS) to resolve an IP address from a SIP address which is similar to an email address.
(16) The SIP protocol is structured into multiple layers. The bottom layer is the transport (TR) layer which currently may utilize User Datagram Protocol (UDP) or Transmission Control Protocol (TCP). The transaction layer, which is the heart of SIP, uses the service of the transport layer and reliably delivers messages from one SIP entity to another through an IP-based network, which as noted previously will typically include a multiplicity of servers not explicitly shown in the figure. In particular, the transaction layer provides message retransmissions, matches responses to requests and facilitates timeouts. The transaction layer comprises client transaction (CT) and server transaction (ST) portions. The client transaction receives requests from its upper layer, which is the transaction user or the core, and reliably transmits the requests to its peer server transaction. The client transaction relies on timers and retransmissions to ensure that messages are received by its peer. The server transaction receives requests from the transport layer and delivers them to its core. In addition, the server transaction also provides filtering of retransmissions by transmitting appropriate responses to its peer client transaction. The interaction between the client and server transactions is governed by a set of finite-state machines (FSMs).
(17) In the SIP-based network 100, there are two types of servers, namely, stateless server 104 and stateful server 106. A stateless server does not contain a transaction layer. Its function is merely to forward messages to the next hop. A stateful server, on the other hand, terminates a transaction layer and thus can also generate additional messages. For example, upon receiving a request from its upstream neighbor, a stateful server may generate multiple requests to multiple destinations, a technique known as “forking,” in order to determine an appropriate location at which to contact the end user.
(18)
(19) When UA A initiates the call to UA B, UA A typically sends an INVITE request containing UA B's SIP address to the outbound server (Server A) that serves UA A's domain. The INVITE request also contains other pertinent information needed by SIP, as well as additional information such as media and codec types needed for the bearer session. Upon receiving the INVITE request, Server A possibly performs a DNS query (not shown) to locate the inbound server (Server B) that serves UA B. Server A then forwards the INVITE request to Server B. In addition, Server A sends a 100 Trying response to UA A to indicate that INVITE processing is in progress.
(20) Assume that the INVITE request is lost because Server B is congested. If the transport layer is unreliable (e.g., UDP), the transaction layer at Server A would detect the loss from the absence of 100 Trying, and retransmit the INVITE request. Eventually, when the INVITE request reaches the destination, UA B responds with a 180 Ringing response. If the callee decides to answer the call, a 200 OK response is sent to the caller, which may confirm the 200 OK response by returning an ACK. At this point, the bearer channel is established and communication or other data transfer between the caller and callee can begin. At the end of the session, either party can terminate the session by sending a BYE request. In this example, UA A terminates the session by sending a BYE request that is acknowledged by a 200 OK response from UA B.
(21) A congestion collapse problem that can arise when SIP-based networks become overloaded will now be described with reference to
(22) SIP uses various timers, denoted A through K, to ensure reliable delivery of messages. When a server is congested, the timers may trigger more retransmissions which may cause more congestion.
(23) The present invention provides techniques which avoid the congestion collapse problem illustrated in
(24) A number of exemplary overload control algorithms suitable for use in conjunction with the present invention will now be described. For purposes of illustration, the algorithms are described as operating at a single server, rather than over a network of servers. Conventional aspects of the first two of these algorithms, known as the occupancy algorithm (OCC) and the acceptance rate algorithm, are respectively described in U.S. Pat. No. 4,974,256, issued Nov. 27, 1990 in the name of B. L. Cyr et al. and entitled “Load balancing and overload control in a distributed processing telecommunication system,” and S. Kasera et al., “Fast and robust signaling overload control,” International Conference on Network Protocols, 2001. However, such algorithms have not heretofore been adapted for use in the SIP context. The final overload control algorithm to be described is an improved version of the acceptance rate algorithm that we have determined is particularly well suited for providing overload control in SIP-based networks. It should be understood that embodiments of the invention may utilize the occupancy algorithm, the acceptance rate algorithm, the improved acceptance rate algorithm, or another overload control algorithm.
(25) In the occupancy algorithm, incoming calls to a server are controlled by a variable f which denotes the fraction of calls that are accepted. Thus a new call is accepted with probability f or, equivalently, blocked with probability 1−f. In applying this algorithm to the SIP context, INVITE requests may be accepted with probability f, while other messages are always accepted as long as the message buffer in the server is not full. Based on current system overload conditions, the objective of the occupancy algorithm is to dynamically adjust f to maintain high call throughput. The overload condition is based on processor utilization, ρ, which is periodically probed at every τ seconds. In each n-th probed epoch, the average processor utilization {tilde over (ρ)}(n) is updated and compared with a target utilization ρ.sub.t arg. The average utilization can be computed as a moving average (MA) over the previous k epochs
(26)
or by exponentially weighted moving average (EWMA)
(27) The basic idea of the occupancy algorithm is to increase f if {tilde over (ρ)}<ρ.sub.t arg, and to decrease it otherwise. Let f(n) denote the newly updated f in the current epoch n, while f(n−1) denote f updated in epoch n−1. The algorithm that updates fin each epoch is described as follows.
(28)
where f.sub.min represents the threshold for the minimum fraction of traffic accepted. The multiplicative factor φ is given by
φ=min{ρ.sub.t arg/{tilde over (ρ)},φ.sub.max},
where φ.sub.max defines the maximum possible multiplicative increase in f from one epoch to the next.
(29) In the above-cited S. Kasera et al. reference, it is argued that because ρ cannot exceed 1, the occupancy algorithm cannot decrease f by more than 10% when the system is overloaded, and thus the algorithm may react too slowly under sudden traffic surge. The basic idea of the acceptance rate algorithm is to use {tilde over (α)} in place of {tilde over (ρ)}, where {tilde over (α)} represents the average call acceptance rate into the system. The target acceptance rate α.sub.t arg can be set to α.sub.t arg=μρ.sub.t arg, where μ is the system call-carrying capacity, which can be estimated by μ={tilde over (α)}/{tilde over (ρ)}. It is suggested that α.sub.t arg is updated by a EWMA with a smoother average than that for {tilde over (α)}. The acceptance rate algorithm uses the following multiplicative factor:
φ=α.sub.TARG/{tilde over (α)}
(30) We have recognized that conventional implementations of the occupancy algorithm and the acceptance rate algorithm are problematic in that they do not take into account unfinished work in the system. In particular, if {tilde over (α)}=α.sub.t arg, then f(n)=f(n−1) independent of the message queue content. Instead, when {tilde over (α)}=α.sub.t arg, we want to decrease f(n) if the queue content is too high and increase f(n) if the queue content is too low. A second observation is that the above algorithms tend to increase f(n) more than to decrease it for the same amount of differences (positive or negative) between the variable to be compared with the target parameter. Hence we modify φ for the improved acceptance algorithm as follows.
(31)
where q is the average queue length, in number of messages, updated using EWMA at each message arrival, q.sub.t arg is the queue target, and N is the average number of messages per call. The updating of average queue length at each message arrival may be viewed as a type of event-driven updating. Other examples of such event-driven updating are described in S. Floyd et al., “Random early detection gateways for congestion avoidance,” IEEE Transactions on Networking, Vol. 1, No. 4, pp. 397-413, August 1993.
(32) To evaluate the performance of the preceding overload control algorithms in a SIP environment, one may simulate a server that implements the full transaction layer of SIP, such as the stateful server 106 of
(33)
(34)
(35) In evaluating the performance of a SIP-based network having the topology shown in
(36) TABLE-US-00001 TABLE 1 Example Parameters Values for Overload Control Algorithms Parameter Value β - EWMA weight 0.2 ρ.sub.t arg - target utilization 0.9 f.sub.min - min. fraction of calls accepted 0.005 φ.sub.max - max. increase factor in OCC 20 q.sub.t arg - average message queue length 50 N - average number of messages/call 10 τ - probed interval 0.1 second
(37) We will now describe a number of overload control techniques for use in a SIP-based network or other type of network in an illustrative embodiment of the invention.
(38) There are a number of approaches that may be used to notify overload using otherwise conventional SIP messages. One approach is to provide notification of an overloaded server by sending a 503 Service Unavailable response from the overloaded server to its upstream neighbor server. This response can state, via a Retry-After header field, an amount of time for which the overloaded server will be unavailable. Upon receipt of this message, the upstream neighbor server will not transmit any other requests to the overloaded server, regardless of the destination of the requests, for the given duration. The upstream neighbor server, however, can still transmit responses to the overloaded server. We found this mechanism to react poorly to overload since the 503 response typically causes a large volume of traffic to be diverted to other alternate servers, which in turn results in overload elsewhere. If other servers also implement the same mechanism, it is likely that overload will oscillate from one server to another.
(39) Another message that can be used to notify overload is 500 Server Internal Error. Unlike the 503 response which is global in nature, the 500 response is only applicable locally for a given call. To control overload, the 500 response is most effectively applied in response to an INVITE request to reject a new call.
(40) An alternate approach is not to explicitly send a notification message to indicate an overload, but to simply drop INVITE requests to block new calls. This approach in general may not work well since it may cause a large number of retransmissions.
(41) Another important issue is with respect to the location of the server that initiates the overload notification.
(42) The simplest approach, referred to herein as local overload control, is for each overloaded server to initiate the notification autonomously. An example is shown in
(43) Another approach, called ingress overload control, is to propagate upstream the overload status information for each target, for example, via a new header in the 100 Trying response. Each server forwarding this information will compare its own overload status value with the received downstream overload status value and propagate the maximum value of the two overload status values upstream. For a given target, an ingress server decides to accept or block a new call based on the overload status information. An example is shown in
(44) A third approach intermediate between the previous two is called penultimate overload control. Here the server previous to the overloaded server is the one that blocks new calls. With reference again to
(45) As noted above, illustrative embodiments of the invention may incorporate both load balancing and overload control techniques. Exemplary load balancing techniques will now be described in greater detail with reference to
(46) Referring now to
(47) In the next-hop load balancing approach, each server independently and dynamically adjusts the routing probabilities to its downstream neighbors based on congestion feedback information received from those neighbors. For example, as illustrated in
(48) Although the congestion measures in this example are utilization measures, a wide variety of other types of congestion measures may be used. The term “congestion measure” as used herein is therefore intended to be construed generally, so as to encompass, for example, processor utilization measures, message processing loads, buffer occupancy measures, message processing delays, or any other type of information indicative of congestion, as well as combinations of such measures or information.
(49) From the feedback information received from S3 and S4, S1 adjusts its routing probabilities with the objective of equalizing the congestion measures at S3 and S4. Such an adjustment in routing probabilities is shown in
(50) Another load balancing approach that may be utilized in a given embodiment of the invention is referred to herein as target-based load balancing.
(51) The difference between the next-hop and target-based load balancing techniques described above is illustrated in
(52) In the next-hop load balancing approach, because the 0.5 utilization value of server 903 is higher than the 0.2 utilization value of server 901, the routing probabilities q1 and q2 at server S will be adjusted such that the routing probability q1 will be increased while the routing probability q2 will be decreased until the utilization values at server 901 and server 903 become substantially equal, that is, load balanced.
(53) In the target-based load balancing approach, the highest utilization values in the first and second paths are the 0.6 utilization value of server 902 and the 0.5 utilization value of server 903, respectively. Since the highest utilization value of the first path is higher than the highest utilization value of the second path, the routing probabilities q1 and q2 at server S will be adjusted such that the routing probability q2 will be increased while the routing probability q1 will be decreased until a load balanced condition results. It can be seen that the two approaches may produce different routing probability results for the same set of server utilization values. Although next-hop load balancing may not perform as well as target-based load balancing under certain conditions, next-hop load balancing is simpler to implement than target-based load balancing.
(54)
(55) In accordance with the target-based load balancing approach described previously, the highest utilization of the upper paths between node a and node z is in the range 0.4 to 0.5, while the highest utilization of the lower path between node a and node z is 0.3. This feedback information is propagated back through the network to node a, where is it stored in routing table 1000. Various approaches may be used to specify a single value of congestion measure for the upper paths. A simple approach is to take the worst case value of 0.5 for the upper path congestion measure. The routing table is considerably simplified for clarity of illustration, but generally includes columns for the target node, the via node indicative of a particular path to the target, the highest utilization for the particular path, and the routing probability. Of course, numerous alternative routing table formats may be used in implementing the invention.
(56) One possible example of a distributed load balancing algorithm that may be used in implementing the next-hop or target-based load balancing approaches described above, within a given server denoted server i, is as follows:
Let x.sub.ij(d)=fraction of traffic from i via next hop j (destined to target d)
Let u.sub.ij(d)=“smoothed” utilization via j (to target d) observed by server i
(57) At each update,
compute Δx.sub.ij(d)=αx.sub.ij(d)(U.sub.i−u.sub.ij(d)),
where U.sub.i=Σ.sub.jx.sub.ij(d)u.sub.ij(d)
(58) New traffic assignments are then given by:
X.sub.ij(d)=max(0,x.sub.ij(d)+Δx.sub.ij(d)),
x.sub.ij(d)=X.sub.ij(d)/Σ.sub.jX.sub.ij(d).
(59) In this example, the x.sub.ij(d) values correspond generally to the routing probabilities described previously. The algorithm may be executed at each server periodically, for example, every T seconds. Other suitable algorithms for implementing the next-hop or target-based load balancing approaches described herein will be apparent to those skilled in the art.
(60) As mentioned above, the previously-described local, penultimate and ingress overload control techniques will now be illustrated with reference to
(61) Referring initially to
(62) Also illustrated in
(63)
(64) As is apparent from the foregoing description, the illustrative embodiments described in conjunction with the examples of
(65)
(66) Referring now to
(67) With reference to
(68) Again, it is to be appreciated that the particular parameters, assumptions, network topologies and other features of the illustrative embodiments described above are presented by way of example only. Although particularly useful with SIP-based networks, such as IMS networks, the techniques described herein can be applied to a wide variety of other types of communication networks, using any of a number of different communication protocols. These and numerous other alternative embodiments within the scope of the appended claims will be readily apparent to those skilled in the art.