Docsity

Problem Set 4 for Communication Networks | ECE 438, Assignments of Organizational Communication

Toggle sidebar
bg1
CS/ECE 438: Communication Networks Fall 2007
Problem Set 5 Due Wednesday, Dec 5
1. Slow Start
Assume a connection with RTT=50ms, MSS=1000 bytes. Ignoring overhead spent on headers, calculate
the transfer time and the effective throughput for transferring a 1 MB file. Assume there are no losses
and that both the connection bandwidth and the receiver window are infinite (and in particular, not
limited to 64K).
(a) Calculate the transfer time and effective throughput for TCP using slow start.
(b) Calculate the transfer time and effective throughput supposing TCP used additive increase, start-
ing with a window size of 1 MSS and increasing it by 1 MSS every RTT.
2. TCP Fairness
Suppose there are two connections, A and B, sharing a 14 Kbit link. Let us simplify the TCP congestion
control protocol to include the following assumptions:
•1 MSS = 1000 bits
•the two connections increase their window sizes by 1 MSS per RTT, in lock-step, whenever their
aggregate bandwidth is less than or equal to 14 Kbits
•when the aggregate bandwidth is greater than 14 Kbits, both connections simultaneously decrease
their window size to 1/2 of the previous size. The window is rounded up to the next MSS size.
(a) Supp ose A’s window is currently 13000 bits and B’s window is 1000 bits, and both their RTTs
are 1s. Show how the window sizes change after 20s
(b) Supp ose A and B both have a window of 1000 bits, A has RTT of 1s and B has RTT of 2s. Show
how the window sizes change after 20s. (Assume that whenever the aggregate bandwidth exceeds
14 Kbit, the next window of each of the connection will be cut in half.)
3. Fair Queueing
Consider the following packet arrivals:
Flow 1 A:4, B:6, C:7, D:1, E:4
Flow 2 F:7, G:5, H:3, I:4, J:1
Flow 3 K:4, L:5, M:1, N:2, O:7, P:3
Flow 4 Q:4, R:1, S:2, T:3, U:5, V:2, W:6
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.
(b) Now list the order of departure assuming that the four flows have weights 1, 3, 1, 2 respectively.
4. Random Early Detection
Consider a RED gateway with MaxP = 0.02, Max Threshold = 30, Min Threshold = 10, and the
current queue length = 20.
(a) Find the drop probability Pcount for count = 1, 10, 50
(b) Find the probability that there are no drops after 50 packets. You may want to write a short
program to perform the calculation.
(c) Find the probability that there are no drops after 100 packets.

Partial preview of the text

Download Problem Set 4 for Communication Networks | ECE 438 and more Assignments Organizational Communication in PDF only on Docsity!

CS/ECE 438: Communication Networks Fall 2007

Problem Set 5 Due Wednesday, Dec 5

  1. Slow Start Assume a connection with RTT=50ms, MSS=1000 bytes. Ignoring overhead spent on headers, calculate the transfer time and the effective throughput for transferring a 1 MB file. Assume there are no losses and that both the connection bandwidth and the receiver window are infinite (and in particular, not limited to 64K).

(a) Calculate the transfer time and effective throughput for TCP using slow start. (b) Calculate the transfer time and effective throughput supposing TCP used additive increase, start- ing with a window size of 1 MSS and increasing it by 1 MSS every RTT.

  1. TCP Fairness Suppose there are two connections, A and B, sharing a 14 Kbit link. Let us simplify the TCP congestion control protocol to include the following assumptions: - 1 MSS = 1000 bits - the two connections increase their window sizes by 1 MSS per RTT, in lock-step, whenever their aggregate bandwidth is less than or equal to 14 Kbits - when the aggregate bandwidth is greater than 14 Kbits, both connections simultaneously decrease their window size to 1/2 of the previous size. The window is rounded up to the next MSS size.

(a) Suppose A’s window is currently 13000 bits and B’s window is 1000 bits, and both their RTTs are 1s. Show how the window sizes change after 20s (b) Suppose A and B both have a window of 1000 bits, A has RTT of 1s and B has RTT of 2s. Show how the window sizes change after 20s. (Assume that whenever the aggregate bandwidth exceeds 14 Kbit, the next window of each of the connection will be cut in half.)

  1. Fair Queueing Consider the following packet arrivals:

Flow 1 A:4, B:6, C:7, D:1, E: Flow 2 F:7, G:5, H:3, I:4, J: Flow 3 K:4, L:5, M:1, N:2, O:7, P: Flow 4 Q:4, R:1, S:2, T:3, U:5, V:2, W:

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. (b) Now list the order of departure assuming that the four flows have weights 1, 3, 1, 2 respectively.

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

(a) Find the drop probability Pcount for count = 1, 10, 50 (b) Find the probability that there are no drops after 50 packets. You may want to write a short program to perform the calculation. (c) Find the probability that there are no drops after 100 packets.