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.
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]
2081 · 5 marks
Define traffic intensity and server utilization. Write down the Kendall's notation for queuing system with example. [5]
Characteristics and Structure of Basic Queuing System
2081 · 5 marks
Write short notes on: a. Queuing discipline b. Random variate [5]
Show solved answerHide 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:
-
FIFO (First In, First Out): Customers are served in the order they arrive. This is the most common and default discipline. Example: bank queues.
-
LIFO (Last In, First Out): The most recently arrived customer is served first. Example: stack-based processing systems.
-
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.
2080 · 5 marks
What is calling population? Explain arrival and service process in a queue. [5]
Show solved answerHide 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:
| Aspect | Description |
|---|---|
| Arrival Rate (λ) | Average number of customers arriving per unit time |
| Inter-arrival Time | Time between successive arrivals |
| Distribution | Commonly Exponential (M), Deterministic (D), or Erlang (E) |
| Batch Arrivals | Customers 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:
| Aspect | Description |
|---|---|
| Service Rate (μ) | Average number of customers served per unit time |
| Service Time | Time taken to serve one customer |
| Distribution | Commonly 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.
2076
Queuing System: Definition, Disciplines, and Performance Measures
Measurement of Queueing System Performance
2078
Queuing System – Definition, Kendall's Notation, Performance Measures & System Stability
Make Unit 3 stick
Practice CSC328 with flashcards & quizzes