TCP - TIME_WAIT

Hi,

    After a connection is closed the socket will be in TIME_WAIT state. Can someone please explain me in detail what exactly happens? I went through stevens "2.7 - Please explain the TIME_WAIT state" article and I couldn't understand it.  What all I know is - It is normal for a connection to be in TIME_WAIT state after it has been closed. I want to know why it is required and what happens in that period when it is finally released by the  server....


Thanks,
expertblr
expertblrAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ravenplCommented:
After tcp strem is closed it enters TCP_WAIT because
- some packets may arrive that are destined to this connection (original packet was queued on some router, and was retransmitted)
- since it's not totally close, You can't(and it's good from point of TCP view, see first -) spawn identical connection - slot occupied
0
 
expertblrAuthor Commented:
Thanks ravenpl..:), is it possible for you to  explain (with example) on this like how the FIN and ACK packets flow during that time....


Thanks again.
0
 
expertblrAuthor Commented:
Thanks ravenpl...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.