Computer Networks
Link layer: Ethernet, ARP and error detection
How frames cross a local network and how errors are caught or corrected.
In two minutes
One idea to a line
A MAC address is 48 bits and names a network interface on the local network. ARP maps an IP address on the same network to a MAC address.
A switch learns which port each MAC address is on from the source of the frames it sees, and forwards only to that port.
A parity bit detects an odd number of bit errors; a CRC detects burst errors well; a checksum is weaker. A Hamming code corrects one bit.
A Hamming code with m data bits needs the smallest r with 2^r ≥ m + r + 1 parity bits.
CSMA/CD detects collisions on shared Ethernet and backs off; modern switched full-duplex Ethernet does not have collisions.
Slips people make here
Interviewers know them too
Thinking ARP works across routers.
Saying a parity bit can correct an error: it only detects.
Forgetting the parity bits themselves occupy positions in a Hamming code.
Your practice here
Not started
10 written questions, and 1 kind of calculation that change every time
No answers yet