480 likes | 705 Views
3.6. Queueing networks. Multi-dimensional systems Introduction to queueing networks Symmetric queueing systems, Jackson’s theorem Closed networks : single chain Closed networks : several chains Egyéb kérdések. Multi-service queueing systems – 1.
E N D
3.6 Queueingnetworks • Multi-dimensional systems • Introduction to queueing networks • Symmetric queueing systems, Jackson’s theorem • Closednetworks: singlechain • Closednetworks: severalchains • Egyéb kérdések
Multi-service queueing systems – 1. In reversible systems , the departure process is of the same type as the arrival process, in the investigated cases: Poisson processes. In this case several queueing systems may be combined into a network of queueing systems. Customers of same type (class, service, stream) belong to a specficchain, a queueing system is a node in a queueing network In multi-service queueing systems and in queueing networks the waiting time is defined as the total sojourn time , including the service time, s. E.g. if in the Internet, the bandwidth is smaller than requested, then the mean transfer time Wt will be bigger then s and the increase, i. e. is defined as the mean virtual waiting time The available bandwidhtn is expressed as BBU-s (Basic Bandwidht Unit) BBU might be: channel, time slot, server.
Multi-service queueing systems – 2. Example. In general there are N PCT1 input processes with j arrival and μ1 departure intensities (j = 1 … N) (The exact value of the μi departure intensities requires further consideration !)
Multi-service queueing systems – 3. PS: ProcessorSharing PR: PreemptiveResume
Queueingnetworks, introduction – 1. • A queueing system consists of nodes (group of servers with the same function) and requests travelling from node to node. • In queueing networks we define the queue-length in a node as the total number of customers in the node, including customers being served. • A queueing network might be: • open – the number of requests may change, i. e. M/M/n • closed– the number of requests is fixed, i.e. Palm’s machine repair model • The departure process from one node is the arrival process at another node, special attention should be payed to the departure process
p22 Queueingnetworks, introduction – 2. Fournodes. Fouropenchains. State: where: givesthenumber of requestsinnodek and pj,kis theprobability, that a requesthavingleft nodej. is directedtonodek.
Symmetric systems • The queueing system is symmetric if both the arrival and the departure processes are Poissonian. • The four models: • M/M/nstate probabilitiesand • M/G/∞*state probabilities(Poisson !) • M/G/1–PS* state probabilities • M/G/1-LCFS-PR* state probabilities * immediate service! Reversibility PS = Processor Sharing PR = Preemptive Resume
Jackson’s theorem– 1. Jackson’s theorem: Consider an open queueing network with K nodessatisfying the following conditions:
Jackson’s theorem – 2. Further if denotes the state probabilities (ik requests are at node k), there is a statistical equilibrium, and is valid, then the state probabilities haveproduct form: Jackson’s first model refers only to open queueing systems
Jackson’s theorem – 3. • InJackson'ssecondmodelthe arrival intensity from • outside: • may depend on the current number of customers in the network, • furthermore, μkcan dependon the number of customers at node k. In this way, we can model queueing networks which • are either closed, open, or mixed. In all three cases, the state probabilities have productform.
Independence assumption Kleinrock’s independence assumption If we consider a real-life data network, then the packets will have the same constant length,and therefore the same service time on all links and nodes of equal speed. The theory ofqueueing networks assumes that a packet (a customer) samples a new service time in everynode. This is a necessary assumption for the product form. This assumption was firstinvestigated by Kleinrock (1964 [66]), and it turns out to be a good approximation in praxis.
Single open chain Open system One has to find the state probabilities where ikis the number of requests in node k. Steps: 1. solution of 2. using μi–s one may get Ai –k. 3. by considering Erlang's delay system one may get the state probabilities for each node.
Single closed-chain – 1. Convolution algorithm for closed networks We only know the relativeload at each node, not the absolute load, i.e. cΛjis obtained, but c is unknown. Wecan obtain the relative state probabilities. Finally, by normalizing we get the normalizedstate probabilities.Largesystem complexrun. Steps:
Single closed-chain – 2. Convolution algorithm for closed networks Steps:
Singleclosed-chain – 4. CPU M/M/1 node Terminals M/G/1 – IS* node Example 12.4.1 λ1= λ λ2= λ See details in the Textbook *IS = Immediate Service – There is always a free terminal for the new task.
Single closed-chain – 5. Assumptions: S constant. S circulating jobs. The CPU andthe I/O channelsserve each job several times. A departing job will immediatly replaced by a new on. exponentialholding times s = 1/μ Example 12.4.2S = 4 K = 3 (CPU + 2 I/O) See details in the Textbook
Singleclosed-chain – 6. MVA (MeanValueAlgorithm) Remember! K nodes, S jobs (in a single chain), αkrelative traffics. Recursion according the number x of jobs. At node kthere are Lk(x)jobs on the average.
Singleclosed-chain – 7. Steps: (Preemptive Resume) (Processor Sharing) average sojourn time!! itt azonnal kiszolgálják sk is theaverage holding timeinnodek which has nkservers.
Singleclosed-chain – 8. There is no waiting in the system, if x=1Wk (1) = sk Example for nk = 1 but the method might be generalized for any nk.
Singleclosed-chain – 9. Example 12.4.3(= 12.4.2 but with MVA) K=3, S=4, Recursion formulae: relative k values: See details in the Textbook
BCMP queueing networks Queueing networks with more than one type of customers also have product form state probabilities. (Generalization of Jackson’s second model. BCMP Baskett, Chandy, Muntzés Palacios - 1975) Necessary conditions: BCMP–networks can be evaluated with the multi-dimensional convolution algorithm and themultidimensional MVA algorithm.
Mixed queueing networks Mixed queueing networks (open & closed) are calculated by first calculating the traffic load ineach node from the open chains. This traffic must be carried to enter statistical equilibrium.The capacity of the nodes are reduced by this traffic, and the closed queueing network iscalculated by the reduced capacity. So the main problem is to calculate closed networks.For this we have more algorithms among which the most important ones are convolutionalgorithm and the MVA (Mean Value Algorithm) algorithm.
4. Traffic measurement • Principles and methods • Theory of sampling • Continuous measurement • Scanning
Introduction • Traffic measurement gathering of data about thetraffic of real or fictisous systems which serve requests arriving in a random way. • A minimum of technical and administrative efforts should result in a maximum of information andbenefit. • A measurement during a limited time intervalcorresponds to a registration of a certain realizationof the traffic process. • Margin of error condfidence interval. • For practical purposes it is in general sufficientto know the mean value and the variance.
Principles, methods – 1. Whatdowemeasure? Howdowemeasure? Continuous measurement the measuring point is active, it activates the measuring equipment at the instant of the event Scanning the measuring point is passive, the measuring equipment itself tests from time to time, if any changes have taken place. Events arrival of requests, number of jobs, number of lost requests, etc. Time intervals holding times, waiting times, execution times of jobs, etc.
Principles, methods – 2. • Continuousmeasurement - examples: • electro-mechanicalcounters (e.g. number of copies) • x-yplotters (earthquakesurvaillance) • Ampere-hourmeters • watermeters • Scanning - examples: • call-chargingimpulses • measuring of carriedtrafficbyrepeatedscans
Principles, methods – 3. Busy state of servers: actual scanned
Principles, methods – 4. Registration of changes
Theory of sampling – 1. A sample of n IDD*observations with unknown finite mean value m1 and finite variance б2are available (population parameters) The average value and variance of the sample: These are functions of a rv., they are rv.-s also(sample distribution) andrepresent an estimation of the average value and variance of the unknown population: (corrected empirical variance) *IDD= Independent and Identically Distributed
Theory of sampling – 2. The accuracy of an estimate of a sample parameter is described by means of a confidence interval : This is valid, if the samples are independent. Independence is fulfilled, if measurements take place on different days, but samples are not independent for a samples taken by scanning in a limited time interval.
Theory of sampling – 3. Percentiles of the t−distribution with n degrees of freedom. A specific value of αcorresponds to a probability mass α/2in both tails of the t−distribution. When n is large,then we may use the percentiles of the Normal distribution.
Theory of sampling – 4. Mean value of sample Corrected empirical variance
Continuous measurement– 1. Time intervals marked by full lines are measured in case a. and b.,respectively. Relationships valid for stochastic sums might in principle be applied if the measuring period is unlimited. Application in practice is possible with precaution !
Stochastic sum - 1. From the mathematical point of view the evaluation of the measurement consist of calculating the sum of a random amount of random variables Service without congestion. Arrival process and holding times are independent. The number of arriving requests in the given period of length T is a random variable: N. Ti. gives the holding time of the i-th incoming request.Distribution of Ti –s is uniform. Total traffic in T See 2.3.3 of Textbook
Stochastic sum - 2. The problem in graphical form: A stochastic sum may be interpreted as a series/parallel combination of random variable. Ti and N are stochastically independent
Stochastic sum 3. For a given i-th branch: mean value variance second non-central moment For all ibranches: variance, since the number of holding times is an r.v. variance, since the holding time is an r.v.
Continuous measurement – 2. • Applying the relationships of the „stochastic sum”: • The amount of traffic (holding times) and traffic • intensity (arrival of requests) should be independent. • This is fulfilled, if congestion is negligible. • Assumption: Poisson input process Number of requests in interval T: Thus the required service time i.e. traffic: Palm’s form factor The first and second non-central moments of the holding time.
Continuous measurement – 3. The distribution ST of the stochastic sum is a compound Poisson distribution. represents amount of traffic. The average value of the number occupied servers represents traffic intensity = the amount of traffic per time unit if the time unit equals the average holding time: Valid for any holding time distribution !
2.9) Continuous measurement – 4. Independent of holding time distribution. Depends on holding time distribution See the following Figure ! Relative accuracy of measurement: The measurement of smaller intensities is more precise!!
Result of holding time measurements Figure 1.18: Frequency function for holding times of trunks in a local switching centre.
Scanning measurement – 1. Constant scanning interval (h) The continuously distributed holding time is approximated with a discretely distributed holding time. The continuous time intervals may overlap. Estimation is therefore more difficult.
Scanning measurement – 2. If the real holding times have a distribution function F(t), thenit can be shown that one will observe the following discrete distribution: It can also be shown that for any distribution function F(t) one will always observe the correct mean value:
Scanning measurement – 3. For exponential holding times – the so called Westerberg distribution may be observed: !!!
Scanning measurement – 4. Sampling measurement Continuous measurement for exponential distribution: 2A/T ≠ butit =, ifh 0 Measurement by scanning = sampling from a sample!!
Final overview Info-communication systems handle service requests the totality of which is simply denominated as traffic. Traffic handling capacity has an influence on service quality. Arrivals and holding times of service requests in info-communication systems have random nature, their forecasting is not simple. Traffic handling capacity can be estimated by mathematical models and computer simulation. Nowadays the importance of network traffic management methods e.g. software basedrouting algorithms is increasing. Network planning requires some understanding of traffic engineering.