Menu
Author
Guilherme Oliveira

Software Developer and Tech Enthusiast

Queueing Theory - Part 2: Queueing Model Notation

The general notation for a queue is A/S/c, where:

 

A = Arrival process (distribution of inter-arrival times)
S = Service time distribution

c = Number of servers

M: Poisson arrival process (Markovian)

The Poisson arrival process is a Markovian process, meaning that the inter-arrival times (the time between consecutive arrivals) follow an exponential distribution with a constant average rate. This process assumes that arrivals are random, independent, and occur at a constant average rate, making it suitable for modeling systems where events happen sporadically but with predictable frequency, such as customer arrivals at a busy checkout line or network packet arrivals.

M: Exponential distribution

Service times follow an exponential distribution, meaning that the time between service completions is unpredictable but has a known average. This distribution assumes a memoryless property, meaning the probability of service taking a certain amount of time is independent of previous service durations. It is commonly used in systems where service times are random but follow a consistent statistical pattern, like in telecommunications or server systems.

-
D: Deterministic (fixed inter-arrival time)

In this case, arrivals happen at fixed, constant intervals. The time between consecutive arrivals is known and does not vary. This model is often used in systems where the arrival of tasks is scheduled and predictable, such as a system where tasks arrive at regular time intervals (e.g., every 5 minutes), or in assembly lines where workpieces arrive at a constant rate.

D: Deterministic (constant service time)

In this case, service times are fixed and constant for each customer. There is no variability in the service time, and all customers are served in the exact same amount of time. This model is ideal for systems where the service duration is predictable and consistent, such as a ticket booth where each customer is served in exactly 5 minutes.
-
G: General (any arbitrary distribution)

The General arrival process is the most flexible, as it allows for any arbitrary distribution for the inter-arrival times. This means that the time between arrivals can follow any pattern, depending on the specific system being modeled. This process is useful for systems where arrivals don't follow a regular or exponential pattern, such as human behavior in traffic flow, or irregular, random event occurrences like emergency service calls or unpredictable web traffic.

G: General distribution

Service times follow a general distribution, which can be any arbitrary statistical distribution. This flexibility allows it to model a wider range of service time patterns, including those that are neither exponential nor deterministic. It is suitable for real-world systems where service times can vary widely, such as in customer service or healthcare environments where the time to serve a customer or patient can differ greatly depending on the situation.

-

In summary, the Poisson (M) arrival process assumes random, independent arrivals with a constant average rate, the Deterministic (D) process assumes fixed, regular intervals, and the General (G) process allows for any type of arrival pattern, providing maximum flexibility to model a wide range of real-world systems.

In summary, the Exponential (M) distribution is random but with a known average rate, the Deterministic (D) distribution is fixed and predictable, and the General (G) distribution allows for any type of service time pattern, offering the most flexibility. -

 


Comparison of Key Models:

 

Model Arrival Process Service Time Servers Example Key Features Analysis Difficulty
M/M/1 Poisson Exponential 1 Printer processing jobs Easy to analyze; highly variable Easy
M/D/1 Poisson Constant 1 Ticket booth with fixed service time Predictable service times; shorter queues Easy
M/G/1 Poisson General 1 Customer support line Flexible; supports variable service times Moderate
M/M/k Poisson Exponential k Call center with several agents Balances workload; reduces wait times Easy
M/D/k Poisson Constant k Bank with multiple tellers Scalable; highly structured Easy
M/G/k Poisson General k Hospital emergency room with several doctors Realistic for systems with unpredictable service times Complex

 



M / D / 1 

 

The M/D/1 model represents a queueing system characterized by:


M
: Poisson arrivals

Customers arrive following a Poisson process (exponential inter-arrival times).


D
: Deterministic service time (constant)

Service times are deterministic (constant and equal for every customer).

1
: One server

A single server handles all customers.

 

Key Features


Predictability

The constant service time ensures that tasks are processed with uniformity, making system performance easy to predict.

Reduced Queue Length
Since there’s no variability in service times, the queue length tends to remain stable and shorter, even during high traffic.

 

Applications

Job Scheduling: Systems that assign fixed processing durations to tasks, such as encoding video files of standard lengths or running uniform-sized batch jobs.

API Rate Limiting: A server that processes API requests at a fixed rate, ensuring consistent response times under load.

Data Processing Pipelines: Stages where each task takes a fixed amount of time, such as resizing images to a predefined size or running deterministic computations.

 

The M/D/1 queue offers significant advantages, including simplified system management due to predictable processing times and efficiency in handling repetitive tasks with known durations. By modeling systems with fixed service times, it provides a reliable framework for analyzing and optimizing environments where consistency and predictability are essential.

 


 

M / G / 1 

 

The M/G/1 model represents a queueing system characterized by:


M
: Poisson arrivals

Customers arrive following a Poisson process (exponential inter-arrival times).


G
: General Distribution

Service times follow a general distribution, meaning they can vary and are not fixed.

1
: One server

A single server handles all customers.

 

Key Features


Flexibility in Modeling

This model allows service times to follow any distribution, making it versatile and suitable for real-world scenarios where tasks do not have uniform durations.

Impact of Variability
Both the mean service time and variance significantly influence the system's performance, including queue length and wait times. Higher variability often leads to longer queues and increased delays.

 

Examples

A customer support line is a practical example, where service times depend on the complexity of the issues being addressed. Some queries might be resolved in seconds, while others require extended troubleshooting. Similarly, in software systems, this could represent a file upload service where processing times depend on file sizes, varying from small documents to large video files.

Applications

Customer Service Systems: Service times vary depending on the type of inquiry, such as resolving billing issues versus technical troubleshooting.

Job Scheduling: Systems handling tasks with varying durations, such as compiling small programs versus large codebases in a build pipeline.

Cloud Computing: Content delivery networks (CDNs) processing requests of variable complexity, such as streaming low-resolution versus high-resolution video content.

 

The M/G/1 queue, though harder to analyze mathematically due to the need for detailed statistical analysis to account for variability in service times, is a powerful tool for understanding systems with unpredictable or diverse task durations, bridging the gap between idealized models and the complexities of dynamic systems in both theoretical research and real-world applications.

 


 

M / D / k

 

This model extends the M/D/1 by allowing k servers to work in parallel. Each server offers the same constant service time.


M
: Poisson arrivals

Customers arrive following a Poisson process (exponential inter-arrival times).


D
: Deterministic service time (constant)
Service times are deterministic (constant and equal for every customer).

k
: Multiple servers (k servers)

Multiple servers operate in parallel to serve customers.

 

Key Features


Parallel Processing

By having multiple servers work in parallel, the system can handle higher traffic volumes, significantly reducing waiting times.

Structured Operations
Ideal for environments with highly predictable tasks, such as assembly lines in manufacturing or batch data processing in software.

 

Examples

A bank with multiple tellers is a practical example, where each teller serves customers in a predictable, fixed amount of time. In software systems, this could represent a pool of identical servers processing fixed-duration tasks, such as encoding video frames or resizing images, ensuring uniformity in task handling.

Applications

Call Centers: Multiple agents handle calls, each requiring a fixed amount of time for standard queries.

Web Servers: A load-balanced cluster of servers processes identical, fixed-duration requests, such as serving cached static files.

Manufacturing Lines: Stations performing tasks with fixed durations, such as packaging or assembly, ensuring efficient workflows.

 

The M/D/k queue is a robust model for systems where tasks are consistent, offering predictable service times that enable straightforward planning and resource allocation. Its scalability allows for accommodating growing demand by adding more servers, making it well-suited for structured, high-throughput environments where parallelism efficiently handles large volumes.

 


 

M / M / 1

 

The M/M/1 queue is the simplest and most fundamental model in queueing theory, characterized by the following:


M
: Poisson arrivals

Customer arrivals follow a Poisson process, with exponentially distributed inter-arrival times.


M
: Exponential distribution
Service times are also exponentially distributed, introducing randomness in processing duration.

1
: One server

A single server handles all arrivals.

 

Key Features


Mathematical Simplicity

The M/M/1 model is mathematically tractable, making it a foundational tool for understanding and analyzing more complex queueing systems.

Higher Variability
Due to the exponential distribution of service times, the system is prone to higher variability, potentially leading to longer queues under high traffic.

 

Examples

A single printer in an office processing print jobs submitted randomly by multiple users. In software, this could represent a single-threaded server handling incoming API requests with variable processing times.

Applications

Call Centers: A single agent receiving random calls of variable durations.

Web Servers: A single-threaded server processing requests with varying complexities.

Service Desks: A single representative assisting customers with diverse needs.

 

The M/M/1 queue is an essential starting point for understanding queueing systems, providing insights into the impact of arrival rates and service times on performance while serving as a baseline for extending to more complex scenarios.

 


 

M / M / k

 

The M/G/k queue is a generalized model that accommodates k parallel servers and allows service times to follow any distribution, making it more flexible than models with fixed or exponential service times. This flexibility makes it highly applicable to real-world scenarios where service durations are unpredictable.


M
: Poisson arrivals

Customer arrivals follow a Poisson process, with exponentially distributed inter-arrival times.


M
: Exponential distribution
Service times are also exponentially distributed, introducing randomness in processing duration.

k: Multiple servers (k servers)
Multiple servers operate in parallel to serve customers.

 

Key Features


Reduced Waiting Time

The presence of multiple servers significantly reduces waiting time if the number of servers is appropriately matched to the arrival rate.

Scalability
By increasing the number of servers, the system can handle higher customer volumes, making it adaptable to growing demand.

 

Examples

A call center with multiple agents answering calls independently, where incoming calls are distributed among available agents.

Applications

Healthcare: Hospitals with multiple doctors attending to patients.

Retail: Supermarkets with multiple checkout counters.

Technology: Load balancers distributing requests among multiple servers.

 

The M/M/k queue is an essential model for systems requiring parallelism, effectively handling variability in arrivals and service times while providing valuable insights into optimal resource allocation to balance cost and performance.

 


 

M / G / k

 

The M/M/k queue extends the M/M/1 model by introducing k parallel servers, each serving customers independently. This model retains the Poisson arrival process and exponential service time distribution, making it a widely applicable tool for analyzing multi-server systems.


M
: Poisson arrivals

Customer arrivals follow a Poisson process, with exponentially distributed inter-arrival times.


G
: General Distribution
Service times follow a general distribution, meaning they can vary and are not fixed.

k: Multiple servers (k servers)
Multiple servers operate in parallel to serve customers.

 

Key Features


Flexibility

Supports non-exponential service time distributions, making it suitable for diverse and dynamic environments.

Realism
Captures the unpredictability of service times, reflecting real-world systems more accurately.

 

Challenges


Complex Analysis

Requires advanced statistical methods to derive meaningful insights.

Variance Impact
System behavior is influenced significantly by the variability in service times.

 

Examples

A hospital emergency room with multiple doctors, where the time spent with each patient varies based on the complexity of their condition.

 

Applications

Healthcare: Emergency rooms or clinics with varying consultation durations.

Logistics: Distribution centers with fluctuating handling times for different package types.

Technology: Multi-server data centers processing requests of varying complexities.

 

The M/G/k queue provides a robust framework for analyzing systems with multiple servers and diverse service time patterns, bridging the gap between theoretical modeling and practical applications.

 


 

Conclusion

These queueing models allow you to analyze different real-world systems based on variability in arrival and service times, as well as the number of available servers. M/D/1 and M/M/1 are often used in basic setups, while M/G/1 and M/G/k help model more complex and realistic environments. Each model offers insights into waiting times, queue lengths, and system utilization.

 

Published on December 1, 2024