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

Similar documents
Performance Evaluation of Queuing Systems

QUEUING SYSTEM. Yetunde Folajimi, PhD

Introduction to Markov Chains, Queuing Theory, and Network Performance

Data analysis and stochastic modeling

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

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 "

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

Introduction to queuing theory

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

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

Figure 10.1: Recording when the event E occurs

Performance Modelling of Computer Systems

PBW 654 Applied Statistics - I Urban Operations Research

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/6/16. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA

Queueing Theory and Simulation. Introduction

Systems Simulation Chapter 6: Queuing Models

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/25/17. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA

Continuous Time Processes

Introduction to Queueing Theory

Queueing systems. Renato Lo Cigno. Simulation and Performance Evaluation Queueing systems - Renato Lo Cigno 1

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

Introduction to Queueing Theory

Chapter 2 Queueing Theory and Simulation

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

Introduction to Queueing Theory

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

Computer Networks More general queuing systems

EE 368. Weeks 3 (Notes)

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

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

Queuing Theory. Using the Math. Management Science

Queuing Theory. Queuing Theory. Fatih Cavdur April 27, 2015

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

Part I Stochastic variables and Markov chains

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

Slides 9: Queuing Models

Lecture Notes of Communication Network I y: part 5. Lijun Qian. Rutgers The State University of New Jersey. 94 Brett Road. Piscataway, NJ

Kendall notation. PASTA theorem Basics of M/M/1 queue

Advanced Computer Networks Lecture 3. Models of Queuing

Link Models for Packet Switching

Introduction to Queueing Theory with Applications to Air Transportation Systems

NATCOR: Stochastic Modelling

Classification of Queuing Models

Chapter 5: Special Types of Queuing Models

Non Markovian Queues (contd.)

QUEUING MODELS AND MARKOV PROCESSES

Chapter 6 Queueing Models. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

CS 798: Homework Assignment 3 (Queueing Theory)

Link Models for Circuit Switching

Readings: Finish Section 5.2

Class 11 Non-Parametric Models of a Service System; GI/GI/1, GI/GI/n: Exact & Approximate Analysis.

Computer Systems Modelling

M/G/1 and Priority Queueing

Part II: continuous time Markov chain (CTMC)

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

Queues and Queueing Networks

LECTURE #6 BIRTH-DEATH PROCESS

One billion+ terminals in voice network alone

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

λ λ λ In-class problems

CS418 Operating Systems

IEOR 6711, HMWK 5, Professor Sigman

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

Birth-Death Processes

Analysis of Software Artifacts

CDA6530: Performance Models of Computers and Networks. Chapter 3: Review of Practical Stochastic Processes

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

Queuing Analysis. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

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

Time Reversibility and Burke s Theorem

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

The story of the film so far... Mathematics for Informatics 4a. Continuous-time Markov processes. Counting processes

Section 1.2: A Single Server Queue

Waiting Line Models: Queuing Theory Basics. Metodos Cuantitativos M. En C. Eduardo Bustos Farias 1

COMP9334 Capacity Planning for Computer Systems and Networks

Elementary queueing system

Bernoulli Counting Process with p=0.1

4.7 Finite Population Source Model

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

Course Outline Introduction to Transportation Highway Users and their Performance Geometric Design Pavement Design

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

Review of Queuing Models

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

Queuing Theory. The present section focuses on the standard vocabulary of Waiting Line Models.

Photo: US National Archives

The effect of probabilities of departure with time in a bank

Intro Refresher Reversibility Open networks Closed networks Multiclass networks Other networks. Queuing Networks. Florence Perronnin

Queuing Theory. 3. Birth-Death Process. Law of Motion Flow balance equations Steady-state probabilities: , if

Advanced Queueing Theory

IOE 202: lectures 11 and 12 outline

Lecture 20: Reversible Processes and Queues

Introduction to queuing theory

Základy teorie front

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011

Statistics 150: Spring 2007

Name of the Student:

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

Introduction to Queuing Networks Solutions to Problem Sheet 3

Solutions to COMP9334 Week 8 Sample Problems

10.2 For the system in 10.1, find the following statistics for population 1 and 2. For populations 2, find: Lq, Ls, L, Wq, Ws, W, Wq 0 and SL.

Transcription:

Networking = Plumbing TELE302 Lecture 7 Queueing Analysis: I Jeremiah Deng University of Otago 29 July 2013 Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 1 / 33 Lecture Outline Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 2 / 33 Review Last Lecture 1 Review 2 Graphical Representation 3 4 Probability distributions Exponential distribution Gaussian distribution Poisson distribution... Poisson process memoryless interarrival time: exponential distributed number of occurrences within an interval: Poisson distributed Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 3 / 33 Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 5 / 33

Graphical Representation Graphical Representation Markov Chains Graphical Representation A Markov chain {X (n), n = 0, 1, 2,...}: a memoryless discrete stochastic process. P{X (n + 1) = j X (0) = i 0, X (1) = i 1,..., X (n) = i n } = P{X (n + 1) = j X (n) = i n }. Memoryless: Future is defined purely by Present, no Past. Described by transition probabilities between states i and j: P ij (s, t) = P(X t = j X s = i) Used to model weather, genetic inheritance, communication errors etc. Markov Chains are used to describe system state transition in a Poisson process. A point process counting arrivals only: always growing Birth-death process can be used for queueing modeling. Right links represent birth or arrival; Left links are for death or departure. Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 9 / 33 Graphical Representation Network Design: Looking back Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 10 / 33 Queueing is everywhere! Network design takes a broad spectrum. Optimization with trade-offs, analysis, simulation etc. Services almost always get delayed. Today s question: How much (queueing) delay can be expected from a given service model? Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 11 / 33 Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 13 / 33

Customers & Service Over Time Customers arrive at a service facility under a point process. If no server is available, the customer enters a queue. When a server is free, customer gets served in a (random) length of time. After service, the customer departs the system. Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 14 / 33 Queuing Theory Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 15 / 33 Arrival Process Originally developed to help design and analyse telephone networks. Erlang published first QT paper in 1909. Revived with the development of ARPANET Leonard Kleinrock used QT to design packet switching networks in 1960s. Broadly applicable to systems characterized by A stochastic arrival process A stochastic service mechanism A queue discipline Specifies how customers arrive to the system. Defined by Inter-arrival time ia time: expected time between arrivals of customers. Arrival rate: λ = 1/ia time. a probability distribution. ia time usually takes an exponential distribution. Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 16 / 33 Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 17 / 33

Service Mechanism Queueing Discipline Number of servers Mean service time of a customer denoted by E(S) µ = 1/E(S): service rate of a server. Probability distribution for the service time Modelled usually as an exponential distribution Rule by which we choose the next customer to be served. Common ones are FIFO: First In First Out (a standard queue) LIFO: Last In First Out (a stack) Priority: Define priority for each customer (a priority queue). Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 18 / 33 Kendall Notation (A/B/c/K/m/Z) Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 19 / 33 Customers & Service Over Time - Another Look A: interarrival time distribution B: service time distribution M for exponential G for general c: number of servers Optional: K: maximum number of allowed customers m: size of the customer population Z: queueing discipline, typically FIFO Too much randomness! No clue about system performance: how long will a customer stay in system/queue on average; how many customers are in system/queue on average? Some simplification based on on average? Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 20 / 33 Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 21 / 33

Little s Theorem Queuing Number of customers in the system at time t is N = λw λ: avg. arrival rate, 1/λ: average interarrival time W : Avg. time in system Little s Theorem actually holds for every queueing system. Arrivals are random Forms a Poisson Process at a constant average rate λ. FIFO The queue discipline is first-come, first served. Service Time with an exponential rate of µ. One server Steady state Constant average arrival rate, λ, is less than the constant potential service rate, µ. Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 22 / 33 Analysis Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 24 / 33 Analysis (continued... ) Let p n be the steady state probability of being in state n. For balance to be reached the following equations hold p n 1 λ + p n+1 µ = p n (λ + µ), for n > 0; p 1 µ = p 0 λ e.g., steady state requires inflow (in green) = outflow (in blue) at node 2, i.e., p 1 λ + p 3 µ = p 2 λ + p 2 µ. Solving equations above gives: ( n λ p n = µ) p0 Define = λ/µ. From p n = n p 0, and that n=0 p n = 1, we have p 0 = 1, p n = (1 ) n. Expected number in system: L = E{N} = n np n = 1 Chances the server is busy: P[N 1] = 1 p 0 =. is also called utilization rate. 9 8 7 6 5 4 3 2 1 Performance of Cust# in Sys. 0 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 Utilization rate Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 25 / 33 Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 26 / 33

Performance Notations Expected Times According to Little s Theorem, the expected time in the system is L: Expected number of customers in the system W : Expected customer time in the system L q : Expected queue length W q : Expected waiting time in queue W = L/λ = Expected time in server is W s = 1/µ. Expected time in queue W q = W W s = λ(1 ) = 1 µ λ. µ(1 ) = 2 λ(1 ). Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 27 / 33 Expected Queue Length Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 28 / 33 An Example Expected number of customers in system is L = E{N} = Expected number of customer in server 1 = λ µ λ. L s = 1 P[N 1] = 1 P[N = 0] = 1 (1 ) =. So expected queue length is L q = L L s = 2 1. A switch receives messages at a rate of 240 messages per minute. Message length is exponentially distributed with an average length of 176 bytes. Outgoing transmission is at the rate of 800 bytes per second. Analyze as system. Little s Theorem holds here - W q = L q /λ. Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 29 / 33 Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 30 / 33

The Solution Bonus Question (0.5 marks) Arrival rate is λ=4 msg/sec. Service rate is µ=800/176=4.54 msg/sec. Utilization rate of model is = λ/µ = 4/4.54 = 0.88. Average queueing length is L q = 2 /(1 ) = 6.4 msgs 9 8 7 6 5 4 3 Performance of Queue len. Time in sys. The manager says from tomorrow on the message arrival rate will double, 8 msg/sec. A new CPU is needed for the switch. What is the new service rate, if the same average time in system, W, is expected? Double the original service rate µ? Less than double? More than double? Exactly, how much? Average time spent in system per msg is W = 1.8 sec. 2 1 0 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 Utilization rate Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 31 / 33 Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 32 / 33 Recap Queueing concepts Arrival/enqueue or service/departure Queueing discipline Kendal annotations : λ, µ,... References Reading WSa, Queueing Analysis, available from Schedule page Bertsekas & Gallager, Data Networks, Chapter 3 (3.1 3.3). Ns-2 Lab this week Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 33 / 33