Chapter recap
The data link layer moves a frame across one link: framing, MAC addressing (48-bit flat card names, 6 bytes), error detection, and access control on shared links. A packet crossing h links travels inside h different frames; only the MAC addresses change, never the network-layer addresses inside.
Practice questions
- NAT · 1 mark
A packet crosses 4 routers between two hosts. How many separate frames carry it?
Write your answer before opening the key.
- MCQ · 1 mark
Which address is flat (no location information)?
- MAC address
- Network-layer address
- Both
- Neither
- NAT · 1 mark
How many MAC addresses can one 24-bit vendor prefix cover?
Write your answer before opening the key.
- MCQ · 1 mark
Which layer chooses the route, and which carries the unit across one hop?
- Data link; network
- Network; data link
- Transport; network
- Physical; data link
- MCQ · 2 marks
Bit stuffing for data 0111110 (flag 01111110) produces:
- 01111100
- 0111110
- 011111010
- 00111110
- MSQ · 1 mark
Which change at every router hop?
- Source MAC address
- Destination MAC address
- Destination network-layer address
- The frame itself
- NAT · 1 mark
Bytes in a MAC address?
Write your answer before opening the key.
- MCQ · 1 mark
Store-and-forward at a router means it receives the whole ___ before forwarding.
- frame
- bit
- message
- segment
Answer key
Try the questions first. Open when you are ready to check.
- 5 — 4 routers → 5 links → 5 frames.
- A — MAC addresses name cards; network addresses encode where a host is.
- B: Network-layer addresses are hierarchical (Phase 3).
- C: Only MAC is flat.
- D: MAC is flat.
- 16777216 — 2²⁴.
- B — Network plans the route; data link handles one hop.
- A: Reversed.
- C: Transport is process to process.
- D: Physical sends signals only.
- A — After the five 1s a 0 is inserted: 011111 0 0 → 01111100.
- B: Stuffing is needed after five 1s.
- C: Too many bits.
- D: Inserted in the wrong place.
- ABD — A fresh frame with new MAC addresses is built per link.
- C: The network address stays end to end.
- 6 — 48 / 8 = 6.
- A — The router must receive the complete frame (and check it) before re-sending the packet in a new frame.
- B: Bits are not forwarded individually.
- C: Messages may span many packets.
- D: Routers do not handle segments.