CS 2204 Written Assignment Unit 7
CS 2204 Written Assignment Unit 7
CS 2204 Written Assignment Unit 7
ANASTASIOS TSOURNOS
Answer the following in your own words.
1. Why does the maximum packet lifetime have to be large enough to ensure that
not only the packet but also its acknowledgments have disappeared?
Hence, while the Nagle’s algorithm does all the back-end stuff by holding any needed data
and sending it out in bursts could lead to lags.
Example:
Therefore, the idea of holding data using the Nagle’s algorithm is not the best in such a
scenario. Transmitting small bytes as they come in could serve us best in this case. Also, the
fact that data is held and sent out in bursts implies that if there is data loss, the packet size
that is lost could be bigger with the Nagle’s algorithm because it holds data.
3. Give two examples of cases where TCP sends data-less packets on an established
connection (which is not being torn down).
A connection is in FIN_WAIT_1 state when a node sends a FIN flag and waits for an ACK
signal for it to progress with termination. Whenever there are several TCP connections in the
FIN_WAIT_1 state, it means that several terminations with other nodes took place
concurrently. It’s not any connection’s fault and the connections eventually terminate
normally.
Hb. (2015, August 28). TCP: About FIN_WAIT_2, TIME_WAIT and CLOSE_WAIT.
Retrieved May 24, 2021, from https://benohead.com/blog/2013/07/21/tcp-about-fin_wait_2-
time_wait-and-close_wait/