Skip to the content.

πŸš€ 1. What is HTTP?

HTTP = HyperText Transfer Protocol It is just a rulebook (protocol) that tells computers how to talk to each other on the internet.

Example: Your browser says β†’ β€œGive me this webpage” Server replies β†’ β€œHere it is!”

But how does that actually happen?


🌐 2. How does your message travel from your browser to a server?

Imagine you type:

https://google.com

These steps happen:


Step 1: Your browser creates an HTTP request

Example:

GET / HTTP/1.1
Host: google.com

This is just text.


Step 2: HTTP is wrapped in TCP

HTTP sits on top of TCP.

TCP job:

So your one HTTP request becomes maybe 5–20 small packets:

[packet 1]
[packet 2]
[packet 3]
...

Step 3: Packets are converted to electrical signals / light pulses / radio waves

This is where data physically travels.

YES β€” the actual bits (0/1) are electrical/light/radio signals!

Depending on what you use:

Device Medium How data travels
Ethernet cable Electricity pulses inside copper wires
Fiber optic Light laser pulses
Wi-Fi Radio waves through the air
Mobile network Radio waves through air to towers

So if you are using Wi-Fi or mobile, πŸ‘‰ your HTTP request literally travels through the air as radio waves.

If you use wired LAN, then it travels through cables.


πŸ“‘ 3. From your home β†’ to the destination

Your HTTP packets travel like this:

Your browser
β†’ WiFi router
β†’ ISP (Jio, Airtel, etc.)
β†’ Many routers on the internet
β†’ Data center
β†’ Target server (like Google)

On each hop, the packet is forwarded closer to the destination.


πŸ–₯️ 4. Server receives HTTP β†’ reads it β†’ sends HTTP response

Server response example:

HTTP/1.1 200 OK
Content-Type: text/html

<html>...</html>

That response also travels as:

Same concept.


πŸ” 5. What about HTTPS?

HTTPS = HTTP + encryption (TLS)

Everything is the same except:


βœ”οΈ So is data literally flying in the air?

YES β€” if you are on Wi-Fi or mobile network.

Data is encoded into radio waves like this:

01001010 01000101 β†’ converted into radio frequency variations β†’ sent through air

Your router and phone understand the pattern and decode it back to bits.


🎯 Simple explanation (super short version)


πŸ›£οΈ 1️⃣ How routers know where to send your packets

Think of the internet as a massive road network, and packets are small envelopes.

A packet contains:

Routers don’t open the packet. They only look at the destination IP address.


πŸ” Routers use Routing Tables

Every router has a table like:

Destination Range Next Hop Router
192.168.0.0/16 send to Home Router
172.16.0.0/12 send to ISP
0.0.0.0/0 send to Internet backbone

The router checks:

β€œWhich range does this IP belong to?”

Then forwards accordingly.


🧠 How routing tables are built

Big routers talk to each other using protocols like:

Routers constantly update each other about:

That’s why the Internet always finds a route even if some network goes down.


πŸ“¦ 2️⃣ TCP vs UDP β€” Why HTTP needs TCP

⭐ TCP (Transmission Control Protocol)

Reliable, ordered, error-checked delivery.

TCP does:

HTTP was designed expecting reliability and ordering, so:

πŸ‘‰ HTTP uses TCP


⚑ UDP (User Datagram Protocol)

Used for:

Why? If a packet is lost during a call, you don’t want to wait for a retransmission.


πŸ“Œ Summary

Feature TCP UDP
Reliable βœ”οΈ ❌
Ordered βœ”οΈ ❌
Fast ❌ βœ”οΈ
Used by HTTP βœ”οΈ ❌

πŸ“‘ 3️⃣ How Wi-Fi actually sends 0s and 1s

Yes β€” your data literally travels through the air as radio waves.

A radio wave is just an oscillating electromagnetic signal.

To send bits:

🧲 Wi-Fi uses modulation:

It changes:

Example:

This technique is called QAM (Quadrature Amplitude Modulation).


πŸ“Ά Imagine a wave like this:

Changing the wave slightly = encoded information.

Your laptop receives the wave β†’ converts back into digital bits β†’ into TCP packets β†’ into HTTP text.


🌍 4️⃣ Full End-to-End Diagram of One HTTP Request

Let’s say you open your browser and type:

https://example.com

Step-by-step:


🏠 (1) Browser creates HTTP request

GET / HTTP/1.1
Host: example.com

🌐 (2) HTTP is encrypted into HTTPS using TLS

Now it becomes unreadable binary.


πŸ“¦ (3) HTTPS data β†’ TCP packets

Packets are created:

Packet 1: [header + encrypted data]
Packet 2: ...

πŸ“‘ (4) Packets go to your Wi-Fi router

Converted into radio waves.


🚦 (5) Router β†’ ISP β†’ Internet backbone

Routers forward packets based on routing tables.


🏒 (6) Packets reach the server

Server decrypts HTTPS β†’ reads HTTP request.


πŸ“€ (7) Server sends HTTP response

Example:

HTTP/1.1 200 OK
Content-Type: text/html
<body>Hello</body>

Reverse journey back to your browser.


🎨 (8) Browser renders the HTML

Screen shows the webpage.


⚑ 5️⃣ How HTTP/2 and HTTP/3 change all this


πŸš€ HTTP/1.1


⚑ HTTP/2 (big upgrade)

BUT: If one packet is lost β†’ all streams wait (TCP HoL blocking).


πŸ”₯ HTTP/3 (biggest change)

Uses QUIC protocol instead of TCP. QUIC is built on UDP but adds reliability.

Benefits:


πŸ“Œ Summary table

Feature HTTP/1.1 HTTP/2 HTTP/3
Underlying TCP TCP UDP (QUIC)
Multiplexing ❌ βœ”οΈ βœ”οΈ
Head-of-line blocking High Medium None
Speed Slow Fast Fastest

Zoom (and almost all video-calling apps like Meet, Teams, WhatsApp) use UDP because UDP matches the nature of real-time communication.

Let’s break it down super simply so it permanently clicks.


πŸŽ₯ Why Zoom uses UDP instead of TCP

🧠 Reason 1: Real-time > Reliability

In a live call, you want:

You do not want:

TCP tries too hard to guarantee reliability.

TCP behavior:

If a packet is lost β†’ TCP retransmits it β†’ causes delay.

🚫 In video calls:

UDP says:

β€œLost packet? Ignore it, continue with the new ones.”

This is perfect for real-time.


⚑ Reason 2: UDP is faster

UDP has:

So it is extremely low-latency.

Zoom needs speed, not historical accuracy.


πŸͺ„ Reason 3: Zoom adds its own smart reliability

While UDP itself is unreliable, Zoom builds reliability on top of UDP:

So Zoom gets speed of UDP + enough reliability.


🎧 Reason 4: Small loss feels better than delay

Imagine:

Option A β€” Few pixels glitch (UDP)

Video continues smoothly.

Option B β€” Perfect video but freezes for 1 second (TCP)

Conversation breaks, unacceptable.

Zoom always prefers smooth with minor loss.


πŸ“Ά Reason 5: Network changes and mobile use

UDP handles:

Zoom’s algorithm adapts instantly.

TCP cannot adapt quickly.


πŸ“ Summary (short and memorable)

Feature TCP UDP Which is better for Zoom?
Reliability βœ”οΈ ❌ TCP
Speed ❌ βœ”οΈ UDP
Retransmission βœ”οΈ ❌ UDP
Latency High Low UDP
Real-time suitability Poor Excellent UDP

πŸ‘‰ Zoom uses UDP because real-time > reliability πŸ‘‰ Freezing is worse than losing a few frames