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)
- List the functions of the data link layer.
- What is bit stuffing?
- Distinguish parity check and CRC.
- What is the Hamming distance?
- Distinguish Go-Back-N and Selective Repeat.
- What is a MAC address?
- Compare IPv4 and IPv6 addresses.
- What is CIDR notation?
- What is ARP spoofing?
- What is a trunk port?
Medium Answer Questions (5 marks each)
- Explain framing methods with examples.
- Compute the CRC for given data and generator.
- Explain sliding window flow control.
- Explain the Ethernet frame format and switching methods.
- Subnet a given network into equal subnets.
- Explain VLANs and 802.1Q tagging.
Long Answer Questions (15 marks each)
- Explain the functions of the data link layer, framing, error detection and correction, and flow control.
- Explain Ethernet standards, the frame structure, MAC addressing and Ethernet switching.
- Explain the TCP/IP suite, IPv4 and IPv6 addressing, subnetting and CIDR, with examples.
- 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
