<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Network Architecture on Mi&amp;Bee Blog</title><link>/en/tags/network-architecture/</link><description>Recent content in Network Architecture on Mi&amp;Bee Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>蓝宝石的傻话</managingEditor><lastBuildDate>Sun, 15 Mar 2020 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/network-architecture/rss.xml" rel="self" type="application/rss+xml"/><item><title>P2P Network Core Principles</title><link>/en/posts/network/p2p-core-principles/</link><pubDate>Sun, 15 Mar 2020 00:00:00 +0000</pubDate><guid>/en/posts/network/p2p-core-principles/</guid><description>&lt;p&gt;Peer-to-Peer (P2P) networking is a decentralized architecture where every node acts as both a provider (Server) and consumer (Client). This architecture is widely used in file distribution (BitTorrent), cryptocurrency (Bitcoin), decentralized storage (IPFS), and many other domains.&lt;/p&gt;
&lt;h2 id="p2p-vs-client-server-architecture"&gt;P2P vs Client-Server Architecture&lt;/h2&gt;
&lt;p&gt;Before diving into P2P principles, let&amp;rsquo;s understand the fundamental differences through comparison:&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Feature&lt;/th&gt;
					&lt;th&gt;Client-Server&lt;/th&gt;
					&lt;th&gt;P2P Network&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;Centralization&lt;/td&gt;
					&lt;td&gt;Highly centralized&lt;/td&gt;
					&lt;td&gt;Decentralized / Hybrid&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Single Point of Failure&lt;/td&gt;
					&lt;td&gt;Exists&lt;/td&gt;
					&lt;td&gt;Does not exist&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Scalability&lt;/td&gt;
					&lt;td&gt;Limited by server&lt;/td&gt;
					&lt;td&gt;Linear with node count&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Bandwidth Cost&lt;/td&gt;
					&lt;td&gt;Borne by server&lt;/td&gt;
					&lt;td&gt;Shared by nodes&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Fault Tolerance&lt;/td&gt;
					&lt;td&gt;Low&lt;/td&gt;
					&lt;td&gt;High&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Lookup Complexity&lt;/td&gt;
					&lt;td&gt;O(1)&lt;/td&gt;
					&lt;td&gt;O(log N)&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The core advantage of P2P lies in eliminating single points of bottleneck and failure, at the cost of introducing more complex node discovery and data routing mechanisms.&lt;/p&gt;</description></item></channel></rss>