Problem
1. A window holds bytes 2001 to 5000. The next byte to be sent is 3001. Draw a figure to show the situation of the window after the following two events.
a. An ACK segment with the acknowledgment number 2500 and window size advertisement 4000 is received.
b. A segment carrying 1,000 bytes is sent.
2. A TCP connection is in the ESTABLISHED state. The following events occur one after another:
a. A FIN segment is received.
b. The application sends a "close" message. What is the state of the connection after each event? What is the action after each event?