<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Unreliable-Communication on Rafiul Alam</title>
    <link>https://alamrafiul.com/tags/unreliable-communication/</link>
    <description>Recent content in Unreliable-Communication on Rafiul Alam</description>
    <image>
      <title>Rafiul Alam</title>
      <url>https://alamrafiul.com/papermod-cover.png</url>
      <link>https://alamrafiul.com/papermod-cover.png</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Tue, 14 Oct 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://alamrafiul.com/tags/unreliable-communication/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Two Generals&#39; Problem: The Impossibility of Perfect Consensus</title>
      <link>https://alamrafiul.com/blogs/two-generals-problem/</link>
      <pubDate>Tue, 14 Oct 2025 00:00:00 +0000</pubDate>
      
      <guid>https://alamrafiul.com/blogs/two-generals-problem/</guid>
      <description>&lt;h2 id=&#34;the-two-generals-problem&#34;&gt;The Two Generals&amp;rsquo; Problem&lt;/h2&gt;
&lt;p&gt;The Two Generals&amp;rsquo; Problem, also known as the Two Armies Problem, is a classic thought experiment that demonstrates the &lt;strong&gt;impossibility&lt;/strong&gt; of achieving perfect consensus over an unreliable communication channel. It was first formulated by E. A. Akkoyunlu, K. Ekanadham, and R. V. Huber in 1975.&lt;/p&gt;
&lt;h2 id=&#34;the-scenario&#34;&gt;The Scenario&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Two armies need to coordinate an attack:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;General A and General B surround an enemy&lt;/li&gt;
&lt;li&gt;They must attack &lt;strong&gt;simultaneously&lt;/strong&gt; to win&lt;/li&gt;
&lt;li&gt;If only one attacks → defeat&lt;/li&gt;
&lt;li&gt;They communicate via &lt;strong&gt;messengers&lt;/strong&gt; through enemy territory&lt;/li&gt;
&lt;li&gt;Messages can be &lt;strong&gt;lost&lt;/strong&gt; or &lt;strong&gt;intercepted&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Question&lt;/strong&gt;: Can they guarantee coordinated attack?&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;the-impossible-dilemma&#34;&gt;The Impossible Dilemma&lt;/h2&gt;
&lt;div class=&#34;mermaid&#34;&gt;%%{init: {&#39;theme&#39;:&#39;dark&#39;, &#39;themeVariables&#39;: {&#39;primaryTextColor&#39;:&#39;#e5e7eb&#39;,&#39;secondaryTextColor&#39;:&#39;#e5e7eb&#39;,&#39;tertiaryTextColor&#39;:&#39;#e5e7eb&#39;,&#39;textColor&#39;:&#39;#e5e7eb&#39;,&#39;nodeTextColor&#39;:&#39;#e5e7eb&#39;,&#39;edgeLabelText&#39;:&#39;#e5e7eb&#39;,&#39;clusterTextColor&#39;:&#39;#e5e7eb&#39;,&#39;actorTextColor&#39;:&#39;#e5e7eb&#39;}}}%%
sequenceDiagram
    participant GA as General A
    participant Enemy as Enemy Territory
    participant GB as General B

    Note over GA: Wants to attack&lt;br/&gt;at dawn

    GA-&gt;&gt;Enemy: &#34;Attack at dawn&#34;
    Enemy-&gt;&gt;GB: Message delivered

    Note over GB: Received message,&lt;br/&gt;but A doesn&#39;t know!

    GB-&gt;&gt;Enemy: &#34;Acknowledged&#34;
    Enemy-&gt;&gt;GA: ACK delivered?

    Note over GA: Received ACK,&lt;br/&gt;but B doesn&#39;t know!

    GA-&gt;&gt;Enemy: &#34;ACK of ACK&#34;
    Enemy-&gt;&gt;GB: Delivered?

    Note over GA,GB: This never ends!
&lt;/div&gt;
&lt;h2 id=&#34;the-core-problem&#34;&gt;The Core Problem&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;The infinite regress:&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
