Docsity

Assignment 7 for Communication Networks | CS 438, Assignments of Organizational Communication

Toggle sidebar
bg1
CS/ECE 438: Communication Networks Fall 2006
Problem Set 7 Solutions
1. Fair Queueing
Consider the following packet arrivals:
Flow 1 A:5, B:4, C:6, D:7
Flow 2 E:6, F:7, G:2, H:4, I:6
Flow 3 J:1, K:5, L:1, M:1, N:6, O:5, P:4
Flow 4 Q:6, R:6, S:6, T:5
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 Ais 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: EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
Flow 3: JJJKKKKKKKKKKKKKKKLLLMMMNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOPPPPPPPPPPPP
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.
2. Random Early Detection
Consider a RED gateway with MaxP = 0.025, Max Threshold = 20, Min Threshold = 10, and the
current queue length = 15.
(a) Find the drop probability Pcount for count = 1, 10, 50
tempP =maxP āˆ—15 āˆ’10
20 āˆ’10 = 0.0125
P=tempP
1āˆ’count āˆ—tempP
P1ā‰ˆ0.0127
P10 ā‰ˆ0.0143
P50 ā‰ˆ0.0333
1
pf2

Partial preview of the text

Download Assignment 7 for Communication Networks | CS 438 and more Assignments Organizational Communication in PDF only on Docsity!

CS/ECE 438: Communication Networks Fall 2006

Problem Set 7 Solutions

  1. Fair Queueing Consider the following packet arrivals:

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.

  1. Random Early Detection Consider a RED gateway with MaxP = 0.025, Max Threshold = 20, Min Threshold = 10, and the current queue length = 15.

(a) Find the drop probability Pcount for count = 1, 10, 50

tempP = maxP āˆ—

P =

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.

  1. Queueing Theory

(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.