This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

\additionalauthors

Criticisms of modelling packet traffic using long-range dependence

Richard G. Clegg    Raul Landa    Miguel Rio


Dept of Electrical & Electronic Engineering University College London, UK {rclegg,r.landa,m.rio}@ee.ucl.ac.uk
(20 March 2009)
Abstract

This paper criticises the notion that long-range dependence is an important contributor to the queuing behaviour of real Internet traffic. The idea is questioned in two different ways. Firstly, a class of models used to simulate Internet traffic is shown to have important theoretical flaws. It is shown that this behaviour is inconsistent with the behaviour of real traffic traces. Secondly, the notion that long-range correlations significantly affects the queuing performance of traffic is investigated by destroying those correlations in real traffic traces (by reordering). It is shown that the longer ranges of correlations are not important except in one case with an extremely high load.

conference: PMECT 2009, San Francisco

1 Introduction

Since the seminal paper of Leland et al [6] it has been considered important that a statistical model of Internet traffic captures the phenomenon of Long-Range Dependence (LRD). In particular it has often been suggested that a model of Internet traffic must capture the Hurst parameter H(1/2,1)H\in(1/2,1) of real traffic. LRD is characterised by the unsummability of the autocorrelation function (ACF). It is often stated that this is an important characteristic for the queuing performance of the traffic.

A related topic is that of heavy-tailed distributions. A commonly suggested origin for the LRD in Internet traffic is the heavy-tailed distribution of traffic on periods .

Definition 1

A random variable XX is heavy-tailed if, for all ε>0\varepsilon>0 it satisfies

[X>x]eεxasx.\mathbb{P}\left[X>x\right]e^{\varepsilon x}\rightarrow\infty\quad\mathrm{as}\quad x\rightarrow\infty. (1)

A specific functional form is usually assumed (and will be throughout this paper)

[X>x]Cxβ,\mathbb{P}\left[X>x\right]\sim Cx^{-\beta}, (2)

where C>0C>0 is a constant and 2>β>02>\beta>0. The symbol \sim means asymptotically equal to. If β<1\beta<1 then E[X]\mathrm{E}\left[X\right] is infinite and therefore most models use β(1,2)\beta\in(1,2).

Suggested models for Internet traffic which generate LRD include fractional Gaussian noise and the related fractional Brownian motion (fGn, fBm) [7], chaotic maps [4], wavelets [9, 8] and Markov modulated processes [1, 3]. Some of these models output a “traffic level” which represents the mean arrival rate in some notional time period but others are packet based models, that is they produce a model of packets and inter-arrival times. It is the latter class of models (including [4, 1, 3] which are covered by theorem 1 in this paper.

This paper criticises the notion that the long-range correlations in traffic are important to queuing in two ways. In section 2 it is shown that a class of models used to simulate traffic with LRD arising from heavy tails gives an infinite result when queued in infinite buffers. It is demonstrated in section 4 that this is at odds with the behaviour of real traffic. In section 5 real traffic traces are analysed again and reordered to break up correlations beyond a certain level. It is shown that this reordering does not affect the queueing behaviour of the traffic beyond a certain time-scale except when unrealistically high loads are used. The behaviour of the long-range dependent models (and in particular a certain class based on heavy-tails) is theoretically undesirable and fundamentally different to that of real traffic.

2 Theoretical results

Let {At:t0}\{A_{t}:t\geq 0\} be an arrival process to a queue drained by a deterministic server which serves at a constant rate assumed w.l.o.g. to be one. The mean arrival rate λ\lambda is given by λ=limT0TA(t)𝑑t/T\lambda=\lim_{T\rightarrow\infty}\int_{0}^{T}A(t)dt/T and it is assumed throughout that AtA_{t} is such that this limit exists and λ(0,1)\lambda\in(0,1). Since the server rate is one then λ\lambda is equal to the utilisation ρ\rho (the ratio of the rate at which work enters to the maximum rate at which it can be served). Let {Qt:t0}\{Q_{t}:t\geq 0\} be the queue process where it is assumed that Q0=0Q_{0}=0. Assume that the queue evolves according to

dQtdt={At1Qt>0max(0,At1)Qt=0.\frac{dQ_{t}}{dt}=\begin{cases}A_{t}-1&Q_{t}>0\\ \max(0,A_{t}-1)&Q_{t}=0.\end{cases}

Let E[Q(s,t)]=stE[Qu]𝑑u/(ts)\mathrm{E}\left[Q(s,t)\right]=\int_{s}^{t}\mathrm{E}\left[Q_{u}\right]du/(t-s) where t>st>s and E[]\mathrm{E}\left[\cdot\right] denotes expectation. Let E[Q]=limtE[Q(0,t)]\mathrm{E}\left[Q\right]=\lim_{t\rightarrow\infty}\mathrm{E}\left[Q(0,t)\right] and note that this is limit is not guaranteed to exist (and may tend to infinity). The mean arrival rate at time tt is λt=E[At]\lambda_{t}=\mathrm{E}\left[A_{t}\right] and the overall mean arrival rate λ=limT0Tλt/T𝑑t\lambda=\lim_{T\rightarrow\infty}\int_{0}^{T}\lambda_{t}/Tdt. If λ>1\lambda>1 then ρ>1\rho>1 and the queue must eventually grow to infinity regardless of the details of the arrival process.

Theorem 1

Let {At:t+}\{A_{t}:t\in\mathbb{R}_{+}\} be an ergodic, weakly stationary arrival process which can only take values a>1a>1 (on) and 0 (off). This is drained by a queue which drains at a fixed rate, w.l.o.g. assumed to be one. Let AtA_{t} be such that the arrival rate λ\lambda (and hence the utilisation ρ\rho) is in (0,1)(0,1). Let {Xn:n}\{X_{n}:n\in\mathbb{N}\} be the length of the nnth on period and assume these are i.i.d. with a heavy-tailed distribution [Xn>x]xα\mathbb{P}\left[X_{n}>x\right]\sim x^{-\alpha} for α(1,2)\alpha\in(1,2) then as tt\rightarrow\infty the expected queue length (and hence the expected waiting time) is infinite.

This theorem can be restated as: if an infinite buffer queuing model is driven by a a single on/off source with i.i.d. heavy-tailed on periods then the expected queue length is either zero (if a1a\leq 1) or infinite. This remains true even if the utilisation – ρ(0,1)\rho\in(0,1) defined as the proportion of the time the server is busy, is much less than one (the queue is empty for an arbitrarily high proportion of the time). It may seem paradoxical that a queue which is empty arbitrarily often can have an infinite expected length. However, this has parallels with the classical Pollaczek–Khinchine formula for an M/G/1 queue [5] where a server with an infinite variance in the service time has an infinite expected queue length even if the mean service time is arbitrarily small and the queue empty an arbitrarily large proportion of the time.

Note that for α<1\alpha<1 the mean length of an on period will not converge and such processes will not, in general, be useful for a queuing system. However, for 1<α<21<\alpha<2 the mean length of an on period will be finite and such a process could be used to produce a time series with a known Hurst parameter.

Proof 2.2.

First consider a single on period followed by a single off period of such length that the entire queue has drained by the end of the off period . Consider the time period (t1,t2)(t_{1},t_{2}) where Qt1=Qt2=0Q_{t_{1}}=Q_{t_{2}}=0, consisting of an on period (t1,t1+X)(t_{1},t_{1}+X) (where aX<(t2t1)aX<(t_{2}-t_{1})) and an off period (t1+X,t2)(t_{1}+X,t_{2}). Within the period (t1,t2)(t_{1},t_{2}) the queue peaks at time t1+Xt_{1}+X when Qt1+X=(a1)XQ_{t_{1}+X}=(a-1)X and drains completely by time t1+aXt_{1}+aX after which the queue is zero until t2t_{2}. It can be readily seen that, since the queuing process is triangular in shape (rising at rate a1a-1 during the on period and falling at rate 1 during the off period ), then t1t2E[Qu]𝑑u=(a1)aX2/2\int_{t_{1}}^{t_{2}}\mathrm{E}\left[Q_{u}\right]du=(a-1)aX^{2}/2 and E[Q(t1,t2)]=(a1)aX2/2(t2t1)\mathrm{E}\left[Q(t_{1},t_{2})\right]=(a-1)aX^{2}/2(t_{2}-t_{1}).

Now consider some time period (t1,t2)(t_{1},t_{2}) again where Qt1=Qt2=0Q_{t_{1}}=Q_{t_{2}}=0. Let this period contain exactly two on periods of lengths X1X_{1} and X2X_{2} where a(X1+X2)<(t2t1)a(X_{1}+X_{2})<(t_{2}-t_{1}). It is clear that t1t2E[Qu]𝑑u(a1)a(X1+X2)/2\int_{t_{1}}^{t_{2}}\mathrm{E}\left[Q_{u}\right]du\geq(a-1)a(X_{1}+X_{2})/2 with equality occurring only when the queue empties completely between the two on periods . This argument can be trivially extended to nn on periods of lengths X1,X2,,XnX_{1},X_{2},\ldots,X_{n} all occurring within (t1,t2)(t_{1},t_{2}) with Qt1=Qt2=0Q_{t_{1}}=Q_{t_{2}}=0. The mean queue size is minimised if the on periods are such that the generated queues do not overlap.

Consider the process AtA^{\prime}_{t} which has the same mean arrival rate and is the process AtA_{t} reordered in time according to the following rules:

  • on periods occur in the same order and have the same length as AtA_{t} with the first on period starting at t=0t=0,

  • an on period of length XiX_{i} is followed by an off period of length exactly Xi(a/λ1)X_{i}(a/\lambda-1).

This off period is long enough that the queue has always completely drained before the end of the off period (since λ<1\lambda<1). It can easily be shown that such a reordering is possible since the on periods are of exactly the same length in the same order and the off periods have the same mean length.

Let QtQ^{\prime}_{t} be the queue process for AtA^{\prime}_{t} (assuming the same server process). Clearly E[Q]E[Q]\mathrm{E}\left[Q^{\prime}\right]\leq\mathrm{E}\left[Q\right] since the queues due to AtA^{\prime}_{t} never overlap (with equality occurring only when the queues never overlap in AtA_{t} either).

It can be shown that

E[Q]\displaystyle\mathrm{E}\left[Q^{\prime}\right] =limNi=1Ntiti+1Qt𝑑ttN+1\displaystyle=\lim_{N\rightarrow\infty}\frac{\sum_{i=1}^{N}\int_{t_{i}}^{t_{i+1}}Q^{\prime}_{t}dt}{t_{N+1}}
=limNa(a1)i=1NXi22j=1NXj.\displaystyle=\lim_{N\rightarrow\infty}\frac{a(a-1)\sum_{i=1}^{N}X_{i}^{2}}{2\sum_{j=1}^{N}X_{j}}.

Taking expectations a second time gives

E[E[Q]]\displaystyle\mathrm{E}\left[\mathrm{E}\left[Q^{\prime}\right]\right] =E[Q]=limNa(a1)i=1NE[Xi2]2j=1NE[Xj]\displaystyle=\mathrm{E}\left[Q^{\prime}\right]=\lim_{N\rightarrow\infty}\frac{a(a-1)\sum_{i=1}^{N}\mathrm{E}\left[X_{i}^{2}\right]}{2\sum_{j=1}^{N}\mathrm{E}\left[X_{j}\right]}
=a(a1)E[X2]2E[X],\displaystyle=\frac{a(a-1)\mathrm{E}\left[X^{2}\right]}{2\mathrm{E}\left[X\right]},

where the last equality follows since the XiX_{i} are i.i.d.

E[Q]\mathrm{E}\left[Q^{\prime}\right] is a lower bound for E[Q]\mathrm{E}\left[Q\right]. E[Q]\mathrm{E}\left[Q\right] does not converge if E[X2]\mathrm{E}\left[X^{2}\right] does not converge. If 1<α<21<\alpha<2 then E[X]\mathrm{E}\left[X\right] is finite but E[X2]\mathrm{E}\left[X^{2}\right] is not and the expected queue is infinite. The result follows.

A similar result holds for discrete time on-off arrival processes {An:n}\{A_{n}:n\in\mathbb{N}\} with heavy-tailed on periods . However, the result is not true, for example, if the queue is driven by two or more heavy-tailed sources each of which has an arrival rate less than one but together having an arrival rate over one. Processes such as fractional Gaussian noise exhibit LRD but have a finite expected queue length in an infinite buffer. In fact the theorem has an obvious corollary.

It should be noted that heavy-tailed arrival processes of the type from Theorem 1 which give rise to a finite value of E[Q]\mathrm{E}\left[Q\right] are possible but paradoxically these have an arrival rate λ=0\lambda=0. For example, let q>0q>0 and let every on period of length XiX_{i} (at rate aa) be followed by an off period of length max((a1)Xi,(a1)aXi2/2qXi)\max((a-1)X_{i},(a-1)aX_{i}^{2}/2q-X_{i}). The queue drains completely in every off period and the mean queue size for that on period and off period is at most qq (with equality attained when ((a1)aXi2/2qXi)(a1)Xi((a-1)aX_{i}^{2}/2q-X_{i})\geq(a-1)X_{i}) and therefore E[Q]q\mathrm{E}\left[Q\right]\leq q. However, in the heavy-tailed case, E[Xi2]\mathrm{E}\left[X_{i}^{2}\right] does not converge and hence neither does the expected length of an off period . This implies a proportion of time in the off period tending to one and a mean arrival rate λ\lambda of zero.

It might still be argued that real traffic traces have this property but the outcome of infinite queue size is not seen in real life because they are fed to a finite sized array. This possibility will be investigated in section 4.

3 Simulation framework for this paper

CAIDA data: This data set is taken from a trace approximately an hour long. It is referred to on the CAIDA website 111See http://www.caida.org/data/passive/ for more information about this trace. as
20030424-000000-0-anon.pcap.gz and was captured on the 24th April 2003. It was captured on an OC48 link with a rate of 2.45 Gb/s. The first 550,000 packets are used in the analysis here. This trace has a relatively low Hurst parameter H=0.6H=0.6 (see [2]).

Bellcore data: This is a much studied data set and, while certainly not representative of modern traffic, it is included as one of the original traces from [6]. The data here is taken from an August 1989 measurement referred to as BC-pAug89.TL. The data was collected on an Ethernet link222See http://ita.ee.lbl.gov/html/contrib/BC.html for more information about this traffic. The first 1,000,000 packets are studied here. This trace has a relatively high Hurst parameter H=0.8H=0.8 (see [2]).

The simulations used in this paper are all based upon an extremely simple queuing model. Packets arrive in a FIFO buffer which never drops packets. The buffer has a given bandwidth bb (in bytes/second) – which can be adjusted to give a specific level of utilisation. While the absolute level of the queue changes, the results presented here are not very sensitive to this parameter. A packet of length ll bytes takes l/bl/b seconds to depart the queue. If QtQ_{t} is the queue length in packets at time tt and the simulation runs until time TT then the mean queue Q¯\overline{Q} is evaluated as Q¯=0TQt/T𝑑t\overline{Q}=\int_{0}^{T}Q_{t}/Tdt (this integral can be evaluated exactly since QtQ_{t} is a constant between arrivals and departures from the queue).

This simple model has been used by the first author to assess several the queuing performance of several models which attempt to replicate the statistical nature of Internet traffic. This work is reported in [2]. None of the long-range dependence based models replicated the queuing performance of the real traffic traces they were tuned to match. Such a simple model is, of course, open to much criticism. It does not account for TCP feedback mechanisms. However, if the question being addressed is about an “open loop” model of traffic and whether it replicates the characteristics of real traffic then we should expect both to have the same behaviour at a queue.

4 Simulation results on real versus heavy-tailed traffic

The first simulations here consider the theoretical results presents in section 2. The first results show how the infinite expected queue size in the model reveals itself in simulation results. Obviously any experiment with a model of the form in Theorem 1 will produce a finite value for Q¯\overline{Q} the mean queue size. However, this finite value will increase as the model is run for longer and longer (up to the numerical accuracy of the model). The value of Q¯\overline{Q} generated will (in theory at least – in practice the finite accuracy of computers limits this) increase as the runtime increases. The question may be asked if this is true of real data.

The experiment performed here is to take different sized samples of the real data and to queue those samples with the model from the previous section. The behaviour of the mean queue length versus sample size is investigated. Experiments on LRD are notorious for their high (often theoretically infinite) variability. Here ten replications are performed for each size are used and the mean plotted. In addition error bars of the size of the standard deviation (one standard deviation above and below the mean) are added (standard confidence interval techniques are not applicable in the case of LRD data).

Refer to caption
Refer to caption
Figure 1: Mean queue size versus number of packets for the CAIDA data.

Figure 1 (left) shows the results for the CAIDA data. The x axis shows the number of packets in the sample and the y axis the mean queue size (or rather the mean of the ten means for the ten experiments with that sample size). Since the queue is assumed to start empty then very small sample sizes would naturally have a smaller expected queue. However, beyond this, figure 1 shows no clear influence of the sample size on the expected queue. As the samples get larger the standard deviation bounds from the ten experiments gets smaller. It should be noted that the final (rightmost) point is the whole data set and no error bars can be included.

Figure 1 (right) shows the same experiment but performed on a simulated data set with the same mean arrival rate and the same Hurst parameter using the techniques described in [2] (the Wang model from that paper). The simulation does not well reflect the queuing performance of the trace and this is because of theorem 1 which applies here. In contrast with figure 1 the mean queue size increases with the number of packets in the sample. In addition the error bars (representing one standard deviation either side of the mean) stay as large or become larger.

Refer to caption
Refer to caption
Figure 2: Mean queue size versus number of packets for the Bellcore data.

Figure 2 (left) shows the same experiment for the Bellcore data. This data has a higher Hurst parameter and the outcome is less clear. However, remembering that the last point has no error bars (representing the entire data) this figure is not consistent with the idea that the mean queue rises as the length of the sample rises apart from in the early part of the plot. (The rise in the mean and the larger error bars in the center of the plot coincides with a single very large burst of a particular duration).

Figure 2 (right) shows simulated data with the same Hurst parameter and same mean arrival rate as the Bellcore data. As in figure 1 (right) and in accordance with theorem 1 the mean queue size rises with the number of packets simulated (although the connection is certainly not unambiguous). As can be seen, these simulations can be problematic to work with and a researcher looking only at the early part of the graphs could be convinced that they had used sufficiently many packets for the simulation to converge to a good estimation of the mean queue length.

It may be thought that the problem may be connected with the fact that the LRD based methods dramatically overestimated levels of queuing. However, repeating the experiment with lower bandwidth on the real data for both Bellcore and CAIDA traces does not dramatically alter the shape of the graph although obviously the mean queue level increases.

5 Simulation results on reordering of real traffic traces

This section takes a different approach by deliberately destroying correlations in the data to see which scales of correlation are important to the queuing properties. It is often stated that LRD is an extremely important property for queuing in real data. If this is the case, then deliberately truncating the correlation beyond a certain scale should have important effect on the queuing.

The experiment performed in this section is to take a certain blocksize BB and to split the data into blocks each containing BB packets (and associated delays). The order of these blocks is then randomised so no correlation can persist beyond BB packets. The entire trace is then queued and the mean queue length recorded. Again ten replications are performed to assess the repeatability.

Refer to caption
Refer to caption
Figure 3: Mean queue size versus blocksize for CAIDA data.

Figure 3 (left) shows this experiment on the CAIDA data. Again there are ten repetitions of each blocksize and the graph shows mean of the means and the standard deviation of the means above and below. Note the small scale on the y axis. Even for very small block sizes the variation in the queuing performance is not great. Beyond a block size of 1,000 the correlation seems unimportant to the queuing performance and the resultant mean queue size is the same to several decimal places.

By contrast, in figure 3 (right) for the LRD simulation all scales of correlation theoretically affect queuing performance (within the bounds implied by the fact that only a finite sample of data is used). Here, the relationship between correlation and queuing is clearly shown. Correlations of block sizes up to 10,000 packets are important to the queuing performance of the simulated data.

Refer to caption
Refer to caption
Figure 4: Mean queue size versus blocksize for Bellcore data.

Figure 4 shows the same experiment on the Bellcore data. Again the LRD method used drastically over predicts the level of queuing compared to the real data when the same mean arrival rate and Hurst parameter is used. Again the same result is seen only a small difference in the amount of queuing when the correlations are broken up. The correlations of long time scale are unimportant in the real data but important in the artificial data.

Refer to caption
Refer to caption
Figure 5: Mean queue size versus blocksize for real data with high load.

Again the question might be asked would the same conclusion hold true for the real data if the bandwidth used for the experiment were reduced. Figure 5 (left) shows this for the Bellcore data with the bandwidth reduced so the queue occupancy is 5 (right) shows this for the CAIDA data (with an even higher queue occupancy of 0.62). In the CAIDA data there seems to be a very clear transition from important correlation scales (at lengths below 2000 packets) and unimportant correlation scales (above). Indeed this transition is so marked it raises questions about whether something in the data capture process or in the system itself would cause this. In the case of the Bellcore data, more timescales are important but not nearly so many as in the long-range dependent data of figure 4 (right).

The conclusion of this section is clear. The claim that correlations over long scales is important to queuing behaviour is not true of the CAIDA data and arguably true of the Bellcore data only when the system occupancy is extremely high.

6 Conclusions

This paper criticises long-range dependence as a useful model for packet traffic. Firstly, a theoretical problem with a class of models used to simulate LRD is shown. This class of models predicts either no queuing or an infinite expected queue length when fed into an infinite buffer. At the very least, experimenters should be aware of this problem to ensure that simulations are not affected by it (the answer given by the simulation is a product of the runtime of the simulation rather than a stable reflection of queuing performance). The effect is shown to be different to the queuing performance of real traffic. In the second part of the paper it is shown using simulated queuing on real traffic that for real traffic traces long-range correlations are not important for queuing behaviour except with extremely high traffic. These results should be replicated on more traffic traces to work out how general this conclusion is.

References

  • [1] M. Barenco and D. K. Arrowsmith. The autocorrelation of double intermittency maps and the simulation of computer packet traffic. Dynamical Systems, 19(1):61–74, 2004.
  • [2] R. G. Clegg. Simulating internet traffic with Markov-modulated processes. In Proceedings of UK Performance Engineering Workshop, 2007. Available online at http://www.richardclegg.org/pubs/rgc_ukpew2007.pdf.
  • [3] R. G. Clegg and M. M. Dodson. A Markov based method for generating long-range dependence. Phys. Rev. E, 72:026118, 2005.
  • [4] A. Erramilli, R. P. Singh, and P. Pruthi. Chaotic maps as models of packet traffic. Proc. 14th Int. Teletraffic Cong., 6-10 June 1994 North-Holland Elsevier Science B.V., 1:329–338, 1994.
  • [5] A. Y. Khinchin. Mathematical theory of stationary queues. Mat. Sbornik, 39:73–84, 1932.
  • [6] W. E. Leland, M. S. Taqqu, W. Willinger, and D. V. Wilson. On the self-similar nature of Ethernet traffic. In D. P. Sidhu, editor, Proc. ACM SIGCOMM, pages 183–193, San Francisco, California, 1993.
  • [7] V. Paxson. Fast, approximate synthesis of fractional Gaussian noise for generating self-similar network traffic. Computer Comm. Rev., 27:5–18, 1997.
  • [8] R. H. Riedi. Multifractal processes. In P. Doukhan, G. Oppenheim, and M. S. Taqqu, editors, Theory And Applications Of Long-Range Dependence, pages 625–716. Birkhauser, 2003.
  • [9] R. H. Riedi, M. S. Crouse, V. J. Ribeiro, and R. G. Baraniuk. A multifractal wavelet model with application to network traffic. IEEE Special Issue On Information Theory, 45:992–1018, 1999.