📝 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.
📝 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?
📖 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?
📖 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?
📖 Explanation: Stop‑and‑wait limits throughput to one frame per round‑trip time plus transmission time: . The fraction of time the link carries useful data is , 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?
📖 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?
📖 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?
📖 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?
📖 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?
📖 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?
📖 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?
📖 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?
📖 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?
📖 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?
📖 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?
📖 Explanation: A 48‑bit address space yields 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?
📖 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?
📖 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?
📖 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?
📖 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 , what is the degree of the resulting CRC field?
📖 Explanation: The degree of the polynomial determines the length of the CRC field in bits. For , 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?
📖 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?
📖 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?
📖 Explanation: A 16‑bit checksum can represent distinct values. Assuming uniform distribution, a random single‑bit error has a chance of resulting in the same checksum, thus the probability of an undetected error is .
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?
📖 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?
📖 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?
📖 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?
📖 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?
📖 Explanation: A 4‑bit field can represent 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?
📖 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 , what is the primary advantage of using such a polynomial over a simple parity check?
📖 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?
📖 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?
📖 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?
📖 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.