Search for question
Question

5. A client tries to communicate with the server over TCP. Client port is 50324 and server port is 80. Suppose the initial sequence numbers chosen by client and server are

8000 and 15000, respectively. For simplicity, assume the underlying channel is reliable (i.e., does not corrupt, duplicate, lose or reorder packets) a. Please draw a diagram showing the 3-way handshake. For each segment, please indicate the source and destination ports, sequence number and acknowledgement number (if valid) and control flags. Please note, you can ignore the sequence number of the ACK only packet. b. After the handshake, suppose the client sends one segment containing 200 bytes of data and closes the TCP connection with a FIN+ACK segment (half-close). Those two segments are sent to the server back-to-back. After receiving the FIN + ACK segment, the server sends one segment of 1000 bytes of data and closes the connection with a FIN+ACK segment. Suppose both endpoints send an acknowledgment whenever it receives a segment from the peer. Please draw a diagram showing the 4-way connection termination (FIN+ACK sent by client, ACK sent by server, FIN + ACK sent by server and last ACK sent by client). For each segment, please indicate the source and destination ports, sequence number and acknowledgement number (if valid) and control flags. Please note, you can ignore the sequence number of the ACK only packet.

Fig: 1