INFORMATION AND COMMUNICATION TECHNOLOGIES AND SERVICES, VOL. 9, NO. 1,MARCH 2011 1 ©2011 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING ISSN 1804-3119 Sampling of Random Data Streams Gustáv CEPCIANSKY.1, Ladislav SCHWARTZ 1 1 Department of Telecommunications and Multimedia, University of Zilina, Univerzitna 1, 01026 Zilina, Slovakia
[email protected],
[email protected] Abstract. Modern telecommunication networks work on the transmission method of common data streams in which data bursts consisting of packets that further consist of particular bits are multiplexed from various traffic sources. The larger amount of data is transmitted through a transmission medium (optical fibre), the more frequently bursts occur, and the lower amount of data, the more rarely they follow. If it is required to monitor how large amount of data is being transmitted in a network branch in order to find out, to which measure of this branch is occupied, it is not necessary to take each information unit (each packet or even each particular bit). It will do if information whether a data burst occurs in the transmission or does it not occur is taken in certain time intervals – with a certain sampling frequency. The paper deals with this sampling intervals. Keywords Sampling, traffic, data burst, passive optical network. 1. Introduction There are many types of data bursts on a transmission route between two network nodes from various traffic sources. The data burst length is considered as a random variable. According to Figure 1, the burst train in a common data stream can be described as a random process X(t) consisting of series of random occurring rectangular pulses with a random amplitude that only gains 2 values of x0 = 0 andx1 = 1 and with a random time length Q that gains values of u k,k = 1, 2, ... Fig. 1. Packet train in the data stream The mean level or the average value of this random process å = ¥® =N k k TT y 1 1 lim J (1) also expresses the average traffic use of a communication channel, e.g. with which part of the total time T theoretically infinitely long the channel was occupied by the transmitted data bursts. In other words, the value y also expresses the probability that the communication channel will be in any moment of sampling tv found as occupied. Further, let l be the count of seizures of the communication channel by the transmitted data bursts and m the count of releases of the communication channel during a time unit. The ratio m l =a(2) represents the traffic offered to the communication channel. The inverse value of m å ¥ = ¥® == 1 1 lim 1 k k NN J m J (3) is the average burst length. 2. Theory 2.1 Random Process Characteristics The occurrence of data bursts in the common data stream can be considered as the Markov random process because the features of such a process are fulfilled: ·a data burst occurrence is fully random, ·bursts last for a random time, ·the probability of a data burst occurrence or end of a burst during a very small time interval Dt will be proportional to the duration of this interval. t u 1 u 2 u 3 u k u N-1 u N T
2INFORMATION AND COMMUNICATION TECHNOLOGIES AND SERVICES, VOL. 9, NO. 1,MARCH 2011 ©2011 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING ISSN 1804-3119 These features represent a hidden deterministic element in the random process. The consequence of this is that it is possible to explicitly derive basic characteristics – correlation and co-variation functions, dispersion and spectrum for that random process [1], [2], [3], [4]. 1) Solution of Random Process The random process gains only 2 states: S0 – communication channel is free and S1 – communication channel is occupied. The process stays in the zero state S0 if no data burst occurs during Dt, the probability of which is: ( ) ttttp D-=D+ l 1, 00 .(4) The process transits from the state S0to the state S1 (communication channel will be seized) if a data burst occurs during Dt. The probability of this is: ( ) ttttp D=D+ l , 01 .(5) The process stays in the state S1 if a data burst does not finish during Dt, the probability of which is: ( ) ttttp D-=D+ m 1, 11 .(6) The process transits from the state S1 to the state S0 (communication channel will be released) if a data burst finishes during Dt. The probability of that is: ( ) ttttp D=D+ m , 10 .(7) The probability that more than 1 change occurs in the state of the channel during Dt is equal to zero. The probabilities p00,p01,p10,p11 are arranged into the matrix of transition probabilities: = ÷ ÷ ø ö ç ç è æ D+D+ D+D+ =D+ ),(),( ),(),( ),( 1110 0100 tttptttp tttptttp tttP = ÷ ÷ ø ö ç ç è æ D-D DD- =)1) )1 tt tt mm ll tAJt ×+=D ÷ ÷ ø ö ç ç è æ - - + ÷ ÷ ø ö ç ç è æ =. 10 01 mm ll .(8) The matrix J is the unit one. The matrix A is the matrix of intensities of transition probabilities. In general, the elements of the matrix Acan be time dependent. But if it is supposed the ergodicity of the random process, e.g. the Markov process is homogenous, the time dependence does not exist. By the solution of the basic equation of the Markov random process Atp t tp ×= )( )( d d,(9) it can be calculated, with which probability p0(t) the communication channel will be free and with which probability p1(t) the communication channel will be occupied by a data burst in a time t. The equation is solved by means of Laplace transform: () ò ¥- == 0 ).()}({ ttpsFtp tdeL s,(10) })({ )( Atp t tp ×= þ ý ü î í ìL d d L.(11) Hence, when the transform is carried out ( ) ( ) [ ] 1 0- -××= AJspsF .(12) The sought vector p(t) will be obtained after the inverse Laplace transform ( ) ( ) { } ( ) [ ] { } 1 11 0- -- -××== AJspLsFLtp . (13) First, let s.J – A be written in: ÷ ÷ ø ö ç ç è æ +- -+ = = ÷ ÷ ø ö ç ç è æ - - - ÷ ÷ ø ö ç ç è æ =-× mm ll mm ll s s sAJs 10 01 (14) The inverse matrix: [ ] = ÷ ÷ ø ö ç ç è æ + + ++× =-× - lm lm ml s s ss AJs . )( 1 1 ÷ ÷ ÷ ÷ ø ö ç ç ç ç è æ ++× + ++× ++×++× + = )()( )()( ml l ml mml l ml m ss s ss ssss s .(15) To carry out the inverse Laplace transform, the elements of the inverse matrix shall be decomposed into the sum of particle fractions. Then the basic system of equations (13) acquires the form: () () + ê ê ê ê ë é ÷ ÷ ÷ ÷ ø ö ç ç ç ç è æ ++ ++ = ml l ml mml l ml m s psF 1 .0 ú ú ú ú û ù ÷ ÷ ÷ ÷ ø ö ç ç ç ç è æ ++ - + - + ++ + ml m ml mml l ml l ml s 1.(16) The result will be obtained by the inverse Laplace transform: () (){ } () + ê ê ê ê ë é ÷ ÷ ÷ ÷ ø ö ç ç ç ç è æ ++ ++ ==- ml l ml mml l ml m 0L 1psFtp
INFORMATION AND COMMUNICATION TECHNOLOGIES AND SERVICES, VOL. 9, NO. 1,MARCH 2011 3 ©2011 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING ISSN 1804-3119 ú ú ú ú û ù ÷ ÷ ÷ ÷ ø ö ç ç ç ç è æ ++ - + - + ++- ml m ml mml l ml l ml . )( t e.(17) Hence [ ] [ ] ml ml mm ml ml )0()0( )0()0( 1 )( 10 )( 100 pp pptp t - + + ++ + = +- e,(18) [ ] [ ] ml ml ll ml ml )0()0( )0()0( 1 )( 10 )( 101 pp pptp t +- + + ++ + = +- e.(19) These equations describe the Markov random process with 1 channel in that manner that they give the probability with which the random process will stay in one of both states in an eligible future time t. 2) Correlation and Co-variation Function The value of the random process X(t) acquires in a time t the random variable X that can acquire only 2 values: x0 = 0 if a data burst is not present or x1 = 1 if a data burst is present. Thus, there are 4 various combinations of products to determine the correlation function R( t ): () ( ){ } () ( ){ } () ( ){ } () ( ){ } () ( ){ } 1111 })()({.. )().()( 1111 0101 1010 0000 1 0 1 0 =+Ç=××= ==+Ç=××+ +=+Ç=××+ +=+Ç=××+ +=+Ç=××= ==+Ç== =+= åå == t t t t t u tt tXtXP xtXxtXPxx xtXxtXPxx xtXxtXPxx xtXxtXPxx xtXxtXPxx tXtXR ij jiji (20) If x0 = 0, only the last from 4 articles has a non-zero value. As the random process is also stable and ergodic, it does not depend on the value t, so it can be t = 0, too. Then: ( ) ( ) ( ) ( ) ( ) () (){ } 110 0 =Ç= =×=+×= u ttt XXP XXXtXR .(21) The probability P{X(0) = 1 ÇX( t ) = 1} can be get from the formula for the conditional probability: ( ) ( ) { } (){ } () (){ } 10/110 110 ==×= = = Ç = XXPXP XXP t t .(22) Supposing stability of the random process with probability P{X(0) = 1}, that the communication channel will be occupied at the beginning (in the time t = 0). The conditional probability is equal to P{X( t ) = 1/X(0) = 1}, if the communication channel was occupied at the beginning, and if it will be also occupied after a time t , it can be calculated from the equation (19), in which p0(0) = 0 and p1 = 1: ú ú û ù ê ê ë é+ + = = ú ú ú û ù ê ê ê ë é + ÷ ÷ ø ö ç ç è æ+ = = + + + == = = = = +- ÷ ÷ ø ö ç ç è æ+- +- J t tm m l tml l m m l m l ml m ml l t t t ).1( ..1 )( 1 . 1 1. 1 .1. 1 .)( }1)0(/1)({}.1)0({)( a aa a p XXPXPR e e e (23) ú ú û ù ê ê ë é+ + =+- J t ).1( . 1 1. 1 a aa ae.(24) thereby the equations (2) and (3) were used, too. Then the correlation function R( t ) using (22) and (24) will be: ú ú û ù ê ê ë é + + =+- J t t ).1( . 1 1. 1 .)( a aa a yR e.(25) The following relationship holds between traffic a offered to a communication channel and their traffic use y: ( ) apy ×-= 1 1.(26) where p1 is the probability that a channel is occupied in the steady state: 1 1 1lim 1 )( )1( 11 + = ú ú û ù ê ê ë é + + =¥= +- ¥® a a aa a pp t a t J e. (27) Substituting into (24) we obtain: . 1 1 1 1 1. 1 .).1()( )1( 2 )1( 1 ú ú û ù ê ê ë é+ ÷ ø ö ç è æ + = = ú ú û ù ê ê ë é+ + -= +- +- J t J t t a a aa a aa a apR e e (28) Co-variation function is: ( ) ( ) 2 mRK -= tt .(29) where m is the mean value (mean level) of the random process. Then
4INFORMATION AND COMMUNICATION TECHNOLOGIES AND SERVICES, VOL. 9, NO. 1,MARCH 2011 ©2011 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING ISSN 1804-3119 [ ] 2 2 2 1 2 1 . 1 1).1(. ÷ ø ö ç è æ + = ú û ù ê ë é÷ ø ö ç è æ + -=-== a a a a a apyym .(30) So the co-variation function will be: . )1( 1 1 1 1 )( )1( 2 2 )1( 2 J t J t t +- +- + = = ÷ ø ö ç è æ + - ú ú û ù ê ê ë é + ÷ ø ö ç è æ + = a a a a a a aa a K e e (31) If a will be expressed by means of y from (26) and (27), we obtain: y y a- =10 < y , and then t J J t t . ).1( 1 1 1 2).1.( 1 1 1 )( y y y yy y y y y K- - ÷ ÷ ø ö ç ç è æ+ - --= ÷ ÷ ø ö ç ç è æ+ - - =ee .(32) Dispersion is: ( ) ( ) yyK -== 10 2 s .(33) 3) Spectrum The spectrum of a random process can be calculated by means of the Wiener-Khintchin transform which is the Fourier transform of a co-variation function: ò ¥ ¥- - = ttw wt de j ).()( KS.(34) Let in the equation (32) J a ).1( 1 y- =.(35) and s 2 is given by (33). Then == ò ¥ ¥- - - tsw wt ta dee j ..)( 2 S = ú ú û ù ê ê ë é+= ò ò ¥ ¥ +--- 0 0 )()(2 tts twatwa dede jj 22 22 211 wa a s wawa s + = ÷ ÷ ø ö ç ç è æ + + - =jj . (36) 0t0 R( t ) t a 2 S( w ) 0 w a) b) c) X (t) Fig. 2. Shape, co-variation function and spectrum of the random process The data bursts train, the shape of the co-variation function and the spectrum belonging to it are drawn on Figure 2 for the comparison. The spectrum on Figure 2 c) has a shape of a probability distribution which can advantageously be used for determination of the sampling frequency. 2.2 Sampling Frequency If the spectrum S( w ) is to be considered for a probability distribution, it must be fulfilled: ò ¥ ¥- =1)(. ww dSc,(37) hence 2 2 2 22 22 1 1 2 1 2 1 ps sw wa a s = + = + = òò ¥ ¥- ¥ ¥- x x cd d . (38) So the distribution will have the shape: 22 1 .)( wa p a w + =f,(39) which is the Cauchy distribution and it expresses the probability density of occurrence of amplitudes of particular spectral components. Then the elementary rectangle f( w ). .D w in Figure 3 gives the probability with which the components in the interval from w to w + D w will occur in the spectrum. All spectral components in the range from -¥ to +¥ occur with the probability P = 1 because the integral from f( w ) in this range equals to 1. That means if we want to catch all changes in the course of the random process with the total certainty, it must be sampled with the infinite high frequency. Therefore, let the sampling frequency is limited by the frequency w v and then the probability P with which each change will be caught in the random process at this sampling frequency will be calculated:
INFORMATION AND COMMUNICATION TECHNOLOGIES AND SERVICES, VOL. 9, NO. 1,MARCH 2011 5 ©2011 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING ISSN 1804-3119 f( w ) 0 Dw w + w v - w v Fig. 3. Distribution of amplitudes of spectral components in the random process a w p wa w p aw w v v v Parctg 2 22 = + =ò - d.(40) The sampling frequency or the sampling period can be calculated from this equation for the given probability P: 2 tg )1(2 1 2 tg. 2 1P y P fv p Jp p a p - == ,(41) 2 cotg.)1(2 P yTv p Jp -= .(42) 3. Experimental 3.1 Analysis of Results The equations (41) and (42) give the sampling frequency or sampling interval, respectively in the case data bursts occur totally randomly and their length is totally random, too. It is also the case when the limit situation can occur when data bursts follow consecutively each other and the gap between them is infinitely small (y ® 1), or the data bursts length is infinitely short ( u ® 0), or both cases occur simultaneously. 3.2 Practical Application An example where this theory could be applied is the gigabit passive optical network (GPON) [5], [6], [7], [8], [9]. The GPON is an access network where more subscribers (up to 128) share the same optical fibre. The upstream communication between an optical network termination (ONT) on the subscriber side and the broadband node – optical line termination (OLT) on the network side goes through optical pulses bursts called transmission containers (T-CONTs) carrying data streams. It is necessary to hinder overlapping T-CONTs of simultaneously communicating ONTs. Therefore a time window is matched to each T-CONT from OLT. This window defines the T-CONT length and the time instants in which an ONT may send T-CONTs with data. To determine these properly, The OLT either receives and decodes dynamic bandwidth assignment (DBA) reports coming from ONT, or monitors the traffic load on each branch in the optical network. The first method is called the status DBA and the second the non-status DBA. The status DBA requires exchange of various control information between an OLT and an ONT in headers of data batches. The non-status DBA does not require any information exchange but it is necessary to know how often the traffic status shall be sampled on a network branch. Here the formula (41) or (42) can be helpful. The GPON bit rate is 1 244,16 Mbit/s in the upstream. The shortest data unit is one 125 ms long frame which is performed by 19 440 bytes. The longest data unit in the upstream is 216 = 65 536 bytes which lasts 421,4 ms. Let´s take the mean value of these 2 figures for the average burst length: s2,273 2 4,421125 mJ = + =.(43) Considering P = 0,95, we obtain for sampling interval from (42): )1.(89365 2 95,0 cotg.2,273).1(2 yyTv-=-= p p [ms], (44) ( ) yTv-×» 166 [ms]. (45) The longest sampling interval will be when there is no traffic load (y = 0): 66 max, = v Tms. (46) In order to avoid collision of 2 consecutive T- CONTs, the guard interval consisting of 32 bits is introduced in the upstream. They perform the guard time 32/1 244 160 000 = = 25,72 ns. During this time, ONT emits no energy into the optical fibre. That means there are 4-byte gaps in the 65 536-bytes bursts. That represents the traffic load of 99994,0 53665 453665 = - =y.(47) and so the shortest sampling interval will be: ( ) smsTv m 4004,09994,0166 min, ==-×= . (48) It is necessary to take into consideration that the maximum and minimum sampling intervals Tv,max and Tv,min are calculated on condition that the data bursts occur randomly on the optical fiber and their length is also random in the range from 125 to 421,4 ms. Even the minimum sampling interval of 4 ms is 5000-times longer than if each particular bit should be sampled which would give the sampling interval of 1/1 244 160 000 = 0,8 ns.
6INFORMATION AND COMMUNICATION TECHNOLOGIES AND SERVICES, VOL. 9, NO. 1,MARCH 2011 ©2011 ADVANCES IN ELECTRICAL AND ELECTRONIC ENGINEERING ISSN 1804-3119 4. Conclusion Application of this theory on data streams control may save many working operations of digital microcontrollers and thus enhance their performance. Acknowledgments The authors gratefully acknowledge support from the VEGA project No. 1/0375/08 “The Analytic Model Home Access Network New Generation”. References [1] LEVIN, B., L.:Teória náhodných procesov a jej aplikácie v rádiotechnike. SNTL Praha, 1965. [2] SVEŠNIKOV, A. A.: Sbírka úloh z teorie pravděpodobnosti, matematické statistiky a teorie náhodných funkcí. SNTL Praha, 1971. [3] VENTCEĽOVÁ, J., S.: Teória pravdepodobnosti. Alfa-SNTL Bratislava, 1973. [4] PRCHAL, J.: Teorie pravděpodobnosti ve sdělovací technice. NADAS Praha, 1975. [5] A broadband optical access system with increased service capability using dynamic bandwidth assignment. ITU-T Recommendation G.983.4, 2001. [6] Gigabit-capable Passive Optical Networks (G-PON): Physical Media Dependent (PMD) layer specification. ITU-T Recommendation G.984.2, 2003. [7] Gigabit-capable Passive Optical Networks (G-PON): Transmission convergence layer specification. ITU-T Recommendation G.984.3, 2004. [8] Gigabit-capable Passive Optical Networks (G-PON): ONT management and control interface specification. ITU-T Recommendation G. 984.4, 2004. [9] Gigabit-capable Passive Optical Networks (G-PON): Enhancement band. ITU-T Recommendation G. 984.5, 2007. About Authors ... Gustav CEPCIANSKY was born in 1947. 1971 – Master of sciences (MSc) in telecommunications on University of Žilina. 1971 – 1976 – employed at Slovak Telecom as a technical development specialist. 1976 – 2002 – employed at Slovak Telecom as the head of the operational research centre. 2002 – 2009 – employed at T-Com as a technical assistance centre specialist and at the same time as a lecturer on the Telecommunication Department of the Electrical Faculty, University of Žilina. Next formation: 1984 – the 1st doctor degree (CSc). 1995 – the study stay at Technical University Supélec in Paris. 1998 – the 2nd doctor degree (PhD). 2006 – the associated professor of Electrical Faculty, University of Žilina. Ladislav SCHWARTZ was born on 1950 in Žilina. In 1974 graduated from the University of Žilina, Department of Telecommunications with the Master’s degree (MSc). From 1974 to 1991 he worked in the Research Institute of Computer Technology in Žilina as the head of the Department of Data Communications. In 1986 he was awarded the title PhD and in 1991 he became a full time teacher and research worker of the University of Žilina. In 1999 he was appointed an associate professor. His main focuses are functions, reliability, security telecommunication and computer networks and data communications.