Network Analysis A brief introduction on queues, delays, and tokens Lin Gu, Computer Networking: A Top Down Approach 6 th edition. Jim Kurose.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
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.
Queueing Model 박희경.
System Performance & Scalability i206 Fall 2010 John Chuang.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
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),
Data Communication and Networks Lecture 13 Performance December 9, 2004 Joseph Conron Computer Science Department New York University
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.
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?
Location Models For Airline Hubs Behaving as M/D/C Queues By: Shuxing Cheng Yi-Chieh Han Emile White.
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
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  …
Queueing Theory [Bose] “The basic phenomenon of queueing arises whenever a shared facility needs to be accessed for service by a large number of jobs or.
Introduction to Queuing Theory
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
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.
Management of Waiting Lines McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
 Birth Death Processes  M/M/1 Queue  M/M/m Queue  M/M/m/B Queue with Finite Buffers  Results for other Queueing systems 2.
Introduction to Operations Research
Lecture 10: Queueing Theory. Queueing Analysis Jobs serviced by the system resources Jobs wait in a queue to use a busy server queueserver.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
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.
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.
Lecture 3: 1 Introduction to Queuing Theory More interested in long term, steady state than in startup => Arrivals = Departures Little’s Law: Mean number.
M/M/1 queue λn = λ, (n >=0); μn = μ (n>=1) λ μ λ: arrival rate
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.
CSCI1600: Embedded and Real Time Software Lecture 19: Queuing Theory Steven Reiss, Fall 2015.
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
Chapter 6 Queueing Models
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.
CDA6530: Performance Models of Computers and Networks Chapter 8: Statistical Simulation ---- Discrete Event Simulation (DES) TexPoint fonts used in EMF.
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.
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 BIS 3106: Business Process Management (BPM) Lecture Nine: Quantitative Process Analysis (2) Makerere University School of Computing and Informatics Technology.
Queuing Theory Simulation & Modeling.
Tel Hai Academic College Department of Computer Science Prof. Reuven Aviv Markov Models for data flow In Computer Networks Resource: Fayez Gebali, Analysis.
QoS & Queuing Theory CS352.
“QUEUING THEORY”.
Lecture 2.7. Queuing Theory
Al-Imam Mohammad Ibn Saud University
Queueing Theory What is a queue? Examples of queues:
Internet Queuing Delay Introduction
Queuing models Basic definitions, assumptions, and identities
Queuing models Basic definitions, assumptions, and identities
TexPoint fonts used in EMF.
Variability 8/24/04 Paul A. Jensen
Queueing Theory 2008.
Course Description Queuing Analysis This queuing course
Presentation transcript:

Network Analysis A brief introduction on queues, delays, and tokens Lin Gu, Computer Networking: A Top Down Approach 6 th edition. Jim Kurose and Keith Ross,. Part of the slides are adapted from course companion materials.

Queueing theory  How long is the queue? How much time will I wait?  A branch of applied probability theory  Applications in  Telecommunications  Traffic control  Predicting computer performance  Health services (e.g. control of hospital bed assignments)  Airport traffic, airline ticket sales  Layout of manufacturing systems.  Communication networks  Why do we want to know the characteristics of queues?

Queues and queueing  Oct. 16, 2010: 1.03 million visitors in World Expo., Shanghai  If you are one of them, you wonder  How many people ahead of me?  How soon can I get into the pavilion? 8 hours? 12 hours?  Ultimately, organizer starts to persuade visitors to leave (drop packets)  Every second, millions of packets flow into a switch/router  Would you be able to tell  How long is the queue?  How much is the delay?  Would you like to drop packets?

Queuing theory for studying networks 4  View network as collections of queues  FIFO data-structures  Queuing theory provides probabilistic analysis of these queues  Examples:  Average length  Average waiting time  Probability queue is at a certain length  Probability a packet will be lost

Little’s Law 5  Little’s Law: Mean number tasks in system = mean arrival rate x mean response time  Observed before, Little was first to prove  Applies to any system in equilibrium, as long as nothing in black box is creating or destroying tasks ArrivalsDepartures System

Proving Little’s Law 6 J = Shaded area = 9 Same in all cases! Packet # Time # in System Time Time in System Packet # Arrivals Departures

Definitions 7  J: “Area” from previous slide  N: Number of jobs (packets)  T: Total time  : Average arrival rate  N/T  W: Average time job is in the system  = J/N  L: Average number of jobs in the system  = J/T

The Little’s Law # in System (L) Time (T) Time in System (W) Packet # (N) =

Model Queuing System 9  Use Queuing models to  Describe the behavior of queuing systems  Evaluate system performance Server System Queuing System Queue Server Queuing System

Characteristics of a queueing model  Arrival process: the sequence of requests for service, often specified in terms of inter-arrival time  The distribution that determines how the tasks arrive in the system.  Service mechanism: # of servers and service time  The distribution that determines the task processing time  Queue discipline: disposition of blocked customers (customers who find all servers busy)

Kendall notation  A/B/m/N –S  A – distribution of inter-arrival time  B – distribution of service time  m – number of servers  N – max capacity ( ∞ if omitted)  S – queue discipline (FIFO if omitted)  Distributions  M: stands for "Markovian", implying exponential distribution for service times or inter-arrival times.  D: Deterministic (e.g. fixed constant)  E k : Erlang with parameter k  H k : Hyperexponential with parameter k  G: General (anything)

Kendall Notation Examples 12  M/M/1:  Poisson arrivals and exponential service, 1 server, infinite capacity (also assumed infinite population), FCFS (FIFO)  The simplest ‘realistic’ queue  M/M/m  Same, but m servers  G/G/3/20  General arrival and service distributions, 3 servers, 17 queue slots (20-3)

Poisson Process 13 For a Poisson process with average arrival rate, the probability of seeing n arrivals in time interval t

Poisson process & exponential distribution 14  Inter-arrival time t (time between arrivals) in a Poisson process follows exponential distribution with parameter

Analysis of M/M/1 queue 15  Given: : Arrival rate of jobs (e.g., packets on input link)  : Service rate of the server (e.g., packets on output link)  Solve:  L: average number of jobs in the queuing system  L q : average number of jobs in the queue  W: average waiting time in whole system  W q : average waiting time in the queue

M/M/1 queue model 16  WqWq W L LqLq

Solving queuing systems 17  4 unknowns: L, L q W, W q  Relationships:  L= W  L q = Wq (steady-state argument)  W = W q + (1/  )  If we know L or Lq, we can find the others  Finding L can be hard.  In general:  : the probability that the number of items in the system is n  Can we find a closed form expression of and, given only and  ?

Equilibrium conditions 18 n+1nn-1    Define to be the probability of having n items in the system at time t

Equilibrium conditions 19 n+1nn-1   

Solving for L 20

Solving W, W q and L q 21

Response Time vs. Utilization 22

Summary of M/M/1 23  The simplest ‘realistic’ queue: Poisson arrivals and exponential service, 1 server, infinite capacity (also assumed infinite population), FCFS (FIFO)  Variables: : Arrival rate of jobs (packets on input link)  : Service rate of the server (output link) L: average number of jobs in the queuing system L q : average number of jobs in the queue W: average waiting time in whole system W q : average waiting time in the queue

Example 24  On a network gateway, measurements show that the packets arrive at a mean rate of 125 packets per second (pps) and the gateway takes about 2 ms to forward a packet. Assuming an M/M/1 model, what is the probability of buffer overflow if the gateway had only 13 buffer units? How many buffer units are needed to keep packet loss below one packet per million?  mean arrival rate (): 125 packets/s  mean response time (1/): 2 ms  Assuming M/M/1:  What is the gateway’s utilization?  What is the probability of n packets queued in the gateway?  What is the mean number of packets queued in the gateway?  The number of buffers so P(overflow) is <10 -6 ?

Example 25  Service rate μ =  Gateway utilization ρ = λ / μ =  Prob. of n packets in system (gateway) =  Mean number of packets in system (gateway) = 1/0.002=

Example 26  Probability of buffer overflow with 13 buffer units: = P(more than 13 packets in gateway) = ρ 14 = = 3.73x10 -9 = 3.73 packets per billion packets  To limit the probability of loss to less than :

Policing Mechanisms Token Bucket: limit input to specified Burst Size and Average Rate.  Bucket can hold b tokens  Tokens generated at rate r token/sec unless bucket full  Over interval of length t: number of packets admitted less than or equal to (r t + b).  At most b packets can be transmitted in a burst (within a short period of time).

Policing Mechanisms (more)  token bucket, WFQ combine to provide guaranteed upper bound on delay, i.e., QoS guarantee! WFQ token rate, r bucket size, b per-flow rate, R D = b/R max arriving traffic

Appendix CS352 Fall,200529

Example application of queuing theory 30  Which one is better, multiple-line or single-queue?  We can prove using queuing theory that : throughput improves increases with one queue instead of separate lines