CS Atlas GATE 2027
Computer Networks course
0 / 90 complete

Computer Networks/Phase 2 · Data Link Layer

Chapter review L2.1 · Item 25 of 90

Role of the data link layer

Read at your own pace. Try the questions before opening the answers.

On this page

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

  1. NAT · 1 mark

    A packet crosses 4 routers between two hosts. How many separate frames carry it?

    Write your answer before opening the key.

  2. MCQ · 1 mark

    Which address is flat (no location information)?

    1. MAC address
    2. Network-layer address
    3. Both
    4. Neither
  3. NAT · 1 mark

    How many MAC addresses can one 24-bit vendor prefix cover?

    Write your answer before opening the key.

  4. MCQ · 1 mark

    Which layer chooses the route, and which carries the unit across one hop?

    1. Data link; network
    2. Network; data link
    3. Transport; network
    4. Physical; data link
  5. MCQ · 2 marks

    Bit stuffing for data 0111110 (flag 01111110) produces:

    1. 01111100
    2. 0111110
    3. 011111010
    4. 00111110
  6. MSQ · 1 mark

    Which change at every router hop?

    1. Source MAC address
    2. Destination MAC address
    3. Destination network-layer address
    4. The frame itself
  7. NAT · 1 mark

    Bytes in a MAC address?

    Write your answer before opening the key.

  8. MCQ · 1 mark

    Store-and-forward at a router means it receives the whole ___ before forwarding.

    1. frame
    2. bit
    3. message
    4. segment

Answer key

Try the questions first. Open when you are ready to check.
  1. 5 — 4 routers → 5 links → 5 frames.

    Review lesson 2.1

  2. 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.

    Review lesson 2.1

  3. 16777216 — 2²⁴.

    Review lesson 2.1

  4. B — Network plans the route; data link handles one hop.
    • A: Reversed.
    • C: Transport is process to process.
    • D: Physical sends signals only.

    Review lesson 1.1.2

  5. 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.

    Review lesson 2.1

  6. ABD — A fresh frame with new MAC addresses is built per link.
    • C: The network address stays end to end.

    Review lesson 2.1

  7. 6 — 48 / 8 = 6.

    Review lesson 2.1

  8. 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.

    Review lesson 1.2.2

Ready for the next idea?

Mark this item complete when you’ve finished reading and working through it.