Docsity

Homework #4 on Computer Communications with Resolution | ECE 3076, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
Name_______________________GT#___gt _ _ ____ Sec.__
ECE3076 Homework 4 (answers)
Due: Wednesday Oct. 3, 2007 (before class - we will discuss in class, so no late submissions accepted)
1. TCP with Slow-Start and no Congestion A 20 Mbps network connection has a 50 ms round trip time (RTT). A
server begins sending maximum-size (MSS) packets (after the initial SYN-ACK). The client ACK's every packet,
and has a receiver-window which holds 12 maximum-size (1200 byte) packets. Show how many TCP segments
(packets) are sent in each RTT period below:
Time Period Start
(ms)
No. Segments sent
0 (SYN-ACK)
50 1
100 2
150 4
200 8
250 12
300 12
If the MSS is 1200 bytes, what is the average transmission rate during the first 200 ms (include bytes sent at periods
50-200 ms)? _____14 * 1200 * 8 / 0.2s = 672,000 ________ (bps)
What is the maximum transfer rate after slow-start is done (bytes/second)? 12 * 1200 * 8 / 0.05s = 2,304,000 (bps)
2. Bandwidth-Delay Product (aka - "Data in the Pipeline")
a. What does TCP guarantee that UDP does not (for byte-stream sent in multiple packets)?
________________In-order, complete delivery (with no duplications)__________________________
b. If the round-trip time (RTT) for a dedicated 100 Mbit/s connection to California is 30 ms,
what is minimum TCP widow size that will allow this channel to be fully utilized? _375,000___ (bytes)
This value is called the Bandwidth-Delay Product, BDP (or data-in-the pipeline).
c. What will the maximum throughput be if the window is 37.5 kbytes in the example above? _10 M__ (bits/s)
[easy - Rate * Window / BDP ]
d. What will the maximum throughput be if the window is 200 kbytes in the example above? _100M__ (bits/s)
[easy - full Rate if Window > BDP]
3. TCP and UDP Checksum
a. What is the one's compliment 8-bit checksum of the following 8-bit binary numbers: _____10111111___
1 0 1 1 1 0 0 1
1 0 0 0 0 1 1 0
1 0 0 1 1 1 1 1 1
0 1 0 0 0 0 0 0 (after overflow wrap-around)
1 0 1 1 1 1 1 1 (after bit-wise inversion)
b. On a shared network, the buffer delay (and RTT) may increase due to congestion. Circle the right answer:
This will increase
increase
/
decrease
the packets/s being sent into the network, and ease / worsen
/ worsen the congestion .
c. On a shared network, the average sender-window size may decrease due to lost packets. Circle the right answer:
This will increase
increase
/
decrease
the packets/s being sent into the network, and ease / worsen
/ worsen the congestion .
ECE3076 HW-3 p.1
pf2

Partial preview of the text

Download Homework #4 on Computer Communications with Resolution | ECE 3076 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

Name_______________________GT#gt _ _ ____ Sec. ECE3076 Homework 4 (answers) Due: Wednesday Oct. 3, 2007 (before class - we will discuss in class, so no late submissions accepted) 1. TCP with Slow-Start and no Congestion A 20 Mbps network connection has a 50 ms round trip time (RTT). A server begins sending maximum-size (MSS) packets (after the initial SYN-ACK). The client ACK's every packet, and has a receiver-window which holds 12 maximum-size (1200 byte) packets. Show how many TCP segments (packets) are sent in each RTT period below: Time Period Start (ms) No. Segments sent 0 (SYN-ACK) 50 1 100 2 150 4 200 8 250 12 300 12 If the MSS is 1200 bytes, what is the average transmission rate during the first 200 ms (include bytes sent at periods 50-200 ms)? _____14 * 1200 * 8 / 0.2s = 672,000 ________ (bps) What is the maximum transfer rate after slow-start is done (bytes/second)? 12 * 1200 * 8 / 0.05s = 2,304,000 (bps) 2. Bandwidth-Delay Product (aka - "Data in the Pipeline") a. What does TCP guarantee that UDP does not (for byte-stream sent in multiple packets)? ________________In-order, complete delivery (with no duplications)__________________________ b. If the round-trip time (RTT) for a dedicated 100 Mbit/s connection to California is 30 ms, what is minimum TCP widow size that will allow this channel to be fully utilized? **375,000** _ (bytes) This value is called the Bandwidth-Delay Product, BDP (or data-in-the pipeline). c. What will the maximum throughput be if the window is 37.5 kbytes in the example above? _ 10 M __ (bits/s) [easy - Rate * Window / BDP ] d. What will the maximum throughput be if the window is 200 kbytes in the example above? _ 100M __ (bits/s) [easy - full Rate if Window > BDP]

3. TCP and UDP Checksum a. What is the one's compliment 8-bit checksum of the following 8-bit binary numbers: _____ 10111111 ___ 1 0 1 1 1 0 0 1 1 0 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 0 0 0 0 0 (after overflow wrap-around) 1 0 1 1 1 1 1 1 (after bit-wise inversion) b. On a shared network, the buffer delay (and RTT) may increase due to congestion. Circle the right answer: This will (^) increaseincrease / decrease the packets/s being sent into the network, and ease / worsen/ worsen the congestion. c. On a shared network, the average sender-window size may decrease due to lost packets. Circle the right answer: This will increaseincrease / decrease the packets/s being sent into the network, and ease / worsen/ worsen the congestion. ECE3076 HW-3 p. 1

Name_______________________GT#_gt _ _ ____ Sec.

  1. Calculating Round-Trip Time Between hosts A in Atlanta and B in Seattle there are 2 routers (X, Y). The link between the routers (---) is 10 Mbps. The access links (LANs, ===) are 1000 Mbps. The distance from A to B is 2500 km. Host A starts to send a large file using TCP, sending 1500 byte packets to host B. B ACKs with 40 byte packets. There is no other traffic on this network. Use 200 m/us (2e8 m/s) as the signal propagation speed. A ===X-------------------Y===B If CongWin is fixed at 60,000 bytes (neglect Slow-Start and CongWin changes due to lost packets)): What is the propagation delay for the round trip in milliseconds : _2.5e6/2e8 *1000 = 12.5 _ ms If the router buffers are empty, what is the round trip time (neglect processing delay)? 12.5 + 1.3 = 13.8 ms Transmission time = (1500+40 bytes) * 8 *( 1/1e7 + 2/1e9) *(1000 ms/s) = 1.3 ms What will be the initial attempted transmission rate by A: __ 1000 M bits/sec What will happen to reduce the rate A sends to fit the lowest link rate? ___Buffer delay at X builds up_____ _ How large a buffer is needed by the first router to avoid packet loss after equilibrium is reached? __ 43,000 bytes RTT must increase to _________Ra=W/RTT, RTT = 60k * (8 /10M) * 1000 ms/s = 48 ms. Needed buffer delay = _______________________________________ 48 - 13.8 = 34.2 ms. Buffer Size = _ Delay = Size/Rate, so Size = 0.0342 s * 10M b/s * (1/8 Bytes/bit) = 43,000 bytes 5.– Running Average for Calculating the Retransmit Time Out (RTO) Fill in values for A, D and RTO. Use back or bottom of page for calculations. Round results up to 1 ms. Measured Round- Trip Time ( Sample RTT ) M Average RTT ( Estimated RTT ) Alpha = 1/ A Deviation (+/-) (new M - old-A) Average Deviation Beta = ¼ (DevRTT) D Timeout Interval RTO = A + 4D 40 50 8 12 98 70 53 20 14 109 20 49 - Use absolute value

A2 = 70/8 + 507/8 = 53 Dev2 = 70-50 = 20 DevRTT = |20|/4+123/4 =14 RTO = 53 + 414 = 109 A3 = 20/8 + 537/8 = 49 Dev3 = 20-53 = -33 DevRTT = |-33|/4+143/4 =19 RTO = 49 + 419 = 125 ECE3076 HW-3 p. 2