Course overviewTopic 9 / 31
Computer Networks • Deep Lesson 20 min Physical & Data Link Layers

Trace One Ethernet Frame Across Two Switches

A frame trace forces you to separate end-host knowledge from switch behavior. The sender creates the frame using a local destination MAC. Each switch makes a forwarding decision from its MAC table, while the frame's payload remains an IP packet. When the frame crosses a router, the Layer 2 envelope is recreated for the next link.

LEARNING LOOPWatch→Read→Inspect→Retrieve→Teach back
Trace One Ethernet Frame Across Two Switches
Week 1–2 · Topic 9 / 31
Visual model

Watch the structure first. Then read the technical details.

Host A
Switch 1
Switch 2
Router (if needed)
Host B
Article companion· Week 1–2

A frame trace forces you to separate end-host knowledge from switch behavior. The sender creates the frame using a local destination MAC. Each switch makes a forwarding decision from its MAC table, while the frame's payload remains an IP packet. When the frame crosses a router, the Layer 2 envelope is recreated for the next link.

01

Same-LAN path

If two hosts are in the same VLAN, the source can ARP for the destination and send the frame through one or more switches. The destination MAC remains the same across the switched path.

02

Routed path

When the destination is remote, the sender uses the gateway MAC. The router removes the inbound frame, examines the IP packet, chooses a route, and builds a fresh outbound frame on the next interface.

03

Why this matters

Packets and frames have different scopes. A packet may cross multiple networks; a frame normally exists only for one link or LAN segment at a time.

DUAL CODING

See the mechanism before you memorize it

One diagram, one causal story, one reconstruction task.

VISUAL RECONSTRUCTION

Trace a frame across 2 switches (worksheet) — causal map

4 stages
01

Host A

Build frame: src MAC A, dst MAC B or gateway MAC.

02

Switch 1

Look up destination MAC and choose output port.

03

Switch 2

Repeat the same Layer 2 lookup on its own table.

04

Router, if needed

Terminate the frame, route the IP packet, then create a new frame.

Trace the mechanism from left to right. On smaller screens, follow the numbered sequence. Then redraw the same flow without looking.
ACTIVE RECONSTRUCTION

Draw the idea yourself

Rebuild the core flow on a real canvas before moving to the worked walkthrough.

SKETCHFLOW

Trace a frame across 2 switches (worksheet) — practice canvas

Sketch the Trace a frame across 2 switches (worksheet) mechanism from memory. Label the input, transformation, observation, and transfer.

Practice canvas ready

The canvas loads when you reach this section.

Draw first. Compare second.Touch + mouse friendly
STEP BY STEP

Walk the system

01

Host A

Build frame: src MAC A, dst MAC B or gateway MAC.

02

Switch 1

Look up destination MAC and choose output port.

03

Switch 2

Repeat the same Layer 2 lookup on its own table.

04

Router, if needed

Terminate the frame, route the IP packet, then create a new frame.

05

Host B

Receive the frame, validate it, pass the payload up the stack.

CONCRETE ARTIFACT

Hop-by-hop vs end-to-end

Use this artifact whenever an interview question tries to trick you into saying MAC and IP addresses behave the same way.

textcopy → rebuild → modify
End-to-end:  IP src = A  →  IP dst = B
Hop 1:       MAC A  →  MAC Gateway
Hop 2:       MAC Router2 → MAC Router3
Hop final:   MAC Gateway → MAC B
MISCONCEPTIONS

What usually goes wrong

Keep the first-hop MAC unchanged across the whole Internet.

Assume a switch reads the TCP port to forward an ordinary Ethernet frame.

Forget that each routed hop has its own link-layer envelope.

RETRIEVAL PRACTICE

Close the tab. Rebuild it from memory.

Read the question, answer aloud, then reveal.

Does a switch change the IP packet?Reveal answer

Ordinary Layer 2 switching forwards the Ethernet frame without changing the IP payload.

What changes at a router?Reveal answer

The incoming frame is removed and a new outgoing frame is created for the next link. The IP packet is forwarded, subject to routing and fields that may be updated by the router.

Why does this simplify local networking?Reveal answer

Each hop only needs local link-layer addressing while the IP layer provides a logical identity that can span multiple networks.

FEYNMAN

Teach it back in plain English

Take a packet from your laptop to a cloud server and list every MAC address you expect to see at each hop. Then list the IP addresses separately.

EXAM / INTERVIEW

What a strong answer sounds like

Frame-vs-packet tracing is a classic interview and Wireshark skill.

NEXT CONNECTION

Make this idea travel.

Connect it next to: ipv4-cidr • routing • tcp-reliability.

COURSE CONTENTS

Trace a frame across 2 switches (worksheet)

01How the Internet Works + OSI ModelWeek 1 · 4 topics0/4
02Physical & Data Link LayersWeek 1–2 · 5 topics0/5
03Network Layer: IP & RoutingWeek 2–3 · 6 topics0/6
04Transport Layer: TCP & UDPWeek 3–4 · 5 topics0/5
05Application Layer: HTTP, DNS & FriendsWeek 4–5 · 6 topics0/6
06Security & Troubleshooting ToolkitWeek 5 · 5 topics0/5