🎓 BookMCQ
← Back to 9. Introduction to Data Link Layer

📝 Services in Data Link Layer (32 MCQs)

Services Provided to the Network Layer

The data link layer offers services that allow the network layer to send packets across an individual link. Common services include framing, link access, physical addressing, and error detection. Some protocols also provide flow control or reliable delivery. These functions hide link-specific details from IP, but their exact combination depends on the technology. The service boundary presents a consistent interface to higher-layer protocols.

Framing, Link Access and Error Handling

Framing identifies the beginning and end of a data unit, while link access determines when a device may transmit on a shared medium. Error detection checks whether bits changed during transmission. Flow control can prevent a fast sender from overwhelming a receiver, and reliable delivery may use acknowledgements and retransmissions when required.

From Network-Layer Packet to Link Service

The network layer passes a packet to the link layer with the next-hop information. The link protocol encapsulates the packet in a frame and applies its access rules. At the receiving node, the protocol checks the frame and extracts the packet. Any link-specific acknowledgement or retransmission occurs before the packet is handed upward.

Comparing Ethernet and a Reliable Point-to-Point Link

Traditional wired Ethernet detects frame errors using a frame check sequence but does not normally acknowledge and retransmit each frame at the link layer. A reliable point-to-point protocol may add acknowledgements and retransmission. Both deliver frames over a link, but their service guarantees and overhead differ. The difference changes link overhead.

How Link Services Support End-to-End Communication

Link-layer services operate separately on each hop, while transport protocols such as TCP can provide end-to-end reliability between applications. A frame check sequence detects certain transmission errors on one link; it does not prove that an entire packet reached its final destination. Each layer contributes functions appropriate to its scope.

Distinguishing Available Services from Guaranteed Services

'Every link provides reliable delivery' is incorrect because many link protocols detect errors without retransmitting. 'Error detection corrects all damaged frames' confuses detection with correction. 'Link-layer flow control is the same as TCP congestion control' is false: link flow control protects a receiver on a link, whereas congestion control responds to network loading.

Matching a Service to Its Purpose

For examinations, match framing with frame boundaries, link access with medium sharing, physical addressing with local delivery, and error detection with corruption checks. Identify whether a named protocol supports acknowledgements, retransmission, or flow control. Separate per-link functions from end-to-end transport services and state when a feature is optional in protocol comparisons.

Link-Layer Service Terminology

  • Framing - Marks frame boundaries.
  • Link access - Controls shared-channel use.
  • Error detection - Finds transmission corruption.
  • Flow control - Protects a receiver from overload.
  • Acknowledgement - Confirms frame reception.
  • Retransmission - Resends a failed frame.
12
Easy
11
Medium
9
Hard

📝 All Services in Data Link Layer MCQs

Q1. If a frame is corrupted during transmission between Alice and router R2, which data‑link service will most likely prevent the error from propagating to the network layer?

A.Error detection using CRC ✅
B.Flow control
C.Address resolution
D.Broadcast
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The data‑link layer provides error detection, typically using a cyclic redundancy check (CRC). When a corrupted frame is detected, the layer discards it, preventing erroneous data from reaching the network layer. Flow control, address resolution, and broadcasting do not address corruption directly, making CRC the correct service.

Q2. When Alice sends a frame to Bob via routers R2 and R4, the frame must be re‑encapsulated at each hop. If the frame size exceeds the MTU of the link between R2 and R4, what logical consequence follows?

A.The frame will be fragmented at the network layer
B.The frame will be dropped and an ICMP message sent ✅
C.The frame will be padded to fit the MTU
D.The frame will be transmitted unchanged
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Because the data‑link layer cannot fragment frames, the network layer must handle an oversized packet. It drops the packet and sends an ICMP Destination Unreachable (Fragmentation Needed) message back to the sender, prompting retransmission at a suitable size.

Q3. Suppose the link between R2 and R4 uses a stop‑and‑wait protocol with a 10 ms round‑trip time and a frame transmission time of 2 ms. What is the maximum throughput achievable on this link?

A.112 ms\frac{1}{12\text{ ms}} frames per ms
B.2 ms12 ms\frac{2\text{ ms}}{12\text{ ms}} of link capacity
C.2 ms10 ms\frac{2\text{ ms}}{10\text{ ms}} of link capacity
D.2 ms12 ms\frac{2\text{ ms}}{12\text{ ms}} of link capacity ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: Stop‑and‑wait limits throughput to one frame per round‑trip time plus transmission time: 2 ms+10 ms=12 ms2\text{ ms}+10\text{ ms}=12\text{ ms}. The fraction of time the link carries useful data is 2 ms/12 ms=1/62\text{ ms}/12\text{ ms}=1/6, i.e., about 16.7 % of the link capacity.

Q4. If a data‑link layer protocol provides both error detection and correction, which of the following statements is logically implied?

A.All errors are corrected before delivery
B.Only detectable errors are corrected
C.Undetectable errors are still possible ✅
D.Correction eliminates the need for retransmission
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Error detection identifies bits that may be wrong, but not all errors are detectable. Even with correction mechanisms, undetectable errors can still occur, meaning some corrupted frames may be delivered unnoticed. Hence, the only guaranteed implication is that undetectable errors remain possible.

Q5. Alice’s Ethernet interface implements a MAC address table that ages out entries after 300 seconds of inactivity. What inference can be drawn about the effect of a prolonged idle period on subsequent frame delivery?

A.Frames will be broadcast until the entry is relearned ✅
B.Frames will be dropped immediately
C.Frames will be queued indefinitely
D.Frames will be sent with a zero‑TTL
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: When the MAC table entry expires, the switch no longer knows the destination port. Consequently, it floods the frame to all ports (broadcast) until the destination replies, allowing the switch to relearn the correct forwarding entry.

Q6. Consider two data‑link protocols: one uses a sliding‑window mechanism with a window size of 4, and the other uses a stop‑and‑wait approach. Which analytical comparison best describes their relative efficiency on a high‑latency link?

A.Sliding‑window achieves higher utilization because it keeps multiple frames in flight ✅
B.Both achieve equal utilization because they use the same acknowledgment scheme
C.Stop‑and‑wait is more efficient due to lower overhead
D.Sliding‑window is less efficient because it requires larger buffers
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A sliding‑window protocol can transmit up to four frames before awaiting acknowledgment, keeping the link busy during the long latency period. Stop‑and‑wait sends only one frame per round‑trip, leaving the link idle for most of the latency, thus reducing utilization.

Q7. A network administrator observes that frames between Alice and R2 are consistently delayed by 5 ms beyond the expected propagation time. Which conceptual explanation most plausibly accounts for this delay?

A.Excessive collision back‑off in CSMA/CD ✅
B.Incorrect checksum calculation
C.Insufficient buffer space at R2’s data‑link layer
D.Physical layer attenuation requiring repeaters
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: CSMA/CD introduces random back‑off periods after collisions, adding extra delay. If collisions are frequent, the cumulative back‑off can cause a consistent 5 ms increase. Incorrect checksums, buffer shortages, or repeaters affect error handling or signal strength, not systematic timing delays.

Q8. In a scenario where Alice’s frame is encapsulated with a VLAN tag at the data‑link layer, what logical effect does this have on the frame as it traverses routers R2 and R4?

A.The VLAN tag is stripped at each router
B.The VLAN tag remains unchanged across all hops
C.The VLAN tag is rewritten at each hop based on the outgoing interface ✅
D.The VLAN tag is ignored by routers
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: When a frame passes through a router that performs VLAN routing, the router may remove the original VLAN tag, process the frame, and then apply a new VLAN tag appropriate for the outgoing interface. This ensures proper segregation on each segment while preserving VLAN semantics.

Q9. If the data‑link layer employs a parity bit for error detection, what can be deduced about its capability to detect multiple bit errors?

A.It can detect any odd number of bit errors ✅
B.It can detect any even number of bit errors
C.It can detect all multiple‑bit errors
D.It cannot detect any multiple‑bit errors
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: A single parity bit indicates whether the total number of 1‑bits is odd or even. It will detect any odd number of flipped bits because the parity condition changes, but it fails to detect an even number of errors, which leave the parity unchanged.

Q10. During a network upgrade, the MTU of the link between R2 and R4 is increased from 1500 bytes to 9000 bytes. Which analytical impact does this change have on the data‑link layer’s frame processing?

A.Reduced fragmentation overhead and higher throughput ✅
B.Increased error detection complexity
C.Higher probability of collision on CSMA/CD
D.Need for additional MAC address entries
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A larger MTU allows bigger frames, decreasing the frequency of fragmentation and reassembly, which reduces processing overhead and improves throughput. Error detection complexity and collision probability are not directly affected by MTU size, nor does it require extra MAC entries.

Q11. Alice’s network uses a token‑ring protocol at the data‑link layer. If the token is lost, what is the most likely logical consequence for the network’s operation?

A.All stations will halt transmission until the token is regenerated ✅
B.Stations will continue transmitting using CSMA/CD
C.The network will switch to a backup Ethernet link
D.Frames will be broadcast until the token is recovered
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Token‑ring networks rely on a single token to control access. Loss of the token means no station can acquire permission to send, causing the entire network to become idle until a token recovery procedure regenerates the token.

Q12. Which of the following statements best reflects a conceptual understanding of the relationship between data‑link framing and network‑layer packetization?

A.Frames are independent of network‑layer packets
B.Each network‑layer packet is always encapsulated in a single frame
C.Frames may contain fragments of a network‑layer packet ✅
D.Network‑layer packets are always larger than frames
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: A network‑layer packet can be larger than the maximum frame size, requiring fragmentation. Consequently, a single packet may be split across multiple frames, each carrying a fragment of the original packet. Frames are not independent; they carry portions of network‑layer data.

Q13. If a data‑link protocol provides flow control via a pause frame, what logical effect does this have on the sender’s transmission behavior?

A.The sender temporarily stops transmitting after receiving the pause frame ✅
B.The sender increases its transmission rate to compensate
C.The sender ignores the pause and continues as usual
D.The sender resets its MAC address table
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Pause frames are a flow‑control mechanism where the receiver signals the sender to cease transmission for a specified duration. The sender must honor this request and temporarily halt sending, preventing buffer overflow at the receiver.

Q14. Consider that Alice’s NIC uses a 48‑bit MAC address. How many unique MAC addresses can be generated?

A.2482^{48} ✅
B.48248^{2}
C.2242^{24}
D.48!48!
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: A 48‑bit address space yields 2482^{48} distinct combinations, providing a very large pool of unique MAC addresses. The other options either misuse factorial or exponentiation concepts and do not represent the correct count.

Q15. When comparing Ethernet’s CSMA/CD with Wi‑Fi’s CSMA/CA, which analytical difference best explains their suitability for wired versus wireless media?

A.CSMA/CD detects collisions after they occur, which is feasible on wired media; CSMA/CA attempts to avoid collisions, essential for wireless ✅
B.Both use identical collision handling mechanisms
C.CSMA/CA is faster than CSMA/CD in all scenarios
D.CSMA/CD works only with half‑duplex links
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Wired Ethernet can detect collisions directly because the medium is shared and collisions are observable, while wireless signals cannot be reliably detected after they occur due to the hidden node problem. Hence CSMA/CA uses avoidance techniques, making it more appropriate for wireless environments.

Q16. If a frame arriving at router R4 fails its CRC check, what is the most probable logical action taken by the data‑link layer?

A.Discard the frame and request retransmission ✅
B.Forward the frame anyway
C.Correct the error using the CRC
D.Log the error and continue processing
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A failing CRC indicates that the frame is corrupted. The data‑link layer typically discards such frames and relies on higher‑layer protocols (e.g., TCP) to request retransmission, rather than attempting correction or forwarding erroneous data.

Q17. A network designer wants to ensure that frames traveling between Alice and Bob are encrypted at the data‑link layer. Which conceptual service should be enabled?

A.Link‑layer encryption (e.g., MACsec) ✅
B.IPsec at the network layer
C.TLS at the transport layer
D.Application‑level encryption
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: MACsec provides confidentiality, integrity, and authentication at the data‑link layer, encrypting frames end‑to‑end across the link. IPsec, TLS, and application‑level encryption operate at higher layers and do not protect the data‑link layer directly.

Q18. If the data‑link layer implements a sliding‑window protocol with a window size of 7 and the round‑trip time is 20 ms, what is the maximum number of frames that can be in transit simultaneously?

A.7 ✅
B.20
C.14
D.1
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The window size directly limits the number of unacknowledged frames that may be outstanding. With a window size of 7, up to seven frames can be transmitted and be awaiting acknowledgment at any given time, regardless of the round‑trip time.

Q19. When a frame is sent from Alice to Bob, the data‑link layer adds a trailer containing a CRC. If the CRC polynomial is x3+x+1x^3 + x + 1, what is the degree of the resulting CRC field?

A.3 ✅
B.4
C.2
D.5
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The degree of the polynomial determines the length of the CRC field in bits. For x3+x+1x^3 + x + 1, the highest exponent is 3, so the CRC field is 3 bits long (often expressed as a 4‑bit field when including the implicit leading 1, but the degree itself is 3).

Q20. Which logical inference can be made if frames arriving at R2 consistently have a higher error rate after a recent firmware upgrade?

A.The upgrade introduced a bug in the CRC calculation ✅
B.The physical medium degraded during the upgrade
C.R2’s routing table is incorrect
D.Alice’s MAC address changed
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: A higher error rate directly after a firmware change suggests that the new code, likely handling CRC generation or verification, is flawed. Physical degradation would affect both pre‑ and post‑upgrade periods, and routing or MAC changes would not manifest as errors at the data‑link level.

Q21. In a scenario where Alice’s NIC supports both half‑duplex and full‑duplex modes, which analytical comparison correctly describes the effect on collision handling?

A.Full‑duplex eliminates collisions, allowing simultaneous send/receive; half‑duplex requires CSMA/CD ✅
B.Both modes use CSMA/CD equally
C.Half‑duplex eliminates collisions, full‑duplex uses CSMA/CD
D.Neither mode experiences collisions
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Full‑duplex provides separate transmit and receive paths, so frames can travel simultaneously without colliding, removing the need for CSMA/CD. Half‑duplex shares a single medium, requiring collision detection and back‑off mechanisms.

Q22. If a data‑link layer protocol uses a 16‑bit checksum, what is the probability that a random 1‑bit error goes undetected?

A.2−162^{-16} ✅
B.2−12^{-1}
C.2−82^{-8}
D.2−322^{-32}
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: A 16‑bit checksum can represent 2162^{16} distinct values. Assuming uniform distribution, a random single‑bit error has a 1/2161/2^{16} chance of resulting in the same checksum, thus the probability of an undetected error is 2−162^{-16}.

Q23. When Alice’s frame passes through router R2, the data‑link layer may replace the source MAC address. What conceptual reason justifies this behavior?

A.The MAC address must reflect the interface that actually transmitted the frame on the next hop ✅
B.The original MAC address is encrypted for security
C.Changing MAC addresses improves routing efficiency
D.It is required by the IP layer
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: At each hop, the frame’s source MAC address is updated to the MAC of the outgoing interface, indicating the actual physical sender for the next segment. This is essential for correct delivery at the data‑link layer of the following link.

Q24. Which logical outcome results from enabling jumbo frames (9000 bytes) on a network that still contains legacy devices limited to 1500 byte MTU?

A.Fragmentation at the legacy devices, causing increased latency ✅
B.All devices will automatically adjust to 9000 bytes
C.Jumbo frames will be ignored by legacy devices
D.The network will fail completely
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Legacy devices cannot handle frames larger than their MTU; when they receive jumbo frames, they must fragment them or drop them, leading to additional processing delay and possible retransmissions, thereby increasing overall latency.

Q25. If a data‑link protocol provides both error detection and flow control, which analytical statement best reflects the interplay between the two services?

A.Flow control can prevent buffer overflow, reducing the chance of errors caused by congestion ✅
B.Error detection eliminates the need for flow control
C.Flow control increases the error rate due to added overhead
D.They operate independently without affecting each other
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Flow control regulates the rate of transmission, ensuring that the receiver’s buffers do not overflow. By preventing congestion, it reduces the likelihood that frames are corrupted due to loss or queuing delays, thereby complementing error‑detection mechanisms.

Q26. When Alice’s frame is encapsulated with an Ethernet II header, which conceptual relationship exists between the EtherType field and the network‑layer protocol?

A.The EtherType field identifies the encapsulated network‑layer protocol ✅
B.The EtherType field contains the destination MAC address
C.The EtherType field determines the frame’s CRC
D.The EtherType field sets the frame’s priority
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: EtherType is a two‑byte field in Ethernet II frames that specifies which network‑layer protocol (e.g., IPv4, IPv6) is carried in the payload, allowing the receiving data‑link layer to pass the frame to the appropriate higher‑layer protocol.

Q27. If Alice’s NIC employs a 4‑bit sequence number for frames, what is the maximum number of distinct frames that can be uniquely identified before the sequence numbers wrap?

A.16 ✅
B.4
C.8
D.32
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A 4‑bit field can represent 24=162^{4}=16 distinct values, allowing up to sixteen unique sequence numbers before the counter wraps around to zero.

Q28. A network uses a point‑to‑point link with a data‑link protocol that does not support broadcast. Which logical inference can be made about address resolution on this link?

A.ARP is unnecessary because the link connects only two endpoints ✅
B.ARP must still be used to resolve addresses
C.Broadcast is required for ARP to function
D.The link cannot carry IP traffic
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: On a point‑to‑point link, each endpoint knows the MAC address of the other, making ARP (which relies on broadcast) redundant. Therefore, address resolution can be omitted without affecting IP communication.

Q29. If a frame’s trailer includes a 32‑bit CRC computed with polynomial x32+x7+x3+x2+1x^{32}+x^{7}+x^{3}+x^{2}+1, what is the primary advantage of using such a polynomial over a simple parity check?

A.Higher probability of detecting multiple‑bit errors ✅
B.Simpler hardware implementation
C.Reduced computational overhead
D.Compatibility with IPv6
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: A 32‑bit CRC generated from a well‑chosen polynomial can detect burst errors and multiple‑bit errors with a very low probability of undetected corruption, far surpassing the detection capability of a single parity bit.

Q30. When comparing Ethernet’s full‑duplex mode to half‑duplex mode, which conceptual difference most directly impacts network throughput?

A.Full‑duplex allows simultaneous send/receive, effectively doubling potential bandwidth ✅
B.Half‑duplex uses larger frames, reducing overhead
C.Full‑duplex requires more MAC address entries
D.Half‑duplex provides built‑in encryption
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Full‑duplex eliminates the need for collision detection and allows simultaneous transmission and reception, which can roughly double the usable bandwidth compared to half‑duplex, where the medium is shared and collisions reduce effective throughput.

Q31. If the data‑link layer uses a token‑passing scheme and the token is corrupted, what is the most logical recovery mechanism?

A.Regenerate the token after a timeout period ✅
B.Ignore the token and continue normal transmission
C.Switch to CSMA/CD operation
D.Broadcast a new token immediately
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Token‑passing protocols include a recovery process where, after a predefined timeout without token activity, the network regenerates a new token to restore orderly access, ensuring continuity despite token corruption.

Q32. Which factual recall question correctly defines the primary purpose of the data‑link layer’s framing service?

A.To delineate packet boundaries for transmission ✅
B.To assign IP addresses to hosts
C.To route packets across networks
D.To encrypt application data
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Framing at the data‑link layer encapsulates network‑layer packets into frames, establishing clear start and end points for reliable transmission over the physical medium.

🔗 Related Topics (MCQs)