Link Layer for Computer Networkss
The link layer moves frames between neighbouring nodes on the same network segment. It covers framing, error detection with checksums and CRC, medium access control, Ethernet, MAC addresses, ARP, switches and VLANs. A switch learns which MAC address sits on which port, which is how a local network forwards traffic efficiently.
Stage: Link, Wireless and Security · Part of the Computer Networks roadmap · Last reviewed 19 November 2026
What to learn in Link Layer
- Compute a simple parity bit and a CRC remainder to detect transmission errors
- Explain how ARP maps an IP address to a MAC address on a local network
- Describe how a switch builds and uses its MAC address table
- Compare CSMA/CD in classic Ethernet with modern full-duplex switched links
- Explain why VLANs separate broadcast domains on one physical switch
Link Layer interview questions
How does a switch differ from a hub?
A hub repeats incoming bits to every port, creating one shared collision domain. A switch reads the destination MAC address and forwards the frame only to the correct port once it has learned the location, giving each port its own collision domain and better throughput.
What does ARP do and why is it needed?
Hosts send frames using MAC addresses, but applications use IP addresses. ARP broadcasts a request asking who owns a given IP on the local network, and the owner replies with its MAC address. The sender caches the mapping to avoid repeating the request.
Where Link Layer fits in the Computer Networks roadmap
Link Layer belongs to the Link, Wireless and Security stage (advanced level). The edges.
Other units in this stage
Back to the full Computer Networks roadmap