1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

Queueing Model 박희경.
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.
Queuing Systems Chapter 17.
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.
1 TCOM 501: Networking Theory & Fundamentals Lecture 7 February 25, 2003 Prof. Yannis A. Korilis.
Little’s Theorem Examples Courtesy of: Dr. Abdul Waheed (previous instructor at COE)
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.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
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?
Group members  Hamid Ullah Mian  Mirajuddin  Safi Ullah.

Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
Introduction to Queuing Theory
Introduction to Management Science
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  …
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
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.
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.
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
Lecture 14 – Queuing Networks Topics Description of Jackson networks Equations for computing internal arrival rates Examples: computation center, job shop.
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.
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
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.
Ali Movaghar Winter 2009 Modeling and Analysis of Computer Networks (Delay Models in Data Networks)
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
Queuing Theory and Traffic Analysis Based on Slides by Richard Martin.
CS352 - Introduction to Queuing Theory Rutgers University.
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
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.
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)
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.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 17 Queueing Theory.
Management of Waiting Lines Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
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.
QUEUING THEORY 1.  - means the number of arrivals per second   - service rate of a device  T - mean service time for each arrival   = ( ) Utilization,
Queuing Theory Simulation & Modeling.
Managerial Decision Making Chapter 13 Queuing Models.
Lecture 14 – Queuing Networks
Al-Imam Mohammad Ibn Saud University
Queuing Theory Queuing Theory.
Internet Queuing Delay Introduction
ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155
Queuing models Basic definitions, assumptions, and identities
Queuing models Basic definitions, assumptions, and identities
Lecture 14 – Queuing Networks
Queueing Theory 2008.
CSE 550 Computer Network Design
Waiting Line Models Waiting takes place in virtually every productive process or service. Since the time spent by people and things waiting in line is.
Presentation transcript:

1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson Process and its Properties  M/M/1, M/M/m, M/M/m/m, and M/G/1 Queuing System  Network of queues  Jackson Networks

2 Introduction  Each one of us has spent a great deal of time waiting in lines.  One example in the Cafeteria  Other examples of queues are  Printer queue  Packets arriving to a buffer  Calls waiting for answer by a technical support

3 What makes up a queue?  The System: A collection of objects under study  It is important to define the system boundaries  The Entities: The people, packets, or objects that enter the system requiring some kind of service  The Servers: The people, resources, or servers that perform the service required  The Queue: An accumulation of entities that have entered the system but have not been served

4 Queue Discipline  First Come First Served - FCFS  Most customer queues  Last Come First Served - LCFS  Packages, Elevator  Served in Random Order - SIRO  Entering Buses  Priority Service  Multi-processing on a computer  Emergency room

5 What factors effect system performance TThe Arrivals Process TThe time between any two successive arrivals DDoes this depend on the number of packets in the system? FFinite populations TThe Service Process TThe time taken to perform the service DDoes this depend on the number of packets in the system? TThe number of servers operating in system TThe Service Discipline SSystem Capacity PProcesses waiting + processes being served

6 Measuring System Performance TThe total time an “entity” spends in the system (Denoted by W) TThe time an “entity spends in the queue ( Denoted by W q ) TThe number of “entities” in the system ( Denoted by L ) TThe number of “entities” in the queue ( Denoted by L q ) TThe percentage of time the servers are busy (Utilization time) These quantities are variable over time

7 What is Queuing Theory?  Primary methodological framework for analyzing network delay  Often requires simplifying assumptions since realistic assumptions make meaningful analysis extremely difficult  Provide a basis for adequate delay approximation queue

8 Packet Delay  Packet delay is the sum of delays on each subnet link traversed by the packet  Link delay consists of:  Processing delay  Queuing delay  Transmission delay  Propagation delay node packet delay link delay

9 Link Delay Components (1)  Processing delay  Delay between the time the packet is correctly received at the head node of the link and the time the packet is assigned to an outgoing link queue for transmission head nodetail node outgoing link queue processing delay

10 Link Delay Components (2)  Queuing delay  Delay between the time the packet is assigned to a queue for transmission and the time it starts being transmitted head nodetail node outgoing link queue queuing delay

11 Link Delay Components (3)  Transmission delay  Delay between the times that the first and last bits of the packet are transmitted head nodetail node outgoing link queue transmission delay

12 Link Delay Components (4)  Propagation delay  Delay between the time the last bit is transmitted at the head node of the link and the time the last bit is received at the tail node head nodetail node outgoing link queue propagation delay

13 Queuing System (1)  Customers (= packets) arrive at random times to obtain service  Service time (= transmission delay) is L/C  L : Packet length in bits  C : Link transmission capacity in bits/sec queue customer (= packet) service (= packet transmission)

14 Queuing System (2)  Assume that we already know:  Customer arrival rate  Customer service rate  We want to know:  Average number of customers in the system  Average delay per customer customer arrival rate customer service rate average delay average # of customers

15 Little’s Theorem

16 Definition of Symbols (1)  p n = Steady-state probability of having n customers in the system  = Arrival rate (inverse of average interarrival time)   = Service rate (inverse of average service time)  N = Average number of customers in the system

17 Definition of Symbols (2)  N Q = Average number of customers waiting in queue  T = Average customer time in the system  W Q = Average customer waiting time in queue (does not include service time)

18 Little’s Theorem  N = Average number of customers  = Arrival rate  T = Average customer time in the system N = T  Hold for almost every queuing system that reaches a steady-state  Express the natural idea that crowded systems ( large N ) are associated with long customer delays ( large T ) and reversely

19 Application of Little’s Theorem (2)  Consider a window flow control system  W : Window size   : Packet arrival rate  T : Average packet delay  From Little’s Theorem W >= T  If T increases, must eventually decrease  If is limited due to congestion, increasing W merely serves to increase T

20 Standard Notation of Queuing Systems

21 Standard Notation of Queuing Systems (1) X/Y/Z/K  X indicates the nature of the arrival process  M : Memoryless (= Poisson process, exponentially distributed interarrival times)  G : General distribution of interarrival times  D : Deterministic interarrival times  Y indicates the probability distribution of the service times  M : Exponential distribution of service times  G : General distribution of service times  D : Deterministic distribution of service times

22 Standard Notation of Queuing Systems (2) X/Y/Z/K  Z indicates the number of servers  K (optional) indicates the limit on the number of customers in the system  Examples:  M/M/1, M/M/m, M/M/∞, M/M/m/m  M/G/1, G/G/1  M/D/1, M/D/1/m

23 Poisson Process and its Properties

24 The Poisson Arrival Model  A Poisson process is a sequence of events “randomly spaced in time”  Examples  Customers arriving to a bank  Packets arriving to a buffer  The rate λ of a Poisson process is the average number of events per unit time (over a long time)

25 Properties of Poisson Process (1)  Interarrival times  n are independent and exponentially distributed with parameter  The mean and variance of interarrival times  n are 1/ and 1/ ^2, respectively

26 Properties of Poisson Process (2)  If two or more independent Poisson process A 1,..., A k are merged into a single process A = A 1 + A A k, the process A is Poisson with a rate equal to the sum of the rates of its components A1A1 AiAi AkAk A independent Poisson processes Poisson process merge 1 i k

27 Properties of Poisson Process (3)  If a Poisson process A is split into two other processes A 1 and A 2 by randomly assigning each arrival to A 1 or A 2, processes A 1 and A 2 are Poisson A1A1 A2A2 A Poisson processes Poisson process split randomly 1 2 with probability p with probability (1-p)

28 M/M/1 Queuing System

29 M/M/1 Queuing System  A single queue with a single server  Customers arrive according to a Poisson process with rate  The probability distribution of the service time is exponential with mean 1/  Poisson arrival with arrival rate Exponentially distributed service time with service rate  single server infinite buffer

30 M/M/1 Queuing System: Results (1)  Utilization factor (proportion of time the server is busy)  Probability of n customers in the system  Average number of customers in the system

31 M/M/1 Queuing System: Results (2)  Average customer time in the system  Average number of customers in queue  Average waiting time in queue

32 M/M/m Queuing System

33 M/M/m Queuing System  A single queue with m servers  Customers arrive according to a Poisson process with rate  The probability distribution of the service time is exponential with mean 1/  Poisson arrival with arrival rate Exponentially distributed service time with rate  m servers infinite buffer 1 m

34 M/M/m Queuing System: Results (1)  Ratio of arrival rate to maximal system service rate  Probability of n customers in the system

35 M/M/m Queuing System: Results (2)  Probability that an arriving customer has to wait in queue (m customers or more in the system)  Average waiting time in queue of a customer  Average number of customers in queue

36 M/M/m Queuing System: Results (3)  Average customer time in the system  Average number of customers in the system

37 M/M/m/m Queuing System

38 M/M/m/m Queuing System  A single queue with m servers (buffer size m)  Customers arrive according to a Poisson process with rate  The probability distribution of the service time is exponential with mean 1/  Poisson arrival with arrival rate Exponentially distributed service time with rate  m servers buffer size m 1 m

39 M/M/m/m Queuing System: Results  Probability of m customers in the system  Probability that an arriving customer is lost

40 M/G/1 Queuing System

41 M/G/1 Queuing System  A single queue with a single server  Customers arrive according to a Poisson process with rate  The mean and second moment of the service time are 1/  and X 2 Poisson arrival with arrival rate Generally distributed service time with service rate  single server infinite buffer

42 M/G/1 Queuing System: Results (1)  Utilization factor  Mean residual service time

43 M/G/1 Queuing System: Results  Pollaczek-Khinchin formula

44 Network of Queues  Network is a model in which jobs departing from one queue arrive at another queue (or possibly the same queue)  Open Networks: all customers can leave the network  Closed Networks: No customers can leave the network

45 Jackson Networks  Jackson Network is named after James R. Jackson  It is the first significant development in the theory of networks of queues  Each node of the queueing network can be analyzed separately  The utilization of all of the queues is less than one

46 Open Jackson Networks  There are J queues  Customers arrive at queue l according to independent Poisson processes with rate  The service times in queue l are exponential with rates  Upon leaving queue l, each customer is sent to queue m with probability and leaves the network with probability  The routing decision is independent of the past evolution of the network

47 An Open Jackson Network i j k m

48 Conclusion  Queuing models provide qualitative insights on the performance of computer networks, and quantitative predictions of average packet delay  To obtain tractable queuing models for computer networks, it is frequently necessary to make simplifying assumptions  A more accurate alternative is simulation, which, however, can be slow, expensive, and lacking in insight