in Computer Networks edited by
13,812 views
41 votes
41 votes

Consider a TCP client and a TCP server running on two different machines. After completing data transfer, the TCP client calls close to terminate the connection and a FIN segment is sent to the TCP server. Server-side TCP responds by sending an ACK, which is received by the client-side TCP. As per the TCP connection state diagram $\text{(RFC 793)}$, in which state does the client-side TCP connection wait for the FIN from the server-side TCP?

  1. LAST-ACK
  2. TIME-WAIT
  3. FIN-WAIT-$1$
  4. FIN-WAIT-$2$
in Computer Networks edited by
by
13.8k views

2 Comments

Ans: FIN-WAIT-2 (D)


46
46

Last minute quick explanation with great visuals:

TCP States - Computer Networks For Developers 07 - YouTube

1
1

7 Answers

3 votes
3 votes

 

FIN WAIT-1 -->  if client sent FIN segment to the server and waiting for the ACK of its own FIN segment

Now after FIN WAIT-1 there are two possibility -- 

(1) if client receives ACK for its own FIN then client move to FIN-wait-2 and waiting for FIN from server side

after reciving the FIN from server client will send ACK   then connection is not closed immediately it wait for some time and then closed  and this wait time is called TIME-WAIT state.

(2)if client not recive ACK instead of ACK if it recived FIN from server side now client will ackonwledge this FIN and move to close state

Here Client will wait for the ACK for its own FIN.
After receiving ACK, client will move to TIME-WAIT state.

1 vote
1 vote

$Answer : D$

$Source$ : Data Communications and Networking By Behrouz A.Forouzan

0 votes
0 votes

A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post.

colocation data center

Answer:

Related questions