Internet applications typically utilize bandwidth estimation operations to make intelligent bit rate and quality decisions when transmitting multimedia (text, video, audio, images, etc.) content. Examples of such applications include Internet content distribution, media streaming, multiparty conferencing, Internet gaming, etc. Despite numerous existing available bandwidth measurement techniques, such techniques are substantially limited in terms of one or more of robustness, accuracy, and non-intrusiveness.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
In view of the above, systems and methods for estimating available bandwidth with multiple overloading streams are described. In one aspect, a set of packets are communicated by a probing sender to a receiver. The packets are sent at multiple sending rates. At least two of the sending rates result in multiple overloading streams of packets being sent to the receiver. The probing sender receives a set of queuing delay information from the receiver. The queuing delay information is based on one-way delay measurements corresponding to receipt by the receiver of at least two successive packets. The probing sender estimates available bandwidth of the network based on the received queuing delay information and multiple sending rates associated with the multiple overloading streams of packets.
In the Figures, the left-most digit of a component reference number identifies the particular Figure in which the component first appears.
Overview
Systems and methods for estimating available bandwidth using multiple overloading streams are described. An overloading stream is a stream of packets sent to a receiver at a sending rate that is greater than a rate that can be managed without buffer overflows and/or causing increased one-way delays between receiver-receipt of successive packets in view of an estimated available bandwidth of a network. In view of this, the systems and methods implement a direct probing algorithm using packet trains to calculate available bandwidth from input rate and one-way packet delay (OWD) information. This is accomplished independent of any prior knowledge of tight link capacity. To substantially avoid buffer overflow resulting from such packet trains, the direct probing algorithm adjusts packet train length based on probing rates and estimated link capacities. To provide a basis, several aspects of network capacity and available bandwidth are now discussed.
The bandwidth property of a network path is typically defined with two metrics: capacity and available bandwidth. For instance, consider a network path P as a sequence of first-come first-serve (FCFS) store-and-forward links l0, l1, . . . lN that deliver data from the source to the destination. Suppose the bandwidth, or the maximal transmission rate, of link ll is Ci, then the capacity of the path is:
The capacity of a path is determined by the link with the minimal Ci, referred to as narrow link. There are numerous techniques to measure narrow link capacity. However, network capacity is growing at very fast speeds, with network capacity usually on the order of hundreds or thousands of Megabytes (typically far beyond the bandwidth that an application may use). In such scenarios, determination of available bandwidth which indicates how much bandwidth can actually be used by an application, has become of great interest.
Measuring available network bandwidth is much more difficult than measuring network capacity. One reason for this is because available bandwidth is not a constant value, but rather, variable in that it changes with time. Given a starting time T and a duration ΔT available bandwidth of path P can be represented as follows:
where ui (t)=1 if link li is in use at time t, and ui (t)=0 otherwise. As opposed to the narrow link, which defines capacity of a path, the link with the minimal spare bandwidth, referred to as tight link, defines the available bandwidth of the path.
Existing techniques estimate available bandwidth using a statistical model of the network path, or estimate the available bandwidth by iteratively probing the path with different rates. These two types of approaches are generally referred to as gap model and rate model techniques, respectively. The gap model technique evolved from a packet-pair methodology previously used to measure capacity. The gap model sends two probing packets in a short time interval Δin for queuing at a bottleneck (a narrow link in capacity measurement, or tight link in available bandwidth measurement). If there is only one bottleneck along the network path, each packet in the packet will arrive at a receiving device with the same spacing Δout as they left the bottleneck. One difference between the capacity measurement and available bandwidth measurement is that the former queues the packets back-to-back in the bottleneck, while the latter uses competing traffic between the respective packets in the packet pair.
The gap model assumes that tight link capacity is known prior to making available bandwidth determinations. With this assumption, available bandwidth can be determined by subtracting the cross traffic rate from the link capacity, as follows:
Among gap model techniques, it is often assumed that the tight link overlaps with the narrow link whose capacity can be estimated by some well established capacity measurement tools. However, tight link capacity is not always known a priority, especially in the real Internet environment.
The assumption that tight link capacity is known a priori is relaxed in the rate model, which determines the available bandwidth using a simple heuristic: the input rate of the probing traffic should be the same as the output rate unless it exceeds the available bandwidth of the path. To find the turning point where the output rate starts to be smaller than the input rate, methods in this category iteratively probe the network with various input rates. This is accomplished using either linear or binary search techniques. One limitation of rate model is that this model generally introduces too much network overhead, which typically results in network congestion.
Available bandwidth measurements can be carried out by either passive or active means. Passive measurement monitors routers and collects detailed performance statistics. Based on these pieces of information, available bandwidth is calculated during any time interval. The limitation of this approach is the request for special access privileges to all the routers along the path, which is usually not possible over the Internet. Active measurement, in contrast, does not rely on access to underlying hardware. The basic idea is to inject a sequence of probing packets at the sender and estimate the available bandwidth by analyzing the output at the receiver. Therefore, the active measurement technique can be divided into a probing phase and an analyzing phase.
Self-injected probing traffic usually takes form of packet pair, packet train, or packet chirp.
packets for each measurement. This can be a substantially large amount of data and the measurement duration can be extremely long if the inter-pair interval is large enough to avoid congestion.
After injection of probing traffic (direct and iterative probing), resulting measurement data is analyzed (the analyzing phase). Though all the methods are intrinsically based on the same relationship between the input rate (gap) and the output rate (gap), the choice of the object being analyzed will affect the correctness and robustness of the algorithm. There are three types of objects for analysis in existing methods: (1) input and output gaps (Δin and Δout) between two successive packets; (2) input rate Ri and output rate Ro of a probing stream; and, (3) relative one-way delays (OWD) or the queuing delays of a train of packets: Di=To−Ti, where Tl and To are respective input and output times of a packet i. Referring to equation (3), most direct probing techniques implement analysis pattern type I. It is often used in combination with probing pattern type III, wherein probing traffic is a train of evenly spaced packets. Since Δoutk=Tok+l−Tok, the average of Δout becomes:
In equation (4), only arrival times associated with the first and last packets are used.
Iterative probing methods to discover the turning point (where the output rate starts to be smaller than the input rate) by solving the linear equation Ri/Ro=αβRl typically implement analysis patterns belonging to analysis pattern type II. Although the outcome of a probing sequence is a series of time stamps for N packet pairs (2N packets), only one Ro value is calculated as follows:
In systems that implement analysis patterns of type I and II, either Δout or Ro are averaged among multiple measurements. The differences between successive measurements are either neglected or counteracted.
Analysis pattern type III is different than the previous two analysis pattern types in that this analysis pattern captures the relative OWD) for every single packet, and uses the whole series of Di for turning point (where the output rate starts to be smaller than the input rate) discovery. The difficulty of existing techniques that utilize this analysis pattern type, is that it is very difficult to extract useful information from a mass of OWD measurements, eliminate noise caused, for example, by network jitter, and maintain accuracy in face of buffer overflows.
The systems and methods for estimating available bandwidth using multiple overloading streams, which are discussed below in reference to
An Exemplary System
Although not required, the systems and methods for estimating available bandwidth with multiple overloading streams are described in the general context of computer-executable instructions (program modules) being executed by a computing device such as a personal computer. Program modules generally include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types. While the systems and methods are described in the foregoing context, acts and operations described hereinafter may also be implemented in hardware.
Computing devices 202 and 206 include one or more processing units coupled to system memory comprising computer-program modules and program data. A processing unit fetches and executes computer-program instructions from respective ones of program modules in the system memory. For example, computing device 202 includes one or more processing units 210 coupled to system memory 212 (e.g., RAM and ROM). System memory 212 includes computer-program modules (“program modules”) 214 and program data 216. Processor(s) 210 fetch and execute computer-program instructions from respective ones of the program modules 214. Program modules 214 include, for example, bandwidth estimation model 218, which uses multiple overloading streams to generate available bandwidth estimation 220 for network 204. Program models 214 also include “other program modules” 222 such as an operating system, application(s) that leverage results of bandwidth estimation module 218, and/or so on.
More particularly, bandwidth estimation module 218 implements direct probing packet sender operations of computing device 202. To this end, bandwidth estimation model 218 periodically sends probing packet trains using multiple overloading stream packet input rates (Ri) to a probing packet receiver 206. Such packet trains are shown as respective portions of “other program data” 224. Bandwidth estimation model 218 sends these probing packet trains using probing pattern type III, as shown in
Responsive to receiving these probing packet trains from a probing sender 202, a receiver 206 calculates one-way delay (OWD) measurements 226 for each received packets in view of sending rate information sent by the probing sender 202 to the receiver 206. OWD of a packet is the arrival time difference between this packet and the first packet in the train. Receiver 206 communicates these OWD measurements 226 to probing packet sender 202. In view of multiple OWD measurements 226 from the receiver 206 and multiple different probing packet sending rates (Ri) set by sender 202, bandwidth estimation model 218 calculates rates (trends) of relative OWD (ΔD 228) to determine if the relates OWD rates are increasing (please see equations (7) and (8) below). When the OWDs stabilize at a non-zero value and the trend stop increasing, it is likely that the receiving buffer at receiver 206 is full. (A zero (0) value is used in
Although the immediately preceding example illustrates that the receiver 206 calculates OWD measurements 226, in one implementation, the receiver 206 communicates packet arrival time difference(s) to the probing sender 202 so that the probing sender 202 can calculate the OWL) measurements 226. To accomplish this, receiver 206 would have at least a subset of the program models and program data already described with respect to probing sender 202. Thus, either the sender 202 or the receiver 206 can calculate available bandwidth.
In view of the OWD measurements 226, bandwidth estimation model 218 estimates available bandwidth 220 (please see equation (18) below). This is accomplished independent of any prior knowledge of the communication path between the probing sender 202 and a respective receiver 206, and independent of any prior knowledge of tight link capacity, and accomplished in a manner that substantially avoids overflow. In view of this bandwidth estimation 220, bandwidth estimation module 218 adjusts packet train length based on probing rates and estimated link capacities, as discussed below with respect to equations (11) and (12), to substantially avoid buffer overflow at the receiver 206.
These and other aspects of system 200 are now described in greater detail in the following sections.
Starting from a single-link model with fluid competing traffic of a constant rate. Let C be the capacity of that link and Rc be the rate of the competing traffic, then the available bandwidth of the link is A=C−Rc>0. In the real Internet, this single-link model can be applied to any paths with only one tight link,
The working condition of the direct probing technique is that the intra-packet interval Δin is small enough so that b/Δin>A, where b is the size of the packet. When a probing train is used, the interval between all the successive packets are the same, therefore, Ri=b/Δin>A. Now, consider the situation when a probing train of rate Ri is injected into a single-link path with available bandwidth A, and Ri>A. Given a fixed packet size b, Δin can be determined by: Δin=b/Ri. Under the fluid assumption, the competing traffic arrived at the tight link during the time interval of Δin is RcΔin. Hence the total amount of the traffic arrived at the tight link during Δin is b+RcΔin, Recall that the maximal transmission speed of the tight link is C, since b+RcΔin=(Rl+Rc)Δin>CΔin, the extra traffic will be queued at the tight link, and the queue increases by
Therefore, the increase of OWD between two successive packets (OWD) trend(s) 228) can be calculated by the following equation:
In this implementation, bandwidth estimation module 216 utilizes a fixed packet size b of 500B, although other packet sizes can be used. Since the input rate Ri is set by the sender (computing device 202), and ΔD can be measured at the receiver, there are only two unknown variables A and C in this equation. Theoretically, these unknown variables can be solved with only two measurements with different Ri. Yet, if multiple measurements are available, bandwidth estimation model 218 further improves accuracy of the estimation 220 as follows:
As shown in Eq. (8), ΔD has a linear relationship with the reciprocal of the sending rate Ri. With multiple measurements of (ΔD,Ri), bandwidth estimation module first estimates α and β with Least Squares Fitting (LSF), or another type of fitting algorithm (e.g., Maximal Likelihood Fitting, etc.). Then, bandwidth estimation module 112 estimates the available bandwidth 220 and the capacity of the tight link as follows:
For packet-pair probing traffic, bandwidth estimation model 218 determines average input rate by both the intra-packet interval and the inter-packet interval:
Although Δin is very small, the probing rate can still be kept low if a large τ is used. However, for packet train probing, Ri is solely determined by Δin which is small enough to cause buffer overflow.
Buffer overflow may also lead to packet losses from competing traffic. A good available bandwidth measurement technique should be non-intrusive, avoiding unrecoverable impact to the competing traffic during the measurement. Using multiple overloading streams, bandwidth estimation module 216 achieves this by adjusting the packet train length based on the input rate and the historical information of link capacity and available bandwidth. More particularly, let C and B be the capacity and the buffer size of tight link P. The maximal queuing delay occurs when the buffer is full: Dmax=B/C. When we probe this link with a rate Ri, which is larger than the available bandwidth A, the traffic that gets queued during time interval t is (Ri−A)·t. Assume that the buffer is empty before the measurement, and that the packets are dropped using the drop-tail strategy, the maximal time that the probing traffic may last is:
Therefore, with the historical Dmax information and the previous estimation of C and A, we can estimate the maximal number of packets Nmax that the sender can inject with rate Ri:
In: this implementation, bandwidth estimation module 216 uses a packet train length with a minimum of 100 and Nmax.
Using multiple overloading streams, bandwidth estimation module 216 estimates the available bandwidth 120 with two or more (ΔD,Ri) measurements. As Ri is determined by the sender, ΔD becomes the only parameter that needs to be measured. Since packet train is used in our algorithm, ΔD can be taken on as the increasing rate of the relative OWD. Bandwidth estimation module 216 applies the Least Median of Squares Fitting (LMS), or other type of fitting algorithm, to estimate the ΔD. The benefit of using LMS instead of piece-wise average or Least Squares Fitting (LSF) is robustness. By using LMS, up to 50% outliners, which may be caused by network jitters or context switch in a receiving system, are eliminated.
In this implementation, bandwidth estimation module 216 is concerned with the relative OWD of the packets. In view of this, sender 202 and the receiver 206 system clocks need not to be synchronized.
Under the assumption of FCFS scheduling and random dropping policy of packets at buffer overflow, the methodology of bandwidth estimation module 216 remains valid in the presence of multiple tight links. In this subsection, proof is provided under the condition that the number of tight links Nl equals to 2. The extension to the cases when Ni>2 is straightforward.
Let link lu and lv be the only two tight links in path P, whose capacities are Cu and Cv respectively. Let A be the available bandwidth of these two paths, and there exists a positive number δ which satisfies A+δ<minAi, i≠u,v. Considering a probing stream of constant rate Rl (A<Ri<A+δ) sent from the sender to the receivers passing through the tight lu and then Iv. According to (8), when it leaves the first bottleneck Iu, the increased OWD between two successive packets is:
As Pi is smaller than the available bandwidth of any other links along the path, the transmission rate of the probing train remains the same until it reaches the second bottleneck Iv The input rate of lv is the output rate of link lu:
When the stream exits lv, the OWD difference between two successive packets is further enlarged by ΔDv:
Substituting (14) into (15), we have:
Therefore, the OWD difference observed at the receiver becomes:
where c=1+(Cu−A)/Cv. It is a constant as long as the capacity and the available bandwidth of both tight links do not change during the measurement. In view of this, the calculation of A (A=α/β) is still correct since α and β are increased by the same constant factor.
The multiple overloading streams operations implemented by bandwidth estimation model 216 are not only an available bandwidth measurement algorithm, but a complete solution that can be integrated into various network applications. Multiple overloading streams operations are composed of the iterative probing phase and the direct calculation phase.
Since a prior knowledge of network path between a sender 202 and a receiver 206 is not assumed or necessary, bandwidth estimation module 216 starts to probe the network 204 from an initial rate Rmin, and doubles the probing rate in each iteration until R>A, which can be judged from an increasing trend of the OWD. In our implementation, Rmin is set to 200Kbps, and the initial packet train length is set to 100. An increasing OWD trend is reported if ΔD>δ. In our implementation, δ=50 μs. Doubling the probing rate represents one exemplary embodiment of the algorithm. In another embodiment, the probing rate is increased and different ways. For instance, the probing rate can be increased by a fixed value, as a multiple of a parameter p which is larger than 1, and/or so on.
After the iterative probing phase, bandwidth estimation model 216 calculates obtain a rough estimation of the available bandwidth as:
Å=R/√{square root over (2)} (18)
As R>A and R/2<A, Å satisfies:
Then, in the direct probing phase, bandwidth estimation model 216 sends four trains of probing packets with respective rates such that 1/Ri is evenly spaced. In this manner, the estimation of A can be equally sensitive to the measurement errors of the four sequences. At least two of the rates are selected such that they are greater than the actual available bandwidth, even in an extreme case where A=√{square root over (2)}Å. In one implementation, the rates at which the trains of probing packets are communicated are 114%Å, 133%Å, 160%Å, and 200%Å respectively.
Given the frequency ƒ, bandwidth estimation module 216 makes a measurement every 1/ƒ seconds. Taking the fact that the available bandwidth does not change much during a short time interval, the measurement of the previous round can be looked on as the initial estimation of the next round: Ån+1=An.
In the instance that Ån+>160%An, the four probing sequence may not provide enough information for solving equation (9). In such a case, if the OWD of the sequence with the maximal probing rate (R=200%Å) shows an increasing trend, bandwidth estimation model 216 attempts to solve the equation with a previous estimation of C. Otherwise, bandwidth estimation model 216 researches Å using an iterative process which is identical to that in the initial phase used to calculate a rough estimate of available bandwidth.
An Exemplary Procedure
At block 602, bandwidth estimation module 218 (
Although the systems and methods for estimating available bandwidth with multiple overloading streams have been described in language specific to structural features and/or methodological operations or actions, it is understood that the implementations defined in the appended claims are not necessarily limited to the specific features or actions described. Rather, the specific features and operations of system 200 are disclosed as exemplary forms of implementing the claimed subject matter.