• No results found

Frequency Analysis using Non-Uniform Sampling with Application to Active Queue Management

N/A
N/A
Protected

Academic year: 2021

Share "Frequency Analysis using Non-Uniform Sampling with Application to Active Queue Management"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

,

*.-&/ 0123-&-&/( 451(! 617 81(9!;:

<

 =!>*?> @1

ABDCFEGIHKJLLGMBDN/NDOPL Q A+B/RSEB/CFTUHKJNVWG$XYN/NDOPL Q AB/RSEB/CFTZH&JLLGMBDN/NDOPL

[C]\^C]NDCFOMLUOMX`_aOPbcbdJLCFeSG$VfC]OPLhg^i^NVfRSbjN [RSkGMB/VDbcRlLmVnO$X`o=pFRlelVDBDCFeSGMp4o=LqPC]LRSRlBDC]Lq r4CFLTtsOPkC]LqPN@JLC]\MRSBDN/C]VDRlV Qugvo`w(xMyz{yP|Ir4CFLTtsOPkCFLqQg^}aRlERSL ~~~€ ‚^ƒmƒ…„‡†/ˆmˆŠ‰m‰^‰a‹DŒ…Žvƒ^m‘`‹W’…“Š”!‹/‘’–•@‹D“P— o5wbcGMC]p˜€ ™m+’šv›mœ’…“Š”!‹D‘v’•@‹D“P— Q ™^v—Pšm+’žvœ’…“Š”a‹/‘v’•@‹f“M— ™mv—Pš^œ+’…“Š”!‹/‘’•@‹D“M— Ÿ VD ¡ARl¢BDJG$B/i¤£M¥M¥M¦

AUTOMATIC CONTROL

COM MUNICATION SYSTEMS LINKÖPING §nRSkuOPBVnLO¨©€ r4C]ªn«nw¬g…­®w(§@w£MxMy Ÿ gvJ¢bcC©VDVDRSEUVfOj¬_a¯&gg°±£M¥P¥M¦ ²v³/´¶µ·¸¹´º¼»½¾³/¿$Àl½ÂÁ¶Ã>ÄŽ˜À¼ÆÇÁ˜µ³ÈtÀ¼·SÁ¾½˜À¼»ÉÊÈtÀlÆ@ÆÌˏ·¸¹´º)Á¾¸ÍÀ¼·Ï콘À¼Ë¿K¸Í·ÑÐm¸Í·Ò…ÓÀ¼¿¸Í·Îº)½˜³

(2)

 !"#$ $%& !'  !(  )*)"$ !#+,,!- ).0/1 !"2)34"$ ).5/67 ! !+87/9 &:$ , )*<;5= >1)"$ ! ! ?" !")@ 1%( 6-% AB(9C5D%EF-% '7G, , 6)H !)I- )H ! ? (,%- % AB(,J/  4K(F''-6)L !:+   &(,- )I,M! AB1$%(,N !")O,0/97K N</ /%/K)3%)37")*F)H- '4=,)2+ !N%4  !( 0P, ,6)H &)Q &' )20/"'( FH(,<(,AR$0'>S8> %7T;Q(,SUEF-%- .! ?= )C.V@-6M'(,H !N%-% !( W !)M(IX%)3( +87+ !7;Y/% ZP77[;#6) (W$ $%(\6 !#= OD (,-% !72H4 )3AB(9*6, /)H7'(  /%K(? !+8@,06 !'<7\ $6)H)H !( %)]AB(= (;^%( 6-% AB(_)"$ ! ! ?OZP'>)[= 7)H2,$%$%(\6 ! !( %)CM`2=% 7)H- )#O7\6$%)H)H/ !7").(,A]AaEF- %'7;5 ! /%(;5)5/%)H'> &N% ! ?W= (;b)H &6 ?,!QAcEF-% '7 != d'( F !- ( -%)] !"Q)H !?  ,6 !))H"/( -6 !W=%dAaEF- %'7 /6(  &R*8(*"(,5$%'7 &)H7!F*8 &K=%57\6$<'7/K+,,!- 5(AR=%ID ( -6 &>QH4,%)3AB( $ $6( \6 ! !(,[C

(3)

FREQUENCY ANALYSIS USING NON-UNIFORM SAMPLING WITH APPLICATION TO

ACTIVE QUEUE MANAGEMENT

Frida Gunnarsson, Fredrik Gustafsson, Fredrik Gunnarsson

Department of Electrical Engineering

Link¨oping University, SE-581 83 Link ¨oping, Sweden

Email:

[frida,fredrik,fred]@isy.liu.se

ABSTRACT

In many real-time applications, sample values and time stamps are delivered in pairs, where sampling times are non-uniform. Frequency analysis using non-uniform data occurs in vari-ous real life problems and embedded systems, such as vibra-tional analysis in cars and control of packet network queue lengths. Our contribution is to first overview different ways to approximate the Fourier transform, and secondly to give analytical expressions for how non-uniform sampling af-fects these approximations. The results are expressed in terms of frequency windows describing how a single fre-quency in the continuous time signal is smeared out in the frequency domain, or, more precisely, in the expected value of the Fourier transform approximation.

1. INTRODUCTION

Frequency analysis using non-uniform data occurs in many real life problems and in many embedded systems. For in-stance, in automotive applications, all signals in modern cars are taken from the CAN bus, where sensor observa-tions and time stamps are delivered in pairs upon regular or event triggered requests. For chassi and tire vibration analysis, it is thus useful to gain full insight into how this affects frequency analysis. As an example, the wheel an-gular speed signals are event-based sampled in the time do-main (uniformly sampled in the angular dodo-main), and these signals are crucial for many control and informations sys-tems in cars [1, 2]. These signals are delivered with a time stamp, but the real sampling instants may differ with a ran-dom value causing a so called jitter sampling.

Another application of our focus is adaptive network queue control. The protocol in current Internet routers gives the queue length each time instant a packet arrives, but not when packets leave the queue. The router then sends an ac-knowledgment back to the sender that the packet is received. However, in active queue management (AQM), the router may decide not to send an acknowledgment if the queue is full or is likely to become full if the senders continue to send with the current rate. The basic idea in model-based AQM

[3] is to base the control principle on frequency analysis, or a model derived from frequency analysis. It has been em-pirically noted that the queue length in Internet routers con-tains frequency components, but the complicated interplay of the network makes an analytical approach intractable.

The idea is thus to consider the queue lengthy(t) as a continuous time function, randomly sampled when packets of unequal sizes arrive. Classical approaches on queue the-ory derive distributions for the inter arrival times for pack-ets of fixed sizes, ranging from simple Poisson processes to more recent self-similar processes [4], but these are not so suitable for control purposes.

Randomized sampling is described in [5, 6, 7]. Research is focused on how to choose sampling instants to maximize alias frequency suppression. In [8], an empirical motiva-tion to add random jitter is given with some user guidelines. In [9], an algorithm for hardware implementation promis-ing 40 times the bandwidth of the correspondpromis-ing uniform sampling process. Algorithms for recovery of band limited signals are given in [10, 11]. No illustration of the effects of leakage when nonuniform sampling is used have been found.

2. OVERVIEW

Consider a continuous time signaly(t), which is non-uniformly sampledy(ti) at the time instants ti,i = 1, 2, . . . N , where we denote the sampling intervalsTi = ti−ti−1. Random additive sampling occurs whenTiare independent random variables and jitter sampling whenti = iT + ni, whereni are random variables.

Our interest is focused on approximating the Fourier transform

Y (f ) =

Z ∞

−∞

y(t)ei2πf tdt. (1)

We will first survey available methods that fall into one of two different approaches to approximate this continuous time integral:

1. A Riemann approximation approach, where the in-tegrandy(t)ei2πf tis spline interpolated between the

(4)

observations. For uniform sampling and a zero or-der spline (piece-wise constant integrand), the dis-crete Fourier transform (DFT) is obtained as a special case.

2. An interpolation approach, where the signal value is interpolated using splines or other basis functions. For a band-limited signal, the well-known sinc basis func-tion expansion y(t) = N X k=1 y(kT )sin(π(t − kT )/T ) π(t − kT )/T (2) = N X k=1 y(kT ) sinc(t − kT T ) (3)

exists for uniform sampling. Note that this interpo-lation formula provides a system of linear equations, which is solvable fory(kT ), k = 1, 2, . . . N for any set of non-uniform samples y(ti), i = 1, 2, . . . , M whenever M ≥ N , that is, when the average sam-pling rate is larger than or equal to the Nyquist rate. These approaches will yield an approximation ˆY (f ). Since this is a linear function of the observationsy(ti), superpo-sition applies. Thus, insight into the implications of non-uniform sampling is obtained by studying the approxima-tion of a pure sinusoidy(t) = sin(2πf0t). The approxima-tion can then be expressed as

ˆ

Y (f ) = W (·; tN) ∗ Y (f ) (4)

= W (f − f0; tN) − W (f + f0; tN). (5) HeretN denotes the set of sampling points, and ∗ denotes convolution. For uniform sampling and a uniform (boxcar) time window, the frequency window becomes the periodic sinc-like function

W (f ; tk= kT ) = e

−iπf N Tsin(πf N T )

sin(πf T ) . (6) This function describes the leakage effects. Other data dows as Hamming, Hanning etc. gives other similar win-dows. Note that since these are all periodic functions, we have the well-known frequency ambiguity in uniform sam-pling. This is not the case for non-uniform sampling, where leakage and frequency ambiguity are intrinsic properties of the sampling instants, both revealed in the frequency win-dowW (f, f0; tN).

The main contribution is then to characterize the ex-pected value of this approximation for randomized sam-pling, where the exact sampling timestk are unknown, and only their distribution is known. The implication of ran-domized sampling is that the expected value of the Fourier transform approximation depends on the probability density function (pdf)p(tN) for the sampling instants, so we get

E( ˆY (f )) = W (f, f0; p(tN)) − W (f, −f0; p(tN)). (7)

3. FOURIER TRANSFORM APPROXIMATIONS The measurements,y(ti), are used to approximate the inte-grand,I(t), or the original continuous signal, y(t). These approximations are then used together with the definition of the continuous Fourier transform, (1), to produce an esti-mate, ˆY (f ), of the transform for the measured signal. Three different transform approximations are presented: Extended Riemann approximation; Reconstruction ofy(t) using splines; and Reconstruction of bandlimited signals.

More elaborate calculations and an evaluation of the trans-form approximations can be found in [12].

Spline interpolation is done by connecting sample points, f (tk), with polynomials, pn

k(t), of order n. The continuous function approximation is defined as

ˆ

f (t) = pnk(t), tk−1< t ≤ tk. (8) The polynomial constants are defined by continuity demands at the sample points.

3.1. Integrand interpolation

Riemann approximation of an integral is approximation of the integrand with a piecewise constant function. Using the measurements,y(tk), the integrand I(t) = y(t)e−i2πf t

can be approximated using higher order splines. Let ˆIn(t) be the continuous estimate ofI(t), based on measurements, I(tk) = y(tk)e−i2πf tk

, and annth order spline. The first two splines become

ˆ I0(t) = I(tk) ˆ I1(t) = I(tk) − I(tk−1) Tk (t − tk) + I(tk), (9) fortk−1< t ≤ tk.

The Fourier transform estimate becomes ˆ Yn ra(f ) = N X k=1 Z tk tk−1 ˆ In(t)dt. (10)

For the first orders ofn, the explicit expressions become ˆ Y0 ra(f ) = N X k=1 I(tk)Tk = N X k=1 y(tk)Tke −i2πf tk ˆ Yra1(f ) = N X k=1 Tk 2 (I(tk) + I(tk−1)) = 1 2 N X k=1 (Tk+ Tk+1)I(tk).

The last equality demands thatT1I(t0) = 0 and TN+1I(tN) = 0, but the relation shows that the increased polynomial or-der merely changed the scaling of the integrandI(tk). The mean value of two subsequent inter sample times are used instead of onlyTk.

(5)

3.2. Signal interpolation

Spline interpolation of the signal can be done by connecting the sample points,y(tk) with polynomials, pnk(t), of order n. The continuous function estimate is, as before, defined as

ˆ

yn(t) = pnk(t), tk−1< t < tk. (11) Whenn = 0, ˆy0(t) is piece-wise constant. The explicit transform in this case becomes

ˆ Ysp0(f ) = X k yk Z tk tk−1 e−i2πf t dt = i 2πf N X k=1 yke−i2πf tk 1 − ei2πf Tk . (12) Comparing ˆY0

sp with Riemann approximation of the inte-gral, ˆY0

ra(9), shows that the difference lies in the scaling of the terms in the sum. Using a Taylor expansion forei2πf Tk shows thatY0

spscales the terms with i

2πf(1 − e −i2πf Tk

) = Tk+ O(Tk2), while ˆY0

rascales the terms withTk. This means that ˆ

Ysp0 ≈ ˆYra0, if Tk<< 1, ∀k.

Forn = 1, ˆy1(t) is piece-wise linear between the mea-surement points. The spline polynomials become

p1k(t) =

yk−yk−1

Tk (t − tk) + yk, k = 1, . . . , N. Lettingαk= yk−yk−1

Tk gives the transform approximation

ˆ Ysp1(f ) = N X k=1 Z tk tk1 [αk(t − tk) + yk] e−i2πf t dt = ˆYsp0(f ) + 1 (2πf )2 N X k=1 αke−i2πf tk 1 − ei2πf Tk + i 2πf N X k=1 αkTke −i2πf tk ei2πf Tk (13)

The transform ofyk, forn = 1, contains the transform of yk forn = 0, the scaled transform of αk forn = 0 and a third term based onαk. The structure of the third term is very similar to the structure of a Riemann approximation. The novelty when introducing a higher order spline repre-sentation is shown in the last two terms.

For higher order splines the expressions become messier and no calculations have been performed for this case.

3.3. Band-limited signals

For bandlimited signals the sinc function can be used. Ap-plying the assumption of an underlying sum ofsinc’s

ˆ

y(t) =X

k

cksinc(ak(t − bk))

gives a straightforward calculation of the Fourier transform. ˆ Ysinc(f ) = X k ck Z ∞ −∞

sinc(ak(t − bk))e−i2πf t dt = X k:f <ak2 1 akcke −i2πf bk . (14)

The signal is bandlimited tomaxk(ak/2). After choosing ak andbk, the amplitudesck can be solved for from a lin-ear equation system,y(ti) = ˆy(ti), ∀i. Placing the sinc’s equidistantly is one option, i.e.,bk = kT , ak = 1

T. From (2), this case gives thatck= y(kT ). This special transform approximation becomes ˆ Ysinc(f ) =  TPNk=1cke−i2πf kT , f < 2T1 , 0, otherwise. (15) 4. STOCHASTIC SAMPLING To find the window in (7) the expected value of ˆY0

sp(f ) will be calculated when y(t) = sin(2πf0t) = 1 2i(e i2πf0te−i2πf0t ) (16)

is sampled nonuniformly and the inter event times,Tk, have the probability density functionfT(τ ). The details of the calculations have been left out and can be found in [12], as before. The samples,yk = y(tk) = y(Pkn=1Tn), become

yk= 1 2i  ei2πf0Pkn=1Tne−i2πf0Pkn=1Tn  (17) Assuming that the inter sample times,Tk, are independent identically distributed stochastic variables, with probability densityfT(τ ), the expected value of ˆYsp0, (12), is calculated, usingykfrom (17), as

E[ ˆY0

sp(f )] = 1

4πf(χ(f, f0) − χ(f, −f0)). (18) This means that the window (7) is

W (f, f0, p(tN)) = χ(f, f0)/(2πf ). The functionχ(f, f0) evaluates according to χ(f, f0) = ( (γ(f,f0)−γ(0,f0))1−γ(f,f0) N 1−γ(f,f0) γ(f, f0) 6= 1 (1 − γ(0, f0))N γ(f, f0) = 1 γ(f, f0) = Z R e−i2π(f −f0)τ fT(τ )dτ (19)

(6)

1 2 3 4 5 0 2 4 6 8 10 12 frequency [Hz] E[Y] 1 2 3 4 5 0 2 4 6 8 10 12 frequency [Hz] 1 2 3 4 5 0 2 4 6 8 10 12 frequency [Hz] 1 2 3 4 5 0 2 4 6 8 10 12 frequency [Hz] PSfrag replacements 1 2τh 1 2τh 1 2τh 1 2τh 2τl1 1 2τl 1 2τl 1 2τl Fig. 1.E[ ˆY0

sp(f )] in (18), uniform distribution, Tk∈[τl, τh], for the signal (16) with f0= [0.5, 1.5, 2.5, 3.5].

The choice of sampling distribution affects the final trans-form through the expected values

γ(f, f0) = ET[e−i2π(f −f0)T ], γ(0, f0), γ(f, −f0), and γ(0, −f0),

whereETmeans expected value with respect toT . Figure 1 illustrates the window, (18), whenfT describes a uniform distribution,Tk∈[τl, τh]. An exponential distribution with the same support gives a similar window.

Since ˆY0

sp ≈ ˆYra0 for small inter event times and ˆYra0 = ˆ

Ysincfor uniform sampling andf < 2T1 , the analytical ex-pression ofE[ ˆY0

sp] is of great interest. It can be argued that the expected values foryˆ0

raandysincˆ will behave similar to E[ ˆY0

sp] for small Tk’s and narrow distributions, respectively. It remains to investigate the extent of the correspondence.

5. CONCLUSIONS

This work presented an analytical expression for the ex-pected value of a Fourier transform approximation based on additive random sampling. It was argued that the support of the inter sample times affects the alias suppression.

6. REFERENCES

[1] F. Gustafsson, S. Ahlqvist, U. Forssell, and N. Pers-son, “Sensor fusion for accurate computation of yaw rate and absolute velocity,” in Society of Automo-tive Engineers World Congress, Detroit, 2001, number SAE 2001-01-1064.

[2] F. Gustafsson, M. Drev ¨o, U. Forssell, M. L ¨ofgren, N. Persson, and H. Quicklund, “Virtual sensors of tire pressure and road friction,” in Society of Automo-tive Engineers World Congress, Detroit, 2001, number SAE 2001-01-0796.

[3] F. Gunnarsson, F. Gunnarsson, and F. Gustafsson, “Controlling internet queue dynamics using recur-sively identified models,” in 42nd IEEE Conference on Decision and Control, Dec. 2003.

[4] S. Andersson, Hidden Markov Models — Traffic Mod-eling and Subspace Methods, Ph.D. thesis, Lund In-stitute of Technology, 2002.

[5] A. Papoulis, Signal Analysis, McGraw-Hill, 1977. [6] I. Bilinskis and A. Mikelsons, Randomized Signal

Processing, Prentice Hall, London, 1992.

[7] F. Marvasti, Zero-crossings and Nonuniform Sampling of Single and Multidimensional Signals and Systems, Nonuniform, 1987.

[8] D. M. Bland and A. Tarczynski, “Optimum nonuni-form sampling sequence for alias frequency suppres-sion,” in IEEE International Symposium on Circuits and Systems, Jun 1997.

[9] F. Papenfuss, Y. Artyukh, E. Boole, and D. Tim-mermann, “Optimal sampling functions in nonuni-form sampling driver designs to overcome the nyquist limit,” in Acoustics, Speech, and Signal Processing, 2003., IEEE International Conference on, Apr 2003. [10] F. Marvasti, “Nonuniform sampling theorem for

band-pass signals at or below the nyquist density,” IEEE Transactions on Signal Processing, Mar 1996. [11] F. Marvasti, M. Analoui, and M. Gamshadzahi,

“Re-covery of signals from nonuniform samples using it-erative methods,” IEEE Transactions on Signal Pro-cessing, Apr 1991.

[12] F. Gunnarsson, “On modeling and control of net-work queue dynamics,” Licenciate Thesis, No. 1048, Dep. of Electrical Engineering, Link ¨opings Univer-sitet, 2003, URL: www.control.isy.liu.se/publications.

References

Related documents

The core of such a work system is a situated work practice in which participants utilizes technology and information.. The work system approach (WSA) has been presented and

För att ytterligare förbättra hanteringen, finns två lägen på fördelningen av tidsfack. Ett då planen själva kommer överens om vem som skall sända när, men det finns även

For frequency domain data it becomes very simple: It just corresponds to assigning dierent weights to dierent fre- quencies, which in turn is the same as using a fre- quency

If the model is too complex to be used for control design, it can always to reduced: In that case we know exactly the dierence between the validated model and the reduced one..

It is still an open question if the algorithm, when applied to data from innite dimensional systems, will yield nite dimensional models which are frequency weighted

Johan Brynolfsson, Johan Swärd, Andreas Jakobsson, and Maria Hansson- Sandsten ‘Smooth Time-Frequency Estimation Using Covariance Fitting”, presented at: 39th International

Keywords Maxwell’s equations, Geometrical Theory of Diffraction, Boundary Element Method, Hybrid methods, Electromagnetic Scattering.. ISBN 91-7283-595-8 • TRITA-0318 • ISSN

Microscopic changes due to steam explosion were seen to increase diffusion of the smaller 3-kDa dextran dif- fusion probe in the earlywood, while the latewood structure was