<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[TCP 3-Way Handshake Explained]]></title><description><![CDATA[TCP 3-Way Handshake Explained]]></description><link>https://rupeshpradhan-tcp-3-way-handshake-explained.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 31 Oct 2026 13:18:49 GMT</lastBuildDate><atom:link href="https://rupeshpradhan-tcp-3-way-handshake-explained.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[TCP Working: 3-Way Handshake & Reliable Communication]]></title><description><![CDATA[TCP stands for Transmission Control Protocol. TCP is used to send data safely and reliably over the internet. It makes sure data reaches the destination…]]></description><link>https://rupeshpradhan-tcp-3-way-handshake-explained.hashnode.dev/tcp-working-3-way-handshake-and-reliable-communication</link><guid isPermaLink="true">https://rupeshpradhan-tcp-3-way-handshake-explained.hashnode.dev/tcp-working-3-way-handshake-and-reliable-communication</guid><category><![CDATA[tcp 3-way-handshake-and-reliable]]></category><category><![CDATA[TCP]]></category><category><![CDATA[TCP Handshake]]></category><category><![CDATA[tcp-3-way-handshake]]></category><dc:creator><![CDATA[Rupesh Pradhan]]></dc:creator><pubDate>Thu, 22 Jan 2026 07:04:48 GMT</pubDate><content:encoded><![CDATA[<ol>
<li><h3 id="heading-what-is-tcp-and-why-it-is-needed">What is TCP and why it is needed?</h3>
<p> TCP stands for <strong>Transmission Control Protocol</strong>.<br /> TCP is used to send data <strong>safely and reliably</strong> over the internet.<br /> It makes sure data reaches the destination correctly and in order.</p>
</li>
<li><h3 id="heading-problems-tcp-is-designed-to-solve">Problems TCP is designed to solve</h3>
<p> Without TCP:</p>
<p> i) Data can be lost</p>
<p> ii) Data can arrive in the wrong order</p>
<p> ii) Sender may not know if data was received</p>
<p> TCP solves these problems by using rules and checks.</p>
</li>
<li><h3 id="heading-what-is-the-tcp-3-way-handshake">What is the TCP 3-Way Handshake?</h3>
<p> The 3-Way Handshake is the process TCP uses to <strong>start a connection</strong>.<br /> It ensures both sides are ready to communicate.</p>
<p> Think of it like saying:</p>
<p> i) “Can I talk?”</p>
<p> ii) “Yes, you can.”</p>
<p> iii) “Okay, let’s talk.”</p>
</li>
<li><h3 id="heading-step-by-step-syn-syn-ack-ack">Step-by-step: SYN, SYN-ACK, ACK</h3>
<p> ii) <strong>SYN</strong><br /> Client sends a SYN message to request a connection.</p>
<p> ii) <strong>SYN-ACK</strong><br /> Server replies with SYN-ACK to accept the request.</p>
<p> iii) <strong>ACK</strong><br /> Client sends ACK to confirm.<br /> Connection is established.</p>
</li>
<li><h3 id="heading-how-data-transfer-works-in-tcp">How data transfer works in TCP</h3>
<p> After connection setup:</p>
<p> i) Data is sent in small packets</p>
<p> ii) Each packet has a sequence number</p>
<p> ii) Receiver sends acknowledgements (ACKs)</p>
<p> This helps TCP track data properly.</p>
</li>
<li><h3 id="heading-how-tcp-ensures-reliability">How TCP ensures reliability</h3>
<p> TCP ensures:</p>
<p> i) <strong>Reliability</strong>: Resends lost data</p>
<p> ii) <strong>Order</strong>: Arranges data correctly</p>
<p> iii) <strong>Correctness</strong>: Uses acknowledgements</p>
<p> If a packet is lost, TCP sends it again.</p>
</li>
<li><h3 id="heading-how-a-tcp-connection-is-closed">How a TCP connection is closed</h3>
<p> TCP closes the connection gracefully using <strong>FIN and ACK</strong> messages.<br /> Both sides agree before closing the connection.</p>
</li>
</ol>
<h2 id="heading-conclusion">Conclusion</h2>
<blockquote>
<p>TCP makes internet communication reliable.<br />The 3-way handshake starts communication.<br />Acknowledgements and retransmission keep data safe.<br />TCP is essential for web communication.</p>
</blockquote>
]]></content:encoded></item></channel></rss>