Queuing Systems. 1 Lecturer: Hawraa Sh. Modeling & Simulation- Lecture -4-21/10/2012

Similar documents
Introduction to Queuing Systems

Lecture 5: Performance Analysis I

Fundamentals of Queueing Models

UNIT 4: QUEUEING MODELS

Queuing Networks Modeling Virtual Laboratory

Stochastic Processing Networks: What, Why and How? Ruth J. Williams University of California, San Diego

Queuing Networks. Renato Lo Cigno. Simulation and Performance Evaluation Queuing Networks - Renato Lo Cigno 1

Teletraffic theory I: Queuing theory

Using Queuing theory the performance measures of cloud with infinite servers

TELCOM 2130 Queueing Theory. David Tipper Associate Professor Graduate Telecommunications and Networking Program. University of Pittsburgh

Introduction to Performance Engineering and Modeling

Advanced Internet Technologies

MODELS FOR QUEUING SYSTEMS

Cover sheet for Assignment 3

DDSS: Dynamic Dedicated Servers Scheduling for Multi Priority Level Classes in Cloud Computing

QUEUING SYSTEM. Yetunde Folajimi, PhD

CPSC 531: System Modeling and Simulation. Carey Williamson Department of Computer Science University of Calgary Fall 2017

Queueing Networks. Lund University /

Calculating Call Blocking and Utilization for Communication Satellites that Use Dynamic Resource Allocation

Numerical approach estimate

Queueing Models. System Capacity the number of customers who are allowed to be in the system at any given time.

Modeling and Simulation (An Introduction)

Lecture 14: M/G/1 Queueing System with Priority

Model suitable for virtual circuit networks

EP2200 Queueing theory and teletraffic systems

Teletraffic theory (for beginners)

Read Chapter 4 of Kurose-Ross

Discrete Event (time) Simulation

Introduction to Performance Engineering and Modeling

ROORKEE COLLEGE OF ENGINEERING

Calculating Call Blocking, Preemption Probabilities, and Bandwidth Utilization for Satellite Communication Systems.

Äriprotsesside modelleerimine ja automatiseerimine Loeng 8 Järjekorrateooria ja äriprotsessid. Enn Õunapuu

Introduction to the course

Module 7:Application of stochastic processes in queueing theory Lecture 29:Application of stochastic processes in Queueing Theory

Network Performance Analysis

Motivation: Wireless Packet-Based Transport

048866: Packet Switch Architectures

iscrete-event System Simulation of Queues with Spreadsheets Combined with Simple VBA Code: A Teaching Case

Chapter 6 Queuing Disciplines. Networking CS 3470, Section 1

Simulation Models for Manufacturing Systems

Performance of Cloud Computing Centers with Multiple Priority Classes

MODELING OF SMART GRID TRAFFICS USING NON- PREEMPTIVE PRIORITY QUEUES

Traffic Modeling of Communication Networks

EP2200 Queueing theory and teletraffic systems

PARALLEL ALGORITHMS FOR IP SWITCHERS/ROUTERS

Lecture 8: Using Mathematica to Simulate Markov Processes. Pasi Lassila Department of Communications and Networking

Äriprotsesside modelleerimine ja automatiseerimine Loeng 9 Järjekorrateooria ja äriprotsessid. Enn Õunapuu

Multidimensional Queueing Models in Telecommunication Networks

nalysis, Control, and Design of Stochastic Flow Systems Limited Storage

Chapter 9. Uniprocessor Scheduling

A Comparative Approach to Reduce the Waiting Time Using Queuing Theory in Cloud Computing Environment

Connection-Level Scheduling in Wireless Networks Using Only MAC-Layer Information

An algorithm for Performance Analysis of Single-Source Acyclic graphs

Why is scheduling so difficult?

ON NEW STRATEGY FOR PRIORITISING THE SELECTED FLOW IN QUEUING SYSTEM

Flexible Servers in Understaffed Tandem Lines

Application of QNA to analyze the Queueing Network Mobility Model of MANET

Process- Concept &Process Scheduling OPERATING SYSTEMS

Performance Evaluation of Scheduling Mechanisms for Broadband Networks

Method for Automatic Construction of Queuing System Models

Network Traffic Characterisation

SERVICE STRATEGIES IN TANDEM SERVER NETWORKS WITH FEEDBACK AND BLOCKING

BUFFER STOCKS IN KANBAN CONTROLLED (TRADITIONAL) UNSATURATED MULTI-STAGE PRODUCTION SYSTEM

M/G/c/K PERFORMANCE MODELS

Introduction: Two motivating examples for the analytical approach

INTEGRATION of data communications services into wireless

Volume 5, No. 2, May -June, 2013, ISSN

CNCL: Contents. Extra material (1)

Resource Allocation and Queuing Theory

Performance Study of Interweave Spectrum Sharing Method in Cognitive Radio

Web application performance

Markov Chains and Multiaccess Protocols: An. Introduction

Traffic Analysis and Modeling of Real World Video Encoders

Review. EECS 252 Graduate Computer Architecture. Lec 18 Storage. Introduction to Queueing Theory. Deriving Little s Law

Data Network Protocol Analysis & Simulation

TSIN01 Information Networks Lecture 3

Lecture 9 November 12, Wireless Access. Graduate course in Communications Engineering. University of Rome La Sapienza. Rome, Italy

An Efficient Queuing Model for Resource Sharing in Cloud Computing

Outline. Application examples

Simultaneous Simulation of Alternative Configurations of Markovian System Models

GBA 334 Module 6 Lecture Notes Networks and Queues. These notes will cover network models and queuing theory.

Program for Modelling Queuing Systems in Transport

ETSN01 Exam Solutions

Optimizing the Queueing System of a Fast Food Restaurant: A Case Study of Ostrich Bakery

SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM

Priority Traffic CSCD 433/533. Advanced Networks Spring Lecture 21 Congestion Control and Queuing Strategies

A Novel Scheduling and Queue Management Scheme for Multi-band Mobile Routers

Optical Packet Switching

Simulation Studies of a Multi-priority Dual Queue (MPDQ) with Preemptive and Non-preemptive Scheduling

On the application of forking nodes to product-form queueing networks

Time Shifting Bottlenecks in Manufacturing

The A* traffic process in a queue with feedback

FOURTH EDITION. Discrete-Event System Simulation

3. Examples. Contents. Classical model for telephone traffic (1) Classical model for telephone traffic (2)

Temporary Call-back Telephone Number Service

ETSN01 Exam. August 22nd am 1pm. Clearly label each page you hand in with your name and the page number in the bottom right hand corner.

Simulation Studies of the Basic Packet Routing Problem

Congestion Control 3/16/09

Modeling Complex Systems Using SimEvents. Giovanni Mancini SimEvents Product Marketing Manager The MathWorks 2006 The MathWorks, Inc.

Table 9.1 Types of Scheduling

Transcription:

Queuing Systems Queuing theory establishes a powerful tool in modeling and performance analysis of many complex systems, such as computer networks, telecommunication systems, call centers, manufacturing systems and service systems. Many real systems can be modeled as networks of queues, such as the waiting line in a bank, a bus stop, waiting line in airport, material flow in factory, and signal flow in network. So, each of these simple systems consists of three major components: Entities: Something that changes the state of the system. In many cases, particularly those involving service systems, the entity may be a person. In the customer service center, the entities are the customers. Entities do not necessarily have to be people; they can also be objects. Similarly, in the factory example, the entities are components waiting to be machined; entities can be signals waiting to be received in communication networks. Queues: Queues are the simulation term for lines. Entities generally wait in a queue until it is their turn to be processed. Resources: Processer or server that serves the entities those are in the queue. Example factory machines, computer processer, nodes in communication networks. The relationships among these components are illustrated in figure (1). Queue or Buffer Arrival Departure Entities being served Figure (1) Basic Queuing system component Queues can be categorized to simple queue, or it can be chained to make a network of queues; thus the departure from one queue enters to the next queue. Queuing network can be opened network or closed network. Figure (2) shows the opened network, while figure (3) shows the closed network representation. 1 Lecturer: Hawraa Sh.

Arrival Queues Departure Figure (2) Opened Queuing Network Arrival Queues Figure (3) Closed Queuing Network Departure Basic Queuing System Concepts Each queuing system is described by characters: A / B /C / X / Y / Z, these characters called Kendall s notation: The first characteristic (A); specifies the arrival distribution (or the time between two successive arrivals). The following standard abbreviations are used: M = Exponential, D = Deterministic, = Erlang type k, GI = General Independent. The second characteristic (B); specifies the service probability distribution. M = Exponential, D = Deterministic, = Erlang type k, GI = General Independent. The third characteristic (C); specifies the number of parallel identical servers in the systems, denoted by 1 of theirs only one server and by C if theirs multiple server. The fourth characteristic (X); describes the queue length or the number of entities allowable to enter the system. The fifth characteristic (Y); specifies the queue strategy. A queue strategy determines the discipline for ordering Entities in a queue. It defines the order in which they are served and the way in which resources are divided between customers. Here are some of these strategies: 2 Lecturer: Hawraa Sh.

First In First Out (FIFO). Last In First Out (LIFO). Priority Queue. The shortest is served first. Random Service. Round Robin. Calling source for entities asking for service (Z): it considers being finite if these entities coming from finite population or it can be infinite of the population they are come from is infinite. Performance Measurements One approach to Performance measurement is to obtain the data by observing the events and activities on an existing system. Mean response time, the total service time, the workflow, the numbers of completed or aborted service requests, the total waiting time, the queue length, the number of transactions completed per unit time, the ratio of blocked connection requests, and The rollback completion time are the most important performance measures. When analyzing a system with a single queue, the most common performance measures are obtained as follows: Arrival distribution (λ): or the average time between arrivals (Interarrival times = ). This distribution considers being the first statistical pointer that helped to determine the model type. Service rate ( ): number of departing entines per unit time. Service time is average between departures (Interdeparture time = ). utilization (ρ): or Traffic intensity describes the fraction of time that the server is busy, or the mean fraction of active servers, in the case of multiple servers. Queue length ( L ) : is the number of Entities in the system including both the entities waiting for the service and receiving it. Waiting time ( W ) : is the total time that the Entities spend in the system waiting to be served. : The probability of a given number of Entities i in the system. 3 Lecturer: Hawraa Sh.

Little's Formula Little's formula is the most used formula in performance evaluations. It is important because it can be used with most queuing systems and applies to both single server systems and network of servers as well. It state that,, Where N is the average number of entities in the system, is the arrival rate to the system, T is the average time spent in the system, W is the average waiting time in whole system, is the average waiting time in the queue, L is the average number in the system, and is the average number in the queue. Markov Chains The most powerful analytic techniques for evaluating complex system performance are based on the theory of Markov chains. A random process is called a Markov Process if, conditional on the current state of the process, its future is independent of its past. A Markov chain is a mathematical model for stochastic systems whose states, discrete or continuous, are governed by transition probability. Transitions means the change of the state of the system, and the probabilities associated with various statechanges are called transition probabilities. The collection of the states and transition probabilities forms a Markov chain. Many queuing models are in fact represents Markov processes. There are a large number of real engineering, industrial, physical, biological, economics, and social phenomena that can be described and analyzed as Markov chains. The Birth-Death process The Birth-Death process is a Continuous Time Markov Chains (CTMC) with states {0, 1, 2 n-1} for which transition from state i may go only to state i-1 or i+1. CTMC do not have discrete time or index. The state changes could occur at any instant of time. Queuing systems suppose that the entity arrival and departure operations to and from the system basis on birth-death process. In queuing theory the term birth means entity arrival to queuing line, and the term death means the departing entity after getting the service. 4 Lecturer: Hawraa Sh.

M / M / 1 Queue The M / M / 1 queue is the default representation of Kendall notation of queuing systems, it contain from single server uses the FIFO service disciplines, and one waiting line of infinite size. Figure (4) shows the M / M / 1 queue. And the state diagram of this model explained in figure (5). L λ µ W Figure (4) The M / M / 1 queue The relationship between the performance measurements of M / M / 1 is :.((1)).((2)).((3)) This relationship defined with little's formula. 0 1 2 n-1 n n+1 µ µ µ µ µ Figure (5) the state diagram of birth-death process for M / M /1 5 Lecturer: Hawraa Sh.

M / M / C Queue The number of parallel servers is ( C ) where ( C >1 ) and the entities use the FIFO service disciplines. In this model the arrival rate, while the service rate can be calculate as follows : 1 If (, the number of entities in the system is more than or equal to the number of servers; this means all servers is busy; then the average of served entities is ( ). 2 If (, the number of entities in the system is less than the number of servers; this means that some servers are idle; then the average of served entities is ( ). Also, we can describe these points as follows: { 0 1 2 c-1 c µ 2µ cµ cµ Figure (6) the state diagram of birth-death process for M / M /C We have two types of M / M / C, the first one consist of one waiting queue and all the parallel servers share this queue, while in the other one each server have its own waiting queue, the two types can be explain in a and b of figure (7). µ µ Arrival λ Departure µ (a) M / M / C model with one waiting queue. 6 Lecturer: Hawraa Sh.

/n µ Arrival /n µ Departure /n µ (b) M / M /C model with one queue for each server. Figure (7) M / M /C model Tandem Queue This model consist of (j) sequence stages, where (j>1). And each stage include number of parallel server (i) where (i 1). If entity completes its service at any server or if new entity asking for a service this situation makes change in the state of system. Figure (8) explain the model, 1 1 Figure (8) Tandem queue model Tandem Queue with Feedback From the previous results, it become so clear for us that the system with two sequence server is working as two independent M / M / 1 queues. And for applying this relationship to tandem queue with feedback, we take the model in (a), the state diagram in figure (9) as an example: λ C I Figure (9) Tandem queue with feedback 7 Lecturer: Hawraa Sh.

The arrival rate for the first server is and for the second server is and so the departure in the steady state its done by. Entities arriving to the first server (C) from the outside with rate server (I, feedback) with rate, thus or from the second.((1)) When entity arriving to the system, it enter server (C) and after complete its service enter to server (I), then return to server (C) and finally depart from the system. We conclude that the entity get service two times at server(c) and one time at server (I). 8 Lecturer: Hawraa Sh.