0
0
Computer Networksknowledge~3 mins

Why Three-way handshake in Computer Networks? - Purpose & Use Cases

Choose your learning style9 modes available
The Big Idea

What if your messages got lost because you never checked if the other side was ready?

The Scenario

Imagine trying to start a phone call with a friend without any clear way to know if they are ready to talk. You just start speaking, hoping they are listening and ready. This can lead to confusion and missed messages.

The Problem

Without a clear process, messages can get lost or misunderstood. You might talk over each other or miss important information because there is no confirmation that both sides are ready. This makes communication slow and unreliable.

The Solution

The three-way handshake is like a polite phone call setup: one side says "Hello, are you there?", the other replies "Yes, I am here!", and then the first side confirms "Great, let's talk!". This ensures both sides are ready before exchanging important data.

Before vs After
Before
Send data immediately without confirmation
After
Send SYN, receive SYN-ACK, send ACK before data transfer
What It Enables

This process enables reliable and synchronized communication between two devices, preventing data loss and confusion.

Real Life Example

When you open a website, your computer and the server perform a three-way handshake to establish a connection before loading the page, ensuring smooth and reliable browsing.

Key Takeaways

Starting communication without confirmation can cause errors.

The three-way handshake confirms both sides are ready.

This leads to reliable and efficient data exchange.