Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

TCP - TIME_WAIT

Posted on 2006-11-20
4
Medium Priority
?
653 Views
Last Modified: 2010-03-18
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
0
Comment
Question by:expertblr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 43

Expert Comment

by:ravenpl
ID: 17985467
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
 

Author Comment

by:expertblr
ID: 17986286
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
 
LVL 43

Accepted Solution

by:
ravenpl earned 1000 total points
ID: 17986424
0
 

Author Comment

by:expertblr
ID: 17986892
Thanks ravenpl...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question