<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Networks on Blogs</title><link>https://hbisheng.github.io/blogs/network/</link><description>Recent content in Networks on Blogs</description><generator>Hugo</generator><language>en-us</language><copyright>Bisheng Huang</copyright><lastBuildDate>Wed, 04 Jan 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://hbisheng.github.io/blogs/network/index.xml" rel="self" type="application/rss+xml"/><item><title>Network: Socket and the network stack</title><link>https://hbisheng.github.io/blogs/network/blog-001/</link><pubDate>Sat, 01 Oct 2022 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/network/blog-001/</guid><description>&lt;p&gt;&lt;em&gt;Q: I have two programs running on two different computers. How do they talk to each other through the network?&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; Socket is an abstraction provided by the operating system for network communication.&lt;/p&gt;</description></item><item><title>Network protocol: Ethernet</title><link>https://hbisheng.github.io/blogs/network/ethernet-protocol/</link><pubDate>Sat, 05 Nov 2022 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/network/ethernet-protocol/</guid><description>&lt;p&gt;This post describes the &lt;strong&gt;Ethernet protocol&lt;/strong&gt;, a common protocol that serves as the &lt;strong&gt;physical layer&lt;/strong&gt; and the &lt;strong&gt;data link layer&lt;/strong&gt; in the &lt;strong&gt;network stack&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; The Ethernet protocol allows devices connected through a cable to communicate.&lt;/p&gt;</description></item><item><title>Network protocol: IP</title><link>https://hbisheng.github.io/blogs/network/network-protocol-ip/</link><pubDate>Tue, 13 Dec 2022 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/network/network-protocol-ip/</guid><description>&lt;p&gt;&lt;strong&gt;Main Thread:&lt;/strong&gt; Logical gates → Registers → Program execution (memory and CPU) → Operating system → Intercommunication through Ethernet → Routing protocols in a network&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; The IP protocol routes data packets around the world.&lt;/p&gt;</description></item><item><title>Network: LAN and WAN</title><link>https://hbisheng.github.io/blogs/network/lan-wan/</link><pubDate>Sat, 17 Dec 2022 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/network/lan-wan/</guid><description>&lt;p&gt;&lt;strong&gt;Main Thread:&lt;/strong&gt; Logical gates → Registers → Program execution (memory and CPU) → Operating system → Intercommunication through Ethernet → Routing protocols in a network → IP protocol at different scales&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; The IP protocol allows different kinds of networks to interconnect.&lt;/p&gt;</description></item><item><title>Network protocol: TCP</title><link>https://hbisheng.github.io/blogs/network/tcp/</link><pubDate>Sun, 01 Jan 2023 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/network/tcp/</guid><description>&lt;p&gt;&lt;strong&gt;Main Thread:&lt;/strong&gt; Logical gates → Registers → Program execution (memory and CPU) → Operating system → Intercommunication through Ethernet → Routing protocols in a network → IP protocol at different scales → TCP layer&lt;/p&gt;</description></item><item><title>Network Protocol: BGP</title><link>https://hbisheng.github.io/blogs/network/bgp/</link><pubDate>Mon, 02 Jan 2023 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/network/bgp/</guid><description>&lt;p&gt;&lt;strong&gt;Main Thread:&lt;/strong&gt; Logical gates → Registers → Program execution (memory and CPU) → Operating system → Ethernet → Routing protocols → IP protocol at different scales → TCP → BGP protocol&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; BGP is the routing protocol for the Internet. BGP peers across different autonomous systems exchanges full routing paths to destinations.&lt;/p&gt;</description></item><item><title>Network: DNS</title><link>https://hbisheng.github.io/blogs/network/dns/</link><pubDate>Tue, 03 Jan 2023 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/network/dns/</guid><description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; DNS converts domain names into IP addresses.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;Let&amp;rsquo;s say the Internet is out there. There are websites of different kinds waiting for you to visit. And there are so many of them. Theoretically, each website can just be identified by an IP address, a 32-bit number. But human minds are not so good at remembering such numbers. You don&amp;rsquo;t remember all the phone numbers of your friends. Your phone maintains a phonebook (a contact list) so you can just look up the phone number by a certain person&amp;rsquo;s name.&lt;/p&gt;</description></item><item><title>Network: CDN</title><link>https://hbisheng.github.io/blogs/network/cdn/</link><pubDate>Tue, 03 Jan 2023 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/network/cdn/</guid><description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; CDN (content delivery network) speeds up the delivery of static content by putting it as close to the users as possible.&lt;/p&gt;&#10;&lt;h3 id="cdn"&gt;CDN&lt;/h3&gt;&#10;&lt;p&gt;Videos and images consist of lots of bits and can be slow to load. To speed up the delivery of those static contents, a CDN deploys a large number of geographically distributed servers and uses the server closet to the user to serve its request.&lt;/p&gt;</description></item><item><title>Network: TLS</title><link>https://hbisheng.github.io/blogs/network/tls/</link><pubDate>Tue, 03 Jan 2023 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/network/tls/</guid><description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; TLS (Transport Layer Security) is a network security protocol that uses cryptographic algorithms involving pairs of keys (private and public) to secure network communications.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;When you talk to google.com, how do you know the response you receive is sent from a legit server?&lt;/p&gt;</description></item><item><title>Network Protocol: HTTP, Websocket</title><link>https://hbisheng.github.io/blogs/network/http/</link><pubDate>Wed, 04 Jan 2023 00:00:00 +0000</pubDate><guid>https://hbisheng.github.io/blogs/network/http/</guid><description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; HTTP (Hyper-Text Transfer Protocol) is an application layer protocol that enables you to browse websites.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;We&amp;rsquo;ve covered most of the fundamentals such as routing, transport, and security, now it&amp;rsquo;s finally time to look at some applications! One of the most popular activities on the internet is visiting websites. You type in a domain name and your browser will display you web pages. The data format of the underlying web content is HTML (Hyper-text Mark-up Language). HTTP is the protocol that transmits HTML from the web server to your browser.&lt;/p&gt;</description></item></channel></rss>