Flows and Networks Plan for today (lecture 6):

Slides:



Advertisements
Similar presentations
Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
Advertisements

Flows and Networks Plan for today (lecture 2): Questions? Continuous time Markov chain Birth-death process Example: pure birth process Example: pure death.
Discrete Time Markov Chains
TCOM 501: Networking Theory & Fundamentals
Flows and Networks (158052) Richard Boucherie Stochastische Operations Research -- TW wwwhome.math.utwente.nl/~boucherierj/onderwijs/158052/ html.
Queuing Theory For Dummies
048866: Packet Switch Architectures Dr. Isaac Keslassy Electrical Engineering, Technion Review.
TCOM 501: Networking Theory & Fundamentals
1 TCOM 501: Networking Theory & Fundamentals Lecture 7 February 25, 2003 Prof. Yannis A. Korilis.
Modeling and Analysis of Manufacturing Systems Session 2 QUEUEING MODELS January 2001.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
1 TCOM 501: Networking Theory & Fundamentals Lecture 8 March 19, 2003 Prof. Yannis A. Korilis.
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
Flows and Networks Plan for today (lecture 5): Last time / Questions? Waiting time simple queue Little Sojourn time tandem network Jackson network: mean.
The Poisson Process. A stochastic process { N ( t ), t ≥ 0} is said to be a counting process if N ( t ) represents the total number of “events” that occur.
Flows and Networks Plan for today (lecture 5): Last time / Questions? Blocking of transitions Kelly / Whittle network Optimal design of a Kelly / Whittle.
A Unified Modeling Framework for Distributed Resource Allocation of General Fork and Join Processing Networks in ACM SIGMETRICS
1 Chapter 5 Flow Lines Types Issues in Design and Operation Models of Asynchronous Lines –Infinite or Finite Buffers Models of Synchronous (Indexing) Lines.
Lecture 14 – Queuing Networks Topics Description of Jackson networks Equations for computing internal arrival rates Examples: computation center, job shop.
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Flows and Networks Plan for today (lecture 6): Last time / Questions? Kelly / Whittle network Optimal design of a Kelly / Whittle network: optimisation.
ECES 741: Stochastic Decision & Control Processes – Chapter 1: The DP Algorithm 31 Alternative System Description If all w k are given initially as Then,
Introduction to Queueing Theory
Networks of Queues Plan for today (lecture 6): Last time / Questions? Product form preserving blocking Interpretation traffic equations Kelly / Whittle.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Flows and Networks Plan for today (lecture 4): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium.
Modeling and Analysis of Computer Networks
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Queuing Networks Jean-Yves Le Boudec 1. Contents 1.The Class of Multi-Class Product Form Networks 2.The Elements of a Product-Form Network 3.The Product-Form.
Networks Plan for today (lecture 8): Last time / Questions? Quasi reversibility Network of quasi reversible queues Symmetric queues, insensitivity Partial.
Queuing Networks Jean-Yves Le Boudec 1. Networks of Queues Stability Queuing networks are frequently used models The stability issue may, in general,
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Network Design and Analysis-----Wang Wenjie Queuing Theory III: 1 © Graduate University, Chinese academy of Sciences. Network Design and Performance Analysis.
CDA6530: Performance Models of Computers and Networks Chapter 7: Basic Queuing Networks TexPoint fonts used in EMF. Read the TexPoint manual before you.
Model under consideration: Loss system Collection of resources to which calls with holding time  (c) and class c arrive at random instances. An arriving.
Flows and Networks Plan for today (lecture 2): Questions? Birth-death process Example: pure birth process Example: pure death process Simple queue General.
M/M/1 Queues Customers arrive according to a Poisson process with rate. There is only one server. Service time is exponential with rate  j-1 jj+1...
The M/M/ N / N Queue etc COMP5416 Advanced Network Technologies.
CS433 Modeling and Simulation Lecture 07 – Part 01 Continuous Markov Chains Dr. Anis Koubâa 14 Dec 2008 Al-Imam.
Flows and Networks Plan for today (lecture 6): Last time / Questions? Kelly / Whittle network Optimal design of a Kelly / Whittle network: optimisation.
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Chapter 6 Product-Form Queuing Network Models Prof. Ali Movaghar.
Flows and Networks (158052) Richard Boucherie Stochastische Operations Research -- TW wwwhome.math.utwente.nl/~boucherierj/onderwijs/158052/ html.
Economics 2301 Lecture 37 Constrained Optimization.
Flows and Networks Plan for today (lecture 3): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium.
Flows and Networks Plan for today (lecture 6): Last time / Questions? Kelly / Whittle network Optimal design of a Kelly / Whittle network: optimisation.
Flows and Networks (158052) Richard Boucherie Stochastische Operations Research -- TW wwwhome.math.utwente.nl/~boucherierj/onderwijs/158052/ html.
Queueing Theory II.
Networks (3TU) Plan for today (lecture 5): Last time / Questions? Tandem network Jackson network: definition Jackson network: equilibrium distribution.
Lecture 14 – Queuing Networks
Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Flows and Networks Plan for today (lecture 3):
Chapter 11 Optimization with Equality Constraints
Flows and Networks Plan for today (lecture 4):
CTMCs & N/M/* Queues.
Queuing Theory Jackson Networks
Lecture on Markov Chain
Finite M/M/1 queue Consider an M/M/1 queue with finite waiting room.
IV-2 Manufacturing Systems modeling
Queueing Theory II.
Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Flows and Networks Plan for today (lecture 6):
Queueing networks.
Outline Unconstrained Optimization Functions of One Variable
Lecture 14 – Queuing Networks
September 1, 2010 Dr. Itamar Arel College of Engineering
Queuing Networks Mean Value Analysis
LECTURE 09 QUEUEING THEORY PART3
Presentation transcript:

Flows and Networks Plan for today (lecture 6): Last time / Questions? Kelly / Whittle network Optimal design of a Kelly / Whittle network: optimisation problem Intermezzo: mathematical programming Optimal design of a Kelly / Whittle network: Lagrangian and interpretation Optimal design of a Kelly / Whittle network: Solution optimisation problem Optimal design of a Kelly / Whittle network: network structure Summary Exercises Questions

Flows and Networks Product form preserving blocking

Blocking in tandem networks of simple queues (1) Simple queues, exponential service queue j, j=1,…,J state move depart arrive Transition rates Traffic equations Solution

Blocking in tandem networks of simple queues (2) Simple queues, exponential service queue j, j=1,…,J Transition rates Traffic equations Solution Equilibrium distribution Partial balance PICTURE J=2

Blocking in tandem networks of simple queues (3) Simple queues, exponential service queue j, j=1,…,J Suppose queue 2 has capacity constraint: n2<N2 Transition rates Partial balance? PICTURE J=2 Stop protocol, repeat protocol, jump-over protocol

Kelly / Whittle network Transition rates for some functions :S[0,), Traffic equations Open network Partial balance equations: Theorem: Assume then satisfies partial balance, and is equilibrium distribution Kelly / Whittle network

Examples Independent service, Poisson arrivals Alternative

Examples Simple queue s-server queue Infinite server queue Each station may have different service type

Flows and Networks Plan for today (lecture 4): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium distribution Partial balance Kelly/Whittle network Summary / Next Exercises

Interpretation traffic equations Transition rates for some functions :S(0,), Traffic equations Open network Theorem: Suppose that the equilibrium distribution is then and rate jk PROOF

Source How to route jobs, and how to allocate capacity over the nodes? sink

Optimal design of Kelly / Whittle network (1) Transition rates for some functions :S[0,), Routing rules for open network to clear input traffic as efficiently as possible Cost per time unit in state n : a(n) Cost for routing jk : Design : b_j0=+ : cannot leave from j; sequence of queues Expected cost rate

Optimal design of Kelly / Whittle network (2) Transition rates Given: input traffic Maximal service rate Optimization problem : minimize costs Under constraints

Intermezzo: mathematical programming Optimisation problem Lagrangian Lagrangian optimization problem Theorem : Under regularity conditions: any point that satisfies Lagrangian optimization problem yields optimal solution of Optimisation problem

Intermezzo: mathematical programming (2) Optimisation problem Introduce slack variables Kuhn-Tucker conditions: Theorem : Under regularity conditions: any point that satisfies Lagrangian optimization problem yields optimal solution of Optimisation problem Interpretation multipliers: shadow price for constraint. If RHS constraint increased by , then optimal objective value increases by i

Optimal design of Kelly / Whittle network (3) Optimisation problem Lagrangian form Interpretation Lagrange multipliers :

Optimal design of Kelly / Whittle network (4) KT-conditions Computing derivatives:

Optimal design of Kelly / Whittle network (5) Theorem : (i) the marginal costs of input satisfy with equality for those nodes j which are used in the optimal design. (ii) If the routing jk is used in the optimal design the equality holds in (i) and the minimum in the rhs is attained at given k. (iii) If node j is not used in the optimal design then αj =0. If it is used but at less that full capacity then cj =0. Dynamic programming equations for nodes that are used

Optimal design of Kelly / Whittle network (6) PROOF: Kuhn-Tucker conditions :

Customer types : routes Customer type identified route Poisson arrival rate per type Type i: arrival rate (i), i=1,…,I Route r(i,1), r(i,2),…,r(i,S(i)) Type i at stage s in queue r(i,s) Fixed number of visits; cannot use Markov routing 1, 2. or 3 visits to queue: use 3 types

Customer types : queue discipline Customers ordered at queue Consider queue j, containing nj jobs Queue j contains jobs in positions 1,…, nj Operation of the queue j: (i) Each job requires exponential(1) amount of service. (ii) Total service effort supplied at rate j(nj) (iii) Proportion  j(k,nj) of this effort directed to job in position k, k=1,…, nj ; when this job leaves, his service is completed, jobs in positions k+1,…, nj move to positions k,…, nj -1. (iv) When a job arrives at queue j he moves into position k with probability j(k,nj + 1), k=1,…, nj +1; jobs previously in positions k,…, nj move to positions k+1,…, nj +1.

Customer types : equilibrium distribution Transition rates type i job arrival (note that queue which job arrives is determined by type) type i job completion (job must be on last stage of route through the network) type i job towards next stage of its route Notice that each route behaves as tandem network, where each stage is queue in tandem Thus: arrival rate of type i to stage s : (i) Let State of the network: Equilibrium distribution

Quasi-reversibility Multi class queueing network, class c  C A queue is quasi-reversible if its state x(t) is a stationary Markov process with the property that the state of the queue at time t0, x(t0), is independent of (i) arrival times of class c customers subsequent to time t0 (ii) departure times of class c custmers prior to time t0. Theorem If a queue is QR then (i) arrival times of class c customers form independent Poisson processes (ii) departure times of class c customers form independent Poisson processes.

Quasi-reversibility Multi class queueing network, class c  C S(c,x) set of states queue contains one more class c than in state x Arrival rate class c customer Departure rate class c customer Characterise QR, combine QR vs R: stronger condition on arrival process, but weaker form of balance

Quasi-reversibility: network Multi class queueing network, class c  C J queues Customer type identifies route Poisson arrival rate per type(i), i=1,…,I Route r(i,1), r(i,2),…,r(i,S(i)) Type i at stage s in queue r(i,s) State X(t)=(x1(t),…,xJ(t)) Construct a network by multiplying the rates for the individual queues Arrival of type i causes queue k=r(i,1) to change at Departure type i from queue j = r(i,S(i)) Routing

Quasi-reversibility: network Theorem : For an open network of QR queues (i) the states of individual queues are independent (ii) an arriving customer sees the equilibrium distri bution (ii’) the equibrium distribution for a queue is as it would be in isolation with arrivals forming Poisson process. (iii) time-reversal: another open network of QR queues (iv) system is QR, so departures form Poisson process Proof of part (i)

Symmetric queues; insensitivity Operation of the queue j: (i) Each job requires exponential(1) amount of service. (ii) Total service effort supplied at rate j(nj) (iii) Proportion  j(k,nj) of this effort directed to job in position k, k=1,…, nj ; when this job leaves, his service is completed, jobs in positions k+1,…, nj move to positions k,…, nj -1. (iv) When a job arrives at queue j he moves into position k with probability j(k,nj + 1), k=1,…, nj +1; jobs previously in positions k,…, nj move to positions k+1,…, nj +1. Symmetric queue is insensitive

Quasi-reversiblity vs Partial balance QR: fairly general queues, service disciplines, Markov routing, product form equilibrium distribution factorizes over queues. PB: fairly general relation between service rate at queues, state-dependent routing (blocking), product form equilibrium distribution factorizes over service and routing parts. Identical for single type queueing network with Markov routing

Exercises [R+SN] 3.1.2, 3.2.3, 3.1.4, 3.1.3, 3.1.6, 3.3.2

Exercise: Optimal design of Jackson network (1) Consider an open Jackson network with transition rates Assume that the service rates and arrival rates are given Let the costs per time unit for a job residing at queue j be Let the costs for routing a job from station i to station j be (i) Formulate the design problem (allocation of routing probabilities) as an optimisation problem. (ii) Provide the solution to this problem

Exercise: Optimal design of Jackson network (2) Consider an open Jackson network with transition rates Assume that the routing probabilities and arrival rates are given Let the costs per time unit for a job residing at queue j be Let the costs for routing a job from station i to station j be Let the total service rate that can be distributed over the queues be , i.e., (i) Formulate the design problem (allocation of service rates) as an optimisation problem. (ii) Provide the solution to this problem (iii) Now consider the case of a tandem network, and provide the solution to the optimisation problem for the case for all j,k