Presentation is loading. Please wait.

Presentation is loading. Please wait.

Performance analysis for high speed switches Lecture 6.

Similar presentations


Presentation on theme: "Performance analysis for high speed switches Lecture 6."— Presentation transcript:

1 Performance analysis for high speed switches Lecture 6

2 The M/M/1 Queueing System

3 The M/M/1 Queueing System consisits of a single queueing station with a single server. The name M/M/1 reflects standard queueing theory nomenclature whereby: –The first letter indicates the nature of the arrival process. e.g., M stands for memoryless, which here means a Poisson process, G stands for a general distribution of interarrival time, D stands for deterministic interarrival times. –The second letter indicates the nature of the probability distribution of the service times. –The last number indicates the number of servers.

4 The M/M/1 Queueing System We have already established, via Little’s Theorem, the relations Between the basic quantities, N = Average number of customers in the system T = Average customer time in the system N Q = Average number of customers waiting in queue W = Average customer waiting time in queue Given these statistics, we will be able to derive the steady-state probabilities –p n = Probability of n customers in the system, n = 0,1, … From these probabilities, we can get and using Little’s Theorem,

5 Arrival statistics—the Poisson process A stochastic process taking nonnegative integer values is said to be a Poisson process with rate λif –A(t) is a counting process that represents the total number of arrivals that have occurred from 0 to t, and for s < t, A(t)-A(s) equals the numbers of arrivals in the interval (s, t]. –The numbers of arrivals that occur in disjoint time intervals are independent. –The number of arrivals in any interval of length τ is Poisson distributed with parameter. That is, for all t, τ> 0,

6 Arrival statistics—the Poisson process (Cont) We list some of the properties of the Poisson process that will be of interest: –Interarrival times are independent and exponentially distributed with parameter λ; that is, if t n denotes the time of the n th arrival, the intervals have the probability distribution and are mutually independent. –For every and, where we generically denote by o(δ) a function of δsuch that

7 Arrival statistics—the Poisson process (Cont) We list some of the properties of the Poisson process that will be of interest: –If two or more independent Poisson processes are merged into a single process, the latter process is Poisson with a rate equal to the sum of the rates of its components. –If a Poisson process is split into two other processes by independently assigning each arrival to the first (second) of these processes with probability p ( 1-p, respectively), the two arrival processes thus obtained are Poisson.

8 Service Statistics Our assumption regarding the service process is that the customer service times have an exponential distribution with parameter μ, that is, if s n is the service time of the n th customer, An important fact regarding the exponential distribution is its memoryless character, which can be expressed as for the interarrival and service times and,respectively Verification of the memoryless property follows the calculation

9 Markov Chain Formulation Let us focus attention at the times where δis a small positive number. We denote N k = Number of customers in the system at time Let denote the corresponding transition probabilities We can show that

10 Derivation of the Stationary Distribution Consider now the steady-state probabilities The probability that the system is in state n and makes a transition to n+1 in the next transition is the same as the probability that the system is in state n+1 and makes a transition to n, that is,

11 Derivation of the Stationary Distribution (Cont.) By taking the limit in the equation as we obtain These equations can also be written as where It follows that If, the probabilities p n are all positive and add up to unity, so Combing the last two equations, we finally obtain

12 Derivation of the Stationary Distribution (Cont.) We can now calculate the average number of customers in the system in steady-state: and finally, using, we have The average delay per customer is given by Little’s Theorem, Using, this becomes

13 Derivation of the Stationary Distribution (Cont.) The average waiting time in queue, W, is the average delay T less the average service time 1/μ, so By Little’s Theorem, the average number of customers in queue is Average Number in the system N Utilization Factor

14 Occupancy Distribution upon Arrival The steady-state occupancy probabilities upon arrival, need not be equal to the corresponding unconditional steady-state probabilities, It turn out, however, that for the M/M/1 system, we have

15 Occupancy Distribution upon Arrival (Cont.) A formal proof under the preceding assumption: –Let –We have, using Bayes’ rule, –By assumption, the event A(t, t+δ) is independent of the number in the system at time t, therefore, and we obtain

16 Occupancy Distribution upon Departure Let us consider the distribution of the number of customers in the system just after a departure has occurred, that is, the probabilities The corresponding steady-state values are denoted It turns out that

17 The M/G/1 Queueing System

18 The M/G/1 System Let The Pollaczek-Khinchin(P-K) formula: where W is the expected customer waiting time in queue and The total waiting time, in queue and in service, is

19 M/G/1: System (Cont.) Appling Little’s formula to W and T, we get the expected number of customers in the queue N Q and the expected number in the system N: Under exponential service time, i.e.,, When service time is deterministic, i.e.,

20 M/G/1: System (Cont.) Denote – = Waiting time in queue of the ith customer – = Residual service time seen by the ith customer. By this we mean that the customer j is already being serve when i arrives, is the remaining time until customer j’s service time is complete. If no customer is in service(i.e., the system is empty when i arrives), then is zero – = Service time of the ith customer – = Number of customers found waiting in queue by the ith customer upon arrival We have

21 M/G/1: System (Cont.) By taking expectations and using the independence of the random variable and, we have Taking the limit as, we obtain where R = Mean residual time, define as

22 M/G/1: System (Cont.) By Little’s Theorem, we have and by substitution in the waiting time formula, we obtain where is the utilization factor; so finally,

23 M/G/1: System (Cont.) The time average of in the interval [0,t] is where M(t) is the number of service completions within[0,t], and X i is the service time of the i th customer. We can also write this equation as and assuming the limits below exist, we obtain Assuming that time averages can be replaced by ensemble averages, we obtain The P-K formula,

24 Crossbar Switches Crossbar switches are an important general architecture for fast switches. 2 x 2 Crossbar Switches A general N x N crossbar switch

25 Input Queueing versus Output Queueing Input Queueing -- "If we come in together then we wait together" Output Queueing -- "We wait at the destination (output) together"

26 The queueing will be at the input or at the output ? The switch fabric speed is equal to the input line speed –To avoid collision on the single speed switch fabric, only one input line can can place a packet on the switch fabric at a time. This requires the other inputs to stop the packet from entering the switch fabric. This is implemented using an queue at the input. The switch fabric speed is N times faster than the input line speed –The internal switch has slot times which are N times as fast as those of the input lines. The packets enter the crossbar switch together and are shifted to the outputs together. This requires queueing at the outputs to avoid collisions.

27 General Assumptions for Analysis In any given time slot, the probability that a packet will arrive on a particular input is p. Thus p represents the average utilization of each input. Each packet has equal probability 1/N of being addressed to any given output, and successive packets are independent.

28 Analysis of Output Queueing 1 1 1 1 p= load as N   Poisson Distribution. Switch with Speedup factor of N. Arriving packets reach the targeted output ”immediately”. = # arriving packets at the tagged queue during a given time slot m

29 Analysis of the Output Queue Size : the number of packets in the tagged queue at the end of the time slot m Using a standard approach in queueing analysis The mean stead-state queue size The mean queue size for an M/D/1 queue As

30 The State transition diagram for the output queue size 2 01 …

31 The Steady-State Queue Size Probabilities …

32 Analysis of the Packet Waiting Time The time slots that packet must wait while packets that arrived in earlier time slots are transmitted The time slots that packet must wait additionally until it is randomly selected out of the packet arrivals in the time slot m

33 Analysis of the Packet Waiting Time b: the size of the batch the packet arrives in

34 Analysis of the Packet Waiting Time the mean steady-state waiting time The mean waiting time for an M/D/1 queue

35 Analysis of the Packet Waiting Time The steady-state waiting time probabilities:

36 Analysis of Input Queueing More complex system to analyze than output queueing case. In order to analyze it, we make a simplifying assumption of "heavy load", i.e. all queues are always full. This is a worst-case assumption.

37 1 2 3 4 1 1 4 3 Outputs Internally Nonblocking Switch Losing packet Winning packet Input Queues cannot access output 2 because it is blocked by the first packet 3 2 head-of-line (HOL) blocking

38 for large N For p=1,  0 = 0.632 1 2 3 2 Pr[ carry a packet ] = p  0 = Pr[ carry a packet ] Internally Nonblocking Switch: Dropping packets

39 1 2 3 4 Outputs Internally Nonblocking Switch (input, output) Fictitious Output Queues formed by HOL packets (1,2)(1,1) (2,3)(2,1) (3,2) (4,4)(4,1) (1,2)(3,2) (2,3) (4,4)Output 4 Output 3 Output 2 Output 1 the fictitious output queues used for analysis the fictitious output queues used for analysis

40 –How about small N?  * : the maximum throughput with input queueing –Simulation Results with Large N N ** 2 0.75 3 0.68 4 0.66 5 0.64

41 –Consider a fictitious queue i = # packets at start of time slot m. = # packets arriving at start of time slot m. – – is Poisson and independent of as N   – Throughout of Input-Buffered Switch

42 i 1 i 2 2 i 1 i i 1 2 3 time slot m time slot m-1 e.g. Fictitious Queue i

43 – under saturation – –

44 Meaning of Saturation Throughput p 0 =  p = throughput For finite buffer size, if p 0 > p * = 0.586 at least (p 0 - p * )/ p 0 fraction of packets are dropped. Must keep p 0 < p * Input Queue

45 Output 1 Fictitious QueuesOutput 2 Output N Input Queue Time spent in HOL are independent for successive packets when N is large Service times at different fictitious queues are independent 2N HOL 1/N Queuing scenario for the delay analysis of the input-buffered switch

46 X0X0 X3X3 X2X2 X 1  X 0  Busy period Idle period Busy period Y t U(t) Arrivals here are considered as arrivals in intervals i-2 Arrivals here are considered as arrivals in intervals i-1 X i-1 XiXi The busy periods and interpretations for delay analysis of an input queue

47 m i =2 prior arrivals Arrival of the packet of focus. One simultaneous arrival to be served before the packet; L=1. Departure of packet of focus. XiXi X i+1 RiRi W -- Packet arrival in interval i. -- packet departure in interval i+1. -- number of arrivals(n) (1) (2) Illustration of the meanings of random variables used in the delay analysis of an input queue

48 Three Selection Policies Random Selection Policy –If k packets are addressed to a particular output, one of the k packets is chosen at random, each selected with equal probability 1/k. Longest Queue Selection Policy –The controller sends the packet from the longest queue Fixed Priority Selection Policy –The N inputs have fixed priority levels and of the k packets, the controller send the one with highest priority

49 W _ p0p0 Different contention-resolution policies have different waiting time versus load relationships, but a common maximum load at which waiting time goes to infinity.

50 Conclusion Mean queue length are always greater for queueing on inputs than on outputs Output queues saturate only as the utilization approaches unity Input queues saturate at a utilization that depends on N, but is approximately 0.586 when N is large


Download ppt "Performance analysis for high speed switches Lecture 6."

Similar presentations


Ads by Google