<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Network on Council of Elrond</title><link>https://songkou.github.io/tags/network/</link><description>Recent content in Network on Council of Elrond</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 11 Jul 2026 07:00:00 +0800</lastBuildDate><atom:link href="https://songkou.github.io/tags/network/index.xml" rel="self" type="application/rss+xml"/><item><title>How_Linux_Sends_and_Receives_Network_Packets</title><link>https://songkou.github.io/posts/how_linux_sends_and_receives_network_packets/</link><pubDate>Sat, 11 Jul 2026 07:00:00 +0800</pubDate><guid>https://songkou.github.io/posts/how_linux_sends_and_receives_network_packets/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Study notes rewritten in my own words&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="network-models"&gt;Network models&lt;/h2&gt;
&lt;p&gt;To let all kinds of devices talk to each other over a network, the ISO defined
the &lt;strong&gt;OSI reference model&lt;/strong&gt; with 7 layers. Each layer has a single job:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Application&lt;/strong&gt; – provides a uniform interface to programs&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Presentation&lt;/strong&gt; – converts data into a format another system understands&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Session&lt;/strong&gt; – establishes, manages and terminates sessions&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Transport&lt;/strong&gt; – end-to-end data transfer&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Network&lt;/strong&gt; – routing, forwarding, fragmentation&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data link&lt;/strong&gt; – framing, error detection, MAC addressing&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Physical&lt;/strong&gt; – transmits frames over the physical medium&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;OSI is mostly a &lt;em&gt;conceptual&lt;/em&gt; model — it never shipped a concrete implementation.
What we actually use is the simpler &lt;strong&gt;TCP/IP model&lt;/strong&gt; with 4 layers, and the Linux
stack is built to match it:&lt;/p&gt;</description></item></channel></rss>