Due Time: 11:59pm, March 9, 2025, Sunday Total Marks: 10 Points
Due Time: 11:59pm, March 9, 2025, Sunday Total Marks: 10 Points
Homework Three
Questions:
1. (2 points) UDP and TCP use 1’s complement for their checksums. Suppose you have the following
three 8-bit bytes: 01011011, 01100010, 01010110. What is the checksum value of these 8-bit
bytes?
2. (4 points) Consider transferring an enormous file of L bytes from Host A to Host B. Answer the
following questions:
a) Assume an MSS of 1500 bytes and the TCP sequence number field has 4 bytes. What is the
maximum value of L such that TCP sequence numbers are not exhausted? (2 points)
b) Assume that a total of 56 bytes of transport, network, and data-link header are added to each
segment before the resulting packet is sent out over a 1 Gbps link. Ignore flow control and
congestion control so A can pump out the segments back to back and continuously. For the L
you obtain in (a), find how long it takes to transmit the file. (2 points)
3. (4 points) Consider that only a single TCP (Reno) connection uses one 150Mbps link which does
not buffer any data. Suppose that this link is the only congested link between the sending and
receiving hosts. Assume that the TCP sender has a huge file to send to the receiver, and the
receiver’s receive buffer is much larger than the congestion window. We also make the following
assumptions: each TCP segment size is 1,500 bytes; the round-trip time of this connection is 500
msec; and this TCP connection always uses AIMD for congestion control (that is, it ignores slow
start).
a) What is the maximum window size (in segments) that this TCP connection can achieve? (1
point)
b) What is the average window size (in segments) and average throughput (in bps) of this TCP
connection? (2 points)
c) How long would it take for this TCP connection to reach its maximum window again after
recovering from a packet loss? (1 point)