Network Design and Optimization Queueing Theory Overview Dr. Greg Bernstein Grotto Networking www.grotto-networking.com.

Slides:



Advertisements
Similar presentations
Random Variables and Probabilities Dr. Greg Bernstein Grotto Networking
Advertisements

Speaker: Yu-Fu Huang Advisor: Dr. Kai-Wei Ke Date : 2014, Mar. 17 A page-oriented WWW traffic model for wireless system simulations.
1 Chapter 8 Queueing models. 2 Delay and Queueing Main source of delay Transmission (e.g., n/R) Propagation (e.g., d/c) Retransmission (e.g., in ARQ)
1 ELEN 602 Lecture 8 Review of Last lecture –HDLC, PPP –TDM, FDM Today’s lecture –Wavelength Division Multiplexing –Statistical Multiplexing –Preliminary.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Performance analysis for high speed switches Lecture 6.
RAIDs Performance Prediction based on Fuzzy Queue Theory Carlos Campos Bracho ECE 510 Project Prof. Dr. Duncan Elliot.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Queuing and Transportation
Lecture 11 Queueing Models. 2 Queueing System  Queueing System:  A system in which items (or customers) arrive at a station, wait in a line (or queue),
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Queueing Network Model. Single Class Model Open - Infinite stream of arriving customers Closed - Finite population eg Intranet users Indistinguishable.
Module 2.0: Modeling of Network Components. Queueing theory  Basics : average number of packets 1/  : mean service time per packet [s] arriving per.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
CSE 550 Computer Network Design Dr. Mohammed H. Sqalli COE, KFUPM Spring 2012 (Term 112)
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?

Network Planning & Capacity Management Frank Yeong-Sung Lin ( 林永松 ) Department of Information Management National Taiwan University Taipei, Taiwan, R.O.C.
Introduction to Queuing Theory
Queueing Theory Queueing theory definitions (Bose) “the basic phenomenon of queueing arises whenever a shared facility needs to be accessed for.
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  …
A bit on Queueing Theory: M/M/1, M/G/1, GI/G/1 Yoni Nazarathy * EURANDOM, Eindhoven University of Technology, The Netherlands. (As of Dec 1: Swinburne.
Network Analysis A brief introduction on queues, delays, and tokens Lin Gu, Computer Networking: A Top Down Approach 6 th edition. Jim Kurose.
Introduction to Queuing Theory
Queuing models Basic definitions, assumptions, and identities Operational laws Little’s law Queuing networks and Jackson’s theorem The importance of think.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
MIT Fun queues for MIT The importance of queues When do queues appear? –Systems in which some serving entities provide some service in a shared.
Introduction to Operations Research
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
ACN: RED paper1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking, Vol.1, No. 4, (Aug.
Introduction to Queueing Theory
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
1 Queueing Theory Frank Y. S. Lin Information Management Dept. National Taiwan University
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.
TexPoint fonts used in EMF.
1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.
Modeling and Analysis of Computer Networks
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
Queuing Theory and Traffic Analysis Based on Slides by Richard Martin.
CS352 - Introduction to Queuing Theory Rutgers University.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
Dr. Anis Koubâa CS433 Modeling and Simulation
(C) J. M. Garrido1 Objects in a Simulation Model There are several objects in a simulation model The activate objects are instances of the classes that.
1 Queuing Delay and Queuing Analysis. RECALL: Delays in Packet Switched (e.g. IP) Networks End-to-end delay (simplified) = End-to-end delay (simplified)
Introduction Definition M/M queues M/M/1 M/M/S M/M/infinity M/M/S/K.
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.
Chap 2 Network Analysis and Queueing Theory 1. Two approaches to network design 1- “Build first, worry later” approach - More ad hoc, less systematic.
Queueing Fundamentals for Network Design Application ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Queueing Theory. The study of queues – why they form, how they can be evaluated, and how they can be optimized. Building blocks – arrival process and.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
Al-Imam Mohammad Ibn Saud University
Queueing Theory What is a queue? Examples of queues:
Internet Queuing Delay Introduction
TexPoint fonts used in EMF.
Queueing Theory 2008.
Carey Williamson Department of Computer Science University of Calgary
Network Planning & Capacity Management
CSE 550 Computer Network Design
Network Planning & Capacity Management
Network Planning & Capacity Management
Course Description Queuing Analysis This queuing course
Presentation transcript:

Network Design and Optimization Queueing Theory Overview Dr. Greg Bernstein Grotto Networking

Outline Why Queueing Theory? – Vying for limited resources over time Standard Model and Notational – Block diagram: arrivals, waiting area, servers, population, queueing discipline – Kendall’s notation Examples – Single priority IP router output port buffer (delay) – Limited capacity video streaming server (blocking) – TDM/WDM path request Stochastic Processes Formulas and Results for some key Systems: – M/M/1 Basic queueing model – M/M/1/k Finite Buffer for output port – M/M/m/m m resources available – blocking or denial of service How to handle more general cases – Approximations – Simulations

References Zukerman, “Introduction to Queueing Theory and Stochastic Teletraffic Models” – July – Advanced (suitable for a whole grad course or two) – I’ll denote this by “Zukerman” – We’ll be picking and choosing a small fraction of the material, note that we don’t have time to go through the derivations. We will, however, verify some results via Discrete Event Simulation in Python. Wikipedia…

Our Motivation for using Queueing Theory Interested in utilization of limited system resources over time Quality of Service (QoS) received by system users can be dependent on – Waiting time to get service – Total time in system – Immediate availability of system resources We are dealing with some kind of uncertainty in the system – Random packet arrival times, Random service requests, random packet sizes, random resource use times, etc…

General “System” Queueing Discipline Population that generates requests, packets or other stuff that needs to use the systems resources Arrival process for stuff entering the system (random or deterministic) Waiting space, the queue One or more servers with random or deterministic processing times

Kendall’s Notation Used to indicate the type of queueing model – Zukerman section 3.1 – A/S/c/K/N/D – A denotes the time between arrivals (arrival process) – S The service time distribution – c the number of servers – K the capacity of the system (including those in service) – N the size of the population of jobs to be served – D and queueing discipline – When the final three parameters are not specified (e.g. M/M/1 queue), it is assumed K = ∞, N = ∞ and D = FIFO. M/M/1 queueFIFO

Example I Output Port on an IP router – General random IP packet arrivals – Constant bit rate output port, but random packet length leads to General random service times – Each “port” acts as a server (so one server) – Large but finite output buffer size – Assume FIFO and infinite population – Model: G/G/1/N queueing system Quantities of Interest – Packet delay: average, variables, probabilities – Packet loss probabilities (due to queue overflow)

Example II Access to a cell base station from handset – Fixed number of available access slots (frequency and time slots) “servers” – No waiting: call dropped (on handover) or connection blocked. – General random arrival process. What would influence this? – General random service time. What would influence this? Model: G/G/m/m – Where m is the total number of available timeslot*frequencies (servers) and there is only m “spaces” in the system for customers. – Interested in call dropping and blocking statistics

Example III

Stochastic Processes Zukerman section 2.1

Types of Stochastic Processes Zukerman section 2.1

Counting Process Definition – A point process can be defined by its counting process {N(t), t ≥ 0}, where N(t) is the number of arrivals with [0, t). A counting process {N(t)} has the following properties: N(t) ≥ 0, N(t) is integer, if s > t, then N(s) ≥ N(t) and N(s) − N(t) is the number of occurrences within (t, s]. Comment – Note that N(t) is not an independent process because for example, if t 2 > t 1 then N(t 2 ) is dependent on the number of arrivals in [0, t 1 ), namely, N(t 1 ). Zukerman section 2.2

Example: Bit Error on 10Gbps link Zukerman section 2.2.1

Poisson Process Zukerman section 2.2.2

Movie requests to a video server

M/M/1 Queue Definition Formal Definition – An M/M/1 queue is a stochastic process whose state space is the set {0,1,2,3,...} where the value corresponds to the number of customers in the system, including any currently in service. – Arrivals occur at rate λ according to a Poisson process and move the process from state i to i + 1. – Service times have an exponential distribution with parameter μ in the M/M/1 queue. – FIFO queueing discipline; infinite buffer size. Arrivals Departures

M/M/1/N Finite buffers and loss

M/M/k/k Queue

M/M/k/k Queue: Blocking

Practicalities Arrival processes – When is exponential inter-arrival times a good approximation? When not? Service times – Is exponential service time accurate for packet switch output queue service time? Simple formulas don’t generally exist so we use: – Approximations/limits Where do we find these? – Simulations Simple models like M/M/1, M/M/1/N, M/M/k/k very useful in checking simulations and understanding convergence time! But what to use in simulations?

How to Shop for Results I Literature Search – Google, Google Scholar, ACM Digital Library, IEEE Explore Evaluate and Filter by – Title (needs to sound somewhat relevant) – Abstract Main way for you to evaluate whether you spend any more time reading the paper.

How to Shop for Results II Other considerations before reviewing rest of paper – Journal or conference “quality” – Author or Author institution “reputation” – Specificity of result If appropriate go to “Introduction” – Should provide a terse context/background on result – Should discuss related work Can be a good source of more relevant papers via the reference list.

How to Shop for Results III Check Reference List – Too few may indicate a problem with paper. Though some journals have strict limits on numbers. Read the “Conclusion” – Should spell out what they accomplished. If all the previous check out – Read the “body” of the paper – This may involve extra work such as looking up concepts and such which you may be unfamiliar

Current Literature Example M. A. Arfeen, K. Pawlikowski, D. McNickle, and A. Willig, “The role of the Weibull distribution in Internet traffic modeling,” in Teletraffic Congress (ITC), th International, 2013, pp. 1–8.

Review Abstract New concepts: Weibull distribution; sessions, flows, and packet inter-arrival times; Heavy tail; access through core models.

Paper Sections Introduction Related Work Theory Problem Statement and Challenges Description of Data Set Access to Core Traffic Transformation Sessions to Flows to Packets Conclusion References Introductory material including key concepts (long range dependence), related work, theoretical background, detailed problem statement Main body of paper Provides a nice overview of advanced notions: Burstiness, Pareto and Weibull distributions, long tails, self similarity, limit theorems…