Docsity

Session 10 - Performance in Queuing Systems, Exercises of Data Communication Systems and Computer Networks

Partial preview of the text

Download Session 10 - Performance in Queuing Systems and more Exercises Data Communication Systems and Computer Networks in PDF only on Docsity!

Data Communication & Networks

G22.2262-

Session 9 - Main Theme

Performance in Queuing Systems

Dr. Jean-Claude Franchitti

New York University

Computer Science Department

Courant Institute of Mathematical Sciences

Agenda

 Planning for Performance  Queuing Analysis  Queuing System Structure  Queuing System Variables  Queuing Models and Examples  References  Conclusion

Planning for Performance

 When building Server apps, what can we do to

insure acceptable performance?

 How do we answer questions like these:

 What happens to response time when utilization goes up?  How many concurrent requests can be handled before response time is unacceptable?  What is the effect of adding (or removing) another server?

Planning for Performance

 A number of approaches are possible:

  1. Do an after-the-fact analysis based on actual values (“let’s build something and see how it works!”) 2. Make a simple projection by scaling up from existing experience to the expected future environment (“We expect double the number of users, so let’s double the processor speed and memory!”) 3. Develop an analytic model based on queuing theory (subject of this lecture) 4. Program and run a simulation model (this effort could be as big as the entire development effort!)

Part II

Queuing Analysis

Queuing Analysis: Basic Entities

 Customers (tasks, requests, etc)

 Individual requests for service (e.g. a request for I/O, or a request by a customer in a bank, etc.)

 Queues

 Waiting areas where requests for service wait for server(s) (e.g. the ready queue of processes waiting for CPU, or the waiting room at a doctor's office).

 Servers

 Entities or resources that are capable of satisfying the service requests (e.g. CPU, disk, bank teller, etc.)

Simplifying Assumptions

 Population

 Assume that Requests for service are generated from an infinite population. WHY? So that the arrival of a request to the system does not influence "future" arrivals

 Queue Size

 Assume that queues have infinite capacity (unrealistic for many applications, but assume this for now)

 Queue Service discipline is FCFS

Part III

Queuing System’s Structure

Single Queue, Multiple Servers

Multiple Single-Server Queues

Queuing System Variables

 If the average time it takes a server to service a request is Ts , then it follows that the average rate of service (if the server has an infinite supply of requests to work on) would be: μ=1/Ts  The utilization of the system, which is the ratio between the rate of arrivals and the rate of service is: ρ= λ/μ  Obviously, in the steady state, the rate at which requests are queued cannot exceed the rate at which the server is able to serve them! Thus, we have: λ < μ ρ < 1

Part V

Queuing Models and Examples

Notation for Queuing Systems

A = the interarrival time distribution B = the service time distribution c = the number of servers d = the queue size limit

A/B/c/d

M for Markovian (exponential) distribution

D for Deterministic distribution

G for General (arbitrary) distribution

:Where A and B can be

omitted if infinite

The M/M/1 System

Poisson Process

output

queue

Exponential server