📝 Polling protocol in data link layer (12 MCQs)
Central Coordination Through Polling
Polling is a controlled-access protocol in which a primary station or controller invites secondary stations to transmit in an organized sequence. Only the station currently polled may send data, preventing competing transmissions on the controlled link. Polling provides orderly access and can support predictable service, but control messages and waiting for a turn add delay. The sequence can be fixed or determined by the controller's schedule.
Primary and Secondary Station Responsibilities
The primary station manages access by sending poll messages to selected secondary stations. A secondary station responds with data when it has a frame, or indicates that it has nothing to send. In some arrangements, a separate select operation lets the primary choose a secondary station as the destination of data.
Poll-and-Response Communication Cycle
The controller sends a poll to one station and waits for its response. The station transmits a frame if it has data, otherwise it may return an empty or status response. The controller then polls the next station in sequence. Timeouts and retry rules handle missing responses or failed links.
A Controller Polling Three Remote Stations
Suppose a primary station polls A, B, and C in order. A sends one queued frame, B reports no data, and C sends two frames if the protocol permits multiple frames per poll. The controller then repeats the cycle. No secondary station begins an unsolicited transmission during another station's turn.
Polling in Point-to-Point and Multipoint Links
Polling is associated with controlled data link communication, especially where one primary coordinates several secondary devices over a shared line. It differs from random access because stations do not independently compete for the medium. The primary's polling interval affects response time, and a failed primary can interrupt communication for every secondary station.
Misconceptions About Polling Operation
'A polled station must always send a data frame' is incorrect because it may have no queued data. 'Polling has no control overhead' is incorrect because poll and response messages use channel time. 'Polling is distributed control' is incorrect because a primary station determines the order and grants transmission opportunities.
Calculating Polling Delay and Controller Overhead
Trace the polling order and identify which station is authorized at each step. For delay questions, include poll transmission, response time, and the time spent checking inactive stations. Evaluate how station count affects cycle time, and compare polling's orderly access with reservation and token passing. Include timeout intervals when a polled station fails to respond.
Polling and Primary-Secondary Station Terms
- Polling - Controller invites stations to transmit.
- Primary station - Coordinates access and sends polls.
- Secondary station - Responds when selected by controller.
- Select - Controller identifies a data recipient.
- Poll message - Requests a station response.
- Cycle time - Duration of one complete polling round.
📝 All Polling protocol in data link layer MCQs
Q1. In the flow‑control scheme described, what is the primary purpose of the 'note' sent by the receiving data‑link layer when its single slot is empty?
📖 Explanation: When the receiver’s single‑slot buffer is empty, it informs the network layer that it is ready for more data. This note tells the sender that the next frame can be transmitted without risking overflow. It does not serve as an acknowledgment or error indication; its sole function is to prompt the sender to forward the subsequent frame.
Q2. If the receiving buffer becomes full, what immediate effect does the flow‑control feedback have on the sender's behavior?
📖 Explanation: When the receiver signals that its buffer is full, the sender must honor the feedback by either pausing transmission or throttling its sending rate. Continuing at the same speed would cause overflow, while increasing the rate would exacerbate the problem. Therefore the correct response is to stop or slow down until space becomes available.
Q3. Suppose a sender uses a single‑slot buffer and the receiver's buffer is full for two consecutive cycles. What inference can be made about the network's capacity relative to the sender's production rate?
📖 Explanation: If the receiver cannot accept new frames for two successive cycles, the sender is producing frames faster than the network can deliver them to the receiver. This persistent full‑buffer condition indicates that the effective bandwidth or processing capability of the network is lower than the sender’s generation rate, leading to a bottleneck.
Q4. Compare the error‑control method used in Ethernet (silent discard) with the method that sends acknowledgments. Which statement best captures the trade‑off?
📖 Explanation: Ethernet’s silent‑discard approach simply drops corrupted frames, which keeps latency low but can result in lost data. Sending an acknowledgment after a correct frame introduces extra control traffic and processing time, increasing overhead, but it provides reliable delivery by allowing the sender to retransmit lost or corrupted frames. This trade‑off balances speed against reliability.
Q5. Evaluate the impact of using two separate buffers (one at the sender and one at the receiver) versus a single shared buffer on throughput and latency.
📖 Explanation: Having distinct buffers at each end decouples sending and receiving rates, allowing the sender to continue transmitting while the receiver processes earlier frames. This separation can raise overall throughput because each side can work independently. However, the extra storage introduces a small amount of additional latency as frames wait in the buffers before being processed.
Q6. Differentiate between flow‑control feedback that signals a 'buffer full' condition and one that signals a 'vacancy' condition. What effect does each have on the sender's transmission window?
📖 Explanation: When a receiver indicates its buffer is full, the sender must shrink its transmission window to avoid sending more data that cannot be stored, effectively contracting the window. Conversely, a vacancy notification tells the sender that space is available, allowing it to enlarge the window and transmit additional frames. Thus the two signals have opposite effects on the sender’s permissible burst size.
Q7. Which of the following scenarios best illustrates polling in a data‑link layer context?
📖 Explanation: Polling means the sender does not transmit arbitrarily; instead, it periodically checks whether the receiver is prepared to accept a new frame. The sender waits for a specific 'ready' or 'poll' signal from the receiver, ensuring that the receiver’s buffer has space. This controlled approach matches the definition of polling, unlike continuous streaming or simultaneous transmission.
Q8. If the polling interval is increased, what is the most likely effect on the sender's buffer occupancy?
📖 Explanation: A longer polling interval means the receiver asks the sender for permission less often, so the sender must wait longer before it can send the next frame. While waiting, newly generated data continues to accumulate in the sender’s buffer, causing its occupancy to grow. If the interval becomes too large, the buffer may fill and overflow, leading to dropped frames.
Q9. Design a simple protocol that uses polling to manage both flow control and error recovery for a single‑slot buffer system. Which sequence correctly represents the protocol steps?
📖 Explanation: The receiver initiates the exchange by polling the sender, indicating it is ready for a frame. The sender then transmits the frame, after which the receiver performs a CRC check. If the CRC is valid, the receiver sends an acknowledgment; otherwise, it requests a retransmission. This sequence integrates both flow‑control (the poll) and error‑control (the CRC and acknowledgment).
Q10. If bit stuffing inserts an extra '0' after five consecutive '1's, how does this affect detection of the flag pattern when a transmission error flips a stuffed '0' to '1'?
📖 Explanation: Bit stuffing prevents the flag pattern from appearing in data by inserting a '0' after five '1's. If a transmission error changes that inserted '0' to a '1', the receiver could interpret the altered sequence as the flag . This false flag detection would cause the receiver to believe a frame boundary exists where none does, leading to misinterpretation of the data stream.
Q11. In a network where the sender's buffer is larger than the receiver's, which strategy most effectively minimizes packet loss while keeping channel utilization high?
📖 Explanation: Adapting the polling interval to the receiver’s real‑time vacancy signals allows the sender to transmit only when the receiver can store the frame, preventing overflow. This dynamic approach aligns transmission bursts with available buffer space, reducing loss while maintaining high utilization because the channel is used whenever the receiver is ready.
Q12. Consider a scenario where the polling interval is too long, causing the sender's buffer to overflow. Which modification to the polling mechanism would most directly address this issue?
📖 Explanation: A longer polling interval delays the receiver’s readiness signal, forcing the sender to hold data longer and eventually overflow its buffer. By shortening the interval, the receiver queries the sender more often, allowing the sender to offload frames before the buffer fills. This direct adjustment to the polling timing mitigates overflow without altering buffer sizes or changing the overall flow‑control strategy.