Fundamentals of Queueing Models

Similar documents
UNIT 4: QUEUEING MODELS

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

Lecture 5: Performance Analysis I

Introduction to Queuing Systems

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

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

QUEUING SYSTEM. Yetunde Folajimi, PhD

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

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

Introduction to Performance Engineering and Modeling

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

BANK ATM QUEUEING MODEL: A CASE STUDY Ashish Upadhayay* 1

Introduction to Performance Engineering and Modeling

Cover sheet for Assignment 3

Advanced Internet Technologies

Resource Allocation and Queuing Theory

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

Chapter 9 Selected Examples. Queues with Reneging

Scheduling. Scheduling algorithms. Scheduling. Output buffered architecture. QoS scheduling algorithms. QoS-capable router

CPU Scheduling (1) CPU Scheduling (Topic 3) CPU Scheduling (2) CPU Scheduling (3) Resources fall into two classes:

Process- Concept &Process Scheduling OPERATING SYSTEMS

OPERATING SYSTEMS. After A.S.Tanenbaum, Modern Operating Systems, 3rd edition. Uses content with permission from Assoc. Prof. Florin Fortis, PhD

Scheduling Algorithms to Minimize Session Delays

Teletraffic theory I: Queuing theory

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

Network Traffic Characterisation

Scheduling. Scheduling. Scheduling. Scheduling Criteria. Priorities. Scheduling

Why is scheduling so difficult?

Chapter 5: CPU Scheduling

Read Chapter 4 of Kurose-Ross

COSC243 Part 2: Operating Systems

General Objectives: To understand the process management in operating system. Specific Objectives: At the end of the unit you should be able to:

Model suitable for virtual circuit networks

occurs singly but by Chaudhry

Preview. Process Scheduler. Process Scheduling Algorithms for Batch System. Process Scheduling Algorithms for Interactive System

Two-Heterogeneous Server Markovian Queueing Model with Discouraged Arrivals, Reneging and Retention of Reneged Customers

EP2200 Queueing theory and teletraffic systems

Performance Evaluation of Scheduling Mechanisms for Broadband Networks

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

CPU Scheduling. Daniel Mosse. (Most slides are from Sherif Khattab and Silberschatz, Galvin and Gagne 2013)

Queuing Networks Modeling Virtual Laboratory

OS 1 st Exam Name Solution St # (Q1) (19 points) True/False. Circle the appropriate choice (there are no trick questions).

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

Tasks. Task Implementation and management

Lecture Topics. Announcements. Today: Uniprocessor Scheduling (Stallings, chapter ) Next: Advanced Scheduling (Stallings, chapter

048866: Packet Switch Architectures

Chapter 6 Queuing Disciplines. Networking CS 3470, Section 1

CPU Scheduling Algorithms

Lecture 5 / Chapter 6 (CPU Scheduling) Basic Concepts. Scheduling Criteria Scheduling Algorithms

ECE SPRING NOTE; This project has two parts which have different due dates.

Operating System Concepts Ch. 5: Scheduling

Discrete Event (time) Simulation

Introduction to Modeling. Lecture Overview

CS551 Router Queue Management

Unit 2 Packet Switching Networks - II

CSE120 Principles of Operating Systems. Prof Yuanyuan (YY) Zhou Scheduling

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

OPERATING SYSTEMS. UNIT II Sections A, B & D. An operating system executes a variety of programs:

Resource allocation in networks. Resource Allocation in Networks. Resource allocation

Using Queuing theory the performance measures of cloud with infinite servers

SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM

This formula shows that partitioning the network decreases the total traffic if 1 N R (1 + p) < N R p < 1, i.e., if not all the packets have to go

Introduction to Operating Systems Prof. Chester Rebeiro Department of Computer Science and Engineering Indian Institute of Technology, Madras

Multicast Traffic in Input-Queued Switches: Optimal Scheduling and Maximum Throughput

Process behavior. Categories of scheduling algorithms.

Operating Systems. CPU Scheduling ENCE 360

Flow Control. Flow control problem. Other considerations. Where?

Shared-Memory Multiprocessor Systems Hierarchical Task Queue

TDDD82 Secure Mobile Systems Lecture 6: Quality of Service

Router s Queue Management

Performance Analysis of WLANs Under Sporadic Traffic

FOURTH EDITION. Discrete-Event System Simulation

Chapter 6: CPU Scheduling. Operating System Concepts 9 th Edition

High level scheduling: Medium level scheduling: Low level scheduling. Scheduling 0 : Levels

Episode 4. Flow and Congestion Control. Baochun Li Department of Electrical and Computer Engineering University of Toronto

BISS 2013: Simulation for Decision Support

CSC Operating Systems Spring Lecture - XII Midterm Review. Tevfik Ko!ar. Louisiana State University. March 4 th, 2008.

Motivation: Wireless Packet-Based Transport

Processes. CS 475, Spring 2018 Concurrent & Distributed Systems

Multiple Access Communications. EEE 538, WEEK 11 Dr. Nail Akar Bilkent University Electrical and Electronics Engineering Department

Scheduling of processes

Properties of Processes

Announcements. Program #1. Reading. Due 2/15 at 5:00 pm. Finish scheduling Process Synchronization: Chapter 6 (8 th Ed) or Chapter 7 (6 th Ed)

Episode 5. Scheduling and Traffic Management

Simulation Models for Manufacturing Systems

Episode 5. Scheduling and Traffic Management

The JMT Simulator for Performance Evaluation of Non-Product-Form Queueing Networks

CPU Scheduling. Operating Systems (Fall/Winter 2018) Yajin Zhou ( Zhejiang University

TCP and BBR. Geoff Huston APNIC

The Increase of the Instability of Networks due to Quasi-Static Link Capacities

Flow-Level Analysis of Load Balancing in HetNets and Dynamic TDD in LTE

CS 471 Operating Systems. Yue Cheng. George Mason University Fall 2017

Multi-Level Feedback Queues

Scheduling. Monday, November 22, 2004

Advanced Computer Networks

Simulation with Arena

CNCL: Contents. Extra material (1)

TCP and BBR. Geoff Huston APNIC

Module 17: "Interconnection Networks" Lecture 37: "Introduction to Routers" Interconnection Networks. Fundamentals. Latency and bandwidth

Lecture 2 Process Management

Transcription:

Fundamentals of Queueing Models Michela Meo Maurizio M. Munafò Michela.Meo@polito.it Maurizio.Munafo@polito.it TLC Network Group - Politecnico di Torino 1 Modeling a TLC network Modelization and simulation of a network often involves common components Network elements (memory buffers, transmission lines, ) Protocols and system interactions through message exchanges Analytical tools for modeling these components Network elements -> Queues and Queueing Networks Protocols -> State Machines Simulation is often used when the analytical tools are not powerful enough TLC Network Group - Politecnico di Torino 3 1

Queueing Models The basic element for the modeling of several real world system is a queue Post office Highway tollbooth Shop counter almost anything else Since queues are so important in modeling, it s useful to reassess a few key concepts TLC Network Group - Politecnico di Torino 4 Queue Characteristics We can give a very general and high level description of a queueing system: Customers require a service from one or more servers, waiting their turn in a waiting line What are the customers? How do they behave? What is a service? For each system there is a specific answer to these and all the other questions we can ask TLC Network Group - Politecnico di Torino 5 2

Queue Characteristics The Calling Population The number of possible customers who can arrive at the system and request a service Usually we suppose infinite population (a new customer can arrive in any moment) Finite population is used only in very specific cases System Capacity The maximum number of customers in the waiting line or system Limited space in the waiting line -> latecomers cannot enter the system For some systems we can suppose unlimited capacity TLC Network Group - Politecnico di Torino 6 Queue Characteristics The Arrival Process Infinite-population models characterized by the aggregate interarrival time Scheduled times or random times (with a probability distribution) Single or group (batches) arrivals Batches with fixed or random size Finite-population models usually characterized by the individual interarrival time TLC Network Group - Politecnico di Torino 7 3

Queue Characteristics The Poisson Arrival Process Very important model for random arrivals If A n is the interrarrival time between customer n-1 and customer n, then for a Poisson arrival process A n is exponentially distributed with mean 1/l time units lx le x 0 f ( x ) 0 elsewhere The arrival rate is l customers per time unit Several nice statistical properties TLC Network Group - Politecnico di Torino 8 Queue Characteristics Queue behavior The actions of the customers in the waiting line Wait until service Leave if the queue is too long (balk) The customer does not enter the system or is ejected from the system by a queue police mechanism Leave if queue is moving too slow (renege) Impatient customers Move among queues if the chosen line seems too slow (jockey) TLC Network Group - Politecnico di Torino 9 4

Queue Characteristics Queue Discipline The order the customers will be chosen for service when a server becomes free First-In-First-Out (FIFO) Last-In-First-Out (LIFO) Random order Shortest Processing Time First (SPT) Priority service Single queue or multiple queues systems with a single server Round-robin Processor sharing Time-slicing, with or without: priority preemption TLC Network Group - Politecnico di Torino 10 Queue Characteristics Service Times The service duration for the customers Independent and identically distributed random variables Depending on the customers, by type, class or priority Depending on the state of the system Service Mechanisms Single server Multiple parallel servers Unlimited servers TLC Network Group - Politecnico di Torino 11 5

Queue Characteristics Kendall Notation: A/B/c/N/K A -> Interarrival time distribution B -> Service time distribution c -> Number of parallel servers N -> system capacity K -> size of the calling population Possible A and B: M (exponential), D (constant), E k (Erlang k), G (arbitrary), GI (general independent), If N and K are infinite, they are dropped from the notation M/M/1/ / -> M/M/1 TLC Network Group - Politecnico di Torino 12 Performance Measures In studying queueing systems we are almost always interested in long-run, steady-state performance indexes System parameters Arrival rate of the customers l [customers/time unit] Service rate of one server m [customers/time unit] Indexes Average number of customers in the system L or in the queue L Q Average time spent by customers in the system W or in the queue W Q Probability of having n customers in the system P n Server utilization r TLC Network Group - Politecnico di Torino 13 6

Performance Measures Conservation Equation: Little s formula L=lw Valid, in its general form, for any queueing system with any queue and service discipline, if the system is stable Server utilization r Defined as the proportion of time that a server is busy l r cm TLC Network Group - Politecnico di Torino 14 Performance Measures System stability For a single server queue must be l/m < 1 When l/m > 1, the rate at which customers arrive at the system is larger than the rate at which the server is able to provide the service customers are delayed more and more the size of the waiting line increases in time at rate l-m r =1 and the system is unstable For a queue with c servers, must be l/m < c TLC Network Group - Politecnico di Torino 15 7

Performance Measures Loss probability When the waiting line is limited, also if r <1, due to the random nature of the system, it is possible for an arriving customer not to find room in queue Depending on the context, we talk about a loss, dropping, or blocking event and we are interested in its probability TLC Network Group - Politecnico di Torino 16 Performance Measures Overall system behavior l m l l l e m le l l l e m l e l l e TLC Network Group - Politecnico di Torino 17 8

Queueing Networks Single queue systems can be combined in complex networks of queues Arrival rate l i at queue i is a combination of the arrival rate from the extern of the system and the arrival rate from the other queue For queue i, utilization is r i =l i /cm i and r i <1 is required for the queue to be stable If no customer is destroyed in the system, the departure rate is equal to the arrival rate TLC Network Group - Politecnico di Torino 18 Protocols Not all systems can be modelled by queues and queueing networks Complex systems are often characterized by the interaction of several components and the evolution of this interaction in time Protocols are a typical example: Interaction among the elements inside each communicating system Interaction among the remote communicating systems TLC Network Group - Politecnico di Torino 19 9

Protocols Modeling using state machines (or Finite State Automata) Identification of the protocols states and their relations Description of the system evolution as passage through the states Performance Measures Time spent in each state Recurrence time No. of visits to each state in the time unit TLC Network Group - Politecnico di Torino 20 10