Menu
Coddy logo textTech

Headers Everywhere

Lesson 26 of 32 in Coddy's The OSI Model course.

Each wrap is physically a header stuck in front of what came from above. On the wire, reading from the outside in, a web request looks like:

Ethernet header | IP header | TCP header | data

Each header carries that layer's addressing: the Ethernet header holds the MACs, the IP header the IP addresses and TTL, the TCP header the ports and sequence numbers.

This is why tools like Wireshark can dissect any capture: the nesting order is always the same, so each header tells the parser what comes next.

challenge icon

Challenge

Beginner

Print which header carries each piece of addressing, one per line:

  1. MAC addresses
  2. IP addresses
  3. Port numbers

Answer with the header names: Ethernet, IP or TCP.

Expected output:

Ethernet
IP
TCP

Try it yourself

Terminal

All lessons in The OSI Model

Practice on your own: Terminal playground