TCP states - explained (2024)

  • CLOSED: There is no connection.
  • LISTEN: The local end-point is waiting for a connection request from a remote end-point i.e. a passive open was performed.
  • ESTABLISHED: The third step of the three-way connection handshake was performed. The connection is open.
  • FIN-WAIT-1: The first step of an active close (four-way handshake) was performed. The local end-point has sent a connection termination request to the remote end-point.
  • CLOSE-WAIT: The local end-point has received a connection termination request and acknowledged it e.g. a passive close has been performed and the local end-point needs to perform an active close to leave this state.
  • FIN-WAIT-2: The remote end-point has sent an acknowledgement for the previously sent connection termination request. The local end-point waits for an active connection termination request from the remote end-point.
  • LAST-ACK: The local end-point has performed a passive close and has initiated an active close by sending a connection termination request to the remote end-point.
  • CLOSING: The local end-point is waiting for an acknowledgement for a connection termination request before going to the TIME-WAIT state.
  • TIME-WAIT: The local end-point waits for twice the maximum segment lifetime (MSL) to pass before going to CLOSED to be sure that the remote end-point received the acknowledgement.

FIN_WAIT_2 seems to occur when the server has an active connection with a client and wants to shut down the TCP connection (probably in response to a normal application layer "exit"). The server sends the client a packet with a "FIN" bit set. At this point, the server is in FIN_WAIT_1 state. The client gets the FIN packet and goes into CLOSE_WAIT state, and sends an acknowledgment packet back to the server. When the server gets that packet, it goes into FIN_WAIT_2 state. From the server's perspective, the connection is now closed, and the server can't send any more data. However, under the TCP protocol, the client needs to shut down also by sending a FIN packet, which the server TCP implementation should ACK. The server should close after a period of time defined by the Maximum Segment Lifetime (MSL).

 TCP A TCP B 1. ESTABLISHED ESTABLISHED 2. (Close) FIN-WAIT-1 --> <SEQ=100><ACK=300><CTL=FIN,ACK> --> CLOSE-WAIT 3. FIN-WAIT-2 <-- <SEQ=300><ACK=101><CTL=ACK> <-- CLOSE-WAIT 4. (Close) TIME-WAIT <-- <SEQ=300><ACK=101><CTL=FIN,ACK> <-- LAST-ACK 5. TIME-WAIT --> <SEQ=101><ACK=301><CTL=ACK> --< CLOSED 6. (2 MSL) CLOSED

TCP states - explained (1)

TCP states - explained (2024)
Top Articles
Connect bank and credit card accounts to QuickBooks Online
How do I Modify, Close and Cancel open Positions on MT5?
Bbwcumdreams
What Are The Hours Of Chase Bank Today
Donald Trump Assassination Gold Coin JD Vance USA Flag President FIGHT CIA FBI • $3.87
Morristown Daily Record Obituary
Xfinity Dublin Appointment
Clafi Arab
Filmy4Wap.bio
My Ohio Catmail
Stigmata Of Sacrilege F95
Viasox Size Chart
National Grid Power Outages
C&A Mode günstig online kaufen
Olivia Dunne 2023: Puerto Rico
Medici Vermittlung GmbH sucht Facharzt (m/w/d) | Gynäkologie und Geburtshilfe (8662) in Cottbus | LinkedIn
Check From Po Box 1111 Charlotte Nc 28201
Jamestown Online Rummage Sale
Prettyaline
Sam's Club Gas Price Annapolis
Zits Comic Arcamax
Oreilleys Auto Near Me
Sunset On June 21 2023
Xxc Renegade 1000 Xxc Price In India Price
Cooktopcove Com
Bay Country Crab Supply
Ball Python Morph Calculator
Sales & Deals — My Nintendo Store - Nintendo Official Site
Marcus Roberts 1040 Answers
Ktbs Payroll Login
410-237-7354
Eli Lilly Clarifies It’s Not Offering Free Insulin After Tweet From Fake Verified Account—As Chaos Unfolds On Twitter
Ramsey County Recordease
History | Experience Meadville
Spotted Attending Crossword Clue
Ucc Aeorion
Upcoming Events & Tickets | Thompson Boling Arena
Sparkle Nails Phillipsburg
18775035802
Violent Night Showtimes Near Amc Fashion Valley 18
Aabb Investorshub
Johnny's Bar & Grill Wesley Menu
Python in Visual Studio Code
South Florida residents must earn more than $100,000 to avoid being 'rent burdened'
Psu Rivals Message Board
Bolly2Tolly Maari 2
Somewhere In Queens Showtimes Near Ambler Theater
'A kinder place': Southern Tier faith leaders overcome intolerance through community connections
Do sprzedania Zenith Captain Power Reserve Elite za cene 11 124 zł od Seller na Chrono24
Sprinter Tyrone's Unblocked Games
R+L Carriers Tracking | Instant Shipment Information.
Latest Posts
Article information

Author: Msgr. Benton Quitzon

Last Updated:

Views: 6179

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Msgr. Benton Quitzon

Birthday: 2001-08-13

Address: 96487 Kris Cliff, Teresiafurt, WI 95201

Phone: +9418513585781

Job: Senior Designer

Hobby: Calligraphy, Rowing, Vacation, Geocaching, Web surfing, Electronics, Electronics

Introduction: My name is Msgr. Benton Quitzon, I am a comfortable, charming, thankful, happy, adventurous, handsome, precious person who loves writing and wants to share my knowledge and understanding with you.