Computer networks · 01

What actually crosses the wire

Loading one page is four conversations, not one. Here is the recording, event by event: a name resolved, a connection opened, a request sent, a response returned.

Figure 1 · Protocol explorer

Open full screen →

This is what actually crossed the wire when client loaded http://www.example.com/: a name looked up, a connection opened, one request sent, one response returned. 7 events were recorded in all, and the whole exchange is plain HTTP, so every byte of it is readable by anything on the path.

Client192.168.1.10DNS resolver8.8.8.8Web server203.0.113.10DNSDNSTCPTCPTCPHTTPHTTP
The participants the trace actually names, and the links it used.
Recorded events
7
Trace span
76 ms
Recorded bytes
13,949
Response
12.8 KB
  • 76 ms is the span between the first and last recorded observation. It is not how long the page took to load, and not how long the response took to arrive.
  • 13,949 bytes is the sum of the recorded sizes. It is not the size of the HTML.
  • Row 7 is one record, not one packet: it aggregates 9 wire segments, because the body did not fit in one.
  • Timestamps mark when something was observed. The movement on the diagram shows direction only — travel time is illustrative and is not a measured arrival.
  • Data ACKs omitted — the trace is simplified.
Every event in http://www.example.com/, in observation order: time, source, destination, protocol, summary, and recorded size.
No.TimeSourceDestinationProtocolInfoSize
10.000s192.168.1.108.8.8.8DNSStandard query A www.example.com75 B
20.012s8.8.8.8192.168.1.10DNSStandard query response A 203.0.113.1091 B
30.024s192.168.1.10203.0.113.10TCP52344 → 80 [SYN] Seq=066 B
40.041s203.0.113.10192.168.1.10TCP80 → 52344 [SYN, ACK] Seq=0 Ack=166 B
50.058s192.168.1.10203.0.113.10TCP52344 → 80 [ACK] Seq=1 Ack=160 B
60.058s192.168.1.10203.0.113.10HTTPGET / HTTP/1.1484 B
70.076s203.0.113.10192.168.1.10HTTPHTTP/1.1 200 OK (text/html), 9 segments12.8 KB

Every event, in order

  1. 1 · DNS · 0.000s

    The name is looked up

    Standard query A www.example.com

    Client cannot open a connection to a name, only to an address, so it asks DNS resolver to look the name up.

    Client (192.168.1.10) to DNS resolver (8.8.8.8), 75 B recorded at 0.000s.

    This is the step people forget is a network round trip of its own. It happens before any connection to the website exists.

  2. 2 · DNS · 0.012s

    The name is resolved

    Standard query response A 203.0.113.10

    DNS resolver answers with the address records for the name that was asked about.

    DNS resolver (8.8.8.8) to Client (192.168.1.10), 91 B recorded at 0.012s.

    Nothing later in the trace could have happened without this answer: every subsequent event is addressed to the host it named.

  3. 3 · TCP · 0.024s

    Handshake, step one

    52344 → 80 [SYN] Seq=0

    Client proposes a connection and declares the sequence number it will count from.

    Client (192.168.1.10) to Web server (203.0.113.10), 66 B recorded at 0.024s.

    TCP will not carry a single byte of your request until both ends have agreed on where counting starts. That agreement costs a round trip, every time.

  4. 4 · TCP · 0.041s

    Handshake, step two

    80 → 52344 [SYN, ACK] Seq=0 Ack=1

    Web server accepts, acknowledges the client's sequence number, and declares its own.

    Web server (203.0.113.10) to Client (192.168.1.10), 66 B recorded at 0.041s.

    One packet does two jobs — accept and propose — which is why the handshake is three messages and not four.

  5. 5 · TCP · 0.058s

    Handshake, step three

    52344 → 80 [ACK] Seq=1 Ack=1

    Client acknowledges the server's sequence number. The connection is now open in both directions.

    Client (192.168.1.10) to Web server (203.0.113.10), 60 B recorded at 0.058s.

    The connection is established here, and this is the moment the request becomes sendable. Note how much of the trace has already elapsed before any HTTP exists.

  6. 6 · HTTP · 0.058s

    The request goes out

    GET / HTTP/1.1

    Client sends the request line and headers — the first application-layer bytes in the whole exchange.

    Client (192.168.1.10) to Web server (203.0.113.10), 484 B recorded at 0.058s.

    Plain HTTP means this is readable by anything on the path: the method, the host, the headers, all of it. That is the argument for HTTPS in one observation.

  7. 7 · HTTP · 0.076s

    The page comes back

    HTTP/1.1 200 OK (text/html), 9 segments

    Web server replies with the response. This single record aggregates 9 wire segments, because the body did not fit in one.

    Web server (203.0.113.10) to Client (192.168.1.10), 12.8 KB recorded at 0.076s.

    This is the largest thing in the trace by far, and the one row here that is not one packet. Reading it as a single arrival is the useful simplification; counting 9 segments is the honest detail.

What to take from this

Most of the elapsed time in that trace is not transfer. It is agreement: finding the address, then agreeing on where to start counting. Both cost a round trip before a single byte of the request can move, which is why the number of round trips a page needs matters more than its size on a slow link.

And the request itself — method, host, headers — is in the clear. Anything on the path can read it. That one observation is the whole argument for HTTPS, and it is visible right there in the table.

7 recorded events · 76 ms trace span · 13949 recorded bytes