W1·A3 — Where are the layers
Time: 30 min
Needs: A2's topology
GNS3 project: w01-a2-roles (continue in it)
Info
Times listed are approximate and provided as timing guidelines only. Take as much time as you need to complete the activity.
Question
What does the OSI model tell us about how networks work?
Predict first
How many different kinds of metadata does a request need to carry to retrieve a web page?
Can you name them?
Do this — capture one ping
-
Start the web server on
H1(see previous activity if you don't remember how) -
Right-click the
H2link → Start capture. Wireshark opens on that link and starts empty. -
On
H2:curl http://192.168.10.11:8080/index.html -
Read Wireshark. Select one packet and look at the details pane. Each row is a layer. How many rows are there?
- Click each layer (ignoring Frame, which is Wireshark's own metadata, not bytes on the wire) and watch the bottom pane highlight the bytes it owns.
- Watch carefully the status bar at the bottom of the screen. It shows the number of bytes the selected layer contains.
- Select one HTTP packet, click each layer in turn and write down the number of bytes in each layer.
- Expand each row and scan the contents.
What just happened?
- By capturing on
H2cable, you were able to see the entire conversation betweenH1andH2. -
The messages were broken down into chunks called datagrams.
The process of breaking down a message into datagrams is called fragmentation and is the job of the Transport layer.
-
Wireshark fills up with packets that make up that conversation. You can select each packet and examine it in detail.
-
Each packet is a nested structure of headers. Each header implements one of the layers in the OSI model
We call this encapsulation
-
Each layer carries its own addresses, in its own format, and neither layer can read the other's.
H1's MAC andH1's IP both identifyH1and have nothing to do with each other. - Look at the byte count in the packet. It's mostly headers.
Fill this in
Select one HTTP packet and fill in this table with the details.
Ask if there is a term you don't understand.
| Wireshark says | Layer # | Layer name | PDU name | Addresses at this layer | Bytes |
|---|---|---|---|---|---|
| Ethernet II | 2 | Data link | frame | src MAC, dst MAC | 14 |
| Internet Protocol Version 4 | 3 | ||||
| Transmission Control Protocol | |||||
| Hypertext Transfer Protocol | |||||
| Data | — | — | — | — |
Record
Worksheet section 3: the completed PDU table
If it went wrong
| Symptom | Cause | Fix |
|---|---|---|
| Start capture greyed out or "wireshark not on path" | Wireshark not on the client | Install Wireshark |
| Wireshark opens and stays empty | capture started after the request | start the capture first |