Computer Networks · Revision notes

Data Link Layer & MAC Protocols

The data link layer moves frames between neighbouring nodes. This chapter covers framing and bit stuffing, error detection with parity and CRC, shared-medium access (CSMA/CD and CSMA/CA), the Ethernet frame and MAC address, and how learning switches forward frames.

Quick revision

  • Bit stuffing: 0 after five 1s; flag 01111110
  • CRC: append r zeros, XOR division, remainder replaces zeros
  • CSMA/CD: min frame = 2·Tp·B; slot time 51.2 µs at 10 Mbps
  • Wi-Fi = CSMA/CA; Ethernet = CSMA/CD
  • Ethernet frame 64–1518 bytes; payload 46–1500
  • Switch: learn source, forward known, flood unknown/broadcast
Read the full Data Link Layer & MAC Protocols notes on Doubtclip →