🌐 How HTTP Works Across TCP/IP Layers

Understanding network communication from application to physical layer

← Home

This page explains how HTTP requests flow through the different layers of the TCP/IP protocol stack. When you make a request from a web browser or application, the data travels through multiple network layers—each with a specific role—before reaching the destination server. Understanding this layered approach is fundamental to grasping how modern networking and web communication work.

1. Application Layer (HTTP)

2. Transport Layer (TCP)

3. Internet Layer (IP)

4. Network Access / Link Layer (Ethernet, Wi-Fi)

Where the Connection is Established

Will the Same Connection Be Used for All Requests?

HTTP/1.0

HTTP/1.1

HTTP/2

Summary of the Flow

  1. HTTP request is generated by the application.
  2. TCP creates a reliable connection via handshake.
  3. IP routes the packets through routers to the destination server.
  4. Ethernet/Wi-Fi transmits frames physically across the network.
  5. The receiving server unwraps the layers and processes the HTTP request.

Diagram Example

The diagram below illustrates how multiple HTTP requests can either reuse a single TCP connection (HTTP/1.1, HTTP/2) or use multiple separate TCP connections (HTTP/1.0).

TCP Connection Diagram