- Report this article
Ibraham Ajazz
Ibraham Ajazz
Network Specialist @ NTT Data | Network Security | CCSE | CCSA | CCNP
Published Dec 3, 2022
+ Follow
We know that it works as the full-duplex mode, so if the one-side connection is broken down, then no more data can be sent from that side of the connection. But it can still receive the data from another side.
Here four-way handshake is necessary in this case, as the first FIN flag, that is sent to the server by the client is a request for termination. And the first ACK, received by the client is just a response to FIN 1. Now here only the connection from the client is disconnected, but the server is still in a working position. This means it may still have some data to send. So, in this condition, the connection cannot be cut down suddenly. here, the other two steps are needed to be performed by the server.
Now the other reason is that it can become difficult for both sides to define why the peer does not respond. Also, not only the offline state can cause a packet lost. Alongside, the other exceptions in the server’s processing can also lead to it. And there is another problem with this idea is that in this condition, the client will have to wait for a long time until the time is out. Here, the four-way handshake looks like a better and easier option to address these problems.
Why Does TCP Connect Termination Need 4-way-Handshake?
At this time, the connection has been terminated from client side only since FIN has been sent from client only and it has received ACK from Server but Server still has TCP connection open because server hasnt sent its FIN yet. This state is called FIN_WAIT_2 State because the client is expected to get FIN from server as well.
Recommended by LinkedIn
3. FIN-ACK : It is sent by the server to client stating i am also closing the connection.
4. ACK : This is sent by client to server acknowledges the FIN from server. It is called TIME_WAIT state. TheTIME_WAITstate lets the client resend the final acknowledgment in case theACKis lost.
The time spent by clients in theTIME_WAITstate depends on their implementation, but their typical values are 30 seconds, 1 minute, and 2 minutes. After the wait, the connection formally closes and all resources on the client-side (including port numbers and buffer data) are released.
TCP states visited by Client Side –
TCP states visited by Server Side –
Like
Celebrate
Support
Love
Insightful
Funny
39
2 Comments
Md. Emon Hossain
Network Engineer | Expert in F5 Network Solutions
1y
- Report this comment
Great article for network engineer. Thanks
1Reaction
Ali Syed
printf("Hello world")
1y
- Report this comment
thanks for sharing, informative
1Reaction 2Reactions
See more comments
To view or add a comment, sign in
More articles by this author
No more previous content
- My take on a new innovation spread in muslim dominated regions. May 30, 2022
- What are TCP retransmissions and why they occur? Nov 26, 2021
- TCP Keep Alive Nov 26, 2021
- Microservices and API Nov 15, 2021
- TCP Windowing May 10, 2021
- Ping command and its interpretation Apr 23, 2021
- Flow Control: Sliding window protocol and Silly Window Syndrome in TCP in Transport Layer. Apr 21, 2021
No more next content
Sign in
Stay updated on your professional world
Sign in
By clicking Continue to join or sign in, you agree to LinkedIn’s User Agreement, Privacy Policy, and Cookie Policy.
New to LinkedIn? Join now
Insights from the community
- System Administration How can you determine the necessity of a patch for your system?
- System Administration How can patches be installed without requiring a system reboot?
- Computer Engineering What are the most common patch deployment mistakes?
- IT Services How can you ensure that patches do not cause software conflicts?
- Cybersecurity How can you balance timely patch installation with compatibility?
- System Administration What are the best practices for patching systems with multiple user groups?
- Patch Management How do you prioritize patches for different endpoints?
Others also viewed
- What is Monit ? Abraham Opoku 4y
- Best Practices for Applying Service Packs, Hotfixes and Security Patches Mauricio Baptista 6y
- Certainty Over a Maybe in an Encryption PoC Jess W. 1y
- SSH: WARNING REMOTE HOST IDENTIFICATION HAS CHANGED! Ratan Mohapatra 4y
- (Upgrade) Times are changing..... Nick Scuola 9y
- The last few weeks, Mitchell fixed an issue with a slow server backup. Was 30GB/hour, now 240GB/hour on Gbit net and no SSD drives. Mitchell Parks 7y
- UK PSTI Act - Is software in the scope? Gaus Rajnovic 7mo
- First step to solving a problem Ignatius Sindiso Ndlovu 5y
- My First Postmortem Ramaano Mulaudzi 1y
- Redundant HaProxy Load Balancing with CARP Based Dynamic Fail Over Jose Rosa 7y
Explore topics
- Sales
- Marketing
- IT Services
- Business Administration
- HR Management
- Engineering
- Soft Skills
- See All