Chapter 3 Balance equations, birth-death processes, continuous Markov Chains

Similar documents
Link Models for Packet Switching

Queueing Theory I Summary! Little s Law! Queueing System Notation! Stationary Analysis of Elementary Queueing Systems " M/M/1 " M/M/m " M/M/1/K "

Performance Evaluation of Queuing Systems

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

Networking = Plumbing. Queueing Analysis: I. Last Lecture. Lecture Outline. Jeremiah Deng. 29 July 2013

Page 0 of 5 Final Examination Name. Closed book. 120 minutes. Cover page plus five pages of exam.

λ λ λ In-class problems

Link Models for Circuit Switching

6 Solving Queueing Models

Queueing Theory. VK Room: M Last updated: October 17, 2013.

Queueing Systems: Lecture 3. Amedeo R. Odoni October 18, Announcements

CS 798: Homework Assignment 3 (Queueing Theory)

Exam of Discrete Event Systems

Lecture 7: Simulation of Markov Processes. Pasi Lassila Department of Communications and Networking

UNIVERSITY OF YORK. MSc Examinations 2004 MATHEMATICS Networks. Time Allowed: 3 hours.

Photo: US National Archives

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011

Introduction to queuing theory

Statistics 150: Spring 2007

Solutions to COMP9334 Week 8 Sample Problems

Readings: Finish Section 5.2

NICTA Short Course. Network Analysis. Vijay Sivaraman. Day 1 Queueing Systems and Markov Chains. Network Analysis, 2008s2 1-1

LECTURE #6 BIRTH-DEATH PROCESS

Markov Chains. X(t) is a Markov Process if, for arbitrary times t 1 < t 2 <... < t k < t k+1. If X(t) is discrete-valued. If X(t) is continuous-valued

5/15/18. Operations Research: An Introduction Hamdy A. Taha. Copyright 2011, 2007 by Pearson Education, Inc. All rights reserved.

16:330:543 Communication Networks I Midterm Exam November 7, 2005

Operations Research II, IEOR161 University of California, Berkeley Spring 2007 Final Exam. Name: Student ID:

GI/M/1 and GI/M/m queuing systems

Data analysis and stochastic modeling

CPSC 531: System Modeling and Simulation. Carey Williamson Department of Computer Science University of Calgary Fall 2017

Chapter 5. Continuous-Time Markov Chains. Prof. Shun-Ren Yang Department of Computer Science, National Tsing Hua University, Taiwan

Name of the Student:

Computer Systems Modelling

Math 416 Lecture 11. Math 416 Lecture 16 Exam 2 next time

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

Queueing. Chapter Continuous Time Markov Chains 2 CHAPTER 5. QUEUEING

Lecture 20: Reversible Processes and Queues

Continuous-Time Markov Chain

Introduction to Queuing Networks Solutions to Problem Sheet 3

M/G/1 and M/G/1/K systems

(b) What is the variance of the time until the second customer arrives, starting empty, assuming that we measure time in minutes?

Part I Stochastic variables and Markov chains

YORK UNIVERSITY FACULTY OF ARTS DEPARTMENT OF MATHEMATICS AND STATISTICS MATH , YEAR APPLIED OPTIMIZATION (TEST #4 ) (SOLUTIONS)

IEOR 6711, HMWK 5, Professor Sigman

QUEUING SYSTEM. Yetunde Folajimi, PhD

IEOR 6711: Stochastic Models I, Fall 2003, Professor Whitt. Solutions to Final Exam: Thursday, December 18.

Contents Preface The Exponential Distribution and the Poisson Process Introduction to Renewal Theory

Queueing Theory and Simulation. Introduction

57:022 Principles of Design II Final Exam Solutions - Spring 1997

Queuing Theory. Using the Math. Management Science

Introduction to Queueing Theory

Queuing Networks: Burke s Theorem, Kleinrock s Approximation, and Jackson s Theorem. Wade Trappe

Introduction to Queueing Theory

Continuous Time Markov Chains

Exercises Solutions. Automation IEA, LTH. Chapter 2 Manufacturing and process systems. Chapter 5 Discrete manufacturing problems

Computer Systems Modelling

Assignment 3 with Reference Solutions

The shortest queue problem

PBW 654 Applied Statistics - I Urban Operations Research

Birth-Death Processes

Analysis of A Single Queue

Computer Networks More general queuing systems

IEOR 4106: Spring Solutions to Homework Assignment 7: Due on Tuesday, March 22.

Chapter 2 Queueing Theory and Simulation

Time Reversibility and Burke s Theorem

Chapter 3: Markov Processes First hitting times

ECE 3511: Communications Networks Theory and Analysis. Fall Quarter Instructor: Prof. A. Bruce McDonald. Lecture Topic

Queues and Queueing Networks

Recap. Probability, stochastic processes, Markov chains. ELEC-C7210 Modeling and analysis of communication networks

Queueing Theory II. Summary. ! M/M/1 Output process. ! Networks of Queue! Method of Stages. ! General Distributions

COMP9334: Capacity Planning of Computer Systems and Networks

Classification of Queuing Models

stochnotes Page 1

MATH 56A: STOCHASTIC PROCESSES CHAPTER 6

Figure 10.1: Recording when the event E occurs

CHAPTER 3 STOCHASTIC MODEL OF A GENERAL FEED BACK QUEUE NETWORK

Analysis of an M/M/1/N Queue with Balking, Reneging and Server Vacations

Chapter 8 Queuing Theory Roanna Gee. W = average number of time a customer spends in the system.

Engineering Mathematics : Probability & Queueing Theory SUBJECT CODE : MA 2262 X find the minimum value of c.

CDA5530: Performance Models of Computers and Networks. Chapter 4: Elementary Queuing Theory

Probability Models in Electrical and Computer Engineering Mathematical models as tools in analysis and design Deterministic models Probability models

Logistical and Transportation Planning Methods 1.203J/6.281J/13.665J/15.073J/16.76J/ESD.216J

Queuing Theory. Richard Lockhart. Simon Fraser University. STAT 870 Summer 2011

Outline. Finite source queue M/M/c//K Queues with impatience (balking, reneging, jockeying, retrial) Transient behavior Advanced Queue.

EP2200 Course Project 2017 Project II - Mobile Computation Offloading

Introduction to Queueing Theory

Chapter 5: Special Types of Queuing Models

Job Scheduling and Multiple Access. Emre Telatar, EPFL Sibi Raj (EPFL), David Tse (UC Berkeley)

A Study on Performance Analysis of Queuing System with Multiple Heterogeneous Servers

MARKOV PROCESSES. Valerio Di Valerio

Chapter 5. Elementary Performance Analysis

SOLUTIONS IEOR 3106: Second Midterm Exam, Chapters 5-6, November 8, 2012

P (L d k = n). P (L(t) = n),

Random Walk on a Graph

Transient Analysis of a Series Configuration Queueing System

An M/M/1/N Queuing system with Encouraged Arrivals

Course Documents Authorized Duration: 120 minutes. Questions are generally independent. You can respond to any question before the other.

TCOM 501: Networking Theory & Fundamentals. Lecture 6 February 19, 2003 Prof. Yannis A. Korilis

Quiz Queue II. III. ( ) ( ) =1.3333

EE 368. Weeks 3 (Notes)

Transcription:

Chapter 3 Balance equations, birth-death processes, continuous Markov Chains Ioannis Glaropoulos November 4, 2012 1 Exercise 3.2 Consider a birth-death process with 3 states, where the transition rate from state 2 to state 1 is q 21 = µ and q 23 =. Show that the mean time spent in state 2 is exponentially distributed with mean 1/( + µ). 1 Solution: Suppose that the system has just arrived at state 2. The time until next birth denoted here as T B is exponentially distributed with cumulative distribution function F TB (t) = 1 e t. Similarly, the time until next death denoted here as T D is exponentially distributed with cumulative distribution function F TD (t) = 1 e µt. The random variables T B and T D are independent. Denote by T 2 the time the system spends in state 2. The system will depart from state 2 when the first of the two events (birth or death) occurs. Consequently we have T 2 = min{t B, T D }. We, then, apply the result from exercise 1.6, that is the minimum of independent exponential random variables is an exponential random variable. We can actually show this: F T2 (t) = Pr{T 2 t} = = Pr{min{T B, T D } t} = = 1 Pr{min{T B, T D } > t} = = 1 Pr{T B > t, T D > t} = = 1 Pr{T B > t} Pr{T D > t} = = 1 e t e µt = = 1 e (+µ)t so T 2 is exponentially distributed with parameter + µ. Notice that we can generalize to the case with more than two transition branches. This exercise reveals the property of continuous time Markov chains, that is, the time spent on a state is exponentially distributed. 2 Exercise 3.3 Assume that the number of call arrivals between two locations has Poisson distribution with intensity. Also, assume that the holding times of the conversations 1 This exercise is similar to Exercise 6 from Chapter 1: The minimum of independent exponential variables is exponential. 1

are exponentially distributed with a mean of 1/µ. Calculate the average number of call arrivals for a period of a conversation. Solution: Denote by N C the number of arriving calls during the period of one conversation. Denote by T the duration of this conversation. Given that T = t, N C T = t is Poisson distributed with parameter t so the probability mass function of the number of calls will be Pr{arriving calls within t = k} = P k (t) = (t)k e t. k! with an average number of calls: E[N C T = t] = t. Moreover T is exponentially distributed, with parameter µ so the density function will be: f T (t) = µe µt. We apply the conditional expectation formula: E[N C ] = E[N C T = t] f T (t)dt = tµe µt dt = tµe µt dt = µ. 3 Exercise 3.4 0 0 0 Consider a communication link with a constant rate of 4.8kbit/sec. Over the link we transmit two types of messages, both of exponentially distributed size. Messages arrive in a Poisson fashion with = 10 messages/second. With probability 0.5 (independent from previous arrivals) the arriving message is of type 1 and has a mean length of 300 bits. Otherwise a message of type 2 arrives with a mean length of 150 bits. The buffer at the link can at most hold one message of type 1 or two messages of type 2. A message being transmitted still takes a place in the buffer. a) Determine the mean and the coefficient of variation of the service time of a randomly chosen arriving message. b) Determine the average times in the system for accepted messages of type 1 and 2. c) Determine the message loss probabilities for messages of type 1 and 2. Solution: a) We have a link with a constant transmission rate. So the service time distributions follow the packet length distributions. Consequently, the service times of both packet types are exponential with mean values of Type 1: E[T 1 ] = 300 4800 = 1 16 sec, Type 2: E[T 2 ] = 150 4800 = 1 32 sec. As a result the parameters of the exponential distributions are µ 1 = 16 and µ 2 = 32, respectively. A random arriving packet is of Type 1 or Type 2 with probability 0.5. We apply the conditional expectation 2 : 2 This is similar to exercise 1.2 E[T ] = 1 2 E[T 1] + 1 2 E[T 2] = 3 64 2

µ 1 /2 /2 /2 S 11 S 0 S 12 S 22 /2 /2 µ 2 µ 2 Figure 1: State Diagram for Exercise 3.4 Similarly, we calculate the mean square: E[T 2 ] = 1 2 E[T 2 1 ] + 1 2 E[T 2 2 ] = 1 2 2 µ 2 1 + 1 2 2 µ 2 2 = 16 2 + 32 2 = 5 4 16 2. The variance of T is derived from V ar[t ] = E[T 2 ] (E[T ]) 2. Then we compute the standard deviation σ T as σ T = V ar[t ], and finally the coefficient of variation is given as: c T = σ T E[T ]. b) For this part of the exercise, we need to draw the Markov Chain (Fig. 1) and solve it in the steady state. The state space must be defined in such a way that we can guarantee that all transitions from state to state have an exponential rate. We choose here to define such a Markov chain with 4 states: State 0; Empty buffer. State 11; 1 packet of Type 1. State 21; 1 packet of Type 2. State 22; 2 packets of Type 2. Then we solve the balance equations in the local form: Solution: µ 2 P 22 = /2P 21 µ 2 P 21 = /2P 0 µ 1 P 11 = /2P 0 P 0 + P 11 + P 21 + P 22 = 1(norm. equation) P 0 = 0.670, P 21 = 0.105, P 22 = 0.016, P 11 = 0.209. An accepted message of Type 1 can only arrive at state 0, otherwise it is rejected. So its the average service time will be E[T 1 ]. An accepted message of Type 2 can arrive at states 0 and 21, otherwise it is rejected. Then, the average service time will be (E[T 2 ]P 0 + 2E[T 2 ]P (21 )/(P 0 + P 21 ). 3 c) The loss probabilities are equal to the probabilities of the system being in BLOCKING states, for each of the two packet types. We underline that this is always true for homogeneous Markov chains, that is, Markov chains where the arrival rates do not depend on the system state. 3 The occurrence of acceptance reduces the sample space to two states only. Then the probabilities are normalized. 3

3/4 2/4 /4 0 S 0 S 1 S 2 S 3 S 4 S 5 µ µ µ µ µ 4 Exercise 3.5 Figure 2: State diagram for Exercise 3.5 Consider a Markovian system with discouraged job arrivals. Jobs arrive to a server in a Poisson fashion, with an intensity of one job per 7 seconds. The jobs observe the queue. They do NOT join the queue with probability l k if they observe k jobs in the queue. l k = k/4 if k < 4, or 0, otherwise. The service time is exponentially distributed with mean time of 6 seconds. a) Determine the mean number of customers in the system, and b) the number of jobs served in 100 seconds. Solution: a) This is a simple model but requires careful design. After building the correct state diagram, the solution is found, based on the LOCAL balance equations. We have a system with 6 states. State space: S k : k jobs in the system. The system diagram is shown in Fig. 2). Balance Equation System: P 0 = µp 1 P 1 = µp 2 3/4P 2 = µp 3 /2P 2 = µp 4 /4P 2 = µp 5 5 k=1 P k = 1 Solution: P 0 0.3, and the remaining probabilities are computed based on P 0 and the equations above. After determining the state probabilities, we derive the average number of customers in the system through E[N] = 5 k P k k=0 We find E[N] 1.43. b) We have, here, a system with different arrival rates in each state. These systems are defined as non-homogeneous. However, the service rate is constant. The server is busy with probability (1 P 0 ). When it is busy, it serves jobs. The service rate is µ = 1/6sec 1. As a result, the server can serve 100 µ (1 P 0 ) jobs in 100 seconds on AVERAGE! 4

S 0 S 10 S 20 S 11 S µ µ µ 21 µ 5 Exercise 3.6 Figure 3: State Diagram for Exercise 3.6 Consider a network node that can serve 1 and store 2 packets altogether. Packets arrive to the node according to a Poisson process. Serving a packet involves two independent sequentially performed tasks: the ERROR CHECK and the packet TRANSMISSION to the output link. Each task requires an exponentially distributed time with an average of 30msec. Give, that we observe that the node is empty in 60% of the time, what is the average time spend in the node for one packet? Solution: As always, we need to construct the state diagram is such a way that all transitions rates are guaranteed to be exponential. The selected state space: S 0 : Empty network node, S 11 : One packet under transmission, S 10 : One packet under error-check, S 20 : One packet under error-check and one buffered, S 21 : One packet under transmission and one buffered, The state diagram is shown in Fig. 3. We can form the global balance equations parameterized by. Then we apply information that is given: P 0 = 0.6; This extra information enables the solution of the system of equations, and leads to the calculation of : P 0 = µp 11 ( + µ)p 11 = µp 10 ( + µ)p 10 = P 0 + µp 21 µp 21 = P 11 + µp 22 P 11 + P 10 + P 21 + P 22 = 1 P 0 = 0.4 Solution: P 10 0.1636, P 11 0.1337, P 20 0.0365, P 21 0.0663, 7.63. For the calculation of the total average system time for a packet, we apply 5

Little s formula. N = eff E[T sys ] E[T sys ] = N = 1 (P 10 + P 11 ) + 2 (P 21 + P 22 ). eff eff We always apply the effective arrival rate at Little s formula, because the formula needs the actual average arrival rate at the system, excluding possible drops. Here, the effective rate is not equal to, since we have packet drops. However, since the arrival rate for this system does not change with time, the effective arrival rate is simply: eff = (P 0 + P 10 + P 11 ). 6