Danh mục

Networking Theory and Fundamentals - Lectures 9 & 10

Số trang: 32      Loại file: pdf      Dung lượng: 454.05 KB      Lượt xem: 14      Lượt tải: 0    
tailieu_vip

Phí tải xuống: 1,000 VND Tải xuống file đầy đủ (32 trang) 0
Xem trước 4 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Tham khảo tài liệu 'networking theory and fundamentals - lectures 9 & 10', công nghệ thông tin, quản trị mạng phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả
Nội dung trích xuất từ tài liệu:
Networking Theory and Fundamentals - Lectures 9 & 10 TCOM 501: Networking Theory & Fundamentals Lectures 9 & 10 M/G/1 Queue Prof. Yannis A. Korilis 1 Topics 10-2 M/G/1 Queue Pollaczek-Khinchin (P-K) Formula Embedded Markov Chain Observed at Departure Epochs Pollaczek-Khinchin Transform Equation Queues with Vacations Priority Queueing M/G/1 Queue 10-3 Arrival Process: Poisson with rate λ Single server, infinite waiting room Service times: Independent identically distributed following a general distribution Independent of the arrival process Main Results: Determine the average time a customer spends in the queue waiting service (Pollaczek-Khinchin Formula) Calculation of stationary distribution for special cases only M/G/1 Queue – Notation 10-4 Wi : waiting time of customer i X i : service time of customer i Qi : number of customers waiting in queue (excluding the one in service) upon arrival of customer i Ri : residual service time of customer i = time until the customer found in service by customer i completes service Ai : number of arrivals during the service time X i of customer i Service Times X1, X2, …, independent identically distributed RVs Independent of the inter-arrival times Follow a general distribution characterized by its pdf f X ( x ) , or cdf FX ( x ) Common mean E [ X ] = 1 / µ Common second moment E [ X 2 ] M/G/1 Queue 10-5 State Representation: {N (t ) : t ≥ 0} is not a Markov process – time spent at each state is not exponential R(t) = the time until the customer that is in service at time t completes service {( N (t ), R (t )) : t ≥ 0} is a continuous time Markov process, but the state space is not a countable set Finding the stationary distribution can be a rather challenging task Goals: Calculate average number of customers and average time-delay without first calculating the stationary distribution Pollaczek-Khinchin (P-K) Formula: λE [ X 2 ] E [W ] = 2(1 − λE[ X ]) To find the stationary distribution, we use the embedded Markov chain, defined by observing N (t ) at departure epochs only – transformation methods A Result from Probability Theory 10-6 Proposition: Sum of a Random Number of Random Variables N: random variable taking values 0,1,2,…, with mean E[ N ] X1, X2, …, XN: iid random variables with common mean E[ X ] Then: E [ X 1 + + X N ] = E[ X ] ⋅ E[ N ] Proof: Given that N=n the expected value of the sum is E  ∑ j =1 X j | N = n  = E  ∑ j =1 X j  = ∑ j =1 E [ X j ] =nE[ X ] N n n     Then: ∞ ∞ E  ∑ j =1 X j  = ∑ E  ∑ j =1 X j | N = n  × P{N = n} = ∑ nE [ X ] ⋅ P{N = n} N N   n =1   n =1 ∞ = E[ X ]∑ nP{N = n} = E[ X ]E [ N ] n =1 Pollaczek-Khinchin Formula 10-7 Assume FCFS discipline Waiting time for customer i is: + X i −Qi = Ri + ∑ j =i −Q X j i −1 Wi = Ri + X i −1 + X i − 2 + i Take the expectation on both sides and let i → ∞ , assuming the limits exist: E[Wi ] = E[ Ri ] + E  ∑ j =i −Q X j  = E [ Ri ] + E [ X ]E[Qi ] ⇒ i −1   i E[W ] = E [ R ] + E[ X ]E [Q ] Averages E[Q], E[R] in the above equation are those seen by an arriving customer. Poisson arrivals and Lack of Anticipation: averages seen by an arriving customer are equal averages seen by an outside observer – PASTA property Little’s theorem for the waiting area only: E[Q ] = λE [W ] E[ R] E[W ] = E [ R ] + λE [ X ] ⋅ E [W ] = R + ρE [W ] ⇒ E[W ] = 1− ρ ρ = λE[ X ] = λ / µ : utilization factor = proportion of time server is busy ρ = λE[ X ] = 1 − p0 Calculate the average residual time: E[ R ] = lim E[ Ri ] i →∞ Average Residual Time 10-8 R (t ) X1 t X1 X2 X D(t ) Graphical calculation of the long-term average of the residual time t Time-average residual time over [0,t]: t −1 ∫ R ( s )ds 0 Consider time t, ...

Tài liệu được xem nhiều: