Menu
Coddy logo textTech

Crossing the Networks

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

Your packet crosses a dozen routers on its way. Here is the subtle part: at every hop, the frame is torn off and rebuilt, because MAC addresses only mean something on one local segment. The router unwraps to layer 3, picks the next hop, and wraps a fresh frame with new MACs.

The IP addresses stay the same for the whole trip (source: you, destination: the server), while the MAC addresses change at every single hop. Only TTL changes inside the IP header, ticking down by one per router.

One sentence to remember: MACs are per hop, IPs are end to end.

challenge icon

Challenge

Beginner

Print which kind of address changes at every hop, then which kind stays the same end to end. One word per line, uppercase.

Expected output:

MAC
IP

Try it yourself

Terminal

All lessons in The OSI Model

Practice on your own: Terminal playground