Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis 1  Load-balancing problem  migrate (large) jobs from a busy server to an underloaded.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
CS 241 Spring 2007 System Programming 1 Queuing Framework for Process Management Evaluation Lecture 20 Klara Nahrstedt.
Continuous Time Markov Chains and Basic Queueing Theory
Queueing Model 박희경.
System Performance & Scalability i206 Fall 2010 John Chuang.
#11 QUEUEING THEORY Systems Fall 2000 Instructor: Peter M. Hahn
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Performance analysis for high speed switches Lecture 6.
Queuing Systems Chapter 17.
Mean Delay in M/G/1 Queues with Head-of-Line Priority Service and Embedded Markov Chains Wade Trappe.
OS Fall ’ 02 Performance Evaluation Operating Systems Fall 2002.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
1 Queuing Theory 2 Queuing theory is the study of waiting in lines or queues. Server Pool of potential customers Rear of queue Front of queue Line (or.
Queueing Theory Chapter 17.
Delay models in Data Networks
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
1 Overview of Queueing Systems Michalis Faloutsos Archana Yordanos The web.
Queueing Network Model. Single Class Model Open - Infinite stream of arriving customers Closed - Finite population eg Intranet users Indistinguishable.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
Queueing Theory.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Queuing Theory. Queuing theory is the study of waiting in lines or queues. Server Pool of potential customers Rear of queue Front of queue Line (or queue)
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?

Location Models For Airline Hubs Behaving as M/D/C Queues By: Shuxing Cheng Yi-Chieh Han Emile White.
Lesson 11: Solved M/G/1 Exercises
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
1 Exponential Distribution & Poisson Process Memorylessness & other exponential distribution properties; Poisson process and compound P.P.’s.
Introduction to Queuing Theory
Eurecom, Sophia-Antipolis Thrasyvoulos Spyropoulos / Introduction to Continuous-Time Markov Chains and Queueing Theory.
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  …
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
1 Exponential distribution: main limitation So far, we have considered Birth and death process and its direct application To single server queues With.
Stochastic Processes A stochastic process is a model that evolves in time or space subject to probabilistic laws. The simplest example is the one-dimensional.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
1 Queuing Models Dr. Mahmoud Alrefaei 2 Introduction Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other.
TexPoint fonts used in EMF.
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
Why Wait?!? Bryan Gorney Joe Walker Dave Mertz Josh Staidl Matt Boche.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Probability Review CSE430 – Operating Systems. Overview of Lecture Basic probability review Important distributions Poison Process Markov Chains Queuing.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Chapter 20 Queuing Theory to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
The M/M/ N / N Queue etc COMP5416 Advanced Network Technologies.
CSCI1600: Embedded and Real Time Software Lecture 19: Queuing Theory Steven Reiss, Fall 2015.
QUEUING THEORY.
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
Queuing Theory.  Queuing Theory deals with systems of the following type:  Typically we are interested in how much queuing occurs or in the delays at.
COMT 4291 Queuing Analysis COMT Call/Packet Arrival Arrival Rate, Inter-arrival Time, 1/ Arrival Rate measures the number of customer arrivals.
Queueing Fundamentals for Network Design Application ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
QUEUING. CONTINUOUS TIME MARKOV CHAINS {X(t), t >= 0} is a continuous time process with > sojourn times S 0, S 1, S 2,... > embedded process X n = X(S.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
QUEUING THEORY 1.  - means the number of arrivals per second   - service rate of a device  T - mean service time for each arrival   = ( ) Utilization,
1 Chapter 5 Continuous time Markov Chains Learning objectives : Introduce continuous time Markov Chain Model manufacturing systems using Markov Chain Able.
Managerial Decision Making Chapter 13 Queuing Models.
Queueing Theory II.
M/G/1 Queue & Renewal Reward Theory
Internet Queuing Delay Introduction
CPSC 531: System Modeling and Simulation
Internet Queuing Delay Introduction
TexPoint fonts used in EMF.
Queueing Theory II.
Queuing Theory By: Brian Murphy.
Queueing Theory 2008.
Presentation transcript:

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis 1  Load-balancing problem  migrate (large) jobs from a busy server to an underloaded  Depends on job sizes  which job to migrate? Q: What if job sizes are exponential?  Pareto: top 1% of jobs  50% of total load  Exp: top 1%  only 5% of total load

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis  Exponential  C 2 = 1 Q: How to capture C 2 < 1? A: Consider a sum of k random variables (IID) with exp(kμ)  Erlang-K 2

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis Q: How to capture C 2 > 1? A: Hyper-exponential Q: Expectation? C 2 ? Can combine both in many phases (Coxian distribution) to capture any distribution G with a Laplace Transform 3

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis  Poisson Arrivals  Service with C 2 = ½ (less variance than exponential)  Represent with erlang-2  service had two phases in tandem Plus: Can represent many complex problems Minus: Can only be solved numerically using matrix methods 4

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis  M/G/1 system  M: stands for memoryless (poisson) arrivals  1: stands for a single server  G: stands for generic (any!) prob. distribution on service times Q: What is the expected queueing delay of an arriving customer E[T]? 5 Poisson (λ) arrivals Service time S: P(S ≤ s) = F(s) S1S1 S2S2 S3S3 S4S4 S0S0  S1, S2,.., SN : service times of queued jobs  S 0 : service time of job currently served  S e : remaining service time for current job arrival SeSe

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis  Time T between buses: random variable with mean E[T]  Residual time R = wait time for passenger  What is E[R]???  Case 1: Exponential with mean E[T] = 20min  Case 2: 90% chance to wait exactly 10min, 10% wait 110min  Answer?  A: 10min  B: 20min  C: 30min 6 t arriving at bus stop T R

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis  Why is this???  E[T]: average over all intervals T 1, T 2, T 3  E[R]: larger chance to fall (measure) inside a large interval!  The larger the higher  High variance => High E[R]  What about deterministic arrivals (every 20min)?  But what is E[R] exactly? Will need Renewal Theory for this 7 t T large T small T1T1 T2T2

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis (t1,t2)  Poisson: time between events is exponential  Renewal: time between events has general distribution F(t)  F(0) E(T) > 0 1. Independence: inter-arrival times are independent a) Poisson: b) Renewal (process renews after an arrival): 2. Stationary Increments: # of events in (t1,t2) = f(t2-t1) a) Poisson: at any (t1,t2), # of events in (t1,t2) independent of past b) Renewal: # events in T2 = (t1,t2) changes if known event at t1-ε 8 P{T < t} = F(t) √ √ √ X

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis  Rate of arrivals in the long run (t -> ∞)  Denote m(t) = E[N(t)]  Difficult to derive for small t!  For large t? 9

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis  Time between events distributed as F(T) with mean E[T]  At every event i, we get a reward (or cost) R i  R i is a random variable with mean E[R]  independent from all R j (j≠i)  How do we accumulate rewards over time? 10 R1R1 R2R2 R3R3 RNRN …

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis  (time-) average wait a random customer sees is  Renewal-Reward Model  T i : cycle with mean E[T]  Renewal-Reward Theorem =>  Reward during a cycle of Ti => =>  Expected wait is R(t) t T1T1 T1T1 customer arrives at random t “sees” this wait time

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis Q: What is the expected queueing delay of an arriving customer E[T]? 12 Poisson (λ) arrivals Service time S: P(S ≤ s) = F(s) S1S1 S2S2 S3S3 S4S4 S0S0  S1, S2,.., SN : service times of queued jobs  S 0 : service time of job currently served  S e : remaining service time for current job arrival SeSe

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis (Pollaczek-Khinchin Formula)  M/M/1?  Service is exponential: E[S e ] = 1/μ  M/D/1?  Service is deterministic: E[S e ] = 1/(2μ)  D/D/1?  Arrival times and Service times deterministic:  M/G/1: potentially high delays even in low load!  (slide 14, case 2) E[S] = 20, E[S e ] = 32.5  3x worse than M/D/1 Variability causes queueing…and delays!

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis  Can you think of some examples?  Example 1: Cognitive Network  A Primary User and a Secondary user  Primary user has a usage profile => Free Slots? -Equally sized silence periods every T seconds -Large variance in usage period (bursty)  Time (low traffic) SU has to wait until channel is available?  Example 2: Supercomputer  A high traffic user with large traffic variability  A low traffic user  Time to wait for job to complete (for low traffic user)  Example 3: An M/G/1/2 queue  Only one customer allowed in queue (+ one in service)  Customers finding already someone in queue leaves 14

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis  LCFS (Last Come First Serve)  Anyone coming after me, will get service before me  Seems like a really bad idea  Random  Whenever a job is finished, pick up any job in the queue with equal probability  Seems better than LCFS, and better than FCFS  Turns out that all have the same delay!!  Equal to that of M/G/1/FCFS 15

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis 16  CPUs  time-sharing  All processes currently running, share the CPU time equally  Web Servers  time-sharing  HTTP requests served in parallel (to give TCP the impression of continuity)  When k jobs in system  each job served at rate μ/k μ Poisson(λ)

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis Q: M/M/1/PS performance? A: Exactly like M/M/1!!! Q: What about M/G/1/PS? A: Exactly like M/M/1 Key Result: Network of PS servers with general service has product form solution (like Jackson networks) 17