Docsity

Computer Communications Homework 3 | ECE 3076, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
Name_______________________GT#___gt _ _ _
ECE3076 Homework 3
Due: Friday Feb. 16, 2007 (in class)
1. TCP with no Congestion A 20 Mbps network connection has a 50 ms round trip time (RTT). A server begins
sending maximum-size packets (after the initial SYN-ACK). The client ACK's every packet, and has a receiver-
window which holds 15 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
150
200
250
300
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)? ________________________ (bps)
What is the maximum transfer rate (bytes/second)?_ ____________________________ (bps)
2. Bandwidth-Delay Product
a. What does TCP guarantee that UDP does not (for byte-stream sent in multiple packets)?
________________________________________________________________________________
b. If the round-trip time (RTT) for a dedicated 100 Mbit/s connection to California is 50 ms,
what is minimum TCP widow size that will allow this channel to be fully utilized? ____________ (bytes)
c. What will the maximum throughput be if the window is 62.5 kbytes in the example above? _____ (bits/s)
3. TCP and UDP Checksum
a. What is the one's compliment 8-bit checksum of the following 8-bit binary numbers: _________________
1 0 1 1 1 0 0 1
1 0 0 0 0 1 1 0
b. On a shared network, the buffer delay may increase due to congestion. Circle the right answer:
This will increase / decrease the packets/s being sent into the network, and ease / worsen the
congestion }.
ECE3076 HW-3 p.1
pf2

Partial preview of the text

Download Computer Communications Homework 3 | ECE 3076 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

Name_______________________GT#___gt _ _ _ ECE3076 Homework 3 Due: Friday Feb. 16, 2007 (in class) 1. TCP with no Congestion A 20 Mbps network connection has a 50 ms round trip time (RTT). A server begins sending maximum-size packets (after the initial SYN-ACK). The client ACK's every packet, and has a receiver- window which holds 15 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 150 200 250 300 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)? ________________________ (bps) What is the maximum transfer rate (bytes/second)?_____________________________ (bps) 2. Bandwidth-Delay Product a. What does TCP guarantee that UDP does not (for byte-stream sent in multiple packets)? ________________________________________________________________________________ b. If the round-trip time (RTT) for a dedicated 100 Mbit/s connection to California is 50 ms, what is minimum TCP widow size that will allow this channel to be fully utilized? ___________ _ (bytes) c. What will the maximum throughput be if the window is 62.5 kbytes in the example above? _____ (bits/s)

3. TCP and UDP Checksum a. What is the one's compliment 8-bit checksum of the following 8-bit binary numbers: _________________ 1 0 1 1 1 0 0 1 1 0 0 0 0 1 1 0 b. On a shared network, the buffer delay may increase due to congestion. Circle the right answer: This will increase / decrease the packets/s being sent into the network, and ease / worsen the congestion }. ECE3076 HW-3 p. 1

Name_______________________GT#___gt _ _ _

  1. Calculating Round-Trip Time Between hosts A in Atlanta and B in Seattle there are 5 routers (X). All links are between routers (---) are 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---X---X---X---X===B What is the propagation delay for the round trip in milliseconds : _____________ ms If the router buffers are empty, what is the total round trip transmission delay (neglect processing delay)? ______ ms If the window size in 65 kbytes, what will be the initial attempted transmission rate: ___ ______ bits/sec What will happen to reduce the rate A sends to fit the lowest link rate? __________________________ _ How large a buffer is needed by the first router to avoid packet loss after equilibrium is reached? _ 28 kB RTT must increase to 8 x 65 kB / 10 Mbps = 52 ms. Buffer delay = 52 - 30 = 22 ms. Buffer Size = .022s * 10Mb/s / 8 b/B = 27,500 bytes If the buffer is smaller and packets are lost at 100 Mbps, what happens (circle answers)? The average CongWin increases / decreases causing the transmission rate to increase / decrease. 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 TimeTime ( Sample RTT ) MM Average RTTAverage RTT ( Estimated RTT ) Alpha = 1/8Alpha = 1/ A Deviation Deviation (+/-)(+/-) (new M - old-A) Average DeviationAverage Deviation Beta = Beta = ¼ (DevRTT) D Timeout Interval RTORTO = A + 4D= A + 4D 40 50 8 12 98 70 20 ECE3076 HW-3 p. 2