

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Source
TCP Sink
TCP
router queue
This problem deals with TCP congestion control in the scenario shown above. The router queue has a maximum buffer capacity of 2 packets. Overflow at this queue is the only cause of packet loss. If a packet completes transmission at the same time as another packet arrives, the transmission is completed just before the packet arrives. No other traffic uses the link. The link buffer is initially empty.
Use the window-level model in Note 5 (not the packet-level model) and obtain the following as a function of F and T (the skeleton table below is for your convenience):
a. Transfer time (from start until everything is acked). b. Goodput: number of packets delivered to sink user per second. b. TxRate: number of packets transmitted by TCP source per second.
time nr na cw chunks sent queue
0 T 0 0 1 0 0 1 T 1 1 2 1,2 1, 2 T 3 3 3 3,4,5 3,4 (5 lost) 3 T 5 5 2 5,6 5, 4 T 7 7 3 7,8,9 7,8 (9 lost) 5 T 9 9 2 9,10 9, Rows 4T and 5T repeat. So every 2T seconds, 5 blocks sent and 4 received.
a. Transfer time =
seconds
b. Goodput =
packets/second
b. TxRate =
packets/second
Grading:
TCP client TCP server
The TCP client establishes a connection to the server, sends a 4KB file, and then closes the connection. Assume the following:
Complete the chart below showing the sequence of messages sent and received in this connection, starting at time 0 (when the client sends the SYN message) and ending when the server and client are both closed (each closes upon receiving a FIN-ACK).
Obtain (in terms of TCS and TSC) the time when the file is completely transferred to the server.
Obtain (in terms of TCS and TSC) the time when the server becomes closed.
(ACK of D 0)
(SYN, ACK of SYN)
(SYN)
(FIN, D 3)
(D 1), (D 2)
(ACK of FIN)
(ACK of SYN, D 0)
0
Tcs + Tsc
2Tcs + Tsc
3Tcs + 2Tsc
5Tcs + 4Tsc (server closed)
Tcs
2Tcs + 2Tsc
3Tcs + 3Tsc
(client closed) 4Tcs + 4Tsc
(FIN, ACK of (FIN, D 3)) 4Tcs + 3Tsc (file complete at server)
(ACK of D 1..2)
Grading: