Computer Systems Modelling Sam Haines Clare College, University of Cambridge 1 st March 2015.

Slides:



Advertisements
Similar presentations
Lecture 5 This lecture is about: Introduction to Queuing Theory Queuing Theory Notation Bertsekas/Gallager: Section 3.3 Kleinrock (Book I) Basics of Markov.
Advertisements

Introduction to Queuing Theory
Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
Continuous-Time Markov Chains Nur Aini Masruroh. LOGO Introduction  A continuous-time Markov chain is a stochastic process having the Markovian property.
Probability and Statistics with Reliability, Queuing and Computer Science Applications: Chapter 6 on Stochastic Processes Kishor S. Trivedi Visiting Professor.
Lecture 10 – Introduction to Probability Topics Events, sample space, random variables Examples Probability distribution function Conditional probabilities.
TCOM 501: Networking Theory & Fundamentals
Stochastic Processes Dr. Nur Aini Masruroh. Stochastic process X(t) is the state of the process (measurable characteristic of interest) at time t the.
Queueing Theory: Recap
Queueing Model 박희경.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
#11 QUEUEING THEORY Systems Fall 2000 Instructor: Peter M. Hahn
1 Review of Probability Theory [Source: Stanford University]
Basic queueing system components Arrival patterns What is common to these arrival patterns? What is different? How can we describe/specify an arrival.
Probability theory 2011 Outline of lecture 7 The Poisson process  Definitions  Restarted Poisson processes  Conditioning in Poisson processes  Thinning.
1 TCOM 501: Networking Theory & Fundamentals Lectures 9 & 10 M/G/1 Queue Prof. Yannis A. Korilis.
CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Instructor Longin Jan Latecki C12: The Poisson process.
Lecture 4 Mathematical and Statistical Models in Simulation.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?

Chapter 4. Continuous Probability Distributions
CMPE 252A: Computer Networks Review Set:
Lecture 10 – Introduction to Probability Topics Events, sample space, random variables Examples Probability distribution function Conditional probabilities.
Exponential Distribution & Poisson Process
A Review of Probability Models
1 Exponential Distribution & Poisson Process Memorylessness & other exponential distribution properties; Poisson process and compound P.P.’s.
1 Performance Evaluation of Computer Systems By Behzad Akbari Tarbiat Modares University Spring 2009 Introduction to Probabilities: Discrete Random Variables.
Introduction to Queuing Theory
Eurecom, Sophia-Antipolis Thrasyvoulos Spyropoulos / Introduction to Continuous-Time Markov Chains and Queueing Theory.
The Poisson Process. A stochastic process { N ( t ), t ≥ 0} is said to be a counting process if N ( t ) represents the total number of “events” that occur.
Exponential and Chi-Square Random Variables
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Generalized Semi-Markov Processes (GSMP)
Winter 2006EE384x1 Review of Probability Theory Review Session 1 EE384X.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
Exponential Distribution
Lecture 10: Queueing Theory. Queueing Analysis Jobs serviced by the system resources Jobs wait in a queue to use a busy server queueserver.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
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.
Modeling and Analysis of Computer Networks
Why Wait?!? Bryan Gorney Joe Walker Dave Mertz Josh Staidl Matt Boche.
Generalized Semi- Markov Processes (GSMP). Summary Some Definitions The Poisson Process Properties of the Poisson Process  Interarrival times  Memoryless.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
The final exam solutions. Part I, #1, Central limit theorem Let X1,X2, …, Xn be a sequence of i.i.d. random variables each having mean μ and variance.
Winter 2004EE384x1 Poisson Process Review Session 2 EE384X.
CDA6530: Performance Models of Computers and Networks Chapter 3: Review of Practical Stochastic Processes.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
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.
CS 4594 Broadband Intro to Queuing Theory. Kendall Notation Kendall notation: [Kendal 1951] A/B/c/k/m/Z A = arrival probability distribution (most often.
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.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics B: Michael Baron. Probability and Statistics for Computer Scientists,
Random variables (r.v.) Random variable
The Exponential and Gamma Distributions
Exponential Distribution & Poisson Process
The Poisson Process.
Basic Modeling Components
Pertemuan ke-7 s/d ke-10 (minggu ke-4 dan ke-5)
Internet Queuing Delay Introduction
Lecture on Markov Chain
Multinomial Distribution
CIS 2033 based on Dekking et al
Course Description Queuing Analysis This queuing course
CIS 2033 based on Dekking et al
Lecture 5 This lecture is about: Introduction to Queuing Theory
VIRTUE MARYLEE MUGURACHANI QUEING THEORY BIRTH and DEATH.
Presentation transcript:

Computer Systems Modelling Sam Haines Clare College, University of Cambridge 1 st March 2015

About the Course 12lectures 3supervisions 2exam questions (Papers 8 and 9)

Course Overview Introduction to modelling Simulation techniques – Random number generation – Monte Carlo simulation techniques – Statistical analysis of results from simulation and measurements Queueing theory – Applications of Markov Chains – Single/multiple servers – Queues with finite/infinite buffers – Queueing networks

Why model? Fundamental design decisions to help quantify a cost/benefit analysis A system is performing poorly – which problem should be tackled first? How long will a database request wait for before receiving CPU service? What is the utilization of a resource?

Deciding on the type of model Techniques Measurement Simulation Queueing theory Operational analysis (not covered) How to choose Stage of development Time available Resources Desired accuracy Credibility

Little’s Result Relates number of jobs in a system with the time they spend there

Little’s Result (contd.) λ(t) = α(t)/tAverage arrival rate T(t) = γ(t)/α(t)System time per customer N(t) = γ(t)/tAvg num customers in system N(t) = λ(t)T(t) In the limit t →∞:N = λ T

Recap from MMfCS Coefficient of variation: C x = Std Dev / Mean Exponential distribution f x (x) = λ e −λ x for x > 0, 0 otherwise

Memoryless Property Exponential distribution is the only distribution with the Memoryless property P(X > t+s | X > t) = P(X > s) Intuitively, its used to model the inter-event times in which the time until the next event does not depend on the time that has already elapsed If inter-event times are IID RVs with Exp(λ), then λ is the mean event rate

Poisson Process A process of events occuring at random points of time, let N(t) be the number of events in the interval [0,t]. A Poisson process at rate λ is: N(0) = 0 # of events in disjoint intervals is independent

Poisson Process (contd.) Consider number of events N(t) in interval t Divide into n non-overlapping subintervals each of leangth h = t/n Each interval contains single event with probability λt/n Number of such intervals follows Binomial distribution, parameters n and p = λt/n As N →∞, the distribution is a Poisson RV with parameter λt

Poisson Process (contd.) For a Poisson process, let X n be the time between the (n-1) st and n th events The sequence X 1, X 2,... gives the sequence of inter-event times P(X 1 > t) = P(N(t) = 0) = e -λt So X 1 (and hence the inter-event times) are random variables with Exp(λ)

Exam Question Structure Typically broken down into many smaller sections, each worth between 2 and 5 marks Typically one question each on: – Queueing – Simulation

Any Questions ?

Pub?