ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155

Slides:



Advertisements
Similar presentations
Lecture 10 Queueing Theory. There are a few basic elements common to almost all queueing theory application. Customers arrive, they wait for service in.
Advertisements

Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
E&CE 418: Tutorial-4 Instructor: Prof. Xuemin (Sherman) Shen
Channel Allocation Protocols. Dynamic Channel Allocation Parameters Station Model. –N independent stations, each acting as a Poisson Process for the purpose.
Continuous Time Markov Chains and Basic Queueing Theory
Lecture 13 – Continuous-Time Markov Chains
Operations research Quiz.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
#11 QUEUEING THEORY Systems Fall 2000 Instructor: Peter M. Hahn
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Performance analysis for high speed switches Lecture 6.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Queueing Theory: Part I
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
1 Overview of Queueing Systems Michalis Faloutsos Archana Yordanos The web.
Little’s Theorem Examples Courtesy of: Dr. Abdul Waheed (previous instructor at COE)
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?

1 Exponential Distribution & Poisson Process Memorylessness & other exponential distribution properties; Poisson process and compound P.P.’s.
Queueing Theory I. Summary Little’s Law Queueing System Notation Stationary Analysis of Elementary Queueing Systems  M/M/1  M/M/m  M/M/1/K  …
Introduction to Queuing Theory
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
MIT Fun queues for MIT The importance of queues When do queues appear? –Systems in which some serving entities provide some service in a shared.
Introduction to Operations Research
Lecture 14 – Queuing Networks Topics Description of Jackson networks Equations for computing internal arrival rates Examples: computation center, job shop.
Introduction to Queueing Theory
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
1 Queuing Models Dr. Mahmoud Alrefaei 2 Introduction Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other.
TexPoint fonts used in EMF.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
Probability Review CSE430 – Operating Systems. Overview of Lecture Basic probability review Important distributions Poison Process Markov Chains Queuing.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Chapter 20 Queuing Theory to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
The M/M/ N / N Queue etc COMP5416 Advanced Network Technologies.
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
COMT 4291 Queuing Analysis COMT Call/Packet Arrival Arrival Rate, Inter-arrival Time, 1/ Arrival Rate measures the number of customer arrivals.
Chap 2 Network Analysis and Queueing Theory 1. Two approaches to network design 1- “Build first, worry later” approach - More ad hoc, less systematic.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
Managerial Decision Making Chapter 13 Queuing Models.
Lecture 14 – Queuing Networks
Exponential Distribution & Poisson Process
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved
Queueing Theory What is a queue? Examples of queues:
Queuing Theory Queuing Theory.
Internet Queuing Delay Introduction
Lecture on Markov Chain
Internet Queuing Delay Introduction
Chapter 6 Queuing Models.
Introduction Notation Little’s Law aka Little’s Result
Queuing models Basic definitions, assumptions, and identities
Queuing models Basic definitions, assumptions, and identities
Handling Routing Transport Haifa JFK TLV BGN To: Yishay From: Vered
The M/G/1 Queue and others.
TexPoint fonts used in EMF.
COMP60611 Fundamentals of Parallel and Distributed Systems
Lecture 14 – Queuing Networks
COMP60621 Designing for Parallelism
CSE 550 Computer Network Design
Waiting Line Models Waiting takes place in virtually every productive process or service. Since the time spent by people and things waiting in line is.
Course Description Queuing Analysis This queuing course
Presentation transcript:

ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155 Phone: x 32691 Email: xshen@bbcr.uwaterloo.ca

Problem 1. Customers arrive at a fast food restaurant at a rate of five per minute and wait to receive their order for an average of 5 minutes. With probability 0.5 customers eat in the restaurant and carry out their food without eating with probability 0.5. A meal requires an average of 20 minutes to finish eating. What is the average time a customer spends in the restaurant? What is the expected number of customers in the restaurant? Method 1: For those customers carrying out their food, they stay in the restaurant with an average of 5 minutes (for waiting). This situation happens with the probability of 0.5. For those customers eating in, they stay with an average of 25 minutes (for waiting and eating), which also happens with the probability of 0.5. Two situations considered together, the average customer time in the restaurant is We know that customers arrive at a rate of = 5. By Little’s Theorem, the average number in the restaurant is

M/M/1 queue The time a customer must wait in the queue is There are n customers in the system when a new customer arrives Let W denote the mean time that a customer has to wait from the moment he arrives until he departures then The mean number of customers in the system is

Method 2:

M/M/1 queue Find P0: Since , we have Then, a geometric distribution The average number of customers in the system is: The average number of customers in the queue is:

M/M/1/N queue Arrival rate: packet/sec; Blocking probability: ; Departure rate: packet/sec; Throughput:

Problem 2. A person enters a bank and finds all of the four tellers busy serving customers. There are no other customers in the bank, so the person will start receiving service as soon as one of the customers in service leaves. Customers have independent, identical, exponential distribution of service time with mean . a). What is the probability that the person will be the last to leave the bank assuming no other customers arrive? b). If the average service time is 1 minute, what is the average time the person spend in the bank? a). The probability that the person will be the last to leave is 1/4 because the exponential distribution is memoryless, and all customers have identical service time distribution. In particular, at the instant the customer enters service there are 4 persons at service, and the remaining service time of each of the other three customers served has the same distribution as the service time of the customer.

b). The average time in the bank is the average time (1 minutes) plus the average waiting time before being served. The average waiting time equals to the expected time for the first customer to finish service, which is 1/4 minute since the departure process is statistically identical to that of a single server facility with 4 times larger service rate. More precisely, we have The above equation use the fact that the 4 service times are 4 independent exponential distributed random variables. Therefore, just meaning the first departure time is exponential distributed and the expected time for the first departure is 1/4. Now, we can get the average time the person will spend in the bank is 1 + 1/4 = 5/4 minutes.

Problem 3. (Regenerative method) A packet has to be sent from node A to node D via nodes B and C. The transmission proceeds as follows. First, A transmits the packet to B. This transmission is always successful and takes T unit of time. Second, B sends the packet to C. This is successful with probability 1- and takes T time units. If the transmission from B to C is unsuccessful, then B finds out that the transmission is incorrect after 2T time units. It then repeats the transmission until the fist success. Third, C sends the packet to D. This takes T time units and is successful with probability 1- . If it is not successful, then A finds out after 3T time units, and A must then repeat the whole process. Find the mean time needed until D first gets a successful packet.

Network of M/M/1 Queues l1 = g1 + g2 l2 = g1 + g2 + g3 l3 = g1 + g3 m2

l1 = g1 + g2 l2 = g1 + g2 + g3 l3 = g1 + g3 m2 m3 m1

l1 = g1 + g2 l2 = g1 + g2 + g3 l3 = g1 + g3 m2 m3 m1 The time through the system is the sum of the time through each queuing component.

ECE710 Wireless Communications Networks Network of M/M/1 Queues Three streams of packets go through this network. Assume that the arrival streams are Poisson processes with rate , and respectively. Assume also that the service times at the three buffers are independent and exponentially distributed with rates , , and , respectively. It can be shown that the average number of packets in each buffer is equal to 2018/11/18 ECE710 Wireless Communications Networks

ECE710 Wireless Communications Networks Network of M/M/1 Queues The average delay T per packet is equal to The assumptions required are The arrival streams from outside into the network form independent Poisson process. The packet transmission times at all the queues are independent and exponentially distributed. In practice, assumption1 may be verified. Assumption2 cannot be since the transmission times of a given packet into the various nodes are all proportional to the packet length, and so they can’t be independent. Note: Little’s result holds for systems that are not necessarily first come- first served. 2018/11/18 ECE710 Wireless Communications Networks

Queues are represented via the notation: A/S/C/K A: The arrival process of packets. M stands for Markovian (Poisson) process; λ is the arrival rate (the average number of packets arriving by unit time). The interarrival time is exponentially distributed with mean 1/λ. S: The packet departure process. In case of M, the interdeparture time (the service time) is exponentially distributed with average service time 1/μ, where μ is the service rate. - C: the number of parallel servers in the system. - K: max. number of packets in the queue (the max. number of packets that can be accommodated in the buffer plus the number of servers). If K is missing, K = infinity. Ex: M/M/1 or M/M/1/N queue (Poisson arrivals, Exponential service time)