Ethernet
What it is for
Several machines share one wire -- how do you deliver data to just one of them?
Ethernet gives every NIC a 6-byte MAC address and writes "this frame is for whom" at the very front. Anything not addressed to you gets dropped.
How the switch knows where to send
★★★ From a self-learned MAC table that nobody configures:
· On every frame received -> record which port the source MAC is on;
· When forwarding -> look up which port the destination MAC is on.
★★ It learns on source and looks up on destination -- opposite directions.
★ Common misconceptions
★★ "A switch blocks broadcast" -- no. It separates collision domains; broadcast still reaches everyone. Separating broadcast domains takes a VLAN or a layer-3 device.
★★ "A bad checksum triggers retransmission" -- it does not. A mismatch is a silent drop; retransmission is TCP's job. So link bit errors look like unexplained loss from above.
★ "A MAC is permanent" -- unique from the factory, but changeable. Never treat it as a security credential.