▸Protocol notes for this page (click to expand)

Ethernet

What it is for

Ethernet lets several machines on the same network segment send data to just one of them.

Ethernet gives every NIC a 6-byte MAC address, and every frame starts with the destination MAC. A NIC drops frames whose destination MAC is not its own.

The switch forwards by its MAC table

A switch forwards by a MAC table that it learns by itself; nobody configures it:

· On every frame received, it records which port the frame's source MAC is on;
· When forwarding, it looks up which port the frame's destination MAC is on.

Learning uses the source MAC; lookup uses the destination MAC.

Common misconceptions

A switch does not separate broadcast domains. It separates collision domains; broadcast frames still reach the whole layer-2 network. Separating broadcast domains takes a VLAN or a layer-3 device.

A frame with a bad FCS is not retransmitted. Ethernet silently drops it; retransmission is TCP's job. So link bit errors show up above as unexplained loss.

A MAC address can be changed. It is unique from the factory but can be changed in software, so it must not be used as a security credential.