durian-hypermediaStyle

All fixtures · From the Format page · format/67-3d-a-request-through-the-network-layers.dh.md

Source
---
title: "3D: a request through the network layers"
description: A fixture made from the Format page section of the same name.
---

## 3D: a request through the network layers

Two machines with the same five layers. When top-level things sit on two or more layers, the 2D stage draws one band per layer and lines up each band's things in columns, so the two stacks stand side by side.

```animation 3d
layer app "application"
layer tls "TLS"
layer tcp "TCP"
layer ip "IP"
layer link "link"
family cl "the browser's machine"
family sv "the server's machine"
box a1 "browser" layer=app is=cl
box b1 "web server" layer=app is=sv
box a2 "encrypt" layer=tls is=cl
box b2 "decrypt" layer=tls is=sv
box a3 "segments" layer=tcp is=cl
box b3 "segments" layer=tcp is=sv
box a4 "packets" layer=ip is=cl
box b4 "packets" layer=ip is=sv
box a5 "Wi-Fi" layer=link is=cl note="the laptop's network card"
box b5 "Ethernet" layer=link is=sv note="the server's network card"
a1 -> a2 -> a3 -> a4 -> a5
b5 -> b4 -> b3 -> b2 -> b1
a5 -> b5 "the wire"
@step A browser on one machine asks a web server on another for a page. Each machine has the same five layers.
split layers
@step Going down: TLS encrypts the request.
send "GET /" a1 -> a2
@step TCP cuts it into numbered segments.
send "encrypted" a2 -> a3
camera a3 close turn=left
@step IP addresses each one: packets.
send "segments" a3 -> a4
camera a4 close turn=left
@step The link layer makes them signals.
send "packets" a4 -> a5
camera a5 close turn=left tilt=low
@step The signals cross the wire to the other machine.
send "bits" a5 -> b5
camera a5 b5 turn=front tilt=low
@step Going up, each layer undoes its twin's work: to IP.
send "bits" b5 -> b4
camera all
@step IP hands the segments to TCP.
send "packets" b4 -> b3
@step TCP puts them in order, for TLS.
send "segments" b3 -> b2
@step TLS decrypts the request, and the web server reads it.
send "GET /" b2 -> b1
@step Look at one layer: TCP on both machines talks only to TCP. The layers above and below are its tools.
focus tcp
highlight a3 b3
@step The web server's reply goes back to the browser the same way, one layer per hop.
focus all
stack layers
highlight b1 a1 tone=good
say b1: 200 OK
```
LLM view
---
title: "3D: a request through the network layers"
description: A fixture made from the Format page section of the same name.
source: format/67-3d-a-request-through-the-network-layers.dh.md
---
<!-- Made by dh llm from the source; nobody edits this file. -->

## 3D: a request through the network layers

Two machines with the same five layers. When top-level things sit on two or more layers, the 2D stage draws one band per layer and lines up each band's things in columns, so the two stacks stand side by side.

Animation, 12 steps. Starts with: box a1 "browser"; box b1 "web server"; box a2 "encrypt"; box b2 "decrypt"; box a3 "segments"; box b3 "segments"; box a4 "packets"; box b4 "packets"; box a5 "Wi-Fi"; box b5 "Ethernet". Connected: a1 -> a2, a2 -> a3, a3 -> a4, a4 -> a5, b5 -> b4, b4 -> b3, b3 -> b2, b2 -> b1, a5 -> b5 "the wire". Layers, top to bottom: app "application" (a1, b1); tls "TLS" (a2, b2); tcp "TCP" (a3, b3); ip "IP" (a4, b4); link (a5, b5). Families, one colour each: cl "the browser's machine" (a1, a2, a3, a4, a5); sv "the server's machine" (b1, b2, b3, b4, b5).

1. A browser on one machine asks a web server on another for a page. Each machine has the same five layers.
2. Going down: TLS encrypts the request.
   a1 -> a2: GET /
3. TCP cuts it into numbered segments.
   a2 -> a3: encrypted
4. IP addresses each one: packets.
   a3 -> a4: segments
5. The link layer makes them signals.
   a4 -> a5: packets
6. The signals cross the wire to the other machine.
   a5 -> b5: bits
7. Going up, each layer undoes its twin's work: to IP.
   b5 -> b4: bits
8. IP hands the segments to TCP.
   b4 -> b3: packets
9. TCP puts them in order, for TLS.
   b3 -> b2: segments
10. TLS decrypts the request, and the web server reads it.
   b2 -> b1: GET /
11. Look at one layer: TCP on both machines talks only to TCP. The layers above and below are its tools.
12. The web server's reply goes back to the browser the same way, one layer per hop.

3D: a request through the network layers

Two machines with the same five layers. When top-level things sit on two or more layers, the 2D stage draws one band per layer and lines up each band's things in columns, so the two stacks stand side by side.

Animation, 12 steps. Starts with: box a1 "browser"; box b1 "web server"; box a2 "encrypt"; box b2 "decrypt"; box a3 "segments"; box b3 "segments"; box a4 "packets"; box b4 "packets"; box a5 "Wi-Fi"; box b5 "Ethernet". Connected: a1 -> a2, a2 -> a3, a3 -> a4, a4 -> a5, b5 -> b4, b4 -> b3, b3 -> b2, b2 -> b1, a5 -> b5 "the wire". Layers, top to bottom: app "application" (a1, b1); tls "TLS" (a2, b2); tcp "TCP" (a3, b3); ip "IP" (a4, b4); link (a5, b5). Families, one colour each: cl "the browser's machine" (a1, a2, a3, a4, a5); sv "the server's machine" (b1, b2, b3, b4, b5). 1. A browser on one machine asks a web server on another for a page. Each machine has the same five layers. 2. Going down: TLS encrypts the request. a1 -> a2: GET / 3. TCP cuts it into numbered segments. a2 -> a3: encrypted 4. IP addresses each one: packets. a3 -> a4: segments 5. The link layer makes them signals. a4 -> a5: packets 6. The signals cross the wire to the other machine. a5 -> b5: bits 7. Going up, each layer undoes its twin's work: to IP. b5 -> b4: bits 8. IP hands the segments to TCP. b4 -> b3: packets 9. TCP puts them in order, for TLS. b3 -> b2: segments 10. TLS decrypts the request, and the web server reads it. b2 -> b1: GET / 11. Look at one layer: TCP on both machines talks only to TCP. The layers above and below are its tools. 12. The web server's reply goes back to the browser the same way, one layer per hop.

  • the browser's machine
  • the server's machine
applicationapplicationTLSTLSTCPTCPIPIPlinklinkthe wirebrowserbrowserweb serverweb serverencryptencryptdecryptdecryptsegmentssegmentssegmentssegmentspacketspacketspacketspacketsWi-Fi · the laptop's network cardWi-FiEthernet · the server's network cardEthernet
1A browser on one machine asks a web server on another for a page. Each machine has the same five layers.
1 / 12
All steps (12)