Unit summary

  • The data link layer provides framing, MAC addressing, error control, flow control and access control, through its LLC and MAC sublayers.
  • Errors are detected with parity, checksums and CRC, and corrected with Hamming codes or retransmission.
  • Stop-and-wait, Go-Back-N and Selective Repeat control the flow of frames.
  • Ethernet (IEEE 802.3) frames carry 48-bit MAC addresses, and switches learn, forward, flood and filter.
  • IPv4 uses 32-bit addresses and IPv6 128-bit addresses; subnetting and CIDR divide address space efficiently.
  • ARP maps IP to MAC addresses and can be abused by spoofing; VLANs divide a switched network into broadcast domains.

Glossary

Term Meaning
ARP Maps IPv4 addresses to MAC addresses.
ARP spoofing Forging ARP replies to intercept traffic.
ARQ Automatic repeat request.
Bit stuffing Inserting a 0 after five 1s to protect the flag.
Checksum A one's-complement sum used to detect errors.
CIDR Classless addressing with prefix lengths.
CRC Cyclic redundancy check by modulo-2 division.
CSMA/CD Collision detection in shared Ethernet.
Ethernet The IEEE 802.3 wired LAN technology.
Framing Dividing bits into frames.
Go-Back-N ARQ that resends all frames after a lost one.
Hamming code A code that corrects single-bit errors.
IPv4 The 32-bit Internet Protocol.
IPv6 The 128-bit Internet Protocol.
MAC address A 48-bit hardware address.
Parity bit An extra bit making the count of 1s even or odd.
Selective Repeat ARQ that resends only lost frames.
Sliding window Sending several frames before an acknowledgement.
Subnet mask Marks the network bits of an address.
VLAN A virtual LAN, a separate broadcast domain.

Question bank

Short Answer Questions (2 marks each)

  1. List the functions of the data link layer.
  2. What is bit stuffing?
  3. Distinguish parity check and CRC.
  4. What is the Hamming distance?
  5. Distinguish Go-Back-N and Selective Repeat.
  6. What is a MAC address?
  7. Compare IPv4 and IPv6 addresses.
  8. What is CIDR notation?
  9. What is ARP spoofing?
  10. What is a trunk port?

Medium Answer Questions (5 marks each)

  1. Explain framing methods with examples.
  2. Compute the CRC for given data and generator.
  3. Explain sliding window flow control.
  4. Explain the Ethernet frame format and switching methods.
  5. Subnet a given network into equal subnets.
  6. Explain VLANs and 802.1Q tagging.

Long Answer Questions (15 marks each)

  1. Explain the functions of the data link layer, framing, error detection and correction, and flow control.
  2. Explain Ethernet standards, the frame structure, MAC addressing and Ethernet switching.
  3. Explain the TCP/IP suite, IPv4 and IPv6 addressing, subnetting and CIDR, with examples.
  4. Explain ARP, its operation and security issues, and VLANs with their configuration and benefits.

Sources

  • Official BCA syllabus Computer Networks, course code 26BCA404DS02, Unit II