Menu

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) M: Exponential distribution -
D: Deterministic (fixed inter-arrival time) D: Deterministic (constant service time) -
G: General (any arbitrary distribution) G: General distribution -

 



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.

 

Examples

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

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 Queue

  • M: Poisson arrivals
  • D: Deterministic service time (constant)
  • k: Multiple servers (k servers)

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

Example:

  • A bank with multiple tellers, each serving customers in a predictable amount of time.

Key Features:

  • If the number of servers is sufficient, it reduces waiting time significantly.
  • A good approximation for systems that are highly structured with minimal variability.

M/M/1 Queue

  • M: Poisson arrivals
  • M: Exponentially distributed service time
  • 1: One server

This is the most basic queue model and serves as the foundation for queueing theory. Both the inter-arrival and service times follow an exponential distribution.

Example:

  • A single printer processing print jobs submitted randomly.

Key Features:

  • Easy to analyze mathematically.
  • More variability in service time, so queues can become longer compared to M/D/1.

M/M/k Queue

  • M: Poisson arrivals
  • M: Exponentially distributed service time
  • k: Multiple servers

This model generalizes the M/M/1 queue by allowing k servers to work in parallel.

Example:

  • A call center with several agents, each handling calls independently.

Key Features:

  • Can reduce waiting time if the number of servers is well-matched to the arrival rate.

M/G/k Queue

  • M: Poisson arrivals
  • G: General service time distribution
  • k: Multiple servers

This model is even more generalized, allowing non-exponential service times with multiple servers.

Example:

  • A hospital emergency room with several doctors, each spending varying amounts of time with patients.

Key Features:

  • Complex to analyze, but realistic for many applications where service times are not predictable.

Comparison of Key Models:

Model Arrival Process Service Time Servers Example
M/M/1 Poisson Exponential 1 Printer processing jobs
M/D/1 Poisson Constant 1 Ticket booth with fixed service time
M/G/1 Poisson General 1 Customer support line
M/M/k Poisson Exponential k Call center with several agents
M/D/k Poisson Constant k Bank with multiple tellers

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 November 21, 2024