3 Queuing System

Simulation and Modeling · Unit 3 · 6 hrs

Queuing System

Exam-focused notes for Queuing System (Simulation and Modeling, CSC328): what the TU syllabus asks and how it has actually been tested, with 7 solved past questions from this unit.

Queuing System in short

Many of the systems worth simulating are, at heart, a demand for service arriving faster than it can always be satisfied. This chapter develops the vocabulary, notation, and formulas used to describe and measure such queuing systems, and works two of them through by hand.

Queuing System: notes

Characteristics and Structure of Basic Queuing System

A queue is the line in which entities wait when the system's service rate temporarily falls behind its arrival rate, and a queuing system is the combination of the entities being served and the entities waiting to be served. Every queuing system is built from three basic elements. The arrival process describes how entities (customers, parts, patients, requests) join the system, smoothly or unpredictably, one at a time or in groups; a Markov arrival process, in which inter-arrival times are exponentially distributed, is especially useful for modeling purposes. The service process describes how entities are served once they are in the system, and what matters here is whether service times are long or short, and regular or highly variable; a Markov service process serves one entity at a time in first-come-first-served order with independent, exponentially distributed service times, and is memoryless, meaning the expected remaining service time does not depend on how long service has already taken. The queuing discipline is the logical rule that decides which waiting entity is served next: first in first out (FIFO), serving the earliest arrival first; last in first out (LIFO), serving the most recent arrival first; service in random order (SIRO); shortest processing time first (SPT); and priority, where a number assigned to each customer decides the order of service. A system's capacity is the maximum number of entities it can hold; it is unlimited if any number of customers can wait, or has an explicit finite limit otherwise.

Models of Queuing System

A queuing model combines a specific arrival process, service process, number of servers, queuing discipline, and capacity into a single description of how a queue behaves, which is exactly what Kendall's notation, below, is designed to summarize compactly.

What this unit covers

  • Characteristics and Structure of Basic Queuing System
  • Models of Queuing System
  • Queuing notation
  • Single server and Multiple server Queueing Systems
  • Measurement of Queueing System Performance
  • Elementary idea about networks of Queuing with particular emphasis to computer system
  • Applications of queuing system

Queuing notation

2082 · 5 marks

Explain Kendall notation with appropriate example. [5]

Kendall Notation is the standard system used to describe and classify a queuing system. It provides a compact and systematic way to represent the characteristics of any queuing model. --- Kendall Notation is represented as: $$A / B / C / D / N / K$$ --- Symbol Parameter Description --------------...

Open this answer on its own page →

2081 · 5 marks

Define traffic intensity and server utilization. Write down the Kendall's notation for queuing system with example. [5]

--- Traffic intensity (denoted by ρ or P) is a dimensionless measure that represents the ratio of the mean arrival rate to the mean service rate in a queuing system. It indicates the load placed on the server. $$\rho = \frac{\lambda}{\mu}$$ Where: - λ = mean arrival rate (average number of custom...

Open this answer on its own page →

Characteristics and Structure of Basic Queuing System

2081 · 5 marks

Write short notes on: a. Queuing discipline b. Random variate [5]

Show solved answer

Short Notes

a. Queuing Discipline (2.5 marks)

Definition: The logical ordering of customers in a waiting line that determines which customer will be chosen for service next is called queuing discipline.

The number of customers that can wait in a line is called system capacity. The simplest case is an unlimited queue which can accommodate any number of customers (unlimited capacity). However, many systems such as web servers and call centers have limits on the number of entities that can be in the queue at any given time. Arrivals that come when the queue is full are turned away.

Common Types of Queuing Disciplines:

  1. FIFO (First In, First Out): Customers are served in the order they arrive. This is the most common and default discipline. Example: bank queues.

  2. LIFO (Last In, First Out): The most recently arrived customer is served first. Example: stack-based processing systems.

  3. SIRO (Service In Random Order): Customers are selected randomly from the waiting queue regardless of arrival order.

Note in Kendall Notation: In the standard Kendall Notation (A/B/C/D/N/K), D represents the queuing discipline. If not specified, the default is FIFO. For example, M/D/2/FIFO/5/∞ represents a system with exponential arrivals, deterministic service, 2 servers, FIFO discipline, capacity of 5, and infinite population.


b. Random Variate (2.5 marks)

Definition: A random variate is a particular outcome or realization generated from a specified probability distribution. It is a value produced by a random variable when the underlying random experiment is performed.

Key Points:

  • A random variate is used in simulation modeling to represent uncertain quantities such as inter-arrival times, service times, and processing durations.
  • Random variates are generated using techniques such as the Inverse Transform Method, Acceptance-Rejection Method, and Composition Method.
  • They are drawn from distributions such as Exponential (M), Deterministic (D), and Erlang (E) distributions, which are commonly used in queuing models.
  • In Markov Chain Monte Carlo (MCMC), sequences of random variates are generated to reflect complicated desired probability distributions.

Example: If service time follows an exponential distribution with mean 1/μ, then a random variate for service time is generated as:

$$x = -\frac{1}{\mu} \ln(U)$$

where U is a uniform random number between 0 and 1.

Random variates are essential in discrete event simulation to mimic real-world stochastic behavior of systems such as queuing networks.

Open this answer on its own page →

2080 · 5 marks

What is calling population? Explain arrival and service process in a queue. [5]

Show solved answer

Calling Population, Arrival Process, and Service Process in a Queue

Calling Population

The calling population (denoted as K in Kendall Notation) refers to the source of customers (entities) that may arrive and demand service in a queuing system. It represents the total pool of potential customers who can join the queue.

  • If the calling population is infinite (K = ∞), the arrival rate is not affected by the number of customers already in the system. This is the most common assumption.
  • If the calling population is finite, the arrival rate decreases as more customers are already in the system (since fewer potential customers remain in the source pool).

In Kendall Notation (A/B/C/D/N/K), K denotes the calling population. If not specified, K = ∞ is assumed by default.


Arrival Process in a Queue

The arrival process describes how customers (entities) arrive into the queuing system over time.

Key characteristics include:

AspectDescription
Arrival Rate (λ)Average number of customers arriving per unit time
Inter-arrival TimeTime between successive arrivals
DistributionCommonly Exponential (M), Deterministic (D), or Erlang (E)
Batch ArrivalsCustomers may arrive in groups (batches), e.g., busloads

Important points:

  • In most standard models, arrivals follow a Poisson process, meaning inter-arrival times are exponentially distributed (M).
  • For batch arrivals, multiple customers can arrive at the same time instant, modeled using a point process where arrival times may coincide: t₀ ≤ t₁ ≤ t₂ ≤ ...
  • The arrival rate is denoted λ (lambda).

Service Process in a Queue

The service process describes how customers are served once they reach the server.

Key characteristics include:

AspectDescription
Service Rate (μ)Average number of customers served per unit time
Service TimeTime taken to serve one customer
DistributionCommonly Exponential (M), Deterministic (D), or Erlang (E)
Number of Servers (C)Single or multiple servers

Important points:

  • The system is stable only if the arrival rate is less than the service rate, i.e., λ < μ (utilization ρ = λ/μ < 1).
  • The server utilization ρ represents the average proportion of time the server is occupied.
  • The queuing discipline (D) (e.g., FIFO, LIFO) determines the order in which waiting customers are served.

Summary Relationship

$$\text{Queuing System} = \text{Calling Population} \rightarrow \text{Arrival Process} \rightarrow \text{Queue (Waiting Line)} \rightarrow \text{Service Process} \rightarrow \text{Departure}$$

A system is considered a queuing system when entities arrive, possibly wait in a line, and are served. The combination of all entities being served and waiting constitutes the queuing system.

Open this answer on its own page →

2079 · 5 marks

Explain basic characteristics of Queuing System [5]

A queuing system is the combination of all entities currently being served and all entities waiting for service. It arises whenever the rate of demand for a service temporarily exceeds the rate at which the system can provide that service, causing entities (customers, parts, patients, orders, etc...

Open this answer on its own page →

2076

Queuing System: Definition, Disciplines, and Performance Measures

--- A queuing system is a mathematical model used to study and analyze waiting lines. It consists of customers (entities) arriving at a service facility, waiting in a queue if the server is busy, receiving service, and then departing from the system. "The combination of all entities in the system...

Open this answer on its own page →

Measurement of Queueing System Performance

2078

Queuing System – Definition, Kendall's Notation, Performance Measures & System Stability

--- A queuing system is a mathematical model used to study and analyze waiting lines (queues), where customers arrive at a service facility, wait if the server is busy, receive service, and then depart. Basic Components of a Queuing System: Component Description ------ Arrival Process Pattern/rat...

Open this answer on its own page →