STOP-AND-WAIT PROTOCOL

The OG Reliable Transmission Method 🚀

#ReliableAF #NoPacketLeftBehind #OldButGold

The Theory Breakdown

What's the Vibe? 🧐

Stop-and-Wait is like that friend who needs confirmation for EVERY message before sending the next one. "Did you get that?" "Yeah?" "Okay, here's the next one." Basic but reliable AF.

How It Works 🛠️

  • Sender: Sends one packet and chills until it gets an ACK (acknowledgement)
  • Receiver: Gets the packet, sends back an ACK like "Got it, king 👑"
  • Timeout: If sender doesn't get ACK in time, it resends like "You there??"

Pros vs Cons ⚖️

Pros 👍

  • Simple AF to implement
  • Guaranteed delivery (no packet left behind)
  • No congestion (chill transmission pace)

Cons 👎

  • Slow as molasses (only one packet at a time)
  • Inefficient for long-distance (high latency = lots of waiting)
  • ACK could get lost too (double trouble)

Real-World Tea ☕

Used in basic communication systems, some IoT devices, and anywhere you need reliability over speed. Like texting your crush - you wait for a reply before double-texting, right? (Unless you're desperate 😅)

Live Simulation

Sender

Receiver

Simulation Stats

Packets Sent

0

ACKs Received

0

Timeouts

0

Packet Loss

0

FAQs - For the Curious Minds