<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>TCP on Council of Elrond</title><link>https://songkou.github.io/tags/tcp/</link><description>Recent content in TCP on Council of Elrond</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 16 Jul 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://songkou.github.io/tags/tcp/index.xml" rel="self" type="application/rss+xml"/><item><title>TCP_Three_Way_Handshake_and_Four_Way_Termination</title><link>https://songkou.github.io/posts/tcp_three_way_handshake_and_four_way_termination/</link><pubDate>Thu, 16 Jul 2026 00:00:00 +0800</pubDate><guid>https://songkou.github.io/posts/tcp_three_way_handshake_and_four_way_termination/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Study notes rewritten in English.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="tcp-basics"&gt;TCP basics&lt;/h2&gt;
&lt;h3 id="what-is-tcp"&gt;What is TCP?&lt;/h3&gt;
&lt;p&gt;TCP is a &lt;strong&gt;connection-oriented&lt;/strong&gt;, &lt;strong&gt;reliable&lt;/strong&gt;, &lt;strong&gt;byte-stream&lt;/strong&gt; transport-layer
protocol.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Connection-oriented&lt;/strong&gt; – strictly one-to-one. Unlike UDP, one host cannot
broadcast to many hosts over a single TCP connection.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reliable&lt;/strong&gt; – no matter what happens on the link, TCP guarantees a segment
eventually reaches the receiver.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Byte stream&lt;/strong&gt; – the OS may split a user message into several TCP segments.
Segments are ordered: if the previous segment hasn&amp;rsquo;t arrived, a later one that
did arrive cannot be handed up yet; duplicate segments are dropped.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;IP is &lt;strong&gt;unreliable&lt;/strong&gt; — it doesn&amp;rsquo;t guarantee delivery, ordering, or integrity. If
you need reliability, the transport-layer TCP has to provide it.&lt;/p&gt;</description></item></channel></rss>