SystemTutor
About
Sign in
Loading course documentation…
SystemTutor

COURSES

  • Data Structures & Algorithms
  • CSS MasterclassNew course
  • System DesignNew course

PRACTICE

  • Algorithm practice
  • CSS practice

LEGAL

  • Privacy Policy
  • Terms of Service
  • About

© 2026 SystemTutor. All rights reserved.

Built with 🫶 by Shatlyk

System design
How a Request Crosses a NetworkIPTCPUDP Routing, streams, and datagramsDNSHTTP Requests and Responses From a hostname to an HTTP response
Networking

How a Request Crosses a Network

Trace an HTTP request through the network layers and distinguish delay from throughput.

Lesson goal

Follow a request from a browser to a server and identify which layer is responsible at each step.

Before you begin — Application foundations.

A browser asks a server for a page. The browser knows which page it wants. The router in your home only needs enough information to send the packet one step closer to its destination. Dividing the work this way allows the same browser request to travel over Wi-Fi or Ethernet.

Follow the request down the stack

Suppose the browser uses HTTP/1.1 over TCP. Each layer adds the information its peer will need to interpret the data. This process is called encapsulation.

LayerWhat it contributes to this request
ApplicationHTTP expresses an operation such as GET /users/42.
TransportTCP identifies the connection and tracks the order of its bytes.
InternetIP adds addresses that routers use to forward packets toward the destination.
LinkWi-Fi or Ethernet delivers a frame across the current local link.

As application data travels down the stack, transport, IP, and link headers are added for delivery.

A switch can forward the frame within a local network. A router receives the packet and forwards it on another link, using a new frame for that hop. At the destination, IP delivers the payload to TCP. TCP makes the ordered bytes available to the server, which can then read the HTTP request.

This four-layer grouping describes the Internet protocol suite. You may also encounter the seven-layer OSI model. Its session, presentation, and application layers fit roughly into the application row above. Its data-link and physical layers fit into the link row.

Measure waiting and completed work

Round-trip time (RTT) measures how long a signal takes to reach a peer and receive a reply. Throughput measures work completed per unit of time, such as bytes delivered per second. If a client needs two sequential exchanges on a path with a 40 ms RTT, it spends about 80 ms on round trips alone, before adding processing or transfer time. More bandwidth can help with a large response, while the client still has to wait for each dependent reply.

Check your understanding

A request crosses three routers. Which part changes with each local link, and which information keeps the packet headed toward the server?

Compare your reasoning

The link-layer frame carries the packet to the next hop. In ordinary routing, each router uses the packet’s destination IP address to select where to forward it. The HTTP operation matters when the packet’s contents reach the application.

Key Takeaways

  • Layers divide a request into application meaning, transport, routing, and local delivery.
  • Encapsulation adds each layer’s metadata on the sender and lets the receiver recover the original message.
  • Round trips add waiting time. Throughput describes how much data or work finishes in an interval.

How is this lesson?

Previous lesson From deployment to a profile requestNext lessonIP
Edit on GitHubReport on GitHub
On this page
%

On this page

Follow the request down the stackMeasure waiting and completed workCheck your understandingKey Takeaways