

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Flow 1 A:5, B:4, C:6, D: Flow 2 E:6, F:7, G:2, H:4, I: Flow 3 J:1, K:5, L:1, M:1, N:6, O:5, P: Flow 4 Q:6, R:6, S:6, T:
Assume that at the current time, all the packets have arrived and are now sitting in the per-flow queues. The number after the colon is the size of the packet, so packet A is 5 units in size.
(a) List the order of departure of these packets under the packetized weighted fair queuing scheme, with equal weights for each flow. Break ties by going with the lowest-numbered flow. Bit-by-bit schedule is:
Flow 1: AAAAABBBBCCCCCCDDDDDDD Flow 2: EEEEEEFFFFFFFGGHHHHIIIIII Flow 3: JKKKKKLMNNNNNNOOOOOPPPP Flow 4: QQQQQQRRRRRRSSSSSSTTTTT
Order of departure is therefore: J, A, E, K, Q, L, M, B, R, F, N, C, G, S, H, O, D, P, T, I. (b) Now list the order of departure assuming that the four flows have weights 3, 1, 2, 1 respectively. To model different sending weights, we multiply packet sizes for the flows by 2, 6, 3, 6 respectively. Then we have Flow 1: AAAAAAAAAABBBBBBBBCCCCCCCCCCCCDDDDDDDDDDDDDD Flow 2:Flow 3: EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJJJKKKKKKKKKKKKKKKLLLMMMNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOPPPPPPPPPPPP Flow 4: QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT Order of departure is therefore: J, A, B, K, L, M, C, E, Q, N, D, O, P, R, F, G, S, H, T, I.
(a) Find the drop probability Pcount for count = 1, 10, 50
tempP = maxP ā
tempP 1 ā count ā tempP P 1 ā 0. 0127 P 10 ā 0. 0143 P 50 ā 0. 0333
(b) Find the probability that there are no drops after 50 packets. You may want to write a short program to perform the calculation. This is: (1 ā P 1 )... (1 ā P 50 ) ā 0. 367
(c) Find the probability that there are no drops after 80 packets. This probability is 0 since P 79 = 1. 0 , so the 79th packet will always be dropped.
(a) Consider an M/M/1 queue with infinite buffer capacity, where λ = 0.5 and μ = 0.6. Compute the average queue size (Navg ), the expected waiting time (Tavg ), and the queue utilization.
Navg = Ī»/μ 1 ā Ī»/μ
Tavg =
Navg Ī»
Ļ = Ī»/μ = 0. 83
(b) Suppose that the queue now has a finite capacity of 3 units. Derive the probability pi for the queue having i elements at any given time, for i = 0, 1 , 2 , 3. The balance equations still apply. We have that p 1 = Ī»/μp 0 , p 2 = Ī»/μp 1 , p 3 = Ī»/μp 2 , and p 0 + p 1 + p 2 + p 3 = 1. Therefore, p 0 ā 0. 321 , p 1 ā 0. 268 , p 2 ā 0. 224 , p 3 ā 0. 187.